diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 914c0ce7c..b0d70f450 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -83,6 +83,11 @@ module.exports = { devtoolModuleFilenameTemplate: (info) => path.resolve(info.absoluteResourcePath).replace(/\\/g, "/"), }, + externals: { + "react": "React", + "react-dom": "ReactDOM", + 'alex': 'Alex', + }, resolve: { // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 4a9d94652..129742c3a 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -71,6 +71,11 @@ module.exports = { .relative(paths.appSrc, info.absoluteResourcePath) .replace(/\\/g, "/"), }, + externals: { + 'alex': 'Alex', + "react": "React", + "react-dom": "ReactDOM", + }, resolve: { // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" diff --git a/public/index.html b/public/index.html index 9489fe428..cebdfa250 100755 --- a/public/index.html +++ b/public/index.html @@ -2,13 +2,13 @@ - + - + @@ -20,11 +20,17 @@
+ + + + + <%= htmlWebpackPlugin.tags.bodyTags %> \ No newline at end of file diff --git a/public/js/alex/alex.editor.all.global.min.js b/public/js/alex/alex.editor.all.global.min.js new file mode 100644 index 000000000..a85b4a53d --- /dev/null +++ b/public/js/alex/alex.editor.all.global.min.js @@ -0,0 +1,2 @@ +/*! For license information please see alex.editor.all.global.min.js.LICENSE.txt */ +(()=>{var e={50565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HookType=t.CreatorStatus=t.INJECTOR_TOKEN=void 0,t.INJECTOR_TOKEN=Symbol("INJECTOR_TOKEN"),function(e){e.init="init",e.creating="creating",e.done="done"}(t.CreatorStatus||(t.CreatorStatus={})),function(e){e.Before="Before",e.After="After",e.Around="Around ",e.AfterReturning="AfterReturning",e.AfterThrowing="AfterThrowing"}(t.HookType||(t.HookType={}))},99030:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AfterThrowing=t.AfterReturning=t.Around=t.After=t.Before=t.Aspect=t.Autowired=t.Optinal=t.Optional=t.Inject=t.Injectable=void 0;var r=i(7391);i(28660);var n=r.__importStar(i(75861)),o=r.__importStar(i(12730)),s=i(50565),a=i(75861);function c(e){return void 0===e&&(e=Symbol()),function(t,i,r){n.setParameterIn(t,{default:void 0,token:e},r)}}t.Injectable=function(e){return function(t){n.markInjectable(t,e);var i=Reflect.getMetadata("design:paramtypes",t);if(Array.isArray(i)){if(n.setParameters(t,i),e&&e.multiple)return;n.getParameterDeps(t).forEach((function(e,i){if(!n.isToken(e))throw o.notInjectError(t,i)}))}}},t.Inject=function(e,t){return void 0===t&&(t={}),function(i,o,s){n.setParameterIn(i,r.__assign(r.__assign({},t),{token:e}),s)}},t.Optional=c,t.Optinal=c,t.Autowired=function(e,t){return function(i,r){var s=Symbol("INSTANCE_KEY"),a=e;if(void 0===e&&(a=Reflect.getMetadata("design:type",i,r)),!n.isToken(a))throw o.notSupportTokenError(i,r,a);return n.addDeps(i,a),{configurable:!0,enumerable:!0,get:function(){if(!this[s]){var e=n.getInjectorOfInstance(this);if(!e)throw o.noInjectorError(this);this[s]=e.get(a,t)}return this[s]}}}},t.Aspect=function(){return function(e){a.makeAsAspect(e)}},t.Before=function(e,t,i){return void 0===i&&(i={}),function(r,n){a.makeAsHook(r,n,s.HookType.Before,e,t,i)}},t.After=function(e,t,i){return void 0===i&&(i={}),function(r,n){a.makeAsHook(r,n,s.HookType.After,e,t,i)}},t.Around=function(e,t,i){return void 0===i&&(i={}),function(r,n){a.makeAsHook(r,n,s.HookType.Around,e,t,i)}},t.AfterReturning=function(e,t,i){return void 0===i&&(i={}),function(r,n){a.makeAsHook(r,n,s.HookType.AfterReturning,e,t,i)}},t.AfterThrowing=function(e,t,i){return void 0===i&&(i={}),function(r,n){a.makeAsHook(r,n,s.HookType.AfterThrowing,e,t,i)}}},12730:(e,t)=>{"use strict";function i(e){return"object"==typeof e?e.constructor.name:"function"==typeof e?e.name:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.circularError=t.noInjectorError=t.notSupportTokenError=t.notInjectError=t.noInjectableError=t.tagOnlyError=t.classTokenOnly=t.noProviderError=void 0,t.noProviderError=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllDeps=t.addDeps=void 0;var r=i(7391),n=i(43355),o=i(34996),s=i(37296),a=Symbol("DEP_KEY"),c=s.createConstructorMetadataManager(a);function l(e){return c.get(e)||[]}function u(e,t){var i,n,s=[];try{for(var a=r.__values(e),c=a.next();!c.done;c=a.next()){var d=c.value;if("function"==typeof d&&!t.includes(d)){t.push(d);var h=l(d),p=o.getParameterDeps(d),f=u(h,t);s.push.apply(s,r.__spread(h,p,f))}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function d(e,t){if(t.get(e))return t.get(e);var i=n.uniq(u([e],[]));return t.set(e,i),i}t.addDeps=function(e){for(var t=[],i=1;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHooked=t.getHookMeta=t.isAspectCreator=t.makeAsHook=t.makeAsAspect=t.HookStore=t.createHookedFunction=t.applyHooks=t.HOOKED_SYMBOL=void 0;var r=i(7391);i(28660);var n=i(50565);function o(e,t,i){var r=[],o=[],l=[],u=[],d=[];return i.forEach((function(e){var t;(t=e)&&t.type===n.HookType.Before?r.push(e):!function(e){return e&&e.type===n.HookType.After}(e)?!function(e){return e&&e.type===n.HookType.Around}(e)?!function(e){return e&&e.type===n.HookType.AfterReturning}(e)?function(e){return e&&e.type===n.HookType.AfterThrowing}(e)&&d.push(e):u.push(e):l.unshift(e):o.unshift(e)})),function(){for(var i,n=[],h=0;h0?(n.has(s)||n.set(s,o(s,a,r.getHooks(i,s))),n.get(s)):a}})},t.createHookedFunction=o;var l=function(){function e(e){this.parent=e,this.hooks=new Map}return e.prototype.createHooks=function(e){var t=this,i=e.map((function(e){return t.createOneHook(e)}));return{dispose:function(){i.forEach((function(e){e.dispose()}))}}},e.prototype.hasHooks=function(e){return!!this.hooks.has(e)||!!this.parent&&this.parent.hasHooks(e)},e.prototype.getHooks=function(e,t){var i=[];return this.parent&&(i=this.parent.getHooks(e,t)),this.hooks.has(e)&&this.hooks.get(e).has(t)&&(i=i.concat(this.hooks.get(e).get(t))),i},e.prototype.createOneHook=function(e){var t=this,i=e.target;this.hooks.has(i)||this.hooks.set(i,new Map);var r=this.hooks.get(i);return r.has(e.method)||r.set(e.method,[]),r.get(e.method).push(e),{dispose:function(){t.removeOneHook(e)}}},e.prototype.removeOneHook=function(e){var t=e.target;if(this.hooks.has(t)){var i=this.hooks.get(t);if(i.has(e.method)){var r=i.get(e.method).indexOf(e);r>-1&&i.get(e.method).splice(r,1)}}},e}();t.HookStore=l;var u=Symbol("HOOK_KEY"),d=Symbol("ASPECT_KEY");t.makeAsAspect=function(e){Reflect.defineMetadata(d,!0,e)},t.makeAsHook=function(e,t,i,r,n,o){var s=Reflect.getOwnMetadata(u,e);s||(s=[],Reflect.defineMetadata(u,s,e)),s.push({prop:t,type:i,target:r,targetMethod:n,options:o})},t.isAspectCreator=function(e){return!!Reflect.getMetadata(d,e.useClass)},t.getHookMeta=function(e){return Reflect.getOwnMetadata(u,e.prototype)||[]},t.isHooked=function(e){return e&&!!e[t.HOOKED_SYMBOL]}},75861:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(7391);r.__exportStar(i(54075),t),r.__exportStar(i(74274),t),r.__exportStar(i(34996),t),r.__exportStar(i(28583),t),r.__exportStar(i(43355),t),r.__exportStar(i(72888),t),r.__exportStar(i(32503),t)},74274:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createId=t.isInjectable=t.getInjectableOpts=t.markInjectable=t.removeInjector=t.setInjector=t.getInjectorOfInstance=void 0;var r=i(7391);i(28660);var n=i(21708),o=Symbol("INJECTOR_KEY");t.getInjectorOfInstance=function(e){return e[o]||null},t.setInjector=function(e,t){e[o]=t},t.removeInjector=function(e){delete e[o]};var s=Symbol("INJECTABLE_KEY"),a={};function c(e){return Reflect.getMetadata(s,e)}t.markInjectable=function(e,t){void 0===t&&(t=a);var i=Reflect.getOwnMetadata(s,e);Reflect.defineMetadata(s,r.__assign(r.__assign(r.__assign({},t),i),{version:n.version}),e)},t.getInjectableOpts=c,t.isInjectable=function(e){return!!c(e)};var l=0;t.createId=function(e){return e+"_"+l++}},72888:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFactoryCreator=t.isClassCreator=t.isValueCreator=t.isToken=t.isInjectableToken=t.isValueProvider=t.isFactoryProvider=t.isClassProvider=t.isTypeProvider=void 0;var r=i(50565),n=i(74274);t.isTypeProvider=function(e){return"function"==typeof e},t.isClassProvider=function(e){return!!e.useClass},t.isFactoryProvider=function(e){return!!e.useFactory},t.isValueProvider=function(e){return e.hasOwnProperty("useValue")},t.isInjectableToken=function(e){return"function"==typeof e&&n.isInjectable(e)};var o=new Set([Object,String,Number,Boolean]),s=new Set(["function","string","symbol"]);t.isToken=function(e){return"function"==typeof e?!o.has(e):s.has(typeof e)},t.isValueCreator=function(e){return e.status===r.CreatorStatus.done},t.isClassCreator=function(e){return!!e.useClass},t.isFactoryCreator=function(e){return!!e.useFactory}},34996:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParameterDeps=t.getParameterOpts=t.setParameterIn=t.setParameters=void 0;var r=i(7391),n=i(37296),o=Symbol("PARAMETER_KEY"),s=n.createConstructorMetadataManager(o);t.setParameters=function(e,t){return s.set(t,e)};var a=Symbol("TOKEN_KEY"),c=n.createConstructorMetadataManager(a);function l(e){return c.get(e)||[]}function u(e){return function(e,t){var i=[],r=Math.max(e.length,t.length);if(0===r)return[];for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCreatorFromProvider=t.parseTagFromProvider=t.hasTag=t.parseTokenFromProvider=t.getProvidersFromTokens=void 0;var r=i(7391),n=r.__importStar(i(12730)),o=i(50565),s=i(72888),a=i(34996),c=i(54075),l=i(74274);function u(e){return"function"!=typeof e&&e.hasOwnProperty("tag")}t.getProvidersFromTokens=function(e){var t=c.getAllDeps.apply(void 0,r.__spread(e));return e.concat(t).filter(s.isInjectableToken)},t.parseTokenFromProvider=function(e){return s.isTypeProvider(e)?e:e.token},t.hasTag=u,t.parseTagFromProvider=function(e){return s.isTypeProvider(e)?null:u(e)?e.tag:null},t.parseCreatorFromProvider=function(e){var t=s.isTypeProvider(e)?{}:{dropdownForTag:e.dropdownForTag,tag:e.tag};if(s.isValueProvider(e))return r.__assign({instance:e.useValue,isDefault:e.isDefault,status:o.CreatorStatus.done},t);if(s.isFactoryProvider(e))return r.__assign({isDefault:e.isDefault,useFactory:e.useFactory},t);var i=!!s.isClassProvider(e)&&e.isDefault,c=s.isClassProvider(e)?e.useClass:e,u=l.getInjectableOpts(c);if(!u)throw n.noInjectableError(c);var d=a.getParameterOpts(c);return r.__assign({isDefault:i,opts:u,parameters:d,useClass:c},t)}},37296:(e,t,i)=>{"use strict";function r(e){return"object"==typeof e?e.constructor:e}Object.defineProperty(t,"__esModule",{value:!0}),t.createMetadataManager=t.createConstructorMetadataManager=void 0,i(28660),t.createConstructorMetadataManager=function(e){return{get:function(t,i){return function(e,t,i){var n=r(t);return null==i?Reflect.getMetadata(e,n):Reflect.getMetadata(e,n,i)}(e,t,i)},set:function(t,i,n){return function(e,t,i,n){var o=r(i);return null==n?Reflect.defineMetadata(e,t,o):Reflect.defineMetadata(e,t,o,n)}(e,t,i,n)}}},t.createMetadataManager=function(e){return{get:function(t,i){return null==i?Reflect.getMetadata(e,t):Reflect.getMetadata(e,t,i)},set:function(t,i,r){return null==r?Reflect.defineMetadata(e,t,i):Reflect.defineMetadata(e,t,i,r)}}}},43355:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.uniq=void 0;var r=i(7391);t.uniq=function(e){var t=new Set(e);return Array.from(t)},t.flatten=function e(t){var i,n,o=[];try{for(var s=r.__values(t),a=s.next();!a.done;a=s.next()){var c=a.value;Array.isArray(c)?o.push.apply(o,r.__spread(e(c))):o.push(c)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}},19745:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(7391);r.__exportStar(i(50565),t),r.__exportStar(i(99030),t),r.__exportStar(i(52186),t);var n=i(75861);Object.defineProperty(t,"markInjectable",{enumerable:!0,get:function(){return n.markInjectable}}),Object.defineProperty(t,"setParameters",{enumerable:!0,get:function(){return n.setParameters}}),Object.defineProperty(t,"getInjectableOpts",{enumerable:!0,get:function(){return n.getInjectableOpts}})},52186:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Injector=void 0;var r=i(7391),n=r.__importStar(i(75861)),o=r.__importStar(i(12730)),s=i(50565),a=i(75861),c=function(){function e(e,t,i){void 0===e&&(e=[]),void 0===t&&(t={}),this.id=n.createId("Injector"),this.creatorMap=new Map,this.depth=0,this.tagMatrix=new Map,this.domainMap=new Map,this.opts=t,this.tag=t.tag,i?(this.parent=i,this.depth=i.depth+1,this.hookStore=new a.HookStore(this.parent.hookStore)):this.hookStore=new a.HookStore;var o={token:s.INJECTOR_TOKEN,useValue:this};this.addProviders.apply(this,r.__spread([o],e))}return e.prototype.createChild=function(t,i){var n,o,s,a;void 0===t&&(t=[]),void 0===i&&(i={});var c=new e(t,r.__assign(r.__assign({},this.opts),i),this);if(i.dropdownForTag)try{for(var l=r.__values(this.creatorMap.entries()),u=l.next();!u.done;u=l.next()){var d=r.__read(u.value,2),h=d[0],p=d[1];if(p.dropdownForTag&&i.tag===p.tag&&!c.creatorMap.has(h)){c.creatorMap.set(h,p);var f=c.tagMatrix.get(p.tag)||new Map,g=this.tagMatrix.get(p.tag);try{for(var m=(s=void 0,r.__values(g.entries())),v=m.next();!v.done;v=m.next()){var y=r.__read(v.value,2),_=y[0],b=y[1];f.set(_,b)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(s)throw s.error}}c.tagMatrix.set(p.tag,f)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return c},e.prototype.get=function(e,t,i){var s,c,l;Array.isArray(t)||(i=t,t=void 0);var u=null,d=this;if(t){if(!a.isTypeProvider(e))throw o.classTokenOnly(e);i=r.__assign(r.__assign({},i),{multiple:!0}),(u=r.__read(this.getCreator(e),1)[0])||(u={opts:{},parameters:[],useClass:e})}else{if(i&&n.hasTag(i)){var h=this.exchangeToken(e,i.tag);u=(s=r.__read(this.getCreator(h),2))[0],d=s[1]}u||(u=(c=r.__read(this.getCreator(e),2))[0],d=c[1]),!a.isTypeProvider(e)||u||this.opts.strict||(this.parseDependencies(e),u=(l=r.__read(this.getCreator(e),2))[0],d=l[1])}if(!u)throw o.noProviderError(e);return this.createInstance(u,e,d,i,t)},e.prototype.getFromDomain=function(){for(var e,t,i=this,n=[],o=0;o{"use strict";i.r(t),i.d(t,{__extends:()=>n,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>c,__metadata:()=>l,__awaiter:()=>u,__generator:()=>d,__createBinding:()=>h,__exportStar:()=>p,__values:()=>f,__read:()=>g,__spread:()=>m,__spreadArrays:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>b,__asyncValues:()=>w,__makeTemplateObject:()=>S,__importStar:()=>C,__importDefault:()=>E,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>k});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function n(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}function c(e,t){return function(i,r){t(i,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var i,r,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(n=2&o[0]?r.return:o[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;switch(r=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(i=n[e](t)).value instanceof y?Promise.resolve(i.value.v).then(c,l):u(o[0][2],i)}catch(e){u(o[0][3],e)}var i}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function b(e){var t,i;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,n){t[r]=e[r]?function(t){return(i=!i)?{value:y(e[r](t)),done:"return"===r}:n?n(t):t}:n}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise((function(r,n){(function(e,t,i,r){Promise.resolve(r).then((function(t){e({value:t,done:i})}),t)})(r,n,(t=e[i](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},21708:e=>{"use strict";e.exports=JSON.parse('{"name":"@ali/common-di","version":"5.3.1","description":"Common dependency injector.","main":"dist/index.js","scripts":{"lint":"tslint -p tsconfig.json -t stylish","tsc":"rm -rf dist && tsc -p tsconfig.prod.json","test":"jest --coverage","test:watch":"jest --coverage --watch","ci":"npm run lint && npm run test","commit":"git-cz","prerelease":"npm run lint && npm run test && npm run tsc ","release":"standard-version","release:beta":"npm run release -- --prerelease beta"},"dependencies":{"reflect-metadata":"^0.1.12","tslib":"^1.9.3"},"devDependencies":{"@ali/ci":"^4.8.0","@commitlint/cli":"^7.2.1","@commitlint/config-conventional":"^7.1.2","@types/jest":"^26.0.0","@types/node":"^10.17.26","commitizen":"^3.0.5","commitlint":"^7.2.1","cz-conventional-changelog":"^2.1.0","husky":"^1.2.1","jest":"^26.0.0","lint-staged":"^8.1.0","standard-version":"^4.4.0","ts-jest":"^26.0.0","tslint":"^5.11.0","typescript":"^3.2.2"},"repository":{"type":"git","url":"git@code.alipay.com:ddd-tool/common-di.git"},"engines":{"node":">=8.0.0"},"ci":{"type":"aci","version":"10"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.ts":"tslint -p tsconfig.json -t stylish"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"jest":{"preset":"ts-jest","testEnvironment":"node","coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":10,"functions":10,"lines":10,"statements":10}}},"publishConfig":{"registry":"http://registry.npm.alibaba-inc.com"},"keywords":["di","injector"]}')},81961:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(32834),o=i(63947),s=i(13205),a=i(34865),c=i(64994),l=i(19401),u=i(43849),d=i(36738);t.CommentReactionSwitcher=n.observer((({thread:e,comment:t,className:i})=>{const n=`comment_reaction_switcher_menu_${e.providerId}_${t.id}`,s=a.useInjectable(u.IMenuRegistry),c=a.useInjectable(u.AbstractMenuService);r.useEffect((()=>{const i=new a.Disposable,r=`comment_reaction_switcher_submenu_${e.providerId}_${t.id}`;return i.addDispose(s.registerMenuItem(n,{submenu:r,label:r,iconClass:a.getExternalIcon("reactions"),group:"navigation"})),i.addDispose(s.registerMenuItems(r,t.reactions.map((i=>({command:{id:o.SwitchCommandReaction,label:i.label},extraTailArgs:[{thread:e,comment:t,reaction:i}]}))))),()=>i.dispose()}),[]);const d=r.useMemo((()=>c.createMenu(n)),[]);return r.createElement(l.InlineActionBar,{className:i,menus:d,regroup:e=>[e,[]],type:"icon"})})),t.CommentReactions=n.observer((({thread:e,comment:t})=>{var i;const n=a.useInjectable(a.IEventBus),l=a.useInjectable(c.IIconService),u=r.useCallback((i=>{n.fire(new o.CommentReactionClick({thread:e,comment:t,reaction:i}))}),[]);return r.createElement("div",{className:d.comment_reactions},null===(i=t.reactions)||void 0===i?void 0:i.filter((e=>0!==e.count)).map((e=>r.createElement(s.Button,{key:e.label,onClick:()=>u(e),type:"secondary",size:"small",title:e.label,className:d.comment_reaction,iconClass:l.fromIcon("",e.iconPath.toString(),c.IconType.Background)}," ",e.count))))}))},49749:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(27196),o=i(47084),s=i(34116),a=i(36738),c=({root:e,children:t})=>n.createPortal(t,e),l=new o.Renderer;l.link=(e,t,i)=>`${i}`,t.CommentsBody=r.memo((({body:e})=>{const t=r.useRef(null),[i,n]=r.useState(null);return r.useEffect((()=>{if(t.current){const e=t.current.attachShadow({mode:"open"});i||n(e)}}),[]),r.createElement("div",{ref:t,className:a.comment_shadow_box},i&&r.createElement(c,{root:i},r.createElement("style",null,s.markdownCss),r.createElement("div",{dangerouslySetInnerHTML:{__html:o(e,{gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1,renderer:l})}})))}))},6129:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745);let o=class{constructor(){this.config={},this.options={},this.panelTreeNodeHandlers=[],this.mentionsOptions={},this.providerFeature=new Map}registerConfig(e){this.config=Object.assign(Object.assign({},this.config),e)}registerPanelTreeNodeHandler(e){this.panelTreeNodeHandlers.push(e)}registerPanelOptions(e){this.options=Object.assign(Object.assign({},this.options),e)}registerFileUploadHandler(e){this.fileUploadHandler=e}registerMentionsOptions(e){this.mentionsOptions=e}registerZoneWidgetRender(e){this.zoneWidgetRender=e}getConfig(){return this.config}getCommentsPanelOptions(){return this.options}getCommentsPanelTreeNodeHandlers(){return this.panelTreeNodeHandlers}getFileUploadHandler(){return this.fileUploadHandler}getMentionsOptions(){return this.mentionsOptions}getZoneWidgetRender(){return this.zoneWidgetRender}registerProviderFeature(e,t){this.providerFeature.set(e,t)}getProviderFeature(e){return this.providerFeature.get(e)}};o=r.__decorate([n.Injectable()],o),t.CommentsFeatureRegistry=o},94345:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(36738),o=i(63947),s=i(19401),a=i(32834),c=i(90198),l=i(43849),u=i(34865),d=i(88774),h=i(49749),p=i(47084),f=i(81961),g=(e,t)=>{const i=u.useInjectable(l.AbstractMenuService),{body:n,contextValue:s}=t,[a,c]=r.useState(""),d=u.useInjectable(o.ICommentsFeatureRegistry),h=r.useMemo((()=>d.getFileUploadHandler()),[]);r.useEffect((()=>{c(n)}),[n]);const p=r.useMemo((()=>e.createScoped()),[]),f=r.useMemo((()=>p.createKey("commentIsEmpty",!t.body)),[]),g=r.useMemo((()=>i.createMenu(l.MenuId.CommentsCommentContext,p)),[]),m=r.useMemo((()=>i.createMenu(l.MenuId.CommentsCommentTitle,p)),[]),v=r.useRef(p.createKey("comment",s));r.useEffect((()=>{v.current.set(s)}),[s]);const y=r.useCallback((e=>{f.set(!e.target.value),c(e.target.value)}),[]),_=r.useCallback((async e=>{if(h){const t=await h(a,e);c((e=>{const i=e+t;return f.set(!i),i}))}}),[a]);return[a,c,y,g,m,_]},m=a.observer((({reply:e,thread:t})=>{var i;const{contextKeyService:a}=t,{author:d,label:m,body:v,mode:y}=e,_=null===(i=d.iconPath)||void 0===i?void 0:i.toString(),[b,w,S,C,E,O]=g(a,e),k=r.useMemo((()=>{const e=p(v);return/^\[^<>]+\<\/p\>\n$/.test(e)}),[v]);return r.createElement("div",{className:n.reply_item},u.isUndefined(y)||y===o.CommentMode.Preview?r.createElement("div",null,k?r.createElement(r.Fragment,null,_&&r.createElement("img",{className:n.reply_item_icon,src:_,alt:d.name}),r.createElement("span",{className:n.comment_item_author_name},d.name),"string"==typeof m?r.createElement("span",{className:n.comment_item_label},m):m," : ",r.createElement("span",{className:n.comment_item_body},v),e.reactions&&e.reactions.length>0&&r.createElement(f.CommentReactionSwitcher,{className:n.reply_item_title,thread:t,comment:e}),r.createElement(s.InlineActionBar,{separator:"inline",className:n.reply_item_title,menus:E,context:[{thread:t,comment:e,menuId:l.MenuId.CommentsCommentTitle}],type:"icon"})):r.createElement(r.Fragment,null,r.createElement("div",{className:n.comment_item_markdown_header},r.createElement("div",null,_&&r.createElement("img",{className:n.reply_item_icon,src:_,alt:d.name}),r.createElement("span",{className:n.comment_item_author_name},d.name),"string"==typeof m?r.createElement("span",{className:n.comment_item_label},m):m," : "),r.createElement(s.InlineActionBar,{separator:"inline",className:n.reply_item_title,menus:E,context:[{thread:t,comment:e,menuId:l.MenuId.CommentsCommentTitle}],type:"icon"})),r.createElement(h.CommentsBody,{body:v}))):r.createElement("div",null,r.createElement(c.CommentsTextArea,{value:b,autoFocus:!0,onChange:S,dragFiles:O}),r.createElement(s.InlineActionBar,{className:n.comment_item_reply,menus:C,context:[{thread:t,comment:e,body:b,menuId:l.MenuId.CommentsCommentContext}],type:"button",separator:"inline",afterClick:()=>{w(v)}})),e.reactions&&e.reactions.length>0&&r.createElement(f.CommentReactions,{thread:t,comment:e}))}));t.CommentItem=a.observer((({thread:e,commentThreadContext:t,widget:i})=>{var a;const{readOnly:p,contextKeyService:v}=e,[y,_]=r.useState(!1),[b,w]=r.useState(""),[S,...C]=e.comments,{author:E,label:O,body:k,mode:D}=S,M=null===(a=E.iconPath)||void 0===a?void 0:a.toString(),[x,T,A,I,P,R]=g(v,S),L=u.useInjectable(o.ICommentsFeatureRegistry),N=r.useMemo((()=>L.getFileUploadHandler()),[]),F=r.useMemo((()=>v.createKey("commentIsEmpty",!0)),[]);const B=r.useCallback((async e=>{if(N){const t=await N(x,e);w((e=>{const i=e+t;return F.set(!i),i}))}}),[b]);return r.createElement("div",{className:n.comment_item},M&&r.createElement("img",{className:n.comment_item_icon,src:M,alt:E.name}),r.createElement("div",{className:n.comment_item_content},r.createElement("div",{className:n.comment_item_head},r.createElement("div",{className:n.comment_item_name},r.createElement("span",{className:n.comment_item_author_name},E.name),"string"==typeof O?r.createElement("span",{className:n.comment_item_label},O):O),r.createElement("div",{className:n.comment_item_actions},S.reactions&&S.reactions.length>0&&r.createElement(f.CommentReactionSwitcher,{thread:e,comment:S}),!p&&r.createElement(d.Button,{className:n.comment_item_reply_button,size:"small",type:"secondary",onClick:()=>_(!0)},u.localize("comments.thread.action.reply")),r.createElement(s.InlineActionBar,{menus:P,context:[{thread:e,comment:S,menuId:l.MenuId.CommentsCommentTitle}],type:"button"}))),u.isUndefined(D)||D===o.CommentMode.Preview?r.createElement(h.CommentsBody,{body:k}):r.createElement("div",null,r.createElement(c.CommentsTextArea,{value:x,autoFocus:!0,onChange:A,dragFiles:R}),r.createElement(s.InlineActionBar,{className:n.comment_item_context,menus:I,context:[{thread:e,comment:S,body:x,menuId:l.MenuId.CommentsCommentContext}],separator:"inline",type:"button",afterClick:()=>{T(k)}})),S.reactions&&S.reactions.length>0&&r.createElement(f.CommentReactions,{thread:e,comment:S}),(C.length>0||y)&&r.createElement("div",{className:n.comment_item_reply_wrap},C.map((t=>r.createElement(m,{key:t.id,thread:e,reply:t}))),y&&r.createElement("div",null,r.createElement(c.CommentsTextArea,{autoFocus:!0,value:b,onChange:function(e){F.set(!e.target.value),w(e.target.value)},placeholder:`${u.localize("comments.reply.placeholder")}...`,dragFiles:B}),r.createElement(s.InlineActionBar,{className:n.comment_item_reply,menus:t,context:[{thread:e,text:b,widget:i,menuId:l.MenuId.CommentsCommentThreadContext}],separator:"inline",type:"button",afterClick:()=>{w(""),_(!1)}})))))}))},28017:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(13205),o=i(32834),s=i(34865),a=i(63947),c=i(36738),l=i(84859),u=i(94184);t.CommentsPanel=o.observer((e=>{const t=s.useInjectable(a.ICommentsService),i=s.useInjectable(l.WorkbenchEditorService),o=s.useInjectable(a.ICommentsFeatureRegistry),[d,h]=r.useState([]),p=s.useInjectable(s.IEventBus);r.useEffect((()=>{p.on(a.CommentPanelCollapse,(()=>{h((e=>e.map((e=>(s.isUndefined(e.expanded)||(e.expanded=!1),e)))))}))}),[]);const f=r.useCallback((e=>e.filter((e=>{var t;return!e||!e.parent||!1!==e.parent.expanded&&!1!==(null===(t=e.parent.parent)||void 0===t?void 0:t.expanded)}))),[]);r.useEffect((()=>{h(t.commentsTreeNodes)}),[t.commentsTreeNodes]);const g=r.useCallback((([e])=>{if(e){if(s.isUndefined(e.expanded)){const t=d.map((t=>(t.selected=t.id===e.id,t)));h(t)}else{const t=d.map((t=>(t.id===e.id&&(t.expanded=!t.expanded),t.selected=t.id===e.id,t)));h(t)}e.onSelect?e.onSelect(e):i.open(e.uri,{range:e.thread.range})}}),[i,d]),m=r.useMemo((()=>o.getCommentsPanelOptions()),[]),v=r.useMemo((()=>m.header),[m]),y=r.useMemo((()=>e.viewState.height-((null==v?void 0:v.height)||0)),[e.viewState.height]),_=r.useMemo((()=>({width:"100%",height:y})),[y]),b=r.useMemo((()=>m.defaultPlaceholder),[m]),w=f(d);return r.createElement("div",{className:u(e.className,c.comment_panel)},null==v?void 0:v.component,w.length?r.createElement(n.DeprecatedRecycleTree,Object.assign({containerHeight:y,scrollContainerStyle:_,nodes:w,foldable:!0,outline:!1,onSelect:e=>g(e),leftPadding:20},m.recycleTreeProps)):b&&"string"!=typeof b?b:r.createElement("div",{className:c.panel_placeholder},b||s.localize("comments.panel.placeholder")))}))},90198:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(36738),o=i(88774),s=i(49749),a=i(34865),c=i(45715),l=i(4626),u=i(63947),d=(e,t)=>`@${t}`;t.CommentsTextArea=r.forwardRef(((e,t)=>{const{focusDelay:i=0,autoFocus:h=!1,placeholder:p="",onFocus:f,onBlur:g,onChange:m,maxRows:v=10,minRows:y=2,value:_,initialHeight:b,dragFiles:w}=e,[S,C]=r.useState(0),E=a.useInjectable(u.ICommentsFeatureRegistry),O=r.useRef(null),k=r.useRef(null),D=r.useRef(null);r.useImperativeHandle(t,(()=>O.current));const M=r.useCallback((async e=>{var t;e.stopPropagation(),e.preventDefault();const i=null===(t=e.dataTransfer)||void 0===t?void 0:t.files;i&&w&&await w(i),O.current&&(O.current.focus(),T(O.current.value))}),[w]),x=r.useCallback((e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"}),[]),T=r.useCallback((e=>{const t=null==O?void 0:O.current;if(t){const i=e.toString().length;t.setSelectionRange(i,i)}}),[]);r.useEffect((()=>{var e;const t=null==O?void 0:O.current;if(t)return b&&t.style&&(t.style.height=b),i&&setTimeout((()=>{t.focus()}),i),T(_),null===(e=k.current)||void 0===e||e.addEventListener("mousewheel",r,!0),()=>{var e;null===(e=k.current)||void 0===e||e.removeEventListener("mousewheel",r,!0)};function r(e){var t,i,r;const n=e.target;n&&("TEXTAREA"===n.nodeName.toUpperCase()&&n.scrollHeight>n.clientHeight||"UL"===n.nodeName.toUpperCase()||"UL"===(null===(t=n.parentElement)||void 0===t?void 0:t.nodeName.toUpperCase())||"UL"===(null===(r=null===(i=n.parentElement)||void 0===i?void 0:i.parentElement)||void 0===r?void 0:r.nodeName.toUpperCase()))&&e.stopPropagation()}}),[]),r.useEffect((()=>{var e;0===S&&(null===(e=null==O?void 0:O.current)||void 0===e||e.focus(),T(_))}),[S]);const A=r.useMemo((()=>l.getMentionBoxStyle({minRows:y,maxRows:v})),[y,v]),I=r.useMemo((()=>E.getMentionsOptions()),[E]),P=r.useCallback((async(e,t)=>{if(I.providerData){t(await I.providerData(e))}else t([])}),[I]);return r.createElement("div",{className:n.textarea_container},r.createElement(o.Tabs,{mini:!0,value:S,onChange:e=>C(e),tabs:[a.localize("comments.thread.textarea.write"),a.localize("comments.thread.textarea.preview")]}),r.createElement("div",null,0===S?r.createElement("div",{ref:k},r.createElement(c.MentionsInput,{autoFocus:h,onDragOver:x,onDrop:M,inputRef:O,ref:D,value:_,placeholder:p,onChange:m,onFocus:f,onBlur:g,style:A},r.createElement(c.Mention,{markup:I.markup||"@[__display__](__id__)",renderSuggestion:I.renderSuggestion,trigger:"@",data:P,displayTransform:I.displayTransform||d}))):r.createElement("div",{className:n.textarea_preview},r.createElement(s.CommentsBody,{body:_}))))}))},85641:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(22188),s=i(34865),a=i(39573),c=i(63947),l=i(84859),u=i(29506);let d=class extends s.Disposable{constructor(e,t,i,r){super(),this.uri=e,this.range=t,this.providerId=i,this.options=r,this.widgets=new Map,this._id=`thread_${s.uuid()}`,this.toggle=e=>{if(this.comments.length>0){const t=this.widgets.get(e);t&&t.toggle()}else this.dispose()},this.comments=r.comments?r.comments.map((e=>Object.assign(Object.assign({},e),{id:s.uuid()}))):[],this.data=this.options.data,this._contextKeyService=this.registerDispose(this.globalContextKeyService.createScoped());new u.ResourceContextKey(this._contextKeyService).set(e),this._contextKeyService.createKey("thread",r.contextValue),this._contextKeyService.createKey("readOnly",!!r.readOnly),this.label=r.label,this.isCollapsed=!!this.options.isCollapsed;const n=this._contextKeyService.createKey("threadsLength",this.commentsService.getThreadsByUri(e).length),a=this._contextKeyService.createKey("commentsLength",this.comments.length),c=this._contextKeyService.createKey("commentThreadIsEmpty",!this.comments.length);this._contextKeyService.createKey("commentController",i),o.autorun((()=>{a.set(this.comments.length),c.set(!this.comments.length)})),o.autorun((()=>{this.isCollapsed?this.hideAll():this.showAll()})),this.addDispose(this.commentsService.onThreadsChanged((t=>{t.uri.isEqual(e)&&n.set(this.commentsService.getThreadsByUri(e).length)}))),this.addDispose({dispose:()=>{this.comments=[]}})}set contextValue(e){this._contextKeyService.createKey("thread",e)}get contextValue(){return this._contextKeyService.getContextValue("thread")}getWidgetByEditor(e){return this.widgets.get(e)}get id(){return this._id}get contextKeyService(){return this._contextKeyService}get readOnly(){return!!this.options.readOnly}get threadHeaderTitle(){if(this.label)return this.label;if(this.comments.length){const e=new Set(this.comments.map((e=>`@${e.author.name}`)));return`${s.localize("comments.participants")}: `+[...e].join(" ")}return s.localize("comments.zone.title")}getEditorsByUri(e){return this.editorCollectionService.listEditors().filter((t=>{var i;return null===(i=t.currentUri)||void 0===i?void 0:i.isEqual(e)}))}addWidgetByEditor(e){const t=this.injector.get(a.CommentsZoneWidget,[e,this]);return this.addDispose(t.onChangeZoneWidget((()=>{const t=this.commentsService.commentsThreads.filter((e=>this.isEqual(e))),i=t.findIndex((e=>e===this)),r=t.slice(i+1);for(const t of r)if(t.isShowWidget(e)){const i=t.getWidgetByEditor(e);null==i||i.resize()}}))),this.addDispose(t),this.widgets.set(e,t),e.onDispose((()=>{t.dispose(),this.widgets.delete(e)})),t}show(e){if(e){let t=this.widgets.get(e);t||(t=this.addWidgetByEditor(e)),t.show()}else{this.getEditorsByUri(this.uri).forEach((e=>{var t;let i=this.widgets.get(e);i||(i=this.addWidgetByEditor(e)),(null===(t=e.currentUri)||void 0===t?void 0:t.isEqual(this.uri))&&i.show()}))}}showWidgetsIfShowed(){var e;for(const t of this.getEditorsByUri(this.uri)){let i=this.widgets.get(t);i||(i=this.addWidgetByEditor(t)),(null===(e=t.currentUri)||void 0===e?void 0:e.isEqual(this.uri))&&i.isShow&&i.show()}}hideWidgetsByDispose(){var e;for(const[t,i]of this.widgets)!(null===(e=t.currentUri)||void 0===e?void 0:e.isEqual(this.uri))&&i.dispose()}isShowWidget(e){if(e){const t=this.widgets.get(e);return!!t&&t.isShow}for(const[,e]of this.widgets)return e.isShow;return!1}hide(e){if(e){const t=this.widgets.get(e);null==t||t.hide()}else this.hideAll()}showAll(){for(const[,e]of this.widgets)e.show()}hideAll(e){var t;for(const[i,r]of this.widgets)e?!(null===(t=i.currentUri)||void 0===t?void 0:t.isEqual(this.uri))&&r.dispose():r.hide()}addComment(...e){this.comments.push(...e.map((e=>Object.assign(Object.assign({},e),{id:s.uuid()}))))}removeComment(e){const t=this.comments.findIndex((t=>t===e));-1!==t&&this.comments.splice(t,1)}isEqual(e){return e.uri.isEqual(this.uri)&&e.range.startLineNumber===this.range.startLineNumber}};r.__decorate([n.Autowired(c.ICommentsService),r.__metadata("design:type",Object)],d.prototype,"commentsService",void 0),r.__decorate([n.Autowired(s.IContextKeyService),r.__metadata("design:type",Object)],d.prototype,"globalContextKeyService",void 0),r.__decorate([n.Autowired(l.EditorCollectionService),r.__metadata("design:type",l.EditorCollectionService)],d.prototype,"editorCollectionService",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],d.prototype,"injector",void 0),r.__decorate([o.observable,r.__metadata("design:type",Array)],d.prototype,"comments",void 0),r.__decorate([o.observable,r.__metadata("design:type",Object)],d.prototype,"label",void 0),r.__decorate([o.observable,r.__metadata("design:type",Boolean)],d.prototype,"isCollapsed",void 0),r.__decorate([o.computed,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],d.prototype,"threadHeaderTitle",null),d=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[s.URI,Object,String,Object])],d),t.CommentsThread=d},97177:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(43849),a=i(85641);let c=class extends n.Disposable{constructor(e){super(),this.thread=e}get commentThreadTitle(){return this.registerDispose(this.menuService.createMenu(s.MenuId.CommentsCommentThreadTitle,this.thread.contextKeyService))}get commentThreadContext(){return this.registerDispose(this.menuService.createMenu(s.MenuId.CommentsCommentThreadContext,this.thread.contextKeyService))}};r.__decorate([o.Autowired(s.AbstractMenuService),r.__metadata("design:type",s.AbstractMenuService)],c.prototype,"menuService",void 0),r.__decorate([n.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],c.prototype,"commentThreadTitle",null),r.__decorate([n.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],c.prototype,"commentThreadContext",null),c=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optional()),r.__metadata("design:paramtypes",[a.CommentsThread])],c),t.CommentsZoneService=c},39573:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(19745),s=i(27196),a=i(32834),c=i(36738),l=i(34865),u=i(94345),d=i(90198),h=i(63947),p=i(94184),f=i(19401),g=i(98913),m=i(97177),v=i(43849),y=a.observer((({thread:e,widget:t})=>{const{comments:i,threadHeaderTitle:r,contextKeyService:s}=e,a=l.useInjectable(o.INJECTOR_TOKEN).get(m.CommentsZoneService,[e]),g=l.useInjectable(h.ICommentsFeatureRegistry),y=n.useMemo((()=>g.getFileUploadHandler()),[]),[_,b]=n.useState(""),w=n.useMemo((()=>s.createKey("commentIsEmpty",!_)),[]),S=a.commentThreadTitle,C=a.commentThreadContext,E=n.useCallback((e=>{const{value:t}=e.target;b(t),w.set(!t)}),[]),O=n.useMemo((()=>{var t;return(null===(t=g.getProviderFeature(e.providerId))||void 0===t?void 0:t.placeholder)||`${l.localize("comments.reply.placeholder")}...`}),[]),k=n.useCallback((async e=>{if(y){const t=await y(_,e);b((e=>{const i=e+t;return w.set(!i),i}))}}),[_]);return n.createElement("div",{className:p(e.options.threadClassName,c.comment_container)},n.createElement("div",{className:p(e.options.threadHeadClassName,c.head)},n.createElement("div",{className:c.review_title},r),n.createElement(f.InlineActionBar,{menus:S,context:[{thread:e,widget:t,menuId:v.MenuId.CommentsCommentThreadTitle}],separator:"inline",type:"icon"})),n.createElement("div",{className:c.comment_body},i.length>0?n.createElement(u.CommentItem,{widget:t,commentThreadContext:C,thread:e}):n.createElement("div",null,n.createElement(d.CommentsTextArea,{focusDelay:100,initialHeight:"auto",value:_,onChange:E,placeholder:O,dragFiles:k}),n.createElement("div",{className:c.comment_bottom_actions},n.createElement(f.InlineActionBar,{className:c.comment_reply_actions,separator:"inline",type:"button",context:[{text:_,widget:t,thread:e,menuId:v.MenuId.CommentsCommentThreadContext}],menus:C})))))}));let _=class extends g.ResizeZoneWidget{constructor(e,t){super(e.monacoEditor,t.range),this._onShow=new l.Emitter,this.onShow=this._onShow.event,this._onHide=new l.Emitter,this.onHide=this._onHide.event,this._editor=e,this._wrapper=document.createElement("div"),this._isShow=!t.isCollapsed,this._container.appendChild(this._wrapper),this.observeContainer(this._wrapper);const i=this.commentsFeatureRegistry.getZoneWidgetRender();s.render(n.createElement(l.ConfigProvider,{value:this.appConfig},i?i(t,this):n.createElement(y,{thread:t,widget:this})),this._wrapper)}get coreEditor(){return this._editor}get isShow(){return this._isShow}show(){super.show(),this._isShow=!0,this._onShow.fire()}hide(){super.dispose(),this._isShow=!1,this._onHide.fire()}toggle(){this._isShow?this.hide():this.show()}applyClass(){}applyStyle(){}};r.__decorate([o.Autowired(l.AppConfig),r.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),r.__decorate([o.Autowired(h.ICommentsFeatureRegistry),r.__metadata("design:type",Object)],_.prototype,"commentsFeatureRegistry",void 0),_=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,Object])],_),t.CommentsZoneWidget=_},30097:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(63947),a=i(58407),c=i(73607),l=i(43849);let u=class extends o.Disposable{onStart(){this.registerCommentsFeature(),this.listenToCreateCommentsPanel(),this.commentsService.init()}get panelBadge(){const e=this.commentsService.commentsThreads.length;return e?e+"":""}registerCommands(e){e.registerCommand({id:s.CollapseId,label:"%comments.panel.action.collapse%",iconClass:o.getIcon("collapse-all")},{execute:()=>{this.eventBus.fire(new s.CommentPanelCollapse)}}),e.registerCommand({id:s.CloseThreadId,label:"%comments.thread.action.close%",iconClass:o.getIcon("up")},{execute:e=>{const{thread:t,widget:i}=e;t.comments.length?i.isShow&&i.toggle():t.dispose()}}),e.registerCommand({id:s.SwitchCommandReaction},{execute:e=>{this.eventBus.fire(new s.CommentReactionClick(e))}})}registerMenus(e){e.registerMenuItem(l.MenuId.CommentsCommentThreadTitle,{command:s.CloseThreadId,group:"inline",order:Number.MAX_SAFE_INTEGER})}registerToolbarItems(e){e.registerItem({id:s.CollapseId,viewId:s.CommentPanelId,command:s.CollapseId,tooltip:o.localize("comments.panel.action.collapse")})}registerCommentsFeature(){this.contributions.getContributions().forEach(((e,t)=>{this.addDispose(this.commentsService.registerCommentRangeProvider(`contribution_${t}`,{getCommentingRanges:t=>e.provideCommentingRanges(t)})),e.registerCommentsFeature&&e.registerCommentsFeature(this.commentsFeatureRegistry)}))}listenToCreateCommentsPanel(){this.commentsFeatureRegistry.getCommentsPanelOptions().defaultShow?this.commentsService.registerCommentPanel():o.Event.once(this.commentsService.onThreadsCreated)((()=>{this.commentsService.registerCommentPanel()})),this.addDispose(o.Event.debounce(this.commentsService.onThreadsChanged,(()=>{}),100)((()=>{const e=this.layoutService.getTabbarHandler(s.CommentPanelId);null==e||e.setBadge(this.panelBadge)}),this))}registerEditorFeature(e){e.registerEditorFeatureContribution({contribute:e=>this.commentsService.handleOnCreateEditor(e),provideEditorOptionsForUri:async e=>(await this.commentsService.getContributionRanges(e)).length?{lineDecorationsWidth:25,lineNumbersMinChars:5}:{}})}};r.__decorate([n.Autowired(s.ICommentsService),r.__metadata("design:type",Object)],u.prototype,"commentsService",void 0),r.__decorate([n.Autowired(c.IMainLayoutService),r.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),r.__decorate([n.Autowired(s.ICommentsFeatureRegistry),r.__metadata("design:type",Object)],u.prototype,"commentsFeatureRegistry",void 0),r.__decorate([n.Autowired(s.CommentsContribution),r.__metadata("design:type",Object)],u.prototype,"contributions",void 0),r.__decorate([n.Autowired(o.IEventBus),r.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),u=r.__decorate([o.Domain(o.ClientAppContribution,a.BrowserEditorContribution,o.CommandContribution,o.TabBarToolbarContribution,l.MenuContribution)],u),t.CommentsBrowserContribution=u},48445:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(66905),s=i(19745),a=i(34865),c=i(58407),l=i(63947),u=i(85641),d=i(22188),h=i(44779),p=i(20276),f=i(35463),g=i(64994),m=i(28017),v=i(73607),y=i(29332),_=i(91296);let b=class extends a.Disposable{constructor(){super(...arguments),this.decorationChangeEmitter=new a.Emitter,this.threads=new Map,this.threadsChangeEmitter=new a.Emitter,this.threadsCreatedEmitter=new a.Emitter,this.rangeProviderMap=new Map,this.rangeOwner=new Map,this.providerDecorationCache=new y.LRUCache(1e4),this.shouldShowCommentsSchemes=new Set(["file","git"]),this.forceUpdateCount=0}get commentsThreads(){return[...this.threads.values()]}get isMultiCommentsForSingleLine(){var e;return!!(null===(e=this.commentsFeatureRegistry.getConfig())||void 0===e?void 0:e.isMultiCommentsForSingleLine)}get currentAuthorAvatar(){var e,t;return null===(t=null===(e=this.commentsFeatureRegistry.getConfig())||void 0===e?void 0:e.author)||void 0===t?void 0:t.avatar}get filterThreadDecoration(){var e;return null===(e=this.commentsFeatureRegistry.getConfig())||void 0===e?void 0:e.filterThreadDecoration}get onThreadsChanged(){return this.threadsChangeEmitter.event}get onThreadsCreated(){return this.threadsCreatedEmitter.event}createThreadDecoration(e){var t;const i=0===e.comments.length?this.currentAuthorAvatar:null===(t=e.comments[0].author.iconPath)||void 0===t?void 0:t.toString(),r={glyphMarginClassName:["comments-decoration","comments-thread",i?this.iconService.fromIcon("",i,g.IconType.Background):a.getIcon("message")].join(" ")};return o.ModelDecorationOptions.createDynamic(r)}createHoverDecoration(){const e={linesDecorationsClassName:["comments-decoration","comments-add",a.getIcon("message")].join(" ")};return o.ModelDecorationOptions.createDynamic(e)}init(){this.registerDecorationProvider()}handleOnCreateEditor(e){const t=new a.Disposable;t.addDispose(e.monacoEditor.onMouseDown((t=>{if(t.target.type===n.editor.MouseTargetType.GUTTER_LINE_DECORATIONS&&t.target.element&&t.target.element.className.indexOf("comments-add")>-1){const{target:i}=t;if(i&&i.range){const{range:t}=i;if(this.commentsThreads.some((i=>0===i.comments.length&&i.uri.isEqual(e.currentUri)&&i.range.startLineNumber===t.startLineNumber)))return;this.createThread(e.currentUri,t).show(e)}}else if(t.target.type===n.editor.MouseTargetType.GUTTER_GLYPH_MARGIN&&t.target.element&&t.target.element.className.indexOf("comments-thread")>-1){const{target:i}=t;if(i&&i.range){const{range:t}=i,r=this.commentsThreads.filter((i=>i.uri.isEqual(e.currentUri)&&i.range.startLineNumber===t.startLineNumber));if(r.length){r.some((t=>t.isShowWidget(e)))?r.forEach((t=>t.hide(e))):r.forEach((t=>t.show(e)))}}}})));let i=[];return t.addDispose(e.monacoEditor.onMouseMove(_((async t=>{const r=e.currentUri,n=t.target.range;i=r&&n&&await this.shouldShowHoverDecoration(r,n)?e.monacoEditor.deltaDecorations(i,[{range:a.positionToRange(n.startLineNumber),options:this.createHoverDecoration()}]):e.monacoEditor.deltaDecorations(i,[])}),10))),t.addDispose(e.monacoEditor.onMouseLeave(_((()=>{i=e.monacoEditor.deltaDecorations(i,[])}),10))),t}async shouldShowHoverDecoration(e,t){if(!this.shouldShowCommentsSchemes.has(e.scheme))return!1;const i=(await this.getContributionRanges(e)).some((e=>t.startLineNumber>=e.startLineNumber&&t.startLineNumber<=e.endLineNumber)),r=this.isMultiCommentsForSingleLine||!this.commentsThreads.some((i=>i.uri.isEqual(e)&&i.range.startLineNumber===t.startLineNumber));return i&&r}createThread(e,t,i={comments:[],readOnly:!1}){const r=this.getProviderIdsByLine(t.startLineNumber)[0],n=this.injector.get(u.CommentsThread,[e,t,r,i]);return n.onDispose((()=>{this.threads.delete(n.id),this.threadsChangeEmitter.fire(n),this.decorationChangeEmitter.fire(e)})),this.threads.set(n.id,n),this.addDispose(n),this.threadsChangeEmitter.fire(n),this.threadsCreatedEmitter.fire(n),this.decorationChangeEmitter.fire(e),n}getThreadsByUri(e){return this.commentsThreads.filter((t=>t.uri.isEqual(e))).sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber))}forceUpdateTreeNodes(){this.forceUpdateCount++}get commentsTreeNodes(){let e=[];const t=[...this.threads.values()].filter((e=>e.comments.length)),i=p(t,(e=>e.uri));Object.keys(i).forEach((t=>{const r=i[t];if(0===r.length)return;const n=r[0],o=n.uri,s=f.dirname(o.path.toString().replace(this.appConfig.workspaceDir,"")),a=Object.assign(Object.assign({id:t,name:o.displayName,uri:o,description:s.replace(/^\//,""),parent:void 0,thread:n},r.length&&{expanded:!0,children:[]}),{_forceUpdateCount:this.forceUpdateCount});e.push(a),r.forEach((t=>{var i;if(0===t.comments.length)return;const[r,...n]=t.comments,o=Object.assign(Object.assign({id:r.id,name:r.author.name,iconStyle:{marginRight:5,backgroundSize:"14px 14px"},icon:this.iconService.fromIcon("",null===(i=r.author.iconPath)||void 0===i?void 0:i.toString(),g.IconType.Background),description:r.body,uri:t.uri,parent:a,depth:1,thread:t},n.length&&{expanded:!0,children:[]}),{comment:r}),s=n.map((e=>{var i;return{id:e.id,name:e.author.name,description:e.body,uri:t.uri,iconStyle:{marginRight:5,backgroundSize:"14px 14px"},icon:this.iconService.fromIcon("",null===(i=e.author.iconPath)||void 0===i?void 0:i.toString(),g.IconType.Background),parent:o,depth:2,thread:t,comment:e}}));e.push(o),e.push(...s)}))}));for(const t of this.commentsFeatureRegistry.getCommentsPanelTreeNodeHandlers())e=t(e);return e}async getContributionRanges(e){const t=this.providerDecorationCache.get(e.toString());if(t)return await t.promise;const i=this.documentService.getModelReference(e),r=[];for(const e of this.rangeProviderMap){const[t,n]=e;r.push((async()=>{const e=await n.getCommentingRanges(null==i?void 0:i.instance);return e&&e.length&&this.rangeOwner.set(t,e),e})())}const n=new a.Deferred;this.providerDecorationCache.set(e.toString(),n);const o=await Promise.all(r);null==i||i.dispose();const s=h(o).filter(Boolean);return n.resolve(s),s}registerDecorationProvider(){this.addDispose(this.editorDecorationCollectionService.registerDecorationProvider({schemes:[...this.shouldShowCommentsSchemes.values()],key:"comments",onDidDecorationChange:this.decorationChangeEmitter.event,provideEditorDecoration:e=>this.commentsThreads.map((t=>(t.uri.isEqual(e)?t.showWidgetsIfShowed():t.hideWidgetsByDispose(),t))).filter((t=>{const i=t.uri.isEqual(e);return this.filterThreadDecoration?i&&this.filterThreadDecoration(t):i})).map((e=>({range:e.range,options:this.createThreadDecoration(e)})))}))}registerCommentPanel(){this.layoutService.getTabbarHandler(l.CommentPanelId)||this.layoutService.collectTabbarComponent([{id:l.CommentPanelId,component:m.CommentsPanel}],Object.assign({badge:this.panelBadge,containerId:l.CommentPanelId,title:a.localize("comments").toUpperCase(),hidden:!1,activateKeyBinding:"ctrlcmd+shift+c"},this.commentsFeatureRegistry.getCommentsPanelOptions()),"bottom")}get panelBadge(){const e=this.commentsThreads.length;return e?e+"":""}registerCommentRangeProvider(e,t){return this.rangeProviderMap.set(e,t),a.Disposable.create((()=>{this.rangeProviderMap.delete(e),this.rangeOwner.delete(e),this.providerDecorationCache.clear()}))}forceUpdateDecoration(){var e,t;const i=null===(e=this.workbenchEditorService.currentEditor)||void 0===e?void 0:e.currentUri;i&&this.decorationChangeEmitter.fire(i);const r=null===(t=this.workbenchEditorService.currentEditorGroup)||void 0===t?void 0:t.diffEditor.originalEditor.currentUri;r&&this.decorationChangeEmitter.fire(r)}getProviderIdsByLine(e){const t=[];if(1===this.rangeOwner.size)return[this.rangeOwner.keys().next().value];for(const i of this.rangeOwner){const[r,n]=i;n&&n.some((t=>t.startLineNumber<=e&&e<=t.endLineNumber))&&t.push(r)}return t}};r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],b.prototype,"injector",void 0),r.__decorate([s.Autowired(a.AppConfig),r.__metadata("design:type",Object)],b.prototype,"appConfig",void 0),r.__decorate([s.Autowired(c.IEditorDecorationCollectionService),r.__metadata("design:type",Object)],b.prototype,"editorDecorationCollectionService",void 0),r.__decorate([s.Autowired(g.IIconService),r.__metadata("design:type",Object)],b.prototype,"iconService",void 0),r.__decorate([s.Autowired(l.ICommentsFeatureRegistry),r.__metadata("design:type",Object)],b.prototype,"commentsFeatureRegistry",void 0),r.__decorate([s.Autowired(c.IEditorDocumentModelService),r.__metadata("design:type",Object)],b.prototype,"documentService",void 0),r.__decorate([s.Autowired(v.IMainLayoutService),r.__metadata("design:type",Object)],b.prototype,"layoutService",void 0),r.__decorate([s.Autowired(c.WorkbenchEditorService),r.__metadata("design:type",c.WorkbenchEditorService)],b.prototype,"workbenchEditorService",void 0),r.__decorate([d.observable,r.__metadata("design:type",Object)],b.prototype,"threads",void 0),r.__decorate([d.observable,r.__metadata("design:type",Object)],b.prototype,"forceUpdateCount",void 0),r.__decorate([d.computed,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],b.prototype,"commentsThreads",null),r.__decorate([a.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],b.prototype,"isMultiCommentsForSingleLine",null),r.__decorate([a.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],b.prototype,"currentAuthorAvatar",null),r.__decorate([a.memoize,r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[])],b.prototype,"filterThreadDecoration",null),r.__decorate([d.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],b.prototype,"forceUpdateTreeNodes",null),r.__decorate([d.computed,r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[])],b.prototype,"commentsTreeNodes",null),b=r.__decorate([s.Injectable()],b),t.CommentsService=b},60398:(e,t,i)=>{"use strict";const r=i(70655),n=i(19745),o=i(34865),s=i(48445),a=i(6129),c=i(30097),l=i(63947);i(36738);let u=class extends o.BrowserModule{constructor(){super(...arguments),this.contributionProvider=l.CommentsContribution,this.providers=[{token:l.ICommentsService,useClass:s.CommentsService},{token:l.ICommentsFeatureRegistry,useClass:a.CommentsFeatureRegistry},c.CommentsBrowserContribution]}};u=r.__decorate([n.Injectable()],u),t.b=u},34116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownCss="\nh1, h2, h3, h4, h5, h6, p {\n color: var(--foreground);\n word-break: break-all;\n}\npre:first-child,\np:first-child {\n margin-top: 0;\n}\npre:last-child,\np:last-child {\n margin-bottom: 0;\n}\npre {\n background-color: var(--textBlockQuote-background);\n border-color: var(--textBlockQuote-border);\n}\nimg {\n max-width: 100%;\n max-height: 100%;\n}\na {\n color: var(--textLink-foreground);\n}\n"},4626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMentionBoxStyle=({maxRows:e=10,minRows:t=2})=>({control:{fontSize:12},highlighter:{overflow:"hidden"},input:{margin:0},"&multiLine":{control:{border:"none"},highlighter:{padding:9},input:{boxSizing:"content-box",padding:"8px 0",lineHeight:"20px",minHeight:20*t+"px",maxHeight:20*e+"px",outline:0,border:0,overflowY:"auto"}},suggestions:{dataA:"aaa",list:{backgroundColor:"var(--kt-selectDropdown-background)",fontSize:12,maxHeight:200,overflowY:"auto"},item:{backgroundColor:"var(--kt-selectDropdown-background)",color:"var(--kt-selectDropdown-foreground)",padding:"4px 16px","&focused":{backgroundColor:"var(--kt-selectDropdown-selectionBackground)"}}}})},63947:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.toRange=r.positionToRange,function(e){e[e.Editor=0]="Editor",e[e.Preview=1]="Preview"}(t.CommentMode||(t.CommentMode={})),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={})),function(e){e.Thread="thread",e.Empty="empty"}(t.CommentGutterType||(t.CommentGutterType={})),t.CommentPanelId="CommentPanel",t.ICommentsFeatureRegistry=Symbol("ICommentsFeatureRegistry"),t.CommentsContribution=Symbol("CommentsContribution"),t.ICommentsService=Symbol("ICommentsService"),t.CollapseId="comments.panel.action.collapse",t.CloseThreadId="comments.thread.action.close",t.SwitchCommandReaction="comments.comment.action.switchCommand";class n extends r.BasicEvent{}t.CommentPanelCollapse=n;class o extends r.BasicEvent{}t.CommentReactionClick=o},12047:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(63947),t)},69035:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184);i(83919),t.Badge=e=>{var{className:t,children:i}=e,s=r.__rest(e,["className","children"]);return n.createElement("span",Object.assign({className:o("kt-badge",t)},s),i)}},73258:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(82891),s=i(94184);i(84975);const a=i(84151),c=()=>n.createElement("svg",{viewBox:"0 0 1024 1024",focusable:"false",className:"kt-button-anticon-spin","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},n.createElement("path",{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}));function l(){}t.Button=function(e){var{children:t,loading:i,className:u,type:d="primary",htmlType:h,size:p,ghost:f=!1,onClick:g,disabled:m,block:v,iconClass:y,icon:_,more:b,moreIconClass:w,menu:S,title:C,onVisibleChange:E}=e,O=r.__rest(e,["children","loading","className","type","htmlType","size","ghost","onClick","disabled","block","iconClass","icon","more","moreIconClass","menu","title","onVisibleChange"]);const k=s.default("kt-button",u,{[`kt-${d}-button-loading`]:i,[`ghost-${d}-button`]:f&&!i&&"link"!==d,[`${d}-button`]:d,[`${p}-button-size`]:p,"ghost-button":f&&"link"!==d,"block-button":v}),D=s.default(u,{"kt-clickable-icon":!!g});if("icon"===d)return n.createElement(a.Icon,Object.assign({tooltip:C,disabled:m,icon:_,onClick:i||m?l:g,className:D,iconClass:y},O));const M=y?n.createElement(a.Icon,{iconClass:y,disabled:m}):null;return b?n.createElement(o.default,{className:"kt-menu",overlay:S,trigger:["click"],onVisibleChange:E},n.createElement("button",Object.assign({},O,{disabled:m,className:k,type:h,onClick:i||m?l:g}),i&&"link"!==d&&n.createElement(c,null),M&&M,t,b&&n.createElement(a.Icon,{iconClass:w||a.getKaitianIcon("down"),className:"kt-button-secondary-more"}))):n.createElement("button",Object.assign({},O,{disabled:m,className:k,type:h,onClick:i||m?l:g}),i&&"link"!==d&&n.createElement(c,null),M&&M,t)}},64528:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(99422);i(15014);const a=()=>n.createElement("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}));t.CheckBox=e=>{var{insertClass:t,className:i,label:c,size:l="default",disabled:u,checked:d=!1}=e,h=r.__rest(e,["insertClass","className","label","size","disabled","checked"]);s.warning(!t,"`insertClass` was deprecated, please use `className` instead");const p=o("kt-checkbox",t,i,{"kt-checkbox-large":"large"===l,"kt-checkbox-disabled":u});return n.createElement("label",{className:p},n.createElement("span",{className:"kt-checkbox-lump"},n.createElement("input",Object.assign({type:"checkbox",disabled:u,checked:d},h)),n.createElement("span",{className:"kt-checkbox-icon"},n.createElement(a,null))),c||" ")},t.CheckBox.displayName="KTCheckBox"},64911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Empty=3]="Empty"}(t.MessageType||(t.MessageType={}))},60313:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(85366),s=i(84151),a=i(73258),c=i(64911);i(29058);const l=({onCancel:e,onOk:t,cancelText:i,okText:n})=>r.createElement(r.Fragment,null,r.createElement(a.Button,{size:"large",onClick:e,type:"secondary"},i||"取消"),r.createElement(a.Button,{size:"large",onClick:t},n||"确定"));t.Dialog=({visible:e,onClose:t,closable:i,afterClose:u,messageType:d,icon:h,message:p,buttons:f,type:g="confirm",title:m,onOk:v,onCancel:y,okText:_,cancelText:b,getContainer:w})=>{const{getIcon:S}=r.useContext(s.IconContext);return r.createElement(o.Overlay,{visible:e,onClose:t,title:"basic"===g?m:null,closable:"basic"===g,getContainer:w,footer:"basic"===g?f||r.createElement(l,{onCancel:y,onOk:v,okText:_,cancelText:b}):void 0,afterClose:u},r.createElement(r.Fragment,null,r.createElement("div",{className:"kt-dialog-content"},h&&r.createElement("div",{style:{color:h.color},className:n("kt-dialog-icon",s.getKaitianIcon(h.className)||S(h.className))}),r.createElement("div",{className:"kt-dialog-content_area"},"basic"!==g&&m&&r.createElement("p",{className:"kt-dialog-content_title"},m),"string"==typeof p?r.createElement("span",{className:"kt-dialog-message"},p):p),i&&"basic"!==g&&r.createElement("button",{className:n("kt-dialog-closex",s.getKaitianIcon("close")),onClick:t})),d!==c.MessageType.Empty&&"basic"!==g&&r.createElement("div",{className:"kt-dialog-buttonWrap"},"confirm"===g?f||r.createElement(l,{onCancel:y,onOk:v,okText:_,cancelText:b}):r.createElement(a.Button,{size:"large",onClick:t},"知道了"))))}},34810:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(94431),a=i(28652);i(41508),t.IconContext=n.createContext({getIcon:(e,t)=>e}),t.IconContextProvider=function(e){return n.createElement(t.IconContext.Provider,{value:e.value},n.createElement(t.IconContext.Consumer,null,(t=>e.value===t?e.children:null)))};const c=function(e,i){const{size:c="small",loading:l,icon:u,iconClass:d,className:h,tooltip:p,rotate:f,anim:g,fill:m,disabled:v,onClick:y,children:_}=e,b=r.__rest(e,["size","loading","icon","iconClass","className","tooltip","rotate","anim","fill","disabled","onClick","children"]),w={rotate:f,anim:g,fill:m};let S;if(u)if(s.defaultIconMap[u])S=a.getKaitianIcon(u,w);else{const{getIcon:e}=n.useContext(t.IconContext);S=e(u,w)}else S=d;return n.createElement("span",Object.assign({},b,{title:p,onClick:y,ref:i,className:o.default("kt-icon",S,h,{"kt-icon-loading":l,"kt-icon-disabled":!!v,[`kt-icon-${c}`]:!!c,"kt-icon-clickable":!!y})}),_)};t._InternalIcon=n.forwardRef(c),t.Icon=n.forwardRef(c)},60146:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(34810),a=i(28652),c=new Set;function l(e,t=0){const i=e[t];if(r=i,Boolean("string"==typeof r&&r.length&&!c.has(r))){const r=document.createElement("script");r.setAttribute("src",i),r.setAttribute("data-namespace",i),e.length>t+1&&(r.onload=()=>{l(e,t+1)},r.onerror=()=>{l(e,t+1)}),c.add(i),document.body.appendChild(r)}var r}const u={width:"1em",height:"1em",fill:"currentColor"};t.createFromIconfontCN=function(e={}){const{scriptUrl:t,extraCommonProps:i={}}=e;t&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(t)?l(t.reverse()):l([t]));const c=n.forwardRef(((e,t)=>{const{icon:c,children:l,rotate:d,anim:h,fill:p,className:f=""}=e,g=r.__rest(e,["icon","children","rotate","anim","fill","className"]),m={rotate:d,anim:h,fill:p};let v=null;c&&(v=n.createElement("svg",Object.assign({},u,{focusable:"false"}),n.createElement("use",{xlinkHref:`#${c}`}))),l&&(v=l);const y=a.getIconShapeClxList(m);return n.createElement(s._InternalIcon,Object.assign({},i,g,{className:o(f,y),ref:t}),v)}));return c.displayName="Iconfont",c}},94431:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(99422),n=i(69557);t.defaultIconfont=n.defaultIconfont;const o={"folder-fill-open":"folder-fill","search-close":"close-square",fold:"collapse-all","setting-general":"setting","setting-editor":"codelibrary-fill","setting-file":"file-text","setting-extension":"extension","run-debug":"start","toggle-breakpoints":"deactivate-breakpoints",withdraw:"fallback",terminate1:"stop",stop1:"stop",add:"plus",rundebug:"start",terminate:"stop"},s=Object.assign({},n.defaultIconfont,o);t.defaultIconMap=new Proxy(s,{get(e,t){const i=o[t];return r.default(!i,`Icon '${t}' was a typo, please use '${i}' instead`),e[t]}});t.iconManager=new class{constructor(){this._ktIconPrefixes=[],this._iconMap={}}update(e,t){this._iconMap[e]=t,this._ktIconPrefixes.push(e)}getIconClx(e){let t=this._ktIconPrefixes.length;for(;!this._iconMap[this._ktIconPrefixes[--t]][e]&&0!==t;);const i=this._iconMap[this._ktIconPrefixes[t]][e];return i?[`${this._ktIconPrefixes[t]}${i}`]:(r.default(!1,"图标库缺失图标:"+e),[])}};t.iconManager.update("kaitian-icon kticon-",t.defaultIconMap)},69557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIconfont={"Gitlab-fill":"Gitlab-fill",LinkE:"LinkE",PR:"PR",ab:"ab",abl:"abl","add-comments":"add-comments",anymock:"anymock","arrow-down":"arrow-down","arrow-right":"arrow-right",arrowdown:"arrowdown",arrowup:"arrowup",basement:"basement","basement-fileicon":"basement-fileicon",bell:"bell",branches:"branches","breakpoint-activate":"breakpoint-activate","breakpoint-deactivate":"breakpoint-deactivate","breakpoint-disabled":"breakpoint-disabled","breakpoint-enabled":"breakpoint-enabled","breakpoint-stop":"breakpoint-stop","breakpoint-stop-before":"breakpoint-stop-before","browser-preview":"browser-preview","bulb-fill":"bulb-fill","caret-right":"caret-right",check:"check","check-circle-fill":"check-circle-fill","check-close-circle-o":"check-close-circle-o","check-square-fill":"check-square-fill","check-square-o":"check-square-o",clear:"clear",close:"close","close-all":"close-all","close-circle":"close-circle","close-circle-fill":"close-circle-fill",close1:"close1",close_square:"close_square","cloud-download":"cloud-download","cloud-server":"cloud-server",code:"code","codelibrary-fill":"codelibrary-fill","collapse-all":"collapse-all","compass-fill":"compass-fill","content-search":"content-search",continue:"continue",control:"control","control-fill":"control-fill","dashboard-fill":"dashboard-fill","deactivate-breakpoints":"deactivate-breakpoints",debug:"debug",delete:"delete",deploy:"deploy",detail:"detail",disconnect:"disconnect","dock-down":"dock-down","dock-right":"dock-right",doubleright:"doubleright",down:"down",download:"download",drag:"drag",edit:"edit",editor:"editor",ellipsis:"ellipsis",embed:"embed",error:"error",execute:"execute",expand:"expand","expand-all":"expand-all",experiment:"experiment",explorer:"explorer",extension:"extension",eye:"eye","eye-close":"eye-close","file-copy":"file-copy","file-default":"file-default","file-exclamation":"file-exclamation","file-text":"file-text",focus:"focus",folder:"folder","folder-default":"folder-default","folder-fill":"folder-fill","folder-open":"folder-open","folder-open-fill":"folder-open-fill","follow-cursor":"follow-cursor",fullscreen:"fullscreen","fullscreen-exit":"fullscreen-exit","github-fill":"github-fill",gitlab:"gitlab","global-search":"global-search",huoban:"huoban","huoban-blue":"huoban-blue","info-circle":"info-circle","info-circle-fill":"info-circle-fill",kaitian:"kaitian",keyboard:"keyboard",layout:"layout",layout1:"layout1",left:"left","left-right-subfield":"left-right-subfield",line:"line",link:"link",max:"max",message:"message",min:"min",minus:"minus","minus-circle-fill":"minus-circle-fill",mobile:"mobile","mobile-phone":"mobile-phone",more:"more","new-file":"new-file","new-folder":"new-folder",open:"open","open-changes":"open-changes",openfile:"openfile",pause:"pause",plus:"plus","project-information":"project-information","question-circle":"question-circle","question-circle-o":"question-circle-o",refresh:"refresh",regex:"regex",reload:"reload",replace:"replace",repository:"repository",retrieval:"retrieval",right:"right",rollback:"rollback","save-all":"save-all",scm:"scm",search:"search",setting:"setting",sever:"sever",share:"share",shrink:"shrink",smile:"smile",start:"start",step:"step","step-in":"step-in","step-out":"step-out",stop:"stop",swap:"swap",sync:"sync",team:"team",terminal:"terminal","time-circle":"time-circle","time-circle-fill":"time-circle-fill",toolkit:"toolkit",tree:"tree",undock:"undock",unmax:"unmax",unorderedlist:"unorderedlist",up:"up","up-down-subfield":"up-down-subfield",wait:"wait","warning-circle":"warning-circle","warning-circle-fill":"warning-circle-fill","window-maximize":"window-maximize"}},84151:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(34810),t),r.__exportStar(i(28652),t);var n=i(60146);t.createFromIconfontCN=n.createFromIconfontCN},28652:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(94431);!function(e){e[e.rotate_90=0]="rotate_90",e[e.rotate_180=1]="rotate_180",e[e.rotate_270=2]="rotate_270",e[e.flip_horizontal=3]="flip_horizontal",e[e.flip_vertical=4]="flip_vertical",e[e.flip_both=5]="flip_both"}(t.ROTATE_TYPE||(t.ROTATE_TYPE={})),function(e){e[e.spin=0]="spin",e[e.pulse=1]="pulse"}(t.ANIM_TYPE||(t.ANIM_TYPE={}));const n=["rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both"],o=["spin","pulse"];function s(e){const{rotate:t,anim:i,fill:r}=e||{},s=[];return void 0!==t&&s.push(`iconfont-${n[t]}`),void 0!==i&&s.push(`iconfont-anim-${o[i]}`),r&&s.push("toggled"),s}t.updateKaitianIconMap=function(e,t){r.iconManager.update(e,t)},t.getIconShapeClxList=s,t.getKaitianIcon=function(e,t){const i=r.iconManager.getIconClx(e),n=s(t);return i.push(...n),i.join(" ")}},88774:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);i(90637),r.__exportStar(i(73258),t),r.__exportStar(i(69035),t),r.__exportStar(i(51777),t),r.__exportStar(i(64528),t),r.__exportStar(i(7512),t),r.__exportStar(i(36466),t),r.__exportStar(i(85366),t),r.__exportStar(i(60313),t),r.__exportStar(i(84151),t),r.__exportStar(i(97839),t),r.__exportStar(i(17087),t),r.__exportStar(i(19713),t),r.__exportStar(i(30185),t),r.__exportStar(i(10014),t),r.__exportStar(i(24458),t),r.__exportStar(i(64911),t),r.__exportStar(i(1544),t),r.__exportStar(i(95512),t)},24292:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(99422),a=i(84151);function c(e,t,i){if("function"==typeof i){let r=t;if("click"===t.type){r=Object.create(t),r.target=e,r.currentTarget=e;const n=e.value;return e.value="",i(r),void(e.value=n)}i(r)}}i(1723),t.Input=n.forwardRef(((e,t)=>{const{defaultValue:i,className:l,wrapperStyle:u,size:d="default",controls:h,onChange:p,selection:f,addonBefore:g,addonAfter:m,persistFocus:v=!0,hasClear:y,afterClear:_,value:b="",onValueChange:w,onPressEnter:S,onKeyDown:C}=e,E=r.__rest(e,["defaultValue","className","wrapperStyle","size","controls","onChange","selection","addonBefore","addonAfter","persistFocus","hasClear","afterClear","value","onValueChange","onPressEnter","onKeyDown"]);s.default(!h,"[@ali/ide-components Input]: `controls` was deprecated, please use `addonAfter` instead");const O=n.useRef(null),[k,D]=n.useState(!1),[M,x]=n.useState((()=>(null!=b?b:i)||"")),[T,A]=n.useState((()=>(null!=b?b:i)||""));n.useImperativeHandle(t,(()=>O.current)),n.useEffect((()=>{f&&void 0!==f.start&&!k&&O.current.setSelectionRange(f.start,f.end)}),[f,k]),n.useEffect((()=>{null!=b&&(b!==T&&b!==M&&x(b),b!==T&&A(b))}),[b]);const I=e=>{x(e),"function"==typeof w&&w(e),k||D(!0)},P=m||h,R=v?{onMouseDown:e=>{e.preventDefault()}}:{},L=(e,t)=>e?n.createElement("div",Object.assign({className:o("kt-input-addon",t)},R),n.Children.map(e,(e=>n.isValidElement(e)?n.cloneElement(e,R):null))):null,N=o("kt-input",l,{[`kt-input-${d}`]:d,"kt-input-disabled":e.disabled});return n.createElement("div",{className:N,style:u},L(g,"kt-input-addon-before"),n.createElement("div",{className:"kt-input-box"},n.createElement("input",Object.assign({ref:O,type:"text",autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",spellCheck:!1},E,{value:M,onChange:e=>{I(e.target.value),c(O.current,e,p)},onKeyDown:e=>{13===e.keyCode&&"function"==typeof S&&S(e),"function"==typeof C&&C(e)}})),y&&M&&n.createElement(a.Icon,Object.assign({className:"kt-input-clear",icon:"close-circle-fill",onClick:e=>{e.preventDefault(),I(""),c(O.current,e,p),"function"==typeof _&&_()}},R))),L(P,"kt-input-addon-after"))})),t.Input.displayName="KTInput"},35263:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(24292);class o extends r.Component{constructor(){super(...arguments),this.placeholderInputRef=r.createRef()}render(){const e=Object.assign({},this.props);return delete e.inputElement,delete e.innerRef,r.createElement(n.Input,Object.assign({},e,{type:"text",id:this.props.id,ref:this.placeholderInputRef}))}componentDidMount(){const{innerRef:e,inputElement:t}=this.props;this.placeholderInputRef.current.parentElement.replaceChild(t,this.placeholderInputRef.current),this.applyAttributes(),t.focus(),"function"==typeof e?e(t):null!==e&&"object"==typeof e&&null===e.current&&(e.current=t)}UNSAFE_componentWillUnmount(){const{innerRef:e,inputElement:t}=this.props;t.parentElement.replaceChild(this.placeholderInputRef.current,t),null!==e&&"object"==typeof e&&e.current&&(e.current=null)}shouldComponentUpdate(e){return this.applyAttributes(e),!1}applyAttributes(e=this.props){const{className:t,id:i,inputElement:r,style:n}=e;if("string"==typeof t&&(r.className=t),"string"==typeof i&&(r.id=i),null!==n&&"object"==typeof n)for(const e in n)"string"==typeof n[e]&&r[e]&&(r[e]=n[e])}}const s=r.forwardRef(((e,t)=>r.createElement(o,Object.assign({},e,{innerRef:t}))));t.bindInputElement=function(e){return t=>r.createElement(s,Object.assign({},t,{inputElement:e}))}},67471:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804);t.TextArea=()=>r.createElement("textarea",{name:"",id:"",cols:30,rows:10}),t.TextArea.displayName="KTTextArea"},57659:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(99422),a=i(24292);var c;i(26677),function(e){e[e.INFO=1]="INFO",e[e.WRANING=0]="WRANING",e[e.ERROR=2]="ERROR",e[e.WARNING=3]="WARNING"}(c=t.VALIDATE_TYPE||(t.VALIDATE_TYPE={})),t.ValidateInput=n.forwardRef(((e,t)=>{var{className:i,validate:l,onChange:u,onValueChange:d,validateMessage:h,popup:p=!0}=e,f=r.__rest(e,["className","validate","onChange","onValueChange","validateMessage","popup"]);const[g,m]=n.useState();n.useEffect((()=>{m(h)}),[h]),s.default(!g||g.type!==c.WRANING,"`VALIDATE_TYPE.WRANING` was a wrong typo, please use `VALIDATE_TYPE.WARNING` instead");const v=o({"validate-error":g&&g.type===c.ERROR,"validate-warning":g&&[c.WRANING,c.WARNING].includes(g.type),"validate-info":g&&g.type===c.INFO});return n.createElement("div",{className:o("input-box",{popup:p})},n.createElement(a.Input,Object.assign({type:"text",ref:t,className:o(i,g,v),onChange:e=>{let t;if(t="number"===e.target.type?e.target.valueAsNumber:e.target.value,"function"==typeof l){const e=l(t);m(e)}"function"==typeof u&&u(e),"function"==typeof d&&d(t)}},f)),(()=>{if(g&&g.message)return n.createElement("div",{className:o("validate-message",v,{popup:p})},g.message)})())})),t.ValidateInput.displayName="KTValidateInput"},51777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(67471),t),r.__exportStar(i(24292),t),r.__exportStar(i(57659),t),r.__exportStar(i(35263),t)},95512:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(99422),o=i(84151);function s(e){return r.createElement(t.LocalizeContext.Provider,{value:e.value},r.createElement(t.LocalizeContext.Consumer,null,(t=>e.value===t?e.children:null)))}t.LocalizeContext=r.createContext({localize:e=>(n.warning(!1,"Using the default localize fn"),"")}),t.LocalizeContext.displayName="LocalizeContext",t.LocalizeContextProvider=s,t.ComponentContextProvider=function(e){return r.createElement(o.IconContextProvider,{value:{getIcon:e.value.getIcon}},r.createElement(s,{value:{localize:e.value.localize}},e.children))}},19713:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(11187);function n(e){return(t,i)=>new Promise((n=>{r.default[e](t,i,n)}))}i(29883),t.message={success:n("success"),error:n("error"),info:n("info"),warning:n("warning"),loading:n("loading")}},97839:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(94184),n=i(63804),o=i(16318),s=i(73258);i(44835);const a=i(64911),c={[a.MessageType.Info]:15e3,[a.MessageType.Warning]:18e3,[a.MessageType.Error]:2e4};o.default.config({placement:"bottomRight"}),t.notification=o.default;const l=new Map;function u(e,i){switch(e){case a.MessageType.Info:t.notification.info(i);break;case a.MessageType.Warning:t.notification.warning(i);break;case a.MessageType.Error:t.notification.error(i);break;default:t.notification.open(i)}}t.open=function(e,t,i=!0,d,h,p,f,g){return new Promise((m=>{const v={key:d,className:r.default("kt-notification-wrapper",{"kt-notification-info":t===a.MessageType.Info,"kt-notification-error":t===a.MessageType.Error,"kt-notification-warn":t===a.MessageType.Warning}),duration:void 0!==f?null:c[t]/1e3,onClose:()=>{g&&g(),l.delete(d),m(void 0)},btn:h?h.map(((e,t)=>n.createElement(s.Button,{className:r.default("kt-notification-button"),size:"small",ghost:0===t,onClick:()=>{m(e),o.default.close(d)},key:e},e))):null,message:e,description:p};l.set(d,[t,v]),i||(v.closeIcon=n.createElement("span",null)),u(t,v)}))},t.close=function(e){t.notification.close(e)},t.update=function(e,t){const i=l.get(e);u(i[0],Object.assign(Object.assign({},i[1]),{key:e,message:t}))}},85366:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184),s=i(56697);i(55465),t.Overlay=e=>{var{maskClosable:t=!1,closable:i=!0,className:a,onClose:c,children:l,footer:u,title:d,getContainer:h}=e,p=r.__rest(e,["maskClosable","closable","className","onClose","children","footer","title","getContainer"]);return n.createElement(s.default,Object.assign({footer:u||null,maskClosable:t,closable:i,onCancel:c,title:d,getContainer:h,className:o("kt-overlay",a)},p),l)}},17087:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184);i(94410);const s=i(73258);var a,c;function l(){}!function(e){e[e.hover=0]="hover",e[e.program=1]="program"}(a=t.PopoverTriggerType||(t.PopoverTriggerType={})),function(e){e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(c=t.PopoverPosition||(t.PopoverPosition={})),t.Popover=e=>{var{delay:t,children:i,trigger:u,display:d,id:h,insertClass:p,popoverClass:f,content:g,position:m=c.top,title:v,titleClassName:y,action:_,onClickAction:b}=e,w=r.__rest(e,["delay","children","trigger","display","id","insertClass","popoverClass","content","position","title","titleClassName","action","onClickAction"]);const S=n.useRef(null),C=n.useRef(null),E=u||a.hover;let O,k;function D(){C.current&&S.current&&(clearTimeout(O),C.current.style.display="block",setTimeout((()=>{if(!S.current||!C.current)return;const{left:e,top:t,width:i,height:r}=S.current.getBoundingClientRect(),n=C.current.getBoundingClientRect();if(m===c.top){const r=e-n.width/2+i/2,o=t-n.height-7;C.current.style.left=(r<0?0:r)+"px",C.current.style.top=(o<0?0:o)+"px",C.current.style.visibility="visible"}else if(m===c.bottom){const o=e-n.width/2+i/2,s=t+r+7;C.current.style.left=(o<0?0:o)+"px",C.current.style.top=(s<0?0:s)+"px",C.current.style.visibility="visible"}else if(m===c.left){const i=e-n.width-7,o=t-n.height/2+r/2;C.current.style.left=(i<0?0:i)+"px",C.current.style.top=(o<0?0:o)+"px",C.current.style.visibility="visible"}else if(m===c.right){const o=e+i+7,s=t-n.height/2+r/2;C.current.style.left=(o<0?0:o)+"px",C.current.style.top=(s<0?0:s)+"px",C.current.style.visibility="visible"}})))}return n.useEffect((()=>{if(!C.current)return;const e=document.body.querySelector(`body > #${h}`);return e&&document.body.removeChild(e),C.current.style.display="none",document.body.appendChild(C.current),d&&D(),()=>{const e=document.body.querySelector(`body > #${h}`);e&&document.body.removeChild(e)}}),[d]),n.createElement("div",Object.assign({},Object.assign({},w),{className:o.default("kt-popover",p),onMouseEnter:function(){E===a.hover&&(t?k=setTimeout((()=>{D()}),t):D())},onMouseLeave:function(){E===a.hover&&(clearTimeout(k),function(){if(!C.current)return;O=setTimeout((()=>{C.current.style.display="none"}),500)}())}}),n.createElement("div",{className:o.default(f||"","kt-popover-content",`kt-popover-${m}`),ref:C,id:h},v&&n.createElement("p",{className:o.default("kt-popover-title",y)},v,_&&n.createElement(s.Button,{size:"small",type:"link",onClick:b||l},_)),g||""),n.createElement("span",{ref:S},i))}},83005:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(74061),s=i(1544),a=i(11728),c=i(94184);t.RECYCLE_LIST_STABILIZATION_TIME=500,t.RECYCLE_LIST_OVER_SCAN_COUNT=50,t.RecycleList=({width:e,height:i,className:l,style:u,data:d,onReady:h,itemHeight:p,header:f,footer:g,template:m,paddingBottomSize:v})=>{const y=n.useRef(),_=n.useRef({}),b=n.useRef();n.useEffect((()=>{if("function"==typeof h){h({scrollTo:e=>{var t;null===(t=y.current)||void 0===t||t.scrollTo(e)},scrollToIndex:(e,i="start")=>{var r,n;let o=e;if(f&&o++,"number"==typeof p)null===(r=y.current)||void 0===r||r.scrollTo(o*p,i);else{b.current&&clearTimeout(b.current);const r=(_.current?Object.keys(_.current):[]).slice(0,o).reduce(((e,t)=>e+w(t)),0);null===(n=y.current)||void 0===n||n.scrollToItem(e,i),b.current=setTimeout((()=>{var t;(_.current?Object.keys(_.current):[]).slice(0,o).reduce(((e,t)=>e+w(t)),0)!==r&&(null===(t=y.current)||void 0===t||t.scrollToItem(e,i)),b.current=null}),t.RECYCLE_LIST_STABILIZATION_TIME)}}})}}),[]);const w=e=>((null==_?void 0:_.current)||[])[e]||100,S=n.useMemo((()=>{let e=d.length;return f&&e++,g&&e++,e}),[d]),C=({index:e,style:t})=>{let i;if(0===e&&f)return n.createElement("div",{style:t},n.createElement(f,null));if(e+1===S&&g)return n.createElement("div",{style:t},n.createElement(g,null));if(i=f?d[e-1]:d[e],!i)return n.createElement("div",{style:t});const r={"aria-setsize":S,"aria-posinset":e};return n.createElement("div",Object.assign({style:t,role:"listitem"},r),n.createElement(m,{data:i,index:e}))},E=({index:e,style:t})=>{const i=n.useRef(null),r=n.useRef(),o=()=>{if(i.current){let t=0;for(let e=0;e{var i;_.current[e]!==t&&(_.current=Object.assign(Object.assign({},_.current),{[e]:t}),y.current&&(null===(i=y.current)||void 0===i||i.resetAfterIndex(0)))})(e,t)}};let s;return n.useEffect((()=>{if(i.current&&y.current){r.current=new MutationObserver(((e,t)=>{o()}));const e={childList:!0,attributes:!0,characterData:!0,attributeFilter:["class","style"],attributeOldValue:!0,characterDataOldValue:!0};r.current.observe(i.current,e),o()}return()=>{r.current.disconnect()}}),[i.current]),0===e&&f?n.createElement("div",{style:t},n.createElement(f,null)):e+1===S&&g?n.createElement("div",{style:t},n.createElement(g,null)):(s=f?d[e-1]:d[e],s?n.createElement("div",{style:t,ref:i},n.createElement(m,{data:s,index:e})):n.createElement("div",{style:t}))},O=e=>{const t=d[e];return t&&t.id?t.id:e},k=()=>{const e=_.current?Object.keys(_.current):[];return e.reduce(((e,t)=>e+w(t)),0)/e.length},D=n.forwardRef(((e,t)=>{const i=e,{style:o}=i,s=r.__rest(i,["style"]);return n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},o),{height:`${parseFloat(o.height)+(v||0)}px`})},s))}));return(()=>{const r="number"!=typeof p,d=!e||!i;return(()=>{let h;h=r?o.VariableSizeList:o.FixedSizeList;const f=({width:e,height:i})=>r?n.createElement(h,{width:e,height:i,itemData:[],itemSize:w,itemCount:S,getItemKey:O,overscanCount:t.RECYCLE_LIST_OVER_SCAN_COUNT,ref:y,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},u),className:c(l,"kt-recycle-list"),innerElementType:D,outerElementType:s.ScrollbarsVirtualList,estimatedItemSize:k()},E):n.createElement(h,{width:e,height:i,itemData:[],itemSize:p,itemCount:S,getItemKey:O,overscanCount:t.RECYCLE_LIST_OVER_SCAN_COUNT,ref:y,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},u),className:c(l,"kt-recycle-list"),innerElementType:D,outerElementType:s.ScrollbarsVirtualList},C);return d?n.createElement(a.default,null,f):f({width:e,height:i})})()})()}},24458:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(83005),t)},4900:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(74061),s=i(16448),a=i(79231),c=i(5246),l=i(65579),u=i(60106),d=i(90510),h=i(1544),p=i(43261);!function(e){e[e.RENDER_ITEM=0]="RENDER_ITEM",e[e.GET_RENDED_KEY=1]="GET_RENDED_KEY",e[e.RENDER_ERROR=2]="RENDER_ERROR"}(t.RenderErrorType||(t.RenderErrorType={}));const f=n.forwardRef(((e,t)=>{const i=e,{style:o}=i,s=r.__rest(i,["style"]);return n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},o),{height:`${parseFloat(o.height)+g.PADDING_BOTTOM_SIZE}px`})},s))}));class g extends n.Component{constructor(){super(...arguments),this.idxToRendererPropsCache=new Map,this.listRef=n.createRef(),this.disposables=new l.DisposableCollection,this.onErrorEmitter=new l.Emitter,this.onDidUpdateEmitter=new l.Emitter,this.onDidModelChangeEmitter=new l.Emitter,this.newPromptInsertionIndex=-1,this.idToFilterRendererPropsCache=new Map,this.filterFlattenBranchChildrenCache=new Map,this.filterWatcherDisposeCollection=new l.DisposableCollection,this.batchUpdatePromise=null,this.batchUpdate=(()=>{let e;const t=()=>{const{root:e}=this.props.model;let t=-1;if(this.promptTargetID>-1&&this.promptHandle instanceof c.NewPromptHandle&&this.promptHandle.parent&&this.promptHandle.parent.expanded&&e.isItemVisibleAtSurface(this.promptHandle.parent)&&!this.promptHandle.destroyed){const i=e.getIndexAtTreeNodeId(this.promptTargetID);if(i>-1||this.promptHandle.parent===e)if(this.promptHandle.type===d.TreeNodeType.TreeNode){const e=this.promptHandle.parent;t=e?this.getNewPromptInsertIndex(i,e):i+1}else t=i+1;else this.promptTargetID=-1}-1===t&&this.promptHandle&&this.promptHandle.constructor===c.NewPromptHandle&&!this.promptHandle.destroyed&&this.promptHandle.destroy(),this.newPromptInsertionIndex=t,this.idxToRendererPropsCache.clear(),this.forceUpdate(this.batchUpdateResolver),this.props.filter&&this.props.filterProvider&&this.props.filterProvider.filterAlways&&this.filterItems(this.props.filter)};return()=>(this.batchUpdatePromise||(this.batchUpdatePromise=new Promise((e=>this.batchUpdateResolver=e)),this.batchUpdatePromise.then((()=>{this.batchUpdatePromise=null,this.batchUpdateResolver=null,this.onDidUpdateEmitter.fire()}))),clearTimeout(e),e=setTimeout(t,g.BATCHED_UPDATE_MAX_DEBOUNCE_MS),this.batchUpdatePromise)})(),this.promptNewTreeNode=e=>this.promptNew(e),this.promptNewCompositeTreeNode=e=>this.promptNew(e,d.TreeNodeType.CompositeTreeNode),this.promptRename=async(e,t)=>{var i;const{root:r}=this.props.model,n="string"==typeof e?await r.getTreeNodeByPath(e):e;if(!s.TreeNode.is(n)||s.CompositeTreeNode.isRoot(n))throw new TypeError("Cannot rename object of type "+typeof n);const o=new a.RenamePromptHandle(t||n.name,n);return this.promptHandle=o,this.promptTargetID=n.id,r.isItemVisibleAtSurface(n)?await this.batchUpdate():await n.parent.setExpanded(!0),null===(i=this.listRef.current)||void 0===i||i.scrollToItem(r.getIndexAtTreeNodeId(this.promptTargetID)),this.promptHandle},this.expandNode=async e=>{const{root:t}=this.props.model,i="string"==typeof e?await t.getTreeNodeByPath(e):await t.getTreeNodeByPath(e.path);if(i&&s.CompositeTreeNode.is(i))return i.setExpanded(!0)},this.collapseNode=async e=>{const{root:t}=this.props.model,i="string"==typeof e?await t.getTreeNodeByPath(e):t.getTreeNodeByPath(e.path);if(i&&s.CompositeTreeNode.is(i))return i.setCollapsed()},this.ensureVisible=async(e,t="smart",i=!1)=>{const{root:r}=this.props.model,n="string"==typeof e?await r.forceLoadTreeNodeAtPath(e):e;if(!s.TreeNode.is(n)||s.CompositeTreeNode.isRoot(n))return;let o=n.parent;for(;o;)o.expanded||await o.setExpanded(!0),o=o.parent;return i?this.tryScrollIntoViewWhileStable(n,t):this.tryScrollIntoView(n,t),n},this.getItemAtIndex=e=>{const{filter:t}=this.props;if(t&&this.filterFlattenBranch.length>0)return this.idToFilterRendererPropsCache.get(this.filterFlattenBranch[e]);let i=this.idxToRendererPropsCache.get(e);if(!i){const t=this.newPromptInsertionIndex,{root:r}=this.props.model;if(t>-1&&this.promptHandle&&this.promptHandle.constructor===c.NewPromptHandle&&!this.promptHandle.destroyed)if(e===t)i={itemType:d.TreeNodeType.NewPrompt,item:this.promptHandle};else{const n=r.getTreeNodeAtIndex(e-(e>=t?1:0));i={itemType:s.CompositeTreeNode.is(n)?d.TreeNodeType.CompositeTreeNode:d.TreeNodeType.TreeNode,item:n}}else{const t=r.getTreeNodeAtIndex(e);i=t&&t.id===this.promptTargetID&&this.promptHandle&&this.promptHandle.constructor===a.RenamePromptHandle&&!this.promptHandle.destroyed?{itemType:d.TreeNodeType.RenamePrompt,item:this.promptHandle}:{itemType:s.CompositeTreeNode.is(t)?d.TreeNodeType.CompositeTreeNode:d.TreeNodeType.TreeNode,item:t}}this.idxToRendererPropsCache.set(e,i)}return i},this.handleListScroll=({scrollOffset:e})=>{const{model:t}=this.props;t.state.saveScrollOffset(e)},this.getItemKey=e=>{const t=this.getItemAtIndex(e);return t&&t.item&&t.item.id?t.item.id:e},this.filterItems=e=>{const{model:{root:t},filterProvider:i}=this.props;if(this.filterWatcherDisposeCollection.dispose(),this.idToFilterRendererPropsCache.clear(),!e)return;const r=/\//.test(e),o=new Set,a=new Map,c=[];for(let e=0;e{if(t&&t.path.indexOf(e)>-1){o.add(t.id);let e=t.parent;for(;e&&!s.CompositeTreeNode.isRoot(e);)o.add(e.id),e=e.parent}}));else{let t=[];t=i?p.filter(e,c,i.fuzzyOptions()):p.filter(e,c,g.FILTER_FUZZY_OPTIONS),t.forEach((e=>{const t=e.original;o.add(t.id);let i=t.parent;for(a.set(t.id,(()=>n.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:e.string||""}})));i&&!s.CompositeTreeNode.isRoot(i);)o.add(i.id),i=i.parent}))}this.filterFlattenBranch=new Array(o.size);for(let e=0,i=0;i{const r=this.filterFlattenBranch.indexOf(e.id);if(i){const t=this.filterFlattenBranchChildrenCache.get(e.id);t&&t.length>0&&(this.filterFlattenBranch=s.spliceArray(this.filterFlattenBranch,r+1,0,t),this.filterFlattenBranchChildrenCache.delete(e.id))}else{const i=[];for(let n=r+1;ne.depth))break;i.push(r.id)}this.filterFlattenBranchChildrenCache.set(e.id,i),this.filterFlattenBranch=s.spliceArray(this.filterFlattenBranch,r+1,i.length)}}))),this.filterWatcherDisposeCollection.push(l.Disposable.create((()=>{this.filterFlattenBranchChildrenCache.clear()})))},this.renderItem=({index:e,style:t})=>{var i,r,o,a,c,l,d;const{children:h,overflow:p="ellipsis"}=this.props,f=this.getItemAtIndex(e);if(!f)return n.createElement(n.Fragment,null);const{item:g,itemType:m,template:v}=f;if(!g)return n.createElement("div",{style:t});const y="ellipsis"===p?t:Object.assign(Object.assign({},t),{width:"auto",minWidth:"100%"});let _;return s.CompositeTreeNode.is(g)?_={"aria-label":null===(i=g.accessibilityInformation)||void 0===i?void 0:i.label,"aria-expanded":g.expanded,"aria-level":g.depth,"aria-setsize":null===(o=null===(r=g.parent)||void 0===r?void 0:r.children)||void 0===o?void 0:o.length,"aria-posinset":e}:s.TreeNode.is(g)&&(_={"aria-label":null===(a=g.accessibilityInformation)||void 0===a?void 0:a.label,"aria-level":g.depth,"aria-setsize":null===(l=null===(c=g.parent)||void 0===c?void 0:c.children)||void 0===l?void 0:l.length,"aria-posinset":e}),n.createElement("div",Object.assign({style:y,role:(null===(d=g.accessibilityInformation)||void 0===d?void 0:d.role)||"treeiem"},_),n.createElement(u.NodeRendererWrap,{item:g,depth:g.depth,itemType:m,template:v,hasPrompt:!!this.promptHandle&&!this.promptHandle.destroyed,expanded:s.CompositeTreeNode.is(g)?g.expanded:void 0},h))}}getNewPromptInsertIndex(e,t){const{root:i}=this.props.model;let r=e+1;for(;r-e<=t.branchSize;r++){const e=i.getTreeNodeAtIndex(r);if(!e)return r;if(!s.CompositeTreeNode.is(e)&&!((null==e?void 0:e.depth)>t.depth+1))return r}return r}UNSAFE_componentWillUpdate(e){this.props.filter!==e.filter&&this.filterItems(e.filter),this.props.model!==e.model&&(this.idxToRendererPropsCache.clear(),this.idToFilterRendererPropsCache.clear())}componentDidUpdate(e){var t;if(this.props.model!==e.model){this.disposables.dispose();const{model:i}=this.props;null===(t=this.listRef.current)||void 0===t||t.scrollTo(i.state.scrollOffset),this.disposables.push(i.onChange(this.batchUpdate)),this.disposables.push(i.state.onDidLoadState((()=>{var e;null===(e=this.listRef.current)||void 0===e||e.scrollTo(i.state.scrollOffset)}))),this.onDidModelChangeEmitter.fire({preModel:e.model,nextModel:i})}}async promptNew(e,t=d.TreeNodeType.TreeNode){var i;const{root:r}=this.props.model;let n="string"==typeof e?await r.getTreeNodeByPath(e):e;if(t!==d.TreeNodeType.TreeNode&&t!==d.TreeNodeType.CompositeTreeNode)throw new TypeError(`Invalid type supplied. Expected 'TreeNodeType.TreeNode' or 'TreeNodeType.CompositeTreeNode', got ${t}`);if(n&&!s.CompositeTreeNode.is(n)&&(n=n.parent,!s.CompositeTreeNode.is(n)))throw new TypeError("Cannot create new prompt at object of type "+typeof n);if(!n)throw new Error(`Cannot find node at ${e}`);const o=new c.NewPromptHandle(t,n);return this.promptHandle=o,this.promptTargetID=n.id,n===r||n.expanded&&r.isItemVisibleAtSurface(n)?await this.batchUpdate():await n.setExpanded(!0),this.newPromptInsertionIndex>=0?null===(i=this.listRef.current)||void 0===i||i.scrollToItem(this.newPromptInsertionIndex):this.tryScrollIntoViewWhileStable(this.promptHandle),this.promptHandle}tryScrollIntoView(e,t="auto"){var i,r;const{root:n}=this.props.model;e.constructor!==c.NewPromptHandle||e.destroyed?n.isItemVisibleAtSurface(e)&&(null===(r=this.listRef.current)||void 0===r||r.scrollToItem(n.getIndexAtTreeNode(e),t)):null===(i=this.listRef.current)||void 0===i||i.scrollToItem(this.newPromptInsertionIndex)}tryScrollIntoViewWhileStable(e,t="auto"){const{root:i}=this.props.model;this.tryEnsureVisibleTimes>g.TRY_ENSURE_VISIBLE_MAX_TIMES?this.tryEnsureVisibleTimes=0:l.Event.once(this.props.model.onChange)((async()=>{var r,n;await this.batchUpdatePromise,e.constructor!==c.NewPromptHandle||e.destroyed?i.isItemVisibleAtSurface(e)?(null===(n=this.listRef.current)||void 0===n||n.scrollToItem(i.getIndexAtTreeNode(e),t),this.tryEnsureVisibleTimes=0):(this.tryEnsureVisibleTimes++,this.tryScrollIntoViewWhileStable(e,t)):null===(r=this.listRef.current)||void 0===r||r.scrollToItem(this.newPromptInsertionIndex)}))}componentDidMount(){var e;const{model:t,onReady:i}=this.props;if(null===(e=this.listRef.current)||void 0===e||e.scrollTo(t.state.scrollOffset),this.disposables.push(t.onChange(this.batchUpdate)),this.disposables.push(t.state.onDidLoadState((()=>{var e;null===(e=this.listRef.current)||void 0===e||e.scrollTo(t.state.scrollOffset)}))),"function"==typeof i){i({promptNewTreeNode:this.promptNewTreeNode,promptNewCompositeTreeNode:this.promptNewCompositeTreeNode,promptRename:this.promptRename,expandNode:this.expandNode,collapseNode:this.collapseNode,ensureVisible:this.ensureVisible,getModel:()=>this.props.model,getCurrentSize:()=>({width:this.props.width,height:this.props.height}),onDidChangeModel:this.onDidModelChangeEmitter.event,onDidUpdate:this.onDidUpdateEmitter.event,onOnceDidUpdate:l.Event.once(this.onDidUpdateEmitter.event),onError:this.onErrorEmitter.event})}}componentWillUnmount(){this.disposables.dispose()}set promptHandle(e){this._promptHandle!==e&&(this._promptHandle instanceof a.PromptHandle&&!this._promptHandle.destroyed&&this._promptHandle.destroy(),e.onDestroy(this.batchUpdate),this._promptHandle=e)}get promptHandle(){return this._promptHandle}get adjustedRowCount(){const{root:e}=this.props.model,{filter:t}=this.props;return t?this.filterFlattenBranch.length:this.newPromptInsertionIndex>-1&&this.promptHandle&&this.promptHandle.constructor===c.NewPromptHandle&&!this.promptHandle.destroyed?e.branchSize+1:e.branchSize}render(){const{itemHeight:e,width:t,height:i,style:r,className:s,placeholder:a,overScanCount:c}=this.props;if(a&&0===this.adjustedRowCount){const e=a;return n.createElement(e,null)}return n.createElement(o.FixedSizeList,{width:t,height:i,itemData:[],itemSize:e,itemCount:this.adjustedRowCount,getItemKey:this.getItemKey,overscanCount:c||g.DEFAULT_OVER_SCAN_COUNT,ref:this.listRef,onScroll:this.handleListScroll,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},r),className:s,outerElementType:h.ScrollbarsVirtualList,innerElementType:f},this.renderItem)}}t.RecycleTree=g,g.PADDING_BOTTOM_SIZE=22,g.BATCHED_UPDATE_MAX_DEBOUNCE_MS=100,g.TRY_ENSURE_VISIBLE_MAX_TIMES=5,g.FILTER_FUZZY_OPTIONS={pre:"",post:"",extract:e=>null==e?void 0:e.name},g.DEFAULT_OVER_SCAN_COUNT=50},60106:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804);class n extends r.Component{render(){const{item:e,itemType:t,children:i,template:n,hasPrompt:o}=this.props;return r.createElement(i,{item:e,itemType:t,template:n,hasPrompt:o})}shouldComponentUpdate(e){return!0}}t.NodeRendererWrap=n},97137:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(90510);t.RecycleTreeAdaptiveDecorator=e=>t=>{const{model:i,itemHeight:o,onReady:s}=t,a=r.useRef(),[c,l]=r.useState(0),u=()=>{l(i.root.branchSize*o)};return r.useEffect((()=>{a.current=i,a.current.root&&(l(a.current.root.branchSize*o),a.current.root.watcher.on(n.TreeNodeEvent.DidChangeExpansionState,u))}),[i]),r.createElement(r.Fragment,null,r.createElement(e,Object.assign(Object.assign({},t),{height:c,onReady:e=>{s&&s(Object.assign(Object.assign({},e),{promptNewTreeNode:async t=>{const i=await e.promptNewTreeNode(t);return a.current&&l(a.current.root.branchSize*o+o),i.onDestroy((()=>{a.current&&l(a.current.root.branchSize*o)})),i.onCancel((()=>{a.current&&l(a.current.root.branchSize*o)})),i},promptNewCompositeTreeNode:async t=>{const i=await e.promptNewCompositeTreeNode(t);return a.current&&l(a.current.root.branchSize*o+o),i.onDestroy((()=>{a.current&&l(a.current.root.branchSize*o)})),i.onCancel((()=>{a.current&&l(a.current.root.branchSize*o)})),i}}))}})))}},10192:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(93096),s=i(84151),a=i(51777),c=i(95512);i(2170);const l=e=>{const{localize:t}=n.useContext(c.LocalizeContext);return n.createElement("div",{className:"kt-recycle-tree-filter-wrapper"},n.createElement(a.Input,Object.assign({hasClear:!0,autoFocus:!0,className:"kt-recycle-tree-filter-input",size:"small"},e,{placeholder:e.placeholder||t("tree.filter.placeholder"),addonBefore:n.createElement(s.Icon,{className:"kt-recycle-tree-filter-icon",icon:"retrieval"})})))};t.RecycleTreeFilterDecorator=e=>t=>{const[i,s]=n.useState(""),[a,c]=n.useState(""),{beforeFilterValueChange:u,filterEnabled:d,height:h,filterPlaceholder:p,filterAfterClear:f,onReady:g,filterAutoFocus:m}=t,v=r.__rest(t,["beforeFilterValueChange","filterEnabled","height","filterPlaceholder","filterAfterClear","onReady","filterAutoFocus"]),y=o((async e=>{u&&await u(e),c(e)}),500);return n.createElement(n.Fragment,null,d&&n.createElement(l,{afterClear:f,placeholder:p,value:i,autoFocus:m,onValueChange:e=>{s(e),y(e)}}),n.createElement(e,Object.assign(Object.assign({},v),{height:h-(d?30:0),onReady:e=>{g&&g(Object.assign(Object.assign({},e),{clearFilter:()=>{c(""),s("")}}))},filter:a})))}},97797:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(10192),t),r.__exportStar(i(97137),t)},10014:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(4900),t),r.__exportStar(i(60106),t),r.__exportStar(i(79231),t),r.__exportStar(i(16448),t),r.__exportStar(i(90510),t),r.__exportStar(i(97797),t)},5246:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53242),n=i(16448);class o extends r.PromptHandle{constructor(e,t){super(),this.type=e,this.parent=t,this._id=n.TreeNode.nextId()}get id(){return this._id}get depth(){return this.parent.depth+1}}t.NewPromptHandle=o},53242:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(51777),n=i(65579);var o;!function(e){e[e.INFO=1]="INFO",e[e.ERROR=2]="ERROR",e[e.WARNING=3]="WARNING"}(o=t.PROMPT_VALIDATE_TYPE||(t.PROMPT_VALIDATE_TYPE={}));t.PromptHandle=class{constructor(){this.disposables=new n.DisposableCollection,this.isInPendingCommitState=!1,this._destroyed=!1,this._hasValidateElement=!1,this._hasAddonAfter=!1,this.onChangeEmitter=new n.Emitter,this.onCommitEmitter=new n.Emitter,this.onCancelEmitter=new n.Emitter,this.onFocusEmitter=new n.Emitter,this.onBlurEmitter=new n.Emitter,this.onDestroyEmitter=new n.Emitter,this.handleClick=e=>{e.stopPropagation()},this.handleKeyup=e=>{this.onChangeEmitter.fire(this.$.value)},this.handleKeydown=async e=>{if("Escape"===e.key){if((await this.onCancelEmitter.fireAndAwait(this.$.value)).some((e=>!1===e.result||!!e.err)))return;this.destroy()}if("Enter"===e.key){this.isInPendingCommitState=!0,this.$.disabled=!0;if((await this.onCommitEmitter.fireAndAwait(this.$.value)).some((e=>!1===e.result||!!e.err)))return this.isInPendingCommitState=!1,this.$.disabled=!1,void this.$.focus();this.isInPendingCommitState=!1,this.$.disabled=!1,this.destroy()}},this.handleFocus=()=>{this.onFocusEmitter.fire(this.$.value)},this.handleBlur=async e=>{var t;if(await(t=0,new Promise((e=>setTimeout(e,t)))),!this.$.isConnected&&!this.destroyed)return;(await this.onBlurEmitter.fireAndAwait(this.$.value)).some((e=>!1===e.result||!!e.err))||this.isInPendingCommitState||this.destroy()},this.$=document.createElement("input"),this.$.setAttribute("type","text"),this.$.setAttribute("name","no_keybinding"),this.$.setAttribute("spellcheck","false"),this.$.setAttribute("autoCapitalize","off"),this.$.setAttribute("autoCorrect","off"),this.$.setAttribute("autoComplete","off"),this.ProxiedInput=r.bindInputElement(this.$),this.$.addEventListener("click",this.handleClick),this.$.addEventListener("keyup",this.handleKeyup),this.$.addEventListener("keydown",this.handleKeydown),this.$.addEventListener("focus",this.handleFocus),this.$.addEventListener("blur",this.handleBlur),this.$validate=document.createElement("div"),this.$validate.setAttribute("style","top: calc(100% - 1px);"),this.$addonAfter=document.createElement("div"),this.$addonAfter.setAttribute("class","kt-input-addon-after")}get destroyed(){return this._destroyed}get onChange(){return this.onChangeEmitter.event}get onCommit(){return this.onCommitEmitter.event}get onCancel(){return this.onCancelEmitter.event}get onFocus(){return this.onFocusEmitter.event}get onBlur(){return this.onBlurEmitter.event}get onDestroy(){return this.onDestroyEmitter.event}focus(){this.$.focus()}setSelectionRange(e,t){this.$.setSelectionRange(e,t)}addClassName(e){this.$.classList.add(e)}removeClassName(e){this.$.classList.remove(e)}addAddonAfter(e){var t,i;this._hasAddonAfter||this._destroyed||(null===(i=null===(t=this.$.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i||i.appendChild(this.$addonAfter),this._hasAddonAfter=!0);const r=document.createElement("div");r.setAttribute("class",e),this.$addonAfter.appendChild(r)}removeAddonAfter(){var e,t,i;this._hasAddonAfter&&(null===(e=this.$addonAfter.firstChild)||void 0===e||e.remove(),null===(i=null===(t=this.$.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i||i.removeChild(this.$addonAfter),this._hasAddonAfter=!1)}addValidateMessage(e){var t,i,r,n,s;this._hasValidateElement||this._destroyed||(null===(r=null===(i=null===(t=this.$.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.parentElement)||void 0===r||r.appendChild(this.$validate),this._hasValidateElement=!0);let a="validate-message popup ";e&&e.type===o.ERROR?this._validateClassName="validate-error":e&&e.type===o.WARNING?this._validateClassName="validate-warning":this._validateClassName="validate-info",a+=this._validateClassName,this.$validate.classList.value=a,this.$validate.innerText=e.message||"",null===(s=null===(n=this.$.parentElement)||void 0===n?void 0:n.parentElement)||void 0===s||s.classList.add(this._validateClassName)}removeValidateMessage(){var e,t,i,r,n;this._hasValidateElement&&(null===(i=null===(t=null===(e=this.$.parentElement)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i||i.removeChild(this.$validate),this._hasValidateElement=!1,null===(n=null===(r=this.$.parentElement)||void 0===r?void 0:r.parentElement)||void 0===n||n.classList.remove(this._validateClassName))}destroy(){this._destroyed||(this._destroyed=!0,this.$.removeEventListener("click",this.handleClick),this.$.removeEventListener("keyup",this.handleKeyup),this.$.removeEventListener("keydown",this.handleKeydown),this.$.removeEventListener("focus",this.handleFocus),this.$.removeEventListener("blur",this.handleBlur),this.removeValidateMessage(),this.removeAddonAfter(),this.$.disabled=!1,this.onDestroyEmitter.fire(this.$.value),this.disposables.dispose())}}},88683:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53242);class n extends r.PromptHandle{constructor(e,t){super(),this.originalFileName=e,this.target=t,this.$.value=e,this.setSelectionRange(0,e.lastIndexOf("."))}get id(){return this.target.id}get depth(){return this.target.depth}}t.RenamePromptHandle=n},79231:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(53242),t),r.__exportStar(i(88683),t),r.__exportStar(i(5246),t)},57241:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(76309),n=i(65579);t.Tree=class{constructor(){this.onChangedEmitter=new n.Emitter,this.onNodeRefreshedEmitter=new n.Emitter,this.toDispose=new n.DisposableCollection,this.nodes={}}get onNodeRefreshed(){return this.onNodeRefreshedEmitter.event}dispose(){this.toDispose.dispose()}get root(){return this._root}set root(e){this._root=e,this.root&&this.root.ensureLoaded()}fireChanged(){this.onChangedEmitter.fire(void 0)}sortComparator(e,t){return e.constructor===t.constructor?e.name>t.name?1:e.name{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(90510),n=i(65579);function o(e,t,i=0,r){const n=e.slice(0);return n.splice(t,i,...r||[]),n}t.spliceArray=o;class s{constructor(e,t,i,r,n){this._uid=s.nextId(),this._parent=t,this._tree=e,this._disposed=!1,this._visible=!0,this._metadata=Object.assign({},r||{}),this._depth=t?t.depth+1:0,i?this._watcher=i:t&&(this._watcher=t.watcher),n&&n.disableCache||s.setTreeNode(this._uid,this.path,this)}static is(e){return!!e&&"depth"in e&&"name"in e&&"path"in e&&"id"in e}static getTreeNodeById(e){return s.idToTreeNode.get(e)}static getTreeNodeByPath(e){return s.pathToTreeNode.get(e)}static setTreeNode(e,t,i){s.idToTreeNode.set(e,i),s.pathToTreeNode.set(t,i)}static removeTreeNode(e,t){s.idToTreeNode.delete(e),s.pathToTreeNode.delete(t)}get disposed(){return this._disposed}get depth(){return this._depth}get parent(){return this._parent}set parent(e){this._parent=e}get whenReady(){return(async()=>{})()}get type(){return r.TreeNodeType.TreeNode}get id(){return this._uid}get name(){return this.parent?this.getMetadata("name"):`root_${this._uid}`}set name(e){this.addMetadata("name",e)}get path(){return this.parent?new n.Path(this.parent.path).join(this.name).toString():new n.Path(`/${this.name}`).toString()}get accessibilityInformation(){return{label:this.name,role:"treeitem"}}getMetadata(e){return this._metadata[e]}addMetadata(e,t){if(e in this._metadata){const i=this._metadata[e];this._metadata[e]=t,this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Updated,key:e,prevValue:i,value:t})}else this._metadata[e]=t,this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Added,key:e,prevValue:void 0,value:t})}removeMetadata(e){if(e in this._metadata){const t=this._metadata[e];delete this._metadata[e],this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Removed,key:e,prevValue:t,value:void 0})}}mv(e,t=this.name){const i=this._parent;if(null===e||!a.is(e))return this._parent=void 0,void this.dispose();const r=i!==e,n=this.path;this._depth=e.depth+1,(r||t!==this.name)&&(this.name=t,r&&this._watcher.notifyWillChangeParent(this,i,e),this.parent&&(this.parent.unlinkItem(this,!0),this._parent=e,this.parent.insertItem(this)),r&&this._watcher.notifyDidChangeParent(this,i,e)),this.path!==n&&this._watcher.notifyDidChangePath(this)}get visible(){return this._visible}setVisible(e){return this._visible=e,this}dispose(){this._disposed||(this._watcher.notifyWillDispose(this),s.removeTreeNode(this._uid,this.path),this._watcher.notifyDidDispose(this),this._disposed=!0)}}t.TreeNode=s,s.nextId=(()=>{let e=0;return()=>e++})(),s.idToTreeNode=new Map,s.pathToTreeNode=new Map;class a extends s{constructor(e,t,i,o,a){super(e,t,i,o,a),this._children=null,this.refreshTasks=[],this.handleWatchEvent=async e=>{if(this.watcher.notifyWillProcessWatchEvent(this,e),e.type===r.WatchEvent.Moved){const{oldPath:t,newPath:i}=e;if("string"!=typeof t)throw new TypeError("Expected oldPath to be a string");if("string"!=typeof i)throw new TypeError("Expected newPath to be a string");if(n.Path.isRelative(t))throw new TypeError("oldPath must be absolute");if(n.Path.isRelative(i))throw new TypeError("newPath must be absolute");this.transferItem(t,i)}else if(e.type===r.WatchEvent.Added){const{node:t}=e;if(!s.is(t))throw new TypeError("Expected node to be a TreeNode");this.insertItem(t)}else if(e.type===r.WatchEvent.Removed){const{path:t}=e,i=new n.Path(t),r=i.dir.toString(),o=i.base.toString();if(r===this.path&&this.children){const e=this.children.find((e=>e.name===o));e&&this.unlinkItem(e)}}else{const e=this.getAllExpandedNodePath();if(this.children)for(const e of this.children)e.dispose();this.isItemVisibleAtRootSurface(this)?await this.refresh(e):(this.isExpanded=!1,this._children=null)}this.watcher.notifyDidProcessWatchEvent(this,e)},this.isExpanded=!t,this._branchSize=0,t?this._watcher=t.watcher:(this.watchEvents=new Map,this._watcher=this.generatorWatcher())}static defaultSortComparator(e,t){return e.constructor===t.constructor?e.name>t.name?1:e.name{this.watchEvents.delete(e)};return{notifyWillProcessWatchEvent:(t,i)=>{e.fire({type:r.TreeNodeEvent.WillProcessWatchEvent,args:[t,i]})},notifyWillChangeParent:(t,i,n)=>{e.fire({type:r.TreeNodeEvent.WillChangeParent,args:[t,i,n]})},notifyDidChangeParent:(t,i,n)=>{e.fire({type:r.TreeNodeEvent.DidChangeParent,args:[t,i,n]})},notifyWillDispose:t=>{e.fire({type:r.TreeNodeEvent.DidChangeParent,args:[t]})},notifyDidDispose:t=>{e.fire({type:r.TreeNodeEvent.DidChangeParent,args:[t]})},notifyDidProcessWatchEvent:(t,i)=>{e.fire({type:r.TreeNodeEvent.DidProcessWatchEvent,args:[t,i]})},notifyDidChangePath:t=>{e.fire({type:r.TreeNodeEvent.DidChangePath,args:[t]})},notifyWillChangeExpansionState:(t,i)=>{const n=this.isItemVisibleAtSurface(t);e.fire({type:r.TreeNodeEvent.WillChangeExpansionState,args:[t,i,n]})},notifyDidChangeExpansionState:(t,i)=>{const n=this.isItemVisibleAtSurface(t);e.fire({type:r.TreeNodeEvent.DidChangeExpansionState,args:[t,i,n]})},notifyDidChangeMetadata:(t,i)=>{e.fire({type:r.TreeNodeEvent.DidChangeMetadata,args:[t,i]})},notifyDidUpdateBranch:()=>{e.fire({type:r.TreeNodeEvent.BranchDidUpdate,args:[]})},notifyWillResolveChildren:(t,i)=>{e.fire({type:r.TreeNodeEvent.WillResolveChildren,args:[t,i]})},notifyDidResolveChildren:(t,i)=>{e.fire({type:r.TreeNodeEvent.DidResolveChildren,args:[t,i]})},on:(e,r)=>{const n=t((t=>{t.type===e&&r(...t.args)}));return i.push(n),n},onWatchEvent:(e,t)=>{const i=o;return this.watchEvents.set(e,{terminator:i,callback:t}),i},dispose:i}}set name(e){const t=this.path;a.isRoot(this)||"function"!=typeof this.watchTerminator?this.addMetadata("name",e):(this.watchTerminator(t),this.addMetadata("name",e),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent))}get name(){return this.parent?this.getMetadata("name"):`root_${this._uid}`}get watcher(){return this._watcher}get type(){return r.TreeNodeType.CompositeTreeNode}get children(){return this._children}get expanded(){return this.isExpanded}get branchSize(){return this._branchSize}get flattenedBranch(){return this._flattenedBranch}async ensureLoaded(){if(!this._children)return this.hardReloadChildren()}async setExpanded(e=!0,t=!1){a.isRoot(this)||this.isExpanded||(this.isExpanded=!0,(null!==this._children||(!t&&this._watcher.notifyWillResolveChildren(this,this.isExpanded),await this.hardReloadChildren(),!t&&this._watcher.notifyDidResolveChildren(this,this.isExpanded),this.isExpanded))&&(e&&this.parent&&a.is(this.parent)&&await this.parent.setExpanded(!0,!t),this.isExpanded&&(!t&&this._watcher.notifyWillChangeExpansionState(this,!0),this.expandBranch(this,t),!t&&this._watcher.notifyDidChangeExpansionState(this,!0))))}getAllExpandedNodePath(){let e=[];if(this.children){for(const t of this.children)t.isExpanded&&(e.push(t.path),e=e.concat(t.getAllExpandedNodePath()));return e}return e}getAllCollapsedNodePath(){let e=[];if(this.children){for(const t of this.children)a.is(t)&&(t.isExpanded?e=e.concat(t.getAllCollapsedNodePath()):e.push(t.path));return e}return e}async forceReloadChildrenQuiet(e=this.getAllExpandedNodePath(),t=!0){let i;if(this.isExpanded){for(t&&await this.hardReloadChildren(!0);i=e.shift();){if(!new n.Path(this.path).relative(new n.Path(i)))break;const t=s.getTreeNodeByPath(i);if(t){if(a.is(t)){if(t.whenReady&&await t.whenReady,t.isExpanded)continue;t.isExpanded=!0,e.length>0?await t.forceReloadChildrenQuiet(e):(await t.hardReloadChildren(!0),t.expandBranch(t,!0))}}else{if(!this.children)break;for(const t of this.children)if(0===i.indexOf(t.path)&&a.is(t)){if(await t.hardReloadChildren(!0),t.isExpanded)continue;t.isExpanded=!0,e.length>0?await t.forceReloadChildrenQuiet(e,!1):t.expandBranch(t,!0);break}}}i?(e.unshift(i),this.expandBranch(this,!0)):a.isRoot(this)?this.watcher.notifyDidUpdateBranch():this.expandBranch(this)}else if(this.children&&this.children&&this.parent){for(const e of this.children)e.dispose();this._children=null}}async expandedAll(e=this.getAllCollapsedNodePath()){if(!a.isRoot(this))return;let t;for(e=e.sort(((e,t)=>n.Path.pathDepth(e)-n.Path.pathDepth(t)));e.length>0;){t=e.pop();const i=s.getTreeNodeByPath(t);a.is(i)&&await i.setExpanded(!1,!0)}this.watcher.notifyDidUpdateBranch()}async collapsedAll(e=this.getAllExpandedNodePath()){if(!a.isRoot(this))return;let t;for(e=e.sort(((e,t)=>n.Path.pathDepth(e)-n.Path.pathDepth(t)));e.length>0;){t=e.pop();const i=s.getTreeNodeByPath(t);a.is(i)&&await i.setCollapsed(!0)}this.watcher.notifyDidUpdateBranch()}setCollapsed(e=!1){a.isRoot(this)||this.isExpanded&&(this._children&&this.parent&&(!e&&this._watcher.notifyWillChangeExpansionState(this,!1),this.shrinkBranch(this,e)),this.isExpanded=!1,!e&&this._watcher.notifyDidChangeExpansionState(this,!1))}mv(e,t=this.name){const i=this.path;if(super.mv(e,t),"function"==typeof this.watchTerminator&&(this.watchTerminator(i),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent)),this.children)for(const e of this.children)e.mv(e.parent,e.name)}insertItem(e){if(e.parent!==this)return void e.mv(this,e.name);if(this.children)for(let t=0;te.name===o));if(!c)return;const l=new n.Path(t),u=l.dir.toString(),d=u===r?this:s.getTreeNodeByPath(u);a.is(d)?c.mv(d,l.base.toString()):this.unlinkItem(c)}dispose(){if(this.watchEvents){const e=this.watchEvents.get(this.path);e&&e.terminator(),this.watchEvents.clear()}this._children&&(this.isExpanded=!1,this._children.forEach((e=>{e.dispose()})),this._children=null,this._flattenedBranch=null),super.dispose()}setFlattenedBranch(e,t){this._flattenedBranch=e,a.isRoot(this)&&!t&&this.watcher.notifyDidUpdateBranch()}expandBranch(e,t){if(this!==e&&(this._branchSize+=e._branchSize),this!==e&&this._flattenedBranch){const i=this._flattenedBranch.indexOf(e.id)+1;if(0===i)return;this.setFlattenedBranch(o(this._flattenedBranch,i,0,e._flattenedBranch),t),e.setFlattenedBranch(null,t)}else this.parent&&this.parent.expandBranch(e,t)}shrinkBranch(e,t){if(this!==e&&(this._branchSize-=e._branchSize),this!==e&&this._flattenedBranch){const i=this._flattenedBranch.indexOf(e.id)+1;if(0===i)return;e.setFlattenedBranch(this._flattenedBranch.slice(i,i+e._branchSize),t),this.setFlattenedBranch(o(this._flattenedBranch,i,e._flattenedBranch?e._flattenedBranch.length:0),t)}else this.parent&&this.parent.shrinkBranch(e,t)}async hardReloadChildren(e){if(this.hardReloadPromise)return this.hardReloadPromise;this.hardReloadPromise=new Promise((e=>this.hardReloadPResolver=e)),this.hardReloadPromise.then((()=>{this.hardReloadPromise=null,this.hardReloadPResolver=null}));const t=await this._tree.resolveChildren(this)||[];this._children&&this.shrinkBranch(this,e);const i=new Array(t.length);this._children=Array(t.length);for(let e=0;e{this.queuedRefreshPromise=null;const e=this.queue(this.queuedRefreshPromiseFactory);return this.queuedRefreshPromiseFactory=null,e};this.queuedRefreshPromise=new Promise((t=>{this.activeRefreshPromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedRefreshPromise.then(e,t)}))}return this.activeRefreshPromise=e(),new Promise(((e,t)=>{this.activeRefreshPromise.then((t=>{this.activeRefreshPromise=null,e(t)}),(e=>{this.activeRefreshPromise=null,t(e)}))}))}async doRefresh(){const e=this.refreshTasks.slice(0),t=this.mergeExpandedPaths(e);return await this.forceReloadChildrenQuiet(t)}mergeExpandedPaths(e){let t;for(const i of e)t?i.length>t.length&&(t=i):t=i;return t}isItemVisibleAtRootSurface(e){let t=e;for(;t.parent;)t=t.parent;return t.isItemVisibleAtSurface(e)}isItemVisibleAtSurface(e){return e===this||!!this._flattenedBranch&&this._flattenedBranch.indexOf(e.id)>-1}transformToRelativePath(e){const{splitPath:t}=n.Path,i=t(e);return i.shift(),i}async forceLoadTreeNodeAtPath(e){const{splitPath:t,isRelative:i}=n.Path,r=i(e)?t(e):this.transformToRelativePath(e);if(0===r.length)return this;await this.ensureLoaded();let o,s,c=this._children,l="";for(;s=r.shift();){let e=c.find((e=>0===e.name.indexOf(s)));if(e&&0===r.length)return e;if(!e&&o){const i=t(o.name).slice(1);if(i[0]===s){for(i.shift();i.length>0&&i[0]===r[0];)i.shift(),r.shift();s=r.shift(),e=c.find((e=>0===e.name.indexOf(s)))}}if(!e||!a.is(e)&&r.length>0)return o;if(a.is(e)){if(e.name.indexOf(n.Path.separator)>0){const i=t(e.name).slice(1);for(;i.length>0&&i[0]===r[0];)i.shift(),r.shift()}if(e._children||(l=e.path,a.is(e)&&await e.setExpanded(!0,!0)),e&&0===r.length)return e;if(l&&l!==e.path){const t=n.Path.splitPath(l),i=n.Path.splitPath(e.path);i.length>t.length&&r.splice(0,i.length-t.length)}c=e._children,o=e}}}getIndexAtTreeNodeId(e){return this._flattenedBranch?this._flattenedBranch.indexOf(e):-1}getIndexAtTreeNode(e){return this._flattenedBranch?this._flattenedBranch.indexOf(e.id):-1}getTreeNodeAtIndex(e){const t=this._flattenedBranch[e];return s.getTreeNodeById(t)}getTreeNodeById(e){return s.getTreeNodeById(e)}getTreeNodeByPath(e){return s.getTreeNodeByPath(e)}}t.CompositeTreeNode=a},80375:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(85093),n=i(65579);class o{constructor(e,t){this.addChangeListener=e,this.removeChangeListener=t}}var s,a;t.ClasslistComposite=o,function(e){e[e.Applicable=1]="Applicable",e[e.Inheritable=2]="Inheritable"}(s=t.CompositeDecorationType||(t.CompositeDecorationType={})),function(e){e[e.UnTargetDecoration=1]="UnTargetDecoration",e[e.TargetDecoration=2]="TargetDecoration"}(a=t.ChangeReason||(t.ChangeReason={}));t.CompositeDecoration=class{constructor(e,t,i){this.handleDecorationDidAddClassname=e=>{const{classname:t}=e;this.selfOwned&&t&&(this.compositeCssClasslist.classlist.push(t),this.notifyClasslistChange())},this.handleDecorationDidRemoveClassname=e=>{const{classname:t}=e;if(!this.selfOwned||!t)return;const i=this.compositeCssClasslist.classlist.indexOf(t);i>-1&&(this.compositeCssClasslist.classlist.splice(i,1),this.notifyClasslistChange())},this.mergeDecorationClasslist=e=>{const{decoration:t}=e;this.selfOwned&&(this.compositeCssClasslist.classlist.push(...t.cssClassList),this.notifyClasslistChange())},this.handleDecorationDisable=e=>{const{decoration:t}=e;this.removeDecorationClasslist(t)},this.target=e,this.type=t,this.linkedComposites=new Set,this.classlistChangeCallbacks=new Set,this.compositeCssClasslist=new o(this.classlistChangeCallbacks.add.bind(this.classlistChangeCallbacks),this.classlistChangeCallbacks.delete.bind(this.classlistChangeCallbacks)),i?(this.selfOwned=!1,this.parent=i,this.renderedDecorations=i.renderedDecorations,this.compositeCssClasslist.classlist=i.compositeCssClasslist.classlist,i.linkedComposites.add(this)):(this.renderedDecorations=new Map,this.targetedDecorations=new Set,this.negatedDecorations=new Set,this.compositeCssClasslist.classlist=[],this.selfOwned=!0)}changeParent(e){if(e){if(!this.selfOwned)return this.parentOwn(e);for(const[e]of this.renderedDecorations)this.recursiveRefresh(this,!1,a.UnTargetDecoration,e,!1);this.parent!==e&&(this.parent.linkedComposites.delete(this),this.parent=e,e.linkedComposites.add(this));for(const[t]of e.renderedDecorations)this.recursiveRefresh(this,!1,a.TargetDecoration,t,!1)}}add(e){const t=e.appliedTargets.get(this.target),i=t&&(t===r.TargetMatchMode.Self||t===r.TargetMatchMode.SelfAndChildren),n=t&&(t===r.TargetMatchMode.Children||t===r.TargetMatchMode.SelfAndChildren);if((this.type!==s.Applicable||i)&&(this.type!==s.Inheritable||n))return this.selfOwned?void(this.targetedDecorations.has(e)||(this.targetedDecorations.add(e),this.recursiveRefresh(this,!1,a.TargetDecoration,e))):(this.selfOwn(a.TargetDecoration,e),void this.targetedDecorations.add(e))}remove(e){if(this.selfOwned&&this.targetedDecorations.delete(e)){if(0===this.negatedDecorations.size&&0===this.targetedDecorations.size&&this.parent)return this.parentOwn(void 0,a.UnTargetDecoration,e);this.recursiveRefresh(this,!1,a.UnTargetDecoration,e)}}negate(e){const t=e.negatedTargets.get(this.target),i=t&&(t===r.TargetMatchMode.Self||t===r.TargetMatchMode.SelfAndChildren),n=t&&(t===r.TargetMatchMode.Children||t===r.TargetMatchMode.SelfAndChildren);if((this.type!==s.Applicable||i)&&(this.type!==s.Inheritable||n))return this.selfOwned?void(this.negatedDecorations.has(e)||(this.negatedDecorations.add(e),this.renderedDecorations.has(e)&&this.removeDecorationClasslist(e))):(this.selfOwn(a.UnTargetDecoration,e),void this.negatedDecorations.add(e))}unNegate(e){if(this.selfOwned&&this.negatedDecorations.delete(e)){if(0===this.negatedDecorations.size&&0===this.targetedDecorations.size&&this.parent)return this.parentOwn();this.renderedDecorations.has(e)||!this.parent.renderedDecorations.has(e)&&!e.appliedTargets.has(this.target)||this.recursiveRefresh(this,!1,a.TargetDecoration,e)}}selfOwn(e,t){if(this.selfOwned)throw new Error("CompositeDecoration is already self owned");const i=this.parent;this.selfOwned=!0,this.compositeCssClasslist.classlist=[],this.renderedDecorations=new Map,this.targetedDecorations=new Set,this.negatedDecorations=new Set;for(const[e]of i.renderedDecorations)e!==t&&this.processCompositeAlteration(a.TargetDecoration,e);e===a.UnTargetDecoration&&this.parent.renderedDecorations.has(t)&&!this.renderedDecorations.has(t)&&this.notifyClasslistChange(!1),this.recursiveRefresh(this,!0,e,t)}parentOwn(e,t,i){this.selfOwned=!1,this.targetedDecorations&&this.targetedDecorations.clear(),this.negatedDecorations&&this.negatedDecorations.clear(),e&&this.parent!==e&&(this.parent&&this.parent.linkedComposites.delete(this),e.linkedComposites.add(this),this.parent=e),this.recursiveRefresh(this,!0,t,i)}processCompositeAlteration(e,t){if(!this.selfOwned)throw new Error("CompositeDecoration is not self owned");if(e===a.UnTargetDecoration){const e=this.renderedDecorations.get(t);if(e){const i=t.appliedTargets.get(this.target),n=i&&(i===r.TargetMatchMode.Self||i===r.TargetMatchMode.SelfAndChildren),o=i&&(i===r.TargetMatchMode.Children||i===r.TargetMatchMode.SelfAndChildren);return(!n||this.type!==s.Applicable)&&((!o||this.type!==s.Inheritable)&&(this.removeDecorationClasslist(t,!1),e&&e.dispose(),this.renderedDecorations.delete(t)))}return!1}if(e===a.TargetDecoration){const e=t.negatedTargets.get(this.target),i=e&&(e===r.TargetMatchMode.Self||e===r.TargetMatchMode.SelfAndChildren),o=e&&(e===r.TargetMatchMode.Children||e===r.TargetMatchMode.SelfAndChildren);if(i&&this.type===s.Applicable)return!1;if(o&&this.type===s.Inheritable)return!1;if(!this.renderedDecorations.has(t)){const e=new n.DisposableCollection;return e.push(t.onDidAddCSSClassname(this.handleDecorationDidAddClassname)),e.push(t.onDidRemoveCSSClassname(this.handleDecorationDidRemoveClassname)),e.push(t.onDidDisableDecoration(this.handleDecorationDisable)),e.push(t.onDidEnableDecoration(this.mergeDecorationClasslist)),this.renderedDecorations.set(t,e),!t.disabled&&(this.compositeCssClasslist.classlist.push(...t.cssClassList),!0)}}return!1}recursiveRefresh(e,t,i,r,n=!0){if(!this.selfOwned&&t&&(this.renderedDecorations=this.parent.renderedDecorations,this.compositeCssClasslist.classlist=this.parent.compositeCssClasslist.classlist),this.selfOwned&&t&&e!==this){for(const[e]of this.renderedDecorations)this.processCompositeAlteration(a.UnTargetDecoration,e);for(const[e]of this.parent.renderedDecorations)this.processCompositeAlteration(a.TargetDecoration,e);n&&this.notifyClasslistChange(!1)}else this.selfOwned&&i===a.UnTargetDecoration&&r&&this.renderedDecorations.has(r)?(this.processCompositeAlteration(i,r),n&&this.notifyClasslistChange(!1)):(this.selfOwned&&i===a.TargetDecoration&&r&&this.processCompositeAlteration(i,r)&&n||!this.selfOwned&&n)&&this.notifyClasslistChange(!1);for(const o of this.linkedComposites)o.recursiveRefresh(e,t,i,r,n)}removeDecorationClasslist(e,t=!0){if(this.selfOwned){for(const t of e.cssClassList){const e=this.compositeCssClasslist.classlist.indexOf(t);e>-1&&this.compositeCssClasslist.classlist.splice(e,1)}t&&this.notifyClasslistChange()}}notifyClasslistChange(e=!0){for(const e of[...this.classlistChangeCallbacks])e();if(e)for(const e of this.linkedComposites)e.selfOwned||e.notifyClasslistChange()}}},85093:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(76309),n=i(65579);var o;!function(e){e[e.None=1]="None",e[e.Self=2]="Self",e[e.Children=3]="Children",e[e.SelfAndChildren=4]="SelfAndChildren"}(o=t.TargetMatchMode||(t.TargetMatchMode={}));t.Decoration=class{constructor(...e){if(this._appliedTargets=new Map,this._negatedTargets=new Map,this._disabled=!1,this.appliedTargetsDisposables=new WeakMap,this.negatedTargetsDisposables=new WeakMap,this.onDidAddCSSClassnameEmitter=new n.Emitter,this.onDidRemoveCSSClassnameEmitter=new n.Emitter,this.onDidDisableDecorationEmitter=new n.Emitter,this.onDidEnableDecorationEmitter=new n.Emitter,this.onDidAddTargetEmitter=new n.Emitter,this.onDidRemoveTargetEmitter=new n.Emitter,this.onDidNegateTargetEmitter=new n.Emitter,this.onDidUnNegateTargetEmitter=new n.Emitter,Array.isArray(e)){if(!e.every((e=>"string"==typeof e)))throw new TypeError("classlist must be of type `Array`");this._cssClassList=new Set(e)}else this._cssClassList=new Set}get disabled(){return this._disabled}set disabled(e){this._disabled=e,e?this.onDidDisableDecorationEmitter.fire({decoration:this}):this.onDidEnableDecorationEmitter.fire({decoration:this})}get appliedTargets(){return this._appliedTargets}get negatedTargets(){return this._negatedTargets}get cssClassList(){return this._cssClassList}get onDidAddCSSClassname(){return this.onDidAddCSSClassnameEmitter.event}get onDidRemoveCSSClassname(){return this.onDidRemoveCSSClassnameEmitter.event}get onDidDisableDecoration(){return this.onDidDisableDecorationEmitter.event}get onDidEnableDecoration(){return this.onDidEnableDecorationEmitter.event}get onDidAddTarget(){return this.onDidAddTargetEmitter.event}get onDidRemoveTarget(){return this.onDidRemoveTargetEmitter.event}get onDidNegateTarget(){return this.onDidNegateTargetEmitter.event}get onDidUnNegateTarget(){return this.onDidUnNegateTargetEmitter.event}addCSSClass(e){this._cssClassList.has(e)||(this._cssClassList.add(e),this.onDidAddCSSClassnameEmitter.fire({decoration:this,classname:e}))}removeCSSClass(e){this._cssClassList.has(e)&&(this._cssClassList.delete(e),this.onDidRemoveCSSClassnameEmitter.fire({decoration:this,classname:e}))}hasTarget(e){return!!this._appliedTargets.get(e)}addTarget(e,t=o.Self){if(this._appliedTargets.get(e)===t)return;if(!r.TreeNode.is(e))return;this._appliedTargets.set(e,t);const i=n.Disposable.create((()=>{this.removeTarget(e)}));return this.appliedTargetsDisposables.set(e,i),this.onDidAddTargetEmitter.fire({decoration:this,target:e}),i}removeTarget(e){if(this._appliedTargets.delete(e)){const t=this.appliedTargetsDisposables.get(e);t&&t.dispose(),this.onDidRemoveTargetEmitter.fire({decoration:this,target:e})}}negateTarget(e,t=o.Self){if(this._negatedTargets.get(e)===t)return;if(!r.TreeNode.is(e))return;this._negatedTargets.set(e,t);const i=n.Disposable.create((()=>{this.unNegateTarget(e)}));return this.negatedTargetsDisposables.set(e,i),this.onDidNegateTargetEmitter.fire({decoration:this,target:e}),i}unNegateTarget(e){if(this._negatedTargets.delete(e)){const t=this.negatedTargetsDisposables.get(e);t&&t.dispose(),this.onDidUnNegateTargetEmitter.fire({decoration:this,target:e})}}}},26771:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65579),n=i(76309),o=i(80375),s=i(90510);t.DecorationsManager=class{constructor(e){this.decorations=new Map,this.decorationsMeta=new WeakMap,this.disposables=new r.DisposableCollection,this.disposed=!1,this.targetDecoration=e=>{const{decoration:t,target:i}=e,r=this.getDecorationData(i);if(r){const{applicable:e,inheritable:i}=r;e.add(t),i&&i.add(t)}},this.unTargetDecoration=e=>{const{decoration:t,target:i}=e,r=this.getDecorationData(i);if(r){const{applicable:e,inheritable:i}=r;e.remove(t),i&&i.remove(t)}},this.negateDecoration=e=>{const{decoration:t,target:i}=e,r=this.getDecorationData(i);if(r){const{applicable:e,inheritable:i}=r;e.negate(t),i&&i.negate(t)}},this.unNegateDecoration=e=>{const{decoration:t,target:i}=e,r=this.getDecorationData(i);if(r){const{applicable:e,inheritable:i}=r;e.unNegate(t),i&&i.unNegate(t)}},this.switchParent=(e,t,i)=>{const r=this.decorationsMeta.get(e);if(!r)return;const n=this.getDecorationData(i);n&&(r.applicable.changeParent(n.inheritable),r.inheritable&&r.inheritable.changeParent(n.inheritable))},this.decorationsMeta.set(e,{applicable:new o.CompositeDecoration(e,o.CompositeDecorationType.Applicable),inheritable:new o.CompositeDecoration(e,o.CompositeDecorationType.Inheritable)}),this.disposables.push(e.watcher.on(s.TreeNodeEvent.DidChangeParent,this.switchParent)),this.disposables.push(e.watcher.on(s.TreeNodeEvent.DidDispose,this.decorationsMeta.delete))}dispose(){for(const[e]of this.decorations)this.removeDecoration(e);this.disposables.dispose(),this.disposed=!0}addDecoration(e){if(this.disposed)throw new Error("DecorationManager disposed");if(this.decorations.has(e))return;const t=new r.DisposableCollection;t.push(e.onDidAddTarget(this.targetDecoration)),t.push(e.onDidRemoveTarget(this.unTargetDecoration)),t.push(e.onDidNegateTarget(this.negateDecoration)),t.push(e.onDidUnNegateTarget(this.unNegateDecoration)),this.decorations.set(e,t);for(const[t]of e.appliedTargets)this.targetDecoration({decoration:e,target:t});for(const[t]of e.negatedTargets)this.negateDecoration({decoration:e,target:t})}removeDecoration(e){const t=this.decorations.get(e);if(t){for(const[t]of e.appliedTargets){const i=this.decorationsMeta.get(t);i&&(i.applicable.remove(e),i.inheritable&&i.inheritable.remove(e))}for(const[t]of e.negatedTargets){const i=this.decorationsMeta.get(t);i&&(i.applicable.unNegate(e),i.inheritable&&i.inheritable.unNegate(e))}t.dispose(),this.decorations.delete(e)}}getDecorations(e){if(!e||!n.TreeNode.is(e))return;const t=this.getDecorationData(e);return t?t.applicable.compositeCssClasslist:void 0}getDecorationData(e){if(this.disposed)return;const t=this.decorationsMeta.get(e);if(t)return t;if(!e||!e.parent)return;const i=this.getDecorationData(e.parent);if(i){const t={applicable:new o.CompositeDecoration(e,o.CompositeDecorationType.Applicable,i.inheritable),inheritable:n.CompositeTreeNode.is(e)?new o.CompositeDecoration(e,o.CompositeDecorationType.Inheritable,i.inheritable):void 0};return this.decorationsMeta.set(e,t),t}}}},63407:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(85093),t),r.__exportStar(i(26771),t),r.__exportStar(i(80375),t)},16448:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(57241),t),r.__exportStar(i(76309),t),r.__exportStar(i(97384),t),r.__exportStar(i(63407),t)},42641:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65579),n=i(87471),o=i(90510);t.TreeModel=class{constructor(){this.onChangeEmitter=new r.Emitter,this.dispatchChange=()=>{this.onChangeEmitter.fire()}}get onChange(){return this.onChangeEmitter.event}get root(){return this._root}set root(e){this._root=e,this.initState(e)}get state(){return this._state}set state(e){this._state=e}init(e){this.root=e,this.root.watcher.on(o.TreeNodeEvent.BranchDidUpdate,this.dispatchChange)}initState(e){this.state=new n.TreeStateManager(e)}async loadTreeState(e){return"string"==typeof e&&(e=JSON.parse(e)),this.state.loadTreeState(e)}getTreeStateWatcher(e=!1){return new n.TreeStateWatcher(this.state,e)}resolveChildren(e){return Promise.resolve(Array.from(e.children))}}},97384:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(42641),t)},1556:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65579),n=i(76309),o=i(90510);var s;!function(e){e[e.SetExpanded=1]="SetExpanded",e[e.SetCollapsed=2]="SetCollapsed",e[e.SetActive=3]="SetActive"}(t.Operation||(t.Operation={})),function(e){e[e.Expanded=1]="Expanded",e[e.Collapsed=2]="Collapsed",e[e.Disabled=4]="Disabled"}(s||(s={}));t.TreeStateManager=class{constructor(e){this.expandedDirectories=new Map,this._scrollOffset=0,this.stashing=!1,this.stashLockingItems=new Set,this.onDidLoadStateEmitter=new r.Emitter,this.onChangeScrollOffsetEmitter=new r.Emitter,this.onDidChangeExpansionStateEmitter=new r.Emitter,this.onDidChangeRelativePathEmitter=new r.Emitter,this.handleExpansionChange=(e,t,i)=>{var n;if(this.stashing&&this.stashKeyframes&&this.stashKeyframes.set(e.id,t?s.Expanded:s.Collapsed),this.stashKeyframes&&!this.stashing){if(t){let t=e;for(;t;){if(this.stashKeyframes.has(t.id)){let e=this.stashKeyframes.get(t.id);e|=s.Disabled,this.stashKeyframes.set(t.id,e)}t=t.parent}this.stashLockingItems.add(e)}if(this.stashLockingItems&&this.stashLockingItems.has(e)&&!t){let t=e;for(;t;){if(this.stashKeyframes.has(t.id)){let e=this.stashKeyframes.get(t.id);e&=~s.Disabled,this.stashKeyframes.set(t.id,e)}t=t.parent}this.stashLockingItems.delete(e)}}let o=this.expandedDirectories.get(e);t&&!o?(o=null===(n=new r.Path(this.root.path).relative(new r.Path(e.path)))||void 0===n?void 0:n.toString(),this.expandedDirectories.set(e,o),this.onDidChangeExpansionStateEmitter.fire({relativePath:o,isExpanded:t,isVisibleAtSurface:i})):!t&&o&&(this.expandedDirectories.delete(e),this.onDidChangeExpansionStateEmitter.fire({relativePath:o,isExpanded:t,isVisibleAtSurface:i}))},this.handleDidChangePath=e=>{var t;if(this.expandedDirectories.has(e)){const i=this.expandedDirectories.get(e),n=null===(t=new r.Path(this.root.path).relative(new r.Path(e.path)))||void 0===t?void 0:t.toString();this.expandedDirectories.set(e,n),this.onDidChangeRelativePathEmitter.fire({prevPath:i,newPath:n})}},this.root=e,this.root.watcher.on(o.TreeNodeEvent.DidChangeExpansionState,this.handleExpansionChange),this.root.watcher.on(o.TreeNodeEvent.DidChangePath,this.handleDidChangePath)}get scrollOffset(){return this._scrollOffset}saveScrollOffset(e){this._scrollOffset=e,this.onChangeScrollOffsetEmitter.fire(e)}get onDidLoadState(){return this.onDidLoadStateEmitter.event}get onChangeScrollOffset(){return this.onChangeScrollOffsetEmitter.event}get onDidChangeExpansionState(){return this.onDidChangeExpansionStateEmitter.event}get onDidChangeRelativePath(){return this.onDidChangeRelativePathEmitter.event}async loadTreeState(e){if(e){for(const t of e.expandedDirectories.buried)try{const e=await this.root.forceLoadTreeNodeAtPath(t);e&&n.CompositeTreeNode.is(e)&&await e.setExpanded(!1)}catch(e){}for(const t of e.expandedDirectories.atSurface)try{const e=await this.root.forceLoadTreeNodeAtPath(t);e&&n.CompositeTreeNode.is(e)&&await e.setExpanded(!0)}catch(e){}this._scrollOffset="number"==typeof e.scrollPosition&&e.scrollPosition>-1?e.scrollPosition:this._scrollOffset,this.onDidLoadStateEmitter.fire()}}excludeFromStash(e){this.stashKeyframes&&!this.stashing&&this.handleExpansionChange(n.CompositeTreeNode.is(e)?e:e.parent,!0,this.root.isItemVisibleAtSurface(e))}beginStashing(){this.stashing=!0,this.stashKeyframes=new Map}endStashing(){this.stashing=!1,this.stashLockingItems.clear()}async reverseStash(){if(!this.stashKeyframes)return;this.endStashing();const e=Array.from(this.stashKeyframes);this.stashKeyframes=null;for(const[t,i]of e){const e=(i&s.Disabled)===s.Disabled,r=n.TreeNode.getTreeNodeById(t);r&&!e&&((i&s.Expanded)===s.Expanded?r.setCollapsed():(i&s.Collapsed)===s.Collapsed&&await r.setExpanded())}}}},50826:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65579),n=i(87599);t.TreeStateWatcher=class{constructor(e,t=!1){this._disposed=!1,this.disposables=new r.DisposableCollection,this.onDidTreeStateChangeEmitter=new r.Emitter,this.currentState={specVersion:1,scrollPosition:0,expandedDirectories:{atSurface:[],buried:[]}},this.disposables.push(e.onChangeScrollOffset((e=>{this.currentState.scrollPosition=e,this.onDidTreeStateChangeEmitter.fire(n.TreeStateWatcherChangeType.ScrollOffset)}))),this.disposables.push(e.onDidChangeRelativePath((({prevPath:e,newPath:i})=>{let r=!1;const o=new Set(this.currentState.expandedDirectories.atSurface);if(o.has(e)&&(o.delete(e),o.add(i),r=!0),this.currentState.expandedDirectories.atSurface=Array.from(o),t){const t=new Set(this.currentState.expandedDirectories.buried);t.has(e)&&(o.delete(e),o.add(i),r=!0),this.currentState.expandedDirectories.buried=Array.from(t)}r&&this.onDidTreeStateChangeEmitter.fire(n.TreeStateWatcherChangeType.PathsUpdated)}))),this.disposables.push(e.onDidChangeExpansionState((({relativePath:e,isExpanded:i,isVisibleAtSurface:r})=>{let o=!1;const s=new Set(this.currentState.expandedDirectories.atSurface),a=new Set(this.currentState.expandedDirectories.buried);if(!s.has(e)||i&&r)i&&r&&(s.add(e),o=!0);else{s.delete(e);const t=Array.from(s).filter((t=>t.indexOf(e)>=0));for(const e of t)s.delete(e),a.has(e)||a.add(e);o=!0}this.currentState.expandedDirectories.atSurface=Array.from(s),t||(!a.has(e)||i&&!r?i&&!r&&(a.add(e),o=!0):(a.delete(e),o=!0),this.currentState.expandedDirectories.buried=Array.from(a)),o&&this.onDidTreeStateChangeEmitter.fire(n.TreeStateWatcherChangeType.DirExpansionState)})))}get onDidChange(){return this.onDidTreeStateChangeEmitter.event}dispose(){this._disposed||(this._disposed=!0,this.disposables.dispose())}snapshot(){return Object.assign(Object.assign({},this.currentState),{expandedDirectories:{atSurface:this.currentState.expandedDirectories.atSurface.slice(),buried:this.currentState.expandedDirectories.buried.slice()}})}toString(){return JSON.stringify(this.currentState)}}},87471:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1556);t.TreeStateManager=r.TreeStateManager;var n=i(50826);t.TreeStateWatcher=n.TreeStateWatcher},87599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.DidChangeScrollOffset=1]="DidChangeScrollOffset",e[e.DidChangeDirExpansionState=2]="DidChangeDirExpansionState",e[e.DidChangeRelativePath=3]="DidChangeRelativePath",e[e.DidChange=4]="DidChange",e[e.DidLoadState=5]="DidLoadState"}(t.TreeStateEvent||(t.TreeStateEvent={})),function(e){e[e.ScrollOffset=1]="ScrollOffset",e[e.DirExpansionState=2]="DirExpansionState",e[e.PathsUpdated=3]="PathsUpdated"}(t.TreeStateWatcherChangeType||(t.TreeStateWatcherChangeType={}))},90510:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(77557),t),r.__exportStar(i(48112),t)},77557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TreeNode=1]="TreeNode",e[e.CompositeTreeNode=2]="CompositeTreeNode",e[e.NewPrompt=3]="NewPrompt",e[e.RenamePrompt=4]="RenamePrompt"}(t.TreeNodeType||(t.TreeNodeType={}))},48112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.WillChangeExpansionState=1]="WillChangeExpansionState",e[e.DidChangeExpansionState=2]="DidChangeExpansionState",e[e.WillChangeParent=3]="WillChangeParent",e[e.DidChangeParent=4]="DidChangeParent",e[e.WillDispose=5]="WillDispose",e[e.DidDispose=6]="DidDispose",e[e.BranchDidUpdate=7]="BranchDidUpdate",e[e.DidChangePath=8]="DidChangePath",e[e.DidProcessWatchEvent=9]="DidProcessWatchEvent",e[e.WillProcessWatchEvent=10]="WillProcessWatchEvent",e[e.DidChangeMetadata=11]="DidChangeMetadata",e[e.DidResolveChildren=12]="DidResolveChildren",e[e.WillResolveChildren=13]="WillResolveChildren"}(t.TreeNodeEvent||(t.TreeNodeEvent={})),function(e){e[e.Added=1]="Added",e[e.Removed=2]="Removed",e[e.Changed=3]="Changed",e[e.Moved=4]="Moved"}(t.WatchEvent||(t.WatchEvent={})),function(e){e[e.Added=1]="Added",e[e.Updated=2]="Updated",e[e.Removed=3]="Removed"}(t.MetadataChangeType||(t.MetadataChangeType={}))},1544:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(31298),s=i(94184);i(32401);const a=i(93096);t.Scrollbars=({onScroll:e,onUpdate:t,forwardedRef:i,style:c,children:l,className:u,onReachBottom:d})=>{const h=n.useCallback((e=>{e?i&&i(e.view):i&&i(null)}),[]);let p;const f=n.useCallback(a((e=>{const{scrollTop:t,scrollHeight:i,clientHeight:r}=e;if(0===i&&0===r)return;(t+100)/(i-r)>1&&d&&d()}),100),[d]);return n.createElement(o.Scrollbars,{ref:h,style:Object.assign(Object.assign({},c),{overflow:"hidden"}),className:s(u,"kt-scrollbar"),onUpdate:e=>{const{scrollTop:i}=e,r=.05*Math.min(i,20);p&&(p.style.opacity=String(r)),f(e),t&&t(e)},onScroll:e,renderThumbVertical:e=>{var{style:t}=e,i=r.__rest(e,["style"]);return n.createElement("div",Object.assign({},i,{className:"scrollbar-thumb-vertical"}))},renderThumbHorizontal:e=>{var{style:t}=e,i=r.__rest(e,["style"]);return n.createElement("div",Object.assign({},i,{className:"scrollbar-thumb-horizontal"}))}},n.createElement("div",{ref:e=>{p=e},className:"scrollbar-decoration"}),l)},t.ScrollbarsVirtualList=n.forwardRef(((e,i)=>n.createElement(t.Scrollbars,Object.assign({},e,{forwardedRef:i}))))},7512:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(63804),s=i(94184);i(10410);const a=i(84151);function c(...e){}function l(e){return!!e&&(0===e.length||void 0!==e[0].value)}function u(e){return!!e&&(0===e.length||void 0!==(t=e[0]).groupName&&l(t.options));var t}function d(e){return n.createElement(n.Fragment,null,e.data.iconClass?n.createElement("div",{className:s(e.data.iconClass,"kt-select-option-icon")}):void 0,e.data.label)}function h({group:e,index:t}){return n.createElement("div",{key:"header_"+t,className:"kt-select-group-header"},e.iconClass?n.createElement("div",{className:s(e.iconClass,"kt-select-option-icon")}):void 0,n.createElement("div",null,e.groupName))}function p(e,t){let i=t.label;if(void 0===i)try{i=t.value.toString()}catch(e){i=void 0}return"string"==typeof i&&-1!==i.indexOf(e)}t.Option=e=>{var{value:t,children:i,disabled:o,onClick:a,className:c}=e,l=r.__rest(e,["value","children","disabled","onClick","className"]);return n.createElement("span",Object.assign({},l,{className:s(c,{"kt-option-disabled":o}),onClick:()=>a&&!o&&a(t)}),i)},t.isDataOptions=l,t.isDataOptionGroups=u,t.Select=function({disabled:e,options:i,size:r="default",children:h,value:f,onChange:g,optionLabelProp:m,style:v,optionStyle:y,className:_,maxHeight:b,equals:w=((e,t)=>e===t),optionRenderer:S=d,groupTitleRenderer:C,footerComponent:E,headerComponent:O,setSelectHandle:k,showSearch:D=!1,filterOption:M=p,searchPlaceholder:x="",emptyComponent:T,selectedRenderer:A,onBeforeShowOptions:I,allowOptionsOverflow:P,dropdownRenderType:R="fixed"}){const[L,N]=o.useState(!1),[F,B]=o.useState(""),z=n.useRef(null),V=n.useRef(null);function j(){const e=!L;e&&I&&I()||N(e)}!L&&F&&B("");const K=s("kt-select-options",{"kt-select-options-visible":L,[`kt-select-options-${r}`]:r}),H=s("kt-select-value",{"kt-select-disabled":e,"kt-select-value-active":L,[`kt-select-value-${r}`]:r});function W(e,i){var r;"string"!=typeof e&&"number"!=typeof e||(e=n.createElement(t.Option,{value:e,label:String(e),key:`${e}_${i}`},e));const o=(null===(r=e.props)||void 0===r?void 0:r.disabled)||!1;return n.createElement("div",{key:`${e.props.value}_${i}`,className:s({"kt-select-option-select":f===e.props.value}),onClick:o?c:()=>{var t,i;N(!1),g&&g((t=e,(i=m)?t.props[i]:t.props.value))}},e)}function U(){var e,t,r,o,s,a,c,d,p;if(i&&l(i)){for(const e of i)if(w(f,e.value))return{iconClass:e.iconClass,label:e.label,value:e.value};return{iconClass:null===(e=i[0])||void 0===e?void 0:e.iconClass,label:null===(t=i[0])||void 0===t?void 0:t.label,value:null===(r=i[0])||void 0===r?void 0:r.value}}if(i&&u(i)){for(const e of i)for(const t of e.options)if(w(f,t.value))return{iconClass:t.iconClass,label:t.label,value:t.value};return{iconClass:null===(s=null===(o=i[0])||void 0===o?void 0:o.options[0])||void 0===s?void 0:s.iconClass,label:null===(c=null===(a=i[0])||void 0===a?void 0:a.options[0])||void 0===c?void 0:c.label,value:null===(p=null===(d=i[0])||void 0===d?void 0:d.options[0])||void 0===p?void 0:p.value}}{const e=h&&function(e,t,i=((e,t)=>e===t)){var r,o,s,a;const c=n.Children.toArray(t).filter((e=>n.isValidElement(e))),l=c.find((t=>{var r;return t.props&&i(null===(r=t.props)||void 0===r?void 0:r.value,e)?t:null}));return l?(null===(r=l.props)||void 0===r?void 0:r.label)||(null===(o=l.props)||void 0===o?void 0:o.value):(null===(s=c[0].props)||void 0===s?void 0:s.label)||(null===(a=c[0].props)||void 0===a?void 0:a.value)}(f,h);if(e)return{label:e,value:e}}return{label:"",value:""}}if(o.useEffect((()=>{if(z.current&&V.current){const e=z.current.getBoundingClientRect();P?(V.current.style.minWidth=`${e.width}px`,V.current.style.maxWidth=window.innerWidth-e.left-4+"px"):V.current.style.width=`${e.width}px`;const t=window.innerHeight-e.bottom;(!b||t{N(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}}),[L]),F)if(i&&l(i))i=i.filter((e=>M(F,e)));else if(i&&u(i)){const e=[];for(const t of i){const i={iconClass:t.iconClass,groupName:t.groupName,options:t.options.filter((e=>M(F,e,t)))};i.options.length>0&&e.push(i)}i=e}return n.createElement("div",{className:s("kt-select-container",_),ref:z},n.createElement("p",{className:H,onClick:j,style:v},D&&L?n.createElement("input",{className:s("kt-select-search"),onChange:e=>{B(e.target.value)},value:F,autoFocus:!0,placeholder:x||""}):(()=>{const e=U(),t=A;return n.createElement(n.Fragment,null,t?n.createElement(t,{data:e}):n.createElement(n.Fragment,null,e.iconClass?n.createElement("span",{className:s(e.iconClass,"kt-select-option-icon")}):void 0,n.createElement("span",{className:"kt-select-option"},e.label)),n.createElement(a.Icon,{iconClass:a.getKaitianIcon("down")}))})()),L&&(l(i)||u(i)?n.createElement(t.SelectOptionsList,{optionRenderer:S,options:i,equals:w,optionStyle:y,currentValue:f,size:r,onSelect:e=>{g&&g(e),N(!1)},groupTitleRenderer:C,className:K,style:{maxHeight:`${b}px`},ref:V,footerComponent:E,headerComponent:O,emptyComponent:T}):n.createElement("div",{className:K,style:{maxHeight:`${b}px`},ref:V},i&&i.map(((e,t)=>W(e,t))),h&&function(e,t){let i=[];return i=Array.isArray(e)?n.Children.toArray(e).map(t):[t(e)],i}(h,W),n.createElement("div",{className:"kt-select-overlay",onClick:j}))))},t.SelectOptionsList=n.forwardRef(((e,i)=>{const{options:r,optionRenderer:o=d,equals:c=((e,t)=>e===t),onSelect:l,currentValue:p,optionStyle:f,size:g,className:m,style:v,groupTitleRenderer:y=h,renderCheck:_,headerComponent:b,footerComponent:w,emptyComponent:S}=e,C=s("kt-select-options",{[`kt-select-options-${g}`]:!0},m);function E(e){return e&&e.map(((e,i)=>{const r=c(p,e.value);return n.createElement(t.Option,{value:i,key:i,className:s({"kt-select-option-select":r,"kt-select-option-default":!0,"kt-option-with-check":_}),onClick:()=>l(e.value),style:f},_&&c(p,e.value)?n.createElement("div",{className:"kt-option-check"},n.createElement(a.Icon,{icon:"check"})):void 0,n.createElement(o,{data:e,isCurrent:r}))}))}let O;return O=u(r)?0===r.filter((e=>e.options.length>0)).length:0===r.length,n.createElement("div",{className:C,style:v,ref:i,onClick:e=>{e.stopPropagation()}},b?n.createElement(b,null):null,O&&S?n.createElement(S,null):(u(r)?r.map(((e,t)=>{const i=n.createElement(y,{group:e,index:t});return n.createElement(n.Fragment,{key:"group_"+t},i,E(e.options))})):E(r))||S&&n.createElement(S,null),w?n.createElement(w,null):null)}))},36466:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(94184);i(63018),t.Tabs=e=>{const{tabs:t,className:i,value:s,onChange:a,mini:c,style:l}=e,u=r.__rest(e,["tabs","className","value","onChange","mini","style"]),d=n.useCallback((e=>{"function"==typeof a&&a(e)}),[]);return n.createElement("div",Object.assign({},u,{style:l,className:o("kt-tabs",i,{"kt-tabs-mini":c})}),t.map(((e,t)=>{const i=t===s?"kt-tab-selected":"";return"string"==typeof e?n.createElement("div",{key:t,className:o("kt-tab",i,{"kt-mini-tab":c}),onClick:d.bind(null,t)},e):n.createElement("div",{key:t,className:o("kt-custom-tab",i,{"kt-mini-tab":c}),onClick:d.bind(null,t)},e)})))}},30185:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(63804),o=i(94184);i(26300),t.Tooltip=({title:e,children:t,delay:i})=>{const[s,a]=n.useState(!1),c=n.useRef(null),l=n.useRef(null),u=n.useRef(null);let d;return r.createElement("p",{ref:c,className:"kt-tooltip-wrapper",onMouseEnter:function(){s?d&&clearTimeout(d):d=setTimeout((()=>{if(a(!0),l.current&&c.current&&u.current){const{x:e,y:t,width:i,height:r}=c.current.getBoundingClientRect(),n=l.current.getBoundingClientRect();t=document.body.offsetWidth?(u.current.style.left=e+n.width-document.body.offsetWidth+i/2+"px",l.current.style.left=document.body.offsetWidth-n.width+"px"):l.current.style.left=e+i/2-n.width/2+"px"}clearTimeout(d)}),i||500)},onMouseLeave:function(){d&&clearTimeout(d),a(!1)}},t,s&&r.createElement("span",{ref:l,className:o("kt-tooltip-content")},e,r.createElement("span",{ref:u,className:"kt-tooltip-arrow-placeholder"})))}},40791:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(99422);t.Deprecated=function(e,t){return i=>(r.useEffect((()=>{n.default(!1,`${e.displayName||e.name} is deprecated: ${t}`)}),[]),r.createElement(e,i))}},78838:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(89920);class n{constructor(...e){this.disposables=[],this.onDisposeEmitter=new r.Emitter,this.disposingElements=!1,e.forEach((e=>this.addDispose(e)))}static create(e){return{dispose:e}}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&this.onDisposeEmitter.fire(void 0)}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed&&!this.disposingElements){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}addDispose(e){if(Array.isArray(e)){return e.map((e=>this.addDispose(e)))}return this.add(e)}registerDispose(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this.add(e),e}add(e){const t=this.disposables;t.push(e);const i=e.dispose.bind(e),r=n.create((()=>{const i=t.indexOf(e);-1!==i&&t.splice(i,1),this.checkDisposed()}));return e.dispose=()=>{r.dispose(),i()},r}}t.Disposable=n,n.NULL=n.create((()=>{})),n.None=Object.freeze({dispose(){}});t.DisposableCollection=class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new r.Emitter,this.disposingElements=!1,e.forEach((e=>this.push(e)))}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&this.onDisposeEmitter.fire(void 0)}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed&&!this.disposingElements){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}push(e){const t=this.disposables;t.push(e);const i=e.dispose.bind(e),r=n.create((()=>{const i=t.indexOf(e);-1!==i&&t.splice(i,1),this.checkDisposed()}));return e.dispose=()=>{r.dispose(),i()},r}pushAll(e){return e.map((e=>this.push(e)))}}},89920:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(91684);!function(e){const t={dispose(){}};function i(e){return(t,i=null,r)=>{let n,o=!1;return n=e((e=>{if(!o)return n?n.dispose():o=!0,t.call(i,e)}),null,r),o&&n.dispose(),n}}function r(e,t){return c(((i,r=null,n)=>e((e=>i.call(r,t(e))),null,n)))}function n(e,t){return c(((i,r=null,n)=>e((e=>{t(e),i.call(r,e)}),null,n)))}function o(e,t){return c(((i,r=null,n)=>e((e=>t(e)&&i.call(r,e)),null,n)))}function a(e,t,i){let n=i;return r(e,(e=>(n=t(n,e),n)))}function c(e){let t;const i=new s({onFirstListenerAdd(){t=e(i.fire,i)},onLastListenerRemove(){t.dispose()}});return i.event}function l(e){let t,i=!0;return o(e,(e=>{const r=i||e!==t;return i=!1,t=e,r}))}e.None=()=>t,e.once=i,e.map=r,e.forEach=n,e.filter=o,e.signal=function(e){return e},e.reduce=a,e.snapshot=c,e.debounce=function(e,t,i=100,r=!1,n){let o,a,c,l=0;const u=new s({leakWarningThreshold:n,onFirstListenerAdd(){o=e((e=>{l++,a=t(a,e),r&&!c&&u.fire(a),clearTimeout(c),c=setTimeout((()=>{const e=a;a=void 0,c=void 0,(!r||l>1)&&u.fire(e),l=0}),i)}))},onLastListenerRemove(){o.dispose()}});return u.event},e.stopwatch=function(e){const t=(new Date).getTime();return r(i(e),(e=>(new Date).getTime()-t))},e.latch=l,e.buffer=function(e,t=!1,i=[]){let r=i.slice(),n=e((e=>{r?r.push(e):a.fire(e)}));const o=()=>{r&&r.forEach((e=>a.fire(e))),r=null},a=new s({onFirstListenerAdd(){n||(n=e((e=>a.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){n&&n.dispose(),n=null}});return a.event};class u{constructor(e){this.event=e}map(e){return new u(r(this.event,e))}forEach(e){return new u(n(this.event,e))}filter(e){return new u(o(this.event,e))}reduce(e,t){return new u(a(this.event,e,t))}latch(){return new u(l(this.event))}on(e,t,i){return this.event(e,t,i)}once(e,t,r){return i(this.event)(e,t,r)}}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,i=(e=>e)){const r=(...e)=>n.fire(i(...e)),n=new s({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return n.event},e.fromPromise=function(e){const t=new s;let i=!1;return e.then(void 0,(()=>null)).then((()=>{i?t.fire(void 0):setTimeout((()=>t.fire(void 0)),0)})),i=!0,t.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))}}(t.Event||(t.Event={}));let n=-1;t.setGlobalLeakWarningThreshold=function(e){const t=n;return n=e,{dispose(){n=t}}};class o{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=n;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e{(!i||r{const e=this._stacks.get(i)||0;this._stacks.set(i,e-1)}}}class s{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=n>0?new o(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,i)=>{this._listeners||(this._listeners=new r.LinkedList);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);let a,c;return n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(a=this._leakageMon.check(this._listeners.size)),c={dispose:()=>{if(a&&a(),c.dispose=s._noop,!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(i)&&i.push(c),c}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new r.LinkedList);for(let t=this._listeners.iterator(),i=t.next();!i.done;i=t.next())this._deliveryQueue.push([i.value,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){throw e}}}}async fireAndAwait(e,t=2e3){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new r.LinkedList);for(let t=this._listeners.iterator(),i=t.next();!i.done;i=t.next())this._deliveryQueue.push([i.value,e]);const i=[],n=new Promise((e=>{setTimeout((()=>{e({err:new Error("timeout")})}),t)}));for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{const r=(async()=>{try{return"function"==typeof e?{result:await e.call(void 0,t)}:{result:await e[0].call(e[1],t)}}catch(e){return{err:e}}})();i.push(Promise.race([n,r]))}catch(e){throw e}}return Promise.all(i)}return[]}get listenerSize(){return this._listeners?this._listeners.size:0}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}t.Emitter=s,s._noop=()=>{};t.PauseableEmitter=class extends s{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.LinkedList,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}},function(e){e.fire=async function(e,t,i){const r=[],n=Object.assign(t,{waitUntil:e=>{if(Object.isFrozen(r))throw new Error("waitUntil cannot be called asynchronously.");r.push(e)}});e.fire(n),Object.freeze(r),delete n.waitUntil,r.length&&(void 0!==i?await Promise.race([Promise.all(r),new Promise((e=>setTimeout(e,i)))]):await Promise.all(r))}}(t.WaitUntilEvent||(t.WaitUntilEvent={}))},65579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(40791),t),r.__exportStar(i(78838),t),r.__exportStar(i(89920),t),r.__exportStar(i(23814),t),r.__exportStar(i(91684),t),r.__exportStar(i(99422),t),r.__exportStar(i(64928),t),r.__exportStar(i(46021),t),r.__exportStar(i(19954),t)},23814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0}},91684:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(23814);class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);t.LinkedList=class{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===n.Undefined?r.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}toArray(){const e=[];for(let t=this._first;t!==n.Undefined;t=t.next)e.push(t.element);return e}}},64928:(e,t,i)=>{"use strict";var r=i(63634);function n(e,t){return i.g.hasOwnProperty("platform")?i.g.platform===t:void 0!==r&&"browser"!==r.platform?r.platform===t:!!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf(e)>=0)}Object.defineProperty(t,"__esModule",{value:!0}),t.isWindows=n("Windows","win32"),t.isOSX=n("Mac","darwin"),t.isLinux=n("Linux","linux")},19954:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(46021),n=i(64928).isWindows?/\\/g:/\//g;class o{constructor(e){e=e.replace(n,o.separator),this.raw=o.normalizeDrive(e);const t=e.indexOf(o.separator),i=e.lastIndexOf(o.separator);this.isAbsolute=0===t,this.base=-1===i?e:e.substr(i+1),this.isRoot=this.isAbsolute&&t===i&&(!this.base||o.isDrive(this.base)),this.root=this.computeRoot();const r=this.base.lastIndexOf(".");-1===r||0===r?(this.name=this.base,this.ext=""):(this.name=this.base.substr(0,r),this.ext=this.base.substr(r))}static isDrive(e){return e.endsWith(":")}static splitPath(e){return e.split(o.separator).filter((e=>!!e))}static isRelative(e){return!e.startsWith(o.separator)}static pathDepth(e){return e.split(o.separator).length}static normalizeDrive(e){if(e.length>=3&&47===e.charCodeAt(0)&&58===e.charCodeAt(2)){const t=e.charCodeAt(1);t>=65&&t<=90&&(e=`/${String.fromCharCode(t+32)}:${e.substr(3)}`)}else if(e.length>=2&&58===e.charCodeAt(1)){const t=e.charCodeAt(0);t>=65&&t<=90&&(e=`${String.fromCharCode(t+32)}:${e.substr(2)}`)}return e}computeRoot(){if(this.isRoot)return this;if(!this.isAbsolute)return;const e=this.raw.indexOf(o.separator,o.separator.length);return-1===e?new o(o.separator):new o(this.raw.substr(0,e)).root}get dir(){return void 0===this._dir&&(this._dir=this.computeDir()),this._dir}computeDir(){if(this.isRoot)return this;const e=this.raw.lastIndexOf(o.separator);if(-1===e)return this;if(this.isAbsolute){const t=this.raw.indexOf(o.separator);if(t===e)return new o(this.raw.substr(0,t+1))}return new o(this.raw.substr(0,e))}join(...e){if(f(this.raw.charCodeAt(0)))return new o(t.win32.join(this.raw,...e));const i=e.filter((e=>!!e)).join(o.separator);return i?this.raw.endsWith(o.separator)?new o(this.raw+i):new o(this.raw+o.separator+i):this}toString(){return this.raw}relative(e){if(this.raw===e.raw)return new o("");if(!this.raw||!e.raw)return;const t=this.base?this.raw+o.separator:this.raw;if(!e.raw.startsWith(t))return;const i=e.raw.substr(t.length);return new o(i)}isEqualOrParent(e){return!!this.relative(e)}isEqual(e){return this.raw===e.raw}relativity(e){const t=this.relative(e);if(t){const e=t.toString();return""===e?0:e.split(o.separator).length}return-1}}t.Path=o,o.separator="/";const s=46,a=47,c=92,l=58;class u extends Error{constructor(e,t,i){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const n=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${n} ${r} of type ${t}`;o+=". Received type "+typeof i,super(o)}}function d(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function h(e){return e===a||e===c}function p(e){return e===a}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function g(e,t,i,r){let n,o="",c=0,l=-1,u=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(i);-1===e?(o="",c=0):(o=o.slice(0,e),c=o.length-1-o.lastIndexOf(i)),l=d,u=0;continue}if(2===o.length||1===o.length){o="",c=0,l=d,u=0;continue}}t&&(o.length>0?o+=`${i}..`:o="..",c=2)}else o.length>0?o+=i+e.slice(l+1,d):o=e.slice(l+1,d),c=d-l-1;l=d,u=0}else n===s&&-1!==u?++u:u=-1}return o}function m(e,t){const i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}t.win32={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0?s=e[o]:t?(s=r.Process.env["="+t]||r.Process.cwd(),void 0!==s&&s.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\")):s=r.Process.cwd(),d(s,"path"),0===s.length)continue;const a=s.length;let c=0,u="",p=!1;const g=s.charCodeAt(0);if(a>1)if(h(g))if(p=!0,h(s.charCodeAt(1))){let e=2,t=e;for(;e2&&h(s.charCodeAt(2))&&(p=!0,c=3));else h(g)&&(c=1,p=!0);if(!(u.length>0&&t.length>0&&u.toLowerCase()!==t.toLowerCase())&&(0===t.length&&u.length>0&&(t=u),n||(i=s.slice(c)+"\\"+i,n=p),t.length>0&&n))break}return i=g(i,!n,"\\",h),t+(n?"\\":"")+i||"."},normalize(e){d(e,"path");const t=e.length;if(0===t)return".";let i,r=0,n=!1;const o=e.charCodeAt(0);if(t>1)if(h(o))if(n=!0,h(e.charCodeAt(1))){let n=2,o=n;for(;n2&&h(e.charCodeAt(2))&&(n=!0,r=3));else if(h(o))return"\\";let s;return s=r0&&h(e.charCodeAt(t-1))&&(s+="\\"),void 0===i?n?s.length>0?"\\"+s:"\\":s.length>0?s:"":n?s.length>0?i+"\\"+s:i+"\\":s.length>0?i+s:i},isAbsolute(e){d(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return!!h(i)||!!(f(i)&&t>2&&e.charCodeAt(1)===l&&h(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let i,r;for(let t=0;t0&&(void 0===i?i=r=n:i+="\\"+n)}if(void 0===i)return".";let n=!0,o=0;if("string"==typeof r&&h(r.charCodeAt(0))){++o;const e=r.length;e>1&&h(r.charCodeAt(1))&&(++o,e>2&&(h(r.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(i="\\"+i.slice(o))}return t.win32.normalize(i)},relative(e,i){if(d(e,"from"),d(i,"to"),e===i)return"";const r=t.win32.resolve(e),n=t.win32.resolve(i);if(r===n)return"";if((e=r.toLowerCase())===(i=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===c;--s);const a=s-o;let l=0;for(;ll&&i.charCodeAt(u-1)===c;--u);const h=u-l,p=ap){if(i.charCodeAt(l+g)===c)return n.slice(l+g+1);if(2===g)return n.slice(l+g)}a>p&&(e.charCodeAt(o+g)===c?f=g:2===g&&(f=3));break}const t=e.charCodeAt(o+g);if(t!==i.charCodeAt(l+g))break;t===c&&(f=g)}if(g!==p&&-1===f)return n;let m="";for(-1===f&&(f=0),g=o+f+1;g<=s;++g)g!==s&&e.charCodeAt(g)!==c||(0===m.length?m+="..":m+="\\..");return m.length>0?m+n.slice(l+f,u):(l+=f,n.charCodeAt(l)===c&&++l,n.slice(l,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const i=t.win32.resolve(e);if(i.length>=3)if(i.charCodeAt(0)===c){if(i.charCodeAt(1)===c){const e=i.charCodeAt(2);if(63!==e&&e!==s)return"\\\\?\\UNC\\"+i.slice(2)}}else if(f(i.charCodeAt(0))&&i.charCodeAt(1)===l&&i.charCodeAt(2)===c)return"\\\\?\\"+i;return e},dirname(e){d(e,"path");const t=e.length;if(0===t)return".";let i=-1,r=-1,n=!0,o=0;const s=e.charCodeAt(0);if(t>1)if(h(s)){if(i=o=1,h(e.charCodeAt(1))){let r=2,n=r;for(;r2&&h(e.charCodeAt(2))&&(i=o=3));else if(h(s))return e;for(let i=t-1;i>=o;--i)if(h(e.charCodeAt(i))){if(!n){r=i;break}}else n=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,r=0,n=-1,o=!0;if(e.length>=2){f(e.charCodeAt(0))&&e.charCodeAt(1)===l&&(r=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=r;--i){const c=e.charCodeAt(i);if(h(c)){if(!o){r=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(n=i):(s=-1,n=a))}return r===n?n=a:-1===n&&(n=e.length),e.slice(r,n)}for(i=e.length-1;i>=r;--i)if(h(e.charCodeAt(i))){if(!o){r=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(r,n)},extname(e){d(e,"path");let t=0,i=-1,r=0,n=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===l&&f(e.charCodeAt(0))&&(t=r=2);for(let c=e.length-1;c>=t;--c){const t=e.charCodeAt(c);if(h(t)){if(!o){r=c+1;break}}else-1===n&&(o=!1,n=c+1),t===s?-1===i?i=c:1!==a&&(a=1):-1!==i&&(a=-1)}return-1===i||-1===n||0===a||1===a&&i===n-1&&i===r+1?"":e.slice(i,n)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("\\",e)},parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let r=0,n=e.charCodeAt(0);if(i>1){if(h(n)){if(r=1,h(e.charCodeAt(1))){let t=2,n=t;for(;t2))return t.root=t.dir=e,t;if(h(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;r=3}}}else if(h(n))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));let o=-1,a=r,c=-1,u=!0,p=e.length-1,g=0;for(;p>=r;--p)if(n=e.charCodeAt(p),h(n)){if(!u){a=p+1;break}}else-1===c&&(u=!1,c=p+1),n===s?-1===o?o=p:1!==g&&(g=1):-1!==o&&(g=-1);return-1===o||-1===c||0===g||1===g&&o===c-1&&o===a+1?-1!==c&&(t.base=t.name=e.slice(a,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c),t.ext=e.slice(o,c)),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let o;o=n>=0?e[n]:r.Process.cwd(),d(o,"path"),0!==o.length&&(t=o+"/"+t,i=o.charCodeAt(0)===a)}return t=g(t,!i,"/",p),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===a,i=e.charCodeAt(e.length-1)===a;return 0!==(e=g(e,!t,"/",p)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(d(e,"path"),e.length>0&&e.charCodeAt(0)===a),join(...e){if(0===e.length)return".";let i;for(let t=0;t0&&(void 0===i?i=e:i+="/"+e)}return void 0===i?".":t.posix.normalize(i)},relative(e,i){if(d(e,"from"),d(i,"to"),e===i)return"";if((e=t.posix.resolve(e))===(i=t.posix.resolve(i)))return"";let r=1;for(;rl){if(i.charCodeAt(s+h)===a)return i.slice(s+h+1);if(0===h)return i.slice(s+h)}else o>l&&(e.charCodeAt(r+h)===a?u=h:0===h&&(u=0));break}const t=e.charCodeAt(r+h);if(t!==i.charCodeAt(s+h))break;t===a&&(u=h)}let p="";for(h=r+u+1;h<=n;++h)h!==n&&e.charCodeAt(h)!==a||(0===p.length?p+="..":p+="/..");return p.length>0?p+i.slice(s+u):(s+=u,i.charCodeAt(s)===a&&++s,i.slice(s))},toNamespacedPath:e=>e,dirname(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===a;let i=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===a){if(!r){i=t;break}}else r=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,r=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===a){if(!o){r=i+1;break}}else-1===c&&(o=!1,c=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(n=i):(s=-1,n=c))}return r===n?n=c:-1===n&&(n=e.length),e.slice(r,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===a){if(!o){r=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(r,n)},extname(e){d(e,"path");let t=-1,i=0,r=-1,n=!0,o=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==a)-1===r&&(n=!1,r=c+1),l===s?-1===t?t=c:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){i=c+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===i+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("/",e)},parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===a;let r;i?(t.root="/",r=1):r=0;let n=-1,o=0,c=-1,l=!0,u=e.length-1,h=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==a)-1===c&&(l=!1,c=u+1),t===s?-1===n?n=u:1!==h&&(h=1):-1!==n&&(h=-1);else if(!l){o=u+1;break}}return-1===n||-1===c||0===h||1===h&&n===c-1&&n===o+1?-1!==c&&(t.base=t.name=0===o&&i?e.slice(1,c):e.slice(o,c)):(0===o&&i?(t.name=e.slice(1,n),t.base=e.slice(1,c)):(t.name=e.slice(o,n),t.base=e.slice(o,c)),t.ext=e.slice(n,c)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===r.Process.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===r.Process.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===r.Process.platform?t.win32.join:t.posix.join,t.resolve="win32"===r.Process.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===r.Process.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===r.Process.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===r.Process.platform?t.win32.basename:t.posix.basename,t.extname="win32"===r.Process.platform?t.win32.extname:t.posix.extname,t.format="win32"===r.Process.platform?t.win32.format:t.posix.format,t.parse="win32"===r.Process.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===r.Process.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===r.Process.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===r.Process.platform?t.win32.delimiter:t.posix.delimiter},46021:(e,t,i)=>{"use strict";var r=i(63634);Object.defineProperty(t,"__esModule",{value:!0});const n=i(64928),o=void 0===r?{cwd:()=>"/",env:Object.create(null),get platform(){return n.isWindows?"win32":n.isOSX?"darwin":"linux"}}:r;!function(e){e.cwd=o.cwd,e.env=o.env,e.platform=o.platform}(t.Process||(t.Process={}))},99422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i={};function r(e,t){0}function n(e,t){0}function o(e,t,r){t||i[r]||(e(!1,r),i[r]=!0)}function s(e,t){o(r,e,t)}t.warning=r,t.note=n,t.resetWarned=function(){i={}},t.call=o,t.warningOnce=s,t.noteOnce=function(e,t){o(n,e,t)},t.default=s},60510:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(14670),n=i(23140);let o=i(22003);o.default&&(o=o.default);class s{constructor(e,t,i){this.bufferedAmount=0,this.extensions="",this.readyState=0,this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.onmessage=()=>{},this.onclose=()=>{},this.onerror=()=>{},this.onopen=()=>{},this.connectionList=[],this.listenerMap={open:[],close:[]};const a=new n.ChildConnectPath;this.clientId=i||r.generate(),this.protocol=(t||[""])[0];for(let t=0;t{i.close(e,t)})),this.listenerMap={close:[],open:[]}}addEventListener(e,t,i){this.listenerMap[e]?this.listenerMap[e].push(t):this.connectionList.forEach((r=>{r.addEventListener(e,t,i)}))}removeEventListener(e,t,i){this.listenerMap[e]?this.listenerMap[e]=this.listenerMap[e].filter((e=>e!==t)):this.connectionList.forEach((r=>{r.removeEventListener(e,t,i)}))}dispatchEvent(e){return this.connectionList.every((t=>t.dispatchEvent(e)))}bindMethod(){this.connectionList.forEach((e=>{e.onmessage=e=>{this.onmessage(e)},e.onerror=e=>{this.onerror(e)},e.onopen=e=>{this.fireOnOpen(e)},e.onclose=e=>{this.fireOnClose(e)}}))}fireOnOpen(e){this.readyState!==this.OPEN&&(this.readyState=this.OPEN,this.onopen.call(this,e),this.listenerMap.open.forEach((t=>{t.call(this,e)})))}fireOnClose(e){this.connectionList.some((e=>e.readyState===this.OPEN))||(this.readyState=this.CLOSED,this.onclose.call(this,e),this.listenerMap.close.forEach((t=>{t.call(this,e)})))}getAvailableConnection(){let e;return this.connectionList.filter((e=>!!this.isAvailable(e))).some((t=>(e||(e=t),0===t.bufferedAmount&&(e=t,!0)))),e}isAvailable(e){return e.OPEN===e.readyState}}t.MultiWs=s,s.defaultLength=4},39699:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(23140),n=i(14670),o=i(27592),s=i(60510),a=i(99422),c=i(65686);let l=i(22003);l.default&&(l=l.default);class u{constructor(e,t,i,r,o){this.wsPath=e,this.protocols=i,this.channelMap=new Map,this.logger=console,this.getChannelSend=e=>t=>{e.send(t,(e=>{e&&this.logger.warn(e)}))},this.logger=t||this.logger,this.clientId=o||`CLIENT_ID_${n.generate()}`,this.connection=r?new s.MultiWs(e,i,this.clientId):new l(e,i,{})}replaceLogger(e){e&&(this.logger=e)}setReporter(e){this.reporterService=e}clientMessage(){const e=o.stringify({kind:"client",clientId:this.clientId});this.connection.send(e)}heartbeatMessage(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer),this.heartbeatMessageTimer=i.g.setTimeout((()=>{const e=o.stringify({kind:"heartbeat",clientId:this.clientId});this.connection.send(e),this.heartbeatMessage()}),5e3)}async initHandler(){this.connection.onmessage=e=>{this.heartbeatMessage();const t=o.parse(e.data);if(t.id){const e=this.channelMap.get(t.id);e?("data"!==t.kind||e.fireMessage||this.logger.error("channel not ready!",t),e.handleMessage(t)):this.logger.warn(`channel ${t.id} not found`)}},await new Promise((e=>{this.connection.addEventListener("open",(()=>{this.clientMessage(),this.heartbeatMessage(),e(),this.channelMap.size&&this.channelMap.forEach((e=>{e.onOpen((()=>{this.reporterService&&this.reporterService.point(c.REPORT_NAME.CHANNEL_RECONNECT),this.logger&&this.logger.log(`channel reconnect ${this.clientId}:${e.channelPath}`)})),e.open(e.channelPath),e.fireReOpen&&e.fireReOpen()}))}))}))}async openChannel(e){const t=this.getChannelSend(this.connection),i=`${this.clientId}:${e}`,n=new r.WSChannel(t,i);return this.channelMap.set(n.id,n),await new Promise((t=>{n.onOpen((()=>{t()})),n.open(e)})),n}dispose(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer)}}t.WSChannelHandler=u;t.WSChanneHandler=class extends u{constructor(e,t,i,r,n){super(e,t,i,r,n),this.wsPath=e,this.protocols=i,a.warning(!1,"[Deprecated warning]: WSChanneHandler was a wrong typo, please use WSChannelHandler")}}},51998:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(17503),n=i(46635);class o extends r.AbstractMessageReader{constructor(e){super(),this.socket=e,this.state="initial",this.events=[],this.socket.onMessage?this.socket.onMessage((e=>{this.readMessage(e)})):this.socket.onmessage?this.socket.onmessage=e=>{this.readMessage(e)}:this.socket.on&&this.socket.on("message",(e=>{this.readMessage(e)}))}listen(e){for("initial"===this.state&&(this.state="listening",this.callback=e);0!==this.events.length;){const e=this.events.pop();e.message&&this.readMessage(e.message)}return n.Disposable.create((()=>{this.state="closed",this.callback=void 0,this.events=[]}))}readMessage(e){if("initial"===this.state)this.events.splice(0,0,{message:e});else if("listening"===this.state){const t=JSON.parse(e);this.callback(t)}}}t.WebSocketMessageReader=o;class s extends r.AbstractMessageWriter{constructor(e){super(),this.socket=e}write(e){try{const t=JSON.stringify(e);return this.socket.send(t),Promise.resolve()}catch(e){return Promise.reject(e)}}end(){}}t.WebSocketMessageWriter=s,t.createWebSocketConnection=function(e){return r.createMessageConnection(new o(e),new s(e))}},17911:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(67616),t)},62668:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);var n;function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack}}return e}!function(e){e[e.MAIN=0]="MAIN",e[e.EXT=1]="EXT"}(t.RPCProtocolEnv||(t.RPCProtocolEnv={})),t.transformErrorForSerialization=o;class s{constructor(e){this.serviceId=e,this.countId=++s.count}}t.ProxyIdentifier=s,s.count=0,t.createExtHostContextProxyIdentifier=function(e){return new s(e)},t.createMainContextProxyIdentifier=function(e){return new s(e)},function(e){e.replacer=function(e,t){if(t){if(1===t.$mid){return{$type:"VSCODE_URI",data:r.Uri.revive(t).toString()}}if(t instanceof Uint8Array||t instanceof Uint32Array||t instanceof Uint16Array)return{$type:"Buffer",data:Array.from(t)}}return t},e.reviver=function(e,t){if(t&&void 0!==t.$type&&void 0!==t.data){if("VSCODE_URI"===t.$type)return r.Uri.parse(t.data);if("Buffer"===t.$type)return Uint8Array.from(t.data)}return t}}(n=t.ObjectTransfer||(t.ObjectTransfer={}));class a{static cancel(e,t){return`{"type":4,"id":"${e}"}`}static serializeRequest(e,t,i,r){return r=r.map((e=>{if(e instanceof Error){const t=Array.prototype.slice.call(arguments);return t[0]=e.stack,t.join("\n")}return e})),`{"type": 1, "id": "${e}", "proxyId": "${t}", "method": "${i}", "args": ${JSON.stringify(r,n.replacer)}}`}static serializeReplyOK(e,t,i){if(void 0===t)return`{"type": 2, "id": "${e}"}`;try{return`{"type": 2, "id": "${e}", "res": ${JSON.stringify(t,n.replacer)}}`}catch(r){return i&&i.warn("res",t),`{"type": 2, "id": "${e}", "res": {}}`}}static serializeReplyError(e,t,i){try{return`{"type": 3, "id": "${e}", "res": ${JSON.stringify(o(t),n.replacer)}}`}catch(r){return i&&i.error("error",t),`{"type": 3, "id": "${e}", "res": {}}`}}}t.MessageIO=a,t.IRPCProtocol=Symbol("IRPCProtocol");t.RPCProtocol=class{constructor(e,t){this._protocol=e,this._locals=new Map,this._proxies=new Map,this._pendingRPCReplies=new Map,this._cancellationTokenSources=new Map,this._lastMessageId=0,this.logger=t||console,this._protocol.onMessage((e=>this._receiveOneMessage(e)))}set(e,t){return this._locals.set(e.serviceId,t),t}get(e){return this._locals.get(e.serviceId)}getProxy(e){return this._proxies.has(e.serviceId)||this._proxies.set(e.serviceId,this._createProxy(e.serviceId)),this._proxies.get(e.serviceId)}_createProxy(e){const t={get:(t,i)=>"symbol"==typeof i?null:(t[i]||36!==i.charCodeAt(0)||(t[i]=(...t)=>this._remoteCall(e,i,t)),t[i])};return new Proxy(Object.create(null),t)}_remoteCall(e,t,i){const n=i.length&&r.CancellationToken.isCancellationToken(i[i.length-1])?i.pop():void 0;if(n&&n.isCancellationRequested)return Promise.reject(function(){const e=new Error("Canceled");return e.name=e.message,e}());const o=String(++this._lastMessageId),s=new r.Deferred;n&&(i.push("add.cancellation.token"),n.onCancellationRequested((()=>this._protocol.send(a.cancel(o))))),this._pendingRPCReplies.set(o,s);const c=a.serializeRequest(o,e,t,i);return this._protocol.send(c),s.promise}_receiveOneMessage(e){const t=JSON.parse(e,n.reviver);switch(t.type){case 1:this._receiveRequest(t);break;case 2:this._receiveReply(t);break;case 4:this._receiveCancel(t);break;case 3:this._receiveError(t)}}_receiveCancel(e){const t=this._cancellationTokenSources.get[e.id];t&&t.cancel()}_receiveError(e){const t=e.id;if(!this._pendingRPCReplies.has(t))return;const i=this._pendingRPCReplies.get(t);let r;this._pendingRPCReplies.delete(t),e.res&&(e.res.$isError?(r=new Error,r.name=e.res.name,r.message=e.res.message,r.stack=e.res.stack):r=e.res),i.reject(r)}_receiveRequest(e){const t=e.id,i=e.proxyId,n=e.method,o=e.args.map((e=>null===e?void 0:e));if(!(!o.length||"add.cancellation.token"!==o[o.length-1])&&o.pop()){const e=new r.CancellationTokenSource;this._cancellationTokenSources.set(t,e),o.push(e.token)}this._invokeHandler(i,n,o).then((e=>{this._protocol.send(a.serializeReplyOK(t,e)),this._cancellationTokenSources.delete(t)})).catch((e=>{this._protocol.send(a.serializeReplyError(t,e)),this._cancellationTokenSources.delete(t)}))}_invokeHandler(e,t,i){try{return this._doInvokeHandler(e,t,i)}catch(e){return Promise.reject(e)}}async _doInvokeHandler(e,t,i){const r=this._locals.get(e);if(!r)throw new Error("Unknown actor "+e);const n=await r[t];if("function"!=typeof n)throw new Error("Unknown method "+t+" on actor "+e);return n.apply(r,i)}_receiveReply(e){const t=e.id;if(!this._pendingRPCReplies.has(t))return;const i=this._pendingRPCReplies.get(t);this._pendingRPCReplies.delete(t),i.resolve(e.res)}}},27592:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e){return JSON.stringify(e)},t.parse=function(e,t){return JSON.parse(e,t)}},23140:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(27592);t.WSChannel=class{constructor(e,t){this.connectionSend=e,t&&(this.id=t)}setConnectionSend(e){this.connectionSend=e}onMessage(e){this.fireMessage=e}onOpen(e){this.fireOpen=e}onReOpen(e){this.fireReOpen=e}ready(){this.connectionSend(r.stringify({kind:"ready",id:this.id}))}handleMessage(e){"ready"===e.kind?this.fireOpen(e.id):"data"===e.kind&&this.fireMessage(e.content)}open(e){this.channelPath=e,this.connectionSend(r.stringify({kind:"open",id:this.id,path:e}))}send(e){this.connectionSend(r.stringify({kind:"data",id:this.id,content:e}))}onError(){}close(e,t){this.fireClose&&this.fireClose(e,t)}onClose(e){this.fireClose=e}};t.ChildConnectPath=class{constructor(){this.pathPre="child_connect-"}getConnectPath(e,t){return`${this.pathPre}${e+1}`}parseInfo(e){const t=e.split("-");return{pre:t[0],index:t[1],clientId:t[2]}}}},39273:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(38983),t),r.__exportStar(i(17911),t),r.__exportStar(i(23140),t),r.__exportStar(i(39699),t),r.__exportStar(i(62668),t)},3541:(e,t,i)=>{"use strict";var r=i(63634);Object.defineProperty(t,"__esModule",{value:!0});const n=i(8303);t.SocketMessageReader=n.SocketMessageReader,t.SocketMessageWriter=n.SocketMessageWriter;const o=i(67616);var s;!function(e){e[e.Service=0]="Service",e[e.Stub=1]="Stub"}(s=t.ServiceType||(t.ServiceType={})),t.initRPCService=function(e){return{createRPCService:(t,i)=>{const r=new a(t,e,s.Service).getProxy();return i&&r.onRequestService(i),r},getRPCService:t=>new a(t,e,s.Stub).getProxy()}},t.createRPCService=function(e,t){return new a(e,t,s.Service).getProxy()},t.getRPCService=function(e,t){return new a(e,t,s.Stub).getProxy()};t.RPCServiceCenter=class{constructor(e,t){this.bench=e,this.rpcProxy=[],this.serviceProxy=[],this.connection=[],this.serviceMethodMap={},this.createService=[],this.getService=[],this.uid="RPCServiceCenter:"+r.pid,this.connectionPromise=new Promise((e=>{this.connectionPromiseResolve=e})),this.logger=t||console}registerService(e,t){t===s.Service?(this.createService.push(e),this.bench&&this.bench.registerService(e)):t===s.Stub&&this.getService.push(e)}when(){return this.connectionPromise}setConnection(e){this.connection.length||this.connectionPromiseResolve(),this.connection.push(e);const t=new o.RPCProxy(this.serviceMethodMap,this.logger);t.listen(e),this.rpcProxy.push(t);const i=t.createProxy();this.serviceProxy.push(i)}removeConnection(e){const t=this.connection.indexOf(e);return-1!==t&&(this.connection.splice(t,1),this.rpcProxy.splice(t,1),this.serviceProxy.splice(t,1)),-1!==t}onRequest(e,t){this.connection.length?this.rpcProxy.forEach((i=>{i.listenService({[e]:t})})):this.serviceMethodMap[e]=t}broadcast(e,...t){return Promise.all(this.serviceProxy.map((i=>i[e](...t)))).then((e=>e.filter((e=>e!==o.NOTREGISTERMETHOD)))).then((e=>1===e.length?e[0]:e))}};class a{constructor(e,t,i){this.serviceName=e,this.center=t,this.type=i,this.getProxy=()=>new Proxy(this,{get:(e,t)=>e[t]?e[t]:"symbol"==typeof t?Promise.resolve():(...e)=>this.ready().then((()=>{const i=this.getMethodName(t);return Promise.all(this.center.serviceProxy.map((t=>t[i](...e)))).then((e=>e.filter((e=>e!==o.NOTREGISTERMETHOD)))).then((e=>1===e.length?e[0]:e))}))}),this.type===s.Service&&this.center.registerService(e,this.type)}async ready(){return this.center.when()}getNotificationName(e){return`on:${this.serviceName}:${e}`}getRequestName(e){return`${this.serviceName}:${e}`}on(e,t){this.onRequest(e,t)}getServiceMethod(e){let t=[];if(/^\s*class/.test(e.constructor.toString())){let i=e;do{t=t.concat(Object.getOwnPropertyNames(i))}while(i=Object.getPrototypeOf(i));t=t.sort().filter(((t,i,r)=>t!==r[i+1]&&"function"==typeof e[t]))}else for(const i in e)e[i]&&"function"==typeof e[i]&&t.push(i);return t}onRequestService(e){const t=this.getServiceMethod(e);for(const i of t)this.onRequest(i,e[i].bind(e))}onRequest(e,t){this.center.onRequest(this.getMethodName(e),t)}broadcast(e,...t){return this.center.broadcast(this.getMethodName(e),...t)}getMethodName(e){return e.startsWith("on")?this.getNotificationName(e):this.getRequestName(e)}}t.RPCServiceStub=a,t.createSocketConnection=function(e){return n.createMessageConnection(new n.SocketMessageReader(e),new n.SocketMessageWriter(e))}},67616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RPCService=class{},t.NOTREGISTERMETHOD="$$NOTREGISTERMETHOD";class i{constructor(e,t=["then"]){this.proxy=e,this.reservedWords=t}getClient(){return new Proxy({},{get:(e,t)=>this.reservedWords.includes(t)||"symbol"==typeof t?Promise.resolve():this.proxy[t]})}}t.ProxyClient=i;t.RPCProxy=class{constructor(e,t){this.target=e,this.proxyService={},this.waitForConnection(),this.logger=t||console}listenService(e){if(this.connection){const t=this.proxyService;this.bindOnRequest(e,((e,i)=>{t[i]=e[i].bind(e)}))}else{const t=this.target||{};this.getServiceMethod(e).forEach((i=>{t[i]=e[i].bind(e)}))}}listen(e){this.connection=e,this.target&&this.listenService(this.target),this.connectionPromiseResolve(e),e.listen()}createProxy(){const e=new Proxy(this,this);return new i(e).getClient()}get(e,t){const i=t.toString();return(...e)=>this.connectionPromise.then((t=>(t=this.connection||t,new Promise(((r,n)=>{try{let o=!1;if(1===e.length&&Array.isArray(e[0])&&(o=!0),i.startsWith("on"))o?t.sendNotification(i,[...e]):t.sendNotification(i,...e),r(null);else{let s;s=o?t.sendRequest(i,[...e]):t.sendRequest(i,...e),s.catch((e=>{n(e)})).then((e=>{if(e.error){const t=new Error(e.data.message);e.data.stack&&(t.stack=e.data.stack),n(t)}else r(e.data)}))}}catch(e){}})))))}getServiceMethod(e){let t=[];if(/^\s*class/.test(e.constructor.toString())){let i=e;do{t=t.concat(Object.getOwnPropertyNames(i))}while(i=Object.getPrototypeOf(i));t=t.sort().filter(((t,i,r)=>t!==r[i+1]&&"function"==typeof e[t]))}else for(const i in e)e[i]&&"function"==typeof e[i]&&t.push(i);return t}bindOnRequest(e,i){if(this.connection){const r=this.connection;this.getServiceMethod(e).forEach((t=>{t.startsWith("on")?r.onNotification(t,((...e)=>this.onNotification(t,...e))):r.onRequest(t,((...e)=>this.onRequest(t,...e))),i&&i(e,t)})),r.onRequest((e=>{if(!this.proxyService[e])return{error:!1,data:t.NOTREGISTERMETHOD}}))}}waitForConnection(){this.connectionPromise=new Promise((e=>{this.connectionPromiseResolve=e}))}serializeArguments(e){const t=e[e.length-1];return 2===e.length&&Array.isArray(e[0])&&t.hasOwnProperty("_isCancelled")?[...e[0],t]:e}async onRequest(e,...t){try{return{error:!1,data:await this.proxyService[e](...this.serializeArguments(t))}}catch(e){return{error:!0,data:{message:e.message,stack:e.stack}}}}onNotification(e,...t){try{this.proxyService[e](...this.serializeArguments(t))}catch(e){this.logger.warn("notification",e)}}}},91928:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(47175),n=i(5157),o=i(57026),s=i(27592),a=i(23140),c=i(75311),l=n();class u{constructor(){this.handlerMap=new Map,this.paramsKey=new Map}register(e,t){const i=e.indexOf("/:");let r=e;i>=0&&(r=e.slice(0,i),this.paramsKey.set(r,e.slice(i+2))),this.handlerMap.has(r)||this.handlerMap.set(r,[]);const n=this.handlerMap.get(r),o=t.handler.bind(t);t.handler=(e,i,r)=>{t.connection=e,o(e,i,r)},n.push(t),this.handlerMap.set(r,n)}getParams(e,t){const i={};if(this.paramsKey.has(e)){const r=this.paramsKey.get(e);r&&(i[r]=t)}return i}removeHandler(e,t){const i=e.indexOf(":");let r=e;i>=0&&(r=e.slice(0,i));const n=this.handlerMap.get(r)||[],o=n.indexOf(t);-1!==o&&n.splice(o,1),this.handlerMap.set(e,n)}get(e){return this.handlerMap.get(e)}disposeConnectionClientId(e,t){this.handlerMap.forEach((i=>{i.forEach((i=>{i.dispose(e,t)}))}))}reconnectConnectionClientId(e,t){}disposeAll(){}getAll(){return Array.from(this.handlerMap.values())}}t.CommonChannelPathHandler=u,t.commonChannelPathHandler=new u;class d extends r.WebSocketHandler{constructor(e,t=console,i){super(),this.logger=t,this.handlerId="common-channel",this.channelMap=new Map,this.connectionMap=new Map,this.heartbeatMap=new Map,this.channelConnectionSend=e=>t=>{e.readyState===e.OPEN&&e.send(t,(e=>{e&&this.logger.log(e)}))},this.useExperimentalMultiChannel=i,this.handlerRoute=l(`${e}${i?"/:channel":""}`),this.initWSServer(i)}hearbeat(e,t){const r=i.g.setTimeout((()=>{t.ping(),this.hearbeat(e,t)}),5e3);this.heartbeatMap.set(e,r)}initWSServer(e){this.logger.log("init Common Channel Handler"),this.wsServer=e?new c.MultiWsServer:new o.Server({noServer:!0}),this.wsServer.on("connection",(e=>{let i;e.on("message",(r=>{let n;try{if(n=s.parse(r),"heartbeat"===n.kind)e.send(s.stringify(`heartbeat ${n.clientId}`));else if("client"===n.kind){const t=n.clientId;this.logger.log("new connection clientId",t),i=t,this.connectionMap.set(t,e),this.hearbeat(i,e)}else if("open"===n.kind){const r=n.id,{path:o}=n;this.logger.log("new open channelId",r,"channelPath",o);const s=this.channelConnectionSend(e),c=new a.WSChannel(s,r);this.channelMap.set(r,c);let l,u=t.commonChannelPathHandler.get(o);if(!u){const e=o.indexOf("/");e>=0&&(u=t.commonChannelPathHandler.get(o.slice(0,e)),l=t.commonChannelPathHandler.getParams(o.slice(0,e),o.slice(e+1)))}if(u)for(let e=0,t=u.length;e{t.commonChannelPathHandler.disposeConnectionClientId(e,i),this.heartbeatMap.has(i)&&(clearTimeout(this.heartbeatMap.get(i)),this.heartbeatMap.delete(i),this.logger.verbose(`clear heartbeat ${i}`)),Array.from(this.channelMap.values()).filter((e=>-1!==e.id.toString().indexOf(i))).forEach((e=>{e.close(1,"close"),this.channelMap.delete(e.id),this.logger.verbose(`remove channel ${e.id}`)}))}))}))}handleUpgrade(e,t,i,r){if(this.handlerRoute(e)){const n=this.wsServer;return this.useExperimentalMultiChannel?n.handleUpgrade(e,t,i,r):n.handleUpgrade(t,i,r,(t=>{t.routeParam={pathname:e},n.emit("connection",t)})),!0}return!1}}t.CommonChannelHandler=d,d.channelId=0},38983:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(47175),t),r.__exportStar(i(91928),t),r.__exportStar(i(3541),t)},75311:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(57026),n=i(17187),o=i(27592);class s{constructor(e){this.listMap=new Map,this.maxLength=e||3}push(e){const t=this.listMap.get(e)||{lastUseDate:0,usedTimes:0};t.lastUseDate=(new Date).getTime(),t.usedTimes=t.usedTimes+1,this.listMap.set(e,t),this.clearInvalid()}has(e){return this.clearInvalid(),!!this.listMap.get(e)}clear(){this.listMap.clear()}clearInvalid(){let e,t;const i=[];this.listMap.forEach(((r,n)=>{e=e||r,t=t||n,r.lastUseDate>e.lastUseDate&&(e=r,t=n),(new Date).getTime()-r.lastUseDate>100&&i.push(n)})),this.listMap.size>this.maxLength&&i.push(t),i.forEach((e=>{this.listMap.delete(e)}))}}class a extends n.EventEmitter{constructor(){super(...arguments),this.isConnected=!1,this.readyState=0,this.connectionList=[]}get CONNECTING(){return a.CONNECTING}get CLOSING(){return a.CLOSING}get CLOSED(){return a.CLOSED}get OPEN(){return a.OPEN}get binaryType(){return this.connectionList[0].binaryType}set binaryType(e){this.connectionList.forEach((t=>{t.binaryType=e}))}get bufferedAmount(){let e=0;return this.connectionList.forEach((t=>{e+=t.bufferedAmount})),e}addConnection(e){this.connectionList.push(e),this.bindEvent(e),e.readyState===this.OPEN&&this.onOpen()}ping(e,t,i){this.connectionList.forEach((r=>{r.ping(e,t,i)}))}close(e,t){this.connectionList.forEach((i=>{i.close(e,t)}))}async send(e,t){let i=o.parse(e).content||"{}";i=JSON.parse(i);const r=this.getAvailableConnection(i.method?i.method:"");if(!r){if(this.readyState===this.CLOSED)return void console.warn("连接已经关闭!");throw Error("找不到可用连接!")}i.method&&(r.recentSendMessageMark=r.recentSendMessageMark||new s,r.recentSendMessageMark.push(i.method)),r.sending=!0,r.send(e,(e=>{r.sending=!1,e&&t&&t()}))}getAvailableConnection(e){let t,i,r;return this.connectionList.filter((e=>!!this.isAvailable(e))).forEach(((n,o)=>{t||(t=n),n.readyState===n.OPEN&&(n.sending||i||(i=n),e&&n.recentSendMessageMark&&n.recentSendMessageMark.has(e)&&(r=n))})),r||i||t}bindEvent(e){e.on("message",(e=>{this.emit("message",e)})),e.on("error",(e=>{this.emit("error",e)})),e.on("ping",(e=>{this.emit("ping",e)})),e.on("pong",(e=>{this.emit("pong",e)})),e.on("close",((e,t)=>{this.onClose(e,t)}))}onClose(e,t){this.readyState!==this.CLOSED&&(this.connectionList.some((e=>e.readyState===this.OPEN))||(this.emit("close",e,t),this.readyState=this.CLOSED))}onOpen(){this.readyState!==this.OPEN&&(this.emit("open"),this.readyState=this.OPEN)}isAvailable(e){return e.OPEN===e.readyState}}a.CONNECTING=0,a.OPEN=1,a.CLOSING=2,a.CLOSED=3;class c extends n.EventEmitter{constructor(){super(...arguments),this.wsServerMap=new Map,this.clientMap=new Map,this.onConnection=e=>{this.emit("connection",e)}}handleUpgrade(e,t,i,n){const o=t.headers["sec-websocket-protocol"];if(!o)throw new Error("没有用 protocol 设置 clientId");let s=this.wsServerMap.get(e);this.clientMap.get(o)||this.clientMap.set(o,new a);const c=this.clientMap.get(o);s||(s=new r.Server({noServer:!0}),s.on("connection",(e=>{const t=this.clientMap.get(e.protocol);t.isConnected||(t.isConnected=!0,this.onConnection(t))}))),s.handleUpgrade(t,i,n,(t=>{t.routeParam={pathname:e},s.emit("connection",t),c.addConnection(t)})),this.wsServerMap.set(e,s)}}t.MultiWsServer=c},47175:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(42232),n=i(8575);t.WebSocketHandler=class{};t.WebSocketServerRoute=class{constructor(e,t=console,i=8729,r=[]){this.logger=t,e&&(this.server=e),this.port=i,this.wsServerHandlerArr=r}registerHandler(e){-1===this.wsServerHandlerArr.findIndex((t=>t.handlerId===e.handlerId))&&this.wsServerHandlerArr.push(e)}deleteHandler(e){let t;t=e.handlerId?e.handlerId:e;const i=this.wsServerHandlerArr.findIndex((e=>e.handlerId===t));return-1!==i&&(this.wsServerHandlerArr.splice(i,1),!0)}init(){this.initServer(),this.initHandler(),this.handleUpgrade()}initServer(){this.server||(this.server=r.createServer(),this.server.listen(this.port,(()=>{this.logger.log(`websocket server listen on ${this.port}`)})))}initHandler(){this.wsServerHandlerArr.forEach((e=>{e.init&&e.init.call(e)}))}handleUpgrade(){const e=this.server,t=this.wsServerHandlerArr;e.on("upgrade",((e,i,r)=>{const o=n.parse(e.url).pathname;let s=0;const a=t.length;for(;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{static get(){const e=i.doGet();if(void 0===e)throw new Error("The configuration is not set. Did you call ClientAppConfigProvider#set?");return e}static set(e){if(void 0!==i.doGet())throw new Error("The configuration is already set.");window[i.KEY]=e}static doGet(){return window[i.KEY]}}t.ClientAppConfigProvider=i,i.KEY=Symbol("ClientAppConfigProvider")},37397:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);class s extends o.BasicEvent{}t.ClientAppStateEvent=s;let a=class{constructor(){this._state="init",this.deferred={}}get state(){return this._state}set state(e){e!==this._state&&(this.deferred[this._state]=new o.Deferred,this._state=e,void 0===this.deferred[e]&&(this.deferred[e]=new o.Deferred),this.deferred[e].resolve(),this.eventBus.fire(new s(e)))}reachedState(e){return void 0===this.deferred[e]&&(this.deferred[e]=new o.Deferred),this.deferred[e].promise}reachedAnyState(...e){return Promise.race(e.map((e=>this.reachedState(e))))}};r.__decorate([n.Autowired(o.IEventBus),r.__metadata("design:type",Object)],a.prototype,"eventBus",void 0),a=r.__decorate([n.Injectable()],a),t.ClientAppStateService=a},37233:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);let s=class{constructor(){this._initialized=new o.Deferred}async initializeData(){this._backendOS=await this.commonServer.getBackendOS(),this._initialized.resolve()}get frontendOS(){return o.OS.type()}get backendOS(){if(this._backendOS)return this._backendOS;if(o.isElectronRenderer())return this.frontendOS;throw new Error("Can't get backend os type before initialize, if you want wait to get backend os, please use async method: getBackendOS")}async getBackendOS(){return await this._initialized.promise,this._backendOS}};r.__decorate([n.Autowired(o.CommonServerPath),r.__metadata("design:type",Object)],s.prototype,"commonServer",void 0),s=r.__decorate([n.Injectable()],s),t.ApplicationService=s},1415:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(11189),t),r.__exportStar(i(37397),t)},65622:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(79950),s=i(65686);let a=class{async onStart(){await this.authenticationService.initialize()}registerCommands(e){e.registerCommand({id:s.noAccountsId,label:"%authentication.noAccounts%"},{execute:()=>{}})}};r.__decorate([n.Autowired(s.IAuthenticationService),r.__metadata("design:type",Object)],a.prototype,"authenticationService",void 0),a=r.__decorate([s.Domain(o.ClientAppContribution,s.CommandContribution)],a),t.AuthenticationContribution=a},83414:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(43849);let a=class extends n.Disposable{constructor(){super(...arguments),this._onDidRegisterAuthenticationProvider=this.registerDispose(new n.Emitter),this.onDidRegisterAuthenticationProvider=this._onDidRegisterAuthenticationProvider.event,this._onDidUnregisterAuthenticationProvider=this.registerDispose(new n.Emitter),this.onDidUnregisterAuthenticationProvider=this._onDidUnregisterAuthenticationProvider.event,this._onDidChangeSessions=this.registerDispose(new n.Emitter),this.onDidChangeSessions=this._onDidChangeSessions.event,this._authenticationProviders=new Map,this._signInRequestItems=new Map}async initialize(){this._storage=await this.getStorage(new n.URI("authentication").withScheme(n.STORAGE_SCHEMA.GLOBAL));const e=new Map;this.onDidChangeSessions((async t=>{if(t.event.added.length>0){const i=await this.getSessions(t.providerId);i.forEach((r=>{if(i.find((t=>e.get(t.id))))return;const o=new n.DisposableCollection,a=`account-sign-out-${t.providerId}-${r.id}`,c=this.commands.registerCommand({id:a,label:n.formatLocalize("authentication.signOut",t.label)},{execute:async()=>{await this.signOutOfAccount(t.providerId,r.account.label)}}),l=`manage-trusted-${t.providerId}-${r.id}`,u=this.commands.registerCommand({id:l,label:"%authentication.manageTrustedExtensions%"},{execute:async()=>{await this.manageTrustedExtensionsForAccount(t.providerId,r.account.label)}}),d=`${t.providerId}${r.account.label}`,h=this.menus.registerMenuItem(s.MenuId.AccountsContext,{submenu:d,label:`${r.account.label} (${t.label})`}),p=this.menus.registerMenuItems(d,[{command:l},{command:a}]);o.push(h),o.push(p),o.push(c),o.push(u),e.set(r.id,o)}))}t.event.removed.length>0&&t.event.removed.forEach((t=>{const i=e.get(t.id);i&&(i.dispose(),e.delete(t.id))}))}))}get storage(){return this._storage}registerAuthenticationProvider(e,t){this._authenticationProviders.set(e,t),this._onDidRegisterAuthenticationProvider.fire({id:e,label:t.label}),this.updateAccountsMenuItem()}async sessionsUpdate(e,t){const i=this._authenticationProviders.get(e);i&&(this._onDidChangeSessions.fire({providerId:e,label:i.label,event:t}),await i.updateSessionItems(t),this.updateAccountsMenuItem(),t.added&&await this.updateNewSessionRequests(i))}async updateNewSessionRequests(e){const t=this._signInRequestItems.get(e.id);if(!t)return;const i=await e.getSessions();Object.keys(t).forEach((r=>{if(i.some((e=>e.scopes.slice().sort().join("")===r))){const i=t[r];i&&i.disposables.forEach((e=>e.dispose())),delete t[r],0===Object.keys(t).length?this._signInRequestItems.delete(e.id):this._signInRequestItems.set(e.id,t)}}))}getTrustedKey(e,t){return`trusted-${e}-${t}`}async getAllowedExtensions(e,t){const i=this.getTrustedKey(e,t);let r=[];try{const e=await this.storage.get(i);e&&(r=JSON.parse(e))}catch(e){this.logger.warn("read allow extensions error: "+e)}return r}async setAllowedExtensions(e,t,i){const r=this.getTrustedKey(e,t);await this.storage.set(r,JSON.stringify(i))}async removeAllowedExtensions(e,t){const i=this.getTrustedKey(e,t);await this.storage.delete(i)}async tryActivateProvider(e){await this.eventBus.fireAndAwait(new n.ExtensionActivateEvent({topic:"onView",data:e}));let t=this._authenticationProviders.get(e);if(t)return t;const i=new Promise(((i,r)=>{this.onDidRegisterAuthenticationProvider((r=>{if(r.id===e){if(t=this._authenticationProviders.get(e),!t)throw new Error(`No authentication provider '${e}' is currently registered.`);i(t)}}))})),r=new Promise(((t,i)=>{setTimeout((()=>{i(new Error(`didRegister ${e} timeout`))}),5e3)}));return Promise.race([i,r])}async getSessions(e){try{const t=this._authenticationProviders.get(e)||await this.tryActivateProvider(e);return await t.getSessions()}catch(t){throw new Error(`No authentication provider '${e}' is currently registered.`)}}isAuthenticationProviderRegistered(e){return this._authenticationProviders.has(e)}getProviderIds(){const e=[];return this._authenticationProviders.forEach((t=>{e.push(t.id)})),e}unregisterAuthenticationProvider(e){const t=this._authenticationProviders.get(e);t&&(t.dispose(),this._authenticationProviders.delete(e),this._onDidUnregisterAuthenticationProvider.fire({id:e,label:t.label}),this.updateAccountsMenuItem())}updateAccountsMenuItem(){let e=!1;this._authenticationProviders.forEach((t=>{e=e||t.hasSessions()})),e&&this._noAccountsMenuItem&&(this._noAccountsMenuItem.dispose(),this._noAccountsMenuItem=void 0),e||this._noAccountsMenuItem||(this._noAccountsMenuItem=this.menus.registerMenuItem(s.MenuId.AccountsContext,{group:"0_accounts",command:n.noAccountsId}))}async requestNewSession(e,t,i,r){let o=this._authenticationProviders.get(e);if(o||await new Promise(((t,i)=>{this.onDidRegisterAuthenticationProvider((i=>{i.id===e&&(o=this._authenticationProviders.get(e),t())}))})),o){const o=this._signInRequestItems.get(e),a=t.sort().join("");if(o&&o[a]&&o[a].requestingExtensionIds.includes(i))return;const c=this.commands.registerCommand({id:`${i}signIn`,label:n.formatLocalize("authentication.signInRequests",r)},{execute:async()=>{const n=await this.login(e,t),o=n.account.label,s=await this.getAllowedExtensions(e,o);s.find((e=>e.id===i))||(s.push({id:i,name:r}),await this.setAllowedExtensions(e,o,s)),await this.setExtensionSessionId(r,e,n.id)}}),l=this.menus.registerMenuItem(s.MenuId.AccountsContext,{group:"2_signInRequests",command:`${i}signIn`});if(o){const t=o[a]||{disposables:[],requestingExtensionIds:[]};o[a]={disposables:[...t.disposables,l,c],requestingExtensionIds:[...t.requestingExtensionIds,i]},this._signInRequestItems.set(e,o)}else this._signInRequestItems.set(e,{[a]:{disposables:[l,c],requestingExtensionIds:[i]}})}}getLabel(e){const t=this._authenticationProviders.get(e);if(t)return t.label;throw new Error(`No authentication provider '${e}' has been declared.`)}supportsMultipleAccounts(e){const t=this._authenticationProviders.get(e);if(t)return t.supportsMultipleAccounts;throw new Error(`No authentication provider '${e}' is currently registered.`)}async login(e,t){try{const i=this._authenticationProviders.get(e)||await this.tryActivateProvider(e);return await i.login(t)}catch(t){throw new Error(`No authentication provider '${e}' is currently registered.`)}}logout(e,t){const i=this._authenticationProviders.get(e);if(i)return i.logout(t);throw new Error(`No authentication provider '${e}' is currently registered.`)}manageTrustedExtensionsForAccount(e,t){const i=this._authenticationProviders.get(e);if(i)return i.manageTrustedExtensions(t);throw new Error(`No authentication provider '${e}' is currently registered.`)}signOutOfAccount(e,t){const i=this._authenticationProviders.get(e);if(i)return i.signOut(t);throw new Error(`No authentication provider '${e}' is currently registered.`)}getUsagesKey(e,t){return`usages-${e}-${t}`}async getAccountUsages(e,t){const i=this.getUsagesKey(e,t),r=await this.storage.get(i);let n=[];if(r)try{n=JSON.parse(r)}catch(e){this.logger.warn("parse account usages error: "+e)}return n}async addAccountUsage(e,t,i,r){const n=this.getUsagesKey(e,t),o=await this.getAccountUsages(e,t),s=o.findIndex((e=>e.extensionId===i));s>-1?o.splice(s,1,{extensionId:i,extensionName:r,lastUsed:Date.now()}):o.push({extensionId:i,extensionName:r,lastUsed:Date.now()}),await this.storage.set(n,JSON.stringify(o))}async removeAccountUsage(e,t){const i=this.getUsagesKey(e,t);await this.storage.delete(i)}getExtensionSessionIdKey(e,t){return`session-${e}-${t}`}async getExtensionSessionId(e,t){const i=this.getExtensionSessionIdKey(e,t);return await this.storage.get(i)}async setExtensionSessionId(e,t,i){const r=this.getExtensionSessionIdKey(e,t);await this.storage.set(r,i)}async removeExtensionSessionId(e,t){const i=this.getExtensionSessionIdKey(e,t);await this.storage.delete(i)}};r.__decorate([o.Autowired(n.ILogger),r.__metadata("design:type",Object)],a.prototype,"logger",void 0),r.__decorate([o.Autowired(n.StorageProvider),r.__metadata("design:type",Function)],a.prototype,"getStorage",void 0),r.__decorate([o.Autowired(n.IEventBus),r.__metadata("design:type",Object)],a.prototype,"eventBus",void 0),r.__decorate([o.Autowired(s.IMenuRegistry),r.__metadata("design:type",s.IMenuRegistry)],a.prototype,"menus",void 0),r.__decorate([o.Autowired(n.CommandRegistry),r.__metadata("design:type",Object)],a.prototype,"commands",void 0),a=r.__decorate([o.Injectable()],a),t.AuthenticationService=a},42282:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);i(15681);const n=i(19745),o=i(73399),s=i(60157),a=i(66384),c=i(18247),l=i(65686),u=i(1415),d=i(60095),h=i(35978),p=i(39273),f=i(83880),g=i(86543),m=i(1415),v=i(86543),y=i(35094),_=i(83977),b=i(68612),w=i(43849),S=i(80431),C=i(91033),E=i(8308);m.ClientAppConfigProvider.set({applicationName:"KAITIAN",uriScheme:"KT_KAITIAN"}),void 0===window.ResizeObserver&&(window.ResizeObserver=C.default);t.ClientApp=class{constructor(e){var t,i,o;this.browserModules=[],this._inComposition=!1,this._handleBeforeUpload=e=>{if(l.isElectronRenderer()){if("electron_confirmed_close"===this.stateService.state)return;e.returnValue="",e.preventDefault(),"electron_asking_close"!==this.stateService.state&&(this.stateService.state="electron_asking_close",this.preventStopElectron().then((e=>{if(!e)return this.stopContributionsElectron().then((()=>{this.stateService.state="electron_confirmed_close";const e=this.injector.get(_.IElectronMainLifeCycleService);setTimeout((()=>{e.closeWindow(b.electronEnv.currentWindowId)}),0)}));this.stateService.state="ready"})))}else if(this.preventStop())return(e||window.event).returnValue=!0,!0},this._handleUnload=()=>{this.stateService.state="closing_window",l.isElectronRenderer()||this.stopContributions()},this._handleResize=()=>{},this._handleKeydown=e=>{e&&e.target.name!==c.NO_KEYBINDING_NAME&&!this._inComposition&&this.keybindingService.run(e)},this._handleCompositionstart=()=>{this._inComposition=!0},this._handleCompositionend=()=>{this._inComposition=!1},this._handleWheel=()=>{};const{modules:s,contributions:a,modulesInstances:u,connectionPath:d,connectionProtocols:h,iconStyleSheets:p,useCdnIcon:g,editorBackgroudImage:m,defaultPreferences:v,allowSetDocumentTitleFollowWorkspaceDir:y=!0}=e,w=r.__rest(e,["modules","contributions","modulesInstances","connectionPath","connectionProtocols","iconStyleSheets","useCdnIcon","editorBackgroudImage","defaultPreferences","allowSetDocumentTitleFollowWorkspaceDir"]);this.initEarlyPreference(e.workspaceDir||""),l.setLanguageId(f.getPreferenceLanguageId(v)),this.injector=e.injector||new n.Injector,this.modules=s,this.modules.forEach((e=>this.resolveModuleDeps(e))),this.browserModules=e.modulesInstances||[],this.config=Object.assign(Object.assign({},w),{workspaceDir:e.workspaceDir||"",extensionDir:e.extensionDir||(l.isElectronRenderer()?null===(t=b.electronEnv.metadata)||void 0===t?void 0:t.extensionDir:""),injector:this.injector,wsPath:e.wsPath||"ws://127.0.0.1:8000",layoutConfig:e.layoutConfig,editorBackgroundImage:e.editorBackgroundImage||m,allowSetDocumentTitleFollowWorkspaceDir:y}),l.isElectronEnv()&&(null===(i=b.electronEnv.metadata)||void 0===i?void 0:i.extensionDevelopmentHost)&&(this.config.extensionDevelopmentHost=b.electronEnv.metadata.extensionDevelopmentHost),e.extensionDevelopmentPath&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(Array.isArray(e.extensionDevelopmentPath)?e.extensionDevelopmentPath.map((e=>l.asExtensionCandidate(e,!0))):[l.asExtensionCandidate(e.extensionDevelopmentPath,!0)]),this.config.extensionDevelopmentHost=!!e.extensionDevelopmentPath),l.isElectronEnv()&&(null===(o=b.electronEnv.metadata)||void 0===o?void 0:o.extensionCandidate)&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(b.electronEnv.metadata.extensionCandidate||[])),this.connectionPath=d||`${this.config.wsPath}/service`,this.connectionProtocols=h,this.initBaseProvider(),this.initFields(),this.appendIconStyleSheets(p,g),this.createBrowserModules(v)}resolveModuleDeps(e){const t=Reflect.getMetadata("dependencies",e);t&&t.forEach((e=>{-1===this.modules.indexOf(e)&&this.modules.push(e)}))}async start(e,t,i){const r=this.injector.get(l.IReporterService).time(l.REPORT_NAME.MEASURE);if(i)await h.bindConnectionService(this.injector,this.modules,i);else if("electron"===t){const e=await window.createRPCNetConnection();await h.createNetClientConnection(this.injector,this.modules,e)}else"web"===t&&(await h.createClientConnection2(this.injector,this.modules,this.connectionPath,(()=>{this.onReconnectContributions()}),this.connectionProtocols,this.config.useExperimentalMultiChannel,this.config.clientId),this.logger=this.getLogger(),this.injector.get(p.WSChannelHandler).replaceLogger(this.logger));r.timeEnd("ClientApp.createConnection"),this.logger=this.getLogger(),this.stateService.state="client_connected",await this.injector.get(l.IApplicationService).initializeData(),await this.measure("Contributions.start",(()=>this.startContributions())),this.stateService.state="started_contributions",this.registerEventListeners(),await this.measure("ClientApp.renderApp",(()=>this.renderApp(e))),this.stateService.state="ready",r.timeEnd("Framework.ready")}getLogger(){return this.logger||(this.logger=this.injector.get(l.ILoggerManagerClient).getLogger(l.SupportLogNamespace.Browser)),this.logger}onReconnectContributions(){const e=this.contributions;for(const t of e)t.onReconnect&&t.onReconnect(this)}initBaseProvider(){this.injector.addProviders({token:o.IClientApp,useValue:this}),this.injector.addProviders({token:s.AppConfig,useValue:this.config}),a.injectInnerProviders(this.injector)}initFields(){this.contributionsProvider=this.injector.get(d.ClientAppContribution),this.commandRegistry=this.injector.get(l.CommandRegistry),this.keybindingRegistry=this.injector.get(c.KeybindingRegistry),this.keybindingService=this.injector.get(c.KeybindingService),this.stateService=this.injector.get(u.ClientAppStateService),this.nextMenuRegistry=this.injector.get(w.IMenuRegistry)}createBrowserModules(e){const t=this.injector;for(const e of this.modules){const i=t.get(e);this.browserModules.push(i),i.providers&&this.injector.addProviders(...i.providers),i.preferences&&i.preferences(this.injector)}g.injectCorePreferences(this.injector),this.injectPreferenceService(this.injector,e),this.injectResourceProvider(this.injector),this.injectStorageProvider(this.injector);for(const e of this.browserModules)if(e.contributionProvider)if(Array.isArray(e.contributionProvider))for(const t of e.contributionProvider)l.createContributionProvider(this.injector,t);else l.createContributionProvider(this.injector,e.contributionProvider)}get contributions(){return this.contributionsProvider.getContributions()}async startContributions(){await this.measure("Contributions.initialize",(()=>this.initializeContributions())),await this.measure("Contributions.onStart",(()=>this.onStartContributions()))}async initializeContributions(){this.logger.verbose("startContributions clientAppContributions",this.contributions),await this.runContributionsPhase(this.contributions,"initialize"),this.logger.verbose("contributions.initialize done")}async onStartContributions(){this.commandRegistry.onStart(),this.keybindingRegistry.onStart(),this.nextMenuRegistry.onStart(),await this.runContributionsPhase(this.contributions,"onStart")}async runContributionsPhase(e,t){return await Promise.all(e.map((e=>this.contributionPhaseRunner(e,t))))}async contributionPhaseRunner(e,t){const i=e[t];if("function"==typeof i)try{const r=e.constructor.name+"."+t;return await this.measure(r,(()=>i.call(e,this)))}catch(e){this.logger.error(`Could not run contribution#${t}`,e)}}async renderApp(e){await y.renderClientApp(this,e);this.injector.get(l.IEventBus).fire(new E.RenderedEvent),await this.runContributionsPhase(this.contributions,"onDidStart")}async measure(e,t){const i=this.injector.get(l.IReporterService).time(l.REPORT_NAME.MEASURE),r=await t();return i.timeEnd(e),r}preventStop(){const e=this.injector.get(v.CorePreferences)["application.confirmExit"];if("never"===e)return!1;for(const e of this.contributions)if(e.onWillStop)try{if(e.onWillStop(this))return!0}catch(e){l.getDebugLogger().error(e)}return"always"===e}async preventStopElectron(){if("never"===this.injector.get(v.CorePreferences)["application.confirmExit"])return!1;for(const e of this.contributions)if(e.onWillStop)try{if(await e.onWillStop(this))return!0}catch(e){l.getDebugLogger().error(e)}return!1}stopContributions(){for(const e of this.contributions)if(e.onStop)try{e.onStop(this)}catch(e){this.logger.error("Could not stop contribution",e)}}async stopContributionsElectron(){const e=[];for(const t of this.contributions)t.onStop&&e.push((async()=>{try{await t.onStop(this)}catch(e){this.logger.error("Could not stop contribution",e)}})());await Promise.all(e)}registerEventListeners(){window.addEventListener("beforeunload",this._handleBeforeUpload),window.addEventListener("unload",this._handleUnload),window.addEventListener("resize",this._handleResize),window.addEventListener("compositionstart",this._handleCompositionstart),window.addEventListener("compositionend",this._handleCompositionend),window.addEventListener("keydown",this._handleKeydown,!0),l.isOSX&&document.body.addEventListener("wheel",this._handleWheel,{passive:!1})}injectPreferenceService(e,t){if(f.injectPreferenceConfigurations(e),f.injectPreferenceSchemaProvider(e),e.addProviders({token:f.PreferenceProviderProvider,useFactory:()=>t=>{const i=e.get(f.PreferenceProvider,{tag:t});return i.asScope(t),i}},{token:f.PreferenceService,useClass:f.PreferenceServiceImpl}),t){const i=e.get(f.PreferenceProviderProvider)(f.PreferenceScope.Default);for(const e of Object.keys(t))i.setPreference(e,t[e])}}injectResourceProvider(e){e.addProviders({token:l.DefaultResourceProvider,useClass:l.DefaultResourceProvider}),e.addProviders({token:l.ResourceProvider,useFactory:()=>t=>e.get(l.DefaultResourceProvider).get(t)}),l.createContributionProvider(e,l.ResourceResolverContribution),e.addProviders(l.InMemoryResourceResolver)}injectStorageProvider(e){e.addProviders({token:l.DefaultStorageProvider,useClass:l.DefaultStorageProvider}),e.addProviders({token:l.StorageProvider,useFactory:()=>t=>e.get(l.DefaultStorageProvider).get(t)}),l.createContributionProvider(e,l.StorageResolverContribution)}fireOnReload(e=!1){window.location.reload(e)}appendIconStyleSheets(e,t){const i=t?[S.DEFAULT_CDN_ICON,S.IDE_OCTICONS_CN_CSS,S.IDE_CODICONS_CN_CSS]:[];e&&e.length&&e.forEach((e=>{this.updateIconMap(e.prefix,e.iconMap),i.push(e.cssPath)}));for(const e of i){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}}updateIconMap(e,t){"kaitian-icon kticon-"===e&&this.logger.error("icon prefix与内置图标冲突,请检查图标配置!"),S.updateIconMap(e,t)}initEarlyPreference(e){f.registerLocalStorageProvider("general.theme",e),f.registerLocalStorageProvider("general.icon",e),f.registerLocalStorageProvider("general.language",e)}dispose(){window.removeEventListener("beforeunload",this._handleBeforeUpload),window.removeEventListener("unload",this._handleUnload),window.removeEventListener("resize",this._handleResize),window.removeEventListener("compositionstart",this._handleCompositionstart),window.removeEventListener("compositionend",this._handleCompositionend),window.removeEventListener("keydown",this._handleKeydown,!0),l.isOSX&&document.body.removeEventListener("wheel",this._handleWheel)}}},35094:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(27196),o=i(65686),s=i(88774),a=i(8308),c=i(80431),l=i(82190),u=i(60157),d=i(65686);function h(e){const t=e.app.injector.get(o.IEventBus);return r.useEffect((()=>{let e;const i=()=>{e&&window.cancelAnimationFrame(e),e=window.requestAnimationFrame((()=>{e=null,u.allSlot.forEach((e=>{t.fire(new a.ResizeEvent({slotLocation:e.slot}))}))}))};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}),[]),r.createElement(s.ComponentContextProvider,{value:{getIcon:c.getIcon,localize:d.localize}},r.createElement(u.ConfigProvider,{value:e.app.config},r.createElement(e.main,null),e.overlays&&e.overlays.map(((e,t)=>r.createElement(e,{key:t})))))}t.App=h;t.renderClientApp=function(e,t){const i=e.config.layoutComponent||l.DefaultLayout,s=e.browserModules.filter((e=>e.isOverlay)).map((e=>e.component?e.component:(o.getDebugLogger().warn("检测到空的overlay模块",e),()=>r.createElement(r.Fragment,null)))),a=r.createElement(h,{app:e,main:i,overlays:s});var c;return("function"==typeof t?t:(c=t,e=>new Promise((t=>{n.render(e,c,(()=>{t()}))}))))(a)}},35978:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(39273),n=i(51998),o=i(65686),s=o.getDebugLogger();async function a(e,t,i){const n=new r.RPCServiceCenter;n.setConnection(i),i.onClose((()=>{n.removeConnection(i)}));const{getRPCService:o}=r.initRPCService(n),s=[],a=[];for(const i of t){const t=e.get(i);if(t.backServices)for(const e of t.backServices)s.push(e)}for(const t of s){const{servicePath:i}=t,r={token:i,useValue:o(i)};e.addProviders(r),t.clientToken&&a.push(t)}for(const t of a){const{servicePath:i}=t,r=o(i),n=e.get(t.clientToken);r.onRequestService(n)}}t.createClientConnection2=async function(e,t,i,c,l,u,d){const h=e.get(o.IReporterService),p=e.get(o.IEventBus),f=new r.WSChannelHandler(i,s,l,u,d);f.setReporter(h),f.connection.addEventListener("open",(()=>{p.fire(new o.BrowserConnectionOpenEvent)})),f.connection.addEventListener("close",(()=>{p.fire(new o.BrowserConnectionCloseEvent)})),f.connection.addEventListener("error",(e=>{p.fire(new o.BrowserConnectionErrorEvent(e))})),await f.initHandler(),e.addProviders({token:r.WSChannelHandler,useValue:f});const g=await f.openChannel("RPCService");g.onReOpen((()=>{c()})),a(e,t,n.createWebSocketConnection(g))},t.createNetClientConnection=async function(e,t,i){a(e,t,r.createSocketConnection(i))},t.bindConnectionService=a},46554:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(42282),t),r.__exportStar(i(35094),t),r.__exportStar(i(35978),t)},66384:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686),n=i(60095),o=i(37397),s=i(37233),a=i(565),c=i(18247),l=i(48719),u=i(10633),d=i(8308),h=i(68612),p=i(8330),f=i(83977),g=i(83880),m=i(99693),v=i(43849),y=i(98071),_=i(84221),b=i(88138),w=i(60157),S=i(23524),C=i(71755),E=i(23943),O=i(65329),k=i(72904),D=i(57074),M=i(75589),x=i(55288),T=i(9660),A=i(11520),I=i(37067),P=i(71543),R=i(65630),L=i(83414);t.injectInnerProviders=function(e){r.createContributionProvider(e,n.ClientAppContribution),r.createContributionProvider(e,r.CommandContribution),r.createContributionProvider(e,D.FsProviderContribution),r.createContributionProvider(e,c.KeybindingContribution),r.createContributionProvider(e,v.MenuContribution),r.createContributionProvider(e,d.ComponentContribution),r.createContributionProvider(e,w.SlotRendererContribution),r.createContributionProvider(e,g.PreferenceContribution),r.createContributionProvider(e,m.VariableContribution),r.createContributionProvider(e,d.TabBarToolbarContribution),r.createContributionProvider(e,k.ToolBarActionContribution);const t=[{token:r.IEventBus,useClass:r.EventBusImpl},{token:r.CommandService,useClass:r.CommandServiceImpl},{token:r.CommandRegistry,useClass:r.CommandRegistryImpl},{token:c.KeybindingRegistry,useClass:c.KeybindingRegistryImpl},{token:c.KeybindingService,useFactory:e=>e.get(c.KeybindingRegistry)},{token:a.KeyboardNativeLayoutService,useClass:l.BrowserKeyboardLayoutImpl},{token:a.KeyboardLayoutChangeNotifierService,useClass:l.BrowserKeyboardLayoutImpl},o.ClientAppStateService,{token:u.ILogger,useClass:u.Logger},{token:d.ComponentRegistry,useClass:d.ComponentRegistryImpl},{token:m.VariableRegistry,useClass:m.VariableRegistryImpl},{token:v.AbstractMenuService,useClass:v.MenuServiceImpl},{token:v.AbstractContextMenuService,useClass:v.ContextMenuServiceImpl},{token:v.IMenuRegistry,useClass:v.MenuRegistryImpl},{token:S.IToolbarActionService,useClass:S.ToolbarActionService},{token:y.ICtxMenuRenderer,useClass:h.useNativeContextMenu()?_.ElectronCtxMenuRenderer:b.BrowserCtxMenuRenderer},{token:v.AbstractMenubarService,useClass:v.MenubarServiceImpl},{token:r.IReporter,useClass:r.DefaultReporter},{token:r.IReporterService,useClass:r.ReporterService},{token:r.ReporterMetadata,useValue:{host:r.REPORT_HOST.BROWSER}},{token:C.IProgressService,useClass:E.ProgressService},{token:k.IToolbarRegistry,useClass:O.NextToolbarRegistryImpl},{token:k.IToolbarPopoverRegistry,useClass:R.ToolbarPopoverRegistry},O.ToolbarClientAppContribution,{token:r.IProblemPatternRegistry,useClass:r.ProblemPatternRegistryImpl},{token:r.IProblemMatcherRegistry,useClass:r.ProblemMatchersRegistryImpl},{token:r.ITaskDefinitionRegistry,useClass:r.TaskDefinitionRegistryImpl},{token:M.IOpenerService,useClass:x.OpenerService},{token:T.IWindowService,useClass:A.WindowService},{token:r.IApplicationService,useClass:s.ApplicationService},{token:I.IClipboardService,useClass:I.BrowserClipboardService},{token:P.IExternalUriService,useClass:P.ExternalUriService},{token:r.IAuthenticationService,useClass:L.AuthenticationService}];e.addProviders(...t),r.isElectronRenderer()&&e.addProviders({token:r.IElectronMainMenuService,useValue:p.createElectronMainApi("menu")},{token:f.IElectronMainUIService,useValue:p.createElectronMainApi("ui")},{token:f.IElectronMainLifeCycleService,useValue:p.createElectronMainApi("lifecycle")},{token:_.IElectronMenuFactory,useClass:_.ElectronMenuFactory},{token:_.IElectronMenuBarService,useClass:_.ElectronMenuBarService})}},73399:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745);t.IClientApp=Symbol("CLIENT_APP_TOKEN");class s extends n.BasicModule{}r.__decorate([o.Autowired(t.IClientApp),r.__metadata("design:type",Object)],s.prototype,"app",void 0),t.BrowserModule=s},40900:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(80431);!function(e){const t="file";e.NEW_FILE={id:"file.new",category:t,iconClass:n.getIcon("new-file")},e.RENAME_FILE={id:"file.rename",category:t},e.DELETE_FILE={id:"file.delete",category:t},e.NEW_FOLDER={id:"file.folder.new",category:t,iconClass:n.getIcon("new-folder")},e.COMPARE_SELECTED={id:"file.compare",category:t},e.OPEN_FILE={id:"file.open",category:t},e.SAVE_FILE={id:"file.save",category:t},e.COLLAPSE_ALL={id:"filetree.collapse.all",category:t,iconClass:n.getIcon("collapse-all")},e.REFRESH_ALL={id:"filetree.refresh.all",category:t,iconClass:n.getIcon("refresh")},e.OPEN_RESOURCES={id:"filetree.open.file",category:t},e.OPEN_TO_THE_SIDE={id:"filetree.open.side",category:t},e.COPY_PATH={id:"filetree.copy.path",category:t,label:"%file.copy.path%"},e.COPY_RELATIVE_PATH={id:"filetree.copy.relativepath",category:t},e.COPY_FILE={id:"filetree.copy.file",category:t},e.CUT_FILE={id:"filetree.cut.file",category:t},e.PASTE_FILE={id:"filetree.paste.file",category:t},e.LOCATION={id:"filetree.location",category:t},e.LOCATION_WITH_EDITOR={id:"filetree.location_with_editor",category:t,iconClass:n.getIcon("focus")},e.OPEN_FOLDER={id:"filetree.open.folder",category:t,label:"%file.open.folder%"},e.VSCODE_OPEN_FOLDER={id:"filetree.open.vscode_open_folder",category:t},e.OPEN_WORKSPACE={id:"filetree.open.workspace",category:t,label:"%file.open.workspace%"},e.SEARCH_ON_FOLDER={id:"filetree.search.folder",category:t},e.FOCUS_FILES={id:"filetree.focus.files",category:t,label:"%file.focus.files%"},e.FILTER_TOGGLE={id:"filetree.files.filter_toggle",category:t,iconClass:n.getIcon("retrieval")},e.FILTER_OPEN={id:"filetree.files.filter_open",category:t},e.OPEN_WITH_PATH={id:"filetree.openWithPath",category:t},e.FILTER_CLOSE={id:"filetree.quitFilterMode",category:t},e.NEXT={id:"filetree.next",category:t},e.PREV={id:"filetree.prev",category:t},e.COLLAPSE={id:"filetree.collapse",category:t},e.EXPAND={id:"filetree.expand",category:t},e.REVEAL_IN_EXPLORER={id:"filetree.revealInExplorer",category:t}}(t.FILE_COMMANDS||(t.FILE_COMMANDS={})),function(e){const t="openeditors";e.SAVE_ALL={id:"opened.editors.save.all",category:t,iconClass:n.getIcon("save-all")},e.CLOSE_ALL={id:"opened.editors.close.all",category:t,iconClass:n.getIcon("close-all")},e.SAVE_BY_GROUP={id:"opened.editors.save.byGroup"},e.CLOSE_BY_GROUP={id:"opened.editors.close.byGroup"},e.OPEN={id:"opened.editors.open",category:t},e.CLOSE={id:"opened.editors.close",category:t},e.OPEN_TO_THE_SIDE={id:"opened.editors.openToTheSide",category:t},e.COMPARE_SELECTED={id:"opened.editors.compare",category:t},e.COPY_RELATIVE_PATH={id:"opened.editors.copyRelativePath",category:t},e.COPY_PATH={id:"opened.editors.copyPath",category:t}}(t.OPEN_EDITORS_COMMANDS||(t.OPEN_EDITORS_COMMANDS={})),function(e){e.FIND={id:"core.find",label:r.localize("common.find")},e.REPLACE={id:"core.replace",label:r.localize("common.replace")},e.ABOUT_COMMAND={id:"core.about",label:r.localize("common.about")},e.OPEN_PREFERENCES={id:"core.openpreference",label:"%common.preference.open%"},e.LOCATE_PREFERENCES={id:"workbench.preferences.locate"},e.OPEN_KEYMAPS={id:"core.keymaps.open",label:"%common.keymaps.open%"}}(t.COMMON_COMMANDS||(t.COMMON_COMMANDS={})),function(e){const t="editor";e.NEW_UNTITLED_FILE={id:"file.new.untitled",category:t,label:"%file.new%",iconClass:n.getIcon("new-file")},e.UNDO={id:"editor.undo",category:t,label:"%editor.undo%"},e.REDO={id:"editor.redo",category:t,label:"%editor.redo%"},e.SELECT_ALL={id:"editor.selectAll",category:t,label:"%selection.all%"},e.OPEN_RESOURCE={id:"editor.openUri",category:t},e.OPEN_RESOURCES={id:"editor.openUris",category:t},e.SAVE_URI={id:"editor.saveUri",category:t,label:"%editor.saveUri%"},e.SAVE_CURRENT={id:"editor.saveCurrent",category:t,label:"%editor.saveCurrent%"},e.COMPARE={id:"editor.compare",category:t},e.CLOSE={id:"editor.close",category:t,label:"%editor.closeCurrent%"},e.CLOSE_ALL_IN_GROUP={id:"editor.closeAllInGroup",category:t,label:"%editor.closeAllInGroup%"},e.CLOSE_OTHER_IN_GROUP={id:"editor.closeOtherEditorsInGroup",category:t,label:"%editor.closeOtherEditors%"},e.CLOSE_ALL={id:"editor.closeAll",category:t,label:"%editor.close.all%"},e.CLOSE_SAVED={id:"editor.closeSaved",category:t,label:"%editor.closeSaved%"},e.SAVE_ALL={id:"editor.saveAll",category:t,label:"%editor.saveAll%"},e.CLOSE_TO_RIGHT={id:"editor.closeToRight",category:t,label:"%editor.closeToRight%"},e.GET_CURRENT={id:"editor.getCurrent",category:t},e.GET_CURRENT_RESOURCE={id:"editor.getCurrentResource",category:t},e.SPLIT_TO_LEFT={id:"editor.splitToLeft",category:t,label:"%editor.splitToLeft%"},e.SPLIT_TO_RIGHT={id:"editor.splitToRight",category:t,label:"%editor.splitToRight%",iconClass:n.getIcon("embed")},e.SPLIT_TO_TOP={id:"editor.splitToTop",category:t,label:"%editor.splitToTop%"},e.SPLIT_TO_BOTTOM={id:"editor.splitToBottom",category:t,label:"%editor.splitToBottom%"},e.CHANGE_LANGUAGE={id:"editor.changeLanguage",category:t},e.CHANGE_ENCODING={id:"editor.changeEncoding",category:t},e.CHANGE_EOL={id:"editor.changeEol",category:t},e.NAVIGATE_LEFT={id:"editor.navigateLeft",category:t},e.NAVIGATE_RIGHT={id:"editor.navigateRight",category:t},e.NAVIGATE_UP={id:"editor.navigateUp",category:t},e.NAVIGATE_DOWN={id:"editor.navigateDown",category:t},e.NAVIGATE_NEXT={id:"editor.navigateNext",category:t},e.NAVIGATE_PREVIOUS={id:"editor.navigatePrevious",category:t},e.PREVIOUS={id:"editor.previous",category:t},e.NEXT={id:"editor.next",category:t},e.PREVIOUS_IN_GROUP={id:"editor.previousInGroup",category:t},e.NEXT_IN_GROUP={id:"editor.nextInGroup",category:t},e.LAST_IN_GROUP={id:"editor.lastInGroup",category:t},e.CLOSE_OTHER_GROUPS={id:"editor.closeOtherGroup",category:t,label:"%closeEditorsInOtherGroups%"},e.OPEN_EDITOR_AT_INDEX={id:"editor.openEditorAtIndex",category:t},e.EVEN_EDITOR_GROUPS={id:"editor.evenEditorGroups",category:t,label:r.localize("evenEditorGroups","重置编辑器组大小")},e.REVERT_DOCUMENT={id:"editor.document.revert",category:t,label:r.localize("revert","还原文档")},e.REVERT_AND_CLOSE={id:"editor.revertAndClose",category:t},e.GO_FORWARD={id:"editor.goForward",category:t},e.GO_BACK={id:"editor.goBack",category:t},e.PIN_CURRENT={id:"editor.pinCurrent",category:t},e.COPY_CURRENT_PATH={id:"editor.copyCurrentPath",category:t},e.GO_TO_GROUP={id:"editor.goToGroup",category:t},e.MOVE_GROUP={id:"editor.moveGroup",category:t},e.REOPEN_CLOSED={id:"editor.reopenClosed",category:t},e.FOCUS={id:"editor.focus",category:t},e.TEST_TOKENIZE={id:"editor.tokenize.test",category:t,label:"%editor.tokenize.test%"},e.AUTO_SAVE={id:"editor.autoSave",category:t},e.FOCUS_ACTIVE_EDITOR_GROUP={id:"editor.focusActiveEditorGroup",category:t},e.COMPONENT_UNDO={id:"editor.componentUndo",category:t},e.COMPONENT_REDO={id:"editor.componentRedo"},e.SEARCH_WORKSPACE_SYMBOL={id:"editor.workspaceSymbol.quickopen",label:"%editor.workspaceSymbol.quickopen%",category:t},e.GO_TO_LINE={id:"editor.action.gotoLine",category:t},e.QUICK_OPEN={id:"workbench.action.quickOpen",category:t},e.TOGGLE_WORD_WRAP={id:"editor.toggleWorldWrap",category:t}}(t.EDITOR_COMMANDS||(t.EDITOR_COMMANDS={})),function(e){const t="search";e.OPEN_SEARCH={id:"content-search.openSearch",category:t,label:"Open search sidebar"},e.REFRESH={id:"file-search.refresh",label:"refresh search",iconClass:n.getIcon("refresh"),category:t},e.CLEAN={id:"file-search.clean",label:"clean search",iconClass:n.getIcon("clear"),category:t},e.FOLD={id:"file-search.fold",label:"fold search",iconClass:n.getIcon("collapse-all"),category:t},e.GET_RECENT_SEARCH_WORD={id:"search.getRecentSearchWordCmd",category:t},e.GET_BACK_RECENT_SEARCH_WORD={id:"search.getBackRecentSearchWordCmd",category:t},e.MENU_REPLACE={id:"search.menu.replace",category:t,label:"%search.replace.title%"},e.MENU_REPLACE_ALL={id:"search.menu.replaceAll",category:t,label:"%search.replaceAll.label%"},e.MENU_HIDE={id:"search.menu.hide",category:t,label:"%search.result.hide%"},e.MENU_COPY={id:"search.menu.copy",category:t,label:"%file.copy.file%"},e.MENU_COPY_ALL={id:"search.menu.copyAll",category:t,label:"%search.menu.copyAll%"},e.MENU_COPY_PATH={id:"search.menu.copyPath",category:t,label:"%file.copy.path%"}}(t.SEARCH_COMMANDS||(t.SEARCH_COMMANDS={})),function(e){const t="outline";e.OUTLINE_COLLAPSE_ALL={id:"outline.collapse.all",category:t},e.OUTLINE_FOLLOW_CURSOR={id:"outline.follow.cursor",category:t},e.OUTLINE_SORT_KIND={id:"outline.sort.kind",category:t},e.OUTLINE_SORT_NAME={id:"outline.sort.name",category:t},e.OUTLINE_SORT_POSITION={id:"outline.sort.position",category:t}}(t.OUTLINE_COMMANDS||(t.OUTLINE_COMMANDS={})),function(e){const t="workspace";e.ADD_WORKSPACE_FOLDER={id:"workspace.addWorkspaceFolder",label:"%workspace.addFolderToWorkspace%",category:t},e.SAVE_WORKSPACE_AS_FILE={id:"workspace.saveWorkspaceAsFile",label:"%workspace.saveWorkspaceAsFile%",category:t}}(t.WORKSPACE_COMMANDS||(t.WORKSPACE_COMMANDS={}))},42720:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(40900),s=i(86543),a=i(65686),c=i(83880),l=i(79950),u=i(81395),d=i(42610),h=i(23238),p=i(43849),f=i(18247);t.inputFocusedContextKey="inputFocus";let g=class{constructor(){this.schema=s.corePreferenceSchema}onStart(){this.inputFocusedContext=this.contextKeyService.createKey(t.inputFocusedContextKey,!1),window.addEventListener("focusin",this.updateInputContextKeys.bind(this))}onStop(){window.removeEventListener("focusin",this.updateInputContextKeys.bind(this))}activeElementIsInput(){return!!document.activeElement&&("INPUT"===document.activeElement.tagName||"TEXTAREA"===document.activeElement.tagName)}updateInputContextKeys(){const e=this.activeElementIsInput();if(this.inputFocusedContext.set(e),e){const e=d.trackFocus(document.activeElement);a.Event.once(e.onDidBlur)((()=>{this.inputFocusedContext.set(this.activeElementIsInput()),e.dispose()}))}}registerCommands(e){e.registerCommand(o.EDITOR_COMMANDS.UNDO),e.registerCommand(o.EDITOR_COMMANDS.REDO),e.registerCommand(o.EDITOR_COMMANDS.SELECT_ALL),e.registerCommand(o.COMMON_COMMANDS.ABOUT_COMMAND,{execute:()=>{alert(a.replaceLocalizePlaceholder(this.appConfig.appName)||"KAITIAN IDE Framework")}})}registerMenus(e){a.isElectronRenderer()&&e.registerMenubarItem(p.MenuId.MenubarAppMenu,{label:a.localize("app.name","KAITIAN Electron"),order:0}),e.registerMenubarItem(p.MenuId.MenubarFileMenu,{label:a.localize("menu-bar.title.file"),order:1}),e.registerMenubarItem(p.MenuId.MenubarEditMenu,{label:a.localize("menu-bar.title.edit"),order:2}),e.registerMenubarItem(p.MenuId.MenubarSelectionMenu,{label:a.localize("menu-bar.title.selection"),order:3}),e.registerMenubarItem(p.MenuId.MenubarViewMenu,{label:a.localize("menu-bar.title.view"),order:4}),e.registerMenubarItem(p.MenuId.MenubarGoMenu,{label:a.localize("menu-bar.title.go"),order:5}),e.registerMenubarItem(p.MenuId.MenubarHelpMenu,{label:a.localize("menu-bar.title.help"),order:999}),e.registerMenuItems(p.MenuId.MenubarFileMenu,[{command:o.FILE_COMMANDS.OPEN_FOLDER.id,group:"1_open",when:"config.application.supportsOpenFolder"},{command:o.FILE_COMMANDS.OPEN_WORKSPACE.id,group:"1_open",when:"config.application.supportsOpenWorkspace"},{command:o.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,group:"2_new"},{command:o.FILE_COMMANDS.NEW_FOLDER.id,group:"2_new"},{command:{id:o.EDITOR_COMMANDS.SAVE_CURRENT.id,label:a.localize("file.save")},group:"3_save"},{command:{id:o.EDITOR_COMMANDS.SAVE_ALL.id,label:a.localize("file.saveAll")},group:"3_save"},{command:{id:o.EDITOR_COMMANDS.AUTO_SAVE.id,label:a.localize("file.autoSave")},toggledWhen:"config.editor.autoSave != off",group:"4_autosave"}]),e.registerMenuItems(p.MenuId.MenubarGoMenu,[{command:{id:o.EDITOR_COMMANDS.GO_BACK.id,label:a.localize("editor.goBack")},group:"1_go"},{command:{id:o.EDITOR_COMMANDS.GO_FORWARD.id,label:a.localize("editor.goForward")},group:"1_go"},{command:{id:o.EDITOR_COMMANDS.QUICK_OPEN.id,label:a.localize("editor.quickOpen")},group:"2_go_file"},{command:{id:o.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,label:a.localize("editor.workspaceSymbol.quickopen")},group:"2_go_file"},{command:{id:o.EDITOR_COMMANDS.GO_TO_LINE.id,label:a.localize("editor.goToLine")},group:"3_go_line"}]),a.isElectronRenderer()?(e.registerMenuItems(p.MenuId.MenubarEditMenu,[{command:{id:"electron.undo",label:a.localize("editor.undo")},nativeRole:"undo",group:"1_undo"},{command:{id:"electron.redo",label:a.localize("editor.redo")},group:"1_undo",nativeRole:"redo"},{command:{label:a.localize("edit.cut"),id:"electron.cut"},nativeRole:"cut",group:"2_clipboard"},{command:{label:a.localize("edit.copy"),id:"electron.copy"},nativeRole:"copy",group:"2_clipboard"},{command:{label:a.localize("edit.paste"),id:"electron.paste"},nativeRole:"paste",group:"2_clipboard"},{command:{label:a.localize("edit.selectAll"),id:"electron.selectAll"},nativeRole:"selectAll",group:"2_clipboard"}]),e.registerMenuItems(p.MenuId.MenubarAppMenu,[{command:{id:"electron.quit",label:a.localize("app.quit")},nativeRole:"quit",group:"4_quit"}])):(e.registerMenuItems(p.MenuId.MenubarEditMenu,[{command:o.EDITOR_COMMANDS.REDO.id,group:"1_undo"},{command:o.EDITOR_COMMANDS.UNDO.id,group:"1_undo"}]),e.registerMenuItem(p.MenuId.MenubarHelpMenu,{command:{id:o.COMMON_COMMANDS.ABOUT_COMMAND.id,label:a.localize("common.about")},nativeRole:"about",group:"0_about"}))}registerKeybindings(e){e.registerKeybinding({command:o.EDITOR_COMMANDS.SELECT_ALL.id,keybinding:"ctrlcmd+a",when:"editorFocus"}),e.registerKeybinding({command:o.EDITOR_COMMANDS.UNDO.id,keybinding:"ctrlcmd+z",when:"editorFocus"}),e.registerKeybinding({command:o.EDITOR_COMMANDS.REDO.id,keybinding:"ctrlcmd+shift+z",when:"editorFocus"})}};r.__decorate([n.Autowired(a.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([n.Autowired(u.IContextKeyService),r.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(h.AppConfig),r.__metadata("design:type",Object)],g.prototype,"appConfig",void 0),g=r.__decorate([a.Domain(a.CommandContribution,l.ClientAppContribution,c.PreferenceContribution,p.MenuContribution,f.KeybindingContribution)],g),t.ClientCommonContribution=g},79950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppContribution=Symbol("ClientAppContribution")},51361:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(42720),a=i(75589),c=i(16421),l=i(65686),u=i(65622);let d=class extends o.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[a.OpenerContribution],this.providers=[s.ClientCommonContribution,c.DefaultOpnerContribution,c.OpenerContributionClient,u.AuthenticationContribution],this.backServices=[{servicePath:l.CommonServerPath}]}};d=r.__decorate([n.Injectable()],d),t.ClientCommonModule=d},27763:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);let s=class{async getScopeStorage(){return this.recentStorage=this.recentStorage||await this.getStorage(o.STORAGE_NAMESPACE.RECENT_DATA),this.recentStorage}async getGlobalStorage(){return this.recentGlobalStorage=this.recentGlobalStorage||await this.getStorage(o.STORAGE_NAMESPACE.GLOBAL_RECENT_DATA),this.recentGlobalStorage}};r.__decorate([n.Autowired(o.StorageProvider),r.__metadata("design:type",Function)],s.prototype,"getStorage",void 0),s=r.__decorate([n.Injectable()],s),t.RecentStorage=s},60095:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(40900),t),r.__exportStar(i(51361),t),r.__exportStar(i(79950),t),r.__exportStar(i(27763),t)},19401:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(62034),s=i(38142),a=i(12386);i(77522);const c=i(88774),l=i(43849),u=i(99396),d=i(68612),h=i(17606),p=i(71215),f=({data:e,hasSubmenu:t,disabled:i})=>n.createElement("div",{className:o(p.menuAction,{[p.disabled]:i,[p.checked]:e.checked})},n.createElement("div",{className:p.icon},e.checked?n.createElement(c.Icon,{icon:"check"}):null),n.createElement("div",{className:p.label},e.label?s.mnemonicButtonLabel(e.label,!0):""),n.createElement("div",{className:p.tip},e.keybinding?n.createElement("div",{className:p.shortcut},e.keybinding):null,t?n.createElement("div",{className:p.submenuIcon},n.createElement(c.Icon,{icon:"right"})):null));t.MenuActionList=({data:e=[],context:t=[],afterClick:i})=>{if(!e.length)return null;const r=n.useCallback((e=>{const{key:r,item:n}=e;if([l.SeparatorMenuItemNode.ID,l.SubmenuItemNode.ID].includes(r))return;const o=n.props.children.props.data;o&&("function"==typeof o.execute&&o.execute(t),"function"==typeof i&&i(o))}),[e,t]),o=n.useCallback((e=>e.map(((e,t)=>e.id===l.SeparatorMenuItemNode.ID?n.createElement(a.default.Divider,{key:`divider-${t}`,className:p.menuItemDivider}):e.id===l.SubmenuItemNode.ID?Array.isArray(e.children)&&e.children.length?n.createElement(a.default.SubMenu,{key:`${e.id}-${t}`,className:p.submenuItem,popupClassName:"kt-menu",title:n.createElement(f,{hasSubmenu:!0,data:e})},o(e.children)):null:n.createElement(a.default.Item,{id:`${e.id}-${t}`,key:`${e.id}-${t}`,className:p.menuItem,disabled:e.disabled},n.createElement(f,{data:e,disabled:e.disabled}))))),[]);return n.createElement(a.default,Object.assign({className:"kt-menu",selectable:!1,openTransitionName:""},{builtinPlacements:h.default},{onClick:r}),o(e))};const g=({type:e,onClick:t})=>"icon"===e?n.createElement(c.Icon,{icon:"ellipsis",className:p.iconAction,onClick:t}):n.createElement(c.Button,{size:"small",type:"secondary",className:p.btnAction,onClick:t},n.createElement(c.Icon,{icon:"ellipsis"}));g.displayName="EllipsisWidget";const m=e=>{var{type:t="icon",data:i,context:s=[],className:a,afterClick:u}=e,d=r.__rest(e,["type","data","context","className","afterClick"]);const h=n.useCallback(((e,...t)=>{if(e&&(e.preventDefault(),e.stopPropagation()),i.id===l.SubmenuItemNode.ID&&e){const t={x:e.clientX,y:e.clientY};i.execute([t,...s])}else"function"==typeof i.execute&&i.execute([...s,...t]);"function"==typeof u&&u()}),[i,s]),f=i.tooltip||i.label,g=i.id===l.SubmenuItemNode.ID;return"icon"!==t||i.type?"checkbox"===i.type?n.createElement(c.CheckBox,Object.assign({className:o(a,p.btnAction),disabled:i.disabled,label:i.label,title:f,checked:i.checked,onChange:e=>h(void 0,e.target.checked)},d)):n.createElement(c.Button,Object.assign({className:o(a,p.btnAction),disabled:i.disabled,onClick:h,size:"small",type:i.type,title:f},d),i.label,g&&n.createElement(c.Icon,{icon:"down",className:"kt-button-secondary-more"})):n.createElement(c.Button,Object.assign({type:i.icon?"icon":"link",className:o(p.iconAction,a,{[p.disabled]:i.disabled,[p.submenuIconAction]:g}),title:f,iconClass:i.icon,onClick:h},d),!i.icon&&i.label)};m.displayName="InlineAction";const v=({data:e,context:t})=>{const i=n.useCallback((()=>e.getExecuteArgs(t)),[e,t]);return n.createElement(e.component,{getExecuteArgs:i})};v.displayName="CustomAction",t.TitleActionList=({type:e="icon",nav:t=[],more:i=[],context:r=[],extraNavActions:s=[],moreAtFirst:a=!1,className:c,afterClick:d,menuId:h,regroup:f=((...e)=>e)})=>{const y=u.useInjectable(l.ICtxMenuRenderer),[_,b]=f(t,i),w=n.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b&&y.show({anchor:{x:e.clientX,y:e.clientY},menuNodes:b,args:r,onHide:d})}),[b,r]);if(0===_.length&&0===b.length&&0===s.length)return null;const S=b.length>0?n.createElement(g,{type:e,onClick:w}):null;return n.createElement("div",{className:o([p.titleActions,c]),"data-menu-id":h},a&&S,_.map((t=>{if(t.id===l.ComponentMenuItemNode.ID)return n.createElement(v,{context:r,data:t});const i=t.id===l.SubmenuItemNode.ID?t.submenuId:t.id;return n.createElement(m,{id:i,key:i,className:o({[p.selected]:t.checked}),type:e,data:t,afterClick:d,context:r})})),Array.isArray(s)&&s.length?n.createElement(n.Fragment,null,_.length&&n.createElement("span",{className:p.divider}),s):null,!a&&S)},t.TitleActionList.displayName="TitleActionList",t.InlineActionBar=function(e){const{menus:i,context:o,separator:s="navigation"}=e,a=r.__rest(e,["menus","context","separator"]),[c,l]=d.useMenus(i,s,o);return n.createElement(t.TitleActionList,Object.assign({menuId:i.menuId,nav:c,more:"inline"===s?[]:l},a))},t.InlineMenuBar=function(e){const{menus:i,context:o,separator:s="navigation"}=e,a=r.__rest(e,["menus","context","separator"]),[c,l]=d.useContextMenus(i);return n.createElement(t.TitleActionList,Object.assign({menuId:i.menuId,nav:c,more:"inline"===s?[]:l,context:o},a))}},17606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={adjustX:1,adjustY:1},r=[0,0];t.placements={topLeft:{points:["bl","tl"],overflow:i,offset:[0,-4],targetOffset:r},topCenter:{points:["bc","tc"],overflow:i,offset:[0,-4],targetOffset:r},topRight:{points:["br","tr"],overflow:i,offset:[0,-4],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:i,offset:[0,4],targetOffset:r},bottomCenter:{points:["tc","bc"],overflow:i,offset:[0,4],targetOffset:r},bottomRight:{points:["tr","br"],overflow:i,offset:[0,4],targetOffset:r}},t.default=t.placements},1832:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804);t.ClickOutside=e=>{var{mouseEvents:t=["click"],onOutsideClick:i,children:o}=e,s=r.__rest(e,["mouseEvents","onOutsideClick","children"]);const a=n.useRef(null),c=n.useCallback((e=>{a.current&&e.target&&!a.current.contains(e.target)&&i(e)}),[i]);return n.useEffect((()=>(t.forEach((e=>{window.addEventListener(e,c,!0)})),()=>{t.forEach((e=>{window.removeEventListener(e,c,!0)}))})),[t]),n.createElement("div",Object.assign({},s,{ref:a}),o)}},13205:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(87559),t),r.__exportStar(i(34191),t),r.__exportStar(i(8673),t),r.__exportStar(i(57527),t),r.__exportStar(i(23618),t),r.__exportStar(i(80279),t),r.__exportStar(i(94772),t),r.__exportStar(i(45809),t);var n=i(45830);t.NativeSelect=n.Select,r.__exportStar(i(73258),t),r.__exportStar(i(69035),t),r.__exportStar(i(51777),t),r.__exportStar(i(64528),t),r.__exportStar(i(7512),t),r.__exportStar(i(36466),t),r.__exportStar(i(85366),t),r.__exportStar(i(60313),t),r.__exportStar(i(84151),t),r.__exportStar(i(97839),t),r.__exportStar(i(17087),t),r.__exportStar(i(19713),t),r.__exportStar(i(30185),t)},69659:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(62034),s=i(16076),a=i(4649);t.BoxPanel=e=>{var{className:t,children:i=[],direction:c="left-to-right"}=e,l=r.__rest(e,["className","children","direction"]);const u=n.Children.toArray(i);return n.createElement("div",Object.assign({},l,{className:o(s["box-panel"],t),style:{flexDirection:a.Layout.getFlexDirection(c),zIndex:l["z-index"]}}),u.map(((e,t)=>n.createElement("div",{key:t,className:o(s.wrapper),style:e.props?{flex:e.props.flex,overflow:e.props.overflow,zIndex:e.props.zIndex||e.props["z-index"]}:{}},e))))}},82190:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(69659),o=i(60157),s=i(25970);t.DefaultLayout=function(){return r.createElement(n.BoxPanel,{direction:"top-to-bottom"},r.createElement(o.SlotRenderer,{slot:"top","z-index":2}),r.createElement(s.SplitPanel,{overflow:"hidden",id:"main-horizontal",flex:1},r.createElement(o.SlotRenderer,{slot:"left",defaultSize:310,minResize:204,minSize:49}),r.createElement(s.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},r.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),r.createElement(o.SlotRenderer,{flex:1,minResize:160,slot:"bottom"})),r.createElement(o.SlotRenderer,{slot:"right",defaultSize:310,minResize:200,minSize:41})),r.createElement(o.SlotRenderer,{slot:"statusBar"}))},t.ToolbarActionBasedLayout=function(){return r.createElement(n.BoxPanel,{direction:"top-to-bottom"},r.createElement(o.SlotRenderer,{slot:"top","z-index":2}),r.createElement(s.SplitPanel,{overflow:"hidden",id:"main-horizontal",flex:1},r.createElement(o.SlotRenderer,{slot:"left",defaultSize:310,minResize:204,minSize:49}),r.createElement(s.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},r.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),r.createElement(o.SlotRenderer,{flex:1,minResize:160,slot:"bottom"})),r.createElement(o.SlotRenderer,{slot:"right",defaultSize:310,minResize:200,minSize:41})),r.createElement(o.SlotRenderer,{slot:"statusBar"}))}},45809:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(4649),t),r.__exportStar(i(25970),t),r.__exportStar(i(69659),t),r.__exportStar(i(82190),t)},4649:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(94772),n={"left-to-right":{direction:"row",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"right-to-left":{direction:"row-reverse",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"top-to-bottom":{direction:"column",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"},"bottom-to-top":{direction:"column-reverse",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"}};!function(e){e.getFlexDirection=function(e){return n[e].direction},e.getSizeProperty=function(e){return n[e].size},e.getDomSizeProperty=function(e){return n[e].domSize},e.getMinSizeProperty=function(e){return n[e].minSize},e.getMaxSizeProperty=function(e){return n[e].maxSize},e.getResizeHandle=function(e){return"bottom-to-top"===e||"top-to-bottom"===e?r.ResizeHandleVertical:r.ResizeHandleHorizontal},e.getTabbarDirection=function(e){return"bottom-to-top"===e||"top-to-bottom"===e?"row":"column"}}(t.Layout||(t.Layout={}))},25970:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(62034),s=i(16076),a=i(4649),c=i(99396),l=i(94772),u=i(65686),d=i(8308),h=i(54365);t.PanelContext=n.createContext({setSize:(e,t)=>{},setRelativeSize:(e,t,i)=>{},getSize:e=>0,getRelativeSize:e=>[0,0],lockSize:(e,t)=>{},setMaxSize:(e,t)=>{},hidePanel:e=>{}});const p=(e,t)=>e&&e.props&&e.props[t];t.SplitPanel=e=>{var{id:i,className:f,children:g=[],direction:m="left-to-right",resizeKeep:v=!0,flexGrow:y,dynamicTarget:_,minResize:b,useDomSize:w}=e,S=r.__rest(e,["id","className","children","direction","resizeKeep","flexGrow","dynamicTarget","minResize","useDomSize"]);const C=a.Layout.getResizeHandle(m),E=n.Children.toArray(g),O=E.reduce(((e,t)=>e+(void 0!==p(t,"flex")?t.props.flex:1)),0);let k=w?0:E.reduce(((e,t)=>e+(void 0!==p(t,"savedSize")?t.props.savedSize:0)),0);const D=[],M=n.useRef([]),x=c.useInjectable(u.IEventBus),T=n.useRef();w&&T.current&&(k=T.current.clientHeight);const A=c.useInjectable(h.SplitPanelManager).getService(i),I=n.useRef(E.map((()=>!1))),P=n.useRef(E.map((()=>!1))),R=n.useRef(I.current.slice(0,E.length-1)),[L,N]=n.useState(R.current),[F,B]=n.useState(P.current),[z,V]=n.useState(I.current);A.panels=[];const j=e=>(t,i)=>{const r=i?e-1:e,n=M.current[r];n&&n.setAbsoluteSize(void 0!==t?t:p(E[e],"defaultSize"),i,v)},K=e=>(t,i,r)=>{const n=r?e-1:e,o=M.current[n];o&&o.setRelativeSize(t,i)},H=e=>t=>{const i=t?e-1:e,r=M.current[i];return r?r.getAbsoluteSize(t):0},W=e=>t=>{const i=t?e-1:e,r=M.current[i];return r?r.getRelativeSize():[0,0]},U=e=>(t,i)=>{const r=i?e-1:e,n=R.current.map(((e,i)=>i===r?void 0!==t?t:!e:e));R.current=n,N(n)},G=e=>(t,i)=>{const r=I.current.map(((i,r)=>r===e?void 0!==t?t:!i:i));I.current=r,V(r)},q=e=>t=>{const i=P.current.map(((i,r)=>r===e?void 0!==t?!t:!i:i));P.current=i;const r=p(E[e],"slot")||p(E[e],"id");r&&$(r),B(i)},$=e=>{e&&x.fire(new d.ResizeEvent({slotLocation:e}))};function Y(e){return e.props.savedSize?e.props.savedSize/k*100+"%":e.props.flex?e.props.flex/O*100+"%":e.props.defaultSize?e.props.defaultSize+"px":1/O*100+"%"}return E.forEach(((e,i)=>{if(0!==i){const t=1===i?E[i-1]:E[i];let r;p(e,"flexGrow")?r=l.ResizeFlexMode.Prev:p(E[i-1],"flexGrow")&&(r=l.ResizeFlexMode.Next),D.push(n.createElement(C,{className:p(t,"noResize")||L[i-1]?"no-resize":"",onResize:(e,t)=>{const r=p(E[i-1],"slot")||p(E[i-1],"id"),n=p(E[i],"slot")||p(E[i],"id");$(r),$(n)},noColor:!0,findNextElement:_?e=>A.getFirstResizablePanel(i-1,e):void 0,findPrevElement:_?e=>A.getFirstResizablePanel(i-1,e,!0):void 0,key:`split-handle-${i}`,delegate:e=>{M.current.push(e)},flexMode:r}))}D.push(n.createElement(t.PanelContext.Provider,{key:i,value:{setSize:j(i),getSize:H(i),setRelativeSize:K(i),getRelativeSize:W(i),lockSize:U(i),setMaxSize:G(i),hidePanel:q(i)}},n.createElement("div",{"data-min-resize":p(e,"minResize"),ref:e=>{e&&-1===A.panels.indexOf(e)&&A.panels.push(e)},id:p(e,"id"),style:{[a.Layout.getSizeProperty(m)]:Y(e),[a.Layout.getMinSizeProperty(m)]:p(e,"minSize")?e.props.minSize+"px":"-1px",[a.Layout.getMaxSizeProperty(m)]:z[i]&&p(e,"minSize")?e.props.minSize+"px":"unset",flexGrow:void 0!==p(e,"flexGrow")?e.props.flexGrow:"unset",display:F[i]?"none":"block"}},e)))})),n.useEffect((()=>{T.current&&(A.rootNode=T.current);const e=x.on(d.ResizeEvent,(e=>{e.payload.slotLocation===i&&E.forEach((e=>{$(p(e,"slot")||p(e,"id"))}))}));return()=>{e.dispose()}}),[]),n.createElement("div",Object.assign({ref:e=>T.current=e},S,{className:o(s["split-panel"],f),style:{flexDirection:a.Layout.getFlexDirection(m)}}),D)}},54365:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745);let o=class{constructor(e){this.panelId=e,this.panels=[]}getFirstResizablePanel(e,t,i){if(i){if(t)return this.panels[e];for(let t=e;t>=0;t--)if(this.panels[t].clientHeight>120)return this.panels[t]}else{if(!t)return this.panels[e+1];for(let t=e+1;t120)return this.panels[t]}}};o=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[String])],o),t.SplitPanelService=o;let s=class{constructor(){this.services=new Map}getService(e){let t=this.services.get(e);return t||(t=this.injector.get(o,[e]),this.services.set(e,t)),t}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],s.prototype,"injector",void 0),s=r.__decorate([n.Injectable()],s),t.SplitPanelManager=s},80279:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(83753),t)},83753:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(62034),o=i(86664),s=i(87559),a=i(93096),c={prevProps:{data:[]},slices:[],currentSliceIndex:0,topSpaces:[],bottomSpaces:[],isScrolled:!1};class l extends r.Component{constructor(){super(...arguments),this.processing=!1,this.state=c,this.scrollToBottom=a((()=>{this.scrollBarEl&&this.scrollBarEl.updateScroll&&this.scrollBarEl.updateScroll(),this.containerEl.scrollTop=this.containerEl.children[0].offsetHeight}),500),this.bindBoundaryEls=()=>{const{slices:e,currentSliceIndex:t}=this.state,i=this.listEl.childNodes;this.topBoundary=i[e[t].amount],this.nextBoundary=i[e[t].amount+e[t+1].amount-1]},this.unbindBoundaryEls=()=>{this.topBoundary=null,this.nextBoundary=null},this.handleScroll=e=>{if(!this.shouldOptimize||this.processing)return;if(!this.topBoundary||!this.nextBoundary)return;const{sliceThreshold:t}=this.props,{slices:i,currentSliceIndex:r,topSpaces:n,bottomSpaces:o,isScrolled:s}=this.state;s||this.setState({isScrolled:!0});const a=this.topBoundary.getBoundingClientRect().top,c=this.nextBoundary.getBoundingClientRect().bottom,l=this.containerEl.getBoundingClientRect().top;if(c-l{this.bindBoundaryEls(),this.processing=!1}))}else{const e=c-a;this.setState({topSpaces:new Array(i.length-3).fill(e),bottomSpaces:[],isScrolled:!1},(()=>{this.bindBoundaryEls(),this.processing=!1}))}return}a>l+this.containerEl.clientHeight-t&&r>0&&(this.processing=!0,this.setState({currentSliceIndex:r-1,topSpaces:n.slice(0,n.length-1),bottomSpaces:o.concat(n.slice(n.length-1))},(()=>{this.bindBoundaryEls(),this.processing=!1})))},this.mayLoadMore=()=>{if(!this.placeholderEl||!this.containerEl)return;const{top:e}=this.containerEl.getBoundingClientRect(),t=this.containerEl.clientHeight,{top:i}=this.placeholderEl.getBoundingClientRect();if(i<=t+e){const{onLoad:e}=this.props;e()}},this.handleObserve=([e])=>{if(!e.isIntersecting)return;const{isLoading:t,isDrained:i,onLoad:r}=this.props;t||i||r()},this.startObserve=()=>{this.placeholderEl&&(this.stopObserve(),this.observer=new IntersectionObserver(this.handleObserve),this.observer.observe(this.placeholderEl))},this.stopObserve=()=>{this.observer&&(this.observer.disconnect(),this.observer=null)},this.renderItem=(e,t)=>{const{template:i,keyProp:n}=this.props;return r.createElement(i,{data:e,index:t,key:e[n]})}}static getDerivedStateFromProps(e,t){const{prevProps:i,isScrolled:r}=t,{data:n,sliceSize:o,scrollBottomIfActive:s}=e,{data:a}=i,c=((e,t)=>{const i=[];for(let r=0,n=e.length;n>=0;r++,n-=t)i.push({startIndex:t*r,amount:n>t?t:n});return i})(n,o);return a===n?null:c.length<3?{slices:c,currentSliceIndex:0,topSpaces:[],bottomSpaces:[],prevProps:{data:n}}:n.length!==a.length?s&&!r?{slices:c,currentSliceIndex:c.length-3,prevProps:{data:n}}:{slices:c,currentSliceIndex:0,prevProps:{data:n}}:{slices:c,prevProps:{data:n}}}componentDidMount(){const{isDrained:e}=this.props;this.shouldOptimize&&this.bindBoundaryEls(),e||this.startObserve()}componentDidUpdate(e){const{data:t,isDrained:i}=e,{isLoading:r,isDrained:n,data:o,scrollBottomIfActive:s}=this.props;t.length!==o.length?s&&o.length&&this.scrollToBottom():t.length>o.length&&(this.containerEl.scrollTop=0),this.shouldOptimize?this.bindBoundaryEls():this.unbindBoundaryEls(),r||(n?this.stopObserve():!i||n?t.length3}get visibleData(){const{data:e}=this.props;if(!this.shouldOptimize)return e;if(this.shouldOptimize){const{slices:t,currentSliceIndex:i}=this.state,r=t.slice(i,i+3),n=r[0].startIndex,o=r.reduce(((e,t)=>t.amount+e),0);return e.slice(n,n+o)}}get containerEl(){const{getContainer:e}=this.props;return e&&e(this.rootEl)||document.body}render(){const{className:e,style:t,placeholders:i,isDrained:a,isLoading:c}=this.props,{topSpaces:l,bottomSpaces:u}=this.state;return r.createElement(s.PerfectScrollbar,{className:n(o.infinity_container,e),style:t,onScrollY:this.handleScroll,ref:e=>this.scrollBarEl=e,containerRef:e=>this.rootEl=e,options:{minScrollbarLength:20}},r.createElement("div",{ref:e=>this.listEl=e,style:{paddingTop:`${l.reduce(((e,t)=>t+e),0)}px`,paddingBottom:`${u.reduce(((e,t)=>t+e),0)}px`}},this.visibleData&&this.visibleData.map(this.renderItem)),!a&&c&&r.createElement("div",{ref:e=>this.placeholderEl=e},i.loading),a&&i.drained)}}t.InfinityList=l,l.defaultProps={keyProp:"id",placeholders:{},sliceSize:30,sliceThreshold:30,isScrolled:!1}},88422:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(94723),t)},94723:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804);i(366),t.Loading=()=>r.createElement("div",{className:"loading_indicator "}),t.Loading.displayName="Loading"},57527:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(27196),n=i(99396);t.default=({id:e,children:t})=>{const i=n.usePortal(e);return r.createPortal(t,i)}},68858:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(86460);t.ProgressBar=({loading:e})=>e?r.createElement("div",{className:n.progressbar},r.createElement("div",{className:n.barblock})):null},23618:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(59996),t)},59996:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(49711),o=i(62034),s=i(80279);t.RecycleList=({template:e,className:t="",style:i,data:a,keyProp:c="id",placeholders:l={},isLoading:u=!1,isDrained:d=!1,sliceSize:h=30,sliceThreshold:p=30,header:f=[],headerClass:g="",scrollBottomIfActive:m=!1,onLoad:v=(()=>{})})=>r.createElement("div",{className:n.recycle_list_conatainer},(e=>{if(e&&e.length>0)return r.createElement("div",{className:o(n.recycle_list_header,g)},e.map((e=>r.createElement("div",{className:o(n.recycle_list_header_item,e.classname),key:e.title},e.title))))})(f),r.createElement(s.InfinityList,{template:e,getContainer:e=>e,className:t,style:i,data:a,keyProp:c,placeholders:l,isLoading:u,isDrained:d,sliceSize:h,sliceThreshold:p,onLoad:v,scrollBottomIfActive:m}))},34191:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(68103),t)},68103:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(8673),o=i(87559),s=i(65579),a=i(43261);t.DeprecatedRecycleTree=({nodes:e,leftPadding:t,defaultLeftPadding:i,multiSelectable:s,scrollContainerStyle:c,scrollContentStyle:l,onContextMenu:u,onDrag:d,onDragStart:h,onDragEnter:p,onDragOver:f,onDragLeave:g,onDragEnd:m,onDrop:v,onChange:y,draggable:_,foldable:b,editable:w,searchable:S,search:C,replace:E,onSelect:O,onBlur:k,onFocus:D,onReveal:M,filter:x,onTwistieClick:T,scrollTop:A,prerenderNumber:I=10,containerHeight:P,itemLineHeight:R=22,actions:L,commandActuator:N,fileDecorationProvider:F,themeProvider:B,notifyFileDecorationsChange:z,notifyThemeChange:V,validate:j,alwaysShowActions:K})=>{const H=()=>{},W=Math.ceil(P/R),[U,G]=r.useState(),[q,$]=r.useState(0),[Y,Z]=r.useState([]),X=q+W+I,Q=Math.floor(I*(3/4)),J={pre:"",post:"",extract:e=>"string"==typeof e.name?e.name:""},ee=(e,t)=>{if(e.id===t.id)return!0;let i=t.parent;for(;i;){if(i.id===e.id)return!0;i=i.parent}return!1};r.useEffect((()=>{"number"==typeof A&&U&&(U.scrollTop=A),$(A?Math.floor(A/R):0)}),[A]),r.useEffect((()=>{let t;if(x){const i=a.filter(x,e,J),o=e.find((e=>e.name===n.TEMP_FILE_NAME));t=e.map((e=>{for(const a of i){if(t=e,s=a.original,t.id===s.id)return Object.assign(Object.assign({},e),{name:()=>r.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:a.string||""}})});if(ee(e,a.original)||o&&ee(e,o))return e;if(e.name===n.TEMP_FILE_NAME)return e}var t,s})).filter((e=>!!e))}else t=e;t=t.filter(((e,t)=>q<=t&&t<=X)),t=t.map(((e,t)=>{let i=e.highLightRanges;if(!i&&S&&C){let t,r;if(i={name:[],description:[]},"string"==typeof e.name){let n=0;for(t=e.name.indexOf(C);t>=0;)r=t+C.length,i.name.push({start:t+n,end:r+n}),n+=r,t=e.name.indexOf(C.slice(r))}if("string"==typeof e.description){let n=0;for(t=e.description.indexOf(C);t>=0;)r=t+C.length,i.description.push({start:t+n,end:r+n}),n+=r,t=e.description.indexOf(C.slice(r))}}return Object.assign(Object.assign({},e),{order:q+t,highLightRanges:i,replace:E})})),Z(t)}),[e,q,c]),r.useEffect((()=>{U&&(U.scrollTop=0),$(0)}),[x]);const te=l||{width:"100%",height:e.length*R<=P?P:e.length*R,userSelect:"none"},ie=!!e.find(((e,t)=>n.ExpandableTreeNode.is(e)));return r.createElement(r.Fragment,null,r.createElement(o.PerfectScrollbar,{style:c,onScrollUp:t=>{requestAnimationFrame((()=>{(t=>{const i=Math.floor(t.scrollTop/R);if(i>Q){const t=i-Q;$(t>e.length?0:t)}else $(0)})(t)}))},onScrollDown:t=>{requestAnimationFrame((()=>{(t=>{const i=Math.floor(t.scrollTop/R);if(i>I-Q){const t=i-(I-Q);$(t>e.length?0:t)}else $(0)})(t)}))},containerRef:e=>{G(e)},options:{minScrollbarLength:20}},r.createElement(n.TreeContainer,{style:te,multiSelectable:s,itemLineHeight:R,nodes:Y,actions:L,commandActuator:N,leftPadding:t,defaultLeftPadding:i,onContextMenu:u||H,onDrag:d||H,onBlur:k||H,onFocus:D||H,onDragStart:h||H,onDragEnter:p||H,onDragEnd:m||H,onDragOver:f||H,onDragLeave:g||H,onChange:y||H,onDrop:v||H,onSelect:O||H,onReveal:M||H,onTwistieClick:T,draggable:_,foldable:b,replace:E,editable:w,fileDecorationProvider:F,themeProvider:B,notifyFileDecorationsChange:z,notifyThemeChange:V,validate:j,isComplex:ie,alwaysShowActions:K})))},t.DeprecatedRecycleTree.displayName="DeprecatedRecycleTree",t.RecycleTree=s.Deprecated(t.DeprecatedRecycleTree,"[Deprecated warning]: The `RecycleTree` component in `@ali/ide-core-browser` was deprecated. Please use the new `RecycleTree` in `@ali/ide-component` instead")},94772:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(98077),o=i(62034);var s;function a(){const e=document.getElementsByTagName("iframe"),t=document.getElementsByTagName("webview");for(const e of t)e.classList.add("none-pointer-event");for(const t of e)t.classList.add("none-pointer-event");const i=document.getElementsByClassName("shadow-root-host");for(const e of i)null==e||e.classList.add("none-pointer-event")}function c(){const e=document.getElementsByTagName("iframe"),t=document.getElementsByTagName("webview");for(const e of t)e.classList.remove("none-pointer-event");for(const t of e)t.classList.remove("none-pointer-event");const i=document.getElementsByClassName("shadow-root-host");for(const e of i)null==e||e.classList.remove("none-pointer-event")}t.RESIZE_LOCK="resize-lock",function(e){e.Prev="prev",e.Next="next"}(s=t.ResizeFlexMode||(t.ResizeFlexMode={})),t.ResizeHandleHorizontal=e=>{const i=r.useRef(),l=r.useRef(!1),u=r.useRef(0),d=r.useRef(0),h=r.useRef(0),p=r.useRef(),f=r.useRef(),g=r.useRef(),m=(r,n)=>{const o=i.current.parentElement.offsetWidth,s=e.findPrevElement?e.findPrevElement():p.current,a=e.findNextElement?e.findNextElement():f.current;if(s&&s.classList.contains(t.RESIZE_LOCK)||a&&a.classList.contains(t.RESIZE_LOCK))return;const c=s.dataset.minResize||0,l=a.dataset.minResize||0;(c||l)&&(r*o<=c||n*o<=l)||(a&&(a.style.width=100*n+"%"),s&&(s.style.width=100*r+"%"),e.onResize&&a&&s&&e.onResize(s,a))},v=(t,i,r,n)=>{const o=e.findPrevElement?e.findPrevElement(n):p.current,a=e.findNextElement?e.findNextElement(n):f.current;let c,l,u=0;const d=parseInt(o.dataset.minResize||"0",10),h=parseInt(a.dataset.minResize||"0",10);e.flexMode===s.Prev?(c=o,l=a,u=t,r||(d>t?u=d:h>i&&(u=t+i-h))):(c=a,l=o,u=i,r||(h>i?u=h:d>t&&(u=t+i-d))),c.style.width=u+"px",c.style.flexGrow="0",c.style.flexShrink="1",l.style.width="0",l.style.flexGrow="1",l.style.flexShrink="0",e.onResize&&a&&o&&e.onResize(o,a)},y=(t,i)=>{const r=p.current,n=f.current;let o;o=e.flexMode?(r.offsetWidth+n.offsetWidth)/r.parentElement.offsetWidth*100:+f.current.style.width.replace("%","")+ +p.current.style.width.replace("%",""),n&&(n.style.width=i/(t+i)*o+"%"),r&&(r.style.width=t/(t+i)*o+"%"),_(t,i),e.onResize&&n&&r&&e.onResize(r,n)},_=(e,t)=>{const r=p.current,n=f.current;let o=!1;r&&(0===e?(r.classList.add("kt_display_none"),o=!0):r.classList.remove("kt_display_none")),n&&(0===t?(n.classList.add("kt_display_none"),o=!0):n.classList.remove("kt_display_none")),i.current&&(o?i.current.classList.add("none-pointer-event"):i.current.classList.remove("none-pointer-event"))},b=()=>{const e=p.current.clientWidth,t=f.current.clientWidth,i=e+t,r=[];return r.push(e/i),r.push(t/i),r},w=(t,i)=>{const r=p.current.clientWidth+f.current.clientWidth;if(e.flexMode){const i=e.flexMode===s.Prev?t:r-t,n=e.flexMode===s.Next?t:r-t;v(i,n,!0)}else{const e=+f.current.style.width.replace("%","")+ +p.current.style.width.replace("%","");i?(f.current.style.width=e*(t/r)+"%",p.current.style.width=e*(1-t/r)+"%"):(p.current.style.width=e*(t/r)+"%",f.current.style.width=e*(1-t/r)+"%")}i?_(r-t,t):_(t,r-t),e.onResize&&e.onResize(p.current,f.current)},S=e=>e?f.current.clientWidth:p.current.clientWidth,C=e=>{const t=e.classList,i=n["resize-overflow-hidden"];(null==t?void 0:t.contains(i))||t.add(i)},E=e=>{const t=e.classList,i=n["resize-overflow-hidden"];(null==t?void 0:t.contains(i))&&t.remove(i)},O=t=>{if(t.preventDefault(),i.current&&i.current.classList.contains("no-resize"))return;const r=d.current+t.pageX-u.current,n=h.current-(t.pageX-u.current);g.current&&window.cancelAnimationFrame(g.current);const o=i.current.parentElement.offsetWidth;g.current=window.requestAnimationFrame((()=>{e.flexMode?v(r,n):m(r/o,n/o)}))},k=t=>{var r;l.current=!1,null===(r=i.current)||void 0===r||r.classList.remove(n.active),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",k),E(p.current),E(f.current),e.onFinished&&e.onFinished(),c()},D=e=>{var t;l.current=!0,null===(t=i.current)||void 0===t||t.classList.add(n.active),document.addEventListener("mousemove",O),document.addEventListener("mouseup",k),u.current=e.pageX,d.current=p.current.offsetWidth,h.current=f.current.offsetWidth,C(p.current),C(f.current),a()};return r.useEffect((()=>(i.current&&(i.current.addEventListener("mousedown",D),p.current=i.current.previousSibling,f.current=i.current.nextSibling),()=>{i.current&&(i.current.removeEventListener("mousedown",D),i.current.removeEventListener("mousemove",O),i.current.removeEventListener("mouseup",k))})),[]),e.delegate&&e.delegate({setSize:m,setAbsoluteSize:w,getAbsoluteSize:S,setRelativeSize:y,getRelativeSize:b}),r.createElement("div",{ref:e=>{i.current=e},className:o.default({[n["resize-handle-horizontal"]]:!0,[n["with-color"]]:!e.noColor,[e.className||""]:!0})})},t.ResizeHandleVertical=e=>{const i=r.useRef(),l=r.useRef(!1),u=r.useRef(0),d=r.useRef(0),h=r.useRef(0),p=r.useRef(),f=r.useRef(),g=r.useRef(),m=r.useRef(),v=r.useRef(),y=(i,r,n)=>{const o=e.findPrevElement?e.findPrevElement(n):p.current,s=e.findNextElement?e.findNextElement(n):f.current;s&&o&&(o.classList.contains(t.RESIZE_LOCK)||s.classList.contains(t.RESIZE_LOCK)||(s.style.height=100*r+"%",o.style.height=100*i+"%",e.onResize&&e.onResize(o,s)))},_=(t,i,r,n)=>{const o=e.findPrevElement?e.findPrevElement(n):p.current,a=e.findNextElement?e.findNextElement(n):f.current;let c,l,u=0;const d=parseInt(o.dataset.minResize||"0",10),h=parseInt(a.dataset.minResize||"0",10);e.flexMode===s.Prev?(c=o,l=a,u=t,r||(d>t?u=d:h>i&&(u=t+i-h))):(c=a,l=o,u=i,r||(h>i?u=h:d>t&&(u=t+i-d))),c.style.height=u+"px",c.style.flexGrow="0",c.style.flexShrink="1",l.style.height="0",l.style.flexGrow="1",l.style.flexShrink="0",e.onResize&&a&&o&&e.onResize(o,a)},b=(t,i)=>{const r=p.current,n=f.current;let o;o=e.flexMode?(r.offsetHeight+n.offsetHeight)/r.parentElement.offsetHeight*100:+n.style.height.replace("%","")+ +r.style.height.replace("%",""),n&&(n.style.height=i/(t+i)*o+"%"),r&&(r.style.height=t/(t+i)*o+"%"),w(t,i),e.onResize&&n&&r&&e.onResize(r,n)},w=(e,t)=>{const r=p.current,n=f.current;let o=!1;r&&(0===e?(r.classList.add("kt_display_none"),o=!0):r.classList.remove("kt_display_none")),n&&(0===t?(n.classList.add("kt_display_none"),o=!0):n.classList.remove("kt_display_none")),i.current&&(o?i.current.classList.add("none-pointer-event"):i.current.classList.remove("none-pointer-event"))},S=()=>{const e=p.current.clientHeight,t=f.current.clientHeight,i=e+t,r=[];return r.push(e/i),r.push(t/i),r},C=(t,i,r)=>{const n=p.current.clientHeight+f.current.clientHeight;if(e.flexMode){const i=e.flexMode===s.Prev?t:n-t,r=e.flexMode===s.Next?t:n-t;_(i,r,!0)}else{const e=+f.current.style.height.replace(/\%|px/,"")+ +p.current.style.height.replace(/\%|px/,"");if(i){r&&(p.current.style.height=e*(1-t/n)+"%");const i=e*(t/n);f.current.style.height=0===i?i+"px":i+"%"}else p.current.style.height=e*(t/n)+"%",r&&(f.current.style.height=e*(1-t/n)+"%")}i?w(n-t,t):w(t,n-t),e.onResize&&e.onResize(p.current,f.current)},E=e=>e?f.current.clientHeight:p.current.clientHeight,O=e=>{var t;l.current=!0,null===(t=i.current)||void 0===t||t.classList.add(n.active),document.addEventListener("mousemove",k),document.addEventListener("mouseup",D),u.current=e.pageY,m.current=f.current,g.current=p.current,d.current=p.current.offsetHeight,h.current=f.current.offsetHeight,a()},k=r=>{if(r.preventDefault(),i.current&&i.current.classList.contains("no-resize"))return;const n=r.pageY>u.current,o=e.findNextElement?e.findNextElement(n):null,s=e.findPrevElement?e.findPrevElement(n):null;if(null!==o&&m.current!==o||null!==s&&g.current!==s){if(!o||!s)return;m.current=o,g.current=s,u.current=r.pageY,d.current=g.current.offsetHeight,h.current=m.current.offsetHeight}const a=d.current+r.pageY-u.current,c=h.current-(r.pageY-u.current);v.current&&window.cancelAnimationFrame(v.current);const l=i.current.parentElement.offsetHeight;v.current=window.requestAnimationFrame((()=>{const i=g.current.dataset.minResize||0,r=m.current.dataset.minResize||0;var n,o,s,u;(i||r)&&(a<=i||c<=r)||(e.flexMode?_(a,c):(n=a/l,o=c/l,s=g.current,u=m.current,s.classList.contains(t.RESIZE_LOCK)||u.classList.contains(t.RESIZE_LOCK)||(u.style.height=100*o+"%",s.style.height=100*n+"%",e.onResize&&u&&s&&e.onResize(s,u))))}))},D=t=>{var r;l.current=!1,null===(r=i.current)||void 0===r||r.classList.remove(n.active),document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",D),e.onFinished&&e.onFinished(),c()};return r.useEffect((()=>(i.current.addEventListener("mousedown",O),p.current=i.current.previousSibling,f.current=i.current.nextSibling,()=>{i.current.removeEventListener("mousedown",O),document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",D)})),[]),e.delegate&&e.delegate({setSize:y,setAbsoluteSize:C,getAbsoluteSize:E,setRelativeSize:b,getRelativeSize:S}),r.createElement("div",{ref:e=>e&&(i.current=e),className:o.default({[n["resize-handle-vertical"]]:!0,[e.className||""]:!0,[n["with-color"]]:!e.noColor})})}},87559:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(43523),t)},43523:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(51964);i(47142),t.PerfectScrollbar=r},45830:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(62034),o=i(63804);r.__exportStar(i(69164),t),t.Select=e=>(e=Object.assign(Object.assign({},e),{className:n("kt_select",e.className)}),o.createElement("select",Object.assign({},e)))},8673:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(21665),t),r.__exportStar(i(98632),t),r.__exportStar(i(17126),t)},17126:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(45299),o=i(62034),s=i(65686),a=i(88774),c=i(21665),l=i(8673),u=i(98632),d=i(80431),h=i(88774),p=i(48719),f=i(88422),g=(e,t,i)=>{if(s.isUndefined(e))return"";if(s.isString(e)){if(t){const s=t.length;if(s>0){const a=[];for(let c=0;c{if("number"==typeof e.badge){const t=e.badgeLimit||99;return r.createElement(a.Badge,{style:e.badgeStyle},e.badge>t?`${t}+`:e.badge)}if("string"==typeof e.badge){const t=e.badgeLimit||e.badge.length;return r.createElement("div",{className:n.treenode_status,style:e.badgeStyle},e.badge.slice(0,t))}};t.TreeContainerNode=({node:e,leftPadding:t,defaultLeftPadding:i,onSelect:a,onTwistieClick:v,onContextMenu:y,onDragStart:_,onDragEnter:b,onDragOver:w,onDragLeave:S,onDragEnd:C,onDrag:E,onDrop:O,onChange:k,draggable:D,foldable:M,isEdited:x,isComplex:T,actions:A=[],alwaysShowActions:I,commandActuator:P,replace:R="",itemLineHeight:L,validate:N})=>{i="number"==typeof i?i:10;const F={position:"absolute",width:"100%",height:L,backgroundColor:e.background||"inherit",left:"0",opacity:x&&!e.isTemporary?.3:1,top:(e.order||0)*L+"px"},B=Object.assign(Object.assign({paddingLeft:l.ExpandableTreeNode.is(e)?`${i+(e.depth||0)*(t||0)}px`:`${i+(e.depth||0)*(t||0)+(T?5:0)}px`},e.style),{color:e.color,height:e.title?2*L:L}),z=(e,t,i)=>t.map(((t,s)=>{if(c.isTreeViewActionComponent(t))return r.createElement("span",{key:`${e.id}-${t.location}-${s}`},t.component);const a="string"==typeof t.icon?t.icon:t.icon.dark;return r.createElement(h.Icon,{key:`${e.id}-${"string"==typeof t.paramsKey?e[t.paramsKey]:e.id}-${t.command}`,iconClass:o(n.action_icon,a),tooltip:t.title,onClick:r=>{r.stopPropagation(),r.preventDefault();const n=t.paramsKey?"string"==typeof t.paramsKey?e[t.paramsKey]:t.paramsKey(e):e.id;i(t.command,n)}})})),V={height:L,lineHeight:`${L}px`,paddingLeft:l.ExpandableTreeNode.is(e)?0:M&&T?"15px":0},j={height:L,lineHeight:`${L}px`,paddingLeft:l.ExpandableTreeNode.is(e)?`${i+8+(t||0)}px`:0};return r.createElement("div",{key:e.id,style:F,title:e.tooltip,draggable:D,onDragStart:t=>{t.stopPropagation(),x?t.preventDefault():_(e,t)},onDragEnter:t=>{if(x)return t.stopPropagation(),void t.preventDefault();b(e,t)},onDragOver:t=>{if(x)return t.stopPropagation(),void t.preventDefault();w(e,t)},onDragLeave:t=>{if(x)return t.stopPropagation(),void t.preventDefault();S(e,t)},onDragEnd:t=>{if(x)return t.stopPropagation(),void t.preventDefault();C(e,t)},onDrag:t=>{if(x)return t.stopPropagation(),void t.preventDefault();E(e,t)},onDrop:t=>{if(x)return t.stopPropagation(),void t.preventDefault();O(e,t)},onContextMenu:t=>{t.stopPropagation(),t.preventDefault(),x||y(e,t)},onClick:t=>{t.stopPropagation(),t.preventDefault(),l.ExpandableTreeNode.is(e)&&!M||x||a(e,t)}},r.createElement("div",{className:o(n.treenode,{[n.alwaysShowActions]:I||e.alwaysShowActions,[n.mod_focused]:l.SelectableTreeNode.hasFocus(e),[n.mod_selected]:!l.SelectableTreeNode.hasFocus(e)&&!!l.SelectableTreeNode.isSelected(e)}),style:B},(e=>{if(e.title)return r.createElement("div",{className:n.treenode_title,style:j},e.title)})(e),r.createElement("div",{className:o(n.treenode_content,e.badge?n.treenode_has_badge:""),style:V},l.ExpandableTreeNode.is(e)&&M&&((e,t)=>e.isLoading?r.createElement(f.Loading,null):r.createElement("div",{onClick:t,className:o(n.treenode_segment,n.expansion_toggle,d.getIcon("arrow-right"),{[`${n.mod_collapsed}`]:!e.expanded})}))(e,(t=>{t.stopPropagation(),t.preventDefault(),x||v(e,t)}))||(e=>{const t=[];if(!l.ExpandableTreeNode.is(e))for(const e of A)switch(e.location){case l.TreeViewActionTypes.TreeNode_Left:t.push(e)}return r.createElement("div",{className:o(n.treenode_head)},e.headIconClass&&r.createElement("div",{className:o(n.treenode_head_icon,e.headIconClass)}),0!==t.length&&((e,t,i)=>{if(0!==t.length)return r.createElement("div",{className:n.left_actions},z(e,t,i))})(e,t,P))})(e),(e=>r.createElement("div",{className:o(e.icon,n.file_icon,{expanded:e.expanded}),style:Object.assign(Object.assign({},e.iconStyle),{height:L,lineHeight:`${L}px`})}))(e),r.createElement("div",{className:x?n.treenode_edit_wrap:s.isString(e.name)?n.treenode_overflow_wrap:n.treenode_flex_wrap},((e,t,i,a=(()=>{}))=>{const c=!s.isString(e.name),[l,d]=r.useState(c||e.name!==u.TEMP_FILE_NAME?c?"":e.name:""),f=e=>{const t=e.target.value;d(t)},m=t=>{y(l)?a(e,""):a(e,l)},v=t=>{const{key:i}=p.KeyCode.createKeyCode(t.nativeEvent);i&&p.Key.ENTER.keyCode===i.keyCode?(t.stopPropagation(),t.preventDefault(),y(l)?a(e,""):a(e,l)):i&&p.Key.ESCAPE.keyCode===i.keyCode&&(t.stopPropagation(),t.preventDefault(),a(e,""))},y=t=>{if(N)return N(e,t)};if(e.isTemporary){let t={start:0,end:0};return e.name!==u.TEMP_FILE_NAME&&s.isString(e.name)&&(t={start:0,end:e.name.replace(/\..+/,"").length}),r.createElement("div",{className:o(n.treenode_segment,n.treenode_inputbox,y(l)&&n.overflow_visible)},r.createElement("div",{className:n.input_wrapper},r.createElement(h.ValidateInput,{type:"text",className:o(n.input_box),autoFocus:!0,popup:!0,onBlur:m,value:l,onChange:f,onKeyDown:v,validate:y,selection:t})))}if(c){const t=e.name;return r.createElement(t,null)}return r.createElement("div",{className:o(n.treenode_segment,n.treenode_displayname,e.labelClass)},e.beforeLabel,g(e.name,e.highLightRanges&&e.highLightRanges.name,R),e.afterLabel)})(e,e.actions,0,k),((e,t)=>{if(!s.isString(e.description)&&!s.isUndefined(e.description)){const t=e.description;return r.createElement(t,null)}if(!s.isUndefined(e.description))return r.createElement("div",{className:o(n.treenode_segment_grow,n.treenode_description,e.descriptionClass)},g(e.description,e.highLightRanges&&e.highLightRanges.description,t))})(e,R)),((e,t,i)=>{const s=[],a=[];for(const e of t)switch(e.location){case l.TreeViewActionTypes.TreeNode_Right:s.push(e);break;case l.TreeViewActionTypes.TreeContainer:a.push(e)}return l.ExpandableTreeNode.is(e)?a.length>0?r.createElement("div",{className:o(n.treenode_segment,n.treenode_tail)},((e,t,i)=>r.createElement("div",{className:n.container_actions},z(e,t,i)))(e,a,i),m(e)):r.createElement("div",{className:o(n.treenode_segment,n.treenode_tail)},m(e)):0!==s.length?r.createElement("div",{className:o(n.treenode_segment,n.treenode_tail)},((e,t,i)=>{if(0!==t.length)return r.createElement("div",{className:n.right_actions},z(e,t,i))})(e,s,i),m(e)):r.createElement("div",{className:o(n.treenode_segment,n.treenode_tail)},m(e))})(e,e.actions||A,P))))}},98632:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(8673),o=i(17126),s=i(65686),a=i(21665),c=i(62034),l=i(45299);t.TEMP_FILE_NAME="kt_template_file",t.defaultTreeProps={nodes:[],leftPadding:8,defaultLeftPadding:8},t.TreeContainer=({nodes:e=t.defaultTreeProps.nodes,leftPadding:i=t.defaultTreeProps.leftPadding,defaultLeftPadding:u=t.defaultTreeProps.defaultLeftPadding,multiSelectable:d,onSelect:h,onTwistieClick:p,onContextMenu:f,onDragStart:g,onDragEnter:m,onDragOver:v,onDragLeave:y,onDragEnd:_,onDrag:b,onDrop:w,onChange:S,onBlur:C,onFocus:E,onReveal:O,draggable:k,foldable:D=!0,editable:M,replace:x,actions:T,alwaysShowActions:A,commandActuator:I,themeProvider:P,fileDecorationProvider:R,notifyFileDecorationsChange:L,notifyThemeChange:N,itemLineHeight:F=22,style:B,outline:z,validate:V,isComplex:j})=>{const[K,H]=r.useState(!1),[W,U]=r.useState(!1),[,G]=r.useState(),q=M&&!!e.find(((e,t)=>!!e.isTemporary)),$=(t,i)=>{i.stopPropagation(),i.preventDefault();const r=[];let n=[t],o=!1;if(e){if(q)return i.stopPropagation(),void i.preventDefault();for(const i of e)i.selected&&(t.id===i.id&&(o=!0),r.push(i));o&&(n=r),H(!1),f&&f(n,i)}},Y=e=>[e],Z=(t,i)=>{let r;if(t&&!q){if(d&&!q){const o=Q(i),s=J(i);n.SelectableTreeNode.is(t)&&(r=o?((e=[],t)=>{const i=[];let r,n;for(let i=0;in)for(let t=n;t<=r;t++)i.push(e[t]);else for(let t=r;t<=n;t++)i.push(e[t]);return i})(e,t):s?((e=[],t)=>{const i=[];for(const r of e)t.id===r.id?r.selected||i.push(r):r.selected&&i.push(r);return i})(e,t):Y(t))}else r=Y(t);h&&h(r,i),H(!1)}},X=(e,t)=>{p?p(e,t):h&&h([e],t)},Q=e=>!J(e)&&e.shiftKey,J=e=>{const{metaKey:t,ctrlKey:i}=e;return s.isOSX&&t||i},ee=e=>{if(e.tooltip)return e.tooltip;if(e.uri){const t=e.uri.toString();return t||void 0}return"string"==typeof e.name?e.name:void 0};return r.useEffect((()=>{if(L){const e=L((()=>{G({})}));return()=>e.dispose()}}),[L]),r.useEffect((()=>{if(N){const e=N((()=>{G({})}));return()=>e.dispose()}}),[N]),r.createElement("div",{className:c(l.treenode_container,K&&l.treenode_container_focused,W&&l.treenode_all_focused),style:B,onBlur:e=>{C&&C(e),H(!1),U(!1)},onFocus:e=>{E&&E(e)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),q||(H(!0),f&&f([],e))},onDrop:e=>{w&&w("",e),U(!1)},onDragStart:e=>{e.preventDefault(),e.stopPropagation()},onDragOver:e=>{e.preventDefault(),U(!0)},onDragLeave:e=>{U(!1)},draggable:k,onClick:e=>{H(!0),h&&h([],e)},tabIndex:z?0:-1},e.map(((e,t)=>{if(R&&P){const t=R.getDecoration(e.uri||"string"==typeof e.name&&e.name||e.id,a.ExpandableTreeNode.is(e));t&&(e=Object.assign(Object.assign({},e),{badge:t.badge,color:P.getColor({id:t.color}),tooltip:`${ee(e)}•${t.tooltip}`}))}return r.createElement(o.TreeContainerNode,{node:e,leftPadding:i,defaultLeftPadding:u,key:`${e.id}-${t}`,onSelect:Z,onTwistieClick:X,onContextMenu:$,onDragStart:g,onDragEnter:m,onDragEnd:_,onDragOver:v,onDragLeave:y,onDrag:b,onDrop:w,onChange:S,draggable:k,foldable:D,isEdited:q,isComplex:j,actions:e.actions||T,replace:e.replace||x,alwaysShowActions:A,commandActuator:I,itemLineHeight:F,validate:V})})))}},81395:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.IContextKeyService=Symbol("IContextKeyService");class n extends r.BasicEvent{}t.ContextKeyChangeEvent=n},52315:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(87655);t.ExplorerFolderContext=new r.RawContextKey("explorerResourceIsFolder",!1),t.ExplorerResourceCut=new r.RawContextKey("explorerResourceCut",!1),t.ExplorerFocusedContext=new r.RawContextKey("explorerViewletFocus",!1),t.ExplorerFilteredContext=new r.RawContextKey("explorerViewletFilter",!1),t.FilesExplorerFocusedContext=new r.RawContextKey("filesExplorerFocus",!1),t.FilesExplorerInputFocusedContext=new r.RawContextKey("filesExplorerInputFocus",!1),t.FilesExplorerFilteredContext=new r.RawContextKey("filesExplorerFilteredContext",!1),t.ExplorerCompressedFocusContext=new r.RawContextKey("explorerViewletCompressedFocus",!1),t.ExplorerCompressedFirstFocusContext=new r.RawContextKey("explorerViewletCompressedFirstFocus",!1),t.ExplorerCompressedLastFocusContext=new r.RawContextKey("explorerViewletCompressedLastFocus",!1)},7680:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(52315),t),r.__exportStar(i(29506),t),r.__exportStar(i(5935),t),r.__exportStar(i(88139),t),r.__exportStar(i(57277),t)},88139:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(87655);t.OutlineSortTypeContext=new r.RawContextKey("outlineSortType",0),t.OutlineFollowCursorContext=new r.RawContextKey("outlineFollowCursor",!1)},29506:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686),n=i(8140);t.ResourceContextKey=class{constructor(e,t=n.getLanguageIdFromMonaco,i="resource"){if(this.contextKeyService=e,this.languageResolver=t,!i)throw new Error("resource key prefix cannot be empty!");this.resourceScheme=this.contextKeyService.createKey(i+"Scheme",""),this.resourceFilename=this.contextKeyService.createKey(i+"Filename",""),this.resourceExtname=this.contextKeyService.createKey(i+"Extname",""),this.resourceLangId=this.contextKeyService.createKey(i+"LangId",""),this.resourceKey=this.contextKeyService.createKey(i,""),this.isFileSystemResource=this.contextKeyService.createKey("isFileSystem"+i.substr(0,1).toUpperCase()+i.substr(1),!1)}set(e){e||this.reset();const t=this.resourceKey.get();e.isEqual(new r.URI(t))||(this.resourceScheme.set(e.scheme),this.resourceFilename.set(e.path.name+e.path.ext),this.resourceExtname.set(e.path.ext),this.resourceLangId.set(this.languageResolver(e)),this.resourceKey.set(e.toString()),this.isFileSystemResource.set("file"===e.scheme))}reset(){this.resourceScheme.set(""),this.resourceFilename.set(""),this.resourceExtname.set(""),this.resourceLangId.set(""),this.resourceKey.set(""),this.isFileSystemResource.set(!1)}}},5935:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(87655);t.IsTerminalViewInitialized=new r.RawContextKey("isTerminalViewInitialized",!1),t.IsTerminalFocused=new r.RawContextKey("isTerminalFocused",!1)},57277:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(87655);t.WorkbenchState=new r.RawContextKey("workbenchState","empty"),t.WorkspaceFolderCount=new r.RawContextKey("workspaceFolderCount",0)},86543:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686),n=i(87484),o=i(83880),s=!0,a=!0;t.FILES_DEFAULTS={filesWatcherExclude:{"**/.git/objects/**":!0,"**/.git/subtree-cache/**":!0,"**/node_modules/**/*":!0},filesExclude:{"**/.git":!0,"**/.svn":!0,"**/.hg":!0,"**/CVS":!0,"**/.DS_Store":!0}},t.FILE_TREE_DEFAULTS={baseIndent:10,indent:8},t.corePreferenceSchema={type:"object",properties:{"general.language":{type:"string",enum:r.getAvailableLanguages().map((e=>e.languageId)),default:"zh-CN",description:"%preference.description.general.language%"},"general.theme":{type:"string",default:"vs-dark",enum:[],description:"%preference.description.general.theme%"},"general.askReloadOnLanguageChange":{type:"boolean",default:!0,description:"%preference.description.general.askReloadOnLanguageChange%"},"general.icon":{type:"string",default:"vs-minimal",enum:[],description:"%preference.description.general.icon%"},"workbench.colorCustomizations":{type:"object",description:"%preference.workbench.colorCustomizations%",default:{}},"application.supportsOpenFolder":{type:"boolean",default:r.isElectronRenderer(),description:"Whether default open folder behavior is supported"},"application.supportsOpenWorkspace":{type:"boolean",default:r.isElectronRenderer(),description:"Whether default open workspace behavior is supported"},"application.confirmExit":{type:"string",enum:["never","ifRequired","always"],default:"always",description:"When to confirm before closing the application window."},"application.preferMarkdownPreview":{type:"boolean",default:!1,description:"Use markdown preview first"},"application.invalidExthostReload":{type:"string",enum:["ifRequired","always"],default:"ifRequired",description:"Reload strategy when exthost process became invalid."},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:r.localize("preference.workbench.list.openMode")},"workbench.commandPalette.history":{type:"number",default:50,minimum:0,description:"Controls the number of recently used commands to keep in history for the command palette. Set to 0 to disable command history."},"workbench.refactoringChanges.showPreviewStrategy":{type:"string",default:"askMe",enum:["show","hide","askMe"],description:"%preference.workbench.refactoringChanges.showPreviewStrategy%"},"explorer.confirmMove":{type:"boolean",default:s,description:"%preference.explorer.confirm.move%"},"explorer.confirmDelete":{type:"boolean",default:a,description:"%preference.explorer.confirm.delete%"},"explorer.fileTree.baseIndent":{type:"number",default:t.FILE_TREE_DEFAULTS.baseIndent},"explorer.fileTree.indent":{type:"number",default:t.FILE_TREE_DEFAULTS.indent},"explorer.compactFolders":{type:"boolean",description:"%preference.explorer.compactFolders%",default:!0},"explorer.autoReveal":{type:"boolean",default:!0},"debug.toolbar.float":{type:"boolean",default:!0},"debug.toolbar.top":{type:"number",default:0,description:"%preference.debug.toolbar.top%"},"debug.toolbar.height":{type:"number",default:30,description:"%preference.debug.toolbar.height%"},"files.exclude":{type:"object",description:"%preference.files.exclude%",default:t.FILES_DEFAULTS.filesExclude,additionalProperties:{anyOf:[{type:"boolean",description:r.localize("files.exclude.boolean","The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.")}]}},"files.watcherExclude":{type:"object",default:t.FILES_DEFAULTS.filesWatcherExclude,description:"%preference.files.watcherExclude%"},"files.associations":{type:"object",description:"%preference.files.associations%"},"files.encoding":{type:"string",description:"%preference.files.encoding%",default:"utf8",enum:Object.keys(n.SUPPORTED_ENCODINGS)},"files.eol":{type:"string",description:"%preference.files.eolDesc%",enum:["\n","\r\n","auto"],default:"auto"},"settings.userBeforeWorkspace":{type:"boolean",default:!1,description:"%settings.configuration.userBeforeWorkspace%"},"terminal.type":{type:"string",enum:r.isElectronRenderer()&&r.isWindows?["powershell","cmd","default"]:["bash","zsh","sh","default"],default:"",description:"%preference.terminal.typeDesc%"},"terminal.fontFamily":{type:"string"},"terminal.fontSize":{type:"number",default:12},"terminal.fontWeight":{type:"string",enum:["normal","bold"],default:400},"terminal.lineHeight":{type:"number",default:1},"terminal.cursorBlink":{type:"boolean",default:!1},"terminal.scrollback":{type:"number",default:5e3},"terminal.integrated.shellArgs.linux":{type:"array",default:[],description:"%preference.terminal.integrated.shellArgs.linuxDesc%"},"output.maxChannelLine":{type:"number",default:5e4,description:"%output.maxChannelLineDesc%"},"output.enableLogHighlight":{type:"boolean",default:!0,description:"%output.enableLogHighlightDesc%"},"output.enableSmartScroll":{type:"boolean",default:!0,description:"%output.enableSmartScrollDesc%"},"toolbar.ignoreActions":{type:"object",patternProperties:{".*":{type:"array",items:[{type:"string"}]}},description:"%preference.toolbar.ignoreActions%"},"toolbar.buttonDisplay":{type:"string",enum:["icon","iconAndText"],default:"iconAndText",description:"%preference.toolbar.buttonDisplay%"},"view.saveLayoutWithWorkspace":{type:"boolean",default:!1}}},t.CorePreferences=Symbol("CorePreferences"),t.injectCorePreferences=function(e){e.addProviders({token:t.CorePreferences,useFactory:e=>{const i=e.get(o.PreferenceService);return o.createPreferenceProxy(i,t.corePreferenceSchema)}})}},42610:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686),n=i(34417);function o(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}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",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",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.isAncestor=o;class s{constructor(e,t,i,r){this._node=e,this._type=t,this._handler=i,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)}}t.DomListener=s;class a extends r.Disposable{constructor(e){super(),this.didFocus=new r.Emitter,this.onDidFocus=this.didFocus.event,this.didBlur=new r.Emitter,this.onDidBlur=this.didBlur.event;let i=o(document.activeElement,e),n=!1;this.addDispose(this.didBlur),this.addDispose(this.didFocus),this.addDispose(new s(e,t.EventType.FOCUS,(()=>{n=!1,i||(i=!0,this.didFocus.fire())}),!0)),this.addDispose(new s(e,t.EventType.BLUR,(()=>{i&&(n=!0,window.setTimeout((()=>{n&&(n=!1,i=!1,this.didBlur.fire())}),0))}),!0))}}t.FocusTracker=a,t.trackFocus=function(e){return new a(e)}},57074:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);class n extends r.BasicEvent{}t.FilesChangeEvent=n,t.FsProviderContribution=Symbol("FsProviderContribution")},34865:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(65686),t),r.__exportStar(i(99396),t),r.__exportStar(i(60157),t),r.__exportStar(i(73399),t),r.__exportStar(i(46554),t),r.__exportStar(i(83880),t),r.__exportStar(i(18247),t),r.__exportStar(i(48719),t),r.__exportStar(i(1415),t),r.__exportStar(i(8308),t),r.__exportStar(i(57074),t),r.__exportStar(i(21665),t),r.__exportStar(i(72904),t),r.__exportStar(i(10633),t),r.__exportStar(i(68612),t),r.__exportStar(i(81395),t),r.__exportStar(i(60095),t),r.__exportStar(i(39021),t),r.__exportStar(i(76126),t),r.__exportStar(i(99693),t),r.__exportStar(i(42610),t),r.__exportStar(i(86543),t),r.__exportStar(i(80431),t),r.__exportStar(i(9660),t),r.__exportStar(i(75589),t),r.__exportStar(i(65777),t)},18247:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(48301),t)},48301:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686),a=i(61519),c=i(13906),l=i(81395),u=i(65777);var d,h,p,f;!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",e[e.END=3]="END"}(t.KeybindingScope||(t.KeybindingScope={})),function(e){e[e.Default=0]="Default",e[e.EditorCore=1]="EditorCore",e[e.EditorContrib=100]="EditorContrib",e[e.WorkbenchContrib=200]="WorkbenchContrib",e[e.BuiltinExtension=300]="BuiltinExtension",e[e.ExternalExtension=400]="ExternalExtension"}(h=t.KeybindingWeight||(t.KeybindingWeight={})),function(e){e.length=e.END-e.DEFAULT}(d=t.KeybindingScope||(t.KeybindingScope={})),function(e){e.stringify=function(e){const t={command:e.command,keybinding:e.keybinding};return JSON.stringify(t)},e.is=function(e){return!!e&&e===Object(e)&&"command"in e&&"keybinding"in e}}(p=t.Keybinding||(t.Keybinding={})),function(e){class t{constructor(){this.full=[],this.partial=[],this.shadow=[]}merge(e){return this.full.push(...e.full),this.partial.push(...e.partial),this.shadow.push(...e.shadow),this}filter(e){const i=new t;return i.full=this.full.filter(e),i.partial=this.partial.filter(e),i.shadow=this.shadow.filter(e),i}}e.KeybindingsResult=t}(f=t.KeybindingsResultCollection||(t.KeybindingsResultCollection={})),t.KeybindingContribution=Symbol("KeybindingContribution"),t.KeybindingRegistry=Symbol("KeybindingRegistry"),t.keybindingServicePath="/services/keybindings",t.KeybindingService=Symbol("KeybindingService");let g=r=class{constructor(){this.keymaps=[...Array(d.length)].map((()=>[])),this.keySequence=[],this.convertKeySequence=[],this.keybindingsChanged=new s.Emitter}async onStart(){await this.keyboardLayoutService.initialize(),this.keyboardLayoutService.onKeyboardLayoutChanged((e=>{this.clearResolvedKeybindings()}));for(const e of this.keybindingContributionProvider.getContributions())e.registerKeybindings(this)}get onKeybindingsChanged(){return this.keybindingsChanged.event}registerKeybinding(e,t=d.DEFAULT){return this.doRegisterKeybinding(e,t)}registerKeybindings(e,t=d.DEFAULT){return this.doRegisterKeybindings(e,t)}convertMonacoWhen(e){let t=[];if(!e)return"";if("string"==typeof e)return e;if(!(e=(e.expr,e)).expr||e.expr&&e.expr.length>0&&e.expr[0].serialize){if(!e.getType)return e;switch(e.getType()){case 1:return e.key;case 3:return e.key+" == '"+(e.getValue?e.getValue():e.value)+"'";case 4:return e.key+" != '"+(e.getValue?e.getValue():e.value)+"'";case 2:return"!"+e.key;case 6:const t=e.regexp?`/${e.regexp.source}/${e.regexp.ignoreCase?"i":""}`:"/invalid/";return`${e.key} =~ ${t}`;case 7:return"-not regex-";case 5:return e.expr.map((e=>e.serialize())).join(" && ");case 8:return e.expr.map((e=>e.serialize())).join(" || ");default:return e.key}}return t=e.expr.map((e=>this.convertMonacoWhen(e))),t.join(" && ")}unregisterKeybinding(e,t=d.DEFAULT){const i=p.is(e)?e.keybinding:e,r=this.keymaps[t];let n;n=p.is(e)&&e.when?r.filter((t=>this.isKeybindingEqual(t.keybinding,e.keybinding)&&this.isKeybindingWhenEqual(t.when,e.when))):r.filter((e=>this.isKeybindingEqual(e.keybinding,i))),n.forEach((e=>{const t=r.indexOf(e);t>=0&&r.splice(t,1)}))}isKeybindingWhenEqual(e,t){return this.convertMonacoWhen(e)===this.convertMonacoWhen(t)}isKeybindingEqual(e,t){return this.acceleratorForSequenceKeyString(e)===this.acceleratorForSequenceKeyString(t)}acceleratorForSequenceKeyString(e){const t=e.split(" ").map((e=>a.KeyCode.parse(e)));return this.acceleratorForSequence(t,"+").join(" ")}doRegisterKeybindings(e,t=d.DEFAULT){const i=new s.Disposable;for(const r of e)i.addDispose(this.doRegisterKeybinding(r,t));return i}doRegisterKeybinding(e,t=d.DEFAULT){try{this.resolveKeybinding(e,!0),this.keymaps[t].unshift(e)}catch(t){this.logger.warn(`Could not register keybinding:\n ${p.stringify(e)}\n${t}`)}return this.keybindingsChanged.fire({affectsCommands:[e.command]}),{dispose:()=>{this.unregisterKeybinding(e,t)}}}resolveKeybinding(e,t){if(!e.resolved||t){const t=a.KeySequence.parse(e.keybinding);e.resolved=t.map((e=>this.keyboardLayoutService.resolveKeyCode(e)))}return e.resolved}clearResolvedKeybindings(){for(let e=d.DEFAULT;ee.when===t.when));return r.full.length>0?(this.logger.warn("Collided keybinding is ignored; ",p.stringify(t)," collided with ",r.full.map((e=>p.stringify(e))).join(", ")),!0):r.partial.length>0?(this.logger.warn("Shadowing keybinding is ignored; ",p.stringify(t)," shadows ",r.partial.map((e=>p.stringify(e))).join(", ")),!0):r.shadow.length>0&&(this.logger.warn("Shadowed keybinding is ignored; ",p.stringify(t)," would be shadowed by ",r.shadow.map((e=>p.stringify(e))).join(", ")),!0)}validateKeybinding(e,t){const i=this.resolveKeybinding(t),r=this.getKeySequenceCollisions(e,i).filter((e=>e.when===t.when));if(r.full.length>0){const e=r.full[0],t=this.commandRegistry.getCommand(e.command);return s.formatLocalize("keymaps.keybinding.full.collide",`${t?(null==t?void 0:t.label)||t.id:e.command}${e.when?`{${e.when}}`:e.when}`)}if(r.partial.length>0){const e=r.partial[0],t=this.commandRegistry.getCommand(e.command);return s.formatLocalize("keymaps.keybinding.partial.collide",`${t?(null==t?void 0:t.label)||t.id:e.command}${e.when?`{${e.when}}`:e.when}`)}if(r.shadow.length>0){const e=r.shadow[0],t=this.commandRegistry.getCommand(e.command);return s.formatLocalize("keymaps.keybinding.shadow.collide",`${t?(null==t?void 0:t.label)||t.id:e.command}${e.when?`{${e.when}}`:e.when}`)}return""}containsKeybindingInScope(e,t=d.USER){return this.containsKeybinding(this.keymaps[t],e)}validateKeybindingInScope(e,t=d.USER){return this.validateKeybinding(this.keymaps[t],e)}acceleratorFor(e,t=" "){const i=this.resolveKeybinding(e);return this.acceleratorForSequence(i,t)}acceleratorForSequence(e,t=" "){return e.map((e=>this.acceleratorForKeyCode(e,t)))}capitalizeFirstLetter(e){return e.replace(/^\S/,(function(e){return e.toUpperCase()}))}acceleratorForKeyCode(e,t=" "){const i=[];return e.meta&&(s.isOSX?i.push(a.SpecialCases.MACMETA):i.push(this.capitalizeFirstLetter(a.SpecialCases.META))),e.ctrl&&i.push(this.capitalizeFirstLetter(a.SpecialCases.CTRL)),e.alt&&i.push(this.capitalizeFirstLetter(a.SpecialCases.ALT)),e.shift&&i.push(this.capitalizeFirstLetter(a.SpecialCases.SHIFT)),e.key&&i.push(this.acceleratorForKey(e.key)),i.join(t)}acceleratorForKey(e){if(s.isOSX){if(e===a.Key.ARROW_LEFT)return a.SpecialCases.ARROW_LEFT;if(e===a.Key.ARROW_RIGHT)return a.SpecialCases.ARROW_RIGHT;if(e===a.Key.ARROW_UP)return a.SpecialCases.ARROW_UP;if(e===a.Key.ARROW_DOWN)return a.SpecialCases.ARROW_DOWN;if(e===a.Key.BACKSPACE)return a.SpecialCases.BACKSPACE;if(e===a.Key.ENTER)return a.SpecialCases.ENTER}const t=this.keyboardLayoutService.getKeyboardCharacter(e);return e.keyCode>=a.Key.KEY_A.keyCode&&e.keyCode<=a.Key.KEY_Z.keyCode||e.keyCode>=a.Key.F1.keyCode&&e.keyCode<=a.Key.F24.keyCode?t.toUpperCase():t.length>1?t.charAt(0).toUpperCase()+t.slice(1):t}getKeybindingCollisions(e,t){const i=new f.KeybindingsResult;try{const r=this.resolveKeybinding(t);i.merge(this.getKeySequenceCollisions(e,r))}catch(e){this.logger.warn(e)}return i}getKeySequenceCollisions(e,t){const i=new f.KeybindingsResult;for(const r of e)try{const e=this.resolveKeybinding(r);switch(a.KeySequence.compare(t,e)){case a.KeySequence.CompareResult.FULL:i.full.push(r);break;case a.KeySequence.CompareResult.PARTIAL:i.partial.push(r);break;case a.KeySequence.CompareResult.SHADOW:i.shadow.push(r)}}catch(e){this.logger.warn(e)}return i}getKeybindingsForKeySequence(e,t){const i=new f.KeybindingsResult;for(let t=d.END;--t>=d.DEFAULT;){const r=this.getKeySequenceCollisions(this.keymaps[t],e);r.full=r.full.filter((e=>0===this.getKeybindingCollisions(i.full,e).full.length)).sort(((e,t)=>{const i=s.isUndefined(e.priority)?h.Default:e.priority;return(s.isUndefined(t.priority)?h.Default:t.priority)-i})),r.partial=r.partial.filter((e=>0===this.getKeybindingCollisions(i.partial,e).partial.length)).sort(((e,t)=>{const i=s.isUndefined(e.priority)?h.Default:e.priority;return(s.isUndefined(t.priority)?h.Default:t.priority)-i})),i.merge(r)}this.sortKeybindingsByPriority(i.full),this.sortKeybindingsByPriority(i.partial);const r=i.partial.filter((e=>this.isEnabled(e,t)));return i.partial=r,i}getKeybindingsForCommand(e){const t=[];for(let i=d.END-1;i>=d.DEFAULT;i--)if(this.keymaps[i].forEach((r=>{const n=this.commandRegistry.getCommand(r.command);n&&n.id===e&&t.push(Object.assign(Object.assign({},r),{scope:i}))})),t.length>0)return t;return t}getScopedKeybindingsForCommand(e,t){const i=[];return e>=d.END?[]:(this.keymaps[e].forEach((e=>{const r=this.commandRegistry.getCommand(e.command);r&&r.id===t&&i.push(e)})),i)}sortKeybindingsByPriority(e){e.sort(((e,t)=>e.when&&!t.when?-1:!e.when&&t.when?1:0))}isActive(e){if(this.isPseudoCommand(e.command))return!0;const t=this.commandRegistry.getCommand(e.command);return!!t&&!!this.commandRegistry.getActiveHandler(t.id)}isEnabled(e,t){return!(e.when&&!this.whenContextService.match(e.when,t&&t.target))}isPseudoCommand(e){return e===r.PASSTHROUGH_PSEUDO_COMMAND}resetKeybindings(){for(let e=d.DEFAULT+1;e0?(e.preventDefault(),e.stopPropagation(),this.statusBar.addElement("keybinding-status",{text:s.formatLocalize("keybinding.combination.tip",this.acceleratorForSequence(this.keySequence,"+")),alignment:u.StatusBarAlignment.LEFT,priority:2}),this.keySequenceTimer=setTimeout((()=>{this.keySequence=[],this.statusBar.removeElement("keybinding-status")}),r.KEYSEQUENCE_TIMEOUT)):(this.keySequence=[],this.statusBar.removeElement("keybinding-status"))}convert(e,t=" "){const i=a.KeyCode.createKeyCode(e);return i.isModifierOnly()||(this.keyboardLayoutService.validateKeyCode(i),this.convertKeySequence.length<=1?this.convertKeySequence.push(i):this.convertKeySequence=[i]),this.acceleratorForSequence(this.convertKeySequence,"+").join(t)}clearConvert(){this.convertKeySequence=[]}tryKeybindingExecution(e,t){if(0===e.length)return!1;for(const i of e)if(this.isEnabled(i,t)){if(this.isPseudoCommand(i.command))return!0;{const e=this.commandRegistry.getCommand(i.command);if(e)return this.commandService.executeCommand(e.id,...i.args||[]),t.preventDefault(),t.stopPropagation(),!0}return!1}return!1}};g.PASSTHROUGH_PSEUDO_COMMAND="passthrough",g.KEYSEQUENCE_TIMEOUT=5e3,n.__decorate([o.Autowired(c.KeyboardLayoutService),n.__metadata("design:type",c.KeyboardLayoutService)],g.prototype,"keyboardLayoutService",void 0),n.__decorate([o.Autowired(t.KeybindingContribution),n.__metadata("design:type",Object)],g.prototype,"keybindingContributionProvider",void 0),n.__decorate([o.Autowired(s.CommandRegistry),n.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),n.__decorate([o.Autowired(s.CommandService),n.__metadata("design:type",Object)],g.prototype,"commandService",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),n.__decorate([o.Autowired(l.IContextKeyService),n.__metadata("design:type",Object)],g.prototype,"whenContextService",void 0),n.__decorate([o.Autowired(u.IStatusBarService),n.__metadata("design:type",Object)],g.prototype,"statusBar",void 0),g=r=n.__decorate([o.Injectable()],g),t.KeybindingRegistryImpl=g,t.NO_KEYBINDING_NAME="no_keybinding"},48719:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(61519),t),r.__exportStar(i(13906),t),r.__exportStar(i(71489),t)},71489:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(65777);let a=class{constructor(){this.initialized=new o.Deferred,this.nativeLayoutChanged=new o.Emitter,this.tester=new l(["en-US-pc","en-US-mac","en-Dvorak-pc","en-Dvorak-mac","en-Dvorak_Lefthanded-pc","en-Dvorak_Lefthanded-mac","en-Dvorak_Righthanded-pc","en-Dvorak_Righthanded-mac","en-Colemak-mac","en-British-pc","en-British-mac","de-German-pc","de-German-mac","de-Swiss_German-pc","de-Swiss_German-mac","fr-French-pc","fr-French-mac","fr-Canadian_French-pc","fr-Canadian_French-mac","fr-Swiss_French-pc","fr-Swiss_French-mac","pt-Portuguese-pc","pt-Portuguese-mac","pt-Brazilian-mac","pl-Polish-pc","pl-Polish-mac","nl-Dutch-pc","nl-Dutch-mac","es-Spanish-pc","es-Spanish-mac","it-Italian-pc","it-Italian-mac","sv-Swedish-pc","sv-Swedish-mac","tr-Turkish_Q-pc","tr-Turkish_Q-mac","cs-Czech-pc","cs-Czech-mac","ro-Romanian-pc","ro-Romanian-mac","da-Danish-pc","da-Danish-mac","nb-Norwegian-pc","nb-Norwegian-mac","hu-Hungarian-pc","hu-Hungarian-mac"].map(d)),this.source="pressed-keys",this.currentLayout=t.DEFAULT_LAYOUT_DATA,this.initialize()}get onDidChangeNativeLayout(){return this.nativeLayoutChanged.event}get allLayoutData(){return this.tester.candidates.slice()}get currentLayoutData(){return this.currentLayout}get currentLayoutSource(){return this.source}async initialize(){this.loadState();const e=navigator.keyboard;e&&e.addEventListener&&e.addEventListener("layoutchange",(async()=>{const e=await this.getNativeLayout();this.nativeLayoutChanged.fire(e)})),this.initialized.resolve()}async getNativeLayout(){if(await this.initialized.promise,"user-choice"===this.source)return this.currentLayout.raw;const[e,t]=await this.autodetect();return this.setCurrent(e,t),e.raw}async setLayoutData(e){if("autodetect"===e){if("user-choice"===this.source){const[e,t]=await this.autodetect();return this.setCurrent(e,t),this.nativeLayoutChanged.fire(e.raw),e}return this.currentLayout}return"user-choice"===this.source&&e===this.currentLayout||(this.setCurrent(e,"user-choice"),this.nativeLayoutChanged.fire(e.raw)),e}validateKey(e){if("pressed-keys"!==this.source)return;if(!this.tester.updateScores(e))return;const i=this.selectLayout();i!==this.currentLayout&&i!==t.DEFAULT_LAYOUT_DATA&&(this.setCurrent(i,"pressed-keys"),this.nativeLayoutChanged.fire(i.raw))}setCurrent(e,t){if(this.currentLayout=e,this.source=t,this.saveState(),this.tester.inputCount&&("pressed-keys"===t||"navigator.keyboard"===t)){const i="pressed-keys"===t?"pressed keys":"browser API",r="mac"===e.hardware?"Mac":"PC";this.logger.debug(`Detected keyboard layout from ${i}: ${e.name} (${r})`)}}async autodetect(){const e=navigator.keyboard;if(e&&e.getLayoutMap)try{const t=await e.getLayoutMap();return this.testLayoutMap(t),[this.selectLayout(),"navigator.keyboard"]}catch(e){this.logger.warn("Failed to obtain keyboard layout map.",e)}return[this.selectLayout(),"pressed-keys"]}testLayoutMap(e){this.tester.reset();for(const[t,i]of e.entries())this.tester.updateScores({code:t,character:i})}selectLayout(){const e=this.tester.candidates,i=this.tester.scores,r=this.tester.topScore,n=navigator.language;let o=0,s=0;for(let t=0;t=1?e.find(((e,t)=>i[t]===r&&c(e.hardware))):s>=1?e.find(((e,t)=>i[t]===r)):t.DEFAULT_LAYOUT_DATA}saveState(){const e={tester:this.tester.getState(),source:this.source,currentLayout:this.currentLayout!==t.DEFAULT_LAYOUT_DATA?u(this.currentLayout):void 0};return this.browserStorageService.setData("keyboard",e)}loadState(){const e=this.browserStorageService.getData("keyboard");if(e)if(this.tester.setState(e.tester||{}),this.source=e.source||"pressed-keys",e.currentLayout){const t=this.tester.candidates.find((t=>u(t)===e.currentLayout));t&&(this.currentLayout=t)}else this.currentLayout=t.DEFAULT_LAYOUT_DATA}};function c(e){return o.isOSX?"mac"===e:"pc"===e}r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],a.prototype,"logger",void 0),r.__decorate([n.Autowired(s.GlobalBrowserStorageService),r.__metadata("design:type",s.GlobalBrowserStorageService)],a.prototype,"browserStorageService",void 0),a=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],a),t.BrowserKeyboardLayoutImpl=a,t.DEFAULT_LAYOUT_DATA={name:"US",hardware:o.isOSX?"mac":"pc",language:"en",raw:{info:{},mapping:{}}};class l{constructor(e){this.candidates=e,this.topScore=0,this.testedInputs=new Map,this.scores=this.candidates.map((()=>0))}get inputCount(){return this.testedInputs.size}reset(){for(let e=0;ethis.topScore&&(this.topScore=r[i]);return this.testedInputs.set(i,e.character),!0}testCandidate(e,t,i){const r=e.raw.mapping[t.code];return r&&r[i]&&r[i]===t.character?1:0}getState(){const e={};for(let t=0;t0&&(this.scores[r]=e.scores[i])}}if(e.topScore&&(this.topScore=e.topScore),e.testedInputs)for(const t in e.testedInputs)e.testedInputs.hasOwnProperty(t)&&this.testedInputs.set(t,e.testedInputs[t])}}function u(e){return`${e.language}-${e.name.replace(" ","_")}-${e.hardware}`}function d(e){const[t,r,n]=e.split("-");return{name:r.replace("_"," "),hardware:n,language:t,raw:i(33491)("./"+e+".json")}}t.KeyboardTester=l},13906:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(565),a=i(61519);let c=class{constructor(){this.keyboardLayoutChanged=new o.Emitter}updateLayout(e){const t=this.transformNativeLayout(e);return this.currentLayout=t,this.keyboardLayoutChanged.fire(t),t}get onKeyboardLayoutChanged(){return this.keyboardLayoutChanged.event}async initialize(){this.layoutChangeNotifier.onDidChangeNativeLayout((e=>this.updateLayout(e)));const e=await this.layoutProvider.getNativeLayout();this.updateLayout(e)}resolveKeyCode(e){const t=this.currentLayout;if(t&&e.key)for(let i=0;i<=1;i++){const r=this.getCharacterIndex(e.key,!!i),n=t.key2KeyCode[r];if(n){const t=this.transformKeyCode(e,n,!!i);if(t)return t}}return e}getKeyboardCharacter(e){const t=this.currentLayout;if(t){const i=t.code2Character[e.code];if(i)return i}return e.easyString}validateKeyCode(e){const t=this.layoutProvider;"function"==typeof t.validateKeyCode&&t.validateKeyCode(e)}transformKeyCode(e,t,i){if((e.shift||!i)&&(!t.alt||!(e.alt||e.ctrl||e.shift&&!i)))return new a.KeyCode({key:t.key,meta:e.meta,ctrl:e.ctrl||t.alt,shift:e.shift&&!i||t.shift,alt:e.alt||t.alt})}transformNativeLayout(e){const t=new Array(2*(a.Key.MAX_KEY_CODE+1)),i={},r=e.mapping;for(const e in r)if(r.hasOwnProperty(e)){const n=r[e],s=a.Key.getKey(e);this.isValidKey(s)&&(o.isWindows?this.addWindowsKeyMapping(t,s,n.vkey,n.value):(n.value&&this.addKeyMapping(t,s,n.value,!1,!1),n.withShift&&this.addKeyMapping(t,s,n.withShift,!0,!1),n.withAltGr&&this.addKeyMapping(t,s,n.withAltGr,!1,!0),n.withShiftAltGr&&this.addKeyMapping(t,s,n.withShiftAltGr,!0,!0))),n.value&&(i[e]=n.value)}return{key2KeyCode:t,code2Character:i}}isValidKey(e){return void 0!==e&&e!==a.Key.ADD&&e!==a.Key.SUBTRACT&&e!==a.Key.MULTIPLY&&e!==a.Key.DIVIDE&&e!==a.Key.DECIMAL}addKeyMapping(e,t,i,r,n){const o=l[i];if(o){const s=this.getCharacterIndex(o.key,o.shift);void 0===e[s]&&(e[s]=new a.KeyCode({key:t,shift:r,alt:n,character:i}))}}addWindowsKeyMapping(e,t,i,r){const n=u[i];if(n){const i=this.getCharacterIndex(n);void 0===e[i]&&(e[i]=new a.KeyCode({key:t,character:r}))}}getCharacterIndex(e,t){return t?a.Key.MAX_KEY_CODE+e.keyCode+1:e.keyCode}};r.__decorate([n.Autowired(s.KeyboardNativeLayoutService),r.__metadata("design:type",Object)],c.prototype,"layoutProvider",void 0),r.__decorate([n.Autowired(s.KeyboardLayoutChangeNotifierService),r.__metadata("design:type",Object)],c.prototype,"layoutChangeNotifier",void 0),c=r.__decorate([n.Injectable()],c),t.KeyboardLayoutService=c;const l={"`":{key:a.Key.BACKQUOTE},"~":{key:a.Key.BACKQUOTE,shift:!0},1:{key:a.Key.DIGIT1},"!":{key:a.Key.DIGIT1,shift:!0},2:{key:a.Key.DIGIT2},"@":{key:a.Key.DIGIT2,shift:!0},3:{key:a.Key.DIGIT3},"#":{key:a.Key.DIGIT3,shift:!0},4:{key:a.Key.DIGIT4},$:{key:a.Key.DIGIT4,shift:!0},5:{key:a.Key.DIGIT5},"%":{key:a.Key.DIGIT5,shift:!0},6:{key:a.Key.DIGIT6},"^":{key:a.Key.DIGIT6,shift:!0},7:{key:a.Key.DIGIT7},"&":{key:a.Key.DIGIT7,shift:!0},8:{key:a.Key.DIGIT8},"*":{key:a.Key.DIGIT8,shift:!0},9:{key:a.Key.DIGIT9},"(":{key:a.Key.DIGIT9,shift:!0},0:{key:a.Key.DIGIT0},")":{key:a.Key.DIGIT0,shift:!0},"-":{key:a.Key.MINUS},_:{key:a.Key.MINUS,shift:!0},"=":{key:a.Key.EQUAL},"+":{key:a.Key.EQUAL,shift:!0},a:{key:a.Key.KEY_A},A:{key:a.Key.KEY_A,shift:!0},b:{key:a.Key.KEY_B},B:{key:a.Key.KEY_B,shift:!0},c:{key:a.Key.KEY_C},C:{key:a.Key.KEY_C,shift:!0},d:{key:a.Key.KEY_D},D:{key:a.Key.KEY_D,shift:!0},e:{key:a.Key.KEY_E},E:{key:a.Key.KEY_E,shift:!0},f:{key:a.Key.KEY_F},F:{key:a.Key.KEY_F,shift:!0},g:{key:a.Key.KEY_G},G:{key:a.Key.KEY_G,shift:!0},h:{key:a.Key.KEY_H},H:{key:a.Key.KEY_H,shift:!0},i:{key:a.Key.KEY_I},I:{key:a.Key.KEY_I,shift:!0},j:{key:a.Key.KEY_J},J:{key:a.Key.KEY_J,shift:!0},k:{key:a.Key.KEY_K},K:{key:a.Key.KEY_K,shift:!0},l:{key:a.Key.KEY_L},L:{key:a.Key.KEY_L,shift:!0},m:{key:a.Key.KEY_M},M:{key:a.Key.KEY_M,shift:!0},n:{key:a.Key.KEY_N},N:{key:a.Key.KEY_N,shift:!0},o:{key:a.Key.KEY_O},O:{key:a.Key.KEY_O,shift:!0},p:{key:a.Key.KEY_P},P:{key:a.Key.KEY_P,shift:!0},q:{key:a.Key.KEY_Q},Q:{key:a.Key.KEY_Q,shift:!0},r:{key:a.Key.KEY_R},R:{key:a.Key.KEY_R,shift:!0},s:{key:a.Key.KEY_S},S:{key:a.Key.KEY_S,shift:!0},t:{key:a.Key.KEY_T},T:{key:a.Key.KEY_T,shift:!0},u:{key:a.Key.KEY_U},U:{key:a.Key.KEY_U,shift:!0},v:{key:a.Key.KEY_V},V:{key:a.Key.KEY_V,shift:!0},w:{key:a.Key.KEY_W},W:{key:a.Key.KEY_W,shift:!0},x:{key:a.Key.KEY_X},X:{key:a.Key.KEY_X,shift:!0},y:{key:a.Key.KEY_Y},Y:{key:a.Key.KEY_Y,shift:!0},z:{key:a.Key.KEY_Z},Z:{key:a.Key.KEY_Z,shift:!0},"[":{key:a.Key.BRACKET_LEFT},"{":{key:a.Key.BRACKET_LEFT,shift:!0},"]":{key:a.Key.BRACKET_RIGHT},"}":{key:a.Key.BRACKET_RIGHT,shift:!0},";":{key:a.Key.SEMICOLON},":":{key:a.Key.SEMICOLON,shift:!0},"'":{key:a.Key.QUOTE},'"':{key:a.Key.QUOTE,shift:!0},",":{key:a.Key.COMMA},"<":{key:a.Key.COMMA,shift:!0},".":{key:a.Key.PERIOD},">":{key:a.Key.PERIOD,shift:!0},"/":{key:a.Key.SLASH},"?":{key:a.Key.SLASH,shift:!0},"\\":{key:a.Key.BACKSLASH},"|":{key:a.Key.BACKSLASH,shift:!0},"\t":{key:a.Key.TAB},"\r":{key:a.Key.ENTER},"\n":{key:a.Key.ENTER}," ":{key:a.Key.SPACE}},u={VK_SHIFT:a.Key.SHIFT_LEFT,VK_LSHIFT:a.Key.SHIFT_LEFT,VK_RSHIFT:a.Key.SHIFT_RIGHT,VK_CONTROL:a.Key.CONTROL_LEFT,VK_LCONTROL:a.Key.CONTROL_LEFT,VK_RCONTROL:a.Key.CONTROL_RIGHT,VK_MENU:a.Key.ALT_LEFT,VK_COMMAND:a.Key.OS_LEFT,VK_LWIN:a.Key.OS_LEFT,VK_RWIN:a.Key.OS_RIGHT,VK_0:a.Key.DIGIT0,VK_1:a.Key.DIGIT1,VK_2:a.Key.DIGIT2,VK_3:a.Key.DIGIT3,VK_4:a.Key.DIGIT4,VK_5:a.Key.DIGIT5,VK_6:a.Key.DIGIT6,VK_7:a.Key.DIGIT7,VK_8:a.Key.DIGIT8,VK_9:a.Key.DIGIT9,VK_A:a.Key.KEY_A,VK_B:a.Key.KEY_B,VK_C:a.Key.KEY_C,VK_D:a.Key.KEY_D,VK_E:a.Key.KEY_E,VK_F:a.Key.KEY_F,VK_G:a.Key.KEY_G,VK_H:a.Key.KEY_H,VK_I:a.Key.KEY_I,VK_J:a.Key.KEY_J,VK_K:a.Key.KEY_K,VK_L:a.Key.KEY_L,VK_M:a.Key.KEY_M,VK_N:a.Key.KEY_N,VK_O:a.Key.KEY_O,VK_P:a.Key.KEY_P,VK_Q:a.Key.KEY_Q,VK_R:a.Key.KEY_R,VK_S:a.Key.KEY_S,VK_T:a.Key.KEY_T,VK_U:a.Key.KEY_U,VK_V:a.Key.KEY_V,VK_W:a.Key.KEY_W,VK_X:a.Key.KEY_X,VK_Y:a.Key.KEY_Y,VK_Z:a.Key.KEY_Z,VK_OEM_1:a.Key.SEMICOLON,VK_OEM_2:a.Key.SLASH,VK_OEM_3:a.Key.BACKQUOTE,VK_OEM_4:a.Key.BRACKET_LEFT,VK_OEM_5:a.Key.BACKSLASH,VK_OEM_6:a.Key.BRACKET_RIGHT,VK_OEM_7:a.Key.QUOTE,VK_OEM_PLUS:a.Key.EQUAL,VK_OEM_COMMA:a.Key.COMMA,VK_OEM_MINUS:a.Key.MINUS,VK_OEM_PERIOD:a.Key.PERIOD,VK_F1:a.Key.F1,VK_F2:a.Key.F2,VK_F3:a.Key.F3,VK_F4:a.Key.F4,VK_F5:a.Key.F5,VK_F6:a.Key.F6,VK_F7:a.Key.F7,VK_F8:a.Key.F8,VK_F9:a.Key.F9,VK_F10:a.Key.F10,VK_F11:a.Key.F11,VK_F12:a.Key.F12,VK_F13:a.Key.F13,VK_F14:a.Key.F14,VK_F15:a.Key.F15,VK_F16:a.Key.F16,VK_F17:a.Key.F17,VK_F18:a.Key.F18,VK_F19:a.Key.F19,VK_BACK:a.Key.BACKSPACE,VK_TAB:a.Key.TAB,VK_RETURN:a.Key.ENTER,VK_CAPITAL:a.Key.CAPS_LOCK,VK_ESCAPE:a.Key.ESCAPE,VK_SPACE:a.Key.SPACE,VK_PRIOR:a.Key.PAGE_UP,VK_NEXT:a.Key.PAGE_DOWN,VK_END:a.Key.END,VK_HOME:a.Key.HOME,VK_INSERT:a.Key.INSERT,VK_DELETE:a.Key.DELETE,VK_LEFT:a.Key.ARROW_LEFT,VK_UP:a.Key.ARROW_UP,VK_RIGHT:a.Key.ARROW_RIGHT,VK_DOWN:a.Key.ARROW_DOWN,VK_NUMLOCK:a.Key.NUM_LOCK,VK_NUMPAD0:a.Key.DIGIT0,VK_NUMPAD1:a.Key.DIGIT1,VK_NUMPAD2:a.Key.DIGIT2,VK_NUMPAD3:a.Key.DIGIT3,VK_NUMPAD4:a.Key.DIGIT4,VK_NUMPAD5:a.Key.DIGIT5,VK_NUMPAD6:a.Key.DIGIT6,VK_NUMPAD7:a.Key.DIGIT7,VK_NUMPAD8:a.Key.DIGIT8,VK_NUMPAD9:a.Key.DIGIT9,VK_MULTIPLY:a.Key.MULTIPLY,VK_ADD:a.Key.ADD,VK_SUBTRACT:a.Key.SUBTRACT,VK_DECIMAL:a.Key.DECIMAL,VK_DIVIDE:a.Key.DIVIDE}},61519:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686),n=i(34417);var o;function s(e){return e.substr(0,1).toUpperCase()+e.substr(1)}!function(e){let t;e.equals=function(e,t){if(e.length!==t.length)return!1;for(let i=0;ie===o.CtrlCmd)),i.ctrl=t.modifiers.some((e=>e===o.MacCtrl))):(i.meta=!1,i.ctrl=t.modifiers.some((e=>e===o.CtrlCmd))),i.shift=t.modifiers.some((e=>e===o.Shift)),i.alt=t.modifiers.some((e=>e===o.Alt))),new a(i)}return new a(e)}static parse(e,t="+"){if(a.keybindings[e])return a.keybindings[e];const i={},n=e.trim().toLowerCase().split(t);if(n.length!==new Set(n).size)throw new Error(`Can't parse keybinding ${e} Duplicate modifiers`);for(let t of n){void 0!==h[t]&&(t=h[t]);const n=u[t];if(t===p.META){if(!r.isOSX)throw new Error(`Can't parse keybinding ${e} meta is for OSX only`);i.meta=!0}else if(t===p.MACMETA){if(!r.isOSX)throw new Error(`Can't parse keybinding ${e} meta is for OSX only`);i.meta=!0}else if(t===p.CTRLCMD)r.isOSX?i.meta=!0:i.ctrl=!0;else if(t===p.CTRL)i.ctrl=!0;else if(t===p.SHIFT)i.shift=!0;else if(t===p.ALT)i.alt=!0;else if(t===p.ARROW_DOWN)i.key=f.ARROW_DOWN;else if(t===p.ARROW_UP)i.key=f.ARROW_UP;else if(t===p.ARROW_LEFT)i.key=f.ARROW_LEFT;else if(t===p.ARROW_RIGHT)i.key=f.ARROW_RIGHT;else if(t===p.BACKSPACE)i.key=f.BACKSPACE;else if(t===p.ENTER)i.key=f.ENTER;else{if(!f.isKey(n))throw new Error(`Unrecognized key '${t}' in '${e}'`);f.isModifier(n.code)?n.code===f.CONTROL_LEFT.code||n.code===f.CONTROL_RIGHT.code?i.ctrl=!0:n.code===f.SHIFT_LEFT.code||n.code===f.SHIFT_RIGHT.code?i.shift=!0:n.code!==f.ALT_LEFT.code&&n.code!==f.ALT_RIGHT.code||(i.alt=!0):i.key=n}}return a.keybindings[e]=new a(i),a.keybindings[e]}}t.KeyCode=a,a.keybindings={},function(e){e.isModifierString=function(e){return e===o.CtrlCmd||e===o.Shift||e===o.Alt||e===o.MacCtrl},e.isKeyboardEvent=function(e){if("undefined"==typeof KeyboardEvent)return!1;if(e instanceof KeyboardEvent)return!0;const{type:t}=e;return!!t&&("keypress"===t||"keydown"===t||"keyup"===t)},e.toKey=function(e){const t=e.code;if(t){if(r.isOSX){const i=e.key;if("IntlBackslash"===t&&("`"===i||"~"===i))return f.BACKQUOTE;if("Backquote"===t&&("§"===i||"±"===i))return f.INTL_BACKSLASH}const i=f.getKey(t);if(i)return i}const i=e.keyCode;if(i){const e=f.getKey(i);if(e)return e}const n=e.keyIdentifier;if(n){const e=f.getKey(n);if(e)return e}throw new Error(`Cannot get key code from the keyboard event with code: ${t}, keyCode: ${i}, keyIdentifier: ${n}`)},e.toCharacter=function(e){const t=e.key;if(t&&1===Array.from(t).length)return t;const i=e.charCode;return i&&i>31&&!(i>=128&&i<=159)?String.fromCharCode(i):void 0}}(a=t.KeyCode||(t.KeyCode={})),function(e){e.CtrlCmd="M1",e.Shift="M2",e.Alt="M3",e.MacCtrl="M4"}(o=t.KeyModifier||(t.KeyModifier={})),function(e){e.CTRL=r.isOSX?e.MacCtrl:e.CtrlCmd,e.SHIFT=e.Shift,e.isModifier=function(e){if(e)switch(e){case"M1":case"M2":case"M3":case"M4":return!0;default:return!1}return!1}}(o=t.KeyModifier||(t.KeyModifier={}));const c={},l={},u={},d=[],h={option:"alt",command:"meta",cmd:"meta",return:"enter",esc:"escape",mod:"ctrl",ins:"insert",del:"delete",control:"ctrl"};var p,f;!function(e){e.META=r.isOSX?"meta":n.isWindows?"win":"meta",e.MACMETA="⌘",e.CTRL=r.isOSX?"⌃":"ctrl",e.ALT=r.isOSX?"⌥":"alt",e.SHIFT=r.isOSX?"⇧":"shift",e.CTRLCMD="ctrlcmd",e.ARROW_LEFT="←",e.ARROW_RIGHT="→",e.ARROW_UP="↑",e.ARROW_DOWN="↓",e.BACKSPACE="⌫",e.ENTER="⏎"}(p=t.SpecialCases||(t.SpecialCases={})),function(e){e.isKey=function(e){return"object"==typeof e&&"code"in e&&"keyCode"in e},e.getKey=function(e){return"number"==typeof e?l[e]:c[e]},e.isModifier=function(e){return"number"==typeof e?void 0!==d.find((t=>t.keyCode===e)):void 0!==d.find((t=>t.code===e))},e.equals=function(e,t){return!!t.key&&e.keyCode===t.key.keyCode},e.BACKSPACE={code:"Backspace",keyCode:8,easyString:"backspace"},e.TAB={code:"Tab",keyCode:9,easyString:"tab"},e.ENTER={code:"Enter",keyCode:13,easyString:"enter"},e.ESCAPE={code:"Escape",keyCode:27,easyString:"escape"},e.SPACE={code:"Space",keyCode:32,easyString:"space"},e.PAGE_UP={code:"PageUp",keyCode:33,easyString:"pageup"},e.PAGE_DOWN={code:"PageDown",keyCode:34,easyString:"pagedown"},e.END={code:"End",keyCode:35,easyString:"end"},e.HOME={code:"Home",keyCode:36,easyString:"home"},e.ARROW_LEFT={code:"ArrowLeft",keyCode:37,easyString:"left"},e.ARROW_UP={code:"ArrowUp",keyCode:38,easyString:"up"},e.ARROW_RIGHT={code:"ArrowRight",keyCode:39,easyString:"right"},e.ARROW_DOWN={code:"ArrowDown",keyCode:40,easyString:"down"},e.INSERT={code:"Insert",keyCode:45,easyString:"insert"},e.DELETE={code:"Delete",keyCode:46,easyString:"delete"},e.SHIFT_LEFT={code:"ShiftLeft",keyCode:16,easyString:"shift"},e.SHIFT_RIGHT={code:"ShiftRight",keyCode:16,easyString:"shift"},e.CONTROL_LEFT={code:"ControlLeft",keyCode:17,easyString:"ctrl"},e.CONTROL_RIGHT={code:"ControlRight",keyCode:17,easyString:"ctrl"},e.ALT_LEFT={code:"AltLeft",keyCode:18,easyString:"alt"},e.ALT_RIGHT={code:"AltRight",keyCode:18,easyString:"alt"},e.CAPS_LOCK={code:"CapsLock",keyCode:20,easyString:"capslock"},e.OS_LEFT={code:"OSLeft",keyCode:91,easyString:"super"},e.OS_RIGHT={code:"OSRight",keyCode:92,easyString:"super"},e.DIGIT0={code:"Digit0",keyCode:48,easyString:"0"},e.DIGIT1={code:"Digit1",keyCode:49,easyString:"1"},e.DIGIT2={code:"Digit2",keyCode:50,easyString:"2"},e.DIGIT3={code:"Digit3",keyCode:51,easyString:"3"},e.DIGIT4={code:"Digit4",keyCode:52,easyString:"4"},e.DIGIT5={code:"Digit5",keyCode:53,easyString:"5"},e.DIGIT6={code:"Digit6",keyCode:54,easyString:"6"},e.DIGIT7={code:"Digit7",keyCode:55,easyString:"7"},e.DIGIT8={code:"Digit8",keyCode:56,easyString:"8"},e.DIGIT9={code:"Digit9",keyCode:57,easyString:"9"},e.KEY_A={code:"KeyA",keyCode:65,easyString:"a"},e.KEY_B={code:"KeyB",keyCode:66,easyString:"b"},e.KEY_C={code:"KeyC",keyCode:67,easyString:"c"},e.KEY_D={code:"KeyD",keyCode:68,easyString:"d"},e.KEY_E={code:"KeyE",keyCode:69,easyString:"e"},e.KEY_F={code:"KeyF",keyCode:70,easyString:"f"},e.KEY_G={code:"KeyG",keyCode:71,easyString:"g"},e.KEY_H={code:"KeyH",keyCode:72,easyString:"h"},e.KEY_I={code:"KeyI",keyCode:73,easyString:"i"},e.KEY_J={code:"KeyJ",keyCode:74,easyString:"j"},e.KEY_K={code:"KeyK",keyCode:75,easyString:"k"},e.KEY_L={code:"KeyL",keyCode:76,easyString:"l"},e.KEY_M={code:"KeyM",keyCode:77,easyString:"m"},e.KEY_N={code:"KeyN",keyCode:78,easyString:"n"},e.KEY_O={code:"KeyO",keyCode:79,easyString:"o"},e.KEY_P={code:"KeyP",keyCode:80,easyString:"p"},e.KEY_Q={code:"KeyQ",keyCode:81,easyString:"q"},e.KEY_R={code:"KeyR",keyCode:82,easyString:"r"},e.KEY_S={code:"KeyS",keyCode:83,easyString:"s"},e.KEY_T={code:"KeyT",keyCode:84,easyString:"t"},e.KEY_U={code:"KeyU",keyCode:85,easyString:"u"},e.KEY_V={code:"KeyV",keyCode:86,easyString:"v"},e.KEY_W={code:"KeyW",keyCode:87,easyString:"w"},e.KEY_X={code:"KeyX",keyCode:88,easyString:"x"},e.KEY_Y={code:"KeyY",keyCode:89,easyString:"y"},e.KEY_Z={code:"KeyZ",keyCode:90,easyString:"z"},e.MULTIPLY={code:"NumpadMultiply",keyCode:106,easyString:"multiply"},e.ADD={code:"NumpadAdd",keyCode:107,easyString:"add"},e.DECIMAL={code:"NumpadDecimal",keyCode:108,easyString:"decimal"},e.SUBTRACT={code:"NumpadSubtract",keyCode:109,easyString:"subtract"},e.DIVIDE={code:"NumpadDivide",keyCode:111,easyString:"divide"},e.F1={code:"F1",keyCode:112,easyString:"f1"},e.F2={code:"F2",keyCode:113,easyString:"f2"},e.F3={code:"F3",keyCode:114,easyString:"f3"},e.F4={code:"F4",keyCode:115,easyString:"f4"},e.F5={code:"F5",keyCode:116,easyString:"f5"},e.F6={code:"F6",keyCode:117,easyString:"f6"},e.F7={code:"F7",keyCode:118,easyString:"f7"},e.F8={code:"F8",keyCode:119,easyString:"f8"},e.F9={code:"F9",keyCode:120,easyString:"f9"},e.F10={code:"F10",keyCode:121,easyString:"f10"},e.F11={code:"F11",keyCode:122,easyString:"f11"},e.F12={code:"F12",keyCode:123,easyString:"f12"},e.F13={code:"F13",keyCode:124,easyString:"f13"},e.F14={code:"F14",keyCode:125,easyString:"f14"},e.F15={code:"F15",keyCode:126,easyString:"f15"},e.F16={code:"F16",keyCode:127,easyString:"f16"},e.F17={code:"F17",keyCode:128,easyString:"f17"},e.F18={code:"F18",keyCode:129,easyString:"f18"},e.F19={code:"F19",keyCode:130,easyString:"f19"},e.F20={code:"F20",keyCode:131,easyString:"f20"},e.F21={code:"F21",keyCode:132,easyString:"f21"},e.F22={code:"F22",keyCode:133,easyString:"f22"},e.F23={code:"F23",keyCode:134,easyString:"f23"},e.F24={code:"F24",keyCode:135,easyString:"f24"},e.NUM_LOCK={code:"NumLock",keyCode:144,easyString:"numlock"},e.SEMICOLON={code:"Semicolon",keyCode:186,easyString:";"},e.EQUAL={code:"Equal",keyCode:187,easyString:"="},e.COMMA={code:"Comma",keyCode:188,easyString:","},e.MINUS={code:"Minus",keyCode:189,easyString:"-"},e.PERIOD={code:"Period",keyCode:190,easyString:"."},e.SLASH={code:"Slash",keyCode:191,easyString:"/"},e.BACKQUOTE={code:"Backquote",keyCode:192,easyString:"`"},e.INTL_RO={code:"IntlRo",keyCode:193,easyString:"intlro"},e.BRACKET_LEFT={code:"BracketLeft",keyCode:219,easyString:"["},e.BACKSLASH={code:"Backslash",keyCode:220,easyString:"\\"},e.BRACKET_RIGHT={code:"BracketRight",keyCode:221,easyString:"]"},e.QUOTE={code:"Quote",keyCode:222,easyString:"'"},e.INTL_BACKSLASH={code:"IntlBackslash",keyCode:229,easyString:"intlbackslash"},e.INTL_YEN={code:"IntlYen",keyCode:255,easyString:"intlyen"},e.MAX_KEY_CODE=e.INTL_YEN.keyCode}(f=t.Key||(t.Key={})),Object.keys(f).map((e=>Reflect.get(f,e))).filter((e=>f.isKey(e))).forEach((e=>{c[e.code]=e,l[e.keyCode]=e,u[e.easyString]=e})),c.Numpad0=f.DIGIT0,l[96]=f.DIGIT0,c.Numpad1=f.DIGIT1,l[97]=f.DIGIT1,c.Numpad2=f.DIGIT2,l[98]=f.DIGIT2,c.Numpad3=f.DIGIT3,l[99]=f.DIGIT3,c.Numpad4=f.DIGIT4,l[100]=f.DIGIT4,c.Numpad5=f.DIGIT5,l[101]=f.DIGIT5,c.Numpad6=f.DIGIT6,l[102]=f.DIGIT6,c.Numpad7=f.DIGIT7,l[103]=f.DIGIT7,c.Numpad8=f.DIGIT8,l[104]=f.DIGIT8,c.Numpad9=f.DIGIT9,l[105]=f.DIGIT9,c.NumpadEnter=f.ENTER,c.NumpadEqual=f.EQUAL,c.MetaLeft=f.OS_LEFT,l[224]=f.OS_LEFT,c.MetaRight=f.OS_RIGHT,l[93]=f.OS_RIGHT,l[225]=f.ALT_RIGHT,l[110]=f.DECIMAL,l[59]=f.SEMICOLON,l[61]=f.EQUAL,l[173]=f.MINUS,l[226]=f.BACKSLASH,l[60]=f.BACKSLASH,d.push(f.ALT_LEFT,f.ALT_RIGHT,f.CONTROL_LEFT,f.CONTROL_RIGHT,f.OS_LEFT,f.OS_RIGHT,f.SHIFT_LEFT,f.SHIFT_RIGHT),function(e){e.toKeyCode=e=>e instanceof a?e:a.createKeyCode({first:e}),e.toKeyCodes=t=>t instanceof a?[t]:Array.isArray(t)?t.slice().map(e.toKeyCode):[e.toKeyCode(t)]}(t.KeysOrKeyCodes||(t.KeysOrKeyCodes={}))},45827:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Czech","lang":"cs"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"ą","withShiftAltGr":"Ą"},"KeyB":{"value":"b","withShift":"B"},"KeyC":{"value":"c","withShift":"C","withShiftAltGr":"©"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"∆"},"KeyE":{"value":"e","withShift":"E","withAltGr":"ę","withShiftAltGr":"Ę"},"KeyF":{"value":"f","withShift":"F"},"KeyG":{"value":"g","withShift":"G"},"KeyH":{"value":"h","withShift":"H","withAltGr":"‘","withShiftAltGr":"“"},"KeyI":{"value":"i","withShift":"I"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"’","withShiftAltGr":"”"},"KeyK":{"value":"k","withShift":"K"},"KeyL":{"value":"l","withShift":"L","withAltGr":"ł","withShiftAltGr":"Ł"},"KeyM":{"value":"m","withShift":"M"},"KeyN":{"value":"n","withShift":"N","withAltGr":"‚","withShiftAltGr":"„"},"KeyO":{"value":"o","withShift":"O"},"KeyP":{"value":"p","withShift":"P"},"KeyQ":{"value":"q","withShift":"Q"},"KeyR":{"value":"r","withShift":"R","withAltGr":"€","withShiftAltGr":"®"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"∑"},"KeyT":{"value":"t","withShift":"T","withShiftAltGr":"™"},"KeyU":{"value":"u","withShift":"U"},"KeyV":{"value":"v","withShift":"V","withShiftAltGr":"√"},"KeyW":{"value":"w","withShift":"W","withAltGr":"ė","withShiftAltGr":"Ė"},"KeyX":{"value":"x","withShift":"X"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"ż","withShiftAltGr":"Ż"},"KeyZ":{"value":"y","withShift":"Y"},"Digit1":{"value":"+","withShift":"1","withAltGr":"`","withShiftAltGr":"¬"},"Digit2":{"value":"ě","withShift":"2","withAltGr":"@","withShiftAltGr":"•"},"Digit3":{"value":"š","withShift":"3","withAltGr":"#","withShiftAltGr":"≠"},"Digit4":{"value":"č","withShift":"4","withAltGr":"$","withShiftAltGr":"£"},"Digit5":{"value":"ř","withShift":"5","withAltGr":"~","withShiftAltGr":"◊"},"Digit6":{"value":"ž","withShift":"6","withAltGr":"^","withShiftAltGr":"†"},"Digit7":{"value":"ý","withShift":"7","withAltGr":"&","withShiftAltGr":"¶"},"Digit8":{"value":"á","withShift":"8","withAltGr":"*","withShiftAltGr":"÷"},"Digit9":{"value":"í","withShift":"9","withAltGr":"{","withShiftAltGr":"«"},"Digit0":{"value":"é","withShift":"0","withAltGr":"}","withShiftAltGr":"»"},"Minus":{"value":"=","withShift":"%","withAltGr":"°","withShiftAltGr":","},"Equal":{"value":"\'","withShift":"ˇ","withAltGr":"^","withShiftAltGr":"-"},"BracketLeft":{"value":"ú","withShift":"/","withAltGr":"[","withShiftAltGr":"‹"},"BracketRight":{"value":")","withShift":"(","withAltGr":"]","withShiftAltGr":"›"},"Backslash":{"value":"¨","withShift":"`","withAltGr":"¨","withShiftAltGr":"\\""},"Semicolon":{"value":"ů","withShift":"\\"","withAltGr":";","withShiftAltGr":"…"},"Quote":{"value":"§","withShift":"!","withAltGr":"\'","withShiftAltGr":"~"},"Backquote":{"value":"\\\\","withShift":"|"},"Comma":{"value":",","withShift":"?","withAltGr":"<","withShiftAltGr":"≤"},"Period":{"value":".","withShift":":","withAltGr":">","withShiftAltGr":"≥"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"}}}')},54758:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000405","id":"","text":"Czech"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B","withAltGr":"{"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C","withAltGr":"&"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D","withAltGr":"Đ"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F","withAltGr":"["},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G","withAltGr":"]"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K","withAltGr":"ł"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L","withAltGr":"Ł"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N","withAltGr":"}"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q","withAltGr":"\\\\"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"đ"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V","withAltGr":"@"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W","withAltGr":"|"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X","withAltGr":"#"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y"},"Digit1":{"vkey":"VK_1","value":"+","withShift":"1","withAltGr":"~"},"Digit2":{"vkey":"VK_2","value":"ě","withShift":"2","withAltGr":"ˇ"},"Digit3":{"vkey":"VK_3","value":"š","withShift":"3","withAltGr":"^"},"Digit4":{"vkey":"VK_4","value":"č","withShift":"4","withAltGr":"˘"},"Digit5":{"vkey":"VK_5","value":"ř","withShift":"5","withAltGr":"°"},"Digit6":{"vkey":"VK_6","value":"ž","withShift":"6","withAltGr":"˛"},"Digit7":{"vkey":"VK_7","value":"ý","withShift":"7","withAltGr":"`"},"Digit8":{"vkey":"VK_8","value":"á","withShift":"8","withAltGr":"˙"},"Digit9":{"vkey":"VK_9","value":"í","withShift":"9","withAltGr":"´"},"Digit0":{"vkey":"VK_0","value":"é","withShift":"0","withAltGr":"˝"},"Minus":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"%","withAltGr":"¨"},"Equal":{"vkey":"VK_OEM_2","value":"´","withShift":"ˇ","withAltGr":"¸"},"BracketLeft":{"vkey":"VK_OEM_4","value":"ú","withShift":"/","withAltGr":"÷"},"BracketRight":{"vkey":"VK_OEM_6","value":")","withShift":"(","withAltGr":"×"},"Backslash":{"vkey":"VK_OEM_5","value":"¨","withShift":"\'","withAltGr":"¤"},"Semicolon":{"vkey":"VK_OEM_1","value":"ů","withShift":"\\"","withAltGr":"$"},"Quote":{"vkey":"VK_OEM_7","value":"§","withShift":"!","withAltGr":"ß"},"Backquote":{"vkey":"VK_OEM_3","value":";","withShift":"°"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"?","withAltGr":"<"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":","withAltGr":">"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_","withAltGr":"*"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},59026:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Danish","lang":"da"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"ª","withShiftAltGr":"Ê"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"Ë"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"˘"},"KeyE":{"value":"e","withShift":"E","withAltGr":"é","withShiftAltGr":"É"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"fi"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Á"},"KeyH":{"value":"h","withShift":"H","withAltGr":"«","withShiftAltGr":"»"},"KeyI":{"value":"i","withShift":"I","withAltGr":"|","withShiftAltGr":"ı"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"‹","withShiftAltGr":"›"},"KeyK":{"value":"k","withShift":"K","withAltGr":"∆","withShiftAltGr":"˝"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"fl"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˛"},"KeyN":{"value":"n","withShift":"N","withAltGr":"ñ","withShiftAltGr":"Ñ"},"KeyO":{"value":"o","withShift":"O","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"°","withShiftAltGr":"•"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Â"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"ˇ"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"‡"},"KeyU":{"value":"u","withShift":"U","withAltGr":"ü","withShiftAltGr":"Ü"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"˚"},"KeyX":{"value":"x","withShift":"X","withAltGr":"…","withShiftAltGr":"˙"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Ÿ"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"¯"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"#","withAltGr":"§","withShiftAltGr":"$"},"Digit4":{"value":"4","withShift":"€","withAltGr":"£","withShiftAltGr":"¢"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"‰"},"Digit6":{"value":"6","withShift":"&","withAltGr":"™","withShiftAltGr":"˜"},"Digit7":{"value":"7","withShift":"/","withAltGr":"¶","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"{"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"}"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"≈"},"Minus":{"value":"+","withShift":"?","withAltGr":"±","withShiftAltGr":"¿"},"Equal":{"value":"´","withShift":"`","withAltGr":"\'","withShiftAltGr":"⁄"},"BracketLeft":{"value":"å","withShift":"Å","withAltGr":"‘","withShiftAltGr":"’"},"BracketRight":{"value":"¨","withShift":"^","withAltGr":"~","withShiftAltGr":"^"},"Backslash":{"value":"\'","withShift":"*","withAltGr":"@","withShiftAltGr":"º"},"Semicolon":{"value":"æ","withShift":"Æ","withAltGr":"ä","withShiftAltGr":"Ä"},"Quote":{"value":"ø","withShift":"Ø","withAltGr":"ö","withShiftAltGr":"Ö"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"‚","withShiftAltGr":"„"},"Period":{"value":".","withShift":":","withAltGr":"·","withShiftAltGr":"÷"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"$","withShift":"§","withAltGr":"","withShiftAltGr":"\'"}}}')},94735:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000406","id":"","text":"Danish"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"¤","withAltGr":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"?"},"Equal":{"vkey":"VK_OEM_4","value":"´","withShift":"`","withAltGr":"|"},"BracketLeft":{"vkey":"VK_OEM_6","value":"å","withShift":"Å"},"BracketRight":{"vkey":"VK_OEM_1","value":"¨","withShift":"^","withAltGr":"~"},"Backslash":{"vkey":"VK_OEM_2","value":"\'","withShift":"*"},"Semicolon":{"vkey":"VK_OEM_3","value":"æ","withShift":"Æ"},"Quote":{"vkey":"VK_OEM_7","value":"ø","withShift":"Ø"},"Backquote":{"vkey":"VK_OEM_5","value":"½","withShift":"§"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"\\\\"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},48545:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.German","lang":"de"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"‹"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"™"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"‰"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Ì"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ª","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"⁄","withShiftAltGr":"Û"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"º","withShiftAltGr":"ı"},"KeyK":{"value":"k","withShift":"K","withAltGr":"∆","withShiftAltGr":"ˆ"},"KeyL":{"value":"l","withShift":"L","withAltGr":"@","withShiftAltGr":"fl"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˘"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"›"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"«","withShiftAltGr":"»"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"¸"},"KeyS":{"value":"s","withShift":"S","withAltGr":"‚","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"˝"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"Á"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"Ù"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"ˇ"},"KeyZ":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"‡"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"¬"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"§","withAltGr":"¶","withShiftAltGr":"#"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"£"},"Digit5":{"value":"5","withShift":"%","withAltGr":"[","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"&","withAltGr":"]","withShiftAltGr":"^"},"Digit7":{"value":"7","withShift":"/","withAltGr":"|","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"{","withShiftAltGr":"˜"},"Digit9":{"value":"9","withShift":")","withAltGr":"}","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"¯"},"Minus":{"value":"ß","withShift":"?","withAltGr":"¿","withShiftAltGr":"˙"},"Equal":{"value":"´","withShift":"`","withAltGr":"\'","withShiftAltGr":"˚"},"BracketLeft":{"value":"ü","withShift":"Ü","withAltGr":"•","withShiftAltGr":"°"},"BracketRight":{"value":"+","withShift":"*","withAltGr":"±","withShiftAltGr":""},"Backslash":{"value":"#","withShift":"\'","withAltGr":"‘","withShiftAltGr":"’"},"Semicolon":{"value":"ö","withShift":"Ö","withAltGr":"œ","withShiftAltGr":"Œ"},"Quote":{"value":"ä","withShift":"Ä","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"∞","withShiftAltGr":"˛"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"÷"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"^","withShift":"°","withAltGr":"„","withShiftAltGr":"“"}}}')},5986:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000407","id":"","text":"German"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q","withAltGr":"@"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"²"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"§","withAltGr":"³"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_4","value":"ß","withShift":"?","withAltGr":"\\\\","withShiftAltGr":"ẞ"},"Equal":{"vkey":"VK_OEM_6","value":"´","withShift":"`"},"BracketLeft":{"vkey":"VK_OEM_1","value":"ü","withShift":"Ü"},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"*","withAltGr":"~"},"Backslash":{"vkey":"VK_OEM_2","value":"#","withShift":"\'"},"Semicolon":{"vkey":"VK_OEM_3","value":"ö","withShift":"Ö"},"Quote":{"vkey":"VK_OEM_7","value":"ä","withShift":"Ä"},"Backquote":{"vkey":"VK_OEM_5","value":"^","withShift":"°"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},75640:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.SwissGerman","lang":"de"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"fl"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"Ë"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"‡"},"KeyG":{"value":"g","withShift":"G","withAltGr":"@","withShiftAltGr":"‚"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ª","withShiftAltGr":"·"},"KeyI":{"value":"i","withShift":"I","withAltGr":"¡","withShiftAltGr":"ı"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"º","withShiftAltGr":"˜"},"KeyK":{"value":"k","withShift":"K","withAltGr":"∆","withShiftAltGr":"¯"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"ˆ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˚"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"˙"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"È"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"fi"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"Î"},"KeyU":{"value":"u","withShift":"U","withAltGr":"°","withShiftAltGr":"Ù"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"Á"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"™"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Í"},"KeyZ":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Ÿ"},"Digit1":{"value":"1","withShift":"+","withAltGr":"±","withShiftAltGr":"∞"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"*","withAltGr":"#","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"ç","withAltGr":"Ç","withShiftAltGr":"⁄"},"Digit5":{"value":"5","withShift":"%","withAltGr":"[","withShiftAltGr":"["},"Digit6":{"value":"6","withShift":"&","withAltGr":"]","withShiftAltGr":"]"},"Digit7":{"value":"7","withShift":"/","withAltGr":"|","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"{","withShiftAltGr":"Ò"},"Digit9":{"value":"9","withShift":")","withAltGr":"}","withShiftAltGr":"Ô"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"Ú"},"Minus":{"value":"\'","withShift":"?","withAltGr":"¿","withShiftAltGr":""},"Equal":{"value":"^","withShift":"`","withAltGr":"´","withShiftAltGr":"^"},"BracketLeft":{"value":"ü","withShift":"è","withAltGr":"§","withShiftAltGr":"ÿ"},"BracketRight":{"value":"¨","withShift":"!","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"$","withShift":"£","withAltGr":"¶","withShiftAltGr":"•"},"Semicolon":{"value":"ö","withShift":"é","withAltGr":"¢","withShiftAltGr":"˘"},"Quote":{"value":"ä","withShift":"à","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"«","withShiftAltGr":"»"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"÷"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"§","withShift":"°","withAltGr":"fi","withShiftAltGr":"‰"}}}')},78937:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000807","id":"","text":"Swiss German"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"+","withAltGr":"¦"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"*","withAltGr":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"ç","withAltGr":"°"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"§"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&","withAltGr":"¬"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"|"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"¢"},"Digit9":{"vkey":"VK_9","value":"9","withShift":")"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"="},"Minus":{"vkey":"VK_OEM_4","value":"\'","withShift":"?","withAltGr":"´"},"Equal":{"vkey":"VK_OEM_6","value":"^","withShift":"`","withAltGr":"~"},"BracketLeft":{"vkey":"VK_OEM_1","value":"ü","withShift":"è","withAltGr":"["},"BracketRight":{"vkey":"VK_OEM_3","value":"¨","withShift":"!","withAltGr":"]"},"Backslash":{"vkey":"VK_OEM_8","value":"$","withShift":"£","withAltGr":"}"},"Semicolon":{"vkey":"VK_OEM_7","value":"ö","withShift":"é"},"Quote":{"vkey":"VK_OEM_5","value":"ä","withShift":"à","withAltGr":"{"},"Backquote":{"vkey":"VK_OEM_2","value":"§","withShift":"°"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"\\\\"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},44479:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.British","lang":"en"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"‰"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Ì"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"^","withShiftAltGr":"È"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˜"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"ˆ"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Â"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"Ê"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"Ë"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"Ù"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Û"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"€","withShiftAltGr":"™"},"Digit3":{"value":"3","withShift":"£","withAltGr":"#","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"BracketRight":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"Ÿ"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"§","withShift":"±"}}}')},61324:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000809","id":"","text":"United Kingdom"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A","withAltGr":"á","withShiftAltGr":"Á"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"é","withShiftAltGr":"É"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I","withAltGr":"í","withShiftAltGr":"Í"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O","withAltGr":"ó","withShiftAltGr":"Ó"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U","withAltGr":"ú","withShiftAltGr":"Ú"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\""},"Digit3":{"vkey":"VK_3","value":"3","withShift":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"€"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"^"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"&"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"*"},"Digit9":{"vkey":"VK_9","value":"9","withShift":"("},"Digit0":{"vkey":"VK_0","value":"0","withShift":")"},"Minus":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"Equal":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+"},"BracketLeft":{"vkey":"VK_OEM_4","value":"[","withShift":"{"},"BracketRight":{"vkey":"VK_OEM_6","value":"]","withShift":"}"},"Backslash":{"vkey":"VK_OEM_7","value":"#","withShift":"~","withAltGr":"\\\\","withShiftAltGr":"|"},"Semicolon":{"vkey":"VK_OEM_1","value":";","withShift":":"},"Quote":{"vkey":"VK_OEM_3","value":"\'","withShift":"@"},"Backquote":{"vkey":"VK_OEM_8","value":"`","withShift":"¬","withAltGr":"¦"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"<"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":">"},"Slash":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"IntlBackslash":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},36096:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Colemak","lang":"en"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyE":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyF":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyG":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyJ":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyK":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyL":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"KeyN":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyO":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyP":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyS":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyT":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyU":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyY":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"BracketRight":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},54546:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Dvorak","lang":"en"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyC":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyD":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyE":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"KeyF":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyG":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyH":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyI":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyJ":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyK":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyL":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"KeyN":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyO":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyP":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyQ":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyR":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyS":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyT":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyU":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyV":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyW":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"KeyX":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyY":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyZ":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"Equal":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"BracketLeft":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"BracketRight":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"Quote":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"Period":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"Slash":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},78550:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00010409","id":"0002","text":"United States-Dvorak"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyC":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyD":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyE":{"vkey":"VK_OEM_PERIOD","value":".","withShift":">"},"KeyF":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyG":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyH":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyI":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyJ":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyK":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyL":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyO":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyP":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyQ":{"vkey":"VK_OEM_7","value":"\'","withShift":"\\""},"KeyR":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyS":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyT":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyU":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyV":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyW":{"vkey":"VK_OEM_COMMA","value":",","withShift":"<"},"KeyX":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyY":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyZ":{"vkey":"VK_OEM_1","value":";","withShift":":"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"^"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"&"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"*"},"Digit9":{"vkey":"VK_9","value":"9","withShift":"("},"Digit0":{"vkey":"VK_0","value":"0","withShift":")"},"Minus":{"vkey":"VK_OEM_4","value":"[","withShift":"{"},"Equal":{"vkey":"VK_OEM_6","value":"]","withShift":"}"},"BracketLeft":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+"},"Backslash":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Semicolon":{"vkey":"VK_S","value":"s","withShift":"S"},"Quote":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"Backquote":{"vkey":"VK_OEM_3","value":"`","withShift":"~"},"Comma":{"vkey":"VK_W","value":"w","withShift":"W"},"Period":{"vkey":"VK_V","value":"v","withShift":"V"},"Slash":{"vkey":"VK_Z","value":"z","withShift":"Z"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},60066:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Dvorak-Left","lang":"en"},"mapping":{"KeyA":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"KeyB":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyC":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyD":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyE":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyF":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyG":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyJ":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyK":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyL":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"KeyM":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyO":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"KeyP":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"KeyQ":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"KeyR":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyS":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyT":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyU":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyY":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyZ":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Digit1":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"Digit2":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Digit3":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"Digit4":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"Digit5":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"Digit6":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"Digit7":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"Digit8":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"Digit9":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit0":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Minus":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Equal":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"BracketLeft":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"BracketRight":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Quote":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Slash":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},63164:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00030409","id":"001A","text":"United States-Dvorak for left hand"},"mapping":{"KeyA":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"KeyB":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyC":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyD":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyE":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyF":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyG":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyJ":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyK":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyL":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyM":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_OEM_PERIOD","value":".","withShift":">"},"KeyP":{"vkey":"VK_6","value":"6","withShift":"^"},"KeyQ":{"vkey":"VK_OEM_1","value":";","withShift":":"},"KeyR":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyS":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyT":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyU":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyZ":{"vkey":"VK_OEM_7","value":"\'","withShift":"\\""},"Digit1":{"vkey":"VK_OEM_4","value":"[","withShift":"{"},"Digit2":{"vkey":"VK_OEM_6","value":"]","withShift":"}"},"Digit3":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"Digit4":{"vkey":"VK_P","value":"p","withShift":"P"},"Digit5":{"vkey":"VK_F","value":"f","withShift":"F"},"Digit6":{"vkey":"VK_M","value":"m","withShift":"M"},"Digit7":{"vkey":"VK_L","value":"l","withShift":"L"},"Digit8":{"vkey":"VK_J","value":"j","withShift":"J"},"Digit9":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit0":{"vkey":"VK_3","value":"3","withShift":"#"},"Minus":{"vkey":"VK_2","value":"2","withShift":"@"},"Equal":{"vkey":"VK_1","value":"1","withShift":"!"},"BracketLeft":{"vkey":"VK_5","value":"5","withShift":"%"},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+"},"Backslash":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Semicolon":{"vkey":"VK_8","value":"8","withShift":"*"},"Quote":{"vkey":"VK_7","value":"7","withShift":"&"},"Backquote":{"vkey":"VK_OEM_3","value":"`","withShift":"~"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"<"},"Period":{"vkey":"VK_0","value":"0","withShift":")"},"Slash":{"vkey":"VK_9","value":"9","withShift":"("},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},63415:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Dvorak-Right","lang":"en"},"mapping":{"KeyA":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"KeyB":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyC":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyD":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"KeyE":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyF":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyG":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyJ":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyK":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyL":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyM":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyO":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyP":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyQ":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"KeyR":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"KeyS":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"KeyT":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyU":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyV":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"KeyW":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"KeyX":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"KeyY":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyZ":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"Digit6":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"Digit7":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"Digit8":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"Digit9":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"Digit0":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"Minus":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"Equal":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"BracketLeft":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"BracketRight":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"Quote":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"Period":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"Slash":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},40719:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00040409","id":"001B","text":"United States-Dvorak for right hand"},"mapping":{"KeyA":{"vkey":"VK_7","value":"7","withShift":"&"},"KeyB":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyC":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyD":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyE":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyF":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyG":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyJ":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyK":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyL":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyM":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyP":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyQ":{"vkey":"VK_5","value":"5","withShift":"%"},"KeyR":{"vkey":"VK_OEM_PERIOD","value":".","withShift":">"},"KeyS":{"vkey":"VK_8","value":"8","withShift":"*"},"KeyT":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyU":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyV":{"vkey":"VK_OEM_COMMA","value":",","withShift":"<"},"KeyW":{"vkey":"VK_6","value":"6","withShift":"^"},"KeyX":{"vkey":"VK_0","value":"0","withShift":")"},"KeyY":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyZ":{"vkey":"VK_9","value":"9","withShift":"("},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit5":{"vkey":"VK_J","value":"j","withShift":"J"},"Digit6":{"vkey":"VK_L","value":"l","withShift":"L"},"Digit7":{"vkey":"VK_M","value":"m","withShift":"M"},"Digit8":{"vkey":"VK_F","value":"f","withShift":"F"},"Digit9":{"vkey":"VK_P","value":"p","withShift":"P"},"Digit0":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"Minus":{"vkey":"VK_OEM_4","value":"[","withShift":"{"},"Equal":{"vkey":"VK_OEM_6","value":"]","withShift":"}"},"BracketLeft":{"vkey":"VK_OEM_1","value":";","withShift":":"},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+"},"Backslash":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Semicolon":{"vkey":"VK_K","value":"k","withShift":"K"},"Quote":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"Backquote":{"vkey":"VK_OEM_3","value":"`","withShift":"~"},"Comma":{"vkey":"VK_V","value":"v","withShift":"V"},"Period":{"vkey":"VK_G","value":"g","withShift":"G"},"Slash":{"vkey":"VK_OEM_7","value":"\'","withShift":"\\""},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},56054:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.US","lang":"en"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"BracketRight":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},42746:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000409","id":"","text":"US"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"^"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"&"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"*"},"Digit9":{"vkey":"VK_9","value":"9","withShift":"("},"Digit0":{"vkey":"VK_0","value":"0","withShift":")"},"Minus":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"Equal":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+"},"BracketLeft":{"vkey":"VK_OEM_4","value":"[","withShift":"{"},"BracketRight":{"vkey":"VK_OEM_6","value":"]","withShift":"}"},"Backslash":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Semicolon":{"vkey":"VK_OEM_1","value":";","withShift":":"},"Quote":{"vkey":"VK_OEM_7","value":"\'","withShift":"\\""},"Backquote":{"vkey":"VK_OEM_3","value":"`","withShift":"~"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"<"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":">"},"Slash":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},91423:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Spanish","lang":"es"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"<"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©","withShiftAltGr":"Â"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"fl"},"KeyE":{"value":"e","withShift":"E","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"‡"},"KeyG":{"value":"g","withShift":"G","withAltGr":"@","withShiftAltGr":"‚"},"KeyH":{"value":"h","withShift":"H","withAltGr":"™","withShiftAltGr":"·"},"KeyI":{"value":"i","withShift":"I","withAltGr":"^","withShiftAltGr":"ı"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"˜"},"KeyK":{"value":"k","withShift":"K","withAltGr":"§","withShiftAltGr":"˘"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"ˆ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"≤"},"KeyN":{"value":"n","withShift":"N","withAltGr":">","withShiftAltGr":">"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Á"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"fi"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"È"},"KeyU":{"value":"u","withShift":"U","withAltGr":"€","withShiftAltGr":"Û"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"Ê"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"‰"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Ë"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"„"},"Digit1":{"value":"1","withShift":"¡","withAltGr":"‘","withShiftAltGr":"’"},"Digit2":{"value":"2","withShift":"!","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"#","withAltGr":"«","withShiftAltGr":"»"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"Î"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"Ì"},"Digit6":{"value":"6","withShift":"/","withAltGr":"\\\\","withShiftAltGr":"Ï"},"Digit7":{"value":"7","withShift":"&","withAltGr":"|","withShiftAltGr":"Í"},"Digit8":{"value":"8","withShift":"*","withAltGr":"°","withShiftAltGr":""},"Digit9":{"value":"9","withShift":"(","withAltGr":"£","withShiftAltGr":"Ô"},"Digit0":{"value":"0","withShift":")","withAltGr":"≠","withShiftAltGr":"Ò"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"±","withShiftAltGr":"Ó"},"BracketLeft":{"value":"´","withShift":"º","withAltGr":"ª","withShiftAltGr":"Ù"},"BracketRight":{"value":"`","withShift":"¨","withAltGr":"|","withShiftAltGr":"Ú"},"Backslash":{"value":"\'","withShift":"\\"","withAltGr":"]","withShiftAltGr":"}"},"Semicolon":{"value":"ñ","withShift":"Ñ","withAltGr":"~","withShiftAltGr":"˙"},"Quote":{"value":";","withShift":":","withAltGr":"¶","withShiftAltGr":"¯"},"Backquote":{"value":"<","withShift":">","withAltGr":"[","withShiftAltGr":"{"},"Comma":{"value":",","withShift":"¿","withAltGr":"Ÿ","withShiftAltGr":"≥"},"Period":{"value":".","withShift":"?","withAltGr":"…","withShiftAltGr":"÷"},"Slash":{"value":"ç","withShift":"Ç","withAltGr":"•","withShiftAltGr":"¸"},"IntlBackslash":{"value":"[","withShift":"]","withAltGr":"{","withShiftAltGr":"}"}}}')},43976:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000040A","id":"","text":"Spanish"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":"|"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"·","withAltGr":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"~"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&","withAltGr":"¬"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"("},"Digit9":{"vkey":"VK_9","value":"9","withShift":")"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"="},"Minus":{"vkey":"VK_OEM_4","value":"\'","withShift":"?"},"Equal":{"vkey":"VK_OEM_6","value":"¡","withShift":"¿"},"BracketLeft":{"vkey":"VK_OEM_1","value":"`","withShift":"^","withAltGr":"["},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"*","withAltGr":"]"},"Backslash":{"vkey":"VK_OEM_2","value":"ç","withShift":"Ç","withAltGr":"}"},"Semicolon":{"vkey":"VK_OEM_3","value":"ñ","withShift":"Ñ"},"Quote":{"vkey":"VK_OEM_7","value":"´","withShift":"¨","withAltGr":"{"},"Backquote":{"vkey":"VK_OEM_5","value":"º","withShift":"ª","withAltGr":"\\\\"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},86662:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Canadian-CSA","lang":"fr"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"≤"},"KeyC":{"value":"c","withShift":"C","withAltGr":"¢","withShiftAltGr":"†"},"KeyD":{"value":"d","withShift":"D","withAltGr":"ª","withShiftAltGr":"ˇ"},"KeyE":{"value":"e","withShift":"E","withAltGr":"∂","withShiftAltGr":"¯"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"fl"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"fi"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"·"},"KeyI":{"value":"i","withShift":"I","withAltGr":"π","withShiftAltGr":"∏"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"‚"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":"⁄"},"KeyL":{"value":"l","withShift":"L","withAltGr":" ","withShiftAltGr":"…"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"º"},"KeyN":{"value":"n","withShift":"N","withAltGr":" ","withShiftAltGr":"≥"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"“","withShiftAltGr":"”"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"¶","withShiftAltGr":"®"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"§"},"KeyT":{"value":"t","withShift":"T","withAltGr":"™","withShiftAltGr":"˘"},"KeyU":{"value":"u","withShift":"U","withAltGr":" ","withShiftAltGr":"˛"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"‰"},"KeyX":{"value":"x","withShift":"X","withAltGr":"»","withShiftAltGr":"›"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"˝"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"«","withShiftAltGr":"‹"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"≈"},"Digit2":{"value":"2","withShift":"@","withAltGr":"@","withShiftAltGr":"ı"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"ˆ"},"Digit4":{"value":"4","withShift":"$","withAltGr":"€","withShiftAltGr":"˜"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":""},"Digit6":{"value":"6","withShift":"?","withAltGr":" ","withShiftAltGr":"†"},"Digit7":{"value":"7","withShift":"&","withAltGr":"{","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"}","withShiftAltGr":"•"},"Digit9":{"value":"9","withShift":"(","withAltGr":"[","withShiftAltGr":"±"},"Digit0":{"value":"0","withShift":")","withAltGr":"]","withShiftAltGr":"—"},"Minus":{"value":"-","withShift":"_","withAltGr":"|","withShiftAltGr":"¿"},"Equal":{"value":"=","withShift":"+","withAltGr":"¬","withShiftAltGr":"–"},"BracketLeft":{"value":"^","withShift":"¨","withAltGr":"`","withShiftAltGr":"„"},"BracketRight":{"value":"ç","withShift":"Ç","withAltGr":"~","withShiftAltGr":"~"},"Backslash":{"value":"à","withShift":"À","withAltGr":"`","withShiftAltGr":"`"},"Semicolon":{"value":";","withShift":":","withAltGr":"°","withShiftAltGr":"´"},"Quote":{"value":"è","withShift":"È","withAltGr":"\\\\","withShiftAltGr":"’"},"Backquote":{"value":"ù","withShift":"Ù","withAltGr":"\\\\","withShiftAltGr":"Ω"},"Comma":{"value":",","withShift":"\'","withAltGr":"<","withShiftAltGr":"x"},"Period":{"value":".","withShift":"\\"","withAltGr":">","withShiftAltGr":"÷"},"Slash":{"value":"é","withShift":"É","withAltGr":"/","withShiftAltGr":"≠"},"IntlBackslash":{"value":"/","withShift":"\\\\","withAltGr":"|","withShiftAltGr":" "}}}')},50492:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00001009","id":"","text":"Canadian French"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O","withAltGr":"§"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P","withAltGr":"¶"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":"±"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"/","withAltGr":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"¢"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"¤"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"?","withAltGr":"¬"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"&","withAltGr":"¦"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"*","withAltGr":"²"},"Digit9":{"vkey":"VK_9","value":"9","withShift":"(","withAltGr":"³"},"Digit0":{"vkey":"VK_0","value":"0","withShift":")","withAltGr":"¼"},"Minus":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_","withAltGr":"½"},"Equal":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+","withAltGr":"¾"},"BracketLeft":{"vkey":"VK_OEM_4","value":"^","withShift":"^","withAltGr":"["},"BracketRight":{"vkey":"VK_OEM_6","value":"¸","withShift":"¨","withAltGr":"]"},"Backslash":{"vkey":"VK_OEM_5","value":"<","withShift":">","withAltGr":"}"},"Semicolon":{"vkey":"VK_OEM_1","value":";","withShift":":","withAltGr":"~"},"Quote":{"vkey":"VK_OEM_3","value":"`","withShift":"`","withAltGr":"{"},"Backquote":{"vkey":"VK_OEM_7","value":"#","withShift":"|","withAltGr":"\\\\"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"\'","withAltGr":"¯"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":"."},"Slash":{"vkey":"VK_OEM_2","value":"é","withShift":"É","withAltGr":"´"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"«","withShift":"»","withAltGr":"°"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},64389:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.French","lang":"fr"},"mapping":{"KeyA":{"value":"q","withShift":"Q","withAltGr":"‡","withShiftAltGr":"Ω"},"KeyB":{"value":"b","withShift":"B","withAltGr":"ß","withShiftAltGr":"∫"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©","withShiftAltGr":"¢"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"∆"},"KeyE":{"value":"e","withShift":"E","withAltGr":"ê","withShiftAltGr":"Ê"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"·"},"KeyG":{"value":"g","withShift":"G","withAltGr":"fi","withShiftAltGr":"fl"},"KeyH":{"value":"h","withShift":"H","withAltGr":"Ì","withShiftAltGr":"Î"},"KeyI":{"value":"i","withShift":"I","withAltGr":"î","withShiftAltGr":"ï"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"Ï","withShiftAltGr":"Í"},"KeyK":{"value":"k","withShift":"K","withAltGr":"È","withShiftAltGr":"Ë"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"|"},"KeyM":{"value":",","withShift":"?","withAltGr":"∞","withShiftAltGr":"¿"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"ı"},"KeyO":{"value":"o","withShift":"O","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"a","withShift":"A","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‚"},"KeyS":{"value":"s","withShift":"S","withAltGr":"Ò","withShiftAltGr":"∑"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"™"},"KeyU":{"value":"u","withShift":"U","withAltGr":"º","withShiftAltGr":"ª"},"KeyV":{"value":"v","withShift":"V","withAltGr":"◊","withShiftAltGr":"√"},"KeyW":{"value":"z","withShift":"Z","withAltGr":"Â","withShiftAltGr":"Å"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"⁄"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"Ú","withShiftAltGr":"Ÿ"},"KeyZ":{"value":"w","withShift":"W","withAltGr":"‹","withShiftAltGr":"›"},"Digit1":{"value":"&","withShift":"1","withAltGr":"","withShiftAltGr":"´"},"Digit2":{"value":"é","withShift":"2","withAltGr":"ë","withShiftAltGr":"„"},"Digit3":{"value":"\\"","withShift":"3","withAltGr":"“","withShiftAltGr":"”"},"Digit4":{"value":"\'","withShift":"4","withAltGr":"‘","withShiftAltGr":"’"},"Digit5":{"value":"(","withShift":"5","withAltGr":"{","withShiftAltGr":"["},"Digit6":{"value":"§","withShift":"6","withAltGr":"¶","withShiftAltGr":"å"},"Digit7":{"value":"è","withShift":"7","withAltGr":"«","withShiftAltGr":"»"},"Digit8":{"value":"!","withShift":"8","withAltGr":"¡","withShiftAltGr":"Û"},"Digit9":{"value":"ç","withShift":"9","withAltGr":"Ç","withShiftAltGr":"Á"},"Digit0":{"value":"à","withShift":"0","withAltGr":"ø","withShiftAltGr":"Ø"},"Minus":{"value":")","withShift":"°","withAltGr":"}","withShiftAltGr":"]"},"Equal":{"value":"-","withShift":"_","withAltGr":"—","withShiftAltGr":"–"},"BracketLeft":{"value":"^","withShift":"¨","withAltGr":"ô","withShiftAltGr":"Ô"},"BracketRight":{"value":"$","withShift":"*","withAltGr":"€","withShiftAltGr":"¥"},"Backslash":{"value":"`","withShift":"£","withAltGr":"@","withShiftAltGr":"#"},"Semicolon":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Ó"},"Quote":{"value":"ù","withShift":"%","withAltGr":"Ù","withShiftAltGr":"‰"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":";","withShift":".","withAltGr":"…","withShiftAltGr":"•"},"Period":{"value":":","withShift":"/","withAltGr":"÷","withShiftAltGr":"\\\\"},"Slash":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"IntlBackslash":{"value":"@","withShift":"#","withAltGr":"•","withShiftAltGr":"Ÿ"}}}')},32715:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000040C","id":"","text":"French"},"mapping":{"KeyA":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_OEM_COMMA","value":",","withShift":"?"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_W","value":"w","withShift":"W"},"Digit1":{"vkey":"VK_1","value":"&","withShift":"1"},"Digit2":{"vkey":"VK_2","value":"é","withShift":"2","withAltGr":"~"},"Digit3":{"vkey":"VK_3","value":"\\"","withShift":"3","withAltGr":"#"},"Digit4":{"vkey":"VK_4","value":"\'","withShift":"4","withAltGr":"{"},"Digit5":{"vkey":"VK_5","value":"(","withShift":"5","withAltGr":"["},"Digit6":{"vkey":"VK_6","value":"-","withShift":"6","withAltGr":"|"},"Digit7":{"vkey":"VK_7","value":"è","withShift":"7","withAltGr":"`"},"Digit8":{"vkey":"VK_8","value":"_","withShift":"8","withAltGr":"\\\\"},"Digit9":{"vkey":"VK_9","value":"ç","withShift":"9","withAltGr":"^"},"Digit0":{"vkey":"VK_0","value":"à","withShift":"0","withAltGr":"@"},"Minus":{"vkey":"VK_OEM_4","value":")","withShift":"°","withAltGr":"]"},"Equal":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+","withAltGr":"}"},"BracketLeft":{"vkey":"VK_OEM_6","value":"^","withShift":"¨"},"BracketRight":{"vkey":"VK_OEM_1","value":"$","withShift":"£","withAltGr":"¤"},"Backslash":{"vkey":"VK_OEM_5","value":"*","withShift":"µ"},"Semicolon":{"vkey":"VK_M","value":"m","withShift":"M"},"Quote":{"vkey":"VK_OEM_3","value":"ù","withShift":"%"},"Backquote":{"vkey":"VK_OEM_7","value":"²"},"Comma":{"vkey":"VK_OEM_PERIOD","value":";","withShift":"."},"Period":{"vkey":"VK_OEM_2","value":":","withShift":"/"},"Slash":{"vkey":"VK_OEM_8","value":"!","withShift":"§"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},56582:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.SwissFrench","lang":"fr"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"fl"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"Ë"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"‡"},"KeyG":{"value":"g","withShift":"G","withAltGr":"@","withShiftAltGr":"‚"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ª","withShiftAltGr":"·"},"KeyI":{"value":"i","withShift":"I","withAltGr":"¡","withShiftAltGr":"ı"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"º","withShiftAltGr":"˜"},"KeyK":{"value":"k","withShift":"K","withAltGr":"∆","withShiftAltGr":"¯"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"ˆ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˚"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"˙"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"È"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"fi"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"Î"},"KeyU":{"value":"u","withShift":"U","withAltGr":"°","withShiftAltGr":"Ù"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"Á"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"™"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Í"},"KeyZ":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Ÿ"},"Digit1":{"value":"1","withShift":"+","withAltGr":"±","withShiftAltGr":"∞"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"*","withAltGr":"#","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"ç","withAltGr":"Ç","withShiftAltGr":"⁄"},"Digit5":{"value":"5","withShift":"%","withAltGr":"[","withShiftAltGr":"["},"Digit6":{"value":"6","withShift":"&","withAltGr":"]","withShiftAltGr":"]"},"Digit7":{"value":"7","withShift":"/","withAltGr":"|","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"{","withShiftAltGr":"Ò"},"Digit9":{"value":"9","withShift":")","withAltGr":"}","withShiftAltGr":"Ô"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"Ú"},"Minus":{"value":"\'","withShift":"?","withAltGr":"¿","withShiftAltGr":""},"Equal":{"value":"^","withShift":"`","withAltGr":"´","withShiftAltGr":"^"},"BracketLeft":{"value":"è","withShift":"ü","withAltGr":"§","withShiftAltGr":"ÿ"},"BracketRight":{"value":"¨","withShift":"!","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"$","withShift":"£","withAltGr":"¶","withShiftAltGr":"•"},"Semicolon":{"value":"é","withShift":"ö","withAltGr":"¢","withShiftAltGr":"˘"},"Quote":{"value":"à","withShift":"ä","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"«","withShiftAltGr":"»"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"÷"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"§","withShift":"°","withAltGr":"fi","withShiftAltGr":"‰"}}}')},34288:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000100C","id":"","text":"Swiss French"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"+","withAltGr":"¦"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"*","withAltGr":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"ç","withAltGr":"°"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"§"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&","withAltGr":"¬"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"|"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"¢"},"Digit9":{"vkey":"VK_9","value":"9","withShift":")"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"="},"Minus":{"vkey":"VK_OEM_4","value":"\'","withShift":"?","withAltGr":"´"},"Equal":{"vkey":"VK_OEM_6","value":"^","withShift":"`","withAltGr":"~"},"BracketLeft":{"vkey":"VK_OEM_1","value":"è","withShift":"ü","withAltGr":"["},"BracketRight":{"vkey":"VK_OEM_3","value":"¨","withShift":"!","withAltGr":"]"},"Backslash":{"vkey":"VK_OEM_8","value":"$","withShift":"£","withAltGr":"}"},"Semicolon":{"vkey":"VK_OEM_7","value":"é","withShift":"ö"},"Quote":{"vkey":"VK_OEM_5","value":"à","withShift":"ä","withAltGr":"{"},"Backquote":{"vkey":"VK_OEM_2","value":"§","withShift":"°"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"\\\\"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},77449:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Hungarian","lang":"hu"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"ą","withShiftAltGr":"Ą"},"KeyB":{"value":"b","withShift":"B","withAltGr":"”","withShiftAltGr":"’"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ć","withShiftAltGr":"©"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Ž"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"š"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ń","withShiftAltGr":"ž"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Ū"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ķ","withShiftAltGr":"Õ"},"KeyI":{"value":"i","withShift":"I","withAltGr":"^","withShiftAltGr":"ť"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"Ż","withShiftAltGr":"&"},"KeyL":{"value":"l","withShift":"L","withAltGr":"•","withShiftAltGr":"Ů"},"KeyM":{"value":"m","withShift":"M","withAltGr":"Ķ","withShiftAltGr":"ų"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"Ų"},"KeyO":{"value":"o","withShift":"O","withAltGr":"Ņ","withShiftAltGr":"Į"},"KeyP":{"value":"p","withShift":"P","withAltGr":"Ļ","withShiftAltGr":"ł"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"@","withShiftAltGr":"ļ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"¶","withShiftAltGr":"®"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"ż"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ś"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"†"},"KeyV":{"value":"v","withShift":"V","withAltGr":"„","withShiftAltGr":"‚"},"KeyW":{"value":"w","withShift":"W","withAltGr":"ę","withShiftAltGr":"Ł"},"KeyX":{"value":"x","withShift":"X","withAltGr":"»","withShiftAltGr":">"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"ź","withShiftAltGr":"Ź"},"KeyZ":{"value":"y","withShift":"Y","withAltGr":"«","withShiftAltGr":"<"},"Digit1":{"value":"1","withShift":"\'","withAltGr":"&","withShiftAltGr":"ŕ"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"™","withShiftAltGr":"Ř"},"Digit3":{"value":"3","withShift":"+","withAltGr":"£","withShiftAltGr":"#"},"Digit4":{"value":"4","withShift":"!","withAltGr":"$","withShiftAltGr":"$"},"Digit5":{"value":"5","withShift":"%","withAltGr":"‹","withShiftAltGr":"ř"},"Digit6":{"value":"6","withShift":"/","withAltGr":"›","withShiftAltGr":"Ŗ"},"Digit7":{"value":"7","withShift":"=","withAltGr":"{","withShiftAltGr":"ŗ"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"™"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"}"},"Digit0":{"value":"ö","withShift":"Ö","withAltGr":"}","withShiftAltGr":"°"},"Minus":{"value":"ü","withShift":"Ü","withAltGr":"\\\\","withShiftAltGr":"ī"},"Equal":{"value":"ó","withShift":"Ó","withAltGr":"≠","withShiftAltGr":"Ī"},"BracketLeft":{"value":"ő","withShift":"Ő","withAltGr":"¨","withShiftAltGr":"Ý"},"BracketRight":{"value":"ú","withShift":"Ú","withAltGr":"~","withShiftAltGr":"ý"},"Backslash":{"value":"ű","withShift":"Ű","withAltGr":"`","withShiftAltGr":"Ģ"},"Semicolon":{"value":"é","withShift":"É","withAltGr":"…","withShiftAltGr":"ō"},"Quote":{"value":"á","withShift":"Á","withAltGr":"^","withShiftAltGr":"ˇ"},"Backquote":{"value":"í","withShift":"Í","withAltGr":"|","withShiftAltGr":"Ŕ"},"Comma":{"value":",","withShift":"?","withAltGr":"–","withShiftAltGr":"*"},"Period":{"value":".","withShift":":","withAltGr":";","withShiftAltGr":"÷"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"0","withShift":"§","withAltGr":"¬","withShiftAltGr":"•"}}}')},38918:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000040E","id":"","text":"Hungarian"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A","withAltGr":"ä"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B","withAltGr":"{"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C","withAltGr":"&"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D","withAltGr":"Đ"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"Ä"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F","withAltGr":"["},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G","withAltGr":"]"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I","withAltGr":"Í"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J","withAltGr":"í"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K","withAltGr":"ł"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L","withAltGr":"Ł"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"<"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N","withAltGr":"}"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q","withAltGr":"\\\\"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"đ"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U","withAltGr":"€"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V","withAltGr":"@"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W","withAltGr":"|"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X","withAltGr":"#"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y","withAltGr":">"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"\'","withAltGr":"~"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"ˇ"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"+","withAltGr":"^"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"!","withAltGr":"˘"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"°"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"/","withAltGr":"˛"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"=","withAltGr":"`"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"˙"},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"´"},"Digit0":{"vkey":"VK_OEM_3","value":"ö","withShift":"Ö","withAltGr":"˝"},"Minus":{"vkey":"VK_OEM_2","value":"ü","withShift":"Ü","withAltGr":"¨"},"Equal":{"vkey":"VK_OEM_PLUS","value":"ó","withShift":"Ó","withAltGr":"¸"},"BracketLeft":{"vkey":"VK_OEM_4","value":"ő","withShift":"Ő","withAltGr":"÷"},"BracketRight":{"vkey":"VK_OEM_6","value":"ú","withShift":"Ú","withAltGr":"×"},"Backslash":{"vkey":"VK_OEM_5","value":"ű","withShift":"Ű","withAltGr":"¤"},"Semicolon":{"vkey":"VK_OEM_1","value":"é","withShift":"É","withAltGr":"$"},"Quote":{"vkey":"VK_OEM_7","value":"á","withShift":"Á","withAltGr":"ß"},"Backquote":{"vkey":"VK_0","value":"0","withShift":"§"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":"?","withAltGr":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":","withAltGr":">"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_","withAltGr":"*"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"í","withShift":"Í","withAltGr":"<"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},70108:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Italian-Pro","lang":"it"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"Í"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©","withShiftAltGr":"Á"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"˘"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"È"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"˙"},"KeyG":{"value":"g","withShift":"G","withAltGr":"∞","withShiftAltGr":"˚"},"KeyH":{"value":"h","withShift":"H","withAltGr":"∆","withShiftAltGr":"¸"},"KeyI":{"value":"i","withShift":"I","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"ª","withShiftAltGr":"˝"},"KeyK":{"value":"k","withShift":"K","withAltGr":"º","withShiftAltGr":"˛"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"ˇ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Ú"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"Ó"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"„","withShiftAltGr":"‚"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Ì"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"¯"},"KeyT":{"value":"t","withShift":"T","withAltGr":"™","withShiftAltGr":"Ò"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"Ù"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"É"},"KeyW":{"value":"w","withShift":"W","withAltGr":"Ω","withShiftAltGr":"À"},"KeyX":{"value":"x","withShift":"X","withAltGr":"†","withShiftAltGr":"‡"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"∑","withShiftAltGr":" "},"Digit1":{"value":"1","withShift":"!","withAltGr":"«","withShiftAltGr":"»"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"“","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"£","withAltGr":"‘","withShiftAltGr":"’"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¥","withShiftAltGr":"¢"},"Digit5":{"value":"5","withShift":"%","withAltGr":"~","withShiftAltGr":"‰"},"Digit6":{"value":"6","withShift":"&","withAltGr":"‹","withShiftAltGr":"›"},"Digit7":{"value":"7","withShift":"/","withAltGr":"÷","withShiftAltGr":"⁄"},"Digit8":{"value":"8","withShift":"(","withAltGr":"´","withShiftAltGr":""},"Digit9":{"value":"9","withShift":")","withAltGr":"`","withShiftAltGr":" "},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"≈"},"Minus":{"value":"\'","withShift":"?","withAltGr":"¡","withShiftAltGr":"¿"},"Equal":{"value":"ì","withShift":"^","withAltGr":"ˆ","withShiftAltGr":"±"},"BracketLeft":{"value":"è","withShift":"é","withAltGr":"[","withShiftAltGr":"{"},"BracketRight":{"value":"+","withShift":"*","withAltGr":"]","withShiftAltGr":"}"},"Backslash":{"value":"ù","withShift":"§","withAltGr":"¶","withShiftAltGr":"◊"},"Semicolon":{"value":"ò","withShift":"ç","withAltGr":"@","withShiftAltGr":"Ç"},"Quote":{"value":"à","withShift":"°","withAltGr":"#","withShiftAltGr":"∞"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"…","withShiftAltGr":" "},"Period":{"value":".","withShift":":","withAltGr":"•","withShiftAltGr":"·"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"\\\\","withShift":"|","withAltGr":"`","withShiftAltGr":"ı"}}}')},86898:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000410","id":"","text":"Italian"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\""},"Digit3":{"vkey":"VK_3","value":"3","withShift":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"("},"Digit9":{"vkey":"VK_9","value":"9","withShift":")"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"="},"Minus":{"vkey":"VK_OEM_4","value":"\'","withShift":"?"},"Equal":{"vkey":"VK_OEM_6","value":"ì","withShift":"^"},"BracketLeft":{"vkey":"VK_OEM_1","value":"è","withShift":"é","withAltGr":"[","withShiftAltGr":"{"},"BracketRight":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"*","withAltGr":"]","withShiftAltGr":"}"},"Backslash":{"vkey":"VK_OEM_2","value":"ù","withShift":"§"},"Semicolon":{"vkey":"VK_OEM_3","value":"ò","withShift":"ç","withAltGr":"@"},"Quote":{"vkey":"VK_OEM_7","value":"à","withShift":"°","withAltGr":"#"},"Backquote":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},45109:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Norwegian","lang":"nb"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"","withShiftAltGr":"◊"},"KeyB":{"value":"b","withShift":"B","withAltGr":"›","withShiftAltGr":"»"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"∆"},"KeyE":{"value":"e","withShift":"E","withAltGr":"é","withShiftAltGr":"É"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"∫"},"KeyG":{"value":"g","withShift":"G","withAltGr":"¸","withShiftAltGr":"¯"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˛","withShiftAltGr":"˘"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ı","withShiftAltGr":"ˆ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"√","withShiftAltGr":"¬"},"KeyK":{"value":"k","withShift":"K","withAltGr":"ª","withShiftAltGr":"º"},"KeyL":{"value":"l","withShift":"L","withAltGr":"fi","withShiftAltGr":"fl"},"KeyM":{"value":"m","withShift":"M","withAltGr":"’","withShiftAltGr":"”"},"KeyN":{"value":"n","withShift":"N","withAltGr":"‘","withShiftAltGr":"“"},"KeyO":{"value":"o","withShift":"O","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"•","withShiftAltGr":"°"},"KeyR":{"value":"r","withShift":"R"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"∑"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"‡"},"KeyU":{"value":"u","withShift":"U","withAltGr":"ü","withShiftAltGr":"Ü"},"KeyV":{"value":"v","withShift":"V","withAltGr":"‹","withShiftAltGr":"«"},"KeyW":{"value":"w","withShift":"W","withAltGr":"Ω","withShiftAltGr":"˝"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"µ","withShiftAltGr":"˜"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"÷","withShiftAltGr":"⁄"},"Digit1":{"value":"1","withShift":"!","withAltGr":"©","withShiftAltGr":"¡"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"™","withShiftAltGr":"®"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"¥"},"Digit4":{"value":"4","withShift":"$","withAltGr":"€","withShiftAltGr":"¢"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"‰"},"Digit6":{"value":"6","withShift":"&","withAltGr":"§","withShiftAltGr":"¶"},"Digit7":{"value":"7","withShift":"/","withAltGr":"|","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"{"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"}"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≈","withShiftAltGr":"≠"},"Minus":{"value":"+","withShift":"?","withAltGr":"±","withShiftAltGr":"¿"},"Equal":{"value":"´","withShift":"`","withAltGr":"`"},"BracketLeft":{"value":"å","withShift":"Å","withAltGr":"˙","withShiftAltGr":"˚"},"BracketRight":{"value":"¨","withShift":"^","withAltGr":"~","withShiftAltGr":"^"},"Backslash":{"value":"@","withShift":"*","withAltGr":"\'"},"Semicolon":{"value":"ø","withShift":"Ø","withAltGr":"ö","withShiftAltGr":"Ö"},"Quote":{"value":"æ","withShift":"Æ","withAltGr":"ä","withShiftAltGr":"Ä"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"‚","withShiftAltGr":"„"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"·"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"\'","withShift":"§","withAltGr":"€","withShiftAltGr":"Ÿ"}}}')},42509:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000414","id":"","text":"Norwegian"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"¤","withAltGr":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"?"},"Equal":{"vkey":"VK_OEM_4","value":"\\\\","withShift":"`","withAltGr":"´"},"BracketLeft":{"vkey":"VK_OEM_6","value":"å","withShift":"Å"},"BracketRight":{"vkey":"VK_OEM_1","value":"¨","withShift":"^","withAltGr":"~"},"Backslash":{"vkey":"VK_OEM_2","value":"\'","withShift":"*"},"Semicolon":{"vkey":"VK_OEM_3","value":"ø","withShift":"Ø"},"Quote":{"vkey":"VK_OEM_7","value":"æ","withShift":"Æ"},"Backquote":{"vkey":"VK_OEM_5","value":"|","withShift":"§"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},83e3:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Dutch","lang":"nl"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"‰"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Ì"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"^","withShiftAltGr":"È"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˜"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"ˆ"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Â"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"Ê"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"Ë"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"Ù"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Û"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"€","withShiftAltGr":"™"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"BracketRight":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"Ÿ"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"§","withShift":"±"}}}')},69086:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000413","id":"","text":"Dutch"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C","withAltGr":"¢"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R","withAltGr":"¶"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"ß"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X","withAltGr":"»"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z","withAltGr":"«"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":"¹"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"²"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"³"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"¼"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"½"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&","withAltGr":"¾"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"_","withAltGr":"£"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"{"},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"}"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"\'"},"Minus":{"vkey":"VK_OEM_4","value":"/","withShift":"?","withAltGr":"\\\\"},"Equal":{"vkey":"VK_OEM_2","value":"°","withShift":"~","withAltGr":"¸"},"BracketLeft":{"vkey":"VK_OEM_6","value":"¨","withShift":"^"},"BracketRight":{"vkey":"VK_OEM_1","value":"*","withShift":"|"},"Backslash":{"vkey":"VK_OEM_5","value":"<","withShift":">"},"Semicolon":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"±"},"Quote":{"vkey":"VK_OEM_3","value":"´","withShift":"`"},"Backquote":{"vkey":"VK_OEM_7","value":"@","withShift":"§","withAltGr":"¬"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":","withAltGr":"·"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"="},"IntlBackslash":{"vkey":"VK_OEM_102","value":"]","withShift":"[","withAltGr":"¦"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},91783:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Polish","lang":"pl"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"ū","withShiftAltGr":"Ľ"},"KeyB":{"value":"b","withShift":"B","withAltGr":"ű","withShiftAltGr":"ŗ"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ˇ","withShiftAltGr":"Ŗ"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Ņ"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"Į"},"KeyF":{"value":"f","withShift":"F","withAltGr":"Ů","withShiftAltGr":"ņ"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"Ő"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ů","withShiftAltGr":"Ō"},"KeyI":{"value":"i","withShift":"I","withAltGr":"^","withShiftAltGr":"Ļ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"ō"},"KeyK":{"value":"k","withShift":"K","withAltGr":"Ű","withShiftAltGr":"Ŕ"},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"ŕ"},"KeyM":{"value":"m","withShift":"M","withAltGr":"Ų","withShiftAltGr":"ý"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"Ý"},"KeyO":{"value":"o","withShift":"O","withAltGr":"£","withShiftAltGr":"ļ"},"KeyP":{"value":"p","withShift":"P","withAltGr":"‘","withShiftAltGr":"“"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"Ū","withShiftAltGr":"Ė"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"į"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"ľ"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"Ī"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"Ķ"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"ė"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≤","withShiftAltGr":"≥"},"KeyY":{"value":"z","withShift":"Z","withAltGr":"°","withShiftAltGr":"ī"},"KeyZ":{"value":"y","withShift":"Y","withAltGr":"‹","withShiftAltGr":"›"},"Digit1":{"value":"1","withShift":"§","withAltGr":"&","withShiftAltGr":"Ā"},"Digit2":{"value":"2","withShift":"%","withAltGr":"@","withShiftAltGr":"ā"},"Digit3":{"value":"3","withShift":"!","withAltGr":"#","withShiftAltGr":"ď"},"Digit4":{"value":"4","withShift":"?","withAltGr":"€","withShiftAltGr":"Ē"},"Digit5":{"value":"5","withShift":"+","withAltGr":"`","withShiftAltGr":"ē"},"Digit6":{"value":"6","withShift":"=","withAltGr":"™","withShiftAltGr":"ķ"},"Digit7":{"value":"7","withShift":":","withAltGr":"¶","withShiftAltGr":"°"},"Digit8":{"value":"8","withShift":"_","withAltGr":"•","withShiftAltGr":"–"},"Digit9":{"value":"9","withShift":"/","withAltGr":"\\\\","withShiftAltGr":"|"},"Digit0":{"value":"0","withShift":"\\"","withAltGr":"„","withShiftAltGr":"”"},"Minus":{"value":"ż","withShift":"Ż","withAltGr":"‚","withShiftAltGr":"’"},"Equal":{"value":"[","withShift":"]","withAltGr":"≠","withShiftAltGr":"÷"},"BracketLeft":{"value":"ó","withShift":"ź","withAltGr":"Ó","withShiftAltGr":"Ź"},"BracketRight":{"value":"(","withShift":")","withAltGr":"{","withShiftAltGr":"}"},"Backslash":{"value":";","withShift":"$","withAltGr":"\'","withShiftAltGr":"~"},"Semicolon":{"value":"ł","withShift":"Ł","withAltGr":"…","withShiftAltGr":"ť"},"Quote":{"value":"ą","withShift":"ę","withAltGr":"Ą","withShiftAltGr":"Ę"},"Backquote":{"value":"<","withShift":">","withAltGr":"«","withShiftAltGr":"»"},"Comma":{"value":".","withShift":"ś","withAltGr":"ų","withShiftAltGr":"Ś"},"Period":{"value":",","withShift":"ń","withAltGr":"Ģ","withShiftAltGr":"Ń"},"Slash":{"value":"-","withShift":"ć","withAltGr":"—","withShiftAltGr":"Ć"},"IntlBackslash":{"value":"^","withShift":"*","withAltGr":"§","withShiftAltGr":"§"}}}')},93534:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00010415","id":"0007","text":"Polish (214)"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B","withAltGr":"{"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D","withAltGr":"Đ"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"§"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N","withAltGr":"}"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q","withAltGr":"\\\\"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"đ"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U","withAltGr":"€"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V","withAltGr":"@"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W","withAltGr":"¦"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Z","value":"z","withShift":"Z"},"KeyZ":{"vkey":"VK_Y","value":"y","withShift":"Y"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":"~"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"ˇ"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"^"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"¤","withAltGr":"˘"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"°"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&","withAltGr":"˛"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"`"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"·"},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"´"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"˝"},"Minus":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"?","withAltGr":"¨"},"Equal":{"vkey":"VK_OEM_2","value":"\'","withShift":"*","withAltGr":"¸"},"BracketLeft":{"vkey":"VK_OEM_4","value":"ż","withShift":"ń","withAltGr":"÷"},"BracketRight":{"vkey":"VK_OEM_6","value":"ś","withShift":"ć","withAltGr":"×"},"Backslash":{"vkey":"VK_OEM_5","value":"ó","withShift":"ź"},"Semicolon":{"vkey":"VK_OEM_1","value":"ł","withShift":"Ł","withAltGr":"$"},"Quote":{"vkey":"VK_OEM_7","value":"ą","withShift":"ę","withAltGr":"ß"},"Backquote":{"vkey":"VK_OEM_3","value":"˛","withShift":"·"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";","withAltGr":"<"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":","withAltGr":">"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},84364:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Brazilian","lang":"pt"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"Â"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"fi"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"fl"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"[","withShift":"{","withAltGr":"“","withShiftAltGr":"”"},"BracketRight":{"value":"]","withShift":"}","withAltGr":"‘","withShiftAltGr":"’"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"«","withShiftAltGr":"»"},"Semicolon":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"`","withShift":"~","withAltGr":"`","withShiftAltGr":"`"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},61814:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Portuguese","lang":"pt"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"∫"},"KeyC":{"value":"c","withShift":"C","withAltGr":"©","withShiftAltGr":"©"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"∆"},"KeyE":{"value":"e","withShift":"E","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"ƒ"},"KeyG":{"value":"g","withShift":"G","withAltGr":"˙","withShiftAltGr":"˙"},"KeyH":{"value":"h","withShift":"H","withAltGr":"ˇ","withShiftAltGr":"ˇ"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ı","withShiftAltGr":"˚"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"¯","withShiftAltGr":"¯"},"KeyK":{"value":"k","withShift":"K","withAltGr":"„","withShiftAltGr":"‚"},"KeyL":{"value":"l","withShift":"L","withAltGr":"‘","withShiftAltGr":"’"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"µ"},"KeyN":{"value":"n","withShift":"N","withAltGr":"¬","withShiftAltGr":"¬"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ø","withShiftAltGr":"Ø"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"®"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"ß"},"KeyT":{"value":"t","withShift":"T","withAltGr":"™","withShiftAltGr":"™"},"KeyU":{"value":"u","withShift":"U","withAltGr":"†","withShiftAltGr":"‡"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"√"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"∑"},"KeyX":{"value":"x","withShift":"X","withAltGr":"«","withShiftAltGr":"»"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"¥"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Ω"},"Digit1":{"value":"1","withShift":"!","withAltGr":"","withShiftAltGr":"¡"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"@","withShiftAltGr":"fi"},"Digit3":{"value":"3","withShift":"#","withAltGr":"€","withShiftAltGr":"fl"},"Digit4":{"value":"4","withShift":"$","withAltGr":"£","withShiftAltGr":"¢"},"Digit5":{"value":"5","withShift":"%","withAltGr":"‰","withShiftAltGr":"∞"},"Digit6":{"value":"6","withShift":"&","withAltGr":"¶","withShiftAltGr":"•"},"Digit7":{"value":"7","withShift":"/","withAltGr":"÷","withShiftAltGr":"⁄"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"{"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"}"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≠","withShiftAltGr":"≈"},"Minus":{"value":"\'","withShift":"?","withAltGr":"§","withShiftAltGr":"¿"},"Equal":{"value":"+","withShift":"*","withAltGr":"±","withShiftAltGr":"◊"},"BracketLeft":{"value":"º","withShift":"ª","withAltGr":"°","withShiftAltGr":"˚"},"BracketRight":{"value":"´","withShift":"`","withAltGr":"¨","withShiftAltGr":"˝"},"Backslash":{"value":"\\\\","withShift":"|","withAltGr":"‹","withShiftAltGr":"›"},"Semicolon":{"value":"ç","withShift":"Ç","withAltGr":"¸","withShiftAltGr":"˛"},"Quote":{"value":"~","withShift":"^","withAltGr":"˜","withShiftAltGr":"ˆ"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"“","withShiftAltGr":"”"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"·"},"Slash":{"value":"-","withShift":"_","withAltGr":"—","withShiftAltGr":"–"},"IntlBackslash":{"value":"§","withShift":"±","withAltGr":"§","withShiftAltGr":"±"}}}')},7087:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00000816","id":"","text":"Portuguese"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"§"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_4","value":"\'","withShift":"?"},"Equal":{"vkey":"VK_OEM_6","value":"«","withShift":"»"},"BracketLeft":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"*","withAltGr":"¨"},"BracketRight":{"vkey":"VK_OEM_1","value":"´","withShift":"`","withAltGr":"]"},"Backslash":{"vkey":"VK_OEM_2","value":"~","withShift":"^"},"Semicolon":{"vkey":"VK_OEM_3","value":"ç","withShift":"Ç"},"Quote":{"vkey":"VK_OEM_7","value":"º","withShift":"ª"},"Backquote":{"vkey":"VK_OEM_5","value":"\\\\","withShift":"|"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},4271:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Romanian","lang":"ro"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"å","withShiftAltGr":"Å"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ı"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"`"},"KeyE":{"value":"e","withShift":"E","withAltGr":"´","withShiftAltGr":"´"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"©","withShiftAltGr":"˝"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˙","withShiftAltGr":"Ó"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ˆ","withShiftAltGr":"ˆ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"˚","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"¥"},"KeyN":{"value":"n","withShift":"N","withAltGr":"˜","withShiftAltGr":"˜"},"KeyO":{"value":"o","withShift":"O","withAltGr":"“","withShiftAltGr":"”"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"‰"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Í"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"ˇ"},"KeyU":{"value":"u","withShift":"U","withAltGr":"¨","withShiftAltGr":"¨"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"˛"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"`","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"¸"},"Digit1":{"value":"1","withShift":"!","withAltGr":"¡","withShiftAltGr":"⁄"},"Digit2":{"value":"2","withShift":"@","withAltGr":"™","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"‹"},"Digit4":{"value":"4","withShift":"$","withAltGr":"¢","withShiftAltGr":"›"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"«"},"Digit6":{"value":"6","withShift":"^","withAltGr":"§","withShiftAltGr":"»"},"Digit7":{"value":"7","withShift":"&","withAltGr":"¶","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"*","withAltGr":"•","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":"(","withAltGr":"ª","withShiftAltGr":"·"},"Digit0":{"value":"0","withShift":")","withAltGr":"º","withShiftAltGr":"‚"},"Minus":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"Equal":{"value":"=","withShift":"+","withAltGr":"≠","withShiftAltGr":"±"},"BracketLeft":{"value":"ă","withShift":"Ă","withAltGr":"[","withShiftAltGr":"{"},"BracketRight":{"value":"â","withShift":"Â","withAltGr":"]","withShiftAltGr":"}"},"Backslash":{"value":"ț","withShift":"Ț","withAltGr":"\\\\","withShiftAltGr":"|"},"Semicolon":{"value":";","withShift":":","withAltGr":"…","withShiftAltGr":"Ú"},"Quote":{"value":"\'","withShift":"\\"","withAltGr":"‘","withShiftAltGr":"’"},"Backquote":{"value":"î","withShift":"Î","withAltGr":"ș","withShiftAltGr":"Ș"},"Comma":{"value":",","withShift":"<","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":".","withShift":">","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":"/","withShift":"?","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"ș","withShift":"Ș","withAltGr":"`","withShiftAltGr":"~"}}}')},23476:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"00010418","id":"00a5","text":"Romanian (Standard)"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C","withAltGr":"©"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D","withAltGr":"đ","withShiftAltGr":"Đ"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L","withAltGr":"ł","withShiftAltGr":"Ł"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P","withAltGr":"§"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"ß"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":"~"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"@","withAltGr":"ˇ"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"^"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"$","withAltGr":"˘"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"°"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"^","withAltGr":"˛"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"&","withAltGr":"`"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"*","withAltGr":"˙"},"Digit9":{"vkey":"VK_9","value":"9","withShift":"(","withAltGr":"´"},"Digit0":{"vkey":"VK_0","value":"0","withShift":")","withAltGr":"˝"},"Minus":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_","withAltGr":"¨","withShiftAltGr":"–"},"Equal":{"vkey":"VK_OEM_PLUS","value":"=","withShift":"+","withAltGr":"¸","withShiftAltGr":"±"},"BracketLeft":{"vkey":"VK_OEM_4","value":"ă","withShift":"Ă","withAltGr":"[","withShiftAltGr":"{"},"BracketRight":{"vkey":"VK_OEM_6","value":"î","withShift":"Î","withAltGr":"]","withShiftAltGr":"}"},"Backslash":{"vkey":"VK_OEM_5","value":"â","withShift":"Â","withAltGr":"\\\\","withShiftAltGr":"|"},"Semicolon":{"vkey":"VK_OEM_1","value":"ș","withShift":"Ș","withAltGr":";","withShiftAltGr":":"},"Quote":{"vkey":"VK_OEM_7","value":"ț","withShift":"Ț","withAltGr":"\'","withShiftAltGr":"\\""},"Backquote":{"vkey":"VK_OEM_3","value":"„","withShift":"”","withAltGr":"`","withShiftAltGr":"~"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";","withAltGr":"<","withShiftAltGr":"«"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":","withAltGr":">","withShiftAltGr":"»"},"Slash":{"vkey":"VK_OEM_2","value":"/","withShift":"?"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"\\\\","withShift":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},4763:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Swedish","lang":"sv"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"","withShiftAltGr":"◊"},"KeyB":{"value":"b","withShift":"B","withAltGr":"›","withShiftAltGr":"»"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"∆"},"KeyE":{"value":"e","withShift":"E","withAltGr":"é","withShiftAltGr":"É"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"∫"},"KeyG":{"value":"g","withShift":"G","withAltGr":"¸","withShiftAltGr":"¯"},"KeyH":{"value":"h","withShift":"H","withAltGr":"˛","withShiftAltGr":"˘"},"KeyI":{"value":"i","withShift":"I","withAltGr":"ı","withShiftAltGr":"ˆ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"√","withShiftAltGr":"¬"},"KeyK":{"value":"k","withShift":"K","withAltGr":"ª","withShiftAltGr":"º"},"KeyL":{"value":"l","withShift":"L","withAltGr":"fi","withShiftAltGr":"fl"},"KeyM":{"value":"m","withShift":"M","withAltGr":"’","withShiftAltGr":"”"},"KeyN":{"value":"n","withShift":"N","withAltGr":"‘","withShiftAltGr":"“"},"KeyO":{"value":"o","withShift":"O","withAltGr":"œ","withShiftAltGr":"Œ"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"•","withShiftAltGr":"°"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"√"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"∑"},"KeyT":{"value":"t","withShift":"T","withAltGr":"†","withShiftAltGr":"‡"},"KeyU":{"value":"u","withShift":"U","withAltGr":"ü","withShiftAltGr":"Ü"},"KeyV":{"value":"v","withShift":"V","withAltGr":"‹","withShiftAltGr":"«"},"KeyW":{"value":"w","withShift":"W","withAltGr":"Ω","withShiftAltGr":"˝"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"ˇ"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"µ","withShiftAltGr":"˜"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"÷","withShiftAltGr":"⁄"},"Digit1":{"value":"1","withShift":"!","withAltGr":"©","withShiftAltGr":"¡"},"Digit2":{"value":"2","withShift":"\\"","withAltGr":"™","withShiftAltGr":"”"},"Digit3":{"value":"3","withShift":"#","withAltGr":"£","withShiftAltGr":"¥"},"Digit4":{"value":"4","withShift":"€","withAltGr":"$","withShiftAltGr":"¢"},"Digit5":{"value":"5","withShift":"%","withAltGr":"∞","withShiftAltGr":"‰"},"Digit6":{"value":"6","withShift":"&","withAltGr":"§","withShiftAltGr":"¶"},"Digit7":{"value":"7","withShift":"/","withAltGr":"|","withShiftAltGr":"\\\\"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"{"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"}"},"Digit0":{"value":"0","withShift":"=","withAltGr":"≈","withShiftAltGr":"≠"},"Minus":{"value":"+","withShift":"?","withAltGr":"±","withShiftAltGr":"¿"},"Equal":{"value":"´","withShift":"`","withAltGr":"´","withShiftAltGr":"`"},"BracketLeft":{"value":"å","withShift":"Å","withAltGr":"˙","withShiftAltGr":"˚"},"BracketRight":{"value":"¨","withShift":"^","withAltGr":"~","withShiftAltGr":"^"},"Backslash":{"value":"\'","withShift":"*","withAltGr":"@","withShiftAltGr":"’"},"Semicolon":{"value":"ö","withShift":"Ö","withAltGr":"ø","withShiftAltGr":"Ø"},"Quote":{"value":"ä","withShift":"Ä","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"<","withShift":">","withAltGr":"≤","withShiftAltGr":"≥"},"Comma":{"value":",","withShift":";","withAltGr":"‚","withShiftAltGr":"„"},"Period":{"value":".","withShift":":","withAltGr":"…","withShiftAltGr":"·"},"Slash":{"value":"-","withShift":"_","withAltGr":"–","withShiftAltGr":"—"},"IntlBackslash":{"value":"§","withShift":"°","withAltGr":"¶","withShiftAltGr":"•"}}}')},63039:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000041D","id":"","text":"Swedish"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"i","withShift":"I"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M","withAltGr":"µ"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\\"","withAltGr":"@"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"#","withAltGr":"£"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"¤","withAltGr":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"€"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_PLUS","value":"+","withShift":"?","withAltGr":"\\\\"},"Equal":{"vkey":"VK_OEM_4","value":"´","withShift":"`"},"BracketLeft":{"vkey":"VK_OEM_6","value":"å","withShift":"Å"},"BracketRight":{"vkey":"VK_OEM_1","value":"¨","withShift":"^","withAltGr":"~"},"Backslash":{"vkey":"VK_OEM_2","value":"\'","withShift":"*"},"Semicolon":{"vkey":"VK_OEM_3","value":"ö","withShift":"Ö"},"Quote":{"vkey":"VK_OEM_7","value":"ä","withShift":"Ä"},"Backquote":{"vkey":"VK_OEM_5","value":"§","withShift":"½"},"Comma":{"vkey":"VK_OEM_COMMA","value":",","withShift":";"},"Period":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"Slash":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},86568:e=>{"use strict";e.exports=JSON.parse('{"info":{"id":"com.apple.keylayout.Turkish-QWERTY-PC","lang":"tr"},"mapping":{"KeyA":{"value":"a","withShift":"A","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyB":{"value":"b","withShift":"B","withAltGr":"∫","withShiftAltGr":"ß"},"KeyC":{"value":"c","withShift":"C","withAltGr":"ç","withShiftAltGr":"Ç"},"KeyD":{"value":"d","withShift":"D","withAltGr":"∂","withShiftAltGr":"Î"},"KeyE":{"value":"e","withShift":"E","withAltGr":"€","withShiftAltGr":"‰"},"KeyF":{"value":"f","withShift":"F","withAltGr":"ƒ","withShiftAltGr":"Ï"},"KeyG":{"value":"g","withShift":"G","withAltGr":"ğ","withShiftAltGr":"Ğ"},"KeyH":{"value":"h","withShift":"H","withAltGr":"^","withShiftAltGr":"Ó"},"KeyI":{"value":"ı","withShift":"I","withAltGr":"i","withShiftAltGr":"İ"},"KeyJ":{"value":"j","withShift":"J","withAltGr":"∆","withShiftAltGr":"Ô"},"KeyK":{"value":"k","withShift":"K","withAltGr":"¨","withShiftAltGr":""},"KeyL":{"value":"l","withShift":"L","withAltGr":"¬","withShiftAltGr":"Ò"},"KeyM":{"value":"m","withShift":"M","withAltGr":"µ","withShiftAltGr":"˜"},"KeyN":{"value":"n","withShift":"N","withAltGr":"~","withShiftAltGr":"ˆ"},"KeyO":{"value":"o","withShift":"O","withAltGr":"ö","withShiftAltGr":"Ö"},"KeyP":{"value":"p","withShift":"P","withAltGr":"π","withShiftAltGr":"∏"},"KeyQ":{"value":"q","withShift":"Q","withAltGr":"@","withShiftAltGr":"Œ"},"KeyR":{"value":"r","withShift":"R","withAltGr":"®","withShiftAltGr":"Â"},"KeyS":{"value":"s","withShift":"S","withAltGr":"ß","withShiftAltGr":"Ş"},"KeyT":{"value":"t","withShift":"T","withAltGr":"₺","withShiftAltGr":"Ê"},"KeyU":{"value":"u","withShift":"U","withAltGr":"ü","withShiftAltGr":"Ü"},"KeyV":{"value":"v","withShift":"V","withAltGr":"√","withShiftAltGr":"◊"},"KeyW":{"value":"w","withShift":"W","withAltGr":"∑","withShiftAltGr":"„"},"KeyX":{"value":"x","withShift":"X","withAltGr":"≈","withShiftAltGr":"Ù"},"KeyY":{"value":"y","withShift":"Y","withAltGr":"¥","withShiftAltGr":"Á"},"KeyZ":{"value":"z","withShift":"Z","withAltGr":"Ω","withShiftAltGr":"Û"},"Digit1":{"value":"1","withShift":"!","withAltGr":">","withShiftAltGr":"·"},"Digit2":{"value":"2","withShift":"\'","withAltGr":"£","withShiftAltGr":"€"},"Digit3":{"value":"3","withShift":"^","withAltGr":"#","withShiftAltGr":"©"},"Digit4":{"value":"4","withShift":"+","withAltGr":"$","withShiftAltGr":"‚"},"Digit5":{"value":"5","withShift":"%","withAltGr":"½","withShiftAltGr":"˚"},"Digit6":{"value":"6","withShift":"&","withAltGr":"§","withShiftAltGr":"˙"},"Digit7":{"value":"7","withShift":"/","withAltGr":"{","withShiftAltGr":"‡"},"Digit8":{"value":"8","withShift":"(","withAltGr":"[","withShiftAltGr":"°"},"Digit9":{"value":"9","withShift":")","withAltGr":"]","withShiftAltGr":"Ø"},"Digit0":{"value":"0","withShift":"=","withAltGr":"}","withShiftAltGr":"ø"},"Minus":{"value":"*","withShift":"?","withAltGr":"\\\\","withShiftAltGr":"—"},"Equal":{"value":"-","withShift":"_","withAltGr":"|","withShiftAltGr":"±"},"BracketLeft":{"value":"ğ","withShift":"Ğ","withAltGr":"¨","withShiftAltGr":"”"},"BracketRight":{"value":"ü","withShift":"Ü","withAltGr":"~","withShiftAltGr":"’"},"Backslash":{"value":",","withShift":";","withAltGr":"`","withShiftAltGr":"»"},"Semicolon":{"value":"ş","withShift":"Ş","withAltGr":"´","withShiftAltGr":"Ú"},"Quote":{"value":"i","withShift":"İ","withAltGr":"æ","withShiftAltGr":"Æ"},"Backquote":{"value":"<","withShift":">","withAltGr":"|","withShiftAltGr":"Ÿ"},"Comma":{"value":"ö","withShift":"Ö","withAltGr":"≤","withShiftAltGr":"¯"},"Period":{"value":"ç","withShift":"Ç","withAltGr":"≥","withShiftAltGr":"˘"},"Slash":{"value":".","withShift":":","withAltGr":"÷","withShiftAltGr":"¿"},"IntlBackslash":{"value":"\\"","withShift":"é","withAltGr":"<"}}}')},80419:e=>{"use strict";e.exports=JSON.parse('{"info":{"name":"0000041F","id":"","text":"Turkish Q"},"mapping":{"KeyA":{"vkey":"VK_A","value":"a","withShift":"A","withAltGr":"æ","withShiftAltGr":"Æ"},"KeyB":{"vkey":"VK_B","value":"b","withShift":"B"},"KeyC":{"vkey":"VK_C","value":"c","withShift":"C"},"KeyD":{"vkey":"VK_D","value":"d","withShift":"D"},"KeyE":{"vkey":"VK_E","value":"e","withShift":"E","withAltGr":"€"},"KeyF":{"vkey":"VK_F","value":"f","withShift":"F"},"KeyG":{"vkey":"VK_G","value":"g","withShift":"G"},"KeyH":{"vkey":"VK_H","value":"h","withShift":"H"},"KeyI":{"vkey":"VK_I","value":"ı","withShift":"I","withAltGr":"i","withShiftAltGr":"İ"},"KeyJ":{"vkey":"VK_J","value":"j","withShift":"J"},"KeyK":{"vkey":"VK_K","value":"k","withShift":"K"},"KeyL":{"vkey":"VK_L","value":"l","withShift":"L"},"KeyM":{"vkey":"VK_M","value":"m","withShift":"M"},"KeyN":{"vkey":"VK_N","value":"n","withShift":"N"},"KeyO":{"vkey":"VK_O","value":"o","withShift":"O"},"KeyP":{"vkey":"VK_P","value":"p","withShift":"P"},"KeyQ":{"vkey":"VK_Q","value":"q","withShift":"Q","withAltGr":"@"},"KeyR":{"vkey":"VK_R","value":"r","withShift":"R"},"KeyS":{"vkey":"VK_S","value":"s","withShift":"S","withAltGr":"ß"},"KeyT":{"vkey":"VK_T","value":"t","withShift":"T","withAltGr":"₺"},"KeyU":{"vkey":"VK_U","value":"u","withShift":"U"},"KeyV":{"vkey":"VK_V","value":"v","withShift":"V"},"KeyW":{"vkey":"VK_W","value":"w","withShift":"W"},"KeyX":{"vkey":"VK_X","value":"x","withShift":"X"},"KeyY":{"vkey":"VK_Y","value":"y","withShift":"Y"},"KeyZ":{"vkey":"VK_Z","value":"z","withShift":"Z"},"Digit1":{"vkey":"VK_1","value":"1","withShift":"!","withAltGr":">"},"Digit2":{"vkey":"VK_2","value":"2","withShift":"\'","withAltGr":"£"},"Digit3":{"vkey":"VK_3","value":"3","withShift":"^","withAltGr":"#"},"Digit4":{"vkey":"VK_4","value":"4","withShift":"+","withAltGr":"$"},"Digit5":{"vkey":"VK_5","value":"5","withShift":"%","withAltGr":"½"},"Digit6":{"vkey":"VK_6","value":"6","withShift":"&"},"Digit7":{"vkey":"VK_7","value":"7","withShift":"/","withAltGr":"{"},"Digit8":{"vkey":"VK_8","value":"8","withShift":"(","withAltGr":"["},"Digit9":{"vkey":"VK_9","value":"9","withShift":")","withAltGr":"]"},"Digit0":{"vkey":"VK_0","value":"0","withShift":"=","withAltGr":"}"},"Minus":{"vkey":"VK_OEM_8","value":"*","withShift":"?","withAltGr":"\\\\"},"Equal":{"vkey":"VK_OEM_MINUS","value":"-","withShift":"_","withAltGr":"|"},"BracketLeft":{"vkey":"VK_OEM_4","value":"ğ","withShift":"Ğ","withAltGr":"¨"},"BracketRight":{"vkey":"VK_OEM_6","value":"ü","withShift":"Ü","withAltGr":"~"},"Backslash":{"vkey":"VK_OEM_COMMA","value":",","withShift":";","withAltGr":"`"},"Semicolon":{"vkey":"VK_OEM_1","value":"ş","withShift":"Ş","withAltGr":"´"},"Quote":{"vkey":"VK_OEM_7","value":"i","withShift":"İ"},"Backquote":{"vkey":"VK_OEM_3","value":"\\"","withShift":"é","withAltGr":"<"},"Comma":{"vkey":"VK_OEM_2","value":"ö","withShift":"Ö"},"Period":{"vkey":"VK_OEM_5","value":"ç","withShift":"Ç"},"Slash":{"vkey":"VK_OEM_PERIOD","value":".","withShift":":"},"IntlBackslash":{"vkey":"VK_OEM_102","value":"<","withShift":">","withAltGr":"|"},"IntlRo":{"vkey":"VK_ABNT_C1"},"IntlYen":{"vkey":"VK_UNKNOWN"}}}')},33491:(e,t,i)=>{var r={"./cs-Czech-mac.json":45827,"./cs-Czech-pc.json":54758,"./da-Danish-mac.json":59026,"./da-Danish-pc.json":94735,"./de-German-mac.json":48545,"./de-German-pc.json":5986,"./de-Swiss_German-mac.json":75640,"./de-Swiss_German-pc.json":78937,"./en-British-mac.json":44479,"./en-British-pc.json":61324,"./en-Colemak-mac.json":36096,"./en-Dvorak-mac.json":54546,"./en-Dvorak-pc.json":78550,"./en-Dvorak_Lefthanded-mac.json":60066,"./en-Dvorak_Lefthanded-pc.json":63164,"./en-Dvorak_Righthanded-mac.json":63415,"./en-Dvorak_Righthanded-pc.json":40719,"./en-US-mac.json":56054,"./en-US-pc.json":42746,"./es-Spanish-mac.json":91423,"./es-Spanish-pc.json":43976,"./fr-Canadian_French-mac.json":86662,"./fr-Canadian_French-pc.json":50492,"./fr-French-mac.json":64389,"./fr-French-pc.json":32715,"./fr-Swiss_French-mac.json":56582,"./fr-Swiss_French-pc.json":34288,"./hu-Hungarian-mac.json":77449,"./hu-Hungarian-pc.json":38918,"./it-Italian-mac.json":70108,"./it-Italian-pc.json":86898,"./nb-Norwegian-mac.json":45109,"./nb-Norwegian-pc.json":42509,"./nl-Dutch-mac.json":83e3,"./nl-Dutch-pc.json":69086,"./pl-Polish-mac.json":91783,"./pl-Polish-pc.json":93534,"./pt-Brazilian-mac.json":84364,"./pt-Portuguese-mac.json":61814,"./pt-Portuguese-pc.json":7087,"./ro-Romanian-mac.json":4271,"./ro-Romanian-pc.json":23476,"./sv-Swedish-mac.json":4763,"./sv-Swedish-pc.json":63039,"./tr-Turkish_Q-mac.json":86568,"./tr-Turkish_Q-pc.json":80419};function n(e){var t=o(e);return i(t)}function o(e){if(!i.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id=33491},8380:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(43849);t.TabBarToolbarContribution=Symbol("TabBarToolbarContribution");let s=class{registerItem(e){if("string"==typeof e.command){const t=e.tooltip||e.label;t&&(e.command={id:e.command,label:t})}return this.menuRegistry.registerMenuItem(o.MenuId.ViewTitle,Object.assign(Object.assign({},e),{when:`${e.when?e.when+" && ":""}view == ${e.viewId}`,group:e.group||"navigation"}))}};r.__decorate([n.Autowired(o.IMenuRegistry),r.__metadata("design:type",o.IMenuRegistry)],s.prototype,"menuRegistry",void 0),s=r.__decorate([n.Injectable()],s),t.ToolbarRegistry=s},41338:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(22188),o=i(19745),s=i(65686);let a=class extends s.Disposable{constructor(){super(),this.viewStateMap=new Map}updateSize(e,t=0,i=0){const r=this.viewStateMap.get(e);r?(t&&(r.height=t),i&&(r.width=i)):this.viewStateMap.set(e,{width:i,height:t})}getState(e){const t=this.viewStateMap.get(e);return t||(this.viewStateMap.set(e,{width:0,height:0}),this.viewStateMap.get(e))}removeState(e){this.viewStateMap.delete(e)}};r.__decorate([n.observable,r.__metadata("design:type",Map)],a.prototype,"viewStateMap",void 0),a=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],a),t.ViewUiStateManager=a},4525:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);let s=class{constructor(){this.contextKeyMap=new Map,this._onViewContextKeyServiceRegistered=new o.Emitter}getContextKeyService(e){return this.contextKeyMap.get(e)}registerContextKeyService(e,t){return this.contextKeyMap.set(e,t),this._onViewContextKeyServiceRegistered.fire(e),t}afterContextKeyServiceRegistered(e,t){if(this.contextKeyMap.has(e))t(this.getContextKeyService(e));else{const i=this._onViewContextKeyServiceRegistered.event((r=>{r===e&&(i.dispose(),t(this.getContextKeyService(e)))}))}}};s=r.__decorate([n.Injectable()],s),t.ViewContextKeyRegistry=s},8308:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(60157),o=i(19745),s=i(65686);t.VisibleChangedPayload=class{constructor(e,t){this.isVisible=e,this.slotLocation=t}};class a extends s.BasicEvent{}t.VisibleChangedEvent=a,t.measurePriority=function(e,t){if(!e.length)return e.splice(0,0,t||0),0;let i=e.length-1;if(!t)return e.splice(i+1,0,0),i+1;for(;i>=0&&!(t-1)return void s.getDebugLogger().warn(`${r}位置已存在${e}模块`);t.modules.push(e)}}getComponentRegistryInfo(e){return this.componentsMap.get(e)}};r.__decorate([o.Autowired(n.AppConfig),r.__metadata("design:type",Object)],c.prototype,"config",void 0),c=r.__decorate([o.Injectable()],c),t.ComponentRegistryImpl=c,t.ComponentContribution=Symbol("ComponentContribution");t.ResizePayload=class{constructor(e){this.slotLocation=e}};class l extends s.BasicEvent{}t.ResizeEvent=l;class u extends s.BasicEvent{}t.RenderedEvent=u,r.__exportStar(i(4525),t),r.__exportStar(i(41338),t),r.__exportStar(i(8380),t)},34260:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(91296),a=i(83880);let c=class{constructor(){this.disposableCollection=new o.DisposableCollection,this.debounceSave=s(((e,t)=>{this.saveLayoutWithWorkspace?l.isScoped(e)||l.isLayout(e)?this.layoutStorage.set(e,t):this.globalLayoutStorage.set(e,t):l.isScoped(e)?this.layoutStorage.set(e,t):this.globalLayoutStorage.set(e,t)}),60)}async initStorage(){this.layoutStorage=await this.getStorage(o.STORAGE_NAMESPACE.LAYOUT),this.globalLayoutStorage=await this.getStorage(o.STORAGE_NAMESPACE.GLOBAL_LAYOUT),await this.preferenceService.ready,this.saveLayoutWithWorkspace=this.preferenceService.get("view.saveLayoutWithWorkspace")||!1,this.disposableCollection.push(this.preferenceService.onPreferenceChanged((e=>{"view.saveLayoutWithWorkspace"===e.preferenceName&&(this.saveLayoutWithWorkspace=e.newValue)})))}getState(e,t){let i;try{i=this.saveLayoutWithWorkspace?l.isScoped(e)||l.isLayout(e)?this.layoutStorage.get(e,t):this.globalLayoutStorage.get(e,t):l.isScoped(e)?this.layoutStorage.get(e,t):this.globalLayoutStorage.get(e,t)}catch(e){this.logger.warn("Layout state parse 出错,使用默认 state"),i=t}return i}setState(e,t){this.debounceSave(e,t)}};var l;r.__decorate([n.Autowired(o.StorageProvider),r.__metadata("design:type",Function)],c.prototype,"getStorage",void 0),r.__decorate([n.Autowired(a.PreferenceService),r.__metadata("design:type",Object)],c.prototype,"preferenceService",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],c.prototype,"logger",void 0),c=r.__decorate([n.Injectable()],c),t.LayoutState=c,function(e){e.MAIN="layout",e.getContainerSpace=function(e){return`view/${e}`},e.isScoped=function(e){return e.startsWith("view/")},e.isLayout=function(t){return t.startsWith(e.MAIN)},e.getTabbarSpace=function(e){return`tabbar/${e}`}}(l=t.LAYOUT_STATE||(t.LAYOUT_STATE={}))},74122:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);var s=i(65686);t.ILogger=s.ILogger;let a=class{constructor(){this.logger=this.LoggerManager.getLogger(o.SupportLogNamespace.Browser)}getLevel(){return this.getLevel()}setLevel(e){return this.logger.setLevel(e)}error(...e){return this.logger.error(...e)}warn(...e){return this.logger.warn(...e)}log(...e){return this.logger.log(...e)}debug(...e){return this.logger.debug(...e)}verbose(...e){return this.logger.verbose(...e)}critical(...e){return this.logger.critical(...e)}dispose(){return this.logger.dispose()}};r.__decorate([n.Autowired(o.ILoggerManagerClient),r.__metadata("design:type",Object)],a.prototype,"LoggerManager",void 0),a=r.__decorate([n.Injectable()],a),t.Logger=a},10633:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(74122),t)},86617:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686),a=i(65579),c=i(59864),l=i(15194);t.MenuContribution=Symbol("MenuContribution"),t.NextMenuContribution=t.MenuContribution;t.IMenuRegistry=class{};let u=r=class{constructor(){this._menubarItems=new Map,this._onDidChangeMenubar=new s.Emitter,this.onDidChangeMenubar=this._onDidChangeMenubar.event,this._menuItems=new Map,this._onDidChangeMenu=new s.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._disabledMenuIds=new Set}registerMenubarItem(e,t){const i=Object.assign(Object.assign({},t),{id:e});return this._menubarItems.get(e)?(this.logger.warn(`this menuId ${e} already existed`),s.Disposable.NULL):(this._menubarItems.set(e,i),this._onDidChangeMenubar.fire(e),{dispose:()=>{this.removeMenubarItem(e)}})}removeMenubarItem(e){this._menubarItems.get(e)&&(this._menubarItems.delete(e),this._onDidChangeMenubar.fire(e))}getMenubarItem(e){return this._menubarItems.get(e)}getMenubarItems(){return Array.from(this._menubarItems.keys()).reduce(((e,t)=>{const i=this._menubarItems.get(t);return i&&e.push(i),e}),[])}registerMenuItem(e,t){let i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:()=>{const r=i.indexOf(t);r>=0&&(i.splice(r,1),this._onDidChangeMenu.fire(e))}}}registerMenuItems(e,t){const i=[];return t.forEach((t=>{i.push(this.registerMenuItem(e,t))})),s.combinedDisposable(i)}unregisterMenuId(e){return this._disabledMenuIds.add(e),this._onDidChangeMenu.fire(e),{dispose:()=>{this._disabledMenuIds.delete(e)&&this._onDidChangeMenu.fire(e)}}}getMenuItems(e){if(this._disabledMenuIds.has(e))return[];const t=(this._menuItems.get(e)||[]).slice(0).reduce(((t,i)=>(p(i)?r.EnableComponentMenuIds.includes(e)&&t.push(Object.assign(Object.assign({},i),{group:"navigation"})):t.push(i),t)),[]);return e===l.MenuId.CommandPalette&&this.appendImplicitMenuItems(t),t}getMenuCommand(e){return"string"==typeof e?{id:e}:e}appendImplicitMenuItems(e){const t=e.filter((e=>h(e))),i=new Set(t.map((e=>this.getMenuCommand(e.command).id)));this.commandRegistry.getCommands().forEach((t=>{i.has(t.id)||e.push({command:t.id})}))}};u.EnableComponentMenuIds=[l.MenuId.EditorTitle],n.__decorate([o.Autowired(t.MenuContribution),n.__metadata("design:type",Object)],u.prototype,"contributions",void 0),n.__decorate([o.Autowired(s.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),u=r=n.__decorate([o.Injectable()],u),t.CoreMenuRegistryImpl=u;let d=class extends u{onStart(){for(const e of this.contributions.getContributions())e.registerNextMenus&&(e.registerNextMenus(this),a.warning(!1,"`registerNextMenus` was deprecated in favor of `registerMenus`")),e.registerMenus&&e.registerMenus(this)}};function h(e){return void 0!==e.command}function p(e){return c.isValidElementType(e.component)}n.__decorate([o.Autowired(t.MenuContribution),n.__metadata("design:type",Object)],d.prototype,"contributions",void 0),d=n.__decorate([o.Injectable()],d),t.MenuRegistryImpl=d,t.isIMenuItem=h,t.isISubmenuItem=function(e){return void 0!==e.submenu},t.isIComponentMenuItem=p;t.MenuNode=class{constructor(e){this.id=e.id,this.label=s.replaceLocalizePlaceholder(e.label),this.className=e.className||"",this.icon=e.icon||"",this.keybinding=e.keybinding||"",this.rawKeybinding=e.rawKeybinding||"",this.isKeyCombination=Boolean(e.isKeyCombination),this.disabled=Boolean(e.disabled),this.checked=Boolean(e.checked),this.nativeRole=e.nativeRole||"",this.type=e.type,this._actionCallback=e.execute}getExecuteArgs(...e){return e}execute(...e){const t=this.getExecuteArgs(e);return this._actionCallback?this._actionCallback(...t):Promise.resolve(!0)}}},94154:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(38384),o=i(1236),s=i(19745),a=i(46617),c=i(58677);let l=class{createMenu(e){return this.injector.get(u,[e])}};r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],l.prototype,"injector",void 0),l=r.__decorate([s.Injectable()],l),t.ContextMenuServiceImpl=l;let u=class extends n.Disposable{constructor(e){super(),this._onDidMenuChange=new o.Emitter,this._onMenuChange=new o.Emitter,this._menus=new Map,this._menuItems=[[],[]],this._menusListener=new Map,this._menuId=e.id,e.config&&(this.config=e.config),e.contextKeyService&&(this.contextKeyService=e.contextKeyService),this._build(),this.addDispose(o.Event.debounce(o.Event.filter(this.onMenuChange,(e=>e===this._menuId)),(()=>{}),50)(this._rebuildMenus,this)),this.addDispose(this._onDidMenuChange)}get onDidChange(){return this._onDidMenuChange.event}get onMenuChange(){return this._onMenuChange.event}get menuId(){return this._menuId}_build(){this._menuItems=[[],[]],this._buildMenus(this._menuId)}_rebuildMenus(){this._buildMenus(this._menuId),this._onDidMenuChange.fire(this._menuId)}_buildMenus(e){const t=this.menuService.createMenu(e,this.contextKeyService),i=this._menus.get(e);i&&(i.dispose(),this._menus.delete(e));const r=this._menusListener.get(e);r&&(r.dispose(),this._menusListener.delete(e)),this._menus.set(e,t),this._menusListener.set(e,t.onDidChange((()=>this._onMenuChange.fire(e)),this,this.disposables));const n=[[],[]];a.generateCtxMenu(Object.assign({menus:t},this.config)).forEach(((t,i)=>{this._traverseMenuItems(t,n[i],e)})),this._menuItems=n}_traverseMenuItems(e,t,i){e.forEach((e=>{if(e instanceof c.SubmenuItemNode){const r=[],n=e.item.submenu;if(!this._menus.has(n)){const e=this.registerDispose(this.menuService.createMenu(n,this.contextKeyService));this._menus.set(n,e),this.registerDispose(e.onDidChange((()=>{this._onMenuChange.fire(i)})))}const o=this.menuService.createMenu(n,this.contextKeyService),s=a.generateMergedCtxMenu(Object.assign({menus:o},this.config));this._traverseMenuItems(s,r,i),e.children=r,t.push(e),o.dispose()}else t.push(e)}))}dispose(){this._menusListener.forEach((e=>e.dispose())),this._menusListener.clear(),this._menus.forEach((e=>e.dispose())),this._menus.clear(),super.dispose()}getMergedMenuNodes(){return a.mergeTupleMenuNodeResult(this._menuItems)}getGroupedMenuNodes(){return this._menuItems}};r.__decorate([s.Autowired(c.AbstractMenuService),r.__metadata("design:type",c.AbstractMenuService)],u.prototype,"menuService",void 0),u=r.__decorate([s.Injectable(),r.__param(0,s.Optional()),r.__metadata("design:paramtypes",[Object])],u),t.ContextMenu=u},43849:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(86617),t),r.__exportStar(i(51846),t),r.__exportStar(i(46617),t),r.__exportStar(i(15194),t),r.__exportStar(i(58677),t),r.__exportStar(i(98071),t),r.__exportStar(i(64809),t),r.__exportStar(i(94154),t),r.__exportStar(i(23524),t)},15194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AccountsContext="accounts/context",e.ActivityBarContext="activityBar/context",e.ActivityBarExtra="activityBar/extra",e.CommandPalette="commandPalette",e.DebugBreakpointsContext="debug/breakpoints/context",e.DebugCallStackContext="debug/callstack/context",e.DebugConsoleContext="debug/console/context",e.DebugVariablesContext="debug/variables/context",e.DebugWatchContext="debug/watch/context",e.DebugToolBar="debug/toolbar",e.EditorContext="editor/context",e.EditorTitle="editor/title",e.EditorTitleContext="editor/title/context",e.EmptyEditorGroupContext="empty/editor/group/context",e.ExplorerContext="explorer/context",e.MenubarAppearanceMenu="menubar/appearance",e.MenubarAppMenu="menubar/app",e.MenubarDebugMenu="menubar/debug",e.MenubarEditMenu="menubar/edit",e.MenubarFileMenu="menubar/file/menu",e.MenubarGoMenu="menubar/go",e.MenubarHelpMenu="menubar/help",e.MenubarLayoutMenu="menubar/layout",e.MenubarNewBreakpointMenu="menubar/new/breakpoint",e.MenubarPreferencesMenu="menubar/preferences",e.MenubarRecentMenu="menubar/recent",e.MenubarSelectionMenu="menubar/selection",e.MenubarSwitchEditorMenu="menubar/switch/editor",e.MenubarSwitchGroupMenu="menubar/switch/group",e.MenubarTerminalMenu="menubar/terminal",e.MenubarViewMenu="menubar/view",e.OpenEditorsContext="open/editors/context",e.ProblemsPanelContext="problems/panel/context",e.SCMChangeTitle="scm/change/title",e.SCMResourceContext="scm/resourceState/context",e.SCMResourceGroupContext="scm/resourceGroup/context",e.SCMSourceControl="scm/sourceControl",e.SCMTitle="scm/title",e.SCMInput="scm/input",e.SearchContext="search/context",e.StatusBarWindowIndicatorMenu="statusbar/windowIndicator",e.TouchBarContext="touchBar/context",e.ViewItemContext="view/item/context",e.ViewTitle="view/title",e.GlobalActivity="global/activity",e.ExtensionContext="extension/context",e.SettingsIconMenu="settings/icon/menu",e.CommentsCommentThreadContext="comments/commentThread/context",e.CommentsCommentThreadTitle="comments/commentThread/title",e.CommentsCommentTitle="comments/comment/title",e.CommentsCommentContext="comments/comment/context",e.KTToolbarLocationContext="kt/toolbar/context",e.MarketplaceNoResultsContext="marketplace/noResults/context"}(t.MenuId||(t.MenuId={})),t.getTabbarCommonMenuId=function(e){return`tabbar/${e}/common`}},51846:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(81395),a=i(86617),c=i(58677);let l=class{createMenu(e,t){return this.injector.get(u,[e,t||this.globalCtxKeyService])}};r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],l.prototype,"injector",void 0),r.__decorate([o.Autowired(s.IContextKeyService),r.__metadata("design:type",Object)],l.prototype,"globalCtxKeyService",void 0),l=r.__decorate([o.Injectable()],l),t.MenuServiceImpl=l;let u=class extends n.Disposable{constructor(e,t){super(),this.id=e,this.contextKeyService=t,this._onDidChange=new n.Emitter,this._build(),this.addDispose(n.Event.debounce(n.Event.filter(this.menuRegistry.onDidChangeMenu,(e=>e===this.id)),(()=>{}),50)(this._build,this)),this.addDispose(n.Event.debounce(this.contextKeyService.onDidChangeContext,((e,t)=>e||t.payload.affectsSome(this._contextKeys)),50)((e=>e&&this._onDidChange.fire(void 0)),this)),this.addDispose(this._onDidChange)}get onDidChange(){return this._onDidChange.event}get menuId(){return this.id}_build(){this._menuGroups=[],this._contextKeys=new Set;let e,t=this.menuRegistry.getMenuItems(this.id);t=t.sort(d);for(const i of t){const t=i.group||"";e&&e[0]===t||(e=[t,[]],this._menuGroups.push(e)),e[1].push(i),this.fillKeysInWhenExpr(this._contextKeys,i.when),a.isIMenuItem(i)&&this.fillKeysInWhenExpr(this._contextKeys,i.toggledWhen),a.isIMenuItem(i)&&i.enabledWhen&&this.fillKeysInWhenExpr(this._contextKeys,i.enabledWhen)}this._onDidChange.fire(this)}getMenuNodes(e={}){const t=[];for(const i of this._menuGroups){const[r,n]=i,o=[];for(const t of n){const i=this._getActiveAction(t,e);i&&o.push(i)}o.length>0&&t.push([r,o])}return t}_getActiveAction(e,t){if(this.contextKeyService.match(e.when,t.contextDom)){if(a.isIMenuItem(e)){const{args:i=[]}=t,r=this.menuRegistry.getMenuCommand(e.command),n=this.commandRegistry.getCommand(r.id),o=Object.assign(Object.assign({},n||{}),r);if(!o.label)return;if(n&&!this.commandRegistry.isVisible(o.id,...i))return;const s=!n||this.commandRegistry.isEnabled(o.id,...i),a=void 0!==e.enabledWhen?!this.contextKeyService.match(e.enabledWhen,t.contextDom):!s,l=Boolean(n&&this.commandRegistry.isToggled(o.id,...i)),u=void 0!==e.toggledWhen?this.contextKeyService.match(e.toggledWhen,t.contextDom):l;return this.injector.get(c.MenuItemNode,[o,e.iconClass||(null==n?void 0:n.iconClass),t,a,u,e.type,e.nativeRole,e.extraTailArgs,e.argsTransformer])}if(a.isIComponentMenuItem(e)){return this.injector.get(c.ComponentMenuItemNode,[e,t,e.extraTailArgs,e.argsTransformer])}if(e.label){return this.injector.get(c.SubmenuItemNode,[e])}}}fillKeysInWhenExpr(e,t){this.contextKeyService.getKeysInWhen(t).forEach((t=>{e.add(t)}))}};function d(e,t){const i=e.group,r=t.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;const e=i.localeCompare(r);if(0!==e)return e}const n=e.order||0,o=t.order||0;return no?1:0}r.__decorate([o.Autowired(a.IMenuRegistry),r.__metadata("design:type",a.IMenuRegistry)],u.prototype,"menuRegistry",void 0),r.__decorate([o.Autowired(n.CommandRegistry),r.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],u.prototype,"injector",void 0),u=r.__decorate([o.Injectable(),r.__param(0,o.Optional()),r.__param(1,o.Optional()),r.__metadata("design:paramtypes",[String,Object])],u)},46617:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(58677);function o(e,i="navigation"){const r=[[],[]];for(const o of e){const[e,s]=o;("inline"===i?t.isInlineGroup:t.isPrimaryGroup)(e)?r[0].push(...s):(r[1].length>0&&r[1].push(new n.SeparatorMenuItemNode),r[1].push(...s))}return r}function s(e){const[t,i]=e,r=[...t];return r.length>0&&i.length>0&&r.push(new n.SeparatorMenuItemNode),r.concat(i)}function a(e){const{menus:t,separator:i="navigation"}=e,n=r.__rest(e,["menus","separator"]);return o(t.getMenuNodes(n),i)}function c(e){const{menus:t,separator:i}=e,n=r.__rest(e,["menus","separator"]);return o(t.getMenuNodes(n),i)}t.isPrimaryGroup=e=>"navigation"===e,t.isInlineGroup=e=>/^inline/.test(e),t.splitMenuItems=o,t.mergeTupleMenuNodeResult=s,t.generateMergedCtxMenu=function(e){return s(a(e))},t.generateCtxMenu=a,t.generateMergedInlineActions=function(e){const t=c(e);return[...t[0],...t[1]]},t.generateInlineActions=c},58677:(e,t,i)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0});const o=i(70655),s=i(65686),a=i(19745),c=i(86617),l=i(18247),u=i(98071);let d=class extends c.MenuNode{constructor(e,t,i={},r,n,o,s,a,c){super({id:e.id,icon:t,label:e.label,type:o,checked:n,disabled:r,nativeRole:s}),this.extraTailArgs=a,this.argsTransformer=c,this.className=void 0;const l=this.getShortcut(e.id);this.keybinding=l&&l.keybinding||"",this.rawKeybinding=l&&l.rawKeybinding||"",this.isKeyCombination=!(!l||!l.isKeyCombination),this._options=i,this.item=e}getExecuteArgs(e=[]){let t=[...this._options.args||[],...e||[],...this.extraTailArgs||[]];return this.argsTransformer&&(t=this.argsTransformer(...t)),t}execute(e=[]){return this.commandService.executeCommand(this.item.id,...this.getExecuteArgs(e))}getShortcut(e){if(e){const t=this.keybindings.getKeybindingsForCommand(e);if(t.length>0){const e=t.reduce(((e,t)=>(e.priority||0)>(t.priority||0)?e:t)),i=Array.isArray(e.resolved)&&e.resolved.length>1;let r=this.keybindings.acceleratorFor(e,s.isOSX?"":"+").join(" ");return i&&(r=`[${r}]`),{keybinding:r,rawKeybinding:e.keybinding,isKeyCombination:i}}}return null}};o.__decorate([a.Autowired(s.CommandService),o.__metadata("design:type",Object)],d.prototype,"commandService",void 0),o.__decorate([a.Autowired(l.KeybindingRegistry),o.__metadata("design:type",Object)],d.prototype,"keybindings",void 0),o.__decorate([a.Autowired(s.CommandRegistry),o.__metadata("design:type",Object)],d.prototype,"commandRegistry",void 0),d=o.__decorate([a.Injectable(),o.__param(0,a.Optional()),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(3,a.Optional()),o.__param(4,a.Optional()),o.__param(5,a.Optional()),o.__param(6,a.Optional()),o.__param(7,a.Optional()),o.__param(8,a.Optional()),o.__metadata("design:paramtypes",[Object,Object,Object,Boolean,Boolean,String,String,Array,Function])],d),t.MenuItemNode=d;let h=r=class extends c.MenuNode{constructor(e){super({id:r.ID,label:e.label,type:e.type}),this.submenuId=e.submenu,this.icon=e.iconClass,this.item=e}execute(e){const[t,...i]=e;t&&this.ctxMenuRenderer.show({anchor:t,menuNodes:this.children||this.submenuId,args:i})}};h.ID="menu.item.node.submenu",o.__decorate([a.Autowired(u.ICtxMenuRenderer),o.__metadata("design:type",u.ICtxMenuRenderer)],h.prototype,"ctxMenuRenderer",void 0),h=r=o.__decorate([a.Injectable({multiple:!0}),o.__param(0,a.Optional()),o.__metadata("design:paramtypes",[Object])],h),t.SubmenuItemNode=h;let p=n=class extends c.MenuNode{constructor(e,t={},i,r){super({id:n.ID,label:""}),this.extraTailArgs=i,this.argsTransformer=r,this.item=e,this.component=e.component,this._options=t}getExecuteArgs(e=[]){let t=[...this._options.args||[],...e||[],...this.extraTailArgs||[]];return this.argsTransformer&&(t=this.argsTransformer(...t)),t}};p.ID="menu.item.node.component",p=n=o.__decorate([a.Injectable({multiple:!0}),o.__param(0,a.Optional()),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(3,a.Optional()),o.__metadata("design:paramtypes",[Object,Object,Array,Function])],p),t.ComponentMenuItemNode=p;class f extends c.MenuNode{constructor(e,t){super({id:e||f.ID,label:t||"separator"})}}t.SeparatorMenuItemNode=f,f.ID="menu.item.node.separator",t.isIMenu=function(e){return"getMenuNodes"in e&&"function"==typeof e.getMenuNodes};t.AbstractMenuService=class{};t.AbstractContextMenuService=class{}},64809:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(1236),s=i(38384),a=i(58677),c=i(86617),l=i(46617);class u extends s.Disposable{}t.AbstractMenubarService=u;let d=class extends s.Disposable{constructor(){super(),this._onDidMenuBarChange=new o.Emitter,this._onDidMenuChange=new o.Emitter,this._onMenuChange=new o.Emitter,this._menubarIds=new Set,this._menus=new Map,this._menubarItems=[],this._menuItems=new Map,this._menusListener=new Map,this._build(),this.addDispose(o.Event.debounce(this.menuRegistry.onDidChangeMenubar,(()=>{}),50)(this._build,this)),this.addDispose(o.Event.debounce(this.onMenuChange,((e,t)=>t),50)(this._rebuildSingleRootMenus,this)),this.addDispose(this._onDidMenuBarChange),this.addDispose(this._onDidMenuChange)}get onDidMenubarChange(){return this._onDidMenuBarChange.event}get onDidMenuChange(){return this._onDidMenuChange.event}get onMenuChange(){return this._onMenuChange.event}_build(){this._menubarItems=[],this._menubarIds=new Set,this._menuItems.clear();let e=this.menuRegistry.getMenubarItems();e=e.sort(h),e.forEach((e=>{const t=e.id;this._menubarItems.push(e),this._menubarIds.add(t),this._buildMenus(t)})),this._onDidMenuBarChange.fire()}_rebuildSingleRootMenus(e){this._buildMenus(e),this._onDidMenuChange.fire(e)}_buildMenus(e){const t=this.menuService.createMenu(e),i=this._menus.get(e);i&&(i.dispose(),this._menus.delete(e));const r=this._menusListener.get(e);r&&(r.dispose(),this._menusListener.delete(e)),this._menus.set(e,t),this._menusListener.set(e,t.onDidChange((()=>this._onMenuChange.fire(e)),this,this.disposables));const n=[];this._traverseMenuItems(t,n,e),this._menuItems.set(e,n)}_traverseMenuItems(e,t,i){l.generateMergedCtxMenu({menus:e}).forEach((e=>{if(e instanceof a.SubmenuItemNode){const r=[],n=e.item.submenu;if(!this._menus.has(n)){const e=this.registerDispose(this.menuService.createMenu(n));this._menus.set(n,e),this.registerDispose(e.onDidChange((()=>{this._onMenuChange.fire(i)})))}const o=this.menuService.createMenu(n);this._traverseMenuItems(o,r,i),e.children=r,t.push(e),o.dispose()}else t.push(e)}))}dispose(){this._menusListener.forEach((e=>e.dispose())),this._menusListener.clear(),this._menus.forEach((e=>e.dispose())),this._menus.clear(),super.dispose()}getMenubarItems(){return this._menubarItems}getMenubarItem(e){if(this._menubarIds.has(e))return this.menuRegistry.getMenubarItem(e)}getMenuNodes(e){return this._menuItems.get(e)||[]}rebuildMenuNodes(e){this._buildMenus(e)}};function h(e,t){const i=e.order||0,r=t.order||0;return ir?1:0}r.__decorate([n.Autowired(a.AbstractMenuService),r.__metadata("design:type",a.AbstractMenuService)],d.prototype,"menuService",void 0),r.__decorate([n.Autowired(c.IMenuRegistry),r.__metadata("design:type",c.IMenuRegistry)],d.prototype,"menuRegistry",void 0),d=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],d),t.MenubarServiceImpl=d},98071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ICtxMenuRenderer=class{}},88138:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(76427),s=i(98071),a=i(58677);class c extends s.ICtxMenuRenderer{}t.IBrowserCtxMenu=c;let l=class{show(e){if("string"==typeof e.menuNodes){const t=this.menuService.createMenu({id:e.menuNodes,config:{args:e.args},contextKeyService:e.contextKeyService});e.menuNodes=t.getMergedMenuNodes(),t.dispose()}this.browserCtxMenu.show(o(e,["contextKeyService"]))}};r.__decorate([n.Autowired(c),r.__metadata("design:type",c)],l.prototype,"browserCtxMenu",void 0),r.__decorate([n.Autowired(a.AbstractContextMenuService),r.__metadata("design:type",a.AbstractContextMenuService)],l.prototype,"menuService",void 0),l=r.__decorate([n.Injectable()],l),t.BrowserCtxMenuRenderer=l},84221:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(38142),s=i(65686),a=i(98071),c=i(58677),l=i(64809),u=i(68612);class d extends a.ICtxMenuRenderer{}t.IElectronCtxMenuRenderer=d,t.IElectronMenuFactory=Symbol("IElectronMenuFactory"),t.IElectronMenuBarService=Symbol("IElectronMenuBarService");let h=class extends s.Disposable{getTemplate(e,t,i){return e.map((e=>{if(e.id===c.SeparatorMenuItemNode.ID)return{type:"separator"};if(e.id===c.SubmenuItemNode.ID){const r=this.getTemplate(e.children,t,i);return{label:`${o.mnemonicButtonLabel(e.label,!0)}`,submenu:Array.isArray(r)&&r.length?r:void 0}}return this.bindAction(e,t,i),{type:e.checked?"checkbox":void 0,checked:e.checked?e.checked:void 0,label:`${o.mnemonicButtonLabel(e.label,!0)} ${e.isKeyCombination?e.keybinding:""}`,id:e.id,action:!0,role:e.nativeRole,disabled:e.disabled,accelerator:e.rawKeybinding&&!e.isKeyCombination?(r=e.rawKeybinding,r.replace("ctrlcmd","CmdOrCtrl")):void 0};var r}))}bindAction(e,t,i){"function"==typeof e.execute&&t.set(e.id,(()=>{e.execute(i)}))}};h=r.__decorate([n.Injectable()],h),t.ElectronMenuFactory=h;let p=class{constructor(){this.contextMenuActions=new Map}show(e){const{onHide:t,args:i}=e;let r;if("string"==typeof e.menuNodes){const t=this.menuService.createMenu({id:e.menuNodes,config:{args:e.args},contextKeyService:e.contextKeyService});r=t.getMergedMenuNodes(),t.dispose()}else r=e.menuNodes;this.contextMenuActions.clear();const n=this.factory.getTemplate(r,this.contextMenuActions,i);this.createNativeContextMenu({submenu:n},t)}createNativeContextMenu(e,t){this.electronMainMenuService.showContextMenu(e,u.electronEnv.currentWebContentsId);const i=new s.Disposable;i.addDispose(this.electronMainMenuService.on("menuClose",((e,r)=>{e===u.electronEnv.currentWebContentsId+"-context"&&(i.dispose(),t&&t(!0))}))),i.addDispose(this.electronMainMenuService.on("menuClick",((e,r)=>{if(e!==u.electronEnv.currentWebContentsId+"-context")return;const n=this.contextMenuActions.get(r);n&&n(),t&&t(!1),i.dispose()})))}};r.__decorate([n.Autowired(s.CommandService),r.__metadata("design:type",Object)],p.prototype,"commandService",void 0),r.__decorate([n.Autowired(s.IElectronMainMenuService),r.__metadata("design:type",Object)],p.prototype,"electronMainMenuService",void 0),r.__decorate([n.Autowired(t.IElectronMenuFactory),r.__metadata("design:type",h)],p.prototype,"factory",void 0),r.__decorate([n.Autowired(c.AbstractContextMenuService),r.__metadata("design:type",c.AbstractContextMenuService)],p.prototype,"menuService",void 0),p=r.__decorate([n.Injectable()],p),t.ElectronCtxMenuRenderer=p;let f=class{constructor(){this.menuBarActions=new Map}start(){this.electronMainMenuService.on("menuClick",((e,t)=>{if(e!==u.electronEnv.currentWindowId+"-app")return;const i=this.menuBarActions.get(t);i&&i()})),this.updateMenuBar(),this.menubarService.onDidMenubarChange((()=>{this.updateMenuBar()})),this.menubarService.onDidMenuChange((()=>{this.updateMenuBar()}))}updateMenuBar(){this.menuBarActions.clear();const e=this.menubarService.getMenubarItems(),t=[];e.forEach((e=>{const i=e.id,r=this.menubarService.getMenuNodes(i),n=this.factory.getTemplate(r,this.menuBarActions);if(n&&n.length>0){const i={label:o.mnemonicButtonLabel(e.label,!0),submenu:n};e.nativeRole&&(i.role=e.nativeRole),t.push(i)}})),this.electronMainMenuService.setApplicationMenu({submenu:t},u.electronEnv.currentWindowId)}};r.__decorate([n.Autowired(s.CommandService),r.__metadata("design:type",Object)],f.prototype,"commandService",void 0),r.__decorate([n.Autowired(l.AbstractMenubarService),r.__metadata("design:type",l.AbstractMenubarService)],f.prototype,"menubarService",void 0),r.__decorate([n.Autowired(s.IElectronMainMenuService),r.__metadata("design:type",Object)],f.prototype,"electronMainMenuService",void 0),r.__decorate([n.Autowired(t.IElectronMenuFactory),r.__metadata("design:type",h)],f.prototype,"factory",void 0),f=r.__decorate([n.Injectable()],f),t.ElectronMenuBarService=f},23524:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(38384),s=i(72904),a=i(44812);t.IToolbarActionService=Symbol("IToolBarActionsService");let c=class extends o.Disposable{constructor(){super(),this.groups=new Map}registryActionGroup(e,t){const i=new o.Disposable;return i.addDispose(this.registry.registerToolbarActionGroup({id:e,preferredLocation:"menu-right"})),i.addDispose({dispose:()=>{this.groups.delete(e)}}),t.forEach(((t,r)=>{const n=e+"-action-"+r;"action"===t.type?i.addDispose(this.registry.registerToolbarAction({id:n,description:t.description||n,component:s.createToolbarActionBtn({iconClass:t.iconClass,title:t.title,id:n,delegate:e=>{e&&e.onClick(t.click)}}),preferredPosition:{group:e}})):"enum"===t.type&&i.addDispose(this.registry.registerToolbarAction({id:n,description:t.description||n,component:a.createToolbarActionSelect({defaultValue:t.defaultValue||t.title,options:t.enum.map((e=>({label:e,value:e}))),onSelect:e=>t.select(e)}),preferredPosition:{group:e}}))})),this.groups.set(e,i),i}unRegistryActionGroup(e){this.groups.has(e)&&this.groups.get(e).dispose}};r.__decorate([n.Autowired(s.IToolbarRegistry),r.__metadata("design:type",Object)],c.prototype,"registry",void 0),c=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],c),t.ToolbarActionService=c},39021:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);!function(e){e.CODE_EDITOR_SERVICE="codeEditorService",e.TEXT_MODEL_SERVICE="textModelService",e.CONTEXT_VIEW_SERVICE="contextViewService",e.COMMAND_SERVICE="commandService",e.CONTEXT_KEY_SERVICE="contextKeyService",e.BULK_EDIT_SERVICE="IWorkspaceEditService",e.OPENER_SERVICE="openerService"}(t.ServiceNames||(t.ServiceNames={}));t.MonacoService=class{};t.MonacoOverrideServiceRegistry=class{},t.MonacoContribution=Symbol("MonacoContribution"),t.Extensions={JSONContribution:"base.contributions.json"},t.ISchemaRegistry=Symbol("ISchemaRegistry"),t.JsonSchemaContribution=Symbol("JsonSchemaContribution"),t.ISchemaStore=Symbol("ISchemaStore"),t.IMimeService=Symbol("IMimeService");class n extends r.BasicEvent{}t.SuggestEvent=n},27601:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686);let a=r=class{handleScheme(e){return e===s.Schemas.command}static parseURI(e){let t=[];try{t=JSON.parse(decodeURIComponent(e.query))}catch(i){try{t=JSON.parse(e.query)}catch(e){}}return Array.isArray(t)||(t=[t]),{id:e.path.toString(),args:t}}async open(e){const{id:t,args:i}=r.parseURI(e);return await this.commandService.executeCommand(t,...i),!0}};n.__decorate([o.Autowired(s.CommandService),n.__metadata("design:type",Object)],a.prototype,"commandService",void 0),a=r=n.__decorate([o.Injectable()],a),t.CommandOpener=a},34522:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(9660);let a=class{handleScheme(e){return!0}async open(e){return o.isElectronRenderer()||[o.Schemas.http,o.Schemas.https].includes(e.scheme)?this.windowService.openNewWindow(e.toString(!0),{external:!0}):window.location.href=e.toString(!0),!0}};r.__decorate([n.Autowired(s.IWindowService),r.__metadata("design:type",Object)],a.prototype,"windowService",void 0),a=r.__decorate([n.Injectable()],a),t.DefaultOpener=a},14480:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686),a=i(9660);let c=r=class{handleScheme(e){return r.standardSupportedLinkSchemes.has(e)}async open(e){return this.windowService.openNewWindow(e.toString(!0),{external:!0}),!0}};c.standardSupportedLinkSchemes=new Set([s.Schemas.http,s.Schemas.https,s.Schemas.mailto]),n.__decorate([o.Autowired(a.IWindowService),n.__metadata("design:type",Object)],c.prototype,"windowService",void 0),c=r=n.__decorate([o.Injectable()],c),t.HttpOpener=c},75589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenerContribution=Symbol("OpenerContribution"),t.IOpenerService=Symbol("IOpenerService")},16421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(79950),s=i(65686),a=i(75589),c=i(27601),l=i(14480);let u=class{registerOpener(e){e.registerOpener(this.commandOpener),e.registerOpener(this.httpOpener)}};r.__decorate([n.Autowired(),r.__metadata("design:type",c.CommandOpener)],u.prototype,"commandOpener",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",l.HttpOpener)],u.prototype,"httpOpener",void 0),u=r.__decorate([s.Domain(a.OpenerContribution)],u),t.DefaultOpnerContribution=u;let d=class{onStart(){const e=this.contributionProvider.getContributions();for(const t of e)t.registerOpener(this.openerService)}};r.__decorate([n.Autowired(a.OpenerContribution),r.__metadata("design:type",Object)],d.prototype,"contributionProvider",void 0),r.__decorate([n.Autowired(a.IOpenerService),r.__metadata("design:type",Object)],d.prototype,"openerService",void 0),d=r.__decorate([s.Domain(o.ClientAppContribution)],d),t.OpenerContributionClient=d},55288:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(34522);let a=class{constructor(){this.openers=[]}async getOpeners(e){const t=await Promise.all(this.openers.map((async t=>{try{return t.handleURI?await t.handleURI(e):await t.handleScheme(e.scheme)}catch(e){return this.logger.error(e),!1}})));return this.openers.filter(((e,i)=>t[i]))}registerOpener(e){return this.openers.push(e),{dispose:()=>{const t=this.openers.indexOf(e);-1!==t&&this.openers.splice(t,1)}}}async open(e){"string"==typeof e&&(e=o.URI.parse(e));const t=await this.getOpeners(e);for(const i of t){if(await i.open(e))return!0}return this.defaultOpener.open(e)}dispose(){this.openers=[]}};r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],a.prototype,"logger",void 0),r.__decorate([n.Autowired(s.DefaultOpener),r.__metadata("design:type",Object)],a.prototype,"defaultOpener",void 0),a=r.__decorate([n.Injectable()],a),t.OpenerService=a},19403:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(98115),n=i(37163),o=new Map;function s(e,t){o.get(e)||o.set(e,t)}function a(e,t,i){const n=i?r.PreferenceScope.getReversedScopes().filter((e=>e<=i)):r.PreferenceScope.getReversedScopes();for(const t of n){const i=o.get(e).get(t);if(void 0!==i)return{value:i,scope:t}}return{value:t&&t.default,scope:r.PreferenceScope.Default}}t.registerExternalPreferenceProvider=s,t.getExternalPreferenceProvider=function(e){let t=o.get(e);if(!t){const i=n.PreferenceProvider.PreferenceDelegates[e];i&&(t=o.get(i.delegateTo))}return t},t.getPreferenceThemeId=function(){return a("general.theme").value},t.getPreferenceIconThemeId=function(){return a("general.icon").value},t.getPreferenceLanguageId=function(e){return e&&e["general.language"]||a("general.language").value||"zh-CN"},t.registerLocalStorageProvider=function(e,t){function n(e){return e===r.PreferenceScope.Workspace?t:e}s(e,{set:(o,s)=>{s>=r.PreferenceScope.Folder||!t&&s>r.PreferenceScope.Default||i.g.localStorage&&(void 0!==o?localStorage.setItem(n(s)+`:${e}`,o):localStorage.removeItem(n(s)+`:${e}`))},get:t=>{if(i.g.localStorage)return localStorage.getItem(n(t)+`:${e}`)||void 0}})},t.getExternalPreference=a,t.getAllExternalProviders=function(){return Array.from(o.entries())}},83880:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(72211),t),r.__exportStar(i(18546),t),r.__exportStar(i(37163),t),r.__exportStar(i(98115),t),r.__exportStar(i(35074),t),r.__exportStar(i(40061),t),r.__exportStar(i(19403),t),r.__exportStar(i(9276),t)},72211:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(65686),a=i(60157);t.PreferenceConfiguration=Symbol("PreferenceConfiguration"),t.injectPreferenceConfigurations=function(e){o.createContributionProvider(e,t.PreferenceConfiguration),e.addProviders({token:c,useClass:c})};let c=class{getPaths(){return this.appConfig.workspacePreferenceDirName?[this.appConfig.workspacePreferenceDirName]:this.appConfig.preferenceDirName?[this.appConfig.preferenceDirName]:[s.DEFAULT_WORKSPACE_STORAGE_DIR_NAME]}getConfigName(){return"settings"}getSectionNames(){return this.sectionNames||(this.sectionNames=this.preferenceConfigurationProvider.getContributions().map((e=>e.name))),this.sectionNames}isSectionName(e){return-1!==this.getSectionNames().indexOf(e)}isSectionUri(e){return!!e&&this.isSectionName(this.getName(e))}isConfigUri(e){return!!e&&this.getName(e)===this.getConfigName()}getName(e){return e.path.name}getPath(e){return e.parent.path.base}createUri(e,t=this.getPaths()[0],i=this.getConfigName()){return e.resolve(t).resolve(i+".json")}};r.__decorate([n.Autowired(a.AppConfig),r.__metadata("design:type",Object)],c.prototype,"appConfig",void 0),r.__decorate([n.Autowired(t.PreferenceConfiguration),r.__metadata("design:type",Object)],c.prototype,"preferenceConfigurationProvider",void 0),c=r.__decorate([n.Injectable()],c),t.PreferenceConfigurations=c},18546:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65096),o=i(19745),s=i(65686),a=i(98115),c=i(37163),l=i(80063);t.PreferenceSchema=l.PreferenceSchema,t.PreferenceSchemaProperties=l.PreferenceSchemaProperties,t.PreferenceDataProperty=l.PreferenceDataProperty;const u=i(1415),d=i(72211);t.PreferenceContribution=Symbol("PreferenceContribution"),t.injectPreferenceSchemaProvider=function(e){d.injectPreferenceConfigurations(e),e.addProviders({token:p,useClass:p}),e.addProviders({token:c.PreferenceProvider,tag:a.PreferenceScope.Default,useClass:f})},function(e){e.is=function(e){return!!e&&"object"==typeof e&&"preferenceName"in e&&"overrideIdentifier"in e}}(t.OverridePreferenceName||(t.OverridePreferenceName={}));var h;t.OVERRIDE_PROPERTY_PATTERN=new RegExp("\\[(.*)\\]$"),function(e){e.is=function(e){return"preferences"in e&&"object"==typeof e.preferences}}(h=t.FrontendApplicationPreferenceConfig||(t.FrontendApplicationPreferenceConfig={}));let p=class extends c.PreferenceProvider{constructor(){super(),this.preferences={},this.combinedSchema={properties:{},patternProperties:{}},this.onDidPreferenceSchemaChangedEmitter=new s.Emitter,this.onDidPreferenceSchemaChanged=this.onDidPreferenceSchemaChangedEmitter.event,this.validationFunctions=new Map,this.unsupportedPreferences=new Set,this.init()}fireDidPreferenceSchemaChanged(){this.onDidPreferenceSchemaChangedEmitter.fire(void 0)}get validateFunction(){return this._validateFunction||this.doUpdateValidate(),this._validateFunction}init(){this.preferenceContributions.getContributions().forEach((e=>{this.doSetSchema(e.schema)})),this.combinedSchema.additionalProperties=!1,this.updateValidate(),this.onDidPreferencesChanged((()=>this.updateValidate())),this._ready.resolve()}doSetSchema(e,t){const i=a.PreferenceScope.Default,r=this.getDomain(),n=[],o=l.PreferenceSchema.getDefaultScope(e),s=e.overridable||!1;for(const a of Object.keys(e.properties))if(!this.combinedSchema.properties[a]||t){const t=l.PreferenceDataProperty.fromPreferenceSchemaProperty(e.properties[a],o);"boolean"!=typeof t.overridable&&s&&(t.overridable=!0),this.combinedSchema.properties[a]=t,this.unsupportedPreferences.delete(a);const c=t.defaultValue=this.getDefaultValue(t,a);n.push(this.doSetPreferenceValue(a,c,{scope:i,domain:r}))}else this.logger.error("Preference name collision detected in the schema for property: "+a);return n}doSetPreferenceValue(e,t,{scope:i,domain:r}){const n=this.preferences[e];return this.preferences[e]=t,{preferenceName:e,oldValue:n,newValue:t,scope:i,domain:r}}getDefaultValue(e,t){const i=u.ClientAppConfigProvider.get();if(t&&h.is(i)&&t in i.preferences)return i.preferences[t];if(void 0!==e.defaultValue)return e.defaultValue;if(void 0!==e.default)return e.default;switch(Array.isArray(e.type)?e.type[0]:e.type){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{}}return null}updateValidate(){this._validateFunction=void 0}doUpdateValidate(){const e=Object.assign(Object.assign({},this.combinedSchema),{properties:Object.assign({},this.combinedSchema.properties)});for(const t of this.configurations.getSectionNames())delete e.properties[t];this._validateFunction=(new n).compile(e)}validate(e,t){if(this.configurations.isSectionName(e))return{valid:!0};if(!this.getPreferenceProperty(e))return{valid:!0};this.validationFunctions.has(e)||this.validationFunctions.set(e,(new n).compile(this.getPreferenceProperty(e)));const i=this.validationFunctions.get(e),r=i(t);r||e in this.combinedSchema.properties||this.unsupportedPreferences.has(e)||(this.unsupportedPreferences.add(e),this.logger.warn(`"${e}" preference is not supported`));return{valid:r,reason:i.errors&&i.errors[0]?i.errors[0].message:void 0}}getCombinedSchema(){return this.combinedSchema}setSchema(e,t){const i=this.doSetSchema(e,t);this.fireDidPreferenceSchemaChanged(),this.emitPreferencesChangedEvent(i)}getPreferences(){return this.preferences}getLanguagePreferences(e){return{}}async doSetPreference(){return!1}isValidInScope(e,t){const i=this.getPreferenceProperty(e);return!!i&&i.scope>=t}*getPreferenceNames(){for(const e in this.combinedSchema.properties)yield e}getPreferenceProperty(e){return this.combinedSchema.properties[e]}};r.__decorate([o.Autowired(t.PreferenceContribution),r.__metadata("design:type",Object)],p.prototype,"preferenceContributions",void 0),r.__decorate([o.Autowired(d.PreferenceConfigurations),r.__metadata("design:type",d.PreferenceConfigurations)],p.prototype,"configurations",void 0),r.__decorate([o.Autowired(s.ILogger),r.__metadata("design:type",Object)],p.prototype,"logger",void 0),p=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],p),t.PreferenceSchemaProvider=p;let f=class extends c.PreferenceProvider{constructor(){super(),this.preferences={default:{},languageSpecific:{}},this.init()}async init(){this._ready.resolve()}getPreferences(e,t){return t?this.preferences.languageSpecific[t]||{}:Object.assign(Object.assign({},this.preferenceSchemaProvider.getPreferences()),this.preferences.default)}getLanguagePreferences(e){return this.preferences.languageSpecific}async doSetPreference(e,t,i,r){if(r){this.preferences.languageSpecific[r]||(this.preferences.languageSpecific[r]={});const i=this.preferences.languageSpecific[r][e];this.preferences.languageSpecific[r][e]=t,this.handlePreferenceChanges(e,t,i,r)}else{const i=this.preferences.default[e];this.preferences.default[e]=t,this.handlePreferenceChanges(e,t,i)}return!0}handlePreferenceChanges(e,t,i,r){const n={preferenceName:e,newValue:t,oldValue:i,scope:a.PreferenceScope.Default,domain:void 0};r?this.emitPreferencesChangedEvent({default:{},languageSpecific:{[r]:{[e]:n}}}):this.emitPreferencesChangedEvent([n])}};r.__decorate([o.Autowired(p),r.__metadata("design:type",p)],f.prototype,"preferenceSchemaProvider",void 0),f=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],f),t.DefaultPreferenceProvider=f},37163:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686),a=i(19403);let c=r=class{constructor(){this.onDidPreferencesChangedEmitter=new s.Emitter,this.onDidPreferencesChanged=this.onDidPreferencesChangedEmitter.event,this.toDispose=new s.DisposableCollection,this._ready=new s.Deferred,this.toDispose.push(this.onDidPreferencesChangedEmitter)}asScope(e){void 0===this._scope&&(this._scope=e,a.getAllExternalProviders().forEach((([e,t])=>{t.onDidChange&&t.onDidChange((t=>{t.scope===this._scope&&this.emitPreferencesChangedEvent([{preferenceName:e,scope:t.scope,newValue:t.newValue,oldValue:t.oldValue}],!0)}))})))}dispose(){this.toDispose.dispose()}emitPreferencesChangedEvent(e,t){let i;if(Array.isArray(e)){i={default:{},languageSpecific:{}};for(const t of e)i.default[t.preferenceName]=t}else i=e;if(void 0!==this._scope){const e=Object.keys(i.default);for(const n of e){const e=i.default[n];if(r.PreferenceDelegates[e.preferenceName]){const t=r.PreferenceDelegates[e.preferenceName];void 0!==this.get(t.delegateTo)&&void 0===this.get(e.preferenceName)||(i.default[t.delegateTo]=Object.assign(Object.assign({},e),{oldValue:void 0,newValue:void 0!==e.newValue?t.transform?t.transform(e.newValue):e.newValue:void 0,preferenceName:t.delegateTo}))}!t&&a.getExternalPreferenceProvider(n)&&delete i.default[n],e.oldValue===e.newValue&&delete i.default[n]}}return!(!i||s.isEmptyObject(i))&&(this.onDidPreferencesChangedEmitter.fire(i),!0)}get(e,t,i){if(r.PreferenceDelegatesReverse[e]){const t=this.getDelegateToValueFromDelegated(e);if(void 0!==t)return t}const n=this.getWithoutDelegate(e,t,i);return void 0===n&&r.PreferenceDelegates[e]?this.getDelegatedValueFromDelegateTo(e):n}getWithoutDelegate(e,t,i){if(void 0!==this._scope){const t=a.getExternalPreferenceProvider(e);if(t)return t.get(this._scope)}return this.doGet(e,t,i)}getDelegatedValueFromDelegateTo(e){const t=r.PreferenceDelegates[e],i=this.getWithoutDelegate(t.delegateTo);return t.transformFrom?t.transformFrom(i):i}getDelegateToValueFromDelegated(e){const t=r.PreferenceDelegatesReverse[e],i=this.getWithoutDelegate(t.delegated);return t.transform?t.transform(i):i}doGet(e,t,i){return this.doResolve(e,t,i).value}resolve(e,t,i){if(r.PreferenceDelegatesReverse[e]){const t=this.getDelegateToValueFromDelegated(e);if(void 0!==t)return{value:t,scope:this._scope}}if(void 0!==this._scope){const t=a.getExternalPreferenceProvider(e);if(t)return{value:t.get(this._scope),scope:this._scope}}const n=this.doResolve(e,t,i);return void 0===n.value&&r.PreferenceDelegates[e]?{value:this.getDelegatedValueFromDelegateTo(e),scope:this._scope}:n}doResolve(e,t,i){const r=this.getPreferences(t,i);if(!r)return{};const n=r[e];return void 0!==n?{value:n,configUri:this.getConfigUri(t)}:{}}async setPreference(e,t,i,n){if(r.PreferenceDelegatesReverse[e]){const t=r.PreferenceDelegatesReverse[e];await this.setPreference(t.delegated,void 0)}if(void 0!==this._scope){const i=a.getExternalPreferenceProvider(e);if(i)try{const r=i.get(this._scope);return await i.set(t,this._scope),i.onDidChange||this.emitPreferencesChangedEvent([{preferenceName:e,scope:this._scope,oldValue:r,newValue:i.get(this._scope)}],!0),!0}catch(e){return!1}}return this.doSetPreference(e,t,i,n)}get ready(){return this._ready.promise}getDomain(){}getConfigUri(e){}static merge(e,t){if(void 0===e||!s.JSONUtils.isObject(e))return s.JSONUtils.deepCopy(t);if(s.JSONUtils.isPrimitive(t))return{};for(const i of Object.keys(t)){const r=t[i];i in e&&s.JSONUtils.isObject(e[i])&&s.JSONUtils.isObject(r)?this.merge(e[i],r):e[i]=s.JSONUtils.deepCopy(r)}return e}};c.PreferenceDelegates={"workbench.colorTheme":{delegateTo:"general.theme"}},c.PreferenceDelegatesReverse=function(e){const t={};for(const i of Object.keys(e))t[e[i].delegateTo]=Object.assign({delegated:i},e[i]);return t}(r.PreferenceDelegates),c=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],c),t.PreferenceProvider=c},40061:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.createPreferenceProxy=function e(t,i,n){const o=n||{},s=o.prefix||"",a=o.style||"flat",c="deep"===a||"both"===a,l="both"===a||"flat"===a,u=(e,n,a)=>{const c=new r.Disposable;return c.addDispose(t.onPreferencesChanged((r=>{for(const n of Object.keys(r)){const a=r[n],c=a.preferenceName;if(c.startsWith(s)&&i.properties[c])if(o.resourceUri){if(a.affects(o.resourceUri)){if(o.overrideIdentifier&&!t.hasLanguageSpecific(c,o.overrideIdentifier,o.resourceUri))continue;e(a)}}else e(a)}}),n,a)),o.overrideIdentifier&&c.addDispose(t.onLanguagePreferencesChanged((t=>{if(t.overrideIdentifier===o.overrideIdentifier)for(const r of Object.keys(t.changes)){const n=t.changes[r],a=n.preferenceName;a.startsWith(s)&&i.properties[a]&&(o.resourceUri?n.affects(o.resourceUri)&&e(n):e(n))}}),n,a)),c},d=(e,t)=>{throw new Error("Unsupported operation")},h=(e,i,r,n)=>t.get(e,i,r||o.resourceUri,n||o.overrideIdentifier),p=()=>{const e=[];for(const t of Object.keys(i.properties))if(t.startsWith(s)){const i=t.indexOf(".",s.length);if(-1!==i&&c){const r=t.substr(s.length,i-s.length);-1===e.indexOf(r)&&e.push(r)}const r=t.substr(s.length);(l||-1===r.indexOf("."))&&e.push(r)}return e},f=(n,d)=>{if("string"!=typeof d)throw new Error(`unexpected property: ${String(d)}`);const p=s?s+d:d;if((l||-1===d.indexOf("."))&&i.properties[p])return t.get(p,void 0,o.resourceUri,o.overrideIdentifier);if("onPreferenceChanged"===d)return u;if("dispose"===d)return()=>{};if("ready"===d)return t.ready;if("get"===d)return h;if("toJSON"===d)return g();if(c){const s=p+".";for(const r of Object.keys(i.properties))if(r.startsWith(s))return e(t,i,{prefix:s,resourceUri:o.resourceUri,overrideIdentifier:o.overrideIdentifier,style:a});let c,l=p;const u=[];for(let e;l&&r.isUndefined(c);)e=l.lastIndexOf("."),u.push(l.substring(e+1)),l=l.substring(0,e),l in i.properties&&(c=f(n,l));let d;for(;r.isObject(c)&&(d=u.pop());)c=c[d];return u.length?void 0:c}},g=()=>{const e={};for(const t of p())e[t]=f(void 0,t);return e};return new Proxy({},{get:f,ownKeys:p,getOwnPropertyDescriptor:(e,t)=>-1!==p().indexOf(t)?{enumerable:!0,configurable:!0}:{},set:(n,c,l)=>{if("string"!=typeof c)throw new Error(`unexpected property: ${String(c)}`);if("deep"===a&&-1!==c.indexOf("."))return!1;const u=s?s+c:c;if(i.properties[u])return t.set(u,l,r.PreferenceScope.Default),!0;const d=u+".";for(const r of Object.keys(i.properties))if(r.startsWith(d)){const r=e(t,i,{prefix:d,resourceUri:o.resourceUri,overrideIdentifier:o.overrideIdentifier,style:a});for(const e of Object.keys(l))r[e]=l[e]}return!1},deleteProperty:d,defineProperty:d})}},98115:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(25058);t.PreferenceScope=r.PreferenceScope},35074:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(37163),a=i(18546),c=i(98115),l=i(72211);class u{constructor(e){this.change=e}get preferenceName(){return this.change.preferenceName}get newValue(){return this.change.newValue}get oldValue(){return this.change.oldValue}get scope(){return this.change.scope}affects(e){const t=e&&new o.URI(e).path,i=this.change.domain;return!t||!i||i.some((e=>new o.URI(e).path.relativity(t)>=0))}}t.PreferenceChangeImpl=u,t.PreferenceService=Symbol("PreferenceService"),t.PreferenceProviderProvider=Symbol("PreferenceProviderProvider");let d=class{constructor(){this.onPreferenceChangedEmitter=new o.Emitter,this.onPreferenceChanged=this.onPreferenceChangedEmitter.event,this.onPreferencesChangedEmitter=new o.Emitter,this.onPreferencesChanged=this.onPreferencesChangedEmitter.event,this.onLanguagePreferencesChangedEmitter=new o.Emitter,this.onLanguagePreferencesChanged=this.onLanguagePreferencesChangedEmitter.event,this.toDispose=new o.DisposableCollection(this.onPreferenceChangedEmitter,this.onPreferencesChangedEmitter),this.preferenceProviders=new Map,this.specificEmitters=new Map,this.preferences={},this.cachedPreference=new o.LRUMap(1e3,500),this._ready=new o.Deferred,this.init()}async init(){this.toDispose.push(o.Disposable.create((()=>this._ready.reject(new Error("preference service is disposed"))))),this.initializeProviders()}dispose(){this.toDispose.dispose()}onSpecificPreferenceChange(e,t){return this.specificEmitters.has(e)||this.specificEmitters.set(e,new o.Emitter),this.specificEmitters.get(e).event(t)}get ready(){return this._ready.promise}async initializeProviders(){try{const e=c.PreferenceScope.getScopes();for(const t of e){const e=this.providerProvider(t);this.preferenceProviders.set(t,e),this.toDispose.push(e.onDidPreferencesChanged((e=>{const i=Object.keys(e.default),r={};for(const n of i)e.default[n].scope===t&&(r[n]=e.default[n]);o.isEmptyObject(r)||this.reconcilePreferences({default:r,languageSpecific:e.languageSpecific})}))),await e.ready}this._ready.resolve()}catch(e){this._ready.reject(e)}}reconcilePreferences(e){const t={},i={},r=(e,r)=>{this.cachedPreference.delete(e.preferenceName),r?(i[r]||(i[r]={}),i[r][e.preferenceName]=new u(e)):t[e.preferenceName]=new u(e)};this.tryAcceptChanges(e.default,r),Object.keys(e.languageSpecific).forEach((t=>{this.tryAcceptChanges(e.languageSpecific[t],r,t)}));const n=Object.keys(t);n.length>0&&this.onPreferencesChangedEmitter.fire(t),n.forEach((e=>{this.onPreferenceChangedEmitter.fire(t[e]),this.specificEmitters.has(e)&&this.specificEmitters.get(e).fire(t[e])})),Object.keys(i).forEach((e=>{this.onLanguagePreferencesChangedEmitter.fire({overrideIdentifier:e,changes:i[e]})}))}tryAcceptChanges(e,t,i){for(const r of Object.keys(e)){let n=e[r];if(this.schema.isValidInScope(r,c.PreferenceScope.Folder))t(n,i);else for(const e of c.PreferenceScope.getReversedScopes())if(this.schema.isValidInScope(r,e)){const o=this.getProvider(e);if(o){const s=o.get(r,n.domain?n.domain[0]:void 0,i);if(e>n.scope&&void 0!==s)break;if(e===n.scope&&void 0!==n.newValue){t(n,i);break}if(e0;e--)if(t=this.doResolve(r.slice(0,e).join(".")).value,t){i=r.slice(e);break}for(;i&&i.length>0;)t=t[i.shift()];return{value:t}}resolve(e,t,i,r,n){const o=this.doResolve(e,t,i,n,r);return void 0===o.value?this.lookUp(e):o}async set(e,t,i,r){await this.ready;const n=o.isUndefined(i)?r?c.PreferenceScope.Folder:c.PreferenceScope.Workspace:i;if(n===c.PreferenceScope.User&&this.configurations.isSectionName(e.split(".",1)[0]))throw new Error(`Unable to write to User Settings because ${e} does not support for global scope.`);if(n===c.PreferenceScope.Folder&&!r)throw new Error("Unable to write to Folder Settings because no resource is provided.");const s=this.getProvider(n);if(!s||!await s.setPreference(e,t,r))throw new Error(`Unable to write to ${c.PreferenceScope.getScopeNames(n)[0]} Settings.`)}hasLanguageSpecific(e,t,i){return!!this.doResolve(e,void 0,i,void 0,t).languageSpecific}getBoolean(e,t,i){const r=i?this.get(e,t,i):this.get(e,t);return null!=r?!!r:t}getString(e,t,i){const r=i?this.get(e,t,i):this.get(e,t);return null==r?t:r.toString()}getNumber(e,t,i){const r=i?this.get(e,t,i):this.get(e,t);return null==r?t:"number"==typeof r?r:Number(r)}inspect(e,t,i){return{preferenceName:e,defaultValue:this.inspectInScope(e,c.PreferenceScope.Default,t,i),globalValue:this.inspectInScope(e,c.PreferenceScope.User,t,i),workspaceValue:this.inspectInScope(e,c.PreferenceScope.Workspace,t,i),workspaceFolderValue:this.inspectInScope(e,c.PreferenceScope.Folder,t,i)}}inspectInScope(e,t,i,r){return this.doInspectInScope(e,t,i,r)}doHas(e,t){return void 0!==this.doGet(e,void 0,t)}doInspectInScope(e,t,i,r){const n=this.getProvider(t);return n&&n.get(e,i,r)}doGet(e,t,i){return this.doResolve(e,t,i).value}doResolve(e,t,i,r,n){this.cachedPreference.has(e)||this.cachedPreference.set(e,new o.LRUMap(500,200));const s=this.cachedPreference.get(e),a=function(e,t,i){return`${e?`${e}:::`:""}${t?`${t}:::`:""}${i}`||"default"}(n,r,i);s.has(a)||s.set(a,this.doResolveWithOutCache(e,i,r,n));const c=s.get(a);return void 0===c.value&&(c.value=t),c}doResolveWithOutCache(e,t,i,r){const n={scope:c.PreferenceScope.Default},a=i?c.PreferenceScope.getScopes().filter((e=>e<=i)):c.PreferenceScope.getScopes();for(const i of a)if(this.schema.isValidInScope(e,i)){const r=this.getProvider(i);if(r){const{configUri:a,value:c}=r.resolve(e,t);o.isUndefined(c)||o.isEmptyObject(c)||(n.configUri=a,n.value=s.PreferenceProvider.merge(n.value,c),n.scope=i)}}if(r)for(const i of a)if(this.schema.isValidInScope(e,i)){const o=this.getProvider(i);if(o){const{configUri:a,value:c,languageSpecific:l}=o.resolve(e,t,r);void 0!==c&&(n.configUri=a,n.value=s.PreferenceProvider.merge(n.value,c),n.scope=i,n.languageSpecific=n.languageSpecific||l)}}return{configUri:n.configUri,value:o.isUndefined(n.value)?void 0:o.deepClone(n.value),scope:n.scope||c.PreferenceScope.Default,languageSpecific:n.languageSpecific}}};r.__decorate([n.Autowired(a.PreferenceSchemaProvider),r.__metadata("design:type",a.PreferenceSchemaProvider)],d.prototype,"schema",void 0),r.__decorate([n.Autowired(s.PreferenceProvider,{tag:c.PreferenceScope.Default}),r.__metadata("design:type",s.PreferenceProvider)],d.prototype,"defaultPreferenceProvider",void 0),r.__decorate([n.Autowired(t.PreferenceProviderProvider),r.__metadata("design:type",Function)],d.prototype,"providerProvider",void 0),r.__decorate([n.Autowired(l.PreferenceConfigurations),r.__metadata("design:type",l.PreferenceConfigurations)],d.prototype,"configurations",void 0),d=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],d),t.PreferenceServiceImpl=d},9276:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPreferenceSettingsService=Symbol("IPreferenceSettingsService")},71755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IProgressService=Symbol("IProgressService"),t.emptyProgressRunner=Object.freeze({total(){},worked(){},done(){}})},49253:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(74888),o=i(62034),s=i(32834);t.ProgressBar=s.observer((({progressModel:e,className:t})=>{const{worked:i,total:s,show:a,fade:c}=e;return r.createElement("div",{className:o.default(t,n.progressBar,{[n.hide]:!a},{[n.fade]:c})},r.createElement("div",{className:o.default(n.progress,{[n.infinite]:!s}),style:s?{width:100*(i/s||.02)+"%"}:{width:"2%"}}))}))},33608:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(22188);let s=class{constructor(){this.progressModel={show:!1,fade:!1,worked:0,total:void 0}}show(e,t){return!0!==e&&(this.progressModel.total=e),this.showOnceScheduler(t),{total:e=>{this.progressModel.worked=0,this.progressModel.total=e},worked:e=>{if(this.progressModel.total){const t=Math.max(1,Number(e)),i=Math.min(t+this.progressModel.worked,this.progressModel.total);this.progressModel.worked=i}this.progressModel.show=!0},done:()=>{this.doDone(!0)}}}async showWhile(e,t){this.progressModel.total=void 0,this.showOnceScheduler(t),await e,this.doDone(!1)}showOnceScheduler(e){"number"==typeof e?(clearTimeout(this.scheduled),this.scheduled=i.g.setTimeout(this.on,e)):this.on()}doDone(e){this.progressModel.fade=!0,this.progressModel.total?(this.progressModel.worked=this.progressModel.total,e?i.g.setTimeout(this.off,800):this.off()):e?i.g.setTimeout(this.off,800):this.off()}off(){this.progressModel.total=void 0,this.progressModel.worked=0,this.progressModel.show=!1,this.progressModel.fade=!1}on(){this.progressModel.show=!0}};r.__decorate([o.observable,r.__metadata("design:type",Object)],s.prototype,"progressModel",void 0),r.__decorate([o.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],s.prototype,"off",null),r.__decorate([o.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],s.prototype,"on",null),s=r.__decorate([n.Injectable({multiple:!0})],s),t.ProgressIndicator=s},23943:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(34865),a=i(65777),c=i(33608),l=i(80433),u=i(13205),d=i(88774),h=i(63804),p=i(49253);let f=class{constructor(){this.progressIndicatorRegistry=new Map,this.windowProgressStack=[],this.windowProgressStatusEntry=void 0}registerProgressIndicator(e,t){const i=t||this.injector.get(c.ProgressIndicator);return this.progressIndicatorRegistry.set(e,i),{dispose:()=>this.progressIndicatorRegistry.delete(e)}}getIndicator(e){return this.progressIndicatorRegistry.get(e)}withProgress(e,t,i){const r=e.location;if("string"==typeof r){if(this.progressIndicatorRegistry.get(r))return this.withCompositeProgress(r,t,Object.assign(Object.assign({},e),{location:r}));throw new Error(`Bad progress location: ${r}`)}switch(r){case o.ProgressLocation.Notification:return this.withNotificationProgress(Object.assign(Object.assign({},e),{location:r}),t,i);case o.ProgressLocation.Window:return this.withWindowProgress(Object.assign(Object.assign({},e),{location:r}),t);case o.ProgressLocation.Explorer:return this.withCompositeProgress("explorer",t,Object.assign(Object.assign({},e),{location:r}));case o.ProgressLocation.Scm:return this.withCompositeProgress("scm",t,Object.assign(Object.assign({},e),{location:r}));case o.ProgressLocation.Extensions:return this.withCompositeProgress("extensions",t,Object.assign(Object.assign({},e),{location:r}));default:throw new Error(`Bad progress location: ${r}`)}}withWindowProgress(e,t){const i=[e,new o.Progress((()=>this.updateWindowProgress()))],r=t(i[1]);let n=setTimeout((()=>{n=void 0,this.windowProgressStack.unshift(i),this.updateWindowProgress(),Promise.all([s.timeout(150),r]).finally((()=>{const e=this.windowProgressStack.indexOf(i);this.windowProgressStack.splice(e,1),this.updateWindowProgress()}))}),150);return r.finally((()=>clearTimeout(n)))}updateWindowProgress(e=0){var t;if(e{this.windowProgressStatusEntry=e}))}else null===(t=this.windowProgressStatusEntry)||void 0===t||t.dispose(),this.windowProgressStatusEntry=void 0}withCompositeProgress(e,t,i){const r=this.progressIndicatorRegistry.get(e);let n;const o=t({report:e=>{n&&("number"==typeof e.increment&&n.worked(e.increment),"number"==typeof e.total&&n.total(e.total))}});return r&&("number"==typeof i.total?(n=r.show(i.total,i.delay),o.catch((()=>{})).finally((()=>n?n.done():void 0))):r.showWhile(o,i.delay)),o}withNotificationProgress(e,t,i){const r=new class extends o.Disposable{constructor(){super(),this._onDidReport=this.registerDispose(new o.Emitter),this.onDidReport=this._onDidReport.event,this._step=void 0,this._done=!1,this.promise=t(this),this.promise.finally((()=>{this.dispose()}))}get step(){return this._step}get done(){return this._done}report(e){this._step=e,this._onDidReport.fire(e)}cancel(e){null==i||i(e),this.dispose()}dispose(){this._done=!0,super.dispose()}},n=()=>{let t;const i=new Promise((e=>t=e));return this.withWindowProgress({location:o.ProgressLocation.Window,title:e.title?l.parseLinkedText(e.title).toString():void 0},(e=>{function n(t){t.message&&e.report({message:l.parseLinkedText(t.message).toString()})}r.step&&n(r.step);const s=r.onDidReport((e=>n(e)));return i.finally((()=>s.dispose())),o.Event.once(r.onDispose)((()=>t())),i})),o.toDisposable((()=>t()))};let a,f,g=!1;const m=(t,i,s)=>{var l;const m=[];e.buttons,e.cancellable&&m.push(o.localize("ButtonCancel"));const v=Math.random().toString(18).slice(2,5),y=this.injector.get(c.ProgressIndicator);let _;this.registerProgressIndicator(v,y);return a=h.createElement(p.ProgressBar,{progressModel:y.progressModel}),null===(l=u.open(t,d.MessageType.Info,!0,v,m,a,0,(()=>{return e=!1,o.dispose(_),void(e||r.done||(_=n()));var e})))||void 0===l||l.then((()=>{r.cancel()})),"number"==typeof s&&s>=0?(f=y.show(100),f.worked(s)):(g=!0,f=y.show(!0)),v};let v,y,_;const b=t=>{var i;_=(null==t?void 0:t.message)&&e.title?`${e.title}: ${t.message}`:e.title||(null==t?void 0:t.message),!v&&_&&("number"==typeof e.delay&&e.delay>0?"number"!=typeof y&&(y=setTimeout((()=>v=m(_,e.silent,null==t?void 0:t.increment)),e.delay)):v=m(_,e.silent,null==t?void 0:t.increment)),v&&("number"==typeof(null==t?void 0:t.increment)&&("number"==typeof(i=t.increment)&&i>=0?(g&&(g=!1,f.total(100)),f.worked(i)):f.total(0)),_&&d.update(v,_))};b(r.step);const w=r.onDidReport((e=>b(e)));return o.Event.once(r.onDispose)((()=>w.dispose())),(async()=>{try{"number"==typeof e.delay&&e.delay>0?await r.promise:await Promise.all([s.timeout(800),r.promise])}finally{clearTimeout(y),v&&(d.close(v),this.progressIndicatorRegistry.delete(v))}})(),r.promise}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],f.prototype,"injector",void 0),r.__decorate([n.Autowired(o.CommandService),r.__metadata("design:type",Object)],f.prototype,"commandService",void 0),f=r.__decorate([n.Injectable()],f),t.ProgressService=f},76126:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(43735);t.QuickOpenMode=n.Mode;const o=i(41103);t.HideReason=o.HideReason;class s{constructor(e={}){this.options=e}getTooltip(){return this.options.tooltip||this.getLabel()}getLabel(){return this.options.label}getLabelHighlights(){return this.options.labelHighlights||[]}getDescription(){return this.options.description}getDescriptionHighlights(){return this.options.descriptionHighlights}getDetail(){return this.options.detail}getDetailHighlights(){return this.options.detailHighlights}isHidden(){return this.options.hidden||!1}getUri(){return this.options.uri}getIconClass(){return this.options.iconClass}getKeybinding(){return this.options.keybinding}run(e){return!!this.options.run&&this.options.run(e)}}t.QuickOpenItem=s;t.QuickOpenGroupItem=class extends s{getGroupLabel(){return this.options.groupLabel}showBorder(){return this.options.showBorder||!1}},t.QuickOpenService=Symbol("QuickOpenService"),function(e){e.defaultOptions=Object.freeze({enabled:!0,prefix:"",placeholder:"",onClose:()=>{},valueSelection:[-1,-1],fuzzyMatchLabel:!1,fuzzyMatchDetail:!1,fuzzyMatchDescription:!1,fuzzySort:!1,skipPrefix:0,ignoreFocusOut:!1,password:!1,showItemsWithoutHighlight:!1,selectIndex:()=>-1,title:""}),e.resolve=function(t={},i=e.defaultOptions){return Object.assign({},i,t)}}(t.QuickOpenOptions||(t.QuickOpenOptions={})),t.QuickPickService=Symbol("QuickPickService"),t.PrefixQuickOpenService=Symbol("PrefixQuickOpenService"),t.IQuickInputService=Symbol("IQuickInputService"),function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(t.QuickTitleButtonSide||(t.QuickTitleButtonSide={}));class a{constructor(e){this.id=e}}t.ThemeIcon=a,a.File=new a("file"),a.Folder=new a("folder"),t.QuickOpenContribution=Symbol("QuickOpenContribution"),r.__exportStar(i(72266),t)},72266:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(27763),s=i(34865),a=i(65686),c=i(57074),l="OPENED_FILE",u="OPENED_FILES_POSITION";let d=class extends s.WithEventBus{async updateMostRecentlyOpenedFile(e,t){const i=await this.recentStorage.getScopeStorage(),r=i.get(u)||{};r[e]=`#${t.lineNumber},${t.column}`,i.set(u,r)}async setMostRecentlyOpenedFile(e,t){const i=await this.recentStorage.getScopeStorage();let r=await this.getMostRecentlyOpenedFiles();const n=r.findIndex((t=>t===e));n>-1&&r.splice(n,1),t||r.unshift(e),r.length>50&&(r=r.slice(0,50)),i.set(l,r)}async getMostRecentlyOpenedFiles(e){const t=await this.recentStorage.getScopeStorage(),i=t.get(l)||[],r=t.get(u)||{};return e?i.map((e=>r[e]?e+r[e]:e)):i}handleFilesDelete(e){e.payload.forEach((e=>{e.type===a.FileChangeType.DELETED&&e.uri&&this.setMostRecentlyOpenedFile(e.uri,!0)}))}};r.__decorate([n.Autowired(o.RecentStorage),r.__metadata("design:type",o.RecentStorage)],d.prototype,"recentStorage",void 0),r.__decorate([a.OnEvent(c.FilesChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.FilesChangeEvent]),r.__metadata("design:returntype",void 0)],d.prototype,"handleFilesDelete",null),d=r.__decorate([n.Injectable()],d),t.RecentFilesManager=d},87655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){const i=[];if(Array.isArray(e)&&e.length)for(const t of e)t instanceof r?i.push(t.raw):i.push(t);return i.join(" "+t+" ")}t.IRawContextKey=class{};class r{constructor(e,t){this.key=e,this.defaultValue=t}static and(...e){return e.length?i(e,"&&"):""}static or(...e){return e.length?i(e,"||"):""}bind(e){return e.createKey(this.key,this.defaultValue)}getValue(e){return e.getContextValue(this.key)}get raw(){return this.key}get not(){return"!"+this.raw}equalsTo(e){return this.raw+" == "+e}notEqualTo(e){return this.raw+" != "+e}regexMatches(e){const t=e?`/${e.source}/${e.ignoreCase?"i":""}`:"/invalid/";return this.raw+" =~ "+t}}t.RawContextKey=r},89303:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(65686);t.useUpdateOnEvent=function(e,t=[],i){const[,o]=r.useState(),s=r.useCallback((()=>o({})),[]);r.useEffect((()=>{const t=new n.Disposable;return t.addDispose(e((e=>{i?i(e)&&s():s()}))),()=>{t.dispose()}}),t)}},33698:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(27537);t.useHotKey=(e,t)=>{const i=r.useCallback((()=>e.reduce(((e,t)=>{const i=n(t);return"number"==typeof i&&(e[i]=!1),e}),{})),[e]),[o,s]=r.useState(i);return{onKeyDown:function(e){s((t=>e in t?Object.assign(Object.assign({},t),{[e]:!0}):t))},onKeyUp:function(){Object.values(o).every((e=>!0===e))&&t(),s((e=>Object.keys(o).reduce(((e,t)=>(e[t]=!1,e)),{})))}}}},99396:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(98575),t),r.__exportStar(i(83590),t),r.__exportStar(i(89303),t)},98575:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(60157);t.useInjectable=function(e,t){const{injector:i}=r.useContext(n.ConfigContext),o=r.useMemo((()=>i.get(e,t)),[i,e]);return r.useEffect((()=>()=>{let e=i;for(;e&&!e.hasInstance(o);)e=e.parent;var t;e||(t=o)&&t.dispose&&o.dispose()}),[o]),o}},83590:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804);t.usePortal=function(e){const t=r.useRef(null);return r.useEffect((()=>{const i=document.querySelector(`#${e}`),r=i||function(e){const t=document.createElement("div");return t.setAttribute("id",e),t}(e);return i||document.body.appendChild(r),t.current&&r.appendChild(t.current),()=>{t.current&&t.current.remove(),-1===r.childNodes.length&&r.remove()}}),[]),t.current||(t.current=document.createElement("div")),t.current}},23238:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804);t.AppConfig=Symbol("AppConfig"),t.ConfigContext=n.createContext({workspaceDir:"",injector:null,wsPath:"",layoutConfig:{},extWorkerHost:""}),t.ConfigProvider=function(e){const i=e.value,{extraContextProvider:o}=i,s=r.__rest(i,["extraContextProvider"]),a=n.createElement(t.ConfigContext.Provider,{value:s},n.createElement(t.ConfigContext.Consumer,null,(t=>s===t?e.children:null)));return o?n.createElement(o,{children:a}):a}},60157:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(23238),t),r.__exportStar(i(85634),t)},85634:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(65686),s=i(99396),a=i(8308),c=i(23238),l=i(88774),u=o.getDebugLogger();var d;t.SlotLocation={top:"top",left:"left",right:"right",main:"main",statusBar:"statusBar",bottom:"bottom",extra:"extra",float:"float",action:"action",bottomBar:"bottomBar",bottomPanel:"bottomPanel",leftBar:"leftBar",leftPanel:"leftPanel",rightBar:"rightBar",rightPanel:"rightPanel"},t.getSlotLocation=function(e,t){for(const i of Object.keys(t))if(t[i].modules&&t[i].modules.indexOf(e)>-1)return i;return o.getDebugLogger().warn(`没有找到${e}所对应的位置!`),""},function(e){e.activeViewlet="activeViewlet",e.activePanel="activePanel",e.activeExtendViewlet="activeExtendViewlet"}(d=t.TabbarContextKeys||(t.TabbarContextKeys={})),t.getTabbarCtxKey=function(e){return{[t.SlotLocation.left]:d.activeViewlet,[t.SlotLocation.right]:d.activeExtendViewlet,[t.SlotLocation.bottom]:d.activePanel}[e]||"activeExtendViewlet"};class h extends n.Component{constructor(){super(...arguments),this.state={error:null,errorInfo:null}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t}),setTimeout((()=>{throw e})),u.error(t)}update(){this.setState({error:null,errorInfo:null})}render(){return this.state.errorInfo?o.isDevelopment()?n.createElement("div",null,n.createElement("h2",null,"模块渲染异常"),n.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error&&this.state.error.toString(),n.createElement("br",null),this.state.errorInfo.componentStack),n.createElement(l.Button,{onClick:()=>this.update()},"重新加载")):n.createElement("div",null,n.createElement("p",null,"模块渲染异常"),n.createElement(l.Button,{onClick:()=>this.update()},"重新加载")):this.props.children}}t.ErrorBoundary=h,t.allSlot=[],t.SlotDecorator=e=>{var{slot:i}=e,o=r.__rest(e,["slot"]);const s=n.useRef();return n.useEffect((()=>{s.current&&t.allSlot.push({slot:i,dom:s.current})}),[s]),n.createElement("div",{ref:e=>s.current=e,className:"resize-wrapper"},o.children)};class p{constructor(){this.rendererRegistry=new Map}static DefaultRenderer({components:e}){return e&&n.createElement(h,null,e.map(((e,t)=>{const i=e.views[0].component;return n.createElement(i,Object.assign({},e.options&&e.options.initialProps,{key:`${i.name}-${t}`}))})))}registerSlotRenderer(e,t){this.rendererRegistry.set(e,t)}getSlotRenderer(e){return this.rendererRegistry.get(e)||p.DefaultRenderer}}t.SlotRendererRegistry=p,t.slotRendererRegistry=new p,t.SlotRenderer=function(e){var i,{slot:l}=e,u=r.__rest(e,["slot"]);const d=s.useInjectable(a.ComponentRegistry),p=null===(i=s.useInjectable(c.AppConfig).layoutConfig[l])||void 0===i?void 0:i.modules;p&&p.length||o.getDebugLogger().warn(`${l}位置未声明任何视图`);const f=[];p.forEach((e=>{const t=d.getComponentRegistryInfo(e);t?f.push(t):o.getDebugLogger().warn(`${e}对应的组件不存在,请检查`)}));const g=t.slotRendererRegistry.getSlotRenderer(l);return n.createElement(h,null,n.createElement(t.SlotDecorator,{slot:l},n.createElement(g,Object.assign({components:f},u))))},t.SlotRendererContribution=Symbol("SlotRendererContribution"),t.ComponentRenderer=function({Component:e,initialProps:t}){return Array.isArray(e)?e&&n.createElement(h,null,e.map(((e,i)=>n.createElement(e,Object.assign({},t||{},{key:`${e.name}-${i}`}))))):e&&n.createElement(h,null,n.createElement(e,Object.assign({},t||{})))}},37067:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(10633);t.IClipboardService=Symbol("IClipboardService");let s=class{async writeText(e){try{return await navigator.clipboard.writeText(e)}catch(e){this.logger.error(e)}const t=document.activeElement,i=document.createElement("textarea");i.setAttribute("aria-hidden","true"),document.body.appendChild(i),i.style.height="1px",i.style.width="1px",i.style.position="absolute",i.value=e,i.focus(),i.select(),document.execCommand("copy"),t instanceof HTMLElement&&t.focus(),document.body.removeChild(i)}async readText(){try{if(!navigator.clipboard)throw new Error("当前环境不支持剪贴板API");return await navigator.clipboard.readText()}catch(e){return this.logger.error(e),""}}};r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],s.prototype,"logger",void 0),s=r.__decorate([n.Injectable()],s),t.BrowserClipboardService=s},71543:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(60157);t.IExternalUriService=Symbol("IExternalUriService");let a=class{resolveExternalUri(e){const t=this.extractLocalHost(e);return t?this.toRemoteUrl(e,t):e}toRemoteUrl(e,t){const i=this.toRemoteHost(t);return n.URI.from({scheme:n.URI.parse(window.location.href).scheme,authority:i,path:e.path.toString(),fragment:e.fragment,query:e.query})}toRemoteHost(e){return`${this.appConfig.remoteHostname||window.location.hostname}:${e.port}`}extractLocalHost(e){if("http"!==e.scheme&&"https"!==e.scheme)return;const t=/^(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d+)$/.exec(e.authority);return t?{address:t[1],port:+t[2]}:void 0}};r.__decorate([o.Autowired(s.AppConfig),r.__metadata("design:type",Object)],a.prototype,"appConfig",void 0),a=r.__decorate([o.Injectable()],a),t.ExternalUriService=a},65777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(8140),t),r.__exportStar(i(78743),t),r.__exportStar(i(48552),t),r.__exportStar(i(37067),t),r.__exportStar(i(71543),t)},8140:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(88430),s=i(19745),a=i(65686),c=i(62034),l=i(80431);let u=class{canHandle(e,t){return e instanceof a.URI?1:0}getIcon(e,t){return f(e,t)||l.getIcon("ellipsis")}getName(e){return e.displayName}getLongName(e){return e.path.toString()}};u=r.__decorate([s.Injectable()],u),t.DefaultUriLabelProvider=u;let d,h,p=class extends a.WithEventBus{constructor(){super(),this.providers=[],this.cachedProviderMap=new a.LRUMap(1e3,500),this.onDidChangeEmitter=new a.Emitter,this.registerLabelProvider(this.defaultLabelProvider)}get onDidChange(){return this.onDidChangeEmitter.event}getProviderForUri(e,t){const i=e.toString();this.cachedProviderMap.has(i)||this.cachedProviderMap.set(i,{});const r=this.cachedProviderMap.get(i),n=function(e){return e?[e.isDirectory?"0":"1",e.isOpenedDirectory?"0":"1",e.isSymbolicLink?"0":"1"].join(""):"default"}(t);if(r[n])return r[n];{let i,o=-1;for(const r of this.providers){const n=r.canHandle(e,t);n>o&&(i=r,o=n)}return r[n]=i,i}}registerLabelProvider(e){this.cachedProviderMap.clear();const t=new a.Disposable;return e.onDidChange&&t.addDispose(e.onDidChange((e=>{this.onDidChangeEmitter.fire(e),this.cachedProviderMap.delete(e.toString())}))),t.addDispose(a.addElement(this.providers,e,!0)),t.addDispose({dispose:()=>{this.cachedProviderMap.clear()}}),t}getIcon(e,t){const i=this.getProviderForUri(e,t);return i?i.getIcon(e,t):""}getName(e){const t=this.getProviderForUri(e);return t?t.getName(e):""}getLongName(e){const t=this.getProviderForUri(e);return t?t.getLongName(e):""}};r.__decorate([s.Autowired(),r.__metadata("design:type",u)],p.prototype,"defaultLabelProvider",void 0),p=r.__decorate([s.Injectable(),r.__metadata("design:paramtypes",[])],p),t.LabelService=p;const f=(e,t)=>{const i=t&&t.isDirectory?["folder-icon"]:["file-icon"];let r;if("data"===e.scheme){r=a.DataUri.parseMetaData(n.Uri.file(e.toString())).get(a.DataUri.META_DATA_LABEL)}else r=g(m(e).toLowerCase());if(t&&t.isDirectory)i.push(`${r}-name-folder-icon`);else{if(r){i.push(`${r}-name-file-icon`);const e=r.split(".");for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IStatusBarService=Symbol("IStatusBarService"),function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(t.StatusBarAlignment||(t.StatusBarAlignment={}))},78743:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65579),s=i(65686),a=i(10633);t.StorageService=Symbol("IStorageService");let c=class{constructor(){this.init()}get storage(){return window.localStorage}init(){"undefined"!=typeof window&&window.localStorage?this.testLocalStorage():this.logger.warn("The browser doesn't support localStorage. state will not be persisted across sessions.")}setData(e,t){if(void 0!==t)try{this.storage.setItem(this.prefix(e),JSON.stringify(t))}catch(e){this.showDiskQuotaExceededMessage()}else this.removeData(e)}getData(e,t){const i=this.storage.getItem(this.prefix(e));return s.isUndefinedOrNull(i)?t:JSON.parse(i)}removeData(e,t){this.storage.removeItem(this.prefix(e))}testLocalStorage(){const e=this.prefix("Test");try{this.storage.setItem(e,JSON.stringify(new Array(6e4)))}catch(e){this.showDiskQuotaExceededMessage()}finally{this.storage.removeItem(e)}}async showDiskQuotaExceededMessage(){this.logger.log("Read Instructions","Clear Local Storage","Your preferred browser's local storage is almost full.\n To be able to save your current workspace layout or data, you may need to free up some space.")}};r.__decorate([n.Autowired(),r.__metadata("design:type",a.Logger)],c.prototype,"logger",void 0),c=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],c);let l=class extends c{prefix(e){return`kt-global:${e}`}};l=r.__decorate([n.Injectable()],l),t.GlobalBrowserStorageService=l;let u=class extends c{prefix(e){return`kt:${"undefined"==typeof window?"":window.location.pathname}:${e}`}};u=r.__decorate([n.Injectable()],u),t.ScopedBrowserStorageService=u;let d=class extends u{constructor(){super(),o.warning(!1,"LocalStorageService is deprecated please consider using `ScopedBrowserStorageService` instead")}};d=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],d),t.LocalStorageService=d},80431:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(20172),n=i(84151),o=i(93210);function s(e){return`octicon octicon-${e}`}t.IDE_OCTICONS_CN_CSS=o.IDE_OCTICONS_CN_CSS,t.IDE_CODICONS_CN_CSS=o.IDE_CODICONS_CN_CSS,t.DEFAULT_CDN_ICON=o.IDE_ICONFONT_CN_CSS,t.getIcon=n.getKaitianIcon,t.updateIconMap=n.updateKaitianIconMap,t.getOctIcon=s,t.CODICON_OWNER="codicon";const a=["add","plus","gist-new","repo-create","lightbulb","light-bulb","repo","repo-delete","gist-fork","repo-forked","git-pull-request","git-pull-request-abandoned","record-keys","keyboard","tag","tag-add","tag-remove","person","person-add","person-follow","person-outline","person-filled","git-branch","git-branch-create","git-branch-delete","source-control","mirror","mirror-public","star","star-add","star-delete","star-empty","comment","comment-add","alert","warning","search","search-save","log-out","sign-out","log-in","sign-in","eye","eye-unwatch","eye-watch","circle-filled","primitive-dot","close-dirty","debug-breakpoint","debug-breakpoint-disabled","debug-hint","primitive-square","edit","pencil","info","issue-opened","gist-private","git-fork-private","lock","mirror-private","close","remove-close","x","repo-sync","sync","clone","desktop-download","beaker","microscope","vm","device-desktop","file","file-text","more","ellipsis","kebab-horizontal","mail-reply","reply","organization","organization-filled","organization-outline","new-file","file-add","new-folder","file-directory-create","trash","trashcan","history","clock","folder","file-directory","symbol-folder","logo-github","mark-github","github","terminal","console","repl","zap","symbol-event","error","stop","variable","symbol-variable","array","symbol-array","symbol-module","symbol-package","symbol-namespace","symbol-object","symbol-method","symbol-function","symbol-constructor","symbol-boolean","symbol-null","symbol-numeric","symbol-number","symbol-structure","symbol-struct","symbol-parameter","symbol-type-parameter","symbol-key","symbol-text","symbol-reference","go-to-file","symbol-enum","symbol-value","symbol-ruler","symbol-unit","activate-breakpoints","archive","arrow-both","arrow-down","arrow-left","arrow-right","arrow-small-down","arrow-small-left","arrow-small-right","arrow-small-up","arrow-up","bell","bold","book","bookmark","debug-breakpoint-conditional-unverified","debug-breakpoint-conditional","debug-breakpoint-conditional-disabled","debug-breakpoint-data-unverified","debug-breakpoint-data","debug-breakpoint-data-disabled","debug-breakpoint-log-unverified","debug-breakpoint-log","debug-breakpoint-log-disabled","briefcase","broadcast","browser","bug","calendar","case-sensitive","check","checklist","chevron-down","chevron-left","chevron-right","chevron-up","chrome-close","chrome-maximize","chrome-minimize","chrome-restore","circle-outline","debug-breakpoint-unverified","circle-slash","circuit-board","clear-all","clippy","close-all","cloud-download","cloud-upload","code","collapse-all","color-mode","comment-discussion","credit-card","dash","dashboard","database","debug-continue","debug-disconnect","debug-pause","debug-restart","debug-start","debug-step-into","debug-step-out","debug-step-over","debug-stop","debug","device-camera-video","device-camera","device-mobile","diff-added","diff-ignored","diff-modified","diff-removed","diff-renamed","diff","discard","editor-layout","empty-window","exclude","extensions","eye-closed","file-binary","file-code","file-media","file-pdf","file-submodule","file-symlink-directory","file-symlink-file","file-zip","files","filter","flame","fold-down","fold-up","fold","folder-active","folder-opened","gear","gift","gist-secret","gist","git-commit","git-compare","compare-changes","git-merge","github-action","github-alt","globe","grabber","graph","gripper","heart","home","horizontal-rule","hubot","inbox","issue-closed","issue-reopened","issues","italic","jersey","json","kebab-vertical","key","law","lightbulb-autofix","link-external","link","list-ordered","list-unordered","live-share","loading","location","mail-read","mail","markdown","megaphone","mention","milestone","mortar-board","move","multiple-windows","mute","no-newline","note","octoface","open-preview","package","paintcan","pin","play","run","plug","preserve-case","preview","project","pulse","question","quote","radio-tower","reactions","references","refresh","regex","remote-explorer","remote","remove","replace-all","replace","repo-clone","repo-force-push","repo-pull","repo-push","report","request-changes","rocket","root-folder-opened","root-folder","rss","ruby","save-all","save-as","save","screen-full","screen-normal","search-stop","server","settings-gear","settings","shield","smiley","sort-precedence","split-horizontal","split-vertical","squirrel","star-full","star-half","symbol-class","symbol-color","symbol-constant","symbol-enum-member","symbol-field","symbol-file","symbol-interface","symbol-keyword","symbol-misc","symbol-operator","symbol-property","wrench","wrench-subaction","symbol-snippet","tasklist","telescope","text-size","three-bars","thumbsdown","thumbsup","tools","triangle-down","triangle-left","triangle-right","triangle-up","twitter","unfold","unlock","unmute","unverified","verified","versions","vm-active","vm-outline","vm-running","watch","whitespace","whole-word","window","word-wrap","zoom-in","zoom-out","list-filter","list-flat","list-selection","selection","list-tree","debug-breakpoint-function-unverified","debug-breakpoint-function","debug-breakpoint-function-disabled","debug-stackframe-active","debug-stackframe-dot","debug-stackframe","debug-stackframe-focused","debug-breakpoint-unsupported","symbol-string","debug-reverse-continue","debug-step-back","debug-restart-frame","debug-alt","call-incoming","call-outgoing","menu","expand-all","feedback","group-by-ref-type","ungroup-by-ref-type","account","bell-dot","debug-console","library","output","run-all","sync-ignored","pinned","github-inverted","server-process","server-environment","pass","stop-circle","play-circle","record","debug-alt-small","vm-connect","cloud","merge","export","graph-left","magnet","notebook","redo","check-all","pinned-dirty","pass-filled","circle-large-filled","circle-large-outline"];function c(e,i=t.CODICON_OWNER,r=i===t.CODICON_OWNER){return r&&i===t.CODICON_OWNER&&!a.includes(e)?s(e):`${i} ${i}-${e}`}t.getExternalIcon=c,t.getSymbolIcon=(()=>{const e=Object.create(null);return e[r.SymbolKind.File]="file",e[r.SymbolKind.Module]="module",e[r.SymbolKind.Namespace]="namespace",e[r.SymbolKind.Package]="package",e[r.SymbolKind.Class]="class",e[r.SymbolKind.Method]="method",e[r.SymbolKind.Property]="property",e[r.SymbolKind.Field]="field",e[r.SymbolKind.Constructor]="constructor",e[r.SymbolKind.Enum]="enum",e[r.SymbolKind.Interface]="interface",e[r.SymbolKind.Function]="function",e[r.SymbolKind.Variable]="variable",e[r.SymbolKind.Constant]="constant",e[r.SymbolKind.String]="string",e[r.SymbolKind.Number]="number",e[r.SymbolKind.Boolean]="boolean",e[r.SymbolKind.Array]="array",e[r.SymbolKind.Object]="object",e[r.SymbolKind.Key]="key",e[r.SymbolKind.Null]="null",e[r.SymbolKind.EnumMember]="enum-member",e[r.SymbolKind.Struct]="struct",e[r.SymbolKind.Event]="event",e[r.SymbolKind.Operator]="operator",e[r.SymbolKind.TypeParameter]="type-parameter",function(t,i){return c(`symbol-${e[t]||"property"}`)}})()},93210:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDE_ICONFONT_CN_CSS="//at.alicdn.com/t/font_1432262_inrjptvkoik.css",t.IDE_ICONFONT_CN_JS=t.IDE_ICONFONT_CN_CSS.replace(/\.css$/,".js"),t.IDE_OCTICONS_CN_CSS="//gw.alipayobjects.com/os/Kaitian/c7ae5acb-da70-4f05-b83d-93b345dc5c53/octicons-cdn.css";const r="vscode-codicons",n=i(77993).HO[r];t.IDE_CODICONS_CN_CSS=`//gw.alipayobjects.com/os/lib/${r}/${n}/dist/codicon.css`},68139:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(27196),s=i(19745),a=i(52338),c=i(99396),l=i(65686),u=i(62034),d=i(60157),h=i(88774),p=i(83880),f=i(42610);t.ToolbarActionBtn=e=>{const t=c.useInjectable(d.AppConfig),i=n.useRef(),[r,o]=n.useState(e.defaultState||"default"),[s,a]=n.useState(void 0),f=c.useInjectable(p.PreferenceService),[,g]=n.useState(),m=n.useCallback((()=>g({})),[]),{defaultButtonStyle:v={}}=e.preferences||{},_=Object.assign(Object.assign(Object.assign({title:e.title,iconClass:e.iconClass,showTitle:"icon"!==f.get("toolbar.buttonDisplay"),btnStyle:"button"},v),e.defaultStyle),(e.styles||{})[r]||{});s&&(_.title=s),"button"!==_.btnStyle&&(_.showTitle=!1);const b=n.useRef(),w=n.useRef(e.inDropDown);n.useEffect((()=>{w.current=e.inDropDown}),[e.inDropDown]),n.useEffect((()=>{const n=new l.Disposable;if(n.addDispose(f.onSpecificPreferenceChange("toolbar.buttonDisplay",(()=>{m()}))),i.current&&e.delegate){const s=()=>w.current?document.querySelector(`#toolbar-location-${e.location} .kt-toolbar-more`):i.current;b.current=t.injector.get(y,[i.current,e.id,(e,t)=>{o(e),a(t)},()=>r,t,s,e.popoverComponent,e.popoverStyle,e.popoverId]),e.delegate(b.current),n.addDispose(b.current),n.addDispose({dispose:()=>{e.delegate&&e.delegate(void 0)}})}return()=>n.dispose()}),[]);const S=e.inDropDown?null:n.createElement("div",{className:_.iconClass+" kt-toolbar-action-btn-icon",title:_.title,style:Object.assign(Object.assign(Object.assign({color:_.iconForeground,backgroundColor:_.iconBackground},_.width?{width:_.width}:null),_.height?{height:_.height}:null),_.iconSize?{fontSize:_.iconSize,WebkitMaskSize:_.iconSize}:null)}),C=_.showTitle||e.inDropDown?n.createElement("div",{className:"kt-toolbar-action-btn-title",style:{color:_.titleForeground,backgroundColor:_.titleBackground,fontSize:_.titleSize}},_.title):null,E={onClick:t=>{b.current&&b.current._onClick.fire(t),e.inDropDown&&e.closeDropDown()},onMouseLeave:e=>{b.current&&b.current._onMouseLeave.fire(e)},onMouseEnter:e=>{b.current&&b.current._onMouseEnter.fire(e)}},O={style:Object.assign({backgroundColor:_.background},_.width?{padding:0}:null)};let k;return k=e.inDropDown?n.createElement("div",Object.assign({className:u({"kt-toolbar-action-btn":!0,"action-btn-in-dropdown":!0})},E,O,{ref:i}),S,C):"button"===_.btnStyle&&"vertical"!==_.btnTitleStyle?n.createElement(h.Button,Object.assign({type:"default",size:"small"},E,O),S,C):n.createElement("div",Object.assign({className:u({"kt-toolbar-action-btn":!0,"kt-toolbar-action-btn-button":"button"===_.btnStyle,"kt-toolbar-action-btn-inline":"button"!==_.btnStyle,"kt-toolbar-action-btn-vertical":"vertical"===_.btnTitleStyle,"kt-toolbar-action-btn-horizontal":"vertical"!==_.btnTitleStyle})},E),n.createElement(h.Button,Object.assign({type:"default",size:"small"},O),S),C),n.createElement("div",{className:"kt-toolbar-action-btn-wrapper",ref:i},k,e.popoverComponent&&n.createElement("div",{className:"kt-toolbar-popover","data-toolbar-no-context":!0}))},t.createToolbarActionBtn=function(e){return i=>n.createElement(t.ToolbarActionBtn,Object.assign({},i,e))};class g extends l.BasicEvent{}t.ToolbarActionBtnClickEvent=g;const m=new Map,v=e=>{const[t,i]=n.useState();n.useEffect((()=>{const t=e.delegate.onChangeContext((e=>{i(e)}));return()=>{t.dispose()}}),[]);const r=n.Children.map(e.children,(e=>n.isValidElement(e)?n.cloneElement(e,{context:t}):null));return n.createElement(n.Fragment,null,r)};let y=class{constructor(e,t,i,r,n,o,s,a,c){this.element=e,this.actionId=t,this._setState=i,this._getState=r,this.context=n,this.getPopoverParent=o,this.popoverComponent=s,this.popoverStyle=a,this.popoverId=c,this._onClick=new l.Emitter,this.onClick=this._onClick.event,this._onMouseLeave=new l.Emitter,this.onMouseLeave=this._onClick.event,this._onMouseEnter=new l.Emitter,this.onMouseEnter=this._onClick.event,this._onChangeState=new l.Emitter,this.onChangeState=this._onChangeState.event,this.onChangeContextEvent=new l.Emitter,this.onChangeContext=this.onChangeContextEvent.event,this._onDidChangePopoverVisibility=new l.Emitter,this.onDidChangePopoverVisibility=this._onDidChangePopoverVisibility.event,this.popoverComponent&&(this._popOverElement=m.get(t),this.popOverContainer=e.querySelector(".kt-toolbar-popover")),this.toolbarPopover.onDidRegisterPopoverEvent((e=>{e===this.popoverId&&(this.popoverComponent=this.toolbarPopover.getComponent(this.popoverId),this._popOverElement&&this.hidePopOver().then((()=>this.showPopOver())))}))}dispose(){this._onClick.dispose(),this._onMouseEnter.dispose(),this._onMouseLeave.dispose(),this.popOverContainer&&(this.popOverContainer.remove(),this.popOverContainer=void 0),this._popOverClickOutsideDisposer&&this._popOverClickOutsideDisposer.dispose()}setState(e,t){const i=this._getState();this._setState(e,t),this._onChangeState.fire({from:i,to:e})}setContext(e){this.onChangeContextEvent.fire(e)}getRect(){return this.element.getBoundingClientRect()}getPopOverContainer(){return this.popOverContainer}async showPopOver(e){if(!this.popOverContainer)return;this._popOverElement||(this._popOverElement=new Promise((e=>{const t=document.createElement("div"),i=this.popoverComponent;o.render(n.createElement(d.ConfigProvider,{value:this.context},n.createElement(v,{delegate:this},n.createElement(i,null))),t,(()=>{e(t)}))})),m.set(this.actionId,this._popOverElement));const t=Object.assign(Object.assign({},this.popoverStyle),e);"top"===t.position?(this.popOverContainer.classList.add("kt-toolbar-popover-top"),this.popOverContainer.classList.remove("kt-toolbar-popover-bottom")):(this.popOverContainer.classList.remove("kt-toolbar-popover-top"),this.popOverContainer.classList.add("kt-toolbar-popover-bottom")),this.popOverContainer.remove();const i=this.getPopoverParent()||this.element;i.append(this.popOverContainer);const r=i.getBoundingClientRect();this.popOverContainer.style.setProperty("--button-width",r.width+"px");let s="number"==typeof t.horizontalOffset?t.horizontalOffset:30;s=Math.min(s,window.innerWidth-r.left-r.width-2),this.popOverContainer.style.setProperty("--offset-size",s+"px"),this.popOverContainer.classList.add("kt-toolbar-popover-visible"),t.noContainerStyle?this.popOverContainer.classList.remove("kt-toolbar-popover-default"):this.popOverContainer.classList.add("kt-toolbar-popover-default");const a=new f.DomListener(this.popOverContainer,"animationend",(()=>{var e;a.dispose(),null===(e=this.popOverContainer)||void 0===e||e.classList.add("kt-toolbar-popover-animationend")}));return this._popOverElement.then((e=>{this._popOverClickOutsideDisposer&&(this._popOverClickOutsideDisposer.dispose(),this._popOverClickOutsideDisposer=void 0),this.popOverContainer&&e.parentElement!==this.popOverContainer&&this.popOverContainer.append(e),this._onDidChangePopoverVisibility.fire(!0),!1!==t.hideOnClickOutside&&setTimeout((()=>{this._popOverClickOutsideDisposer&&(this._popOverClickOutsideDisposer.dispose(),this._popOverClickOutsideDisposer=void 0);const t=new l.Disposable;t.addDispose(new f.DomListener(window,"click",(t=>{if(t.target&&e.contains(t.target))return;const i=e.getBoundingClientRect();i.x<=t.clientX&&i.x+i.width>=t.clientX&&i.y<=t.clientY&&i.y+i.height>=t.clientY||this.hidePopOver()}))),this._popOverClickOutsideDisposer=t}))}))}async hidePopOver(){var e;if(this._popOverElement){const e=await this._popOverElement;o.unmountComponentAtNode(e),e.remove(),this._popOverElement=void 0}this._popOverClickOutsideDisposer&&(this._popOverClickOutsideDisposer.dispose(),this._popOverClickOutsideDisposer=void 0),this.popOverContainer&&this.popOverContainer.classList.remove("kt-toolbar-popover-visible"),null===(e=this.popOverContainer)||void 0===e||e.classList.remove("kt-toolbar-popover-animationend"),this._onDidChangePopoverVisibility.fire(!1)}};r.__decorate([s.Autowired(a.IToolbarPopoverRegistry),r.__metadata("design:type",Object)],y.prototype,"toolbarPopover",void 0),y=r.__decorate([s.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[HTMLElement,String,Object,Object,Object,Function,Function,Object,String])],y)},56048:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(68139),t),r.__exportStar(i(44812),t)},44812:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(88774),o=i(65686),s=i(62034),a=i(80431);function c(e){const[t,i]=r.useState(e.defaultState||"default"),c=(e.styles||{})[t]||{},l={color:c.labelForegroundColor,backgroundColor:c.backgroundColor,minWidth:void 0===c.minWidth?150:c.minWidth},u={color:c.labelForegroundColor,backgroundColor:c.backgroundColor},[d,h]=r.useState(e.defaultValue),[p,f]=r.useState(void 0),[g,m]=r.useState(!1),v=r.useRef(null),y=r.useRef(null),_=r.useRef(new o.Emitter);if(r.useEffect((()=>{const r=new o.Emitter;let n=d;const s={setState:e=>{const n=t;i(e),r.fire({from:n,to:e})},setSelect:h,setOptions:e=>{f(e)},getValue:()=>n,onChangeState:r.event,onSelect:_.current.event};e.delegate&&e.delegate(s);const a=_.current.event((e=>{n=e}));return()=>{e.delegate&&e.delegate(void 0),r.dispose(),a.dispose()}}),[]),r.useEffect((()=>{if(v.current&&y.current){const e=y.current.getBoundingClientRect();window.innerWidth-e.x-e.width{m(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}}),[g]),e.inDropDown){const t={options:e.options,optionRenderer:e.customOptionRenderer,currentValue:d,className:"kt-toolbar-action-select-dropdown",onSelect:t=>{h(t),e.closeDropDown(),e.onSelect&&e.onSelect(t),_.current.fire(t)},equals:e.equals,size:"small",renderCheck:!0},i=r.createElement(n.SelectOptionsList,Object.assign({},t,{ref:v}));return r.createElement("div",{className:s({"kt-toolbar-action-btn":!0,"action-btn-in-dropdown":!0,"kt-toolbar-action-select":!0}),ref:y,onClick:()=>{m(!0)}},e.name||function(t){const i=p||e.options||[];if(n.isDataOptionGroups(i)){for(const r of i)for(const i of r.options)if(e.equals){if(e.equals(i.value,t))return i.label}else if(i.value===t)return i.label}else for(const r of i)if(e.equals){if(e.equals(r.value,t))return r.label}else if(r.value===t)return r.label}(d),r.createElement("div",{className:s("kt-toolbar-action-btn-icon",a.getIcon("right"),"kt-toolbar-action-select-right")}),g?i:null)}return r.createElement(n.Select,{value:d,options:p||e.options,size:"small",optionRenderer:e.customOptionRenderer,onChange:t=>{e.onSelect&&e.onSelect(t),_.current.fire(t),h(t)},optionStyle:u,style:l})}t.ToolbarActionSelect=c,t.createToolbarActionSelect=function(e){return t=>r.createElement(c,Object.assign({},e,t))}},72904:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(52338),t);var n=i(37924);t.ToolbarLocation=n.ToolbarLocation,r.__exportStar(i(56048),t)},37924:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(27196),o=i(99396),s=i(52338),a=i(65686),c=i(60157),l=i(80431),u=i(42610),d=i(62034),h=i(83880),p=i(43849),f=i(93096);t.DEFAULT_TOOLBAR_ACTION_MARGIN=5,t.DEFAULT_TOOLBAR_MORE_WIDTH=14;const g=new Map,m=new a.Emitter,v=new a.Emitter;function y(e){return"split"===e.type}function _(e,i,r,n,o,s){const c=void 0===r.actionMargin?t.DEFAULT_TOOLBAR_ACTION_MARGIN:r.actionMargin,d=void 0===r.moreActionWidth?t.DEFAULT_TOOLBAR_MORE_WIDTH:r.moreActionWidth;for(let t=0;te.id)),"_tail"],S=[],C=[],E=[];for(const e of _){const t=n.getToolbarActions({location:i,group:e}),r=null==t?void 0:t.actions.filter((e=>-1===s.indexOf(e.id)));if(r&&r.length>0){S.length>0&&!S[S.length-1].noGroupSplit&&S.push({action:{type:"split"},marginLeft:c});const e=r.map(((e,i)=>{var n,o,s;const a=(null===(n=t.group)||void 0===n?void 0:n.compact)?0:c,l=[];return(null===(o=null==t?void 0:t.group)||void 0===o?void 0:o.compact)&&(l.push("kt-toolbar-action-wrapper-compact"),i===r.length-1&&l.push("kt-toolbar-action-wrapper-compact-tail"),0===i&&l.push("kt-toolbar-action-wrapper-compact-head"),0!==i&&i!==r.length-1&&l.push("kt-toolbar-action-wrapper-compact-middle")),{action:e,marginLeft:0===i?c:a,extraClassNames:l,noGroupSplit:!!(null===(s=t.group)||void 0===s?void 0:s.compact)}}));S.push(...e),C.push(e)}}0===S.length?h.classList.add("kt-toolbar-location-no-actions"):h.classList.remove("kt-toolbar-location-no-actions");let O=!1;if(!r.noDropDown)for(let e=0;eg){let i=0;for(let r=e;r{i.forEach(((t,i)=>{t.action.neverCollapse||e.push([r,i])})),t.push([])}));m+c+d>g&&0!==e.length;){const i=e.pop(),[r]=C[i[0]].splice(i[1],1);t[i[0]].push(r.action),m-=c+b(r.action,!1),C.length>1&&0===C[i[0]].length&&(m-=c+1)}S.splice(0);const i=C.filter((e=>e.length>0));i.map(((e,t)=>{0===t||i[t-1][0].noGroupSplit||S.push({action:{type:"split"},marginLeft:c}),S.push(...e)})),E.splice(0),t.reverse().filter((e=>e.length>0)).map(((e,t)=>{0!==t&&E.push({type:"split"}),E.push(...e)})),E.reverse()}if(S.forEach((e=>{if(y(e.action)){const e=document.createElement("div");e.classList.add("kt-toolbar-action-split"),h.append(e)}else w(h,e,o,!1,i,r)})),E.length>0){const e=document.createElement("div");e.classList.add("kt-toolbar-more");const t=document.createElement("div");t.classList.add(...l.getIcon("more").split(" ")),e.append(t),h.append(e),t.addEventListener("mousedown",(()=>{!function(e,t){const i="toolbar-location-visible-"+t,r="toolbar-location-dropdown-"+t,n=document.getElementById(i),o=document.getElementById(r);if(n&&o){if("block"===o.style.display)return;const i=n.getBoundingClientRect();o.style.top=i.y+i.height+"px",o.style.right=window.innerWidth-i.x-i.width+"px",o.style.display="block",setTimeout((()=>{const i=new a.Disposable;i.addDispose(new u.DomListener(e,"mousedown",(e=>{v.fire(t),i.dispose(),e.stopPropagation()}))),i.addDispose(new u.DomListener(o,"mousedown",(e=>{e.stopPropagation()}))),i.addDispose(new u.DomListener(document.body,"mousedown",(e=>{i.dispose(),o.style.display="none"}))),i.addDispose(v.event((e=>{e===t&&(i.dispose(),o.style.display="none")})))}))}}(e,i)}))}E.forEach(((e,t)=>{if(y(e)){if(0===t)return;const e=document.createElement("div");e.classList.add("kt-toolbar-action-split"),f.appendChild(e)}else w(f,{action:e,marginLeft:0},o,!0,i,r)}))}function b(e,t){var i,r;if(y(e))return 1;{const n=t?null===(i=g.get(e.id))||void 0===i?void 0:i.size.inDropDown:null===(r=g.get(e.id))||void 0===r?void 0:r.size.visible;return n?n.width:e.suggestSize?e.suggestSize.width:20}}async function w(e,t,i,r,n,o){const s=document.createElement("div");return e.appendChild(s),async function(e,t,i,r,n,o){g.has(e.action.id)||g.set(e.action.id,new S(e,i));return g.get(e.action.id).attachTo(t,r,n,o)}(t,s,i,r,n,o)}t.ToolbarLocation=e=>{const t=o.useInjectable(s.IToolbarRegistry),i=o.useInjectable(p.AbstractMenuService),n=o.useInjectable(p.ICtxMenuRenderer);t.hasLocation(e.location)||t.addLocation(e.location);const l=r.useContext(c.ConfigContext),u=o.useInjectable(a.IEventBus),g=r.useRef(),v=o.useInjectable(h.PreferenceService),{location:y,preferences:b={}}=e;let w;const S=e=>{w=e.slice()};return S((v.get("toolbar.ignoreActions",{})||{})[y]||[]),r.useEffect((()=>{if(g.current){const e=new a.Disposable,i=f((()=>{r()}),200),r=()=>{g.current&&(S((v.get("toolbar.ignoreActions",{})||{})[y]||[]),_(g.current,y,b,t,l,w))};if(e.addDispose(u.on(s.ToolbarActionGroupsChangedEvent,(e=>{e.payload.location===y&&i()}))),e.addDispose(u.on(s.ToolbarActionsChangedEvent,(e=>{e.payload.position.location===y&&i()}))),e.addDispose(m.event((e=>{const r=t.getActionPosition(e);r&&r.location===y&&i()}))),e.addDispose(v.onPreferenceChanged((e=>{if("toolbar.ignoreActions"===e.preferenceName){const e=(v.get("toolbar.ignoreActions",{})||{})[y]||[];for(const t of e)if(-1===w.indexOf(t))return void r();for(const t of w)if(-1===e.indexOf(t))return void r()}}))),b.noDropDown)_(g.current,y,b,t,l,w);else{let r=g.current.offsetWidth;_(g.current,y,b,t,l,w);const n=new ResizeObserver((e=>{const t=e[0].contentRect;t.width!==r&&i(),r=t.width}));n.observe(g.current),e.addDispose({dispose:()=>n.disconnect()})}return()=>e.dispose()}}),[]),r.createElement("div",Object.assign({},e,{className:d("kt-toolbar-location",e.className),id:"toolbar-location-"+y,ref:g,onContextMenu:e=>{if(e.nativeEvent.composedPath().find((e=>e.getAttribute&&e.getAttribute("data-toolbar-no-context"))))return;e.preventDefault();const t=i.createMenu(p.MenuId.KTToolbarLocationContext),r=p.generateCtxMenu({menus:t});n.show({menuNodes:r[1],anchor:{x:e.clientX,y:e.clientY}})}}))};class S{constructor(e,t){this.resolvedToolbarAction=e,this.context=t,this.targetInDropDown=!1,this.size={},this.toolbarAction=e.action}render(e,t,i){return this.renderPromise&&this.renderPromise.inDropDown===e?this.renderPromise.promise:(this.renderPromise&&this.renderPromise.cancel(),this.doRender(e,t,i))}get element(){return this.renderPromise&&this.renderPromise.resolved}attachTo(e,t,i,r){return this.targetContainer=e,this.targetInDropDown=t,this.render(t,i,r).then((i=>{this.targetContainer===e&&t===this.targetInDropDown&&(i.parentElement&&i.remove(),e.replaceWith(i),setTimeout((()=>{if(!i||0===i.offsetWidth)return;let e;t?(e=this.size.inDropDown||this.toolbarAction.suggestSize||{width:20,height:30},this.size.inDropDown={width:i.offsetWidth,height:i.offsetHeight}):(e=this.size.visible||this.toolbarAction.suggestSize||{width:20,height:30},this.size.visible={width:i.offsetWidth,height:i.offsetHeight}),i.offsetWidth!==e.width&&m.fire(this.toolbarAction.id)})))}))}doRender(e,i,o){let s=!1;return this.renderPromise={cancel:()=>{s=!0},promise:new Promise(((a,c)=>{if(this.reactElement)this.reactElement.setInDropDown(e),a(this.reactElement.element);else{const l=document.createElement("div");let u;l.classList.add("kt-toolbar-action-wrapper"),l.setAttribute("data-toolbar-action-id",this.toolbarAction.id),this.resolvedToolbarAction.extraClassNames&&l.classList.add(...this.resolvedToolbarAction.extraClassNames),n.render(r.createElement(t.ToolbarActionRenderWrapper,{initialInDropDown:e,action:this.toolbarAction,preferences:o,setInDropDownHandle:e=>u=e,context:this.context,component:this.toolbarAction.component,closeDropdown:()=>{v.fire(i)},location:i}),l,(()=>{s?c("canceled render toolbar"):(this.reactElement={element:l,setInDropDown:e=>{u&&u(e)}},a(l))}))}})).then((e=>(this.renderPromise.resolved=e,this.renderPromise.resolved))),inDropDown:e},this.renderPromise.promise}}t.ToolbarActionRenderWrapper=e=>{const[t,i]=r.useState(e.initialInDropDown),n=e.component;return r.useEffect((()=>{e.setInDropDownHandle((e=>{i(e)}))}),[]),r.createElement(c.ConfigProvider,{value:e.context},r.createElement(n,{inDropDown:t,action:e.action,preferences:e.preferences,closeDropDown:e.closeDropdown,location:e.location}))}},65630:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65579),s=i(65686);let a=class{constructor(){this.registerPopoverEvent=new s.Emitter,this.onDidRegisterPopoverEvent=this.registerPopoverEvent.event,this.popOverComponents=new Map,this.getComponent=e=>this.popOverComponents.get(e)}registerComponent(e,t){return this.popOverComponents.has(e)?(console.error(`Component ${e} is already registered!`),o.Disposable.NULL):(this.popOverComponents.set(e,t),this.registerPopoverEvent.fire(e),{dispose:()=>{this.popOverComponents.delete(e)}})}};a=r.__decorate([n.Injectable()],a),t.ToolbarPopoverRegistry=a},65329:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(52338),o=i(65686),s=i(19745),a=i(60095),c=i(83880);let l=class extends o.WithEventBus{constructor(){super(...arguments),this.locations=[],this._preferredDefaultLocation=void 0,this.groups=new Map,this.actions=new Map,this.computed=new Map,this.computedReverse=new Map,this.computedGroups=new Map,this._onGroupDisposed=new o.Emitter,this._onGroupAdded=new o.Emitter,this._onLocationAdded=new o.Emitter,this._onActionDisposed=new o.Emitter,this._onActionAdded=new o.Emitter,this._inited=!1}get defaultLocation(){return this._preferredDefaultLocation&&this.locations.indexOf(this._preferredDefaultLocation)>-1?this._preferredDefaultLocation:this.locations[0]||"default"}getAllLocations(){return this.locations}init(){this.contributions.getContributions().forEach((e=>{e.registerToolbarActions&&e.registerToolbarActions(this)})),this.actions.forEach((e=>{this.calculateActionPosition(e)})),this._inited=!0,this._onActionDisposed.event((e=>{this.applyPosition(e,null)})),this._onGroupDisposed.event((e=>{let t;for(const i of this.computed.values())if(i.has(e)){t=i.get(e);break}t&&t.forEach((e=>{this.calculateActionPosition(e)}))})),this._onGroupAdded.event((e=>{this.actions.forEach((t=>{(t.strictPosition&&t.strictPosition.group===e||t.preferredPosition&&t.preferredPosition.group===e)&&this.calculateActionPosition(t)}))})),this._onActionAdded.event((e=>{this.calculateActionPosition(e)})),this._onLocationAdded.event((e=>{}))}hasLocation(e){return"default"===e||-1!==this.locations.indexOf(e)}addLocation(e){-1===this.locations.indexOf(e)&&(this.locations.push(e),this._onLocationAdded.fire(e))}setDefaultLocation(e){this._preferredDefaultLocation=e}registerToolbarActionGroup(e){return this.groups.set(e.id,e),this._onGroupAdded.fire(e.id),{dispose:()=>{this.groups.delete(e.id),this._onGroupDisposed.fire(e.id)}}}calculateActionPosition(e){if(e.strictPosition){if("_head"!==e.strictPosition.group&&"_tail"!==e.strictPosition.group){const t=this.groups.get(e.strictPosition.group);if(!t)return;const i=this.getGroupLocation(t);if(e.strictPosition.location&&e.strictPosition.location!==i)return}else if(-1===this.locations.indexOf(e.strictPosition.location))return;this.applyPosition(e,e.strictPosition)}else{const t=this.getPositionFromPreferred(e.preferredPosition||{});this.applyPosition(e,t)}}getPositionFromPreferred(e){const t={location:this.defaultLocation,group:"_tail"};if(e.location&&this.locations.indexOf(e.location)>-1&&(t.location=e.location),e.group)if("_tail"===e.group||"_head"===e.group)t.group=e.group;else{const i=this.groups.get(e.group);if(i){const e=this.getGroupLocation(i);t.location=e,t.group=i.id}}return t}applyPosition(e,t){const i=[];if(this.computedReverse.has(e.id)){const r=this.computedReverse.get(e.id);if(t&&r.location===t.location&&r.group===t.group)return;const n=this.computed.get(r.location).get(r.group),o=n.indexOf(e);o>-1&&n.splice(o,1),i.push(r),this.computedReverse.delete(e.id)}if(t){this.computed.has(t.location)||this.initLocation(t.location);const r=this.computed.get(t.location).get(t.group);let n=0;for(;n{this.eventBus.fire(new n.ToolbarActionsChangedEvent({position:e}))}))}getGroupLocation(e){for(const t of this.computed.keys())if(this.computed.has(t)&&this.computed.get(t).has(e.id))return t;let t=this.defaultLocation;e.preferredLocation&&this.locations.indexOf(e.preferredLocation)>-1&&(t=e.preferredLocation),this.computed.has(t)||this.initLocation(t),this.computed.get(t).set(e.id,[]);const i=this.computedGroups.get(t);let r=0;for(;r{this.actions.delete(e.id),this._onActionDisposed.fire(e)}}}getToolbarActions(e){const t=this.computed.get(e.location);if(!t||!this.isValidGroup(e.group))return;const i=t.get(e.group);return i?{group:this.groups.get(e.group),position:e,actions:i}:void 0}getActionGroups(e){return this.computedGroups.get(e)}isValidGroup(e){return"_head"===e||"_tail"===e||this.groups.has(e)}getActionPosition(e){return this.computedReverse.get(e)}};r.__decorate([s.Autowired(n.ToolBarActionContribution),r.__metadata("design:type",Object)],l.prototype,"contributions",void 0),r.__decorate([s.Autowired(c.PreferenceService),r.__metadata("design:type",Object)],l.prototype,"preferenceService",void 0),l=r.__decorate([s.Injectable()],l),t.NextToolbarRegistryImpl=l;let u=class{onStart(){this.toolbarRegistry.init()}};r.__decorate([s.Autowired(n.IToolbarRegistry),r.__metadata("design:type",Object)],u.prototype,"toolbarRegistry",void 0),u=r.__decorate([o.Domain(a.ClientAppContribution)],u),t.ToolbarClientAppContribution=u},52338:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.IToolbarRegistry=Symbol("IToolbarRegistry");class n extends r.BasicEvent{}t.ToolbarActionsChangedEvent=n;class o extends r.BasicEvent{}t.ToolbarActionGroupsChangedEvent=o,t.ToolBarActionContribution=Symbol("ToolBarActionContribution"),t.IToolbarPopoverRegistry=Symbol("IToolbarPopoverRegistry")},21665:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(30403),t),r.__exportStar(i(19193),t),r.__exportStar(i(83747),t)},19193:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(21665);!function(e){e.is=function(e){return!!e&&r.CompositeTreeNode.is(e)&&"expanded"in e},e.isExpanded=function(t){return e.is(t)&&t.expanded},e.isCollapsed=function(t){return e.is(t)&&!t.expanded}}(t.ExpandableTreeNode||(t.ExpandableTreeNode={}))},30403:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(83747);!function(e){let t;function i(e,t){if(void 0===e)return!1;return("number"==typeof e?e:e.type)===t}!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.TOGGLE=1]="TOGGLE",e[e.RANGE=2]="RANGE"}(t=e.SelectionType||(e.SelectionType={})),e.is=function(e){return!!e&&"node"in e},e.isRange=function(e){return i(e,t.RANGE)},e.isToggle=function(e){return i(e,t.TOGGLE)}}(t.TreeSelection||(t.TreeSelection={})),function(e){function t(e){return!!e&&"selected"in e}function i(e){return t(e)&&r.TreeNode.isVisible(e)}e.is=t,e.isSelected=function(e){return t(e)&&e.selected},e.hasFocus=function(e){return t(e)&&!0===e.focused},e.isVisible=i,e.getVisibleParent=function e(t){if(t)return i(t.parent)?t.parent:e(t.parent)}}(t.SelectableTreeNode||(t.SelectableTreeNode={}))},83747:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804);var n;!function(e){e.equals=function(e,t){return e===t||!!e&&!!t&&e.id===t.id},e.isVisible=function(e){return!!e&&(void 0===e.visible||e.visible)}}(n=t.TreeNode||(t.TreeNode={})),function(e){function t(e,t){const r=e.children,n=r.findIndex((e=>e.id===t.id));return-1!==n?(r.splice(n,1,t),i(t,n,e)):(r.push(t),i(t,e.children.length-1,e)),e}function i(e,t,i){const r=i.children[t-1],n=i.children[t+1];Object.assign(e,{parent:i,previousSibling:r,nextSibling:n}),r&&Object.assign(r,{nextSibling:e}),n&&Object.assign(n,{previousSibling:e})}e.is=function(e){return!!e&&"children"in e},e.getFirstChild=function(e){return e.children[0]},e.getLastChild=function(e){return e.children[e.children.length-1]},e.isAncestor=function e(t,i){return!!i&&(!!n.equals(t,i.parent)||e(t,i.parent))},e.indexOf=function(e,t){return t?e.children.findIndex((e=>n.equals(t,e))):-1},e.addChildren=function(e,i){for(const r of i)t(e,r);return e},e.addChild=t,e.removeChild=function(e,t){const i=e.children,r=i.findIndex((e=>e.id===t.id));if(-1===r)return;i.splice(r,1);const{previousSibling:n,nextSibling:o}=t;n&&Object.assign(n,{nextSibling:o}),o&&Object.assign(o,{previousSibling:n})},e.setParent=i}(t.CompositeTreeNode||(t.CompositeTreeNode={})),t.isTreeViewActionComponent=function(e){return"component"in e&&r.isValidElement(e.component)},function(e){e[e.TreeNode_Left=0]="TreeNode_Left",e[e.TreeNode_Right=1]="TreeNode_Right",e[e.TreeContainer=2]="TreeContainer"}(t.TreeViewActionTypes||(t.TreeViewActionTypes={}))},8330:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createElectronMainApi=function(e){let t=0;return new Proxy({on:(t,i)=>{const r=(e,r,...n)=>{if(r===t)return i(...n)};return ElectronIpcRenderer.on("event:"+e,r),{dispose:()=>{ElectronIpcRenderer.removeListener("event:"+e,r)}}}},{get:(i,r)=>"on"===r?i[r]:async(...i)=>new Promise(((n,o)=>{const s=t++;ElectronIpcRenderer.send("request:"+e,r,s,...i);const a=(t,i,r,c)=>{if(i===s)if(ElectronIpcRenderer.removeListener("response:"+e,a),r){const e=new Error(r.message);e.stack=r.stack,o(e)}else n(c)};ElectronIpcRenderer.on("response:"+e,a)}))})},t.electronEnv=i.g||{},"undefined"!=typeof ElectronIpcRenderer&&(t.electronEnv.ipcRenderer=ElectronIpcRenderer),t.IElectronNativeDialogService=Symbol("IElectronNativeDialogService")},72252:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);function n(){return i.g.env||{}}t.getElectronEnv=n,t.useNativeTopMenu=function(){return!!r.isElectronRenderer()&&(void 0!==n().USE_NATIVE_TOP_MENU?"1"===n().USE_NATIVE_TOP_MENU:!r.isWindows)},t.useNativeContextMenu=function(){return!!r.isElectronRenderer()&&(void 0===n().USE_NATIVE_CONTEXT_MENU||"1"===n().USE_NATIVE_CONTEXT_MENU)}},45550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIconClass=function(e){const t=e.match(/\$\(([^\)]*)\)(.*)/);return t?[t[1],t[2].trim()]:[null,e]}},68612:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(72252),t),r.__exportStar(i(8330),t),r.__exportStar(i(68641),t),r.__exportStar(i(45550),t),r.__exportStar(i(81861),t)},81861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.is=function(e){return"name"in e}}(t.LabelIcon||(t.LabelIcon={})),t.parseLabel=function(e){const t=[];let i=0,r="";for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(65686),o=i(46617);function s(e,t=[]){r.useEffect((()=>{const t=new n.DisposableStore,i=e();return Array.isArray(i)?i.forEach((e=>{t.add(e)})):t.add(i),()=>{t.dispose()}}),t)}t.useDebounce=function(e,t){const[i,n]=r.useState(e);return r.useEffect((()=>{const i=setTimeout((()=>{n(e)}),t);return()=>{clearTimeout(i)}}),[e,t]),i},t.useDisposable=s,t.useMenus=function(e,t,i){const[n,a]=r.useState([[],[]]);return s((()=>{function r(e,i){const r=o.generateInlineActions({menus:e,separator:t,args:i});a(r)}return r(e,i),[e.onDidChange((()=>{r(e,i)}))]}),[e,i]),n},t.useContextMenus=function(e){const[t,i]=r.useState([[],[]]);return s((()=>{function t(e){const t=e.getGroupedMenuNodes();i(t)}return t(e),[e.onDidChange((()=>{t(e)}))]}),[e]),t}},99693:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(88754),t)},88754:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);t.VariableContribution=Symbol("VariableContribution"),t.VariableRegistry=Symbol("VariableRegistry");let s=class{constructor(){this.variables=new Map,this.toDispose=new o.DisposableCollection}dispose(){this.toDispose.dispose()}registerVariable(e){if(this.variables.has(e.name))return console.warn(`A variables with name ${e.name} is already registered.`),o.Disposable.NULL;this.variables.set(e.name,e);const t={dispose:()=>this.variables.delete(e.name)};return this.toDispose.push(t),t}getVariables(){return[...this.variables.values()]}getVariable(e){return this.variables.get(e)}registerVariables(e){return e.map((e=>this.registerVariable(e)))}};s=r.__decorate([n.Injectable()],s),t.VariableRegistryImpl=s},9660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWindowService=Symbol("WindowService")},11520:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(83977),a=i(8330),c=i(65777);let l=class{openNewWindow(e,t){if((null==t?void 0:t.external)&&(e=this.externalUriService.resolveExternalUri(new o.URI(e)).toString(!0)),!o.isElectronRenderer()){const t=window.open(e);if(null===t)throw new Error("Cannot open a new window for URL: "+e);return t}this.injector.get(s.IElectronMainUIService).openExternal(e)}openWorkspace(e,t={}){if(!o.isElectronRenderer())throw new Error("Method not implemented.");{const i=this.injector.get(s.IElectronMainLifeCycleService);t.newWindow?i.openWorkspace(e.toString()):i.openWorkspace(e.toString(),{windowId:a.electronEnv.currentWindowId,replace:!0})}}close(){if(!o.isElectronRenderer())throw new Error("Method not implemented.");window.close()}maximize(){if(!o.isElectronRenderer())throw new Error("Method not implemented.");this.injector.get(s.IElectronMainLifeCycleService).maximizeWindow(a.electronEnv.currentWindowId)}unmaximize(){if(!o.isElectronRenderer())throw new Error("Method not implemented.");this.injector.get(s.IElectronMainLifeCycleService).unmaximizeWindow(a.electronEnv.currentWindowId)}fullscreen(){if(!o.isElectronRenderer())throw new Error("Method not implemented.");this.injector.get(s.IElectronMainLifeCycleService).fullscreenWindow(a.electronEnv.currentWindowId)}minimize(){if(!o.isElectronRenderer())throw new Error("Method not implemented.");this.injector.get(s.IElectronMainLifeCycleService).minimizeWindow(a.electronEnv.currentWindowId)}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],l.prototype,"injector",void 0),r.__decorate([n.Autowired(c.IExternalUriService),r.__metadata("design:type",Object)],l.prototype,"externalUriService",void 0),l=r.__decorate([n.Injectable()],l),t.WindowService=l},62034:(e,t)=>{var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"HO":{"@ali/ide-components":"2.5.5","@ali/ide-connection":"2.5.5","@ali/ide-core-common":"2.5.5","ajv":"^6.10.0","ansi-to-react":"^5.0.0","antd":"^3.20.3","classnames":"2.2.6","clsx":"^1.0.4","diff":"^4.0.1","file-icons-js":"^1.0.3","font-awesome":"^4.7.0","fuzzy":"^0.1.3","jsonc-parser":"^2.1.0","keycode":"^2.2.0","lodash":"^4.17.15","lodash.throttle":"^4.1.1","lodash.uniqby":"^4.1.1","lzutf8":"^0.5.5","mobx":"^5.9.4","mobx-react-lite":"^1.3.1","onigasm":"2.2.2","p-series":"^2.1.0","rc-menu":"^7.4.30","react":"^16.8.6","react-autosize-textarea":"^7.0.0","react-ctxmenu-trigger":"^1.0.0","react-custom-scrollbars":"^4.2.1","react-is":"^16.8.6","react-perfect-scrollbar":"^1.5.2","react-sticky":"^6.0.3","react-window":"^1.8.5","reconnecting-websocket":"^4.2.0","resize-observer-polyfill":"1.5.1","vscode-codicons":"0.0.12","@ali/vscode-debugprotocol":"1.46.0-beta.1","vscode-languageserver-protocol":"^3.14.1","vscode-textmate":"5.1.1"}}')},30108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){const t=[];e.declare=function(e,r){if(-1!==t.indexOf(e))throw new Error(`An application error for '${e}' code is already declared`);const n=Object.assign(((...t)=>new i(e,r(...t),n)),{code:e,is:t=>t instanceof i&&t.code===e});return n},e.is=function(e){return e instanceof i},e.fromJson=function(e,t){return new i(e,t)};class i extends Error{constructor(e,t,r){super(t.message),this.code=e,this.data=t.data,Object.setPrototypeOf(this,i.prototype),t.stack?this.stack=t.stack:Error.captureStackTrace&&r&&Error.captureStackTrace(this,r)}toJson(){const{message:e,data:t,stack:i}=this;return{message:e,data:t,stack:i}}}}(t.ApplicationError||(t.ApplicationError={}))},41029:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53188);function n(e,t){let i=0,r=e.length;if(0===r)return 0;for(;ir?e[c]=o[a++]:a>n?e[c]=o[s++]:t(o[a],o[s])<0?e[c]=o[a++]:e[c]=o[s++]}(e,t,i,o,r,n)}function a(e,t,i){const r=[];function n(e,t,i){if(0===t&&0===i.length)return;const n=r[r.length-1];n&&n.start+n.deleteCount===e?(n.deleteCount+=t,n.toInsert.push(...i)):r.push({start:e,deleteCount:t,toInsert:i})}let o=0,s=0;for(;;){if(o===e.length){n(o,0,t.slice(s));break}if(s===t.length){n(o,e.length-o,[]);break}const r=e[o],a=t[s],c=i(r,a);0===c?(o+=1,s+=1):c<0?(n(o,1,[]),o+=1):c>0&&(n(o,0,[a]),s+=1)}return r}function c(e,t,i,r,o){for(const s=i.length;rt(o,e)<0));i.splice(e,0,o)}}}function l(e,t){for(let i=0;ie===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,n=e.length;r0))return o;n=o-1}}return-(r+1)},t.findFirstInSorted=n,t.mergeSort=o,t.groupBy=function(e,t){const i=[];let r;for(const n of o(e.slice(0),t))r&&0===t(r[0],n)?r.push(n):(r=[n],i.push(r));return i},t.sortedDiff=a,t.delta=function(e,t,i){const r=a(e,t,i),n=[],o=[];for(const t of r)n.push(...e.slice(t.start,t.start+t.deleteCount)),o.push(...t.toInsert);return{removed:n,added:o}},t.top=function(e,t,i){if(0===i)return[];const r=e.slice(0,i).sort(t);return c(e,t,r,i,e.length),r},t.topAsync=function(e,t,i,n,o){return 0===i?Promise.resolve([]):new Promise(((s,a)=>{(async()=>{const s=e.length,a=e.slice(0,i).sort(t);for(let l=i,u=Math.min(i+n,s);li&&await new Promise((e=>setTimeout(e))),o&&o.isCancellationRequested)throw r.canceled();c(e,t,a,l,u)}return a})().then(s,a)}))},t.coalesce=function(e){return e?e.filter((e=>!!e)):e},t.coalesceInPlace=function(e){if(!e)return;let t=0;for(let i=0;i0},t.distinct=function(e,t){if(!t)return e.filter(((t,i)=>e.indexOf(t)===i));const i=Object.create(null);return e.filter((e=>{const r=t(e);return!i[r]&&(i[r]=!0,!0)}))},t.distinctES6=function(e){const t=new Set;return e.filter((e=>!t.has(e)&&(t.add(e),!0)))},t.uniqueFilter=function(e){const t=Object.create(null);return i=>{const r=e(i);return!t[r]&&(t[r]=!0,!0)}},t.lastIndex=function(e,t){for(let i=e.length-1;i>=0;i--){if(t(e[i]))return i}return-1},t.firstIndex=l,t.first=function(e,t,i){const r=l(e,t);return r<0?i:e[r]},t.commonPrefixLength=function(e,t,i=((e,t)=>e===t)){let r=0;for(let n=0,o=Math.min(e.length,t.length);nt;e--)r.push(e);return r},t.fill=function(e,t,i=[]){for(let r=0;re)){return e.reduce(((e,r)=>{const n=t(r);return e[n]=i(r,e[n]),e}),Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)}},t.arrayInsert=function(e,t,i){const r=e.slice(0,t),n=e.slice(t);return r.concat(i,n)},t.shuffle=function(e,t){let i;if("number"==typeof t){let e=t;i=()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)}}else i=Math.random;for(let t=e.length-1;t>0;t-=1){const r=Math.floor(i()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}},t.pushToStart=function(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))},t.pushToEnd=function(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))},t.find=function(e,t){for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(8925),n=i(53188),o=i(64006);function s(e){const t=new r.CancellationTokenSource,i=e(t.token),o=new Promise(((e,r)=>{t.token.onCancellationRequested((()=>{r(n.canceled())})),Promise.resolve(i).then((i=>{t.dispose(),e(i)}),(e=>{t.dispose(),r(e)}))}));return new class{cancel(){t.cancel()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}t.createCancelablePromise=s,t.hookCancellationToken=function(e,t){return new Promise(((i,r)=>{const n=e.onCancellationRequested((()=>r(new Error("This promise is cancelled"))));t.then((e=>{n.dispose(),i(e)})).catch((e=>{n.dispose(),r(e)}))}))};class a{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}}t.Throttler=a;t.Sequencer=class{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then((()=>e()))}};class c{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})).catch((e=>{o.getDebugLogger().verbose("delayer cancelled:",e)}))),this.timeout=setTimeout((()=>{this.timeout=null,this.doResolve(null)}),t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(n.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=c;function l(e){return e&&"function"==typeof e.then}t.ThrottledDelayer=class{constructor(e){this.delayer=new c(e),this.throttler=new a}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}},t.isThenable=l,t.raceTimeout=function(e,t,i){let r;const n=setTimeout((()=>{null==r||r(void 0),null==i||i()}),t);return Promise.race([e.finally((()=>clearTimeout(n))),new Promise((e=>r=e))])},t.asPromise=function(e){return new Promise(((t,i)=>{const r=e();l(r)?r.then(t,i):t(r)}))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=t=>{const i=setTimeout((()=>t(e)));let r=!1;return{dispose(){r||(r=!0,clearTimeout(i))}}}}else t.runWhenIdle=(e,t)=>{const i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(i))}}}}();t.IdleValue=class{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=t.runWhenIdle((()=>this._executor()))}dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}},t.first=function(e,t=(e=>!!e),i=null){let r=0;const n=e.length,o=()=>{if(r>=n)return Promise.resolve(i);const s=e[r++];return Promise.resolve(s()).then((e=>t(e)?Promise.resolve(e):o()))};return o()},t.timeout=function e(t,i){return i?new Promise(((e,r)=>{const o=setTimeout(e,t);i.onCancellationRequested((()=>{clearTimeout(o),r(n.canceled())}))})):s((i=>e(t,i)))},t.raceCancellation=function(e,t,i){return Promise.race([e,new Promise((e=>t.onCancellationRequested((()=>e(i)))))])}},7899:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(25303),n=i(59215),o="/";const s=new class{access(e){return new Promise((t=>{r.exists(e,(e=>{t(e)}))}))}mkdir(e){return n.promisify(r.mkdir)(e)}};t.ensureDir=async function(e,t=s){const i=(e.startsWith(o)?e.slice(0):e).split(o);let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=function(e){return function(...t){const i=this;return new Promise(((r,n)=>{const o=t.concat(((e,t)=>{e&&n(e),r(t)}));e.apply(i,o)}))}}},21609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this.id=e,this._data=new Map,this._idPool=1}add(e){const t=this._idPool++;return this._data.set(t,e),this.logDebugInfo(),t}get(e,t){return this._data.has(e)?this._data.get(e)[t]:void 0}delete(e){this._data.delete(e),this.logDebugInfo()}logDebugInfo(){i.enableDebugLogging&&console.log(`${this.id} cache size — ${this._data.size}`)}}t.Cache=i,i.enableDebugLogging=!1},8925:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(1236),n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(o=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n:(this._emitter||(this._emitter=new r.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}t.CancellationTokenSource=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}},62239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77991:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(4371);class n{constructor(e){let t=r.toUint8(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=r.toUint8(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}t.CharacterClassifier=n;t.CharacterSet=class{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},82339:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=(i(97697),i(38384)),s=i(39993),a=i(64006);var c;!function(e){e.is=function(e){return!!e&&e===Object(e)&&"id"in e},e.compareCommands=function(e,t){if(e.label&&t.label){const i=e.category?e.category+e.label:e.label,r=t.category?t.category+t.label:t.label;return i.localeCompare(r)}return 0}}(c=t.Command||(t.Command={})),t.CommandContribution=Symbol("CommandContribution"),t.CommandService=Symbol("CommandService"),t.CommandRegistry=Symbol("CommandRegistry");let l=class{constructor(){this._commands={},this._handlers={},this.unregisterCommands=new Map,this._recent=[],this.preCommandInterceptors=[],this.postCommandInterceptors=[],this.postCommandInterceptor=new Map}async executeCommand(e,...t){const i=this.getCommand(e);if(i&&i.delegate)return this.executeCommand(i.delegate,...t);const r=this.getActiveHandler(e,...t);if(r){for(const i of this.preCommandInterceptors)t=await i(e,t);let i=await r.execute(...t);const n=this.postCommandInterceptor.get(e);if(n)for(const e of n)i=await e(i);for(const t of this.postCommandInterceptors)i=await t(e,i);return i}let n="";try{n=t&&t.length>0?` (args: ${JSON.stringify(t)})`:""}catch(e){n="args cannot be convert to JSON"}throw new Error(`The command '${e}' cannot be executed. There are no active handlers available for the command.${n}`)}getCommands(){return Object.keys(this._commands).map((e=>this.getCommand(e)))}registerCommand(e,t){if(this._commands[e.id])return console.warn(`A command ${e.id} is already registered.`),o.Disposable.NULL;const i=new o.Disposable;return i.addDispose(this.doRegisterCommand(e)),t&&i.addDispose(this.registerHandler(e.id,t)),this.unregisterCommands.set(e.id,i),i.addDispose(o.Disposable.create((()=>this.unregisterCommands.delete(e.id)))),i}unregisterCommand(e){const t=c.is(e)?e.id:e,i=this.unregisterCommands.get(t);i&&i.dispose()}registerHandler(e,t){let i=this._handlers[e];return i||(this._handlers[e]=i=[]),i.unshift(t),{dispose:()=>{const e=i.indexOf(t);e>=0&&i.splice(e,1)}}}isEnabled(e,...t){return!this._handlers[e]||void 0!==this.getActiveHandler(e,...t)}isVisible(e,...t){return!this._handlers[e]||void 0!==this.getVisibleHandler(e,...t)}isToggled(e,...t){const i=this.getToggledHandler(e);return!(!i||!i.isToggled)&&i.isToggled(...t)}getVisibleHandler(e,...t){const i=this._handlers[e];if(i)for(const e of i)if(!e.isVisible||e.isVisible(...t))return e}getActiveHandler(e,...t){const i=this.getCommand(e);if(i&&i.delegate)return this.getActiveHandler(i.delegate,...t);const r=this._handlers[e];if(r)for(const e of r)if(!e.isEnabled||e.isEnabled(...t))return e}isPermittedCommand(e,t,...i){const r=this.getCommand(e);if(r&&r.delegate)return this.isPermittedCommand(r.delegate,t,...i);const n=this._handlers[e];return!Array.isArray(n)||n.every((e=>!e.isPermitted||e.isPermitted(t,...i)))}getToggledHandler(e){const t=this._handlers[e];if(t)for(const e of t)if(e.isToggled)return e}getRawCommand(e){return this._commands[e]}getCommand(e){const t=this._commands[e];return t?Object.assign(Object.assign({},t),{category:s.replaceLocalizePlaceholder(t.category),label:s.replaceLocalizePlaceholder(t.label)}):void 0}doRegisterCommand(e){return this._commands[e.id]=e,{dispose:()=>{delete this._commands[e.id]}}}beforeExecuteCommand(e){return this.preCommandInterceptors.push(e),{dispose:()=>{const t=this.preCommandInterceptors.indexOf(e);-1!==t&&this.preCommandInterceptors.splice(t,1)}}}afterExecuteCommand(e,t){if("string"==typeof e){const i=this.postCommandInterceptor.get(e);return i?t&&i.push(t):t&&this.postCommandInterceptor.set(e,[t]),{dispose:()=>{const i=this.postCommandInterceptor.get(e);if(i&&t){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}}return this.postCommandInterceptors.push(e),{dispose:()=>{const t=this.postCommandInterceptors.indexOf(e);-1!==t&&this.postCommandInterceptors.splice(t,1)}}}getRecentCommands(){return this._recent}setRecentCommands(e){return e.forEach((e=>{this.addRecentCommand(e)})),this._recent}addRecentCommand(e){if(!e||!e.label)return;const t=this._recent.findIndex((t=>t.id===e.id));t>=0&&this._recent.splice(t,1),this._recent.unshift(e)}};l=r.__decorate([n.Injectable()],l),t.CoreCommandRegistryImpl=l;let u=class extends l{onStart(){const e=this.contributionProvider.getContributions();for(const t of e)t.registerCommands(this)}};r.__decorate([n.Autowired(t.CommandContribution),r.__metadata("design:type",Object)],u.prototype,"contributionProvider",void 0),u=r.__decorate([n.Injectable()],u),t.CommandRegistryImpl=u;let d=class{executeCommand(e,...t){return this.commandRegistry.executeCommand(e,...t)}async tryExecuteCommand(e,...t){try{return await this.executeCommand(e,...t)}catch(e){a.getDebugLogger().warn(e)}}};r.__decorate([n.Autowired(t.CommandRegistry),r.__metadata("design:type",u)],d.prototype,"commandRegistry",void 0),d=r.__decorate([n.Injectable()],d),t.CommandServiceImpl=d},68187:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(55783);class n extends r.BasicEvent{}t.BrowserConnectionCloseEvent=n;class o extends r.BasicEvent{}t.BrowserConnectionOpenEvent=o;class s extends r.BasicEvent{}t.BrowserConnectionErrorEvent=s},21026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}}},87484:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(68361).__exportStar(i(21026),t)},97697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContributionProvider=Symbol("ContributionProvider");class i{constructor(e,t){this.domain=e,this.injector=t}addContribution(...e){for(const t of e)this.injector.addProviders(t),this.services&&this.services.push(this.injector.get(t))}getContributions(){return this.injector.getFromDomain(this.domain)}reload(){return this.services=this.injector.getFromDomain(this.domain),this.services}}t.BaseContributionProvider=i,t.createContributionProvider=function(e,t){const r=new i(t,e);e.addProviders({token:t,useValue:r})}},94945:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(38142);t.toLocalISOString=function(e){return e.getFullYear()+"-"+r.pad(e.getMonth()+1,2)+"-"+r.pad(e.getDate(),2)+"T"+r.pad(e.getHours(),2)+":"+r.pad(e.getMinutes(),2)+":"+r.pad(e.getSeconds(),2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}},42898:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(19745);t.Domain=function(...e){return t=>{const i=r.getInjectableOpts(t)||{};i.domain=e,r.markInjectable(t,i)}};const n=new Map;t.EffectDomain=function(e){return t=>{const i=r.getInjectableOpts(t)||{};i.domain=e,r.markInjectable(t,i);n.get(e)||n.set(e,t)}},t.getDomainConstructors=function(...e){const t=new Set;for(const i of e){const e=n.get(i);e?t.add(e):console.error(`没有获取到 ${String(i)} 对应的Constructor!`)}return Array.from(t)}},71734:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(68361).__exportStar(i(42898),t)},38384:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(1236);function n(e,...t){return Array.isArray(e)?(e.forEach((e=>{e&&(s(e),e.dispose())})),[]):0===t.length?e?(s(e),e.dispose(),e):void 0:(n(e),n(t),[])}t.DisposableStore=class{constructor(){this.toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}clear(){this.toDispose.forEach((e=>e.dispose())),this.toDispose.clear()}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return s(e),this._isDisposed?(console.warn(new Error("Registering disposable on object that has already been disposed of").stack),e.dispose()):this.toDispose.add(e),e}},t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=n,t.combinedDisposable=function(e){return e.forEach(s),a({dispose:()=>n(e)})},t.toDisposable=function(e){return{dispose(){e()}}};class o{constructor(...e){this.disposables=[],this.onDisposeEmitter=new r.Emitter,this.disposingElements=!1,e.forEach((e=>this.addDispose(e)))}static create(e){return{dispose:e}}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&this.onDisposeEmitter.fire(void 0)}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed&&!this.disposingElements){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}addDispose(e){if(Array.isArray(e)){return e.map((e=>this.addDispose(e)))}return this.add(e)}registerDispose(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this.add(e),e}add(e){const t=this.disposables;t.push(e);const i=e.dispose.bind(e),r=o.create((()=>{const i=t.indexOf(e);-1!==i&&t.splice(i,1),this.checkDisposed()}));return e.dispose=()=>{r.dispose(),i()},r}}t.Disposable=o,o.NULL=o.create((()=>{})),o.None=Object.freeze({dispose(){}});t.DisposableCollection=class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new r.Emitter,this.disposingElements=!1,e.forEach((e=>this.push(e)))}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&this.onDisposeEmitter.fire(void 0)}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed&&!this.disposingElements){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}push(e){const t=this.disposables;t.push(e);const i=e.dispose.bind(e),r=o.create((()=>{const i=t.indexOf(e);-1!==i&&t.splice(i,1),this.checkDisposed()}));return e.dispose=()=>{r.dispose(),i()},r}pushAll(e){return e.map((e=>this.push(e)))}};function s(e){}function a(e){return e}t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value&&this._value.dispose(),this._value=void 0}}},83977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IElectronMainUIService=Symbol("IElectronMainUIService"),t.IElectronMainLifeCycleService=Symbol("IElectronMainLifeCycleService")},57053:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(27566);t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.isUTF8=function(e){return!!e&&o(e)===t.UTF8};const n={ibm866:"cp866",big5:"cp950",utf8bom:"utf8"};function o(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return n[t]||t}t.toIconvLiteEncoding=o,t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:const t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}},t.iconvDecode=function(e,t){return t=o(t),r.decode(e,t)}},53188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach((t=>{t(e)}))}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=i,t.errorHandler=new i,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){n(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack}}return e};const r="Canceled";function n(e){return e instanceof Error&&e.name===r&&e.message===r}t.isPromiseCanceledError=n,t.canceled=function(){const e=new Error(r);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}},541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BasicEvent=class{constructor(e){this.payload=e}}},60801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEventBus=Symbol("IEventBus")},53097:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(1236),s=i(541);let a=class{constructor(){this.emitterMap=new Map}fire(e,t={}){const i=e&&e.constructor;if("function"==typeof i&&s.BasicEvent.isPrototypeOf(i)){const t=this.emitterMap.get(i);t&&t.fire(e)}}async fireAndAwait(e,t={timeout:2e3}){const i=e&&e.constructor;if("function"==typeof i&&s.BasicEvent.isPrototypeOf(i)){const r=this.emitterMap.get(i);if(r)return r.fireAndAwait(e,t.timeout)}return[]}on(e,t){return this.getOrCreateEmitter(e).event(t)}once(e,t){const i=this.getOrCreateEmitter(e);return o.Event.once(i.event)(t)}getOrCreateEmitter(e){const t=this.emitterMap.get(e);if(t)return t;const i=new o.Emitter;return this.emitterMap.set(e,i),i}};a=r.__decorate([n.Injectable()],a),t.EventBusImpl=a},28171:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(60801),o=Symbol("EVENT_TOKEN"),s=i(19745),a=i(38384);class c extends a.Disposable{constructor(...e){super(...e);const t=Reflect.getMetadata(o,this)||new Map;for(const[e,i]of t.entries()){const t=this.eventBus.on(i,(t=>this[e](t)));this.addDispose(t)}}}r.__decorate([s.Autowired(n.IEventBus),r.__metadata("design:type",Object)],c.prototype,"eventBus",void 0),t.WithEventBus=c,t.OnEvent=function(e){return(t,i,r)=>{const n=Reflect.getMetadata(o,t)||new Map;n.set(i,e),Reflect.defineMetadata(o,n,t)}}},55783:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(541),t),r.__exportStar(i(60801),t),r.__exportStar(i(53097),t),r.__exportStar(i(28171),t)},1236:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53188),n=i(14895),o=i(38384),s=i(50777);var a;!function(e){const t={dispose(){}};function i(e){return(t,i=null,r)=>{let n,o=!1;return n=e((e=>{if(!o)return n?n.dispose():o=!0,t.call(i,e)}),null,r),o&&n.dispose(),n}}function r(e,t){return c(((i,r=null,n)=>e((e=>i.call(r,t(e))),null,n)))}function n(e,t){return c(((i,r=null,n)=>e((e=>{t(e),i.call(r,e)}),null,n)))}function s(e,t){return c(((i,r=null,n)=>e((e=>t(e)&&i.call(r,e)),null,n)))}function a(e,t,i){let n=i;return r(e,(e=>(n=t(n,e),n)))}function c(e){let t;const i=new u({onFirstListenerAdd(){t=e(i.fire,i)},onLastListenerRemove(){t.dispose()}});return i.event}function l(e){let t,i=!0;return s(e,(e=>{const r=i||e!==t;return i=!1,t=e,r}))}e.None=function(){return t},e.once=i,e.map=r,e.forEach=n,e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,r)=>o.combinedDisposable(e.map((e=>e((e=>t.call(i,e)),null,r))))},e.reduce=a,e.snapshot=c,e.debounce=function(e,t,i=100,r=!1,n){let o,s,a,c=0;const l=new u({leakWarningThreshold:n,onFirstListenerAdd(){o=e((e=>{c++,s=t(s,e),r&&!a&&l.fire(s),clearTimeout(a),a=setTimeout((()=>{const e=s;s=void 0,a=void 0,(!r||c>1)&&l.fire(e),c=0}),i)}))},onLastListenerRemove(){o.dispose()}});return l.event},e.stopwatch=function(e){const t=(new Date).getTime();return r(i(e),(e=>(new Date).getTime()-t))},e.latch=l,e.buffer=function(e,t=!1,i=[]){let r=i.slice(),n=e((e=>{r?r.push(e):s.fire(e)}));const o=()=>{r&&r.forEach((e=>s.fire(e))),r=null},s=new u({onFirstListenerAdd(){n||(n=e((e=>s.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){n&&n.dispose(),n=null}});return s.event};class d{constructor(e){this.event=e}map(e){return new d(r(this.event,e))}forEach(e){return new d(n(this.event,e))}filter(e){return new d(s(this.event,e))}reduce(e,t){return new d(a(this.event,e,t))}latch(){return new d(l(this.event))}on(e,t,i){return this.event(e,t,i)}once(e,t,r){return i(this.event)(e,t,r)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,i=(e=>e)){const r=(...e)=>n.fire(i(...e)),n=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return n.event},e.fromPromise=function(e){const t=new u;let i=!1;return e.then(void 0,(()=>null)).then((()=>{i?t.fire(void 0):setTimeout((()=>t.fire(void 0)),0)})),i=!0,t.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))}}(a=t.Event||(t.Event={}));let c=-1;t.setGlobalLeakWarningThreshold=function(e){const t=c;return c=e,{dispose(){c=t}}};class l{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=c;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e{(!i||r{const e=this._stacks.get(i)||0;this._stacks.set(i,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=c>0?new l(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,i)=>{this._listeners||(this._listeners=new s.LinkedList);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(t?[e,t]:e);let a,c;return r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(a=this._leakageMon.check(this._listeners.size)),c={dispose:()=>{if(a&&a(),c.dispose=u._noop,!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},i instanceof o.DisposableStore?i.add(c):Array.isArray(i)&&i.push(c),c}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s.LinkedList);for(let t=this._listeners.iterator(),i=t.next();!i.done;i=t.next())this._deliveryQueue.push([i.value,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e)}}}}async fireAndAwait(e,t=2e3){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s.LinkedList);for(let t=this._listeners.iterator(),i=t.next();!i.done;i=t.next())this._deliveryQueue.push([i.value,e]);const i=[],n=new Promise((e=>{setTimeout((()=>{e({err:new Error("timeout")})}),t)}));for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{const r=(async()=>{try{return"function"==typeof e?{result:await e.call(void 0,t)}:{result:await e[0].call(e[1],t)}}catch(e){return{err:e}}})();i.push(Promise.race([n,r]))}catch(e){r.onUnexpectedError(e)}}return Promise.all(i)}return[]}get listenerSize(){return this._listeners?this._listeners.size:0}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}t.Emitter=u,u._noop=function(){};t.PauseableEmitter=class extends u{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s.LinkedList,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}},function(e){e.fire=async function(e,t,i){const r=[],n=Object.assign(t,{waitUntil:e=>{if(Object.isFrozen(r))throw new Error("waitUntil cannot be called asynchronously.");r.push(e)}});e.fire(n),Object.freeze(r),delete n.waitUntil,r.length&&(void 0!==i?await Promise.race([Promise.all(r),new Promise((e=>setTimeout(e,i)))]):await Promise.all(r))}}(t.WaitUntilEvent||(t.WaitUntilEvent={}));t.AsyncEmitter=class extends u{async fireAsync(e,t,i){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new s.LinkedList);for(let t=this._listeners.iterator(),i=t.next();!i.done;i=t.next())this._asyncDeliveryQueue.push([i.value,e]);for(;this._asyncDeliveryQueue.size>0&&!t.isCancellationRequested;){const[e,t]=this._asyncDeliveryQueue.shift(),n=[],o=Object.assign(Object.assign({},t),{waitUntil:t=>{if(Object.isFrozen(n))throw new Error("waitUntil can NOT be called asynchronous");i&&(t=i(t,"function"==typeof e?e:e[0])),n.push(t)}});try{"function"==typeof e?e.call(void 0,o):e[0].call(e[1],o)}catch(e){r.onUnexpectedError(e);continue}Object.freeze(n),await Promise.all(n.map((e=>e.catch((e=>e))))).catch((e=>r.onUnexpectedError(e)))}}}};t.EventMultiplexer=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return o.toDisposable(n.once((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}};t.EventBufferer=class{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,r)=>e((e=>{const r=this.buffers[this.buffers.length-1];r?r.push((()=>t.call(i,e))):t.call(i,e)}),void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}};t.Relay=class{constructor(){this.listening=!1,this.inputEvent=a.None,this.inputEventListener=o.Disposable.None,this.emitter=new u({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},43004:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(29332),n=i(38142);function o(...e){return function(t,i){for(let r=0,n=e.length;r0?[{start:0,end:t.length}]:[]:null}function a(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function c(e,t){return l(e.toLowerCase(),t.toLowerCase(),0,0)}function l(e,t,i,r){if(i===e.length)return[];if(r===t.length)return null;if(e[i]===t[r]){let n=null;return(n=l(e,t,i+1,r+1))?v({start:r,end:r+1},n):null}return l(e,t,i,r+1)}function u(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function h(e){return 48<=e&&e<=57}function p(e){return 32===e||9===e||10===e||13===e}t.or=o,t.matchesStrictPrefix=s.bind(void 0,!1),t.matchesPrefix=s.bind(void 0,!0),t.matchesContiguousSubString=a,t.matchesSubString=c,t.isUpper=d;const f=new Set;function g(e){return p(e)||f.has(e)}function m(e){return u(e)||d(e)||h(e)}function v(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function y(e,t){for(let i=t;i0&&!m(e.charCodeAt(i-1)))return i}return e.length}function _(e,t,i,r){if(i===e.length)return[];if(r===t.length)return null;if(e[i]!==t[r].toLowerCase())return null;{let n=null,o=r+1;for(n=_(e,t,i+1,r+1);!n&&(o=y(t,o))60)return null;const i=function(e){let t=0,i=0,r=0,n=0,o=0;for(let s=0;s.2&&t<.8&&r>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let r=null,n=0;for(e=e.toLowerCase();n0&&g(e.charCodeAt(i-1)))return i;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((e=>f.add(e.charCodeAt(0)))),t.matchesCamelCase=b,t.matchesWords=function(e,t,i=!1){if(!t||0===t.length)return null;let r=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n=0)c+=1,a+=2**i,l=i+1;else if(0!==a)break}return[c,a,o]},t.createMatches=k;const D=128;function M(){const e=[],t=[0];for(let e=1;e<=D;e++)t.push(-e);for(let i=0;i<=D;i++){const r=t.slice(0);r[0]=-i,e.push(r)}return e}const x=M(),T=M(),A=M();function I(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function P(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function R(e,t,i){return t[e]!==i[e]}function L(e,t,i,r,n,o){for(;tD?D:e.length,c=r.length>D?D:r.length;if(i>=a||o>=c||a>c)return;if(!L(t,i,a,n,o,c))return;const l=i,u=o;for(i=l+1;i<=a;i++)for(o=1;o<=c;o++){let s=-1;t[i-1]===n[o-1]&&(s=o===i-l?e[i-1]===r[o-1]?7:5:!R(o-1,r,n)||1!==o&&R(o-2,r,n)?I(n,o-2)||P(n,o-2)?5:1:e[i-1]===r[o-1]?7:5),T[i][o]=s;const a=x[i-1][o-1]+(s>1?1:s),c=x[i-1][o]+-1,u=x[i][o-1]+-1;u>=c?u>a?(x[i][o]=u,A[i][o]=4):u===a?(x[i][o]=u,A[i][o]=6):(x[i][o]=a,A[i][o]=2):c>a?(x[i][o]=c,A[i][o]=1):c===a?(x[i][o]=c,A[i][o]=3):(x[i][o]=a,A[i][o]=2)}return F=0,z=-100,V=l,j=s,K(a,c,a===c?1:0,0,!1),0!==F?[z,B,u]:void 0}t.isPatternInWord=L,function(e){e.Default=Object.freeze([-100,0,0]),e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(t.FuzzyScore||(t.FuzzyScore={})),t.fuzzyScore=N;let F=0,B=0,z=0,V=0,j=!1;function K(e,t,i,r,n){if(F>=10||i<-25)return;let o=0;for(;e>V&&t>0;){const s=T[e][t],a=A[e][t];if(4===a)t-=1,n?i-=5:0!==r&&(i-=1),n=!1,o=0;else{if(!(2&a))return;if(4&a&&K(e,t-1,0!==r?i-1:i,r,n),i+=s,e-=1,n=!0,r+=2**(t-=1),1===s){if(o+=1,e===V&&!j)return}else i+=1+o*(s-1),o=0}}F+=1,(i-=t>=3?9:3*t)>z&&(z=i,B=r)}function H(e,t,i,r,n,o,s,a){let c=N(e,t,i,r,n,o,a);if(c&&!s)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let s=i+1;sc[0])&&(c=e))}}}return c}function W(e,t){if(t+1>=e.length)return;const i=e[t],r=e[t+1];return i!==r?e.slice(0,t)+r+i+e.slice(t+2):void 0}t.fuzzyScoreGracefulAggressive=function(e,t,i,r,n,o,s){return H(e,t,i,r,n,o,!0,s)},t.fuzzyScoreGraceful=function(e,t,i,r,n,o,s){return H(e,t,i,r,n,o,!1,s)}},14895:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let i,r=!1;return function(){return r||(r=!0,i=e.apply(t,arguments)),i}},t.makeRandomHexString=function(e){const t=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];let i="";for(let r=0;ri(e,t))):e.indexOf(t),-1!==r&&e.splice(r,1)}},65686:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(71734),t),r.__exportStar(i(55783),t),r.__exportStar(i(97697),t),r.__exportStar(i(38384),t),r.__exportStar(i(80673),t),r.__exportStar(i(26666),t),r.__exportStar(i(53350),t),r.__exportStar(i(1236),t),r.__exportStar(i(82339),t),r.__exportStar(i(64869),t),r.__exportStar(i(39993),t),r.__exportStar(i(95),t),r.__exportStar(i(96968),t),r.__exportStar(i(63817),t),r.__exportStar(i(90858),t),r.__exportStar(i(20597),t),r.__exportStar(i(30108),t),r.__exportStar(i(8925),t),r.__exportStar(i(14895),t),r.__exportStar(i(31531),t),r.__exportStar(i(62239),t),r.__exportStar(i(65461),t),r.__exportStar(i(86956),t),r.__exportStar(i(94945),t),r.__exportStar(i(64006),t),r.__exportStar(i(34041),t),r.__exportStar(i(68187),t),r.__exportStar(i(65461),t),r.__exportStar(i(14586),t),r.__exportStar(i(28478),t),r.__exportStar(i(43188),t),r.__exportStar(i(60101),t),r.__exportStar(i(82693),t),r.__exportStar(i(53188),t),r.__exportStar(i(79701),t),r.__exportStar(i(93536),t),r.__exportStar(i(43004),t),r.__exportStar(i(77991),t),r.__exportStar(i(21609),t)},87178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0}},565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyboardPath="/services/keyboard",t.KeyboardNativeLayoutService=Symbol("KeyboardNativeLayoutService"),t.KeyboardLayoutChangeNotifierService=Symbol("KeyboardLayoutChangeNotifierService"),t.KeyValidator=Symbol("KeyValidator")},93536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BasicTextLines=class{constructor(e,t){this._lines=e,this._eol=t}getContent(){return this._lines.join(this._eol)}_setLineText(e,t){this._lines[e]=t}acceptEol(e){this._eol=e}acceptChange(e){this._acceptDeleteRange(e.range),this._acceptInsertText({lineNumber:e.range.startLineNumber,column:e.range.startColumn},e.text||"")}_getLineContent(e){return this._lines[e]||""}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._getLineContent(e.startLineNumber-1).substring(0,e.startColumn-1)+this._getLineContent(e.endLineNumber-1).substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._getLineContent(e.startLineNumber-1).substring(0,e.startColumn-1)+this._getLineContent(e.startLineNumber-1).substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=t.split(/\r\n|\r|\n/);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._getLineContent(e.lineNumber-1).substring(0,e.column-1)+i[0]+this._getLineContent(e.lineNumber-1).substring(e.column-1));i[i.length-1]+=this._getLineContent(e.lineNumber-1).substring(e.column-1),this._setLineText(e.lineNumber-1,this._getLineContent(e.lineNumber-1).substring(0,e.column-1)+i[0]);const r=new Uint32Array(i.length-1);for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(87178);class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);t.LinkedList=class{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===n.Undefined?r.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}toArray(){const e=[];for(let t=this._first;t!==n.Undefined;t=t.next)e.push(t.element);return e}}},80433:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(96968);class o{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"==typeof e?e:e.label)).join("")}}r.__decorate([n.memoize,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",String)],o.prototype,"toString",null),t.LinkedText=o;const s=/\[([^\]]+)\]\(((?:https?:\/\/|command:)[^\)\s]+)(?: ("|')([^\3]+)(\3))?\)/gi;t.parseLinkedText=function(e){const t=[];let i,r=0;for(;i=s.exec(e);){i.index-r>0&&t.push(e.substring(r,i.index));const[,n,o,,s]=i;s?t.push({label:n,href:o,title:s}):t.push({label:n,href:o}),r=i.index+i[0].length}return r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(38142);let n="zh-CN";const o=new Map;function s(e,t,i="host"){return c(i).getLocalizeString(e,t)}t.localize=s,t.formatLocalize=function(e,...t){return r.format(s(e),...t)},t.registerLocalizationBundle=function(e,t="host"){return c(t).registerLocalizationBundle(e)};class a{constructor(){this.localizationMap=new Map,this.localizationInfo=new Map}registerLocalizationBundle(e){const t=this.getContents(e.languageId);Object.keys(e.contents).forEach((i=>{t[i]=r.mnemonicButtonLabel(e.contents[i],!0)})),this.localizationInfo.has(e.languageId)||this.localizationInfo.set(e.languageId,Object.assign({},e,{contents:void 0}))}getLocalizeString(e,t){const i=this.getContents("default")[e];return this.getContents(n)[e]||i||t||""}getContents(e="zh-CN"){return e=e.toLowerCase(),this.localizationMap.has(e)||this.localizationMap.set(e,{}),this.localizationMap.get(e)}getAllLanguages(){return Array.from(this.localizationInfo.values())}}function c(e){return o[e]||(o[e]=new a),o[e]}t.getLanguageId=function(e="host"){return n},t.getCurrentLanguageInfo=function(e="host"){return c(e).localizationInfo.get(n)},t.setLanguageId=function(e){n=e},t.getAvailableLanguages=function(e="host"){return c(e).getAllLanguages()},t.replaceLocalizePlaceholder=function(e,t){if(e)return e.replace(/%(.*?)%/g,((e,i)=>s(i,void 0,t).replace(/\"/g,'\\"')))}},64006:(e,t,i)=>{"use strict";var r=i(63634);Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Verbose=0]="Verbose",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"}(t.LogLevel||(t.LogLevel={})),function(e){e.Main="main",e.Render="render",e.Node="node",e.Browser="browser",e.ExtensionHost="extHost",e.App="app",e.OTHER="other"}(t.SupportLogNamespace||(t.SupportLogNamespace={})),t.ILogServiceManager=Symbol("ILogServiceManager"),t.LogServiceForClientPath="LogServiceForClientPath",t.ILoggerManagerClient=Symbol("ILoggerManagerClient");const n=void 0!==r&&r.release,o=!n&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);class s{constructor(e){this.isEnable=!1,this.verbose=(...e)=>{if(this.isEnable)return console.debug(this.getPre("verbose","green"),...e)},this.debug=(...e)=>{if(this.isEnable)return console.debug(this.getPre("debug","blue"),...e)},this.log=(...e)=>{if(this.isEnable)return console.log(this.getPre("log","green"),...e)},this.error=(...e)=>console.error(this.getPre("error","red"),...e),this.warn=(...e)=>{if(this.isEnable)return console.warn(this.getPre("warn","yellow"),...e)},this.info=(...e)=>{if(this.isEnable)return console.info(this.getPre("log","green"),...e)},void 0!==r&&{IS_DEV:!1}.KTLOG_SHOW_DEBUG&&(this.isEnable=!0),this.namespace=e||""}getPre(e,t){const i=this.namespace?`[${this.namespace}:${e}]`:`[${e}]`;return this.getColor(t,i)}getColor(e,t){if(!n&&!o)return t;const i={reset:"",black:"",red:"",green:"",yellow:"3[33m",blue:"",magenta:"",cyan:"",white:"",blackBg:"",redBg:"",greenBg:"",yellowBg:"",blueBg:"",magentaBg:"",cyanBg:"",whiteBg:""};return(i[e]||"")+t+i.reset}destroy(){}}t.DebugLog=s,t.ILogger=Symbol("ILogger"),t.getDebugLogger=function(e){const t=new s(e);return{get verbose(){return t.verbose},get log(){return t.log},get debug(){return t.debug},get error(){return t.error},get info(){return t.info},get warn(){return t.warn},destroy(){}}}},29332:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(17373),n=i(87178);function o(e){const t=[];return e.forEach((e=>t.push(e))),t}function s(e){const t=[];return e.forEach(((e,i)=>t.push(i))),t}t.values=o,t.keys=s,t.getOrSet=function(e,t,i){let r=e.get(t);return void 0===r&&(r=i,e.set(t,r)),r},t.mapToString=function(e){const t=[];return e.forEach(((e,i)=>{t.push(`${i} => ${e}`)})),`Map(${e.size}) {${t.join(", ")}}`},t.setToString=function(e){const t=[];return e.forEach((e=>{t.push(e)})),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach(((e,i)=>{t.push([i,e])})),t},t.serializableToMap=function(e){const t=new Map;for(const[i,r]of e)t.set(i,r);return t};class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos0)r.left||(r.left=new l,r.left.segment=i.value()),r=r.left;else if(e<0)r.right||(r.right=new l,r.right.segment=i.value()),r=r.right;else{if(!i.hasNext())break;i.next(),r.mid||(r.mid=new l,r.mid.segment=i.value()),r=r.mid}}const n=r.value;return r.value=t,r.key=e,n}get(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i?i.value:void 0}delete(e){const t=this._iter.reset(e),i=[];let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)i.push([1,r]),r=r.left;else if(e<0)i.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;i.length>0&&r.isEmpty();){let[e,t]=i.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}r=t}break}t.next(),i.push([0,r]),r=r.mid}}}findSubstr(e){const t=this._iter.reset(e);let i,r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),i=r.value||i,r=r.mid}}return r&&r.value||i}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())return i.mid?this._nodeIterator(i.mid):void 0;t.next(),i=i.mid}}}_nodeIterator(e){let t,i,r;return{next:()=>(r||(r=[],i=0,this._forEach(e,(e=>r.push(e)))),i>=r.length?n.FIN:(t?t.value=r[i++]:t={done:!1,value:r[i++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}t.TernarySearchTree=u;class d{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return o(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return s(this.map).map((e=>r.URI.parse(e)))}clone(){const e=new d;return this.map.forEach(((t,i)=>e.map.set(i,t))),e}}t.ResourceMap=d;class h{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let r=this._map.get(e);if(r)r.value=t,0!==i&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._head;for(;i;)t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),i=i.next}values(){const e=[];let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}t.LinkedMap=h;t.LRUCache=class extends h{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};t.SetMap=class{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}}},64869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IElectronMainMenuService=Symbol("IElectronMainMenuService")},26666:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745);class o{}r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],o.prototype,"injector",void 0),t.BasicModule=o,t.ModuleDependencies=function(e){return t=>{Reflect.defineMetadata("dependencies",e,t)}}},86956:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.userData="vscode-userdata"}(t.Schemas||(t.Schemas={}))},79701:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(27317);function n(e,t,i){if(0===t)return i(0);const s=new r.Socket;s.once("connect",(()=>(o(s),n(e+1,t-1,i)))),s.once("data",(()=>{})),s.once("error",(r=>(o(s),"ECONNREFUSED"!==r.code?n(e+1,t-1,i):i(e)))),s.connect(e,"127.0.0.1")}function o(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(e){console.error(e)}}t.randomPort=function(){return 1025+Math.floor(64510*Math.random())},t.findFreePort=function(e,t,i){let r=!1;return new Promise((o=>{const s=setTimeout((()=>{if(!r)return r=!0,o(0)}),i);n(e,t,(e=>{if(!r)return r=!0,clearTimeout(s),o(e)}))}))},t.findFreePortFaster=function(e,t,n){let o,s=!1,a=1;const c=r.createServer({pauseOnConnect:!0});function l(e,t){s||(s=!0,c.removeAllListeners(),c.close(),o&&clearTimeout(o),t(e))}return new Promise((r=>{o=i.g.setTimeout((()=>{l(0,r)}),n),c.on("listening",(()=>{l(e,r)})),c.on("error",(i=>{i&&("EADDRINUSE"===i.code||"EACCES"===i.code)&&a{l(0,r)})),c.listen(e,"127.0.0.1")}))}},35463:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(14560),n=i(96968).isWindows?/\\/g:/\//g;class o{constructor(e){e=e.replace(n,o.separator),this.raw=o.normalizeDrive(e);const t=e.indexOf(o.separator),i=e.lastIndexOf(o.separator);this.isAbsolute=0===t,this.base=-1===i?e:e.substr(i+1),this.isRoot=this.isAbsolute&&t===i&&(!this.base||o.isDrive(this.base)),this.root=this.computeRoot();const r=this.base.lastIndexOf(".");-1===r||0===r?(this.name=this.base,this.ext=""):(this.name=this.base.substr(0,r),this.ext=this.base.substr(r))}static isDrive(e){return e.endsWith(":")}static splitPath(e){return e.split(o.separator).filter((e=>!!e))}static isRelative(e){return!e.startsWith(o.separator)}static pathDepth(e){return e.split(o.separator).length}static normalizeDrive(e){if(e.length>=3&&47===e.charCodeAt(0)&&58===e.charCodeAt(2)){const t=e.charCodeAt(1);t>=65&&t<=90&&(e=`/${String.fromCharCode(t+32)}:${e.substr(3)}`)}else if(e.length>=2&&58===e.charCodeAt(1)){const t=e.charCodeAt(0);t>=65&&t<=90&&(e=`${String.fromCharCode(t+32)}:${e.substr(2)}`)}return e}computeRoot(){if(this.isRoot)return this;if(!this.isAbsolute)return;const e=this.raw.indexOf(o.separator,o.separator.length);return-1===e?new o(o.separator):new o(this.raw.substr(0,e)).root}get dir(){return void 0===this._dir&&(this._dir=this.computeDir()),this._dir}computeDir(){if(this.isRoot)return this;const e=this.raw.lastIndexOf(o.separator);if(-1===e)return this;if(this.isAbsolute){const t=this.raw.indexOf(o.separator);if(t===e)return new o(this.raw.substr(0,t+1))}return new o(this.raw.substr(0,e))}join(...e){if(f(this.raw.charCodeAt(0)))return new o(t.win32.join(this.raw,...e));const i=e.filter((e=>!!e)).join(o.separator);return i?this.raw.endsWith(o.separator)||i.startsWith(o.separator)?new o(this.raw+i):new o(this.raw+o.separator+i):this}toString(){return this.raw}relative(e){if(this.raw===e.raw)return new o("");if(!this.raw||!e.raw)return;const t=this.base?this.raw+o.separator:this.raw;if(!e.raw.startsWith(t))return;const i=e.raw.substr(t.length);return new o(i)}isEqualOrParent(e){return!!this.relative(e)}isEqual(e){return this.raw===e.raw}relativity(e){const t=this.relative(e);if(t){const e=t.toString();return""===e?0:e.split(o.separator).length}return-1}}t.Path=o,o.separator="/";const s=46,a=47,c=92,l=58;class u extends Error{constructor(e,t,i){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const n=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${n} ${r} of type ${t}`;o+=". Received type "+typeof i,super(o)}}function d(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function h(e){return e===a||e===c}function p(e){return e===a}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function g(e,t,i,r){let n,o="",c=0,l=-1,u=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(i);-1===e?(o="",c=0):(o=o.slice(0,e),c=o.length-1-o.lastIndexOf(i)),l=d,u=0;continue}if(2===o.length||1===o.length){o="",c=0,l=d,u=0;continue}}t&&(o.length>0?o+=`${i}..`:o="..",c=2)}else o.length>0?o+=i+e.slice(l+1,d):o=e.slice(l+1,d),c=d-l-1;l=d,u=0}else n===s&&-1!==u?++u:u=-1}return o}function m(e,t){const i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}t.win32={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0?s=e[o]:t?(s=r.env["="+t]||r.cwd(),void 0!==s&&s.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\")):s=r.cwd(),d(s,"path"),0===s.length)continue;const a=s.length;let c=0,u="",p=!1;const g=s.charCodeAt(0);if(a>1)if(h(g))if(p=!0,h(s.charCodeAt(1))){let e=2,t=e;for(;e2&&h(s.charCodeAt(2))&&(p=!0,c=3));else h(g)&&(c=1,p=!0);if(!(u.length>0&&t.length>0&&u.toLowerCase()!==t.toLowerCase())&&(0===t.length&&u.length>0&&(t=u),n||(i=s.slice(c)+"\\"+i,n=p),t.length>0&&n))break}return i=g(i,!n,"\\",h),t+(n?"\\":"")+i||"."},normalize(e){d(e,"path");const t=e.length;if(0===t)return".";let i,r=0,n=!1;const o=e.charCodeAt(0);if(t>1)if(h(o))if(n=!0,h(e.charCodeAt(1))){let n=2,o=n;for(;n2&&h(e.charCodeAt(2))&&(n=!0,r=3));else if(h(o))return"\\";let s;return s=r0&&h(e.charCodeAt(t-1))&&(s+="\\"),void 0===i?n?s.length>0?"\\"+s:"\\":s.length>0?s:"":n?s.length>0?i+"\\"+s:i+"\\":s.length>0?i+s:i},isAbsolute(e){d(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return!!h(i)||!!(f(i)&&t>2&&e.charCodeAt(1)===l&&h(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let i,r;for(let t=0;t0&&(void 0===i?i=r=n:i+="\\"+n)}if(void 0===i)return".";let n=!0,o=0;if("string"==typeof r&&h(r.charCodeAt(0))){++o;const e=r.length;e>1&&h(r.charCodeAt(1))&&(++o,e>2&&(h(r.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(i="\\"+i.slice(o))}return t.win32.normalize(i)},relative(e,i){if(d(e,"from"),d(i,"to"),e===i)return"";const r=t.win32.resolve(e),n=t.win32.resolve(i);if(r===n)return"";if((e=r.toLowerCase())===(i=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===c;--s);const a=s-o;let l=0;for(;ll&&i.charCodeAt(u-1)===c;--u);const h=u-l,p=ap){if(i.charCodeAt(l+g)===c)return n.slice(l+g+1);if(2===g)return n.slice(l+g)}a>p&&(e.charCodeAt(o+g)===c?f=g:2===g&&(f=3));break}const t=e.charCodeAt(o+g);if(t!==i.charCodeAt(l+g))break;t===c&&(f=g)}if(g!==p&&-1===f)return n;let m="";for(-1===f&&(f=0),g=o+f+1;g<=s;++g)g!==s&&e.charCodeAt(g)!==c||(0===m.length?m+="..":m+="\\..");return m.length>0?m+n.slice(l+f,u):(l+=f,n.charCodeAt(l)===c&&++l,n.slice(l,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const i=t.win32.resolve(e);if(i.length>=3)if(i.charCodeAt(0)===c){if(i.charCodeAt(1)===c){const e=i.charCodeAt(2);if(63!==e&&e!==s)return"\\\\?\\UNC\\"+i.slice(2)}}else if(f(i.charCodeAt(0))&&i.charCodeAt(1)===l&&i.charCodeAt(2)===c)return"\\\\?\\"+i;return e},dirname(e){d(e,"path");const t=e.length;if(0===t)return".";let i=-1,r=-1,n=!0,o=0;const s=e.charCodeAt(0);if(t>1)if(h(s)){if(i=o=1,h(e.charCodeAt(1))){let r=2,n=r;for(;r2&&h(e.charCodeAt(2))&&(i=o=3));else if(h(s))return e;for(let i=t-1;i>=o;--i)if(h(e.charCodeAt(i))){if(!n){r=i;break}}else n=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,r=0,n=-1,o=!0;if(e.length>=2){f(e.charCodeAt(0))&&e.charCodeAt(1)===l&&(r=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=r;--i){const c=e.charCodeAt(i);if(h(c)){if(!o){r=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(n=i):(s=-1,n=a))}return r===n?n=a:-1===n&&(n=e.length),e.slice(r,n)}for(i=e.length-1;i>=r;--i)if(h(e.charCodeAt(i))){if(!o){r=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(r,n)},extname(e){d(e,"path");let t=0,i=-1,r=0,n=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===l&&f(e.charCodeAt(0))&&(t=r=2);for(let c=e.length-1;c>=t;--c){const t=e.charCodeAt(c);if(h(t)){if(!o){r=c+1;break}}else-1===n&&(o=!1,n=c+1),t===s?-1===i?i=c:1!==a&&(a=1):-1!==i&&(a=-1)}return-1===i||-1===n||0===a||1===a&&i===n-1&&i===r+1?"":e.slice(i,n)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("\\",e)},parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let r=0,n=e.charCodeAt(0);if(i>1){if(h(n)){if(r=1,h(e.charCodeAt(1))){let t=2,n=t;for(;t2))return t.root=t.dir=e,t;if(h(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;r=3}}}else if(h(n))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));let o=-1,a=r,c=-1,u=!0,p=e.length-1,g=0;for(;p>=r;--p)if(n=e.charCodeAt(p),h(n)){if(!u){a=p+1;break}}else-1===c&&(u=!1,c=p+1),n===s?-1===o?o=p:1!==g&&(g=1):-1!==o&&(g=-1);return-1===o||-1===c||0===g||1===g&&o===c-1&&o===a+1?-1!==c&&(t.base=t.name=e.slice(a,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c),t.ext=e.slice(o,c)),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let o;o=n>=0?e[n]:r.cwd(),d(o,"path"),0!==o.length&&(t=o+"/"+t,i=o.charCodeAt(0)===a)}return t=g(t,!i,"/",p),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===a,i=e.charCodeAt(e.length-1)===a;return 0!==(e=g(e,!t,"/",p)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(d(e,"path"),e.length>0&&e.charCodeAt(0)===a),join(...e){if(0===e.length)return".";let i;for(let t=0;t0&&(void 0===i?i=e:i+="/"+e)}return void 0===i?".":t.posix.normalize(i)},relative(e,i){if(d(e,"from"),d(i,"to"),e===i)return"";if((e=t.posix.resolve(e))===(i=t.posix.resolve(i)))return"";let r=1;for(;rl){if(i.charCodeAt(s+h)===a)return i.slice(s+h+1);if(0===h)return i.slice(s+h)}else o>l&&(e.charCodeAt(r+h)===a?u=h:0===h&&(u=0));break}const t=e.charCodeAt(r+h);if(t!==i.charCodeAt(s+h))break;t===a&&(u=h)}let p="";for(h=r+u+1;h<=n;++h)h!==n&&e.charCodeAt(h)!==a||(0===p.length?p+="..":p+="/..");return p.length>0?p+i.slice(s+u):(s+=u,i.charCodeAt(s)===a&&++s,i.slice(s))},toNamespacedPath:e=>e,dirname(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===a;let i=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===a){if(!r){i=t;break}}else r=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,r=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===a){if(!o){r=i+1;break}}else-1===c&&(o=!1,c=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(n=i):(s=-1,n=c))}return r===n?n=c:-1===n&&(n=e.length),e.slice(r,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===a){if(!o){r=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(r,n)},extname(e){d(e,"path");let t=-1,i=0,r=-1,n=!0,o=0;for(let c=e.length-1;c>=0;--c){const l=e.charCodeAt(c);if(l!==a)-1===r&&(n=!1,r=c+1),l===s?-1===t?t=c:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){i=c+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===i+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("/",e)},parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===a;let r;i?(t.root="/",r=1):r=0;let n=-1,o=0,c=-1,l=!0,u=e.length-1,h=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==a)-1===c&&(l=!1,c=u+1),t===s?-1===n?n=u:1!==h&&(h=1):-1!==n&&(h=-1);else if(!l){o=u+1;break}}return-1===n||-1===c||0===h||1===h&&n===c-1&&n===o+1?-1!==c&&(t.base=t.name=0===o&&i?e.slice(1,c):e.slice(o,c)):(0===o&&i?(t.name=e.slice(1,n),t.base=e.slice(1,c)):(t.name=e.slice(o,n),t.base=e.slice(o,c)),t.ext=e.slice(n,c)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===r.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===r.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===r.platform?t.win32.join:t.posix.join,t.resolve="win32"===r.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===r.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===r.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===r.platform?t.win32.basename:t.posix.basename,t.extname="win32"===r.platform?t.win32.extname:t.posix.extname,t.format="win32"===r.platform?t.win32.format:t.posix.format,t.parse="win32"===r.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===r.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===r.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===r.platform?t.win32.delimiter:t.posix.delimiter},34417:(e,t,i)=>{"use strict";var r=i(63634);Object.defineProperty(t,"__esModule",{value:!0});const n="en";let o,s,a=!1,c=!1,l=!1,u=!1,d=!1,h=n,p=!1;const f=void 0!==r&&void 0!==r.versions&&void 0!==r.versions.electron&&"renderer"===r.type;if("object"!=typeof navigator||f){if("object"==typeof r){a="win32"===r.platform,c="darwin"===r.platform,l="linux"===r.platform,o=n,h=n;const e={IS_DEV:!1}.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];o=t.locale,h=i||n,s=t._translationsConfigFile}catch(e){}u=!0}}else{const e=navigator.userAgent;a=e.indexOf("Windows")>=0,c=e.indexOf("Macintosh")>=0,l=e.indexOf("Linux")>=0,d=!0,o=navigator.language,h=o,p=e.indexOf("AppleWebKit")>=0}t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let g=0;u&&(c?g=1:a?g=3:l&&(g=2)),t.isWindows=a,t.isMacintosh=c,t.isLinux=l,t.isNative=u,t.isWeb=d,t.platform=g,t.isWebKit=p,t.isRootUser=function(){return u&&!a&&0===r.getuid()},t.language=h,function(e){e.value=function(){return t.language},e.isDefaultVariant=function(){return 2===t.language.length?"en"===t.language:t.language.length>=3&&("e"===t.language[0]&&"n"===t.language[1]&&"-"===t.language[2])},e.isDefault=function(){return"en"===t.language}}(t.Language||(t.Language={})),t.locale=o,t.translationsConfigFile=s;const m="object"==typeof self?self:"object"==typeof i.g?i.g:{};t.globals=m;let v=null;var y;t.setImmediate=function(e){return null===v&&(v=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):void 0!==r&&"function"==typeof r.nextTick?r.nextTick.bind(r):t.globals.setTimeout.bind(t.globals)),v(e)},function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(y=t.OperatingSystem||(t.OperatingSystem={})),t.OS=c?y.Macintosh:a?y.Windows:y.Linux},31531:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(80063),t),r.__exportStar(i(25058),t)},80063:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(25058);var n;!function(e){e.is=function(e){return!!e&&"properties"in e&&n.is(e.properties)},e.getDefaultScope=function(e){let t=r.PreferenceScope.Workspace;return t=r.PreferenceScope.is(e.scope)?e.scope:r.PreferenceScope.fromString(e.scope)||r.PreferenceScope.Workspace,t}}(t.PreferenceSchema||(t.PreferenceSchema={})),function(e){e.is=function(e){return!!e&&"object"==typeof e}}(n=t.PreferenceSchemaProperties||(t.PreferenceSchemaProperties={})),function(e){e.fromPreferenceSchemaProperty=function(e,t=r.PreferenceScope.Workspace){if(e.scope){if("string"==typeof e.scope)return Object.assign(e,{scope:r.PreferenceScope.fromString(e.scope)||t})}else e.scope=t;return e}}(t.PreferenceDataProperty||(t.PreferenceDataProperty={}))},25058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Default=0]="Default",e[e.User=1]="User",e[e.Workspace=2]="Workspace",e[e.Folder=3]="Folder"}(t.PreferenceScope||(t.PreferenceScope={})),function(e){function t(){return Object.keys(e).filter((t=>"string"==typeof e[t])).map((e=>Number(e)))}e.is=function(e){return"number"==typeof e&&t().findIndex((t=>t===e))>=0},e.getScopes=t,e.getReversedScopes=function(){return t().reverse()},e.getScopeNames=function(t){const i=[],r=Object.keys(e).filter((t=>"number"==typeof e[t]));if(t)for(const n of r)e[n]<=t&&i.push(n);return i},e.fromString=function(t){switch(t){case"application":return e.User;case"window":case"resource":return e.Folder}}}(t.PreferenceScope||(t.PreferenceScope={})),t.DEFAULT_WORKSPACE_STORAGE_DIR_NAME=".kaitian"},60101:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(43188),s=i(38384),a=i(1236);var c;!function(e){e.fromWatchingMatcherContribution=function(e){if(e)return{activeOnStart:!!e.activeOnStart,beginsPattern:"string"==typeof e.beginsPattern?{regexp:e.beginsPattern}:e.beginsPattern,endsPattern:"string"==typeof e.endsPattern?{regexp:e.endsPattern}:e.endsPattern}}}(c=t.WatchingMatcher||(t.WatchingMatcher={})),t.IProblemMatcherRegistry=Symbol("IProblemMatcherRegistry");let l=class{constructor(){this.onDidChangeProblemMatcherEmitter=new a.Emitter,this.matchers=new Map,this.get=e=>e.startsWith("$")?this.matchers.get(e.slice(1)):this.matchers.get(e),this.init()}init(){this.fillDefaults()}getAll(){const e=[];for(const t of this.matchers.keys())e.push(this.get(t));return e.sort(((e,t)=>e.name.localeCompare(t.name))),e}register(e){if(!e.name)return console.error("Only named Problem Matchers can be registered."),s.Disposable.NULL;const t=new s.DisposableCollection(s.Disposable.create((()=>{this.onDidChangeProblemMatcherEmitter.fire(void 0)})));return this.doRegister(e,t).then((()=>this.onDidChangeProblemMatcherEmitter.fire(void 0))),t}async doRegister(e,t){const i=await this.getProblemMatcherFromContribution(e);t.disposed||t.push(this.add(i))}add(e){return this.matchers.set(e.name,e),s.Disposable.create((()=>this.matchers.delete(e.name)))}async getProblemMatcherFromContribution(e){let t,i,r;if(e.base&&(t=this.get(e.base)),void 0===e.fileLocation)i=t?t.fileLocation:o.FileLocationKind.Relative,r=t?t.filePrefix:"${workspaceFolder}";else{const t=this.getFileLocationKindAndPrefix(e);i=t.fileLocation,r=t.filePrefix}const n=[];if(e.pattern)if("string"==typeof e.pattern){await this.problemPattern.onReady();const t=this.problemPattern.get(e.pattern);Array.isArray(t)?n.push(...t):t&&n.push(t)}else Array.isArray(e.pattern)?n.push(...e.pattern.map((e=>o.ProblemPattern.fromProblemPatternContribution(e)))):n.push(o.ProblemPattern.fromProblemPatternContribution(e.pattern));else t&&n.push(...t.pattern);let s,a=e.deprecated;void 0===a&&t&&(a=t.deprecated),s=void 0===e.applyTo?t?t.applyTo:o.ApplyToKind.allDocuments:o.ApplyToKind.fromString(e.applyTo)||o.ApplyToKind.allDocuments;let l=o.Severity.fromValue(e.severity);void 0===e.severity&&t&&void 0!==t.severity&&(l=t.severity);let u=c.fromWatchingMatcherContribution(e.background||e.watching);void 0===u&&t&&(u=t.watching);return{name:e.name||(t?t.name:void 0),label:e.label||(t?t.label:void 0),deprecated:a,owner:e.owner||(t?t.owner:""),source:e.source||(t?t.source:void 0),applyTo:s,fileLocation:i,filePrefix:r,pattern:n,severity:l,watching:u}}getFileLocationKindAndPrefix(e){let t=o.FileLocationKind.Relative,i="${workspaceFolder}";if(void 0!==e.fileLocation)if(Array.isArray(e.fileLocation)){if(e.fileLocation.length>0){const r=o.FileLocationKind.fromString(e.fileLocation[0]);1===e.fileLocation.length&&r===o.FileLocationKind.Absolute?t=r:2===e.fileLocation.length&&r===o.FileLocationKind.Relative&&e.fileLocation[1]&&(t=r,i=e.fileLocation[1])}}else{const r=o.FileLocationKind.fromString(e.fileLocation);r&&(t=r,r===o.FileLocationKind.Relative&&(i="${workspaceFolder}"))}return{fileLocation:t,filePrefix:i}}fillDefaults(){this.add({name:"msCompile",label:"Microsoft compiler problems",owner:"msCompile",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,pattern:this.problemPattern.get("msCompile")}),this.add({name:"lessCompile",label:"Less problems",deprecated:!0,owner:"lessCompile",source:"less",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,pattern:this.problemPattern.get("lessCompile"),severity:o.Severity.Error}),this.add({name:"gulp-tsc",label:"Gulp TSC Problems",owner:"typescript",source:"ts",applyTo:o.ApplyToKind.closedDocuments,fileLocation:o.FileLocationKind.Relative,filePrefix:"${workspaceFolder}",pattern:this.problemPattern.get("gulp-tsc")}),this.add({name:"jshint",label:"JSHint problems",owner:"jshint",source:"jshint",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,pattern:this.problemPattern.get("jshint")}),this.add({name:"jshint-stylish",label:"JSHint stylish problems",owner:"jshint",source:"jshint",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,pattern:this.problemPattern.get("jshint-stylish")}),this.add({name:"eslint-compact",label:"ESLint compact problems",owner:"eslint",source:"eslint",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,filePrefix:"${workspaceFolder}",pattern:this.problemPattern.get("eslint-compact")}),this.add({name:"eslint-stylish",label:"ESLint stylish problems",owner:"eslint",source:"eslint",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Absolute,pattern:this.problemPattern.get("eslint-stylish")}),this.add({name:"go",label:"Go problems",owner:"go",source:"go",applyTo:o.ApplyToKind.allDocuments,fileLocation:o.FileLocationKind.Relative,filePrefix:"${workspaceFolder}",pattern:this.problemPattern.get("go")})}};r.__decorate([n.Autowired(o.IProblemPatternRegistry),r.__metadata("design:type",Object)],l.prototype,"problemPattern",void 0),l=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],l),t.ProblemMatchersRegistryImpl=l},43188:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(77303),s=i(38384);var a,c,l,u,d,h;!function(e){e[e.allDocuments=0]="allDocuments",e[e.openDocuments=1]="openDocuments",e[e.closedDocuments=2]="closedDocuments"}(t.ApplyToKind||(t.ApplyToKind={})),function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint"}(a||(a={})),function(e){e.fromString=function(t){if(t){if("alldocuments"===(t=t.toLowerCase()))return e.allDocuments;if("opendocuments"===t)return e.openDocuments;if("closeddocuments"===t)return e.closedDocuments}}}(t.ApplyToKind||(t.ApplyToKind={})),function(e){e[e.File=0]="File",e[e.Location=1]="Location"}(c=t.ProblemLocationKind||(t.ProblemLocationKind={})),function(e){e.fromString=function(t){return"file"===(t=t.toLowerCase())?e.File:"location"===t?e.Location:void 0}}(c=t.ProblemLocationKind||(t.ProblemLocationKind={})),function(e){e.fromString=function(t){return"absolute"===(t=t.toLowerCase())?e.Absolute:"relative"===t?e.Relative:void 0}}(t.FileLocationKind||(t.FileLocationKind={})),function(e){e[e.Default=0]="Default",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e[e.AutoDetect=3]="AutoDetect"}(t.FileLocationKind||(t.FileLocationKind={})),function(e){e.is=function(e){let t=e;return t&&o.isString(t.regexp)}}(l=t.CheckedProblemPattern||(t.CheckedProblemPattern={})),function(e){e.is=function(e){return e&&o.isArray(e)}}(u=t.MultiLineProblemPattern||(t.MultiLineProblemPattern={})),function(e){e.is=function(e){if(!u.is(e))return!1;for(const t of e)if(!l.is(t))return!1;return!0}}(d=t.MultiLineCheckedProblemPattern||(t.MultiLineCheckedProblemPattern={})),function(e){e.is=function(e){let t=e;return t&&o.isString(t.name)}}(t.NamedProblemPattern||(t.NamedProblemPattern={})),function(e){e.is=function(e){let t=e;return t&&o.isString(t.name)&&o.isArray(t.patterns)&&d.is(t.patterns)}}(t.NamedMultiLineCheckedProblemPattern||(t.NamedMultiLineCheckedProblemPattern={})),function(e){e.fromProblemPatternContribution=function(e){return{name:e.name,regexp:e.regexp,kind:e.kind?c.fromString(e.kind):void 0,file:e.file,message:e.message,location:e.location,line:e.line,character:e.column||e.character,endLine:e.endLine,endCharacter:e.endColumn||e.endCharacter,code:e.code,severity:e.severity,loop:e.loop}}}(h=t.ProblemPattern||(t.ProblemPattern={})),function(e){e.is=function(e){return"marker"in e}}(t.ProblemMatchData||(t.ProblemMatchData={})),function(e){e[e.Ignore=0]="Ignore",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Log=4]="Log"}(t.Severity||(t.Severity={})),function(e){const t="Errors",i="Warnings",r="Info";e.fromValue=function(t){return(t=t&&t.toLowerCase())?-1!==["error","errors"].indexOf(t)?e.Error:-1!==["warn","warning","warnings"].indexOf(t)?e.Warning:"info"===t?e.Info:"log"===t?e.Log:e.Ignore:e.Ignore},e.toDiagnosticSeverity=function(t){switch(t){case e.Ignore:return a.Hint;case e.Info:case e.Log:return a.Information;case e.Warning:return a.Warning;case e.Error:default:return a.Error}},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return r;case e.Log:return"Log";default:return"All"}},e.toArray=function(){return["All",t,i,r,"Log"]}}(t.Severity||(t.Severity={})),t.IProblemPatternRegistry=Symbol("ProblemPatternRegistry");let p=class{constructor(){this.patterns=new Map,this.init()}init(){this.fillDefaults(),this.readyPromise=new Promise(((e,t)=>e(void 0)))}onReady(){return this.readyPromise}register(e){if(Array.isArray(e)){const t=new s.DisposableCollection;return e.forEach((e=>t.push(this.register(e)))),t}if(!e.name)return console.error("Only named Problem Patterns can be registered."),s.Disposable.NULL;const t=h.fromProblemPatternContribution(e);return this.add(t.name,t)}get(e){return e.startsWith("$")?this.patterns.get(e.slice(1)):this.patterns.get(e)}add(e,t){let i;return i=Array.isArray(t)?t.map((t=>Object.assign(t,{name:e}))):Object.assign(t,{name:e}),this.patterns.set(e,i),s.Disposable.create((()=>this.patterns.delete(e)))}fillDefaults(){this.add("msCompile",{regexp:/^(?:\s+\d+\>)?([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/.source,kind:c.Location,file:1,location:2,severity:3,code:4,message:5}),this.add("gulp-tsc",{regexp:/^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(\d+)\s+(.*)$/.source,kind:c.Location,file:1,location:2,code:3,message:4}),this.add("cpp",{regexp:/^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(C\d+)\s*:\s*(.*)$/.source,kind:c.Location,file:1,location:2,severity:3,code:4,message:5}),this.add("csc",{regexp:/^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(CS\d+)\s*:\s*(.*)$/.source,kind:c.Location,file:1,location:2,severity:3,code:4,message:5}),this.add("vb",{regexp:/^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(BC\d+)\s*:\s*(.*)$/.source,kind:c.Location,file:1,location:2,severity:3,code:4,message:5}),this.add("lessCompile",{regexp:/^\s*(.*) in file (.*) line no. (\d+)$/.source,kind:c.Location,message:1,file:2,line:3}),this.add("jshint",{regexp:/^(.*):\s+line\s+(\d+),\s+col\s+(\d+),\s(.+?)(?:\s+\((\w)(\d+)\))?$/.source,kind:c.Location,file:1,line:2,character:3,message:4,severity:5,code:6}),this.add("jshint-stylish",[{regexp:/^(.+)$/.source,kind:c.Location,file:1},{regexp:/^\s+line\s+(\d+)\s+col\s+(\d+)\s+(.+?)(?:\s+\((\w)(\d+)\))?$/.source,line:1,character:2,message:3,severity:4,code:5,loop:!0}]),this.add("eslint-compact",{regexp:/^(.+):\sline\s(\d+),\scol\s(\d+),\s(Error|Warning|Info)\s-\s(.+)\s\((.+)\)$/.source,file:1,kind:c.Location,line:2,character:3,severity:4,message:5,code:6}),this.add("eslint-stylish",[{regexp:/^([^\s].*)$/.source,kind:c.Location,file:1},{regexp:/^\s+(\d+):(\d+)\s+(error|warning|info)\s+(.+?)(?:\s\s+(.*))?$/.source,line:1,character:2,severity:3,message:4,code:5,loop:!0}]),this.add("go",{regexp:/^([^:]*: )?((.:)?[^:]*):(\d+)(:(\d+))?: (.*)$/.source,kind:c.Location,file:2,line:4,character:6,message:7})}};p=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],p),t.ProblemPatternRegistryImpl=p},14560:(e,t,i)=>{"use strict";var r=i(63634);Object.defineProperty(t,"__esModule",{value:!0});const n=i(34417),o=void 0===r?{cwd:()=>"/",env:Object.create(null),get platform(){return n.isWindows?"win32":n.isMacintosh?"darwin":"linux"},nextTick:e=>n.setImmediate(e)}:r;t.cwd=o.cwd,t.env=o.env,t.platform=o.platform,t.nextTick=o.nextTick},28478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Explorer=1]="Explorer",e[e.Scm=3]="Scm",e[e.Extensions=5]="Extensions",e[e.Window=10]="Window",e[e.Notification=15]="Notification",e[e.Dialog=20]="Dialog"}(t.ProgressLocation||(t.ProgressLocation={}));class i{constructor(e){this.callback=e}get value(){return this._value}report(e){console.log("report",e),this._value=e,this.callback(this._value)}}t.Progress=i,i.None=Object.freeze({report(){}})},14586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.positionToRange=function(e){if("number"==typeof e)return{startLineNumber:e,endLineNumber:e,startColumn:1,endColumn:1};{const{lineNumber:t}=e;return{startLineNumber:t,endLineNumber:t,startColumn:1,endColumn:1}}}},80673:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(38384),n=i(1236);t.ReferenceManager=class{constructor(e){this.factory=e,this.instances=new Map,this.refs=new Map,this._onReferenceAllDisposed=new n.Emitter,this._onInstanceCreated=new n.Emitter,this.onReferenceAllDisposed=this._onReferenceAllDisposed.event,this.onInstanceCreated=this._onInstanceCreated.event,this._creating=new Map}async getReference(e,t){if(!this.instances.has(e)){if(!this._creating.has(e)){const t=(async t=>{const i=await this.factory(e);this.instances.set(e,i),this._onInstanceCreated.fire(i)})();this._creating.set(e,t)}try{await this._creating.get(e)}catch(t){throw this._creating.delete(e),t}}const i=this.createRef(e,t);if(this._creating.get(e)){const t=this._creating.get(e);this._creating.delete(e),t.then((()=>{this.removeRef(e,void 0)}))}return i}getReferenceIfHasInstance(e,t){return this.instances.has(e)?this.createRef(e,t):null}createRef(e,t){const i=this.instances.get(e),r=new o(i,t,(t=>this.createRef(e,t)));return r.addDispose({dispose:()=>{this.removeRef(e,r)}}),this.addRef(e,r),r}addRef(e,t){this.refs.get(e)||this.refs.set(e,[]),this.refs.get(e).push(t)}removeRef(e,t){if(this.refs.get(e)){if(t){const i=this.refs.get(e).indexOf(t);-1!==i&&this.refs.get(e).splice(i,1)}if(0===this.refs.get(e).length){if(this._creating.has(e))return;this.refs.delete(e),this.instances.delete(e),this._onReferenceAllDisposed.fire(e)}}}};class o extends r.Disposable{constructor(e,t,i){super(),this._instance=e,this.reason=t,this._clone=i,this.addDispose({dispose:()=>{this._instance=null,this._clone=null}})}get instance(){if(this.disposed)throw new Error("Ref has been disposed!");return this._instance}hold(e){if(this.disposed)throw new Error("Ref has been disposed!");return this._clone(e)}}t.Ref=o},34041:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(58253),o=i(64006),s=i(19745);class a{constructor(e,t,i){this.name=e,this.reporter=t,this.metadata=i,this.now=Date.now()}timeEnd(e,t){const i=Date.now()-this.now;return this.reporter.performance(this.name,{duration:i,metadata:this.metadata,msg:e,extra:t}),i}}let c=class{constructor(){this.logger=o.getDebugLogger()}performance(e,t){this.logger.log(e,t)}point(e,t){this.logger.log(e,t)}};c=r.__decorate([s.Injectable()],c),t.DefaultReporter=c;let l=class{constructor(e,t){this.reporter=e,this.metadata=t}time(e){return new a(e,this.reporter,this.metadata)}point(e,t,i){this.reporter.point(e,{metadata:this.metadata,msg:t,extra:i})}dispose(){}};l=r.__decorate([s.Injectable(),r.__param(0,s.Inject(n.IReporter)),r.__param(1,s.Inject(n.ReporterMetadata)),r.__metadata("design:paramtypes",[Object,Object])],l),t.ReporterService=l},20597:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=(i(97697),i(1236)),s=i(30108),a=i(71734),c=i(7634),l=i(29332),u=i(38142),d=i(86956),h=i(35463),p=i(17425),f=i(34417);!function(e){async function t(e,t){if(!t.changes||!e.saveContentChanges||i(t))return!1;try{await e.saveContentChanges(t.changes,t.options)}catch(e){return console.error(e),!1}return!0}function i({content:e,changes:t}){if(!t)return!0;let i=0;const r=e.length;for(const e of t)if(i+=JSON.stringify(e).length,i>r)return!0;return i>r}e.save=async function(e,i,r){e.saveContents&&(await t(e,i)||r&&r.isCancellationRequested||await e.saveContents(i.content,i.options))},e.trySaveContentChanges=t,e.shouldSaveContent=i}(t.Resource||(t.Resource={})),function(e){e.NotFound=s.ApplicationError.declare(-4e4,(e=>e))}(t.ResourceError||(t.ResourceError={})),t.ResourceProvider=Symbol("ResourceProvider"),t.ResourceResolverContribution=Symbol("ResourceResolverContribution");let g=class{async get(e){const t=this.resolversProvider.getContributions();for(const i of t){const t=await i.resolve(e);if(t)return t}return Promise.reject(new Error(`A resource provider for '${e.toString()}' is not registered.`))}};r.__decorate([n.Autowired(t.ResourceResolverContribution),r.__metadata("design:type",Object)],g.prototype,"resolversProvider",void 0),g=r.__decorate([n.Injectable()],g),t.DefaultResourceProvider=g;class m{constructor(e,t,i){this.uri=e,this.dispose=i,this.onDidChangeContentsEmitter=new o.Emitter,this.onDidChangeContents=this.onDidChangeContentsEmitter.event,this.contents=t}async readContents(){return this.contents}async saveContents(e){this.contents=e,this.fireDidChangeContents()}fireDidChangeContents(){this.onDidChangeContentsEmitter.fire(void 0)}}t.MutableResource=m;let v=class{constructor(){this.resources=new Map}add(e,t){const i=e.toString();if(this.resources.has(i))throw new Error(`Cannot add already existing in-memory resource '${i}'`);const r=new m(e,t,(()=>this.resources.delete(i)));return this.resources.set(i,r),r}update(e,t){const i=e.toString(),r=this.resources.get(i);if(!r)throw new Error(`Cannot update non-existed in-memory resource '${i}'`);return r.saveContents(t),r}resolve(e){if(this.resources.has(e.toString()))return this.resources.get(e.toString())}};v=r.__decorate([a.Domain(t.ResourceResolverContribution)],v),t.InMemoryResourceResolver=v,function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map,r=t.path;r.substring(r.indexOf(";")+1,r.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&i.set(t,r)}));const n=r.substring(0,r.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(t.DataUri||(t.DataUri={}));function y(e,t,i=b(e)){if(e.scheme!==t.scheme||!_(e.authority,t.authority))return;if(e.scheme===d.Schemas.file){const i=h.relative(e.codeUri.path,t.codeUri.path);return f.isWindows?p.toSlashes(i):i}let r=e.codeUri.path||"/",n=t.codeUri.path||"/";if(i){let e=0;for(const t=Math.min(r.length,n.length);e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(1236);t.Sequence=class{constructor(){this.elements=[],this._onDidSplice=new r.Emitter,this.onDidSplice=this._onDidSplice.event}splice(e,t,i=[]){this.elements.splice(e,t,...i),this._onDidSplice.fire({start:e,deleteCount:t,toInsert:i})}}},65461:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(53350);i(97697);t.StorageProvider=Symbol("StorageProvider"),t.StorageResolverContribution=Symbol("StorageResolverContribution"),t.STORAGE_SCHEMA={SCOPE:"wsdb",GLOBAL:"gldb"},t.STORAGE_NAMESPACE={WORKBENCH:new o.URI("workbench").withScheme(t.STORAGE_SCHEMA.SCOPE),EXTENSIONS:new o.URI("extensions").withScheme(t.STORAGE_SCHEMA.SCOPE),EXPLORER:new o.URI("explorer").withScheme(t.STORAGE_SCHEMA.SCOPE),LAYOUT:new o.URI("layout").withScheme(t.STORAGE_SCHEMA.SCOPE),RECENT_DATA:new o.URI("recent").withScheme(t.STORAGE_SCHEMA.SCOPE),DEBUG:new o.URI("debug").withScheme(t.STORAGE_SCHEMA.SCOPE),OUTLINE:new o.URI("outline").withScheme(t.STORAGE_SCHEMA.SCOPE),GLOBAL_LAYOUT:new o.URI("layout-global").withScheme(t.STORAGE_SCHEMA.GLOBAL),GLOBAL_EXTENSIONS:new o.URI("extensions").withScheme(t.STORAGE_SCHEMA.GLOBAL),GLOBAL_RECENT_DATA:new o.URI("recent").withScheme(t.STORAGE_SCHEMA.GLOBAL)};let s=class{constructor(){this.storageCacheMap=new Map}async get(e){if(this.storageCacheMap.has(e.toString()))return this.storageCacheMap.get(e.toString());const t=this.resolversProvider.getContributions();for(const i of t){const t=await i.resolve(e);if(t)return this.storageCacheMap.set(e.toString(),t),t}}};r.__decorate([n.Autowired(t.StorageResolverContribution),r.__metadata("design:type",Object)],s.prototype,"resolversProvider",void 0),s=r.__decorate([n.Injectable()],s),t.DefaultStorageProvider=s,function(e){e.WINDOWS_APP_DATA_DIR="AppData",e.WINDOWS_ROAMING_DIR="Roaming",e.DEFAULT_STORAGE_DIR_NAME=".kaitian",e.DEFAULT_DATA_DIR_NAME="datas",e.MARKETPLACE_DIR="extensions",e.EXTENSIONS_LOGS_DIR="extensions",e.EXTENSIONS_GLOBAL_STORAGE_DIR="extension-storage",e.EXTENSIONS_WORKSPACE_STORAGE_DIR="workspace-storage"}(t.StoragePaths||(t.StoragePaths={}))},82693:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(47985),s=i(38384),a=i(39993);var c;!function(e){function t(e){const i=Object.keys(e).sort();let r="";for(const n of i){let i=e[n];i instanceof Object?i=t(i):"string"==typeof i&&(i=i.replace(/,/g,",,")),r+=n+","+i+","}return r}e.create=function(e){const i={_key:t(e),type:e.taskType};return Object.assign(i,e),i}}(c=t.KeyedTaskIdentifier||(t.KeyedTaskIdentifier={})),t.ITaskDefinitionRegistry=Symbol("ITaskDefinitionRegistry");let l=class{constructor(){this.createTaskIdentifier=(e,t)=>{const i=this.get(e.type);if(void 0===i){const t=o.deepClone(e);return delete t._key,c.create(t)}const r=Object.create(null);r.type=i.taskType;const n=new Set;i.required.forEach((e=>n.add(e)));const s=i.properties;for(const i of Object.keys(s)){const c=e[i];if(null!=c)r[i]=c;else if(n.has(i)){const n=s[i];if(void 0!==n.default)r[i]=o.deepClone(n.default);else switch(n.type){case"boolean":r[i]=!1;break;case"number":case"integer":r[i]=0;break;case"string":r[i]="";break;default:return void t.error(a.formatLocalize("TaskDefinition.missingRequiredProperty","Error: the task identifier '{0}' is missing the required property '{1}'. The task identifier will be ignored.",JSON.stringify(e,void 0,0),i))}}}return c.create(r)},this.taskTypes=Object.create(null),this.readyPromise=new Promise(((e,t)=>e(void 0)))}onReady(){return this.readyPromise}register(e,t){return this.taskTypes[e]=t,s.Disposable.create((()=>delete this.taskTypes[e]))}get(e){return this.taskTypes[e]}all(){return Object.keys(this.taskTypes).map((e=>this.taskTypes[e]))}getJsonSchema(){if(void 0===this._schema){let e=[];for(let t of this.all()){let i={type:"object",additionalProperties:!1};t.required.length>0&&(i.required=t.required.slice(0)),void 0!==t.properties?i.properties=o.deepClone(t.properties):i.properties=Object.create(null),i.properties.type={type:"string",enum:[t.taskType]},e.push(i)}this._schema={oneOf:e}}return this._schema}};l=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],l),t.TaskDefinitionRegistryImpl=l},62549:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IApplicationService=Symbol("IApplicationService")},94974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noAccountsId="authentication.noAccounts",t.ACCOUNTS_MENU=["accounts_menu"],t.ACCOUNTS_SUBMENU=[...t.ACCOUNTS_MENU,"1_accounts_submenu"],t.IAuthenticationService=Symbol("IAuthenticationService")},65467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonServerPath="CommonServerPath",t.ICommonServer=Symbol("ICommonServer")},86918:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(55783);class n extends r.BasicEvent{}t.FileTreeDropEvent=n},73664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(55783);t.ExtensionCandiDate=class{},t.asExtensionCandidate=function(e,t=!1){return{path:e,isBuiltin:!0,isDevelopment:t}};class n extends r.BasicEvent{}t.ExtensionEnabledEvent=n;class o extends r.BasicEvent{}t.ExtensionActivateEvent=o},25305:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);var n,o;!function(e){function t(e,t){return e.type===o.DELETED&&r.URI.file(e.uri).isEqualOrParent(t)}e.isUpdated=function(e,t){return e.type===o.UPDATED&&t.toString()===e.uri},e.isAdded=function(e,t){return e.type===o.ADDED&&t.toString()===e.uri},e.isDeleted=t,e.isAffected=function(e,i){return t(e,i)||i.toString()===e.uri},e.isChanged=function(e,i){return!t(e,i)&&i.toString()===e.uri}}(n=t.FileChange||(t.FileChange={})),function(e){function t(e,t){return e.some((e=>n.isDeleted(e,t)))}e.isUpdated=function(e,t){return e.some((e=>n.isUpdated(e,t)))},e.isAdded=function(e,t){return e.some((e=>n.isAdded(e,t)))},e.isDeleted=t,e.isAffected=function(e,t){return e.some((e=>n.isAffected(e,t)))},e.isChanged=function(e,i){return!t(e,i)&&e.some((e=>n.isChanged(e,i)))}}(t.FileChangeEvent||(t.FileChangeEvent={})),function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(o=t.FileChangeType||(t.FileChangeType={})),function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(t.VSCFileChangeType||(t.VSCFileChangeType={}))},58390:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(68361).__exportStar(i(25305),t),t.IFileServiceClient=Symbol("IFileServiceClient"),function(e){function t(e){return"object"==typeof e&&"uri"in e&&"lastModification"in e&&"isDirectory"in e}e.is=t,e.equals=function(e,i){return!!(e&&i&&t(e)&&t(i))&&(e.uri===i.uri&&e.lastModification===i.lastModification&&e.isDirectory===i.isDirectory)}}(t.FileStat||(t.FileStat={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={}))},90858:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(73664),t),r.__exportStar(i(61651),t),r.__exportStar(i(58390),t),r.__exportStar(i(35012),t),r.__exportStar(i(67700),t),r.__exportStar(i(58253),t),r.__exportStar(i(86918),t),r.__exportStar(i(65467),t),r.__exportStar(i(62549),t),r.__exportStar(i(94974),t)},35012:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(10765),t),r.__exportStar(i(67196),t)},67196:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361),n=i(19745),o=i(10765),s=i(65686),a=i(41029);class c{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._manager=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose(),this._data=void 0}_update(e){if(this._data)for(const t of e){const e=t.toString(),i=this._data[e];i&&this._substract(i);const r=this._resourceStats(t);this._add(r),this._data[e]=r}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0},i=this._manager.getMarkers({resource:e,opened:!0});for(const{severity:e}of i)e===o.MarkerSeverity.Error?t.errors+=1:e===o.MarkerSeverity.Warning?t.warnings+=1:e===o.MarkerSeverity.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}t.MarkerStats=c;let l=class extends s.WithEventBus{constructor(){super(),this._byResource=Object.create(null),this._byType=Object.create(null),this._byResourceCloseCache=Object.create(null),this._openedResource=new Set,this.onMarkerChangedEmitter=new s.Emitter,this.onMarkerChanged=this.onMarkerChangedEmitter.event,this.addDispose([this._stats=new c(this),this.onMarkerChangedEmitter])}updateMarkers(e,t,i){if(a.isFalsyOrEmpty(i)){const i=s.MapMap.remove(this._byResource,t,e),r=s.MapMap.remove(this._byType,e,t);if(i!==r)throw new Error("invalid marker service state");i&&r&&this.onMarkerChangedEmitter.fire([t])}else{const r=[];for(const n of i){const i=this.convertToMarker(e,t,n);i&&r.push(i)}s.MapMap.set(this._byResource,t,e,r),s.MapMap.set(this._byType,e,t,r),this.onMarkerChangedEmitter.fire([t])}}convertToMarker(e,t,i){const{code:r,severity:n,message:o,source:s,relatedInformation:a,tags:c}=i;if(!o)return;let{startLineNumber:l,startColumn:u,endLineNumber:d,endColumn:h}=i;return l=l>0?l:1,u=u>0?u:1,d=d>=l?d:l,h=h>0?h:u,{resource:t,type:e,code:r,severity:n,message:o,source:s,startLineNumber:l,startColumn:u,endLineNumber:d,endColumn:h,relatedInformation:a,tags:c}}clearMarkers(e){const t=[],i=this._byType[e];if(i){delete this._byType[e];for(const r in i){const i=s.MapMap.get(this._byResource,r,e);if(i){const[n]=i;n&&t.push(n.resource),s.MapMap.remove(this._byResource,r,e)}}}this.onMarkerChangedEmitter.fire(t)}clearMarkersOfUri(e){const t=this._byResource[e];if(t){delete this._byResource[e];for(const i in t){s.MapMap.get(this._byType,i,e)&&s.MapMap.remove(this._byType,i,e)}}this.onMarkerChangedEmitter.fire([e])}getMarkers(e=Object.create(null)){const{type:t,resource:i,severities:r,opened:n}=e;let{take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=s.MapMap.get(this._byResource,i.toString(),t);if(e){const t=[];for(const i of e)if(this.isTargetMarker(i,r,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=t?this._byType[t]:i?this._byResource[i.toString()]:void 0;if(!e)return[];const s=[];for(const t in e)for(const i of e[t])if(this.isTargetMarker(i,r,n)){const e=s.push(i);if(o>0&&e===o)return s}return s}{const e=[];for(const t in this._byResource)for(const i in this._byResource[t])for(const s of this._byResource[t][i])if(this.isTargetMarker(s,r,n)){const t=e.push(s);if(o>0&&t===o)return e}return e}}isTargetMarker(e,t,i){const r=void 0===t||(t&e.severity)===e.severity,n=!i||this._openedResource.has(e.resource);return r&&n}getResources(){return s.MapMap.keys(this._byResource)}getStats(){return this._stats}onEditorGroupOpen(e){this._openedResource.add(e);const t=s.MapMap.removeMap(this._byResourceCloseCache,e);t&&(s.MapMap.setMap(this._byResource,e,t),Object.keys(t).forEach((i=>{s.MapMap.set(this._byType,i,e,t[i])}))),this.onMarkerChangedEmitter.fire([e])}onEditorGroupClose(e){this._openedResource.delete(e);const t=s.MapMap.getMap(this._byResource,e);t&&s.MapMap.setMap(this._byResourceCloseCache,e,t),this.clearMarkersOfUri(e)}};l=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],l),t.MarkerManager=l},10765:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(77303);!function(e){e.get=function(e,t,i){if(e[t])return e[t][i]},e.getMap=function(e,t){return e[t]},e.set=function(e,t,i,r){e[t]||(e[t]=Object.create(null)),e[t][i]=r},e.setMap=function(e,t,i){e[t]=i},e.remove=function(e,t,i){return!(!e[t]||!e[t][i])&&(delete e[t][i],r.isEmptyObject(e[t])&&delete e[t],!0)},e.removeMap=function(e,t){if(e[t]){const i=e[t];return delete e[t],i}},e.keys=function(e){const t=[];if(e)for(let i in e)t.push(i);return t}}(t.MapMap||(t.MapMap={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(t.MarkerSeverity||(t.MarkerSeverity={})),function(e){e.compare=function(e,t){return t-e}}(t.MarkerSeverity||(t.MarkerSeverity={}))},61651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Empty=3]="Empty"}(t.MessageType||(t.MessageType={}))},58253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ACTIVE_EXTENSION="activateExtension",e.RUNTIME_ERROR_EXTENSION="runtimeErrorExtension",e.LOAD_EXTENSION_MAIN="loadExtensionMain",e.PROVIDE_COMPLETION_ITEMS="provideCompletionItems",e.RESOLVE_COMPLETION_ITEM="resolveCompletionItem",e.PROVIDE_DOCUMENT_FORMATTING_EDITS="provideDocumentFormattingEdits",e.PROVIDE_DOCUMENT_RANGE_FORMATTING_EDITS="provideDocumentRangeFormattingEdits",e.EDITOR_REACTIVE="editorReactive",e.CHANNEL_RECONNECT="channelReconnect",e.MEASURE="measure",e.FORMAT_ON_SAVE_TIMEOUT_ERROR="formatOnSaveTimeoutError",e.FORMAT_ON_SAVE="formatOnSave",e.NOT_FOUND_COMMAND="notFoundCommand",e.INSTALL_EXTENSION_ERROR="installExtensionError",e.EXTENSION_CRASH="extensionCrash",e.EXTENSION_NOT_EXIST="extensionNotExist",e.THEME_LOAD="themeLoad",e.PROVIDE_HOVER="provideHover",e.PROVIDE_DEFINITION="provideDefinition",e.PROVIDE_TYPE_DEFINITION="provideTypeDefinition",e.PROVIDE_FOLDING_RANGES="provideFoldingRanges",e.PROVIDE_DOCUMENT_COLORS="provideDocumentColors",e.PROVIDE_COLOR_PRESENTATIONS="provideColorPresentations",e.PROVIDE_DOCUMENT_HIGHLIGHTS="provideDocumentHighlights",e.PROVIDE_LINKS="provideLinks",e.PROVIDE_REFERENCES="provideReferences",e.PROVIDE_DOCUMENT_SYMBOLS="provideDocumentSymbols",e.PROVIDE_IMPLEMENTATION="provideImplementation",e.PROVIDE_CODE_ACTIONS="provideCodeActions",e.PROVIDE_RENAME_EDITS="provideRenameEdits",e.PROVIDE_SIGNATURE_HELP="provideSignatureHelp",e.PROVIDE_CODE_LENSES="provideCodeLenses",e.RESOLVE_CODE_LENS="resolveCodeLens",e.PROVIDE_ON_TYPE_FORMATTING_EDITS="provideOnTypeFormattingEdits",e.PROVIDE_SELECTION_RANGES="provideSelectionRanges",e.TERMINAL_MEASURE="terminalMeasure",e.SEARCH_MEASURE="searchMeasure"}(t.REPORT_NAME||(t.REPORT_NAME={})),function(e){e.BROWSER="browser",e.NODE="node",e.WORKER="worker",e.EXTENSION="extension"}(t.REPORT_HOST||(t.REPORT_HOST={})),function(e){e.PERFORMANCE="performance",e.POINT="point"}(t.REPORT_TYPE||(t.REPORT_TYPE={})),t.ReporterMetadata=Symbol("ReporterMetadata"),t.IReporterService=Symbol("IReporterService"),t.IReporter=Symbol("IReporter")},4371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUint8=function(e){return e<0?0:e>255?255:0|e},t.toUint32=function(e){return e<0?0:e>4294967295?4294967295:0|e}},53350:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(17373),n=i(35463),o=i(7634);var s=i(17373);t.Uri=s.URI,t.UriUtils=s.Utils;class a{constructor(e=""){r.URI.isUri(e)?this.codeUri=e:this.codeUri=r.URI.parse(e)}static from(e){return new a(r.URI.from(e))}static file(e){return new a(r.URI.file(e))}static parse(e){return new a(r.URI.parse(e))}static isUri(e){return e instanceof a||!!e&&r.URI.isUri(e)}static isUriString(e){return!!e&&/^[A-Za-z\-\_]+:\/\//.test(e)}static revive(e){return r.URI.revive(e)}get displayName(){const e=this.path.base;return e||(this.path.isRoot?this.path.toString():"")}get allLocations(){const e=[];let t=this;for(;!t.path.isRoot;)e.push(t),t=t.parent;return e.push(t),e}get parent(){return this.path.isRoot?this:this.withPath(this.path.dir)}relative(e){if(this.authority===e.authority&&this.scheme===e.scheme)return this.path.relative(e.path)}resolve(e){return this.withPath(this.path.join(e.toString()))}withScheme(e){const t=r.URI.from(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:e}));return new a(t)}withoutScheme(){const e=new r.URI(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:""}));return new a(e)}withAuthority(e){const t=r.URI.from(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:this.codeUri.scheme,authority:e}));return new a(t)}withoutAuthority(){return this.withAuthority("")}withPath(e){const t=r.URI.from(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:this.codeUri.scheme,path:e.toString()}));return new a(t)}withoutPath(){return this.withPath("")}withQuery(e){const t=r.URI.from(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:this.codeUri.scheme,query:e}));return new a(t)}withoutQuery(){return this.withQuery("")}withFragment(e){const t=r.URI.from(Object.assign(Object.assign({},this.codeUri.toJSON()),{scheme:this.codeUri.scheme,fragment:e}));return new a(t)}withoutFragment(){return this.withFragment("")}get scheme(){return this.codeUri.scheme}get authority(){return this.codeUri.authority}get path(){return void 0===this._path&&(this._path=new n.Path(this.codeUri.path)),this._path}get query(){return this.codeUri.query}get fragment(){return this.codeUri.fragment}toString(e){return this.codeUri.toString(e)}isEqualOrParent(e){return this.authority===e.authority&&this.scheme===e.scheme&&this.path.isEqualOrParent(e.path)}isEqual(e){return this.authority===e.authority&&this.scheme===e.scheme&&this.path.isEqual(e.path)&&this.query===e.query}matchGlobPattern(e){return o.match(e,this.path.toString())}static getDistinctParents(e){const t=[];return e.forEach(((i,r)=>{e.some(((e,t)=>t!==r&&e.isEqualOrParent(i)))||t.push(i)})),t}getParsedQuery(){const e=this.query,t={},i=("?"===e[0]?e.substr(1):e).split("&");for(let e=0;e{const r=encodeURIComponent(e[i]);void 0!==r&&t.push(encodeURIComponent(i)+"="+r)})),t.join("&")}}t.URI=a},13610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ansiRegex=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")},t.stripAnsi=e=>"string"==typeof e?e.replace(t.ansiRegex(),""):e},99600:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(1236);t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){if(!t)return e.filter(((t,i)=>e.indexOf(t)===i));const i=Object.create(null);return e.filter((e=>{const r=t(e);return!i[r]&&(i[r]=!0,!0)}))},t.sortedDiff=function(e,t,i){const r=[];function n(e,t,i){if(0===t&&0===i.length)return;const n=r[r.length-1];n&&n.start+n.deleteCount===e?(n.deleteCount+=t,n.toInsert.push(...i)):r.push({start:e,deleteCount:t,toInsert:i})}let o=0,s=0;for(;;){if(o===e.length){n(o,0,t.slice(s));break}if(s===t.length){n(o,e.length-o,[]);break}const r=e[o],a=t[s],c=i(r,a);0===c?(o+=1,s+=1):c<0?(n(o,1,[]),o+=1):c>0&&(n(o,0,[a]),s+=1)}return r},t.equals=function(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,n=e.length;r!!e))},t.addElement=function(e,t,i=!1){return i?e.unshift(t):e.push(t),{dispose:()=>{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}},t.addMapElement=function(e,t,i){return e.set(t,i),{dispose:()=>{e.get(t)===i&&e.delete(t)}}};class n extends Map{constructor(e,t){if(super(),this.hardLimit=e,this.softLimit=t,this._onDidDelete=new r.Emitter,this.onDidDelete=this._onDidDelete.event,this.head={key:void 0,prev:void 0,next:void 0},this.tail={key:void 0,prev:void 0,next:void 0},this.map=new Map,e<=t)throw new Error("hardLimit 必须比 softLimit大");this.head.next=this.tail,this.tail.prev=this.head}markRecentUsed(e){this.map.get(e)||this.map.set(e,{key:e,prev:void 0,next:void 0}),this.putHead(this.map.get(e))}get(e){const t=super.get(e);return t&&this.markRecentUsed(e),t}set(e,t){return this.markRecentUsed(e),super.set(e,t),this.size>this.hardLimit&&this.shrink(),this}putHead(e){this.deleteNodeFromList(e);const t=this.head.next;this.head.next=e,e.next=t,e.prev=void 0,t&&(t.prev=e)}deleteNodeFromList(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev)}delete(e){const t=this.map.get(e);t&&this.deleteNodeFromList(t);const i=super.get(e);return this._onDidDelete.fire({key:e,value:i}),super.delete(e)}shrink(){const e=this.size-this.softLimit;let t=this.tail;for(let i=0;i{"use strict";var r=i(43341).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const n=i(38142),o=i(57053);let s;const a=void 0!==r,c="undefined"!=typeof TextEncoder,l="undefined"!=typeof TextDecoder;class u{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static alloc(e){return new u(a?r.allocUnsafe(e):new Uint8Array(e))}static wrap(e){return a&&!r.isBuffer(e)&&(e=r.from(e.buffer,e.byteOffset,e.byteLength)),new u(e)}static fromString(e){return a?new u(r.from(e)):c?(s||(s=new TextEncoder),new u(s.encode(e))):new u(n.encodeUTF8(e))}static concat(e,t){if(void 0===t){t=0;for(let i=0,r=e.length;i>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function p(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function f(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t,t>>>=8,e[i+2]=255&t,t>>>=8,e[i+3]=255&t}function g(e,t){return e[t]}function m(e,t,i){e[i]=t}t.BinaryBuffer=u,t.readUInt16LE=function(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0},t.writeUInt16LE=function(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t},t.readUInt32BE=d,t.writeUInt32BE=h,t.readUInt32LE=p,t.writeUInt32LE=f,t.readUInt8=g,t.writeUInt8=m},12787:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(35463),n=new(i(95).IdleValue)((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));function o(e,t,i=!1){const r=e||"",o=t||"",s=n.getValue().collator.compare(r,o);return n.getValue().collatorIsNumeric&&0===s&&r!==o?rn.length)return 1}return 0}t.compareFileNames=o,t.comparePaths=function(e,t,i=!1){const n=e.split(r.sep),a=t.split(r.sep),c=n.length-1,l=a.length-1;let u,d;for(let e=0;;e++){if(u=c===e,d=l===e,u&&d)return o(n[e],a[e],i);if(u)return-1;if(d)return 1;const t=s(n[e],a[e],i);if(0!==t)return t}},t.compareAnything=function(e,t,i){const r=e.toLowerCase(),n=t.toLowerCase(),s=a(e,t,i);if(s)return s;const c=r.endsWith(i);if(c!==n.endsWith(i))return c?-1:1;const l=o(r,n);return 0!==l?l:r.localeCompare(n)},t.compareByPrefix=a,t.compareRangesUsingStarts=function(e,t){if(e&&t){const i=0|e.startLineNumber,r=0|t.startLineNumber;if(i===r){const i=0|e.startColumn,r=0|t.startColumn;if(i===r){const i=0|e.endLineNumber,r=0|t.endLineNumber;if(i===r){return(0|e.endColumn)-(0|t.endColumn)}return i-r}return i-r}return i-r}return(e?1:0)-(t?1:0)}},8798:(e,t)=>{"use strict";function i(e){return(t,i,r)=>{let n=null,o=null;if("function"==typeof r.value?(n="value",o=r.value):"function"==typeof r.get&&(n="get",o=r.get),!o)throw new Error("not supported");r[n]=e(o,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=i,t.memoize=function(e,t,i){let r=null,n=null;if("function"==typeof i.value?(r="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof i.get&&(r="get",n=i.get),!n)throw new Error("not supported");const o=`$memoize$${t}`;i[r]=function(...e){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[o]}},t.debounce=function(e,t,r){return i(((i,n)=>{const o=`$debounce$${n}`,s=`$debounce$result$${n}`;return function(...n){this[s]||(this[s]=r?r():void 0),clearTimeout(this[o]),t&&(this[s]=t(this[s],...n),n=[this[s]]),this[o]=setTimeout((()=>{i.apply(this,n),this[s]=r?r():void 0}),e)}}))},t.throttle=function(e,t,r){return i(((i,n)=>{const o=`$throttle$timer$${n}`,s=`$throttle$result$${n}`,a=`$throttle$lastRun$${n}`,c=`$throttle$pending$${n}`;return function(...n){if(this[s]||(this[s]=r?r():void 0),null!==this[a]&&void 0!==this[a]||(this[a]=-Number.MAX_VALUE),t&&(this[s]=t(this[s],...n)),this[c])return;const l=this[a]+e;l<=Date.now()?(this[a]=Date.now(),i.apply(this,[this[s]]),this[s]=r?r():void 0):(this[c]=!0,this[o]=setTimeout((()=>{this[c]=!1,this[a]=Date.now(),i.apply(this,[this[s]]),this[s]=r?r():void 0}),l-Date.now()))}}))},t.es5ClassCompat=function(e){function t(){return Reflect.construct(e,arguments,this.constructor)}return Object.defineProperty(t,"name",Object.getOwnPropertyDescriptor(e,"name")),Object.setPrototypeOf(t,e),Object.setPrototypeOf(t.prototype,e.prototype),t}},98800:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53350),n=i(33697);!function(e){const t=/^([^:/?#]+?):$/;e.create=function(e){return new r.URI(r.Uri.file(e))},e.fsPath=function e(i){if("string"==typeof i)return e(new r.URI(i));{const e=i.codeUri.fsPath;if(n.isWindows){if(t.exec(e))return e+"\\"}return e}}}(t.FileUri||(t.FileUri={}))},7634:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(17425),n=i(38142),o=i(29332);t.getEmptyExpression=function(){return Object.create(null)};const s="**",a="[/\\\\]",c="[^/\\\\]",l=/\//g;function u(e){switch(e){case 0:return"";case 1:return"[^/\\\\]*?";default:return"(?:[/\\\\]|[^/\\\\]+[/\\\\]|[/\\\\][^/\\\\]+)*?"}}function d(e,t){if(!e)return[];const i=[];let r=!1,n=!1,o="";for(const s of e){switch(s){case t:if(!r&&!n){i.push(o),o="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":n=!0;break;case"]":n=!1}o+=s}return o&&i.push(o),i}function h(e){if(!e)return"";let t="";const i=d(e,"/");if(i.every((e=>e===s)))t=".*";else{let e=!1;i.forEach(((r,o)=>{if(r===s)return void(e||(t+=u(2),e=!0));let l=!1,p="",f=!1,g="";for(const e of r)if("}"!==e&&l)p+=e;else if(!f||"]"===e&&g)switch(e){case"{":l=!0;continue;case"[":f=!0;continue;case"}":const i=`(?:${d(p,",").map((e=>h(e))).join("|")})`;t+=i,l=!1,p="";break;case"]":t+="["+g+"]",f=!1,g="";break;case"?":t+=c;continue;case"*":t+=u(1);continue;default:t+=n.escapeRegExpCharacters(e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||g?"/"===e?"":n.escapeRegExpCharacters(e):"^",g+=t}oS(e,t))).filter((e=>e!==w)),e),r=i.length;if(!r)return w;if(1===r)return i[0];const n=function(t,r){for(let n=0,o=i.length;n!!e.allBasenames));o&&(n.allBasenames=o.allBasenames);const s=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);s.length&&(n.allPaths=s);return n}(i,t):(n=v.exec(E(i,t)))?O(n[1].substr(1),i,!0):(n=y.exec(E(i,t)))?O(n[1],i,!1):function(e){try{const t=new RegExp(`^${h(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return w}}(i);return _.set(r,o),C(o,e)}function C(e,t){return"string"==typeof t?e:function(i,n){return r.isEqualOrParent(i,t.base)?e(r.relative(t.base,i),n):null}}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function O(e,t,i){const n=r.sep!==r.nativeSep?e.replace(l,r.sep):e,o=r.sep+n,s=i?function(e,i){return"string"!=typeof e||e!==n&&!e.endsWith(o)?null:t}:function(e,i){return"string"==typeof e&&e===n?t:null};return s.allPaths=[(i?"*/":"./")+e],s}function k(e,t={}){if(!e)return b;if("string"==typeof e||M(e)){const i=S(e,t);if(i===w)return b;const r=function(e,t){return!!i(e,t)};return i.allBasenames&&(r.allBasenames=i.allBasenames),i.allPaths&&(r.allPaths=i.allPaths),r}return function(e,t){const i=x(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return w;const r=S(e,i);if(r===w)return w;if("boolean"==typeof t)return r;if(t){const i=t.when;if("string"==typeof i){const t=(t,n,o,s)=>{if(!s||!r(t,n))return null;const a=s(i.replace("$(basename)",o));return a instanceof Promise?a.then((t=>t?e:null)):a?e:null};return t.requiresSiblings=!0,t}}return r}(i,e[i],t))).filter((e=>e!==w))),n=i.length;if(!n)return w;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){for(let r=0,n=i.length;r!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const o=function(e,t,n){let o;for(let s=0,a=i.length;s!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const a=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(o.allPaths=a);return o}(e,t)}function D(e){const t={};for(const i of e)t[i]=!0;return t}function M(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function x(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const r=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=r.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=r.indexOf(t);return-1!==i?n[i]:null};o.basenames=r,o.patterns=n,o.allBasenames=r;const s=e.filter((e=>!e.basenames));return s.push(o),s}t.match=function(e,t,i){return!(!e||"string"!=typeof t)&&k(e)(t,void 0,i)},t.parse=k,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return i=>(t||(t=(e()||Promise.resolve([])).then((e=>e?D(e):{}))),t.then((e=>!!e[i])))},t.hasSiblingFn=function(e){if(!e)return;let t;return i=>{if(!t){const i=e();t=i?D(i):{}}return!!t[i]}},t.isRelativePattern=M,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}},96968:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(68361);r.__exportStar(i(61041),t),r.__exportStar(i(18959),t),r.__exportStar(i(47985),t),r.__exportStar(i(99600),t),r.__exportStar(i(38142),t),r.__exportStar(i(33697),t),r.__exportStar(i(77303),t),r.__exportStar(i(98473),t),r.__exportStar(i(12787),t),r.__exportStar(i(8798),t),r.__exportStar(i(98800),t),r.__exportStar(i(17425),t),r.__exportStar(i(13610),t)},18959:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(81409);function n(e){const t=[];let i=0,r=!1,n=0;for(;n0?(t.push(e.substr(i)),t.join("")):e}!function(e){function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e}function i(e){return Array.isArray(e)}function r(e,n){if(e===n)return!0;if(t(e)||t(n))return!1;let o=i(e),s=i(n);return o===s&&(o&&s?function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(53350),n=i(38142);function o(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:n.regExpFlags(t)}:t}function s(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return r.URI.revive(e);case 2:return new RegExp(e.source,e.flags)}for(let i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=s(e[i],t+1))}return e}t.stringify=function(e){return JSON.stringify(e,o)},t.parse=function(e){let t=JSON.parse(e);return t=s(t,0),t},t.revive=s},47985:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(77303),n=Object.prototype.hasOwnProperty;function o(e,t,i){if(r.isUndefinedOrNull(e))return e;const s=t(e);if(void 0!==s)return s;if(r.isArray(e)){const r=[];for(const n of e)r.push(o(n,t,i));return r}if(r.isObject(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const r={};for(let s in e)n.call(e,s)&&(r[s]=o(e[s],t,i));return i.delete(e),r}return e}function s(e){return"object"==typeof e&&e.constructor===Object}t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(n.call(e,i)){const r=e[i];"object"!=typeof r||Object.isFrozen(r)||t.push(r)}}return e},t.cloneAndChange=function(e,t){return o(e,t,new Set)},t.deepClone=function e(t){if(!t||"object"!=typeof t)return t;if(t instanceof RegExp)return t;const i=Array.isArray(t)?[]:{};return Object.keys(t).forEach((r=>{const n=t[r];i[r]=n&&"object"==typeof n?e(n):n})),i},t.isPlainObject=s,t.removeUndefined=function(e){return s(e)?(Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]})),e):e}},33697:(e,t,i)=>{"use strict";var r=i(63634);function n(e,t){return i.g.hasOwnProperty("platform")?i.g.platform===t:void 0!==r&&"browser"!==r.platform?r.platform===t:!!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf(e)>=0)}function o(){return i.g.isElectronRenderer}function s(){return r&&{IS_DEV:!1}&&{IS_DEV:!1}.ELECTRON_RUN_AS_NODE}Object.defineProperty(t,"__esModule",{value:!0}),t.isWindows=n("Windows","win32"),t.isOSX=n("Mac","darwin"),t.isLinux=n("Linux","linux"),t.cmd=function(e,...i){return[t.isWindows?"cmd":e,t.isWindows?["/c",e,...i]:i]},function(e){let i;!function(e){e.Windows="Windows",e.Linux="Linux",e.OSX="OSX"}(i=e.Type||(e.Type={})),e.type=function(){return t.isWindows?i.Windows:t.isOSX?i.OSX:i.Linux}}(t.OS||(t.OS={})),t.isNodeIntegrated=function(){return!!e.exports},t.isElectronEnv=function(){return o()||s()},t.isElectronRenderer=o,t.isElectronNode=s,t.isDevelopment=function(){return i.g.isDev||r&&!1},t.getNodeRequire=function(){return require}},17425:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34417),n=i(38142),o=i(35463);t.sep="/",t.nativeSep=r.isWindows?"\\":"/";const s=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,a=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;function c(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?c(e.substring(0,e.length-1)):e.substr(1+~t)}function l(e,t){if(null==e)return e;const i=e.length;if(0===i)return".";const n=r.isWindows&&t;if(function(e,t){return t?!a.test(e):!s.test(e)}(e,n))return e;const o=n?"\\":"/",c=d(e,o);let l=c.length,h=!1,p="";for(let t=c.length;t<=i;t++)if(t===i||47===e.charCodeAt(t)||92===e.charCodeAt(t)){if(u(e,l,t,"..")){const e=p.lastIndexOf(o),t=p.slice(e+1);(c||t.length>0)&&".."!==t&&(p=-1===e?"":p.slice(0,e),h=!0)}else u(e,l,t,".")&&(c||p||t=65&&r<=90||r>=97&&r<=122)&&58===e.charCodeAt(1))return r=e.charCodeAt(2),47===r||92===r?e.slice(0,2)+t:e.slice(0,2);let n=e.indexOf("://");if(-1!==n)for(n+=3;n1&&r.charAt(r.length-1)===t.sep?r.substr(0,r.length-1):r}t.toSlashes=function(e){return e.replace(/[\\/]/g,o.posix.sep)},t.basename=c,t.extname=function(e){const t=~(e=c(e)).lastIndexOf(".");return t?e.substring(~t):""},t.normalize=l,t.getRoot=d,t.isEqualOrParent=function(e,i,r){if(e===i)return!0;if(!e||!i)return!1;if(i.length>e.length)return!1;if(r){if(!n.startsWithIgnoreCase(e,i))return!1;if(i.length===e.length)return!0;let r=i.length;return i.charAt(i.length-1)===t.nativeSep&&r--,e.charAt(r)===t.nativeSep}return i.charAt(i.length-1)!==t.nativeSep&&(i+=t.nativeSep),0===e.indexOf(i)},t.resolve=h,t.relative=function(e,i){let r;e=h(e),i=h(i);const n=e.split(t.sep),o=i.split(t.sep);o.shift(),n.shift();let s=0,a=[];for(r=0;rn.length&&(s=n.length);let c="";for(r=0;r1&&c.charAt(c.length-1)===t.sep&&(c=c.substr(0,c.length-1)),c},t.replaceAsarInPath=function(e){const t=e.split(l("/",!0));return t.forEach(((e,i)=>{e.endsWith(".asar")&&(t[i]=e+".unpacked")})),t.join(l("/",!0))};const p=/[\\/:\*\?"<>\|]/g,f=/[\\/]/g,g=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e,t=r.isWindows){const i=t?p:f;return!(!e||0===e.length||/^\s+$/.test(e))&&(i.lastIndex=0,!i.test(e)&&((!t||!g.test(e))&&("."!==e&&".."!==e&&((!t||"."!==e[e.length-1])&&((!t||e.length===e.trim().length)&&!(e.length>255))))))}},61041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Deferred=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}},38142:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(33697);t.empty="";const n="undefined"!=typeof TextEncoder,o="undefined"!=typeof TextDecoder;!function(e){e.StringTextEncoder=n?TextEncoder:i(89539).TextEncoder,e.StringTextDecoder=o?TextDecoder:i(89539).TextDecoder}(t.stringUtils||(t.stringUtils={})),t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,i="0"){const r=""+e,n=[r];for(let e=r.length;et?1:0}function d(e){return e>=97&&e<=122}function h(e){return e>=65&&e<=90}function p(e){return d(e)||h(e)}function f(e,t,i=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let r=0;r=t.length?e:t[r]}))},t.mnemonicButtonLabel=function(e,t){return r.isOSX||t?e.replace(/\(&&\w\)|&&/g,""):r.isWindows?e.replace(/&&|&/g,(e=>"&"===e?"&&":"&")):e.replace(/&&/g,"_")},t.escape=function(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))},t.escapeRegExpCharacters=a,t.trim=function(e,t=" "){return l(c(e,t),t)},t.ltrim=c,t.multiRightTrim=function(e,t){let i=decodeURIComponent(e);for(const e of t)i=l(i,e);return i},t.rtrim=l,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.length0?e.indexOf(t,i)===i:0===i&&e===t},t.createRegExp=function(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return i.global&&(r+="g"),i.matchCase||(r+="i"),i.multiline&&(r+="m"),i.unicode&&(r+="u"),new RegExp(e,r)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,i=e.length;t=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1},t.compare=u,t.compareIgnoreCase=function(e,t){const i=Math.min(e.length,t.length);for(let r=0;rt.length?1:0},t.isLowerAsciiLetter=d,t.isUpperAsciiLetter=h,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&f(e,t)},t.startsWithIgnoreCase=function(e,t){const i=t.length;return!(t.length>e.length)&&f(e,t,i)},t.commonPrefixLength=function(e,t){let i,r=Math.min(e.length,t.length);for(i=0;i0;){if(g(e,n,i,t,0,r))return r;r-=1,n+=1}return 0},t.isHighSurrogate=m,t.isLowSurrogate=v;const y=/(?:[\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 y.test(e)};const _=/(?:[\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 _.test(e)};const b=/^[\t\n\r\x20-\x7E]*$/;function w(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}t.isBasicASCII=function(e){return b.test(e)},t.containsFullWidthCharacter=function(e){for(let t=0,i=e.length;t0&&65279===e.charCodeAt(0))}function k(e,t){return t-56320+(e-55296<<10)+65536}function D(e,t,i){const r=e.charCodeAt(i);if(m(r)&&i+10&&i>=0);return i>=0?e.substr(0,i):e},t.computeCodePoint=k,t.getNextCodePoint=D,t.encodeUTF8=function(e){const t=e.length;let i=0,r=0;for(;r=65536?2:1,i+=n<128?1:n<2048?2:n<65536?3:4}const n=new Uint8Array(i);r=0;let o=0;for(;r=65536?2:1,i<128?n[o++]=i:i<2048?(n[o++]=192|(1984&i)>>>6,n[o++]=128|(63&i)>>>0):i<65536?(n[o++]=224|(61440&i)>>>12,n[o++]=128|(4032&i)>>>6,n[o++]=128|(63&i)>>>0):(n[o++]=240|(1835008&i)>>>18,n[o++]=128|(258048&i)>>>12,n[o++]=128|(4032&i)>>>6,n[o++]=128|(63&i)>>>0)}return n},t.decodeUTF8=function(e){const t=e.byteLength,i=[];let r=0;for(;r=240&&r+3>>0|(63&e[r++])<<12>>>0|(63&e[r++])<<6>>>0|(63&e[r++])<<0>>>0:n>=224&&r+2>>0|(63&e[r++])<<6>>>0|(63&e[r++])<<0>>>0:n>=192&&r+1>>0|(63&e[r++])<<0>>>0:e[r++],o>=0&&o<=55295||o>=57344&&o<=65535)i.push(String.fromCharCode(o));else if(o>=65536&&o<=1114111){const e=o-65536,t=55296+((1047552&e)>>>10),r=56320+((1023&e)>>>0);i.push(String.fromCharCode(t)),i.push(String.fromCharCode(r))}else i.push(String.fromCharCode(65533))}return i.join("")}},77303:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i="number",r="string",n="undefined",o="object",s="function";function a(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i||e.constructor!==Array)}function c(e){return typeof e===r||e instanceof String}function l(e){return!(typeof e!==o||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function u(e){return typeof e===n}function d(e){return u(e)||null===e}t.isArray=a,t.isString=c,t.isStringArray=function(e){return a(e)&&e.every((e=>c(e)))},t.isObject=l,t.isNumber=function(e){return(typeof e===i||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=u,t.isUndefinedOrNull=d;const h=Object.prototype.hasOwnProperty;function p(e){return typeof e===s}function f(e,t){if(c(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch(e){}if(!d(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")}}t.hasProperty=function(e,t){return t in e},t.isEmptyObject=function(e){if(!l(e))return!1;for(let t in e)if(h.call(e,t))return!1;return!0},t.isFunction=p,t.areFunctions=function(...e){return e.length>0&&e.every(p)},t.validateConstraints=function(e,t){const i=Math.min(e.length,t.length);for(let r=0;r{n in t?r&&(l(t[n])&&l(i[n])?e(t[n],i[n],r):t[n]=i[n]):t[n]=i[n]})),t):i},t.withNullAsUndefined=function(e){return null===e?void 0:e}},63817:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(14670);t.uuid=function(){return r.generate()}},68361:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__extends:()=>n,__assign:()=>o,__rest:()=>s,__decorate:()=>a,__param:()=>c,__metadata:()=>l,__awaiter:()=>u,__generator:()=>d,__createBinding:()=>h,__exportStar:()=>p,__values:()=>f,__read:()=>g,__spread:()=>m,__spreadArrays:()=>v,__await:()=>y,__asyncGenerator:()=>_,__asyncDelegator:()=>b,__asyncValues:()=>w,__makeTemplateObject:()=>S,__importStar:()=>C,__importDefault:()=>E,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>k});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function n(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}function c(e,t){return function(i,r){t(i,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var i,r,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(n=2&o[0]?r.return:o[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;switch(r=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(i=n[e](t)).value instanceof y?Promise.resolve(i.value.v).then(c,l):u(o[0][2],i)}catch(e){u(o[0][3],e)}var i}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function b(e){var t,i;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,n){t[r]=e[r]?function(t){return(i=!i)?{value:y(e[r](t)),done:"return"===r}:n?n(t):t}:n}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise((function(r,n){(function(e,t,i,r){Promise.resolve(r).then((function(t){e({value:t,done:i})}),t)})(r,n,(t=e[i](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},58042:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(96976);t.DebugBreakpointDecoration=class{};t.DebugDecorator=class{getDisabledBreakpointDecoration(e){const t=this.getBreakpointDecoration(e);return{className:t.className+"-disabled",message:[r.localize("debug.breakpoint.disabled")+t.message[0]]}}getBreakpointDecoration(e,t){return e.raw.logMessage?{className:"kaitian-debug-logpoint",message:t||[r.localize("debug.breakpoint.logpointMessage")]}:e.raw.condition||e.raw.hitCondition?{className:"kaitian-debug-conditional-breakpoint",message:t||[r.localize("debug.breakpoint.conditionalMessage")]}:{className:"kaitian-debug-breakpoint",message:t||[r.localize("debug.breakpoint.breakpointMessage")]}}getUnverifiedBreakpointDecoration(e){const t=this.getBreakpointDecoration(e);return{className:t.className+"-unverified",message:[e.message||r.localize("debug.breakpoint.unverified")+t.message[0]]}}getDecoration(e,t=!1,i=!0){return e.enabled&&i?t&&!n.isRuntimeBreakpoint(e)?this.getUnverifiedBreakpointDecoration(e):this.getBreakpointDecoration(e):this.getDisabledBreakpointDecoration(e)}}},92625:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(96976),a=i(107),c=i(76414);let l=class extends a.MarkerManager{constructor(){super(...arguments),this.owner="breakpoint",this.defaultExceptionFilter=[],this._affected=new Set,this.onDidChangeBreakpointsEmitter=new o.Emitter,this.onDidChangeBreakpoints=this.onDidChangeBreakpointsEmitter.event,this.onDidChangeExceptionsBreakpointsEmitter=new o.Emitter,this.onDidChangeExceptionsBreakpoints=this.onDidChangeExceptionsBreakpointsEmitter.event,this._breakpointsEnabled=!0}getKind(){return s.BREAKPOINT_KIND}get selectedBreakpoint(){return this._selectedBreakpoint}set selectedBreakpoint(e){this._selectedBreakpoint=e}get affected(){return Array.from(this._affected.values())}setMarkers(e,t,i){const r=super.setMarkers(e,t,i),n=[],o=[],s=[],a=new Map(r.map((({data:e})=>[e.id,e]))),c=new Set;for(const e of i)c.add(e.id),a.has(e.id)?s.push(e):n.push(e);for(const[e,t]of a.entries())c.has(e)||o.push(t);return this.onDidChangeBreakpointsEmitter.fire({affected:[e],added:n,removed:o,changed:s}),r}getBreakpoint(e,t){return"number"==typeof t&&(t={lineNumber:t}),this.getBreakpoints(e,t)[0]}getBreakpoints(e,t){let i;return t&&(i=e=>!(t.lineNumber&&e.raw.line!==t.lineNumber||t.column&&e.raw.column!==t.column)),this.findMarkers({uri:e,dataFilter:i}).map((e=>e.data))}setBreakpoints(e,t){t.length>0?this._affected.add(e.toString()):this._affected.delete(e.toString()),this.setMarkers(e,this.owner,t.sort(((e,t)=>e.raw.line-t.raw.line)))}addBreakpoint(e){const t=new o.URI(e.uri),i=this.getBreakpoints(t),r=i.find((({raw:t})=>t.line===e.raw.line&&t.column===e.raw.column));return this.reporterService.point(null===c.DEBUG_REPORT_NAME||void 0===c.DEBUG_REPORT_NAME?void 0:c.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"add"),!r&&(this.setBreakpoints(t,[...i,e]),!0)}delBreakpoint(e){const t=o.URI.parse(e.uri),i=this.getBreakpoints(t),r=i.indexOf(e);return r>-1&&(i.splice(r,1),this.setBreakpoints(t,[].concat(i)),!0)}clearBreakpoints(){const e=new Set,t=this.getBreakpoints();t.map((t=>e.add(t.uri))),this.cleanAllMarkers(),this._affected.clear(),this.onDidChangeBreakpointsEmitter.fire({affected:Array.from(e.values()).map((e=>o.URI.parse(e))),added:[],removed:t,changed:[]})}updateBreakpoint(e,t=!1){const i=o.URI.parse(e.uri);this.onDidChangeBreakpointsEmitter.fire({affected:[i],added:[],removed:[],changed:[e],statusUpdated:t})}updateBreakpoints(e,t=!1){const i=new Set;e.forEach((e=>{i.add(e.uri)})),this.onDidChangeBreakpointsEmitter.fire({affected:Array.from(i.values()).map((e=>o.URI.parse(e))),added:[],removed:[],changed:e,statusUpdated:t})}enableAllBreakpoints(e){for(const t of this.getUris()){let i=!1;const r=new o.URI(t),n=this.findMarkers({uri:r});for(const t of n)t.data.enabled!==e&&(t.data.enabled=e,i=!0);i&&this.fireOnDidChangeMarkers(r)}}get breakpointsEnabled(){return this._breakpointsEnabled}set breakpointsEnabled(e){if(this._breakpointsEnabled!==e){this._breakpointsEnabled=e;for(const e of this.getUris())this.fireOnDidChangeMarkers(new o.URI(e));this.updateBreakpoints(this.getBreakpoints())}}async load(){const e=(await this.storageProvider(o.STORAGE_NAMESPACE.DEBUG)).get("breakpoints",{breakpointsEnabled:!0,breakpoints:{},defaultExceptionFilter:[]});this._breakpointsEnabled=e.breakpointsEnabled;for(const t in e.breakpoints)this.setBreakpoints(new o.URI(t),e.breakpoints[t].map((e=>Object.assign(e,{status:new Map}))));this.defaultExceptionFilter=e.defaultExceptionFilter||[],this.exceptionFilterValue={},this.defaultExceptionFilter.forEach((e=>{this.exceptionFilterValue[e.filter]=!!e.default}))}async save(){const e={breakpointsEnabled:this.breakpointsEnabled,breakpoints:{},defaultExceptionFilter:this.defaultExceptionFilter},t=this.getUris();for(const i of t)e.breakpoints[i]=this.findMarkers({uri:new o.URI(i)}).map((e=>e.data));const i=await this.storageProvider(o.STORAGE_NAMESPACE.DEBUG);await i.set("breakpoints",e)}clearAllStatus(e){const t=this.getBreakpoints();t.forEach((t=>{t.status.delete(e)})),this.updateBreakpoints(t)}setExceptionBreakpoints(e){this.defaultExceptionFilter=e;for(const t of e)o.isUndefined(this.exceptionFilterValue)?this.updateExceptionBreakpoints(t.filter,!!t.default):this.updateExceptionBreakpoints(t.filter,o.isUndefined(this.exceptionFilterValue[t.filter])?!!t.default:this.exceptionFilterValue[t.filter])}getExceptionBreakpoints(){return this.defaultExceptionFilter.map((e=>Object.assign(Object.assign({},e),{default:(this.exceptionFilterValue||{})[e.filter]||!1})))}updateExceptionBreakpoints(e,t){o.isUndefined(this.exceptionFilterValue)&&(this.exceptionFilterValue={}),this.exceptionFilterValue[e]=t;const i=this.defaultExceptionFilter.filter((e=>(this.exceptionFilterValue||{})[e.filter])).map((e=>e.filter));this.onDidChangeExceptionsBreakpointsEmitter.fire({filters:i})}};r.__decorate([n.Autowired(o.StorageProvider),r.__metadata("design:type",Function)],l.prototype,"storageProvider",void 0),r.__decorate([n.Autowired(o.IReporterService),r.__metadata("design:type",Object)],l.prototype,"reporterService",void 0),l=r.__decorate([n.Injectable()],l),t.BreakpointManager=l},96976:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(50706);function n(e,t,i=1){return r(`${e}:${t}:${i}`)}function o(e){return Array.from(e.status.values()).filter((e=>e.verified))[0]}t.BREAKPOINT_KIND="breakpoint",function(e){e.create=function(e,t,i=!0){return{id:n(e.toString(),t.line,t.column),uri:e.toString(),enabled:i,status:new Map,raw:Object.assign({column:void 0,condition:void 0,hitCondition:void 0,logMessage:void 0},t)}}}(t.DebugBreakpoint||(t.DebugBreakpoint={})),t.isDebugBreakpoint=function(e){return!!e&&!!e.raw},t.getStatus=o,t.isRuntimeBreakpoint=function(e){const t=o(e);return!(!t||!t.verified)},t.isDebugExceptionBreakpoint=function(e){return e&&!!e.filter},function(e){e.is=function(e){return"kind"in e&&e.kind===t.BREAKPOINT_KIND}}(t.BreakpointMarker||(t.BreakpointMarker={}))},76380:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(92625),t),r.__exportStar(i(96976),t),r.__exportStar(i(58042),t)},80343:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(6025),s=i(94184),a=i(34865);t.DebugAction=e=>{var{icon:t,label:i,run:c,enabled:l,className:u}=e,d=r.__rest(e,["icon","label","run","enabled","className"]);return n.createElement("div",Object.assign({},d,{className:s(o.debug_action,o[t],a.getIcon(t)||t,"boolean"==typeof l&&!l&&o.mod_disabled,u),title:i,onClick:c||(()=>{})}))}},63761:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(90129),o=i(34865),s=i(88774),a=i(34865),c=i(52488);t.FloatingClickWidget=({})=>{const{addConfiguration:e}=a.useInjectable(c.DebugConfigurationService);return r.createElement("div",{className:n.floating_click_widget},r.createElement(s.Button,{onClick:e,size:"large"},o.localize("debug.action.add.configuration")))}},16378:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(80343),t)},65834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointWidgetInputFocus=Symbol("BreakpointWidgetInputFocus")},8210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackItemTypeKey=Symbol("DebugCallStackItemTypeKey")},65281:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(8210),t),r.__exportStar(i(65834),t)},16297:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(5778),a=i(76414),c=i(95201),l=i(36002),u=i(34865),d=i(20566),h=i(26387),p=i(12971),f=i(36002),g=i(84859),m=i(91324);let v=r=class{constructor(){this.breakpointModeIdsSet=new Set,this.debuggers=[],this.onDidChangeEmitter=new u.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.onWillProvideDebugConfigurationEmitter=new u.Emitter,this.onWillProvideDebugConfiguration=this.onWillProvideDebugConfigurationEmitter.event,this.updateModelDelayer=new u.ThrottledDelayer(r.DEFAULT_UPDATE_MODEL_TIMEOUT),this.models=new Map,this.updateModels=()=>this.updateModelDelayer.trigger((async()=>{const e=await this.workspaceService.roots,t=new Set(this.models.keys());for(const i of e){const e=i.uri;if(t.delete(e),!this.models.has(e)){const t=new p.DebugConfigurationModel(e,this.preferences);t.onDidChange((()=>this.updateCurrent())),t.onDispose((()=>this.models.delete(e))),this.models.set(e,t)}}for(const e of t){const t=this.models.get(e);t&&t.dispose()}this.updateCurrent();let i=!0;this.models.forEach((e=>{e.configurations.length&&(i=!1)})),this.debugConfigurationEmptyKey.set(i),this._whenReadyDeferred&&this._whenReadyDeferred.resolve()})),this.debugConfigurationTypeKey=this.contextKeyService.createKey("debugConfigurationType",void 0),this.debugConfigurationEmptyKey=this.contextKeyService.createKey("debugConfigurationEmpty",!0),this.init()}async init(){this.preferences.onPreferenceChanged((e=>{"launch"===e.preferenceName&&this.updateModels()})),this._whenReadyDeferred=new u.Deferred,this.updateModels()}get whenReady(){return this._whenReadyDeferred.promise}get all(){return this.getAll()}getAll(){const e=[];for(const t of this.models.values())for(let i=0,r=t.configurations.length;i{l=e},onArrayBegin:e=>{"configurations"===l&&0===c&&(s=n.getModel().getPositionAt(e+1)),c++},onArrayEnd:()=>{c--}}),s&&(n.getModel().getLineLastNonWhitespaceColumn(s.lineNumber)>s.column&&(n.setPosition(s),n.trigger(a.launchSchemaUri,"lineBreakInsert",void 0)),0===n.getModel().getLineLastNonWhitespaceColumn(s.lineNumber+1)&&(n.setPosition({lineNumber:s.lineNumber+1,column:1<<30}),await o.executeCommand("editor.action.deleteLines")),n.setPosition(s),await o.executeCommand("editor.action.insertLineAfter"),await o.executeCommand("editor.action.triggerSuggest"))}get model(){const e=this.workspaceVariables.getWorkspaceRootUri();if(e){const t=e.toString();for(const e of this.models.values())if(e.workspaceFolderUri===t)return e}for(const e of this.models.values())if(e.uri)return e;return this.models.values().next().value}getModelByUri(e){if(e){const t=e;for(const e of this.models.values())if(e.workspaceFolderUri===t)return e}for(const e of this.models.values())if(e.uri)return e;return this.models.values().next().value}async doOpen(e){let t=e.uri;return t||(t=await this.doCreate(e)),this.workbenchEditorService.open(t,{disableNavigate:!0})}async doCreate(e){await this.preferences.set("launch",{});const{configUri:t}=this.preferences.resolve("launch");let i;i=t&&"launch.json"===t.path.base?t:new u.URI(e.workspaceFolderUri).resolve(`${this.preferenceConfigurations.getPaths()[0]}/launch.json`);const r=await this.selectDebugType(),n=r?await this.provideDebugConfigurations(r,e.workspaceFolderUri):[],o=this.getInitialConfigurationContent(n),s=await this.filesystem.getFileStat(i.toString());if(s)try{await this.filesystem.setContent(s,o)}catch(e){if(!f.FileSystemError.FileExists.is(e))throw e}else await this.filesystem.createFile(i.toString(),{content:o});return i}async provideDebugConfigurations(e,t){return await this.fireWillProvideDebugConfiguration(),this.debug.provideDebugConfigurations(e,t)}async fireWillProvideDebugConfiguration(){await u.WaitUntilEvent.fire(this.onWillProvideDebugConfigurationEmitter,{})}getInitialConfigurationContent(e){return`{\n // ${u.localize("debug.configuration.comment1")}\n // ${u.localize("debug.configuration.comment2")}\n // ${u.localize("debug.configuration.comment3")}\n "version": "0.2.0",\n "configurations": ${JSON.stringify(e,void 0," ").split("\n").map((e=>" "+e)).join("\n").trim()}\n}\n`}async selectDebugType(){const e=this.workbenchEditorService.currentEditor;if(!e)return;const t=e.currentDocumentModel;if(!t)return;const i=await this.debug.getDebuggersForLanguage(t.languageId);return this.quickPick.show(i.map((({label:e,type:t})=>({label:e,value:t})),{placeholder:"Select Environment"}))}async load(){await this.whenReady;const e=(await this.storageProvider(u.STORAGE_NAMESPACE.DEBUG)).get("configurations");e&&e.current&&(this.current=this.find(e.current.name,e.current.workspaceFolderUri,e.current.index))}async save(){const e={},{current:t}=this,i=await this.storageProvider(u.STORAGE_NAMESPACE.DEBUG);t&&(e.current={name:t.configuration.name,workspaceFolderUri:t.workspaceFolderUri,index:t.index}),i.set("configurations",e)}canSetBreakpointsIn(e){if(!e)return!1;const t=e.getLanguageIdentifier().language;return!(!t||"jsonc"===t||"log"===t)&&(!!this.debugPreferences["preference.debug.allowBreakpointsEverywhere"]||this.breakpointModeIdsSet.has(t))}addSupportBreakpoints(e){this.breakpointModeIdsSet.add(e)}removeSupportBreakpoints(e){this.breakpointModeIdsSet.delete(e)}registerDebugger(e){if("*"!==e.type){if(this.getDebugger(e.type))return;this.debuggers.push(e)}}getDebugger(e){return this.debuggers.filter((t=>t.type===e)).pop()}getDebuggers(){return this.debuggers.filter((e=>!!e))}};v.DEFAULT_UPDATE_MODEL_TIMEOUT=500,n.__decorate([o.Autowired(s.IWorkspaceService),n.__metadata("design:type",Object)],v.prototype,"workspaceService",void 0),n.__decorate([o.Autowired(g.WorkbenchEditorService),n.__metadata("design:type",g.WorkbenchEditorService)],v.prototype,"workbenchEditorService",void 0),n.__decorate([o.Autowired(a.IDebugServer),n.__metadata("design:type",Object)],v.prototype,"debug",void 0),n.__decorate([o.Autowired(c.QuickPickService),n.__metadata("design:type",Object)],v.prototype,"quickPick",void 0),n.__decorate([o.Autowired(u.IContextKeyService),n.__metadata("design:type",Object)],v.prototype,"contextKeyService",void 0),n.__decorate([o.Autowired(l.IFileServiceClient),n.__metadata("design:type",Object)],v.prototype,"filesystem",void 0),n.__decorate([o.Autowired(u.PreferenceService),n.__metadata("design:type",Object)],v.prototype,"preferences",void 0),n.__decorate([o.Autowired(u.PreferenceConfigurations),n.__metadata("design:type",u.PreferenceConfigurations)],v.prototype,"preferenceConfigurations",void 0),n.__decorate([o.Autowired(h.WorkspaceVariableContribution),n.__metadata("design:type",h.WorkspaceVariableContribution)],v.prototype,"workspaceVariables",void 0),n.__decorate([o.Autowired(u.StorageProvider),n.__metadata("design:type",Function)],v.prototype,"storageProvider",void 0),n.__decorate([o.Autowired(u.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),n.__decorate([o.Autowired(m.DebugPreferences),n.__metadata("design:type",Object)],v.prototype,"debugPreferences",void 0),v=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],v),t.DebugConfigurationManager=v},12971:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(76414);t.DebugConfigurationModel=class{constructor(e,t){this.workspaceFolderUri=e,this.preferences=t,this.onDidChangeEmitter=new r.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.toDispose=new r.DisposableCollection(this.onDidChangeEmitter),this.reconcile(),this.toDispose.push(this.preferences.onPreferenceChanged((t=>{"launch"===t.preferenceName&&t.affects(e)&&this.reconcile()})))}get uri(){return this.json.uri}dispose(){this.toDispose.dispose()}get onDispose(){return this.toDispose.onDispose}get configurations(){return this.json.configurations}async reconcile(){this.json=this.parseConfigurations(),this.onDidChangeEmitter.fire(void 0)}parseConfigurations(){const e=[],{configUri:t,value:i}=this.preferences.resolve("launch",void 0,this.workspaceFolderUri);if(i&&"object"==typeof i&&"configurations"in i&&Array.isArray(i.configurations))for(const t of i.configurations)n.DebugConfiguration.is(t)&&e.push(t);return{uri:t,configurations:e}}}},60481:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(81924),s=i(34865),a=i(93743),c=i(77370),l=i(6191),u=i(72559),d=i(73607),h=i(19745),p=i(43743),f=i(76380),g=i(16297),m=i(12711),v=i(93618),y=i(34865),_=i(8308),b=i(35549),w=i(52488),S=i(70499),C=i(52215),E=i(91324),O=i(76414),k=i(36439),D=i(30579),M=i(43849),x=i(58407),T=i(44042),A=i(63761),I=i(34865),P=i(95008),R=/launch\.json$/;var L,N;!function(e){e.ADD_WATCHER={id:"debug.watch.add",iconClass:y.getIcon("plus")},e.COLLAPSE_ALL_WATCHER={id:"debug.watch.collapseAll",iconClass:y.getIcon("collapse-all")},e.REMOVE_ALL_WATCHER={id:"debug.watch.removeAll",iconClass:y.getIcon("close-all")},e.REMOVE_WATCHER={id:"debug.watch.remove"},e.EDIT_WATCHER={id:"debug.watch.edit"},e.COPY_WATCHER_VALUE={id:"debug.watch.copyValue"},e.REMOVE_ALL_BREAKPOINTS={id:"debug.breakpoints.remove.all",iconClass:y.getIcon("close-all")},e.TOGGLE_BREAKPOINTS={id:"debug.breakpoints.toggle",iconClass:y.getIcon("deactivate-breakpoints")},e.START={id:"debug.start"},e.NEXT={id:"debug.next"},e.PREV={id:"debug.prev"},e.OVER={id:"debug.over"},e.STOP={id:"debug.stop"},e.CONTINUE={id:"debug.continue"},e.RESTART={id:"debug.restart"},e.PAUSE={id:"debug.pause"},e.DELETE_BREAKPOINT={id:"debug.delete.breakpoint",label:n.localize("debug.menu.delete.breakpoint")},e.EDIT_BREAKPOINT={id:"debug.edit.breakpoint",label:n.localize("debug.menu.edit.breakpoint")},e.DISABLE_BREAKPOINT={id:"debug.disable.breakpoint",label:n.localize("debug.menu.disable.breakpoint")},e.ENABLE_BREAKPOINT={id:"debug.enable.breakpoint",label:n.localize("debug.menu.enable.breakpoint")},e.ENABLE_LOGPOINT={id:"debug.enable.logpoint",label:n.localize("debug.menu.enable.logpoint")},e.ADD_BREAKPOINT={id:"debug.add.breakpoint",label:n.localize("debug.menu.add.breakpoint")},e.ADD_LOGPOINT={id:"debug.add.logpoint",label:n.localize("debug.menu.add.logpoint")},e.ADD_CONDITIONAL_BREAKPOINT={id:"debug.add.conditional",label:n.localize("debug.menu.add.conditional")},e.SET_VARIABLE_VALUE={id:"debug.variables.setValue"},e.COPY_VARIABLE_VALUE={id:"debug.variables.copy"},e.CLEAR_CONSOLE={id:"debug.console.clear",label:n.localize("debug.console.clear")},e.COPY_CONSOLE_ITEM={id:"debug.console.copy"},e.COPY_CONSOLE_ALL={id:"debug.console.copyALl"},e.COLLAPSE_ALL_CONSOLE_ITEM={id:"debug.console.collapseAll",label:n.localize("debug.console.collapseAll")}}(L=t.DEBUG_COMMANDS||(t.DEBUG_COMMANDS={})),function(e){e.ACCEPT={id:"debug.breakpointWidget.accept"},e.CLOSE={id:"debug.breakpointWidget.close"}}(N=t.DebugBreakpointWidgetCommands||(t.DebugBreakpointWidgetCommands={}));let F=class{constructor(){this.schema=E.debugPreferencesSchema,this.firstSessionStart=!0}get selectedBreakpoint(){const{selectedBreakpoint:e}=this.breakpointManager;return e}registerEditorComponent(e){e.registerEditorSideWidget({id:O.DEBUG_FLOATING_CLICK_WIDGET,component:A.FloatingClickWidget,displaysOnResource:e=>{const{configUri:t}=this.preferences.resolve("launch");return!!t&&(t.isEqual(e.uri)&&R.test(e.uri.toString()))}})}registerComponent(e){e.register("@ali/ide-debug",[{component:v.DebugWatchView,id:O.DEBUG_WATCH_ID,name:n.localize("debug.watch.title"),when:"!debugConfigurationEmpty",collapsed:!1},{component:l.DebugCallStackView,id:O.DEBUG_STACK_ID,name:n.localize("debug.callStack.title"),when:"!debugConfigurationEmpty",collapsed:!1},{component:c.DebugVariableView,id:O.DEBUG_VARIABLES_ID,name:n.localize("debug.variables.title"),when:"!debugConfigurationEmpty",collapsed:!1},{component:a.DebugBreakpointView,id:O.DEBUG_BREAKPOINTS_ID,name:n.localize("debug.breakpoints.title"),when:"!debugConfigurationEmpty",collapsed:!1},{component:P.WelcomeView,id:O.DEBUG_WELCOME_ID,name:"Debug Welcome",when:"debugConfigurationEmpty",initialProps:{viewId:O.DEBUG_WELCOME_ID}}],{iconClass:y.getIcon("debug"),priority:7,title:n.localize("debug.container.title"),containerId:O.DEBUG_CONTAINER_ID,titleComponent:u.DebugConfigurationView,activateKeyBinding:"ctrlcmd+shift+d"})}async onStart(){this.viewsRegistry.registerViewWelcomeContent(O.DEBUG_WELCOME_ID,{content:n.formatLocalize("welcome-view.noLaunchJson",L.START.id),when:"default"}),this.sessionManager.onDidCreateDebugSession((e=>{this.debugModel.init(e)})),this.sessionManager.onDidStartDebugSession((e=>{const{internalConsoleOptions:t}=e.configuration,i=e.configuration.openDebug||this.debugPreferences["debug.openDebug"];("openOnSessionStart"===i||"openOnFirstSessionStart"===i&&this.firstSessionStart)&&this.openDebugView(),("openOnSessionStart"===t||"openOnFirstSessionStart"===t&&this.firstSessionStart)&&this.openDebugConsoleView(),this.firstSessionStart=!1,this.commandService.tryExecuteCommand("statusbar.changeBackgroundColor","var(--statusBar-debuggingBackground)"),this.commandService.tryExecuteCommand("statusbar.changeColor","var(--statusBar-debuggingForeground)")})),this.sessionManager.onDidStopDebugSession((e=>{const{openDebug:t}=e.configuration;"openOnDebugBreak"===t&&this.openDebugView()})),this.sessionManager.onDidDestroyDebugSession((e=>{0===this.sessionManager.sessions.length&&(this.commandService.tryExecuteCommand("statusbar.changeBackgroundColor","var(--statusBar-background)"),this.commandService.tryExecuteCommand("statusbar.changeColor","var(--statusBar-foreground)"))})),this.debugEditorController.init(),await this.configurations.load(),await this.breakpointManager.load(),this.configurations.onDidChange((()=>this.configurations.save())),this.breakpointManager.onDidChangeBreakpoints((()=>this.breakpointManager.save())),this.breakpointManager.onDidChangeExceptionsBreakpoints((()=>this.breakpointManager.save())),this.breakpointManager.onDidChangeMarkers((()=>this.breakpointManager.save()))}openDebugView(){const e=this.mainlayoutService.getTabbarHandler(O.DEBUG_CONTAINER_ID);e&&!e.isVisible&&e.activate()}openDebugConsoleView(){this.debugConsole.isVisible||this.debugConsole.activate()}onDidRender(){const e=this.mainlayoutService.getTabbarHandler(O.DEBUG_CONTAINER_ID);e&&e.setTitleComponent(u.DebugConfigurationView)}registerCommands(e){e.registerCommand(L.REMOVE_ALL_BREAKPOINTS,{execute:e=>{this.debugBreakpointsService.removeAllBreakpoints()},isVisible:()=>{const e=this.mainlayoutService.getTabbarHandler(O.DEBUG_CONTAINER_ID);return!!e&&e.isVisible}}),e.registerCommand(L.START,{execute:e=>{this.debugConfigurationService.start()}}),e.registerCommand(L.STOP,{execute:e=>{this.debugToolbarService.doStop()}}),e.registerCommand(L.NEXT,{execute:e=>{this.debugToolbarService.doStepIn()}}),e.registerCommand(L.PREV,{execute:e=>{this.debugToolbarService.doStepOut()}}),e.registerCommand(L.CONTINUE,{execute:e=>{this.debugToolbarService.doContinue()}}),e.registerCommand(L.PAUSE,{execute:e=>{this.debugToolbarService.doPause()}}),e.registerCommand(L.OVER,{execute:e=>{this.debugToolbarService.doStepOver()}}),e.registerCommand(L.RESTART,{execute:e=>{this.debugToolbarService.doRestart()}}),e.registerCommand(L.TOGGLE_BREAKPOINTS,{execute:e=>{this.debugBreakpointsService.toggleBreakpoints()},isVisible:()=>{const e=this.mainlayoutService.getTabbarHandler(O.DEBUG_CONTAINER_ID);return!!e&&e.isVisible}}),e.registerCommand(L.EDIT_BREAKPOINT,{execute:async e=>{this.reporterService.point(null===O.DEBUG_REPORT_NAME||void 0===O.DEBUG_REPORT_NAME?void 0:O.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"edit");const{selectedBreakpoint:t}=this;if(t){const{openBreakpointView:i}=t.model;let r="condition";if(t.breakpoint){const e=t.breakpoint.raw;e.condition?r="condition":e.hitCondition?r="hitCondition":e.logMessage&&(r="logMessage")}i(e,t.breakpoint&&t.breakpoint.raw,r)}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint}),e.registerCommand(L.DISABLE_BREAKPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{uri:i}=t.model,r=this.breakpointManager.getBreakpoint(i,e.lineNumber);r&&(r.enabled=!1,this.breakpointManager.updateBreakpoint(r))}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint&&this.selectedBreakpoint.breakpoint.enabled,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint&&this.selectedBreakpoint.breakpoint.enabled}),e.registerCommand(L.ENABLE_BREAKPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{uri:i}=t.model,r=this.breakpointManager.getBreakpoint(i,e.lineNumber);r&&(r.enabled=!0,this.breakpointManager.updateBreakpoint(r))}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint&&!this.selectedBreakpoint.breakpoint.enabled,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint&&!this.selectedBreakpoint.breakpoint.enabled}),e.registerCommand(L.DELETE_BREAKPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{uri:i}=t.model,r=this.breakpointManager.getBreakpoint(i,e.lineNumber);r&&this.breakpointManager.delBreakpoint(r)}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint}),e.registerCommand(L.ADD_CONDITIONAL_BREAKPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{uri:i,openBreakpointView:r,toggleBreakpoint:n}=t.model;n(e);const o=this.breakpointManager.getBreakpoint(i,e.lineNumber);o&&(this.breakpointManager.selectedBreakpoint={breakpoint:o,model:t.model}),r(e,t.breakpoint&&t.breakpoint.raw,"condition")}},isVisible:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint}),e.registerCommand(L.ADD_LOGPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{openBreakpointView:i,toggleBreakpoint:r,uri:n}=t.model;r(e);const o=this.breakpointManager.getBreakpoint(n,e.lineNumber);o&&(this.breakpointManager.selectedBreakpoint={breakpoint:o,model:t.model}),i(e,t.breakpoint&&t.breakpoint.raw,"logMessage")}},isVisible:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint}),e.registerCommand(L.ADD_BREAKPOINT,{execute:async e=>{const{selectedBreakpoint:t}=this;if(t){const{toggleBreakpoint:i}=t.model;i(e)}},isVisible:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!this.selectedBreakpoint.breakpoint}),e.registerCommand(N.ACCEPT,{execute:()=>{const{selectedBreakpoint:e}=this;if(e){const{acceptBreakpoint:t}=e.model;t()}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint}),e.registerCommand(N.CLOSE,{execute:()=>{const{selectedBreakpoint:e}=this;if(e){const{closeBreakpointView:t}=e.model;t()}},isVisible:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint,isEnabled:()=>!!this.selectedBreakpoint&&!!this.selectedBreakpoint.breakpoint})}registerToolbarItems(e){e.registerItem({id:L.REMOVE_ALL_BREAKPOINTS.id,command:L.REMOVE_ALL_BREAKPOINTS.id,viewId:O.DEBUG_BREAKPOINTS_ID,tooltip:n.localize("debug.breakpoint.removeAll")}),e.registerItem({id:L.TOGGLE_BREAKPOINTS.id,command:L.TOGGLE_BREAKPOINTS.id,viewId:O.DEBUG_BREAKPOINTS_ID,tooltip:n.localize("debug.breakpoint.toggle")})}registerSchema(e){e.registerSchema(`${O.launchSchemaUri}/default`,m.launchSchema,["launch.json"])}registerKeybindings(e){e.registerKeybinding({command:L.START.id,keybinding:"f5",when:"!inDebugMode"}),e.registerKeybinding({command:L.CONTINUE.id,keybinding:"f5",when:"inDebugMode"}),e.registerKeybinding({command:L.STOP.id,keybinding:"shift+f5",when:"inDebugMode"}),e.registerKeybinding({command:L.NEXT.id,keybinding:"f11",when:"inDebugMode"}),e.registerKeybinding({command:L.PREV.id,keybinding:"shift+f11",when:"inDebugMode"}),e.registerKeybinding({command:L.OVER.id,keybinding:"f10",when:"inDebugMode"}),e.registerKeybinding({command:L.RESTART.id,keybinding:"shift+ctrlcmd+f5",when:"inDebugMode"}),e.registerKeybinding({command:N.ACCEPT.id,keybinding:"enter",when:"breakpointWidgetInputFocus"}),e.registerKeybinding({command:N.CLOSE.id,keybinding:"esc",when:"breakpointWidgetInputFocus"})}registerMenus(e){e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.DELETE_BREAKPOINT.id,group:"1_has_breakpoint",order:1}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.EDIT_BREAKPOINT.id,group:"1_has_breakpoint",order:2}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.DISABLE_BREAKPOINT.id,group:"1_has_breakpoint",order:3}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.ENABLE_BREAKPOINT.id,group:"1_has_breakpoint",order:4}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.ADD_BREAKPOINT.id,group:"2_has_not_breakpoint"}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.ADD_CONDITIONAL_BREAKPOINT.id,group:"2_has_not_breakpoint"}),e.registerMenuItem(M.MenuId.DebugBreakpointsContext,{command:L.ADD_LOGPOINT.id,group:"2_has_not_breakpoint"})}isPosition(e){return e instanceof o.Position}registerEditorFeature(e){e.registerEditorFeatureContribution(this.editorHoverContribution)}};r.__decorate([h.Autowired(d.IMainLayoutService),r.__metadata("design:type",Object)],F.prototype,"mainlayoutService",void 0),r.__decorate([h.Autowired(f.BreakpointManager),r.__metadata("design:type",f.BreakpointManager)],F.prototype,"breakpointManager",void 0),r.__decorate([h.Autowired(g.DebugConfigurationManager),r.__metadata("design:type",g.DebugConfigurationManager)],F.prototype,"configurations",void 0),r.__decorate([h.Autowired(p.DebugModelManager),r.__metadata("design:type",p.DebugModelManager)],F.prototype,"debugEditorController",void 0),r.__decorate([h.Autowired(b.DebugBreakpointsService),r.__metadata("design:type",b.DebugBreakpointsService)],F.prototype,"debugBreakpointsService",void 0),r.__decorate([h.Autowired(S.DebugViewModel),r.__metadata("design:type",S.DebugViewModel)],F.prototype,"debugModel",void 0),r.__decorate([h.Autowired(E.DebugPreferences),r.__metadata("design:type",Object)],F.prototype,"debugPreferences",void 0),r.__decorate([h.Autowired(k.DebugConsoleService),r.__metadata("design:type",k.DebugConsoleService)],F.prototype,"debugConsole",void 0),r.__decorate([h.Autowired(w.DebugConfigurationService),r.__metadata("design:type",w.DebugConfigurationService)],F.prototype,"debugConfigurationService",void 0),r.__decorate([h.Autowired(O.IDebugSessionManager),r.__metadata("design:type",C.DebugSessionManager)],F.prototype,"sessionManager",void 0),r.__decorate([h.Autowired(n.CommandService),r.__metadata("design:type",Object)],F.prototype,"commandService",void 0),r.__decorate([h.Autowired(D.DebugToolbarService),r.__metadata("design:type",D.DebugToolbarService)],F.prototype,"debugToolbarService",void 0),r.__decorate([h.Autowired(T.EditorHoverContribution),r.__metadata("design:type",T.EditorHoverContribution)],F.prototype,"editorHoverContribution",void 0),r.__decorate([h.Autowired(I.PreferenceService),r.__metadata("design:type",Object)],F.prototype,"preferences",void 0),r.__decorate([h.Autowired(n.IReporterService),r.__metadata("design:type",Object)],F.prototype,"reporterService",void 0),r.__decorate([h.Autowired(d.IViewsRegistry),r.__metadata("design:type",Object)],F.prototype,"viewsRegistry",void 0),F=r.__decorate([n.Domain(n.ClientAppContribution,s.ComponentContribution,_.TabBarToolbarContribution,n.CommandContribution,n.KeybindingContribution,n.JsonSchemaContribution,n.PreferenceContribution,M.MenuContribution,x.BrowserEditorContribution)],F),t.DebugContribution=F},91324:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.debugPreferencesSchema={type:"object",properties:{"debug.trace":{type:"boolean",default:!1,description:r.localize("preference.debug.trace")},"debug.debugViewLocation":{enum:["default","left","right","bottom"],default:"default",description:r.localize("preference.debug.debugViewLocation")},"debug.openDebug":{enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart","openOnDebugBreak"],default:"openOnSessionStart",description:r.localize("preference.debug.openDebug")},"debug.internalConsoleOptions":{enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart"],default:"openOnFirstSessionStart",description:r.localize("preference.debug.internalConsoleOptions")},"debug.allowBreakpointsEverywhere":{type:"boolean",description:r.localize("preference.debug.allowBreakpointsEverywhere"),default:!1}}};function n(e){return r.createPreferenceProxy(e,t.debugPreferencesSchema)}t.IDebugConfiguration=class{},t.DebugPreferences=Symbol("DebugPreferences"),t.createDebugPreferences=n,t.injectDebugPreferences=function(e){e.addProviders({token:t.DebugPreferences,useFactory:e=>n(e.get(r.PreferenceService))}),e.addProviders({token:r.PreferenceContribution,useValue:{schema:t.debugPreferencesSchema}})}},47146:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(52215),s=i(41239),a=i(34865),c=i(40740);class l{constructor(e,t){this.uri=e,this.manager=t}dispose(){}async readContents(){const{currentSession:e}=this.manager;if(!e)throw new Error(`There is no active debug session to load content '${this.uri}'`);const t=await e.toSource(this.uri);if(!t)throw new Error(`There is no source for '${this.uri}'`);return t.load()}}t.DebugResource=l;let u=class{resolve(e){if(e.scheme!==s.DebugSource.SCHEME)throw new Error("The given URI is not a valid debug URI: "+e);return new l(e,this.manager)}};r.__decorate([n.Autowired(c.IDebugSessionManager),r.__metadata("design:type",o.DebugSessionManager)],u.prototype,"manager",void 0),u=r.__decorate([a.Domain(a.ResourceResolverContribution)],u),t.DebugResourceResolverContribution=u},12711:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(66514),a=i(16297),c=i(76414);let l=class{async update(){const e=this.config.getDebuggers(),i=Object.assign({},o.deepClone(t.launchSchema)),r=i.properties.configurations.items,n=e.map((e=>({attributes:Object.keys(e.configurationAttributes||{}).map((t=>e.configurationAttributes[t])),configurationSnippets:e.configurationSnippets})));for(const{attributes:e,configurationSnippets:t}of n)e&&r.oneOf&&r.oneOf.push(...e),t&&r.defaultSnippets&&r.defaultSnippets.push(...t);this.schemaRegistry.registerSchema(`${c.launchSchemaUri}/extension`,i,["launch.json"])}};r.__decorate([n.Autowired(o.InMemoryResourceResolver),r.__metadata("design:type",o.InMemoryResourceResolver)],l.prototype,"inmemoryResources",void 0),r.__decorate([n.Autowired(s.IDebugServer),r.__metadata("design:type",Object)],l.prototype,"debug",void 0),r.__decorate([n.Autowired(o.ISchemaRegistry),r.__metadata("design:type",Object)],l.prototype,"schemaRegistry",void 0),r.__decorate([n.Autowired(a.DebugConfigurationManager),r.__metadata("design:type",a.DebugConfigurationManager)],l.prototype,"config",void 0),l=r.__decorate([n.Injectable()],l),t.DebugSchemaUpdater=l,t.launchSchema={$id:c.launchSchemaUri,type:"object",title:"Launch",required:[],default:{version:"0.2.0",configurations:[]},properties:{version:{type:"string",description:"Version of this file format.",default:"0.2.0"},configurations:{type:"array",description:"List of configurations. Add new configurations or edit existing ones by using IntelliSense.",items:{defaultSnippets:[],type:"object",oneOf:[]}}}}},89212:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865);let s=class{constructor(){this.onDidDebugContributionPointChangeEmitter=new o.Emitter,this.debugContributionPointsMap=new Map}registerDebugContributionPoints(e,t){this.debugContributionPointsMap.has(e)||(this.debugContributionPointsMap.set(e,t),this.onDidDebugContributionPointChangeEmitter.fire({path:e,contributions:t}))}unregisterDebugContributionPoints(e){const t=this.debugContributionPointsMap.get(e);t&&(this.debugContributionPointsMap.delete(e),this.onDidDebugContributionPointChangeEmitter.fire({path:e,contributions:t,removed:!0}))}get debugContributionPoints(){return this.debugContributionPointsMap}get onDidDebugContributionPointChange(){return this.onDidDebugContributionPointChangeEmitter.event}};s=r.__decorate([n.Injectable()],s),t.DebugService=s},60013:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(76414),a=i(52215),c=new Set(["breakpoint","capabilities","continued","exited","initialized","loadedSource","module","output","process","stopped","terminated","thread"]);let l=class{constructor(e,t,i){this.sessionId=e,this.connectionFactory=t,this.traceOutputChannel=i,this.pendingRequests=new Map,this.requestHandlers=new Map,this.onDidCustomEventEmitter=new o.Emitter,this.onDidCustomEvent=this.onDidCustomEventEmitter.event,this.toDispose=new o.DisposableCollection(this.onDidCustomEventEmitter,o.Disposable.create((()=>this.pendingRequests.clear())),o.Disposable.create((()=>this.emitters.clear()))),this.allThreadsContinued=!0,this.emitters=new Map,this.connection=this.createConnection()}get disposed(){return this.toDispose.disposed}dispose(){this.toDispose.dispose()}async createConnection(){if(this.disposed)throw new Error("Connection has been already disposed.");{const e=await this.connectionFactory(this.sessionId);return e.onClose(((e,t)=>{this.fire("exited",{code:e,reason:t})})),e.onMessage((e=>this.handleMessage(e))),e}}async sendRequest(e,t,i,r){var n;"initialize"===e&&(this.sessionAdapterID=t.adapterID);const o=this.manager.reportTime(s.DEBUG_REPORT_NAME.DEBUG_ADAPTER_PROTOCOL_TIME,{sessionId:this.sessionId,threadId:t&&t.threadId||(null===(n=this.manager.currentThread)||void 0===n?void 0:n.raw.id)}),a=await this.doSendRequest(e,t,r),c={adapterID:this.sessionAdapterID,request:i.request};if("threads"===e&&(c.amount=a.body.threads.length),o(e,c),"next"!==e&&"stepIn"!==e&&"stepOut"!==e&&"stepBack"!==e&&"reverseContinue"!==e&&"restartFrame"!==e||this.fireContinuedEvent(t.threadId),"continue"===e){const e=a;return void 0!==(e&&e.body&&e.body.allThreadsContinued)&&(this.allThreadsContinued=a.body.allThreadsContinued),this.fireContinuedEvent(t.threadId,this.allThreadsContinued),a}return a}sendCustomRequest(e,t){return this.doSendRequest(e,t)}async doSendRequest(e,t=null,i){const r=new o.Deferred,n={seq:s.getSequenceId(),type:"request",command:e};let a;return t&&Object.keys(t).length>0&&(n.arguments=t),this.pendingRequests.set(n.seq,(e=>{a&&a.dispose(),e.success?r.resolve(e):r.reject(e)})),i&&(a=i.onCancellationRequested((async()=>{a.dispose();const e=this.manager.getSession(this.sessionId);e&&e.capabilities.supportsCancelRequest&&e.sendRequest("cancel",{requestId:n.seq})}))),await this.send(n),r.promise}async send(e){const t=await this.connection,i=JSON.stringify(e);this.traceOutputChannel&&this.traceOutputChannel.appendLine(`${this.sessionId.substring(0,8)} [UI -> adapter]: ${i}`),t.send(i)}handleMessage(e){this.traceOutputChannel&&this.traceOutputChannel.appendLine(`${this.sessionId.substring(0,8)} [adapter -> UI ]: ${e}`);const t=JSON.parse(e);"request"===t.type?this.handleRequest(t):"response"===t.type?this.handleResponse(t):"event"===t.type&&this.handleEvent(t)}handleResponse(e){const t=this.pendingRequests.get(e.request_seq);t&&(this.pendingRequests.delete(e.request_seq),t(e))}onRequest(e,t){this.requestHandlers.set(e,t)}async handleRequest(e){const t={type:"response",seq:s.getSequenceId(),command:e.command,request_seq:e.seq,success:!0},i=this.requestHandlers.get(e.command);if(i)try{t.body=i(e)}catch(e){t.success=!1,t.message=e.message}else o.getDebugLogger().error("Unhandled request",e);await this.send(t)}handleEvent(e){"event"in e?("continued"===e.event&&(this.allThreadsContinued=!1!==e.body.allThreadsContinued),c.has(e.event)?this.doFire(e.event,e):this.onDidCustomEventEmitter.fire(e)):this.fire("exited",e)}on(e,t){return this.disposed?o.Disposable.create((()=>{})):this.getEmitter(e).event(t)}fire(e,t){this.doFire(e,t)}doFire(e,t){this.disposed||this.getEmitter(e).fire(t)}getEmitter(e){const t=this.emitters.get(e)||this.newEmitter();return this.emitters.set(e,t),t}newEmitter(){const e=new o.Emitter;return this.toDispose.push(e),e}fireContinuedEvent(e,t=!1){this.fire("continued",{type:"event",event:"continued",body:{threadId:e,allThreadsContinued:t},seq:s.getSequenceId()})}};r.__decorate([n.Autowired(s.IDebugSessionManager),r.__metadata("design:type",a.DebugSessionManager)],l.prototype,"manager",void 0),l=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optional()),r.__param(1,n.Optional()),r.__param(2,n.Optional()),r.__metadata("design:paramtypes",[String,Function,Object])],l),t.DebugSessionConnection=l},92407:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(34865),i(61853)),s=i(36002),a=i(65777),c=i(39273),l=i(91324),u=i(60013),d=i(52215),h=i(43743),p=i(76414),f=i(76380),g=i(92224),m=i(84859),v=i(20476),y=i(78079);t.DebugSessionContribution=Symbol("DebugSessionContribution"),t.DebugSessionContributionRegistry=Symbol("DebugSessionContributionRegistry");let _=class{constructor(){this.contribs=new Map,this.init()}init(){for(const e of this.contributions.getContributions())this.contribs.set(e.debugType,e)}get(e){return this.contribs.get(e)}};r.__decorate([n.Autowired(t.DebugSessionContribution),r.__metadata("design:type",Object)],_.prototype,"contributions",void 0),_=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],_),t.DebugSessionContributionRegistryImpl=_,t.DebugSessionFactory=Symbol("DebugSessionFactory");let b=class{get(e,t){const i=this.injector.get(u.DebugSessionConnection,[e,e=>this.connectionProvider.openChannel(`${p.DebugAdapterPath}/${e}`),this.getTraceOutputChannel()]);return new o.DebugSession(e,t,i,this.terminalService,this.workbenchEditorService,this.breakpoints,this.modelManager,this.labelService,this.messages,this.fileSystem,this.manager)}getTraceOutputChannel(){if(this.debugPreferences["debug.trace"])return this.outputService.getChannel("Debug adapters")}};r.__decorate([n.Autowired(c.WSChannelHandler),r.__metadata("design:type",c.WSChannelHandler)],b.prototype,"connectionProvider",void 0),r.__decorate([n.Autowired(m.WorkbenchEditorService),r.__metadata("design:type",m.WorkbenchEditorService)],b.prototype,"workbenchEditorService",void 0),r.__decorate([n.Autowired(f.BreakpointManager),r.__metadata("design:type",f.BreakpointManager)],b.prototype,"breakpoints",void 0),r.__decorate([n.Autowired(h.DebugModelManager),r.__metadata("design:type",h.DebugModelManager)],b.prototype,"modelManager",void 0),r.__decorate([n.Autowired(a.LabelService),r.__metadata("design:type",a.LabelService)],b.prototype,"labelService",void 0),r.__decorate([n.Autowired(g.IMessageService),r.__metadata("design:type",Object)],b.prototype,"messages",void 0),r.__decorate([n.Autowired(l.DebugPreferences),r.__metadata("design:type",Object)],b.prototype,"debugPreferences",void 0),r.__decorate([n.Autowired(s.IFileServiceClient),r.__metadata("design:type",Object)],b.prototype,"fileSystem",void 0),r.__decorate([n.Autowired(v.ITerminalApiService),r.__metadata("design:type",Object)],b.prototype,"terminalService",void 0),r.__decorate([n.Autowired(y.OutputService),r.__metadata("design:type",y.OutputService)],b.prototype,"outputService",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],b.prototype,"injector",void 0),r.__decorate([n.Autowired(p.IDebugSessionManager),r.__metadata("design:type",d.DebugSessionManager)],b.prototype,"manager",void 0),b=r.__decorate([n.Injectable()],b),t.DefaultDebugSessionFactory=b},52215:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(61853),s=i(34865),a=i(92625),c=i(76414),l=i(92224),u=i(47291),d=i(65777),h=i(92407),p=i(84859),f=i(43743),g=i(77038),m=i(82627);let v=class{constructor(){this._uid=s.uuid(),this._sessions=new Map,this._extraMap=new Map,this._actionIndex=0,this.onWillStartDebugSessionEmitter=new s.Emitter,this.onWillStartDebugSession=this.onWillStartDebugSessionEmitter.event,this.onWillResolveDebugConfigurationEmitter=new s.Emitter,this.onWillResolveDebugConfiguration=this.onWillResolveDebugConfigurationEmitter.event,this.onDidCreateDebugSessionEmitter=new s.Emitter,this.onDidCreateDebugSession=this.onDidCreateDebugSessionEmitter.event,this.onDidStartDebugSessionEmitter=new s.Emitter,this.onDidStartDebugSession=this.onDidStartDebugSessionEmitter.event,this.onDidStopDebugSessionEmitter=new s.Emitter,this.onDidStopDebugSession=this.onDidStopDebugSessionEmitter.event,this.onDidChangeActiveDebugSessionEmitter=new s.Emitter,this.onDidChangeActiveDebugSession=this.onDidChangeActiveDebugSessionEmitter.event,this.onDidDestroyDebugSessionEmitter=new s.Emitter,this.onDidDestroyDebugSession=this.onDidDestroyDebugSessionEmitter.event,this.onDidReceiveDebugSessionCustomEventEmitter=new s.Emitter,this.onDidReceiveDebugSessionCustomEvent=this.onDidReceiveDebugSessionCustomEventEmitter.event,this.onDidChangeEmitter=new s.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.configurationIds=new Map,this.toDisposeOnCurrentSession=new s.DisposableCollection,this.init()}fireDidChange(e){this.inDebugModeKey.set(this.inDebugMode),this.onDidChangeEmitter.fire(e)}init(){this.debugTypeKey=this.contextKeyService.createKey("debugType",void 0),this.inDebugModeKey=this.contextKeyService.createKey("inDebugMode",this.inDebugMode),this.debugStopped=this.contextKeyService.createKey("debugStopped",!1),this.modelManager.onModelChanged((e=>{const{newModelUrl:t}=e;if(t){const e=s.URI.parse(t.toString()),i=this.modelManager.model;if(this.currentSession&&this.currentThread&&i){const t=this.currentThread.frames.find((t=>{var i;return(null===(i=t.source)||void 0===i?void 0:i.uri.toString())===e.toString()}));t&&t!==this.currentFrame&&(this.currentThread.currentFrame=t,setTimeout((()=>{this.workbenchEditorService.currentEditor&&this.workbenchEditorService.currentEditor.monacoEditor.revealLineInCenter(t.raw.line)}),0))}}}))}_getExtra(e,t){if(null==e)return;const i=this._extraMap.get(e);return i?Object.assign({traceId:i.traceId,remote:i.remote,adapterID:i.adapterID,request:i.request},t&&i.threads.get(`${t}`)):void 0}getExtra(e,t){return this._getExtra(e,t)}_setExtra(e,t,i){const r=this._extraMap.get(e);r&&(i?r.threads.set(t,i):r.threads.delete(t))}setExtra(e,t,i){return this._setExtra(e,t,i)}report(e,t,i){return i=Object.assign(Object.assign({traceId:this._uid},this._getExtra(null==i?void 0:i.sessionId,null==i?void 0:i.threadId)),i),this.reporterService.point(e,t,i)}reportTime(e,t){const i=this.reporterService.time(e);return(e,r)=>(r=Object.assign(Object.assign({},t),r),r=Object.assign(Object.assign({traceId:this._uid},this._getExtra(null==r?void 0:r.sessionId,null==r?void 0:r.threadId)),r),i.timeEnd(e,r))}reportAction(e,t,i){var r,n,o;let s=this._getExtra(e,t);s&&(t&&!s.threadId&&(s=Object.assign({},s)),this._actionIndex+=1,s.action=`${i}-${this._actionIndex}`,s.filePath=null===(n=null===(r=this.currentFrame)||void 0===r?void 0:r.raw.source)||void 0===n?void 0:n.path,s.fileLineNumber=null===(o=this.currentFrame)||void 0===o?void 0:o.raw.line,this._setExtra(e,`${null!=t?t:""}`,s))}async start(e){const{configuration:t}=e,i={adapterID:t.type,request:"launch"===t.request?"launch":"attach",traceId:this._uid,remote:0,threads:new Map};if(m.isRemoteAttach(t)&&(i.remote=1),this.report(c.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"number",Object.assign({count:this.breakpoints.getBreakpoints().length},i)),e.configuration.__restart||!this.isExistedDebugSession(e))try{const t=this.reportTime(c.DEBUG_REPORT_NAME.DEBUG_SESSION_START_TIME,i);await this.fireWillStartDebugSession();const r=await this.resolveConfiguration(e);if(r.configuration.preLaunchTask){const e=s.Uri.parse(r.workspaceFolderUri),t=await this.taskService.getTask(e,r.configuration.preLaunchTask);if(t){const n=this.reportTime(c.DEBUG_REPORT_NAME.DEBUG_PRE_LAUNCH_TASK_TIME,i),o=await this.taskService.run(t);0!==o.exitCode&&this.messageService.error(`The preLaunchTask ${r.configuration.preLaunchTask} exitCode is ${o.exitCode}`),n(e.toString(),{exitCode:o.exitCode})}}const n=await this.debug.createDebugSession(r.configuration);return t(r.configuration.type,{adapterID:r.configuration.type,request:r.configuration.request,sessionId:n}),n?this.doStart(n,r,i):void this.messageService.error(`The debug session type "${r.configuration.type}" is not supported.`)}catch(e){if(c.DebugError.NotFound.is(e))return void this.messageService.error(`The debug session type "${e.data.type}" is not supported.`);throw this.messageService.error("There was an error starting the debug session, check the logs for more details."),e}else this.messageService.error(s.formatLocalize("debug.launch.existed",e.configuration.name))}async fireWillStartDebugSession(){await s.WaitUntilEvent.fire(this.onWillStartDebugSessionEmitter,{})}async resolveConfiguration(e){if(c.InternalDebugSessionOptions.is(e))return e;const{workspaceFolderUri:t,index:i,noDebug:r,parentSession:n,repl:o,compact:s}=e,a=await this.resolveDebugConfiguration(e.configuration,t);let l=await this.variableResolver.resolve(a,{});l=await this.resolveDebugConfigurationWithSubstitutedVariables(l,t);const u=l.name+t,d=this.configurationIds.has(u)?this.configurationIds.get(u)+1:0;return this.configurationIds.set(u,d),{id:d,configuration:l,workspaceFolderUri:t,index:i,noDebug:r,parentSession:n,repl:o,compact:s}}async resolveDebugConfiguration(e,t){return await this.fireWillResolveDebugConfiguration(e.type),this.debug.resolveDebugConfiguration(e,t)}async resolveDebugConfigurationWithSubstitutedVariables(e,t){return this.debug.resolveDebugConfigurationWithSubstitutedVariables(e,t)}async fireWillResolveDebugConfiguration(e){await s.WaitUntilEvent.fire(this.onWillResolveDebugConfigurationEmitter,{debugType:e})}async doStart(e,t,i){const r=this.sessionContributionRegistry.get(t.configuration.type),n=(r?r.debugSessionFactory():this.debugSessionFactory).get(e,t);this._sessions.set(e,n),this._extraMap.set(e,i),this.debugTypeKey.set(n.configuration.type),this.onDidCreateDebugSessionEmitter.fire(n);let s=o.DebugState.Inactive;return n.onDidChange((()=>{s!==n.state&&(s=n.state,s===o.DebugState.Stopped?(this.onDidStopDebugSessionEmitter.fire(n),this.debugStopped.set(!0)):this.debugStopped.set(!1))})),n.on("terminated",(e=>{const t=e.body&&e.body.restart;t?this.doRestart(n,t):n.terminate()})),n.on("exited",(()=>this.destroy(n.id))),n.start().then((()=>this.onDidStartDebugSessionEmitter.fire(n))),n.onDidCustomEvent((({event:e,body:t})=>this.onDidReceiveDebugSessionCustomEventEmitter.fire({event:e,body:t,session:n}))),this.updateCurrentSession(n),n}isExistedDebugSession(e){const{name:t}=e.configuration;for(const[,e]of this._sessions)if(e.configuration.name===t&&!e.terminated)return!0;return!1}async restart(e=this.currentSession){return e&&this.doRestart(e)}async doRestart(e,t){if(await e.restart())return e;await e.terminate(!0);const{options:i,configuration:r}=e;return r.__restart=t,this.start(i)}updateCurrentSession(e){this.currentSession=e||this.sessions[0]}get inDebugMode(){return this.state>o.DebugState.Inactive}get currentThread(){const e=this.currentSession;return e&&e.currentThread}get state(){const e=this.currentSession;return e?e.state:o.DebugState.Inactive}get currentFrame(){const{currentThread:e}=this;return e&&e.currentFrame}get topFrame(){const{currentThread:e}=this;return e&&e.topFrame}getSession(e){if(e)return this._sessions.get(e)}get sessions(){return Array.from(this._sessions.values()).filter((e=>e.state>o.DebugState.Inactive))}get currentSession(){return this._currentSession}set currentSession(e){if(this._currentSession===e)return;this.toDisposeOnCurrentSession.dispose();const t=this._currentSession;this._currentSession=e,this.onDidChangeActiveDebugSessionEmitter.fire({previous:t,current:e}),e&&(this.toDisposeOnCurrentSession.push(e.onDidChange((()=>{this.currentFrame===this.topFrame&&this.open(),this.fireDidChange(e)}))),this.toDisposeOnCurrentSession.push(e.onCurrentThreadChange((()=>{this.fireDidChange(e)})))),this.open(),this.fireDidChange(e)}open(){const{currentFrame:e}=this;e&&e.open()}async stopSession(e,t=!1){return e?t?e.disconnect():e.terminate():Promise.all(this.sessions.map((e=>t?e.disconnect():e.terminate())))}destroy(e){if(e){const t=this._sessions.get(e);t&&this.doDestroy(t)}else this._sessions.forEach((e=>this.doDestroy(e)))}doDestroy(e){this.debug.terminateDebugSession(e.id),this.remove(e.id),e.dispose(),this.onDidDestroyDebugSessionEmitter.fire(e)}remove(e){this._sessions.delete(e);const{currentSession:t}=this;t&&t.id===e&&this.updateCurrentSession(void 0),setTimeout((()=>{this._extraMap.delete(e)}))}};r.__decorate([n.Autowired(d.LabelService),r.__metadata("design:type",d.LabelService)],v.prototype,"labelProvider",void 0),r.__decorate([n.Autowired(s.IContextKeyService),r.__metadata("design:type",Object)],v.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(h.DebugSessionContributionRegistry),r.__metadata("design:type",Object)],v.prototype,"sessionContributionRegistry",void 0),r.__decorate([n.Autowired(h.DebugSessionFactory),r.__metadata("design:type",Object)],v.prototype,"debugSessionFactory",void 0),r.__decorate([n.Autowired(c.IDebugServer),r.__metadata("design:type",Object)],v.prototype,"debug",void 0),r.__decorate([n.Autowired(p.WorkbenchEditorService),r.__metadata("design:type",p.WorkbenchEditorService)],v.prototype,"workbenchEditorService",void 0),r.__decorate([n.Autowired(l.IMessageService),r.__metadata("design:type",Object)],v.prototype,"messageService",void 0),r.__decorate([n.Autowired(u.IVariableResolverService),r.__metadata("design:type",Object)],v.prototype,"variableResolver",void 0),r.__decorate([n.Autowired(a.BreakpointManager),r.__metadata("design:type",a.BreakpointManager)],v.prototype,"breakpoints",void 0),r.__decorate([n.Autowired(f.DebugModelManager),r.__metadata("design:type",f.DebugModelManager)],v.prototype,"modelManager",void 0),r.__decorate([n.Autowired(g.ITaskService),r.__metadata("design:type",Object)],v.prototype,"taskService",void 0),r.__decorate([n.Autowired(s.IReporterService),r.__metadata("design:type",Object)],v.prototype,"reporterService",void 0),v=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],v),t.DebugSessionManager=v},61853:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(91296),o=i(76414),s=i(41239),a=i(70088),c=i(76380),l=i(65686);var u;!function(e){e[e.Inactive=0]="Inactive",e[e.Initializing=1]="Initializing",e[e.Running=2]="Running",e[e.Stopped=3]="Stopped"}(u=t.DebugState||(t.DebugState={}));t.DebugSession=class{constructor(e,t,i,s,a,c,l,d,h,p,f){this.id=e,this.options=t,this.connection=i,this.terminalService=s,this.workbenchEditorService=a,this.breakpoints=c,this.modelManager=l,this.labelProvider=d,this.messages=h,this.fileSystem=p,this.sessionManager=f,this.onDidChangeEmitter=new r.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this._onDidChangeCallStack=new r.Emitter,this.onDidChangeCallStack=this._onDidChangeCallStack.event,this._onVariableChange=new r.Emitter,this.onVariableChange=this._onVariableChange.event,this._onCurrentThreadChange=new r.Emitter,this.onCurrentThreadChange=this._onCurrentThreadChange.event,this._onDidStop=new r.Emitter,this.onDidStop=this._onDidStop.event,this._onDidContinued=new r.Emitter,this.onDidContinued=this._onDidContinued.event,this._onDidThread=new r.Emitter,this.onDidThread=this._onDidThread.event,this._onRequest=new r.Emitter,this.onRequest=this._onRequest.event,this.toDispose=new r.DisposableCollection,this._capabilities={},this.updateDeffered=null,this.exitDeferred=new r.Deferred,this.cancellationMap=new Map,this.toDisposeOnCurrentThread=new r.DisposableCollection,this.initialized=!1,this.id2Breakpoint=new Map,this.settingBreakpoints=null,this._multipleThreadPaused=new Map,this.sources=new Map,this._threads=new Map,this.scheduleUpdateThreads=n((()=>this.updateThreads(void 0)),100),this.pendingThreads=Promise.resolve(),this.terminated=!1,this.connection.onRequest("runInTerminal",(e=>{this.runInTerminal(e)})),this.toDispose.pushAll([this.onDidChangeEmitter,this.connection,this.on("initialized",(()=>{this.configure()})),this.on("breakpoint",(({body:e})=>this.onUpdateBreakpoint(e))),this.on("continued",(async e=>{const{body:{allThreadsContinued:t,threadId:i}}=e;return this.handleCancellation(i),this.supportsThreadIdCorrespond?(i?this._multipleThreadPaused.delete(i):!1!==t&&this._multipleThreadPaused.clear(),await this.updateCurrentThread(),void this._onDidContinued.fire(e)):!1!==t?(this.clearThreads(),void this._onDidContinued.fire(e)):(i&&this.clearThread(i),void this._onDidContinued.fire(e))})),this.on("stopped",(async e=>{const{body:t}=e,{threadId:i}=t,n=this.sessionManager.reportTime(o.DEBUG_REPORT_NAME.DEBUG_STOPPED,{sessionId:this.id,threadId:i});if(!0===this.supportsThreadIdCorrespond){if(await this.collectPausedThread(t),t.threadId&&this._multipleThreadPaused.has(t.threadId)){const e=this._multipleThreadPaused.get(t.threadId);await this.updateCurrentThread(e),await this.updateCurrentThreadFramesOnFocus()}}else this.updateDeffered=new r.Deferred,await this.updateThreads(t),await this.updateCurrentThreadFramesOnFocus(),this.updateDeffered.resolve();n("stopped");const s=this.sessionManager.getExtra(this.id,i);i&&s&&s.action&&(s.action=void 0,this.sessionManager.setExtra(this.id,`${null!=i?i:""}`,s)),this._onDidStop.fire(e)})),this.on("thread",(e=>{const{body:{reason:t,threadId:i}}=e;this.supportsThreadIdCorrespond?this.state===u.Stopped&&this._onDidThread.fire(e):("started"===t?this.scheduleUpdateThreads():"exited"===t&&this.clearThread(i),this._onDidThread.fire(e))})),this.on("terminated",(()=>{this.terminated=!0})),this.on("exited",(e=>{this.exitDeferred.resolve(e)})),this.on("capabilities",(e=>this.updateCapabilities(e.body.capabilities))),this.breakpoints.onDidChangeBreakpoints((e=>this.updateBreakpoint(e))),this.breakpoints.onDidChangeExceptionsBreakpoints((e=>{this.breakpoints.breakpointsEnabled&&this.setExceptionBreakpoints(e)})),{dispose:()=>{this.breakpoints.clearAllStatus(this.id)}}])}fireDidChange(){this.onDidChangeEmitter.fire(void 0)}get capabilities(){return this._capabilities}get supportsThreadIdCorrespond(){return!!this.capabilities.supportsThreadIdCorrespond}get configuration(){return this.options.configuration}get parentSession(){return this.options.parentSession}get compact(){return!!this.options.compact}async start(){await this.workbenchEditorService.saveAll(),await this.initialize(),await this.launchOrAttach()}async runInTerminal({arguments:{title:e,cwd:t,args:i,env:r}}){return this.doRunInTerminal({name:e,cwd:t,env:r},i.join(" "))}async doRunInTerminal(e,t){const i=this.terminalService.terminals.find((t=>t.name===e.name&&t.isActive));let r;if(i)t&&this.terminalService.sendText(i.id,t),r=await this.terminalService.getProcessId(i.id);else{const i=await this.terminalService.createTerminal(e);i.show(),t&&(this.terminalService.sendText(i.id,t),r=await this.terminalService.getProcessId(i.id))}return{processId:r}}async initialize(){const e=await this.connection.sendRequest("initialize",{clientID:"KatiTian",clientName:"KatiTian IDE",adapterID:this.configuration.type,locale:"en-US",linesStartAt1:!0,columnsStartAt1:!0,pathFormat:"path",supportsVariableType:!1,supportsVariablePaging:!1,supportsRunInTerminalRequest:!0},this.configuration);this.updateCapabilities(e.body||{})}async launchOrAttach(){if(this.parentSession&&this.parentSession.state===u.Inactive)throw r.canceled();try{"attach"===this.configuration.request?await this.sendRequest("attach",this.configuration):await this.sendRequest("launch",this.configuration)}catch(e){throw this.fireExited(e),this.messages.error(e.message||"Debug session initialization failed. See console for details."),e&&e.message}}async configure(){await this.initBreakpoints(),this.breakpoints.setExceptionBreakpoints(this.capabilities.exceptionBreakpointFilters||[]),this.capabilities.supportsConfigurationDoneRequest&&await this.sendRequest("configurationDone",{}),this.initialized=!0,this.supportsThreadIdCorrespond||await this.updateThreads(void 0)}async setExceptionBreakpoints(e){return this.sendRequest("setExceptionBreakpoints",e)}async onUpdateBreakpoint(e){let t;this.settingBreakpoints&&await this.settingBreakpoints.promise;try{const i=e.breakpoint;switch(e.reason){case"new":if(i.source&&"number"==typeof i.line&&i.id&&!this.id2Breakpoint.has(i.id)){const e=s.DebugSource.toUri(i.source),t=c.DebugBreakpoint.create(e,{line:i.line,column:i.column});t.status.set(this.id,i),this.breakpoints.addBreakpoint(t)}break;case"removed":i.id&&(t=this.id2Breakpoint.get(i.id),t&&this.breakpoints.delBreakpoint(t));break;case"changed":i.id&&(t=this.id2Breakpoint.get(i.id),t&&(t.status.set(this.id,i),this.breakpoints.updateBreakpoint(t)))}}finally{}}async setBreakpoints(e){const t=[];for(const i of e){const e=await this.toSource(i),r=this.breakpoints.getBreakpoints(i).filter((e=>this.breakpoints.breakpointsEnabled&&e.enabled));t.push(this.sendRequest("setBreakpoints",{source:e.raw,sourceModified:!1,lines:r.map((e=>e.raw.line)),breakpoints:r.map((e=>e.raw))}).then((e=>(e.body.breakpoints.forEach(((e,t)=>{e.id&&this.id2Breakpoint.set(e.id,r[t]),r[t].status.set(this.id,e)})),this.breakpoints.updateBreakpoints(r,!0),Promise.resolve()))).catch((e=>{if(!(e instanceof Error)){const t="Breakpoint not valid for current debug session",i=e.message?`${e.message}`:t;r.forEach((e=>{e.status.set(this.id,{verified:!1,message:i}),this.breakpoints.updateBreakpoint(e,!0)}))}})))}return await Promise.all(t)}async updateBreakpoint(e){const{affected:t,statusUpdated:i}=e;if(!i)return await this.setBreakpoints(t)}async initBreakpoints(){this.settingBreakpoints=new r.Deferred,this.id2Breakpoint.clear(),this.configuration.noDebug||await this.setBreakpoints(this.breakpoints.affected.map((e=>r.URI.parse(e)))),this.settingBreakpoints.resolve(),this.settingBreakpoints=null}get currentThread(){return this._currentThread}set currentThread(e){this.toDisposeOnCurrentThread.dispose(),this._currentThread=e,e&&this.toDisposeOnCurrentThread.push(e.onDidChanged((()=>this.fireDidChange())))}get multipleThreadPaused(){return this._multipleThreadPaused}hasInMultipleThreadPaused(e){return this._multipleThreadPaused.has(e)}clearThreads(){var e;const t=this.sessionManager.reportTime(o.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:null===(e=this.currentThread)||void 0===e?void 0:e.id,threadAmount:this.threadCount});this._threads.forEach((e=>{e.clear()})),this._onDidChangeCallStack.fire(),this.collocationThread(),t("clearThreads")}clearThread(e){const t=this.sessionManager.reportTime(o.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:e,threadAmount:this.threadCount}),i=this._threads.get(e);i&&(i.clear(),this._onDidChangeCallStack.fire()),this.collocationThread(),t("clearThread")}get state(){if(this.connection.disposed)return u.Inactive;if(!this.initialized)return u.Initializing;const e=this.currentThread;return e?e.stopped?u.Stopped:u.Running:this.supportsThreadIdCorrespond?u.Running:this.stoppedThreads.next().value?u.Stopped:u.Running}get currentFrame(){return this.currentThread&&this.currentThread.currentFrame}async getScopes(e){const{currentFrame:t}=this;return t?t.getScopes(e):[]}get label(){return o.InternalDebugSessionOptions.is(this.options)&&this.options.id?this.configuration.name+" ("+(this.options.id+1)+")":this.configuration.name}get visible(){return this.state>u.Inactive}getSource(e){const t=s.DebugSource.toUri(e).toString(),i=this.sources.get(t)||new s.DebugSource(this,this.labelProvider,this.modelManager,this.workbenchEditorService,this.fileSystem);return i.update({raw:e}),this.sources.set(t,i),i}getSourceForUri(e){return this.sources.get(e.toString())}async toSource(e){const t=this.getSourceForUri(e);return t||this.getSource(await this.toDebugSource(e))}async toDebugSource(e){if(e.scheme===s.DebugSource.SCHEME)return{name:e.path.toString(),sourceReference:Number(e.query)};const t=e.displayName;let i=e.toString();return"file"===e.scheme&&(i=await this.fileSystem.getFsPath(i)),{name:t,path:i,adapterData:void 0,sourceReference:void 0}}get threads(){return Array.from(this._threads.values())}get threadCount(){return this._threads.size}*getThreads(e){for(const t of this.threads)e(t)&&(yield t)}get runningThreads(){return this.getThreads((e=>!e.stopped))}get stoppedThreads(){return this.getThreads((e=>e.stopped))}async rawFetchThreads(e){const t=void 0===e?null:{threadId:e},i=await this.sendRequest("threads",t);return i&&i.body&&i.body.threads&&Array.isArray(i.body.threads)?Promise.resolve(i.body.threads):Promise.resolve([])}async fetchThreads(){const e=await this.rawFetchThreads(),t=this._threads,i=[];for(const r of e){const e=r.id,n=t.get(e)||new a.DebugThread(this);i.push(n),n.update({raw:r})}return Promise.resolve(i)}updateThreads(e){return this.pendingThreads=this.pendingThreads.then((async()=>{try{const t=await this.rawFetchThreads();this.doUpdateThreads(t,e)}catch(e){}}))}doUpdateThreads(e,t){const i=this.sessionManager.reportTime(o.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.id,threadId:null==t?void 0:t.threadId,threadAmount:e.length}),r=[];e.forEach((e=>{if(r.push(e.id),this._threads.has(e.id)){if(e.name){const t=this._threads.get(e.id);t&&(t.raw.name=e.name)}}else{const t=new a.DebugThread(this),i={raw:e};t.update(i),this._threads.set(e.id,t)}})),this._threads.forEach((e=>{var i;const{raw:{id:n}}=e;-1===r.indexOf(n)&&this._threads.delete(n),t&&(t.allThreadsStopped||t.threadId===n)&&(null===(i=this._threads.get(n))||void 0===i||i.update({stoppedDetails:t}))})),this.collocationThread(t),i("doUpdateThreads")}collocationThread(e){var t;const{currentThread:i}=this;let r=i&&i.raw.id;e&&!e.preserveFocusHint&&e.threadId&&(r=e.threadId),this.currentThread="number"==typeof r&&this._threads.get(r)||this._threads.values().next().value,(null===(t=this.currentThread)||void 0===t?void 0:t.raw.id)!==r&&this.fireDidChange()}async updateCurrentThread(e){e?(this.currentThread=e,this._onCurrentThreadChange.fire(this.currentThread)):(this.currentThread=void 0,this._onCurrentThreadChange.fire(void 0))}async collectPausedThread(e){const t=await this.rawFetchThreads(null==e?void 0:e.threadId);if(0===t.length)return new Map;const i=e.threadId&&this._multipleThreadPaused.has(e.threadId)?this._multipleThreadPaused.get(e.threadId):new a.DebugThread(this),r={raw:t[0]};return e&&(e.allThreadsStopped||e.threadId===t[0].id)&&(r.stoppedDetails=e),i&&(i.update(r),await this.rawFetchFrames(i),this._multipleThreadPaused.set(i.raw.id,i)),this._multipleThreadPaused}async updateCurrentThreadFramesOnFocus(){await this.rawFetchFrames(this.currentThread),this._onDidChangeCallStack.fire();const e=this.workbenchEditorService.currentEditor;if(e&&this.currentThread&&!this.currentFrame){const t=e.monacoEditor.getModel();if(t){const e=r.URI.parse(t.uri.toString()),i=this.currentThread.frames.filter((t=>{var i;return(null===(i=t.source)||void 0===i?void 0:i.uri.toString())===e.toString()}));i&&(this.currentThread.currentFrame=i[0])}}}async rawFetchFrames(e){e&&!e.frameCount&&(this.capabilities.supportsDelayedStackTraceLoading?(await e.rawFetchFrames(1),await e.rawFetchFrames(19)):await e.rawFetchFrames())}async terminate(e){!this.terminated&&this.capabilities.supportsTerminateRequest&&"launch"===this.configuration.request?(this.terminated=!0,this.sendRequest("terminate",{restart:e}),await this.exited(1e3)||await this.disconnect(e)):await this.disconnect(e)}async disconnect(e){try{this.sendRequest("disconnect",{restart:e})}catch(e){return void this.fireExited(e)}await this.exited(500)||this.fireExited(new Error("timeout after 500 ms"))}updateCapabilities(e){Object.assign(this._capabilities,e)}fireExited(e){this.connection.fire("exited",{reason:e})}exited(e){return Promise.race([this.exitDeferred.promise.then((()=>!0),(()=>!1)),new Promise((t=>{setTimeout(t,e,!1)}))])}async restart(){return!!this.capabilities.supportsRestartRequest&&(this.terminated=!1,await this.sendRequest("restart",{}),!0)}dispose(){this.toDispose.dispose()}async evaluate(e,t){var i;this.updateDeffered&&await(null===(i=this.updateDeffered)||void 0===i?void 0:i.promise);const r=this.currentFrame&&this.currentFrame.raw.id;return(await this.sendRequest("evaluate",{expression:e,frameId:r,context:t})).body}async goto(e){if(this.capabilities.supportsGotoTargetsRequest){return await this.sendRequest("goto",e)}}async setVariableValue(e){if(this.capabilities.supportsSetVariable){const t=await this.sendRequest("setVariable",e);return this._onVariableChange.fire(),t}}async breakpointLocations(e,t){var i;const r=await this.toSource(e),n=((null===(i=(await this.sendRequest("breakpointLocations",{source:r.raw,line:t})).body)||void 0===i?void 0:i.breakpoints)||[]).map((e=>({lineNumber:e.line,column:e.column||1})));return Object.values(n.reduce(((e,t)=>Object.assign(Object.assign({},e),{[`${t.lineNumber}:${t.column}`]:t})),{}))}async sendRequest(e,t,i){var r,n,o;if(!this._capabilities.supportsTerminateRequest&&"terminate"===e||!this._capabilities.supportsCompletionsRequest&&"completions"===e||!this._capabilities.supportsTerminateThreadsRequest&&"terminateThreads"===e)throw new Error(`debug: ${e} not supported`);let s;["continue","next","stepIn","stepOut","threads"].some((t=>e===t))&&this.handleCancellation(null===(r=this.currentThread)||void 0===r?void 0:r.raw.id),["stackTrace","scopes","variables","completions","threads"].some((t=>e===t))&&(s=(null===(n=this.currentThread)||void 0===n?void 0:n.raw.id)?this.getNewCancellationToken(null===(o=this.currentThread)||void 0===o?void 0:o.raw.id,i):void 0);try{return await this.connection.sendRequest(e,t,this.configuration,s)}finally{this._onRequest.fire(e)}}async takeCommand(e){return new Promise((t=>{const i=this.onRequest((r=>{r===e&&(i.dispose(),t())}))}))}sendCustomRequest(e,t){return this.connection.sendCustomRequest(e,t)}on(e,t){return this.connection.on(e,t)}get onDidCustomEvent(){return this.connection.onDidCustomEvent}hasSeparateRepl(){return!this.parentSession||"mergeWithParent"!==this.options.repl}reportTime(e,t){return this.sessionManager.reportTime(e,t)}getNewCancellationToken(e,t){const i=new l.CancellationTokenSource(t),r=this.cancellationMap.get(e)||[];return r.push(i),this.cancellationMap.set(e,r),i.token}cancelAllRequests(){this.cancellationMap.forEach((e=>e.forEach((e=>e.cancel())))),this.cancellationMap.clear()}handleCancellation(e){if(e){const t=this.cancellationMap.get(e);this.cancellationMap.delete(e),t&&t.forEach((e=>e.cancel()))}else this.cancelAllRequests()}getDebugProtocolBreakpoint(e){const t=this.breakpoints.getBreakpoints().find((t=>t.id===e));if(t){const e=t.status.get(this.id);return{id:null==e?void 0:e.id,verified:!!(null==e?void 0:e.verified),message:null==e?void 0:e.message,source:null==e?void 0:e.source,line:null==e?void 0:e.line,column:null==e?void 0:e.column,endLine:null==e?void 0:e.endLine,endColumn:null==e?void 0:e.endColumn,instructionReference:null==e?void 0:e.instructionReference,offset:null==e?void 0:e.offset}}}}},82627:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.isExtensionHostDebugging=function(e){return e.type&&r.equalsIgnoreCase("vslsShare"===e.type?e.adapterProxy.configuration.type:e.type,"extensionhost")},t.isRemoteAttach=function(e){if("attach"===e.request){const t={node:"address",java:"hostName",go:"host",cppdbg:"miDebuggerServerAddress",python:"host"},{type:i}=e,r=e[t[i]];return!r||!["localhost","127.0.0.1","::1"].includes(r)}return!1}},23655:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(65686),s=i(19745),a=i(76414),c=i(62619),l=i(65281);!function(e){e[e.exception=0]="exception",e[e.debugger=1]="debugger"}(t.TopStackType||(t.TopStackType={}));let u=r=class extends o.Disposable{constructor(){super()}get position(){return this._position}get values(){var e;return null===(e=this.zone)||void 0===e?void 0:e.values}get breakpointType(){var e;return null===(e=this.zone)||void 0===e?void 0:e.breakpointType}show(e,t,i="condition"){this.dispose(),this._position=e,this.addDispose(this.zone=new c.DebugBreakpointZoneWidget(this.editor,Object.assign({},t),i)),this.addDispose(this.zone.onDidChangeBreakpoint((({context:e,value:i})=>{t&&(t[e]=i)}))),this.addDispose(this.zone.onFocus((()=>{this.breakpointWidgetInputFocus.set(!0)}))),this.addDispose(this.zone.onBlur((()=>{this.breakpointWidgetInputFocus.set(!1)}))),this.addDispose(this.zone.onDispose((()=>{this._position=void 0,this.breakpointWidgetInputFocus.set(!1)}))),this.zone.show(o.positionToRange(e),r.LINE_HEIGHT_NUMBER)}hide(){var e;null===(e=this.zone)||void 0===e||e.dispose()}};u.LINE_HEIGHT_NUMBER=2,n.__decorate([s.Autowired(a.DebugEditor),n.__metadata("design:type",Object)],u.prototype,"editor",void 0),n.__decorate([s.Autowired(l.BreakpointWidgetInputFocus),n.__metadata("design:type",Object)],u.prototype,"breakpointWidgetInputFocus",void 0),u=r=n.__decorate([s.Injectable(),n.__metadata("design:paramtypes",[])],u),t.DebugBreakpointWidget=u},62619:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(27196),o=i(98913),s=i(68892),a=i(88774),c=i(65686);class l extends o.ZoneWidget{constructor(e,t={},i="condition"){super(e),this._onDidChangeBreakpoint=new c.Emitter,this.onDidChangeBreakpoint=this._onDidChangeBreakpoint.event,this._onFocus=new c.Emitter,this.onFocus=this._onFocus.event,this._onBlur=new c.Emitter,this.onBlur=this._onBlur.event,this.inputFocusHandler=()=>{this._onFocus.fire()},this.inputBlurHandler=()=>{this._onBlur.fire()},this.selectContextHandler=e=>{this.textInput&&(this._values[this.context]=this.textInput.value||void 0),this.context=e,this.render()},this._values=t,this.context=i,this._wrapper=document.createElement("div"),this._selection=document.createElement("div"),this._input=document.createElement("div"),this._container.appendChild(this._wrapper),this._wrapper.appendChild(this._selection),this._wrapper.appendChild(this._input),n.render(r.createElement(a.Input,{placeholder:this.placeholder,autoFocus:!0,defaultValue:this._values[this.context],ref:e=>{this.textInput=e},onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler}),this._input)}get values(){return Object.assign(Object.assign({},this._values),{[this.context]:this.textInput&&this.textInput.value||void 0})}get breakpointType(){return this.context}renderOption(e,t){return r.createElement("option",{value:e},t)}applyClass(){this._wrapper.className=s.debug_breakpoint_wrapper,this._selection.className=s.debug_breakpoint_selected,this._input.className=s.debug_breakpoint_input}applyStyle(){this.textInput&&(this.textInput.value=this._values[this.context]||"",this.textInput.setAttribute("placeholder",this.placeholder),this.textInput.focus()),n.render(r.createElement(a.Select,{value:this.context,selectedRenderer:()=>r.createElement("span",{className:"kt-select-option"},this.getContextToLocalize(this.context)),onChange:this.selectContextHandler},this.renderOption("condition",this.getContextToLocalize("condition")),this.renderOption("hitCondition",this.getContextToLocalize("hitCondition")),this.renderOption("logMessage",this.getContextToLocalize("logMessage"))),this._selection)}getContextToLocalize(e){return"logMessage"===e?c.localize("debug.expression.logMessage"):"hitCondition"===e?c.localize("debug.expression.hitCondition"):c.localize("debug.expression.condition")}get placeholder(){return"logMessage"===this.context?c.localize("debug.expression.log.placeholder"):"hitCondition"===this.context?c.localize("debug.expression.hit.placeholder"):c.localize("debug.expression.condition.placeholder")}}t.DebugBreakpointZoneWidget=l},28768:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(19745),s=i(87592),a=i(65686);let c=class{async get(e,t){let i,r;if(this.evaluatableExpressionService.hasEvaluatableExpressProvider(e)){const o=new a.CancellationTokenSource,s=this.evaluatableExpressionService.getSupportedEvaluatableExpressionProvider(e),c=new n.Position(t.startLineNumber,t.startColumn),l=s.map((t=>Promise.resolve(t.provideEvaluatableExpression(e,c,o.token)).then((e=>e),(()=>{})))),u=await Promise.all(l).then(a.coalesce);if(u.length>0&&(i=u[0].expression,r=u[0].range,!i)){i=e.getLineContent(c.lineNumber).substring(r.startColumn-1,r.endColumn-1)}}else{const r=e.getLineContent(t.startLineNumber),{start:n,end:o}=this.getExactExpressionStartAndEnd(r,t.startColumn,t.endColumn);i=r.substring(n-1,o)}return i}getExactExpressionStartAndEnd(e,t,i){let r,n=0;const o=/([^()\[\]{}<>\s+\-/%~#^;=|,`!]|\->)+/g;let s=null;for(;s=o.exec(e);){const e=s.index+1,o=e+s[0].length;if(e<=t&&o>=i){r=s[0],n=e;break}}if(r){const e=/\w+/g;let t=null;for(;t=e.exec(r);){if(t.index+1+n+t[0].length>=i)break}t&&(r=r.substring(0,e.lastIndex))}return r?{start:n,end:n+r.length-1}:{start:0,end:0}}};r.__decorate([o.Autowired(s.IEvaluatableExpressionService),r.__metadata("design:type",Object)],c.prototype,"evaluatableExpressionService",void 0),c=r.__decorate([o.Injectable()],c),t.DebugExpressionProvider=c},89062:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(88774),s=i(19745),a=i(34865),c=i(30497);let l=r=class extends o.TreeModel{constructor(e){super(),this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),this.onWillUpdateEmitter=new a.Emitter,this.init(e)}get onWillUpdate(){return this.onWillUpdateEmitter.event}init(e){this.root=e,this.root.watcher.on(o.TreeNodeEvent.BranchDidUpdate,(()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{await this.onWillUpdateEmitter.fireAndAwait(),this.dispatchChange()}))}))}};l.DEFAULT_FLUSH_DELAY=100,l=r=n.__decorate([s.Injectable({multiple:!0}),n.__param(0,s.Optional()),n.__metadata("design:paramtypes",[c.ExpressionContainer])],l),t.DebugHoverModel=l},98742:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(52215),o=i(30497),s=i(19745),a=i(76414),c=i(34865);let l=class{constructor(){this.onDidChangeEmitter=new c.Emitter,this.onDidChange=this.onDidChangeEmitter.event}dispose(){this._expression=void 0}get expression(){return this._expression}async evaluate(e){const t=await this.doEvaluate(e);return this._expression=t,this.onDidChangeEmitter.fire(t),t}async doEvaluate(e){const{currentSession:t}=this.sessions;if(t){if(t.capabilities.supportsEvaluateForHovers){const i=new o.DebugHoverVariableRoot(e,t);return await i.evaluate("hover"),i.available&&i||void 0}return this.findVariable(e.split(".").map((e=>e.trim())).filter((e=>!!e)))}}async findVariable(e){const{currentFrame:t}=this.sessions;if(!t)return;let i;const r=await t.getScopes();for(const t of r){const r=await this.doFindVariable(t,e);if(i){if(r&&r.value!==i.value)return}else i=r}return i}async doFindVariable(e,t){await e.ensureLoaded();const i=e.children,r=[];if(i){for(const e of i)(e instanceof o.DebugVariableContainer||e instanceof o.DebugVariable)&&e.name===t[0]&&r.push(e);if(1===r.length)return 1===t.length?r[0]:this.doFindVariable(r[0],t.slice(1))}}};r.__decorate([s.Autowired(a.IDebugSessionManager),r.__metadata("design:type",n.DebugSessionManager)],l.prototype,"sessions",void 0),l=r.__decorate([s.Injectable()],l),t.DebugHoverSource=l},19140:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(89062),l=i(35463),u=i(52258),d=i(30497),h=i(98742),p=i(36271);let f=r=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new s.Decoration(p.mod_selected),this.focusedDecoration=new s.Decoration(p.mod_focused),this.loadingDecoration=new s.Decoration(p.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new a.Emitter,this.onDidUpdateTreeModelOrVariableEmitter=new a.Emitter,this.disposableCollection=new a.DisposableCollection,this.activeNodeDecoration=(e,t=!0)=>{if(this.preContextMenuFocusedNode&&(this.focusedDecoration.removeTarget(this.preContextMenuFocusedNode),this.selectedDecoration.removeTarget(this.preContextMenuFocusedNode),this.preContextMenuFocusedNode=null),e){if(this.selectedNodes.length>0)for(const e of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(e);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes=[e],t&&this.treeModel.dispatchChange()}},this.activeNodeFocusedDecoration=(e,t=!1)=>{this.focusedNode!==e&&(t?(this.preContextMenuFocusedNode?(this.focusedDecoration.removeTarget(this.preContextMenuFocusedNode),this.selectedDecoration.removeTarget(this.preContextMenuFocusedNode)):this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.preContextMenuFocusedNode=e):this.focusedNode&&(this.preContextMenuFocusedNode=null,this.focusedDecoration.removeTarget(this.focusedNode)),e&&(this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes.push(e))),this.treeModel.dispatchChange()},this.enactiveNodeDecoration=()=>{this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this.treeModel.dispatchChange()),this._focusedNode=void 0},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleTwistierClick=e=>{d.ExpressionContainer.is(e)?(this.activeNodeDecoration(e,!1),this.toggleDirectory(e)):this.activeNodeDecoration(e)},this.toggleDirectory=async e=>{e.expanded?this.treeHandle.collapseNode(e):this.treeHandle.expandNode(e)},this.flushEventQueue=()=>{let e;if(!this._changeEventDispatchQueue||0===this._changeEventDispatchQueue.length)return;this._changeEventDispatchQueue.sort(((e,t)=>l.Path.pathDepth(e)-l.Path.pathDepth(t)));const t=[this._changeEventDispatchQueue[0]];for(const e of this._changeEventDispatchQueue)t.some((t=>0===e.indexOf(t)))||t.push(e);return e=u(t.map((e=>async()=>{var t;const i=null===(t=this.treeModel.root)||void 0===t?void 0:t.watchEvents.get(e);return i&&"function"==typeof i.callback&&await i.callback({type:s.WatchEvent.Changed,path:e}),null}))),this._changeEventDispatchQueue=[],e},this.debugHoverSource.onDidChange((async e=>{e instanceof d.DebugVariable?(this.dispose(),this.onDidUpdateTreeModelOrVariableEmitter.fire({variable:e})):(await this.initTreeModel(e),this.onDidUpdateTreeModelOrVariableEmitter.fire({treeModel:this.treeModel}))}))}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}get onDidUpdateTreeModelOrVariable(){return this.onDidUpdateTreeModelOrVariableEmitter.event}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugHoverTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._treeModel}get whenReady(){return this._whenReady}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenTreeViewChange(){var e,t;this.dispose(),this.disposableCollection.push(null===(e=this.treeModel)||void 0===e?void 0:e.root.watcher.on(s.TreeNodeEvent.WillResolveChildren,(e=>{this.loadingDecoration.addTarget(e)}))),this.disposableCollection.push(null===(t=this.treeModel)||void 0===t?void 0:t.root.watcher.on(s.TreeNodeEvent.DidResolveChildren,(e=>{this.loadingDecoration.removeTarget(e)}))),this.disposableCollection.push(this.treeModel.onWillUpdate((()=>{var e;if(0!==this.selectedNodes.length){const t=null===(e=this.treeModel)||void 0===e?void 0:e.root.getTreeNodeByPath(this.selectedNodes[0].path);this.selectedDecoration.addTarget(t)}})))}async initTreeModel(e){if(e)return this._treeModel=this.injector.get(c.DebugHoverModel,[e]),this.initDecorations(e),this.listenTreeViewChange(),this._treeModel}initDecorations(e){this._decorations=new s.DecorationsManager(e),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration))}handleTreeHandler(e){this._debugHoverTreeHandle=e}async refresh(e=this.treeModel.root){!d.ExpressionContainer.is(e)&&e.parent&&(e=e.parent),this.queueChangeEvent(e.path,(()=>{this.onDidRefreshedEmitter.fire()}))}queueChangeEvent(e,t){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new a.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout((async()=>{var e;await this.flushEventQueue(),null===(e=this.flushEventQueueDeferred)||void 0===e||e.resolve(),this.flushEventQueueDeferred=null,t()}),r.DEFAULT_FLUSH_FILE_EVENT_DELAY)),-1===this._changeEventDispatchQueue.indexOf(e)&&this._changeEventDispatchQueue.push(e)}};f.DEFAULT_FLUSH_FILE_EVENT_DELAY=100,n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([o.Autowired(h.DebugHoverSource),n.__metadata("design:type",h.DebugHoverSource)],f.prototype,"debugHoverSource",void 0),f=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],f),t.DebugHoverTreeModelService=f},94499:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(81924),s=i(63804),a=i(27196),c=i(19745),l=i(34865),u=i(52215),d=i(76414),h=i(28768),p=i(98742),f=i(56391),g=i(91296);let m=r=class{constructor(){this.toDispose=new l.DisposableCollection,this.domNode=document.createElement("div"),this.doSchedule=g((e=>e()),300),this.init()}init(){this.toDispose.pushAll([l.Disposable.create((()=>this.editor.removeContentWidget(this))),l.Disposable.create((()=>this.hide())),this.sessions.onDidChange((()=>{this.isEditorFrame()||this.hide()}))])}handleWindowWheel(e){e.stopPropagation()}getId(){return r.ID}getDomNode(){return this.domNode}getPosition(){const e=this.options&&this.options.selection.getStartPosition(),t=e&&this.editor.getModel().getWordAtPosition(e);return e&&t?{position:new o.Position(e.lineNumber,t.startColumn),preference:[o.editor.ContentWidgetPositionPreference.BELOW,o.editor.ContentWidgetPositionPreference.ABOVE]}:void 0}dispose(){this.toDispose.dispose()}show(e){this.schedule((()=>this.doShow(e)),e&&e.immediate)}hide(e){this.schedule((()=>this.doHide()),e&&e.immediate)}schedule(e,t=!0){t?(this.doSchedule.cancel(),e()):this.doSchedule(e)}isEditorFrame(){const{currentFrame:e}=this.sessions;return!!e&&!!e.source&&!!this.editor.getModel()&&this.editor.getModel().uri.toString()===e.source.uri.toString()}doHide(){window.removeEventListener("mousewheel",this.handleWindowWheel,!0),this.domNode.contains(document.activeElement)&&this.editor.focus(),this.hoverSource.dispose(),this.options=void 0,this.editor.removeContentWidget(this)}layoutContentWidget(){this.editor.layoutContentWidget(this)}async doShow(e=this.options){if(!this.isEditorFrame())return;if(!e)return;if(this.options&&this.options.selection.equalsRange(e.selection))return;this.options=e;const t=await this.expressionProvider.get(this.editor.getModel(),e.selection);t&&await this.hoverSource.evaluate(t)&&(this.reporterService.point(null===d.DEBUG_REPORT_NAME||void 0===d.DEBUG_REPORT_NAME?void 0:d.DEBUG_REPORT_NAME.DEBUG_VARIABLES,"hover",t),this.editor.addContentWidget(this),window.addEventListener("mousewheel",this.handleWindowWheel,!0),a.render(s.createElement(l.ConfigProvider,{value:this.configContext},s.createElement(f.DebugHoverView,null)),this.getDomNode(),(()=>{this.layoutContentWidget()})))}};m.ID="debug-hover-widget",n.__decorate([c.Autowired(d.DebugEditor),n.__metadata("design:type",Object)],m.prototype,"editor",void 0),n.__decorate([c.Autowired(d.IDebugSessionManager),n.__metadata("design:type",u.DebugSessionManager)],m.prototype,"sessions",void 0),n.__decorate([c.Autowired(h.DebugExpressionProvider),n.__metadata("design:type",h.DebugExpressionProvider)],m.prototype,"expressionProvider",void 0),n.__decorate([c.Autowired(p.DebugHoverSource),n.__metadata("design:type",p.DebugHoverSource)],m.prototype,"hoverSource",void 0),n.__decorate([c.Autowired(l.AppConfig),n.__metadata("design:type",Object)],m.prototype,"configContext",void 0),n.__decorate([c.Autowired(l.IReporterService),n.__metadata("design:type",Object)],m.prototype,"reporterService",void 0),m=r=n.__decorate([c.Injectable(),n.__metadata("design:paramtypes",[])],m),t.DebugHoverWidget=m},56391:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(32834),s=i(39180),a=i(94184),c=i(19140),l=i(88774),u=i(30497),d=i(77370);t.DebugHoverView=o.observer((()=>{const e=n.useInjectable(c.DebugHoverTreeModelService),[t,i]=r.useState({}),[o,h]=r.useState(250),p=r.createRef();r.useEffect((()=>(e.onDidUpdateTreeModelOrVariable((async e=>{const{treeModel:t,variable:r}=e;t&&await t.root.ensureLoaded(),i({treeModel:t,variable:r})})),f(),()=>{e.removeNodeDecoration()})),[]),r.useEffect((()=>{let e;return h(250),t.treeModel&&(e=t.treeModel.root.watcher.on(l.TreeNodeEvent.DidChangeExpansionState,(e=>{var i;const r=Math.max(250,22*~~(null===(i=t.treeModel)||void 0===i?void 0:i.root.branchSize));h(Math.min(500,r))}))),()=>{null==e||e.dispose()}}),[t.treeModel]);const f=async()=>{e.treeModel&&(await e.treeModel.root.ensureLoaded(),i({treeModel:e.treeModel}))},g=i=>{e.handleTreeHandler(Object.assign(Object.assign({},i),{getModel:()=>null==t?void 0:t.treeModel,hasDirectFocus:()=>p.current===document.activeElement}))},m=(t,i)=>{t.stopPropagation();const{handleTwistierClick:r}=e;i&&r(i)},v=!!t.treeModel&&!!t.treeModel.root.variablesReference;return r.createElement("div",{className:s.debug_hover},t.treeModel?r.createElement("div",{className:a(s.debug_hover_title,v&&s.has_complex_value),title:t.treeModel.root.name},t.treeModel.root.name):t.variable?r.createElement("div",{className:a(s.debug_hover_title,v&&s.has_complex_value),title:t.variable.name},t.variable.value):r.createElement("div",{className:s.debug_hover_title},u.DebugHoverVariableRoot.NOT_AVAILABLE),v?r.createElement("div",{className:s.debug_hover_content,tabIndex:-1,ref:p},r.createElement(l.RecycleTree,{height:o,itemHeight:d.DEBUG_VARIABLE_TREE_NODE_HEIGHT,onReady:g,model:t.treeModel,placeholder:()=>r.createElement("span",null),overflow:"auto"},(t=>{const i=e.decorations.getDecorations(t.item);return r.createElement(d.DebugVariableRenderedNode,{item:t.item,itemType:t.itemType,decorations:i,onClick:m,onTwistierClick:m,defaultLeftPadding:0,leftPadding:4})}))):null)}))},43743:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(84859),a=i(76414),c=i(76380),l=i(16297);var u;!function(e){e.down="Down",e.move="Move",e.leave="Leave",e.contextMenu="contextMenu"}(u=t.DebugModelSupportedEventType||(t.DebugModelSupportedEventType={}));let d=class extends n.Disposable{constructor(){super(),this.toDispose=new n.DisposableCollection,this._onMouseDown=new n.Emitter,this._onMouseMove=new n.Emitter,this._onMouseLeave=new n.Emitter,this._onMouseUp=new n.Emitter,this.onMouseDown=this._onMouseDown,this.onMouseMove=this._onMouseMove,this.onMouseLeave=this._onMouseLeave,this.onMouseUp=this._onMouseUp,this._onModelChanged=new n.Emitter,this.onModelChanged=this._onModelChanged.event,this.models=new Map}dispose(){for(const e of this.models.values())this.toDispose.pushAll(e);this.toDispose.dispose(),this.models.clear()}init(){this.editorCollection.onCodeEditorCreate((e=>this.push(e))),this.breakpointManager.onDidChangeBreakpoints((e=>{const{currentEditor:t}=this.editorService,i=t&&t.currentUri;i&&this.render(i),this.closeBreakpointIfAffected(e)}))}get model(){const{currentEditor:e}=this.editorService,t=e&&e.currentUri;if(t){const e=this.models.get(t.toString());return e&&e[0]}}closeBreakpointIfAffected({affected:e,removed:t}){e.forEach((e=>{const i=this.models.get(e.toString());if(i)for(const e of i){const i=e.breakpointWidget.position;if(!i)return;for(const r of t)r.raw.line===i.lineNumber&&e.breakpointWidget.dispose()}}))}render(e){const t=this.models.get(e.toString());if(t)for(const e of t)e.render()}push(e){const t=e.monacoEditor;e.onRefOpen((e=>{const i=e.instance.uri.toString(),r=this.models.get(i)||[];let n=!1;if(r.length>0)for(const e of r)if(e.editor._id===t._id){e.render(),n=!0;break}if(!n){const n=e.instance.getMonacoModel(),o=this.debugModelFactory(t);r.push(o),this.models.set(i,r),n.onWillDispose((()=>{o.dispose(),this.models.delete(i)}))}}));const i=(e,i)=>{const r=t.getModel();if(!r)throw new Error("Not find model");this.handleMouseEvent(new n.URI(r.uri.toString()),e,i,t)};this.toDispose.push(t.onMouseMove((e=>i(u.move,e)))),this.toDispose.push(t.onMouseDown((e=>i(u.down,e)))),this.toDispose.push(t.onMouseLeave((e=>i(u.leave,e)))),this.toDispose.push(t.onContextMenu((e=>i(u.contextMenu,e)))),this.toDispose.push(t.onDidChangeModel((e=>this._onModelChanged.fire(e))))}resolve(e){const t=this.models.get(e.toString());if(t)return t}handleMouseEvent(e,t,i,r){const n=this.models.get(e.toString());if(!n)return;if(this.debugConfigurationManager.canSetBreakpointsIn(n[0].editor.getModel()))for(const e of n)if(e.editor.getId()===r.getId()){switch(t){case u.contextMenu:e.onContextMenu(i);break;case u.down:e.onMouseDown(i);break;case u.leave:e.onMouseLeave(i);break;case u.move:e.onMouseMove(i)}break}}};r.__decorate([o.Autowired(s.WorkbenchEditorService),r.__metadata("design:type",s.WorkbenchEditorService)],d.prototype,"editorService",void 0),r.__decorate([o.Autowired(s.EditorCollectionService),r.__metadata("design:type",s.EditorCollectionService)],d.prototype,"editorCollection",void 0),r.__decorate([o.Autowired(a.DebugModelFactory),r.__metadata("design:type",Function)],d.prototype,"debugModelFactory",void 0),r.__decorate([o.Autowired(c.BreakpointManager),r.__metadata("design:type",c.BreakpointManager)],d.prototype,"breakpointManager",void 0),r.__decorate([o.Autowired(l.DebugConfigurationManager),r.__metadata("design:type",l.DebugConfigurationManager)],d.prototype,"debugConfigurationManager",void 0),d=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],d),t.DebugModelManager=d},43495:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(81924),s=i(65686),a=i(19745),c=i(52215),l=i(23655),u=i(76380),d=i(84969),h=i(40740),p=i(94499),f=i(91296),g=i(61568),m=i(76380),v=i(76414),y=i(43849),_=i(34865),b=i(58042);let w=r=class{constructor(){this.toDispose=new s.DisposableCollection,this.frameDecorations=[],this.updatingDecorations=!1,this.breakpointDecorations=[],this.breakpointRanges=new Map,this.currentBreakpointDecorations=[],this.candidateDecorations=[],this.renderFrames=f((()=>{if(this.toDispose.disposed)return;const e=this.createFrameDecorations();this.frameDecorations=this.deltaDecorations(this.frameDecorations,e)}),100),this.toggleBreakpoint=(e=this.position)=>{this.doToggleBreakpoint(e)},this.openBreakpointView=(e,t,i)=>{this.breakpointWidget.show(e,t,i)},this.closeBreakpointView=()=>{this.breakpointWidget.hide()},this.acceptBreakpoint=()=>{const{position:e,values:t}=this.breakpointWidget;if(this.reporterService.point(null===v.DEBUG_REPORT_NAME||void 0===v.DEBUG_REPORT_NAME?void 0:v.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,this.breakpointWidget.breakpointType),e&&t){const i=this.getBreakpoint(e);i?(i.raw.condition=t.condition,i.raw.hitCondition=t.hitCondition,i.raw.logMessage=t.logMessage,this.breakpointManager.updateBreakpoint(i)):this.breakpointManager.addBreakpoint(m.DebugBreakpoint.create(this.uri,Object.assign({line:e.lineNumber},t))),this.breakpointWidget.hide()}},this.hintDecorations=[],this.init()}static createContainer(e,t){return e.createChild([{token:d.DebugEditor,useValue:t},{token:p.DebugHoverWidget,useClass:p.DebugHoverWidget},{token:l.DebugBreakpointWidget,useClass:l.DebugBreakpointWidget},{token:v.IDebugModel,useClass:r}])}static createModel(e,t){return r.createContainer(e,t).get(v.IDebugModel)}async init(){const e=this.editor.getModel();this.uri=new s.URI(e.uri.toString()),this.decorator=new b.DebugDecorator,this.toDispose.pushAll([this.breakpointWidget,this.editor.onKeyDown((()=>this.debugHoverWidget.hide({immediate:!1}))),this.editor.onDidChangeModelContent((()=>this.renderFrames())),this.debugSessionManager.onDidChange((()=>this.renderFrames())),this.editor.getModel().onDidChangeContent((()=>this.updateBreakpoints()))]),this.renderFrames(),this.render()}dispose(){this.toDispose.dispose()}get position(){return this._position||this.editor.getPosition()}get breakpoint(){return this.getBreakpoint()}getBreakpoint(e=this.position){return this.breakpointManager.getBreakpoint(this.uri,e.lineNumber)}createFrameDecorations(){const e=[],{currentFrame:t,topFrame:i}=this.debugSessionManager;if(!t||!t.source||t.source.uri.toString()!==this.uri.toString())return e;const r=new o.Range(t.raw.line,t.raw.column,t.raw.line,1<<30),n=new o.Range(t.raw.line,t.raw.column,t.raw.line,t.raw.column+1);if(i===t)if(e.push({options:g.TOP_STACK_FRAME_MARGIN,range:n}),t.thread.stoppedDetails&&"exception"===t.thread.stoppedDetails.reason)e.push({options:g.TOP_STACK_FRAME_EXCEPTION_DECORATION,range:r});else{e.push({options:g.TOP_STACK_FRAME_DECORATION,range:r});const{topFrameRange:i}=this;i&&i.startLineNumber===t.raw.line&&i.startColumn!==t.raw.column&&e.push({options:g.TOP_STACK_FRAME_INLINE_DECORATION,range:r}),this.topFrameRange=r}else e.push({options:g.FOCUSED_STACK_FRAME_MARGIN,range:n}),e.push({options:g.FOCUSED_STACK_FRAME_DECORATION,range:r});return e}deltaDecorations(e,t){this.updatingDecorations=!0;try{return this.editor.deltaDecorations(e,t)}finally{this.updatingDecorations=!1}}focusStackFrame(e){this.renderFrames()}render(){this.renderBreakpoints(),this.renderFrames()}renderBreakpoints(){this.renderNormalBreakpoints(),this.renderCurrentBreakpoints()}renderNormalBreakpoints(){const e=this.createBreakpointDecorations();this.breakpointDecorations=this.deltaDecorations(this.breakpointDecorations,e),this.updateBreakpointRanges()}updateBreakpoints(){if(this.areBreakpointsAffected()){const e=this.createBreakpoints();this.breakpointManager.setBreakpoints(this.uri,e)}}areBreakpointsAffected(){if(this.updatingDecorations||!this.editor.getModel())return!1;for(const e of this.breakpointDecorations){const t=this.editor.getModel().getDecorationRange(e),i=this.breakpointRanges.get(e);if(!t||!t.equalsRange(i))return!0}return!1}createBreakpoints(){const{uri:e}=this,t=new Set,i=[];for(const r of this.breakpointDecorations){const n=this.editor.getModel().getDecorationRange(r);if(n&&!t.has(n.startLineNumber)){const o=n.startLineNumber,s=this.breakpointRanges.get(r),a=s&&this.breakpointManager.getBreakpoint(e,s.startLineNumber)||{},c=m.DebugBreakpoint.create(e,Object.assign(Object.assign({},a.raw||{}),{line:o}),a.enabled);i.push(c),t.add(o)}}return i}createBreakpointDecorations(){return this.breakpointManager.getBreakpoints(this.uri).map((e=>this.createBreakpointDecoration(e)))}createBreakpointDecoration(e){const t=e.raw.line,i=e.raw.column||1;return{range:new o.Range(t,i,t,i+1),options:{stickiness:g.STICKINESS}}}async renderCurrentBreakpoints(){const e=this.breakpointManager.getBreakpoints(this.uri),t=this.createCurrentBreakpointDecorations(),i=this.deltaDecorations(this.currentBreakpointDecorations.map((({decorationId:e})=>e)),t);this.currentBreakpointDecorations.forEach((e=>{e.inlineWidget&&e.inlineWidget.dispose()})),this.currentBreakpointDecorations=i.map(((i,r)=>{const n=t[r],o=e[r],s=(o.enabled?g.BREAKPOINT_DECORATION:g.BREAKPOINT_DECORATION_DISABLED).glyphMarginClassName;return{breakpoint:o,decorationId:i,inlineWidget:n.options.beforeContentClassName?new S(this.editor,i,s,o,this.breakpointManager):void 0}}));const r=await this.getCandidateBreakpoints(e),n=this.deltaDecorations(this.candidateDecorations.map((({decorationId:e})=>e)),r);this.candidateDecorations.forEach((e=>{e.inlineWidget.dispose()})),this.candidateDecorations=n.map(((e,t)=>{const{breakpoint:i}=r[t],n=(i?g.BREAKPOINT_DECORATION:g.BREAKPOINT_DECORATION_DISABLED).glyphMarginClassName;return{decorationId:e,inlineWidget:new S(this.editor,e,n,i,this.breakpointManager)}}))}async getCandidateBreakpoints(e){const t=this.editor.getModel(),i=this.debugSessionManager.currentSession;if(!t||!(null==i?void 0:i.capabilities.supportsBreakpointLocationsRequest))return[];const r=Array.from(new Set(e.map((e=>e.raw.line)))),n=[];return await Promise.all(r.map((async e=>{const r=await i.breakpointLocations(this.uri,e);if(r.length<=1)return;const s=t.getLineFirstNonWhitespaceColumn(e),a=t.getLineLastNonWhitespaceColumn(e);r.forEach((e=>{const t=new o.Range(e.lineNumber,e.column,e.lineNumber,e.column+1);if(e.column<=s||e.column>a)return;const i=this.currentBreakpointDecorations.find((({breakpoint:e})=>e.raw.line===t.startLineNumber&&e.raw.column===t.startColumn));(null==i?void 0:i.inlineWidget)||n.push({range:t,options:{stickiness:o.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,beforeContentClassName:i?void 0:"debug-breakpoint-placeholder"},breakpoint:null==i?void 0:i.breakpoint})}))}))),n}createCurrentBreakpointDecorations(){return this.breakpointManager.getBreakpoints(this.uri).filter((e=>m.isDebugBreakpoint(e))).map((e=>this.createCurrentBreakpointDecoration(e)))}createCurrentBreakpointDecoration(e){const t=this.debugSessionManager.currentSession,i=e.status.get(t&&t.id||""),r=i&&i.line?i.line:e.raw.line,n=e.raw.column||1,s=n>this.editor.getModel().getLineFirstNonWhitespaceColumn(r),a=new o.Range(r,n,r,n+1),{className:c,message:l}=this.decorator.getDecoration(e,!!t,this.breakpointManager.breakpointsEnabled);return{range:a,options:{glyphMarginClassName:c,glyphMarginHoverMessage:l.map((e=>({value:e}))),stickiness:g.STICKINESS,beforeContentClassName:s?"debug-breakpoint-placeholder":void 0}}}updateBreakpointRanges(){this.breakpointRanges.clear();for(const e of this.breakpointDecorations){const t=this.editor.getModel().getDecorationRange(e);this.breakpointRanges.set(e,t)}}showHover(e){const t=e.target.type,i=s.isOSX?"metaKey":"ctrlKey";(t!==o.editor.MouseTargetType.CONTENT_WIDGET||e.target.detail!==this.debugHoverWidget.getId()||e.event[i])&&(t===o.editor.MouseTargetType.CONTENT_TEXT?this.debugHoverWidget.show({selection:e.target.range,immediate:!1}):this.debugHoverWidget.hide({immediate:!1}))}hideHover({event:e}){const t=this.debugHoverWidget.getDomNode().getBoundingClientRect();(e.posxt.right||e.posyt.bottom)&&this.debugHoverWidget.hide({immediate:!1})}doToggleBreakpoint(e=this.position){const t=this.breakpointManager.getBreakpoints(this.uri,{lineNumber:e.lineNumber});if(t.length)for(const e of t)this.breakpointManager.delBreakpoint(e);else this.breakpointManager.addBreakpoint(m.DebugBreakpoint.create(this.uri,{line:e.lineNumber}))}get contributedContextMenu(){return this.menuService.createMenu(y.MenuId.DebugBreakpointsContext,this.contextKeyService)}onContextMenu(e){if(e.target&&e.target.type===o.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const t=this.breakpointManager.getBreakpoint(this.uri,e.target.position.lineNumber);this.breakpointManager.selectedBreakpoint={breakpoint:t,model:this};const i=this.contributedContextMenu,r=y.generateMergedCtxMenu({menus:i});this.ctxMenuRenderer.show({anchor:e.event.browserEvent,menuNodes:r,args:[e.target.position]})}}onMouseDown(e){e.target&&e.target.type===o.editor.MouseTargetType.GUTTER_GLYPH_MARGIN&&(e.event.rightButton||(this.editor.focus(),this.toggleBreakpoint(e.target.position))),this.hintBreakpoint(e)}onMouseMove(e){this.showHover(e),this.hintBreakpoint(e)}onMouseLeave(e){this.hideHover(e),this.deltaHintDecorations([])}hintBreakpoint(e){const t=this.createHintDecorations(e);this.deltaHintDecorations(t)}deltaHintDecorations(e){this.hintDecorations=this.deltaDecorations(this.hintDecorations,e)}createHintDecorations(e){if(e.target&&e.target.type===o.editor.MouseTargetType.GUTTER_GLYPH_MARGIN||e.target.type===o.editor.MouseTargetType.GUTTER_LINE_NUMBERS){const t=e.target.position.lineNumber;return this.breakpointManager.getBreakpoint(this.uri,t)?[]:[{range:new o.Range(t,1,t,1),options:g.BREAKPOINT_HINT_DECORATION}]}return[]}};n.__decorate([a.Autowired(d.DebugEditor),n.__metadata("design:type",Object)],w.prototype,"editor",void 0),n.__decorate([a.Autowired(l.DebugBreakpointWidget),n.__metadata("design:type",l.DebugBreakpointWidget)],w.prototype,"breakpointWidget",void 0),n.__decorate([a.Autowired(p.DebugHoverWidget),n.__metadata("design:type",p.DebugHoverWidget)],w.prototype,"debugHoverWidget",void 0),n.__decorate([a.Autowired(h.IDebugSessionManager),n.__metadata("design:type",c.DebugSessionManager)],w.prototype,"debugSessionManager",void 0),n.__decorate([a.Autowired(u.BreakpointManager),n.__metadata("design:type",u.BreakpointManager)],w.prototype,"breakpointManager",void 0),n.__decorate([a.Autowired(y.AbstractMenuService),n.__metadata("design:type",y.AbstractMenuService)],w.prototype,"menuService",void 0),n.__decorate([a.Autowired(_.IContextKeyService),n.__metadata("design:type",Object)],w.prototype,"contextKeyService",void 0),n.__decorate([a.Autowired(y.ICtxMenuRenderer),n.__metadata("design:type",y.ICtxMenuRenderer)],w.prototype,"ctxMenuRenderer",void 0),n.__decorate([a.Autowired(_.IReporterService),n.__metadata("design:type",Object)],w.prototype,"reporterService",void 0),n.__decorate([s.memoize,n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],w.prototype,"contributedContextMenu",null),w=r=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[])],w),t.DebugModel=w;class S extends s.Disposable{constructor(e,t,i,r,n){super(),this.editor=e,this.decorationId=t,this.breakpoint=r,this.breakpointManager=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.range=this.editor.getModel().getDecorationRange(t),this.addDispose(this.editor.onDidChangeModelDecorations((()=>{const e=this.editor.getModel().getDecorationRange(this.decorationId);this.range&&!this.range.equalsRange(e)&&(this.range=e,this.editor.layoutContentWidget(this))}))),this.addDispose(s.Disposable.create((()=>{this.editor.removeContentWidget(this)}))),this.create(i),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){const t=document.createElement("div");t.className="inline-breakpoint-widget",e&&t.classList.add(...e.split(" ")),this.domNode=t;const{EditorOption:i}=o.editor,r=()=>{const e=this.editor.getOption(i.lineHeight);t.style.height=`${e}px`,t.style.width=`${Math.ceil(.8*e)}px`,t.style.marginLeft="4px"};r(),this.addDispose(new _.DomListener(t,"click",(async()=>{const e=new s.URI(this.editor.getModel().uri);this.breakpoint?this.breakpointManager.delBreakpoint(this.breakpoint):this.breakpointManager.addBreakpoint(m.DebugBreakpoint.create(e,{line:this.range.startLineNumber,column:this.range.startColumn}))}))),this.addDispose(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(i.fontSize)||e.hasChanged(i.lineHeight))&&r()})))}getId(){return s.uuid()}getDomNode(){return this.domNode}getPosition(){return this.range?(this.domNode.classList.toggle("line-start",1===this.range.startColumn),{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn-1},preference:[o.editor.ContentWidgetPositionPreference.EXACT]}):null}}n.__decorate([s.memoize,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],S.prototype,"getId",null)},61568:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(81924);t.STICKINESS=r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,t.BREAK_PONINT_HOVER_MARGIN={glyphMarginClassName:"kaitian-debug-hover",linesDecorationsClassName:"kaitian-debug-hover",isWholeLine:!0},t.TOP_STACK_FRAME_MARGIN={glyphMarginClassName:"kaitian-debug-top-stack-frame",stickiness:t.STICKINESS},t.FOCUSED_STACK_FRAME_MARGIN={glyphMarginClassName:"kaitian-debug-focused-stack-frame",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_DECORATION={isWholeLine:!0,className:"kaitian-debug-top-stack-frame-line",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_EXCEPTION_DECORATION={isWholeLine:!0,className:"kaitian-debug-top-stack-frame-exception-line",stickiness:t.STICKINESS},t.FOCUSED_STACK_FRAME_DECORATION={isWholeLine:!0,className:"kaitian-debug-focused-stack-frame-line",stickiness:t.STICKINESS},t.TOP_STACK_FRAME_INLINE_DECORATION={beforeContentClassName:"kaitian-debug-top-stack-frame-column"},t.BREAKPOINT_HINT_DECORATION={glyphMarginClassName:"kaitian-debug-breakpoint-hint",stickiness:t.STICKINESS},t.BREAKPOINT_DECORATION={glyphMarginClassName:"kaitian-debug-breakpoint",stickiness:t.STICKINESS},t.BREAKPOINT_DECORATION_DISABLED={glyphMarginClassName:"kaitian-debug-breakpoint-disabled",stickiness:t.STICKINESS}},44042:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(65686),s=i(19745),a=i(34865);let c=r=class{contribute(e){const t=new o.Disposable;return this.updateHoverEnabled(e),t.addDispose(this.contextKeyService.onDidChangeContext((t=>{t.payload.affectsSome(r.keySet)&&this.updateHoverEnabled(e)}))),t}updateHoverEnabled(e){const t=this.contextKeyService.match("debugStopped");e.monacoEditor.updateOptions({hover:{enabled:!t}})}};c.keySet=new Set(["debugStopped"]),n.__decorate([s.Autowired(a.IContextKeyService),n.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),c=r=n.__decorate([s.Injectable()],c),t.EditorHoverContribution=c},87592:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=new(i(28023).LanguageFeatureRegistry);t.IEvaluatableExpressionService=Symbol("IEvaluatableExpressionService");let s=class{getSupportedEvaluatableExpressionProvider(e){return o.ordered(e)}registerEvaluatableExpressionProvider(e,t){return o.register(e,t)}hasEvaluatableExpressProvider(e){return o.has(e)}};s=r.__decorate([n.Injectable()],s),t.EvaluatableExpressionServiceImpl=s},80977:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(23655),t),r.__exportStar(i(94499),t),r.__exportStar(i(43495),t),r.__exportStar(i(43743),t),r.__exportStar(i(61568),t),r.__exportStar(i(28768),t)},47641:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(19574),a=i(76414),c=i(76380),l=i(65281),u=i(16297),d=i(60481),h=i(91324),p=i(47146),f=i(89212),g=i(92407),m=i(52215),v=i(80977),y=i(98742),_=i(80615),b=i(87323),w=i(2447),S=i(77194),C=i(18602),E=i(57296);i(42925);const O=i(2859),k=i(87592);let D=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:y.DebugHoverSource,useClass:y.DebugHoverSource},{token:v.DebugExpressionProvider,useClass:v.DebugExpressionProvider},{token:g.DebugSessionFactory,useClass:g.DefaultDebugSessionFactory},{token:O.DebugWatch,useClass:O.DebugWatch},{token:v.DebugModelManager,useClass:v.DebugModelManager},{token:a.IDebugSessionManager,useClass:m.DebugSessionManager},{token:c.BreakpointManager,useClass:c.BreakpointManager},{token:u.DebugConfigurationManager,useClass:u.DebugConfigurationManager},{token:k.IEvaluatableExpressionService,useClass:k.EvaluatableExpressionServiceImpl},{token:s.FolderPreferenceProvider,useClass:_.LaunchFolderPreferenceProvider,dropdownForTag:!0,tag:"launch"},{token:a.DebugModelFactory,useFactory:e=>t=>v.DebugModel.createModel(e,t)},{token:g.DebugSessionContributionRegistry,useClass:g.DebugSessionContributionRegistryImpl},{token:a.IDebugService,useClass:f.DebugService},{token:a.IDebugServer,useValue:{}},b.LaunchPreferencesContribution,p.DebugResourceResolverContribution,d.DebugContribution,C.DebugConsoleContribution,S.VariablesPanelContribution,E.WatchPanelContribution,{token:l.DebugCallStackItemTypeKey,useFactory:e=>e.get(o.IContextKeyService).createKey("callStackItemType")},{token:l.BreakpointWidgetInputFocus,useFactory:e=>e.get(o.IContextKeyService).createKey("breakpointWidgetInputFocus",!1)}],this.contributionProvider=g.DebugSessionContribution,this.preferences=h.injectDebugPreferences,this.isOverlay=!0,this.component=w.DebugToolbarOverlayWidget}};D=r.__decorate([n.Injectable()],D),t.DebugModule=D,r.__exportStar(i(76380),t),r.__exportStar(i(65281),t),r.__exportStar(i(16297),t),r.__exportStar(i(12971),t),r.__exportStar(i(60481),t),r.__exportStar(i(91324),t),r.__exportStar(i(47146),t),r.__exportStar(i(12711),t),r.__exportStar(i(61853),t),r.__exportStar(i(60013),t),r.__exportStar(i(92407),t),r.__exportStar(i(52215),t),r.__exportStar(i(43743),t),r.__exportStar(i(107),t),r.__exportStar(i(2859),t)},107:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(82542),t)},82542:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(36002),a=i(36002);class c{constructor(e,t){this.uri=e,this.kind=t,this.owner2Markers=new Map}get empty(){return!this.owner2Markers.size}getOwners(){return Array.from(this.owner2Markers.keys())}getMarkers(e){return this.owner2Markers.get(e)||[]}setMarkers(e,t){const i=this.owner2Markers.get(e);return t.length>0?this.owner2Markers.set(e,t.map((t=>this.createMarker(e,t)))):this.owner2Markers.delete(e),i||[]}createMarker(e,t){return Object.freeze({uri:this.uri.toString(),kind:this.kind,owner:e,data:t})}findMarkers(e){if(e.owner)return this.owner2Markers.has(e.owner)?this.filterMarkers(e,this.owner2Markers.get(e.owner)):[];{const t=[];for(const i of this.owner2Markers.values())t.push(...this.filterMarkers(e,i));return t}}filterMarkers(e,t){return t?e.dataFilter?t.filter((t=>e.dataFilter(t.data))):t:[]}}t.MarkerCollection=c;let l=class{constructor(){this.uri2MarkerCollection=new Map,this.onDidChangeMarkersEmitter=new o.Emitter,this.init()}init(){this.fileService.onFilesChanged((e=>{const t=e.filter((({type:e})=>e===s.FileChangeType.DELETED));t.length&&this.cleanMarkers(t)}))}cleanMarkers(e){for(const t of this.uri2MarkerCollection.keys()){const i=new o.URI(t);s.FileChangeEvent.isDeleted(e,i)&&this.cleanAllMarkers(i)}}get onDidChangeMarkers(){return this.onDidChangeMarkersEmitter.event}fireOnDidChangeMarkers(e){this.onDidChangeMarkersEmitter.fire(e)}setMarkers(e,t,i){const r=e.toString(),n=this.uri2MarkerCollection.get(r)||new c(e,this.getKind()),o=n.setMarkers(t,i);return n.empty?this.uri2MarkerCollection.delete(e.toString()):this.uri2MarkerCollection.set(r,n),this.fireOnDidChangeMarkers(e),o}findMarkers(e={}){if(e.uri){const t=this.uri2MarkerCollection.get(e.uri.toString());return t?t.findMarkers(e):[]}const t=[];for(const i of this.getUris())t.push(...this.uri2MarkerCollection.get(i).findMarkers(e));return t}getUris(){return this.uri2MarkerCollection.keys()}cleanAllMarkers(e){if(e)this.doCleanAllMarkers(e);else for(const e of this.getUris())this.doCleanAllMarkers(new o.URI(e))}doCleanAllMarkers(e){const t=e.toString();void 0!==this.uri2MarkerCollection.get(t)&&(this.uri2MarkerCollection.delete(t),this.fireOnDidChangeMarkers(e))}};r.__decorate([n.Autowired(a.IFileServiceClient),r.__metadata("design:type",Object)],l.prototype,"fileService",void 0),l=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],l),t.MarkerManager=l},41239:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);class n{}t.DebugSourceData=n;class o extends n{constructor(e,t,i,r,n){super(),this.session=e,this.labelProvider=t,this.modelManager=i,this.workbenchEditorService=r,this.fileSystem=n}get uri(){return o.toUri(this.raw)}update(e){Object.assign(this,e)}async open(e,t){if(this.uri.scheme===o.SCHEME){const e=await this.load();await this.fileSystem.setContent({uri:this.uri.toString(),lastModification:0},e)}if(t&&t.raw){const{line:i,column:r}=t.raw,n={startLineNumber:i,startColumn:"number"==typeof r?r:0,endLineNumber:i,endColumn:1/0};await this.workbenchEditorService.open(this.uri,Object.assign(Object.assign({},e),{range:n})),t.thread.currentFrame=t;const o=this.modelManager.resolve(this.uri);if(o)for(const e of o)e.focusStackFrame(t)}else await this.workbenchEditorService.open(this.uri,e)}async load(){const e=this.raw,t=e.sourceReference;return(await this.session.sendRequest("source",{sourceReference:t,source:e})).body.content}get inMemory(){return this.uri.scheme===o.SCHEME}get name(){return this.inMemory?this.raw.name||this.uri.path.base||this.uri.path.toString():this.labelProvider.getName(this.uri)}get longName(){return this.inMemory?this.name:this.labelProvider.getLongName(this.uri)}static toUri(e){if(e.sourceReference&&e.sourceReference>0)return(new r.URI).withScheme(o.SCHEME).withPath(e.name).withQuery(String(e.sourceReference));if(!e.path)throw new Error("Unrecognized source type: "+JSON.stringify(e));return e.path.match(o.SCHEME_PATTERN)?new r.URI(e.path):new r.URI(r.Uri.file(e.path))}}t.DebugSource=o,o.SCHEME="debug",o.SCHEME_PATTERN=/^[a-zA-Z][a-zA-Z0-9\+\-\.]+:/},6494:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(30497);class n{}t.DebugStackFrameData=n;t.DebugStackFrame=class extends n{constructor(e,t){super(),this.thread=e,this.session=t}get id(){return this.session.id+":"+this.thread.id+":"+this.raw.id}get source(){return this._source}update(e){Object.assign(this,e),this._source=this.raw.source&&this.session.getSource(this.raw.source)}async restart(){await this.session.sendRequest("restartFrame",this.toArgs({threadId:this.thread.id}))}async open(e){if(!this.source)return;const{line:t,column:i,endLine:r,endColumn:n}=this.raw;let o={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:1/0};"number"==typeof r&&(o=Object.assign(Object.assign({},o),{endLineNumber:r,endColumn:"number"==typeof n?n:1/0})),this.source.open(Object.assign(Object.assign({},e),{range:o}))}toArgs(e){return Object.assign({},e,{frameId:this.raw.id})}getScopes(e){return this.scopes||(this.scopes=this.doGetScopes(e))}async doGetScopes(e){try{return(await this.session.sendRequest("scopes",this.toArgs())).body.scopes.map((t=>new r.DebugScope(t,this.session,e)))}catch(e){return[]}}}},70088:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(6494),o=i(76414);class s{}t.DebugThreadData=s;t.DebugThread=class extends s{constructor(e){super(),this.session=e,this._onDidChanged=new r.Emitter,this.onDidChanged=this._onDidChanged.event,this._frames=new Map,this.pendingFetch=Promise.resolve([])}get id(){return this.session.id+":"+this.raw.id}get currentFrame(){return this._currentFrame}set currentFrame(e){this._currentFrame=e,this._onDidChanged.fire()}get stopped(){return!!this.stoppedDetails}update(e){Object.assign(this,e),"stoppedDetails"in e&&this.clearFrames()}clear(){this.update({raw:this.raw,stoppedDetails:void 0})}continue(){return this.session.sendRequest("continue",this.toArgs())}stepOver(){return this.session.sendRequest("next",this.toArgs())}stepIn(){return this.session.sendRequest("stepIn",this.toArgs())}stepOut(){return this.session.sendRequest("stepOut",this.toArgs())}pause(){return this.session.sendRequest("pause",this.toArgs())}terminate(){return this.session.sendRequest("terminateThreads",{threadIds:[this.raw.id]})}get frames(){return Array.from(this._frames.values())}get topFrame(){return this.frames[0]}get frameCount(){return this._frames.size}async rawFetchFrames(e=20){return this.pendingFetch=this.pendingFetch.then((async()=>{try{const t=this.frameCount,i=await this.doFetchFrames(t,e);return this.doUpdateFrames(i)}catch(e){return[]}}))}async fetchFrames(e=20){const t=await this.rawFetchFrames(e);return this.updateCurrentFrame(),t}async doFetchFrames(e,t){try{const i=await this.session.sendRequest("stackTrace",this.toArgs({startFrame:e,levels:t}));return this.stoppedDetails&&(this.stoppedDetails.totalFrames=i.body.totalFrames),i.body.stackFrames}catch(e){return this.stoppedDetails&&(this.stoppedDetails.framesErrorMessage=e.message),[]}}doUpdateFrames(e){const t=this.session.reportTime(o.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME,{sessionId:this.session.id,threadId:this.raw.id,threadAmount:this.session.threadCount}),i=new Map(this._frames);for(const t of e){const e=t.id,r=this._frames.get(e)||new n.DebugStackFrame(this,this.session);this._frames.set(e,r),r.update({raw:t}),i.set(e,r)}const r=[...i.values()];return t("doUpdateFrames"),r}clearFrames(){this._frames.clear(),this.updateCurrentFrame()}updateCurrentFrame(){const{currentFrame:e}=this,t=e&&e.raw.id;this.currentFrame="number"==typeof t&&this._frames.get(t)||this._frames.values().next().value}toArgs(e){return Object.assign({},e,{threadId:this.raw.id})}}},7127:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(76414),o=i(19745),s=i(52215),a=i(34865),c=i(93096),l=i(30497),u=i(60481);t.DebugWatchData=class{};let d=class{constructor(){this.toDispose=new a.DisposableCollection,this.fireDidChange=c((()=>this.onDidChangeEmitter.fire()),50),this.fireVariableChange=c((()=>this.onDidVariableChangeEmitter.fire()),50),this.fireExpressionChange=c((e=>this.onDidExExpressionChangeEmitter.fire(e)),50),this._expressions=[],this.onDidChangeEmitter=new a.Emitter,this.onDidVariableChangeEmitter=new a.Emitter,this.onDidExExpressionChangeEmitter=new a.Emitter,this.whenReady=this.init()}get onDidChange(){return this.onDidChangeEmitter.event}get onDidVariableChange(){return this.onDidVariableChangeEmitter.event}get onDidExpressionChange(){return this.onDidExExpressionChangeEmitter.event}async getRoot(){const e=[],t=new l.DebugWatchRoot(this.manager.currentSession);for(const i of this._expressions){const r=new l.DebugWatchNode(this.manager.currentSession,i,t);await r.evaluate(),e.push(r)}return t.updatePresetChildren(e),this._root=t,this._root}async init(){this.toDispose.push(this.manager.onDidStopDebugSession((()=>{this.fireDidChange()}))),this.toDispose.push(this.manager.onDidDestroyDebugSession((()=>{this.fireDidChange()}))),this.toDispose.push(this.manager.onDidChangeActiveDebugSession((()=>{const e=this.manager.currentSession;e&&(e.onVariableChange((()=>{this.fireVariableChange()})),e.onDidChangeCallStack((()=>{this.fireVariableChange()})))})))}async clear(){this.updateWatchExpressions([]),this.fireExpressionChange([]),this.fireDidChange()}async updateWatchExpressions(e){this._expressions=e}addWatchExpression(e){this.reporterService.point(null===n.DEBUG_REPORT_NAME||void 0===n.DEBUG_REPORT_NAME?void 0:n.DEBUG_REPORT_NAME.DEBUG_WATCH,u.DEBUG_COMMANDS.ADD_WATCHER.id,{value:e});-1===this._expressions.indexOf(e)&&(this._expressions.push(e),this.fireExpressionChange(this._expressions))}renameWatchExpression(e,t){const i=this._expressions.indexOf(e);i>=0&&this._expressions.splice(i,1,t),this.fireExpressionChange(this._expressions)}removeWatchExpression(e){const t=this._expressions.indexOf(e);t>=0&&this._expressions.splice(t,1),this.fireExpressionChange(this._expressions)}};r.__decorate([o.Autowired(n.IDebugSessionManager),r.__metadata("design:type",s.DebugSessionManager)],d.prototype,"manager",void 0),r.__decorate([o.Autowired(a.IReporterService),r.__metadata("design:type",Object)],d.prototype,"reporterService",void 0),r.__decorate([o.Autowired(a.ILogger),r.__metadata("design:type",Object)],d.prototype,"logger",void 0),d=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],d),t.DebugWatch=d},2859:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(41239),t),r.__exportStar(i(6494),t),r.__exportStar(i(70088),t),r.__exportStar(i(7127),t)},80615:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(19574);let s=class extends o.FolderPreferenceProvider{parse(e){const t=super.parse(e);if(void 0!==t)return{launch:Object.assign({},t)}}getPath(e){return"launch"===e?[]:e.startsWith("launch.")?[e.substr("launch.".length)]:void 0}};s=r.__decorate([n.Injectable()],s),t.LaunchFolderPreferenceProvider=s},87323:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(35864);let s=class{constructor(){this.schema=o.launchPreferencesSchema,this.name="launch"}};s=r.__decorate([n.Domain(n.PreferenceContribution,n.PreferenceConfiguration)],s),t.LaunchPreferencesContribution=s},35864:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(76414);t.launchPreferencesSchema={type:"object",scope:"resource",properties:{launch:{$ref:r.launchSchemaUri,description:"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces",defaultValue:{configurations:[],compounds:[]}}}}},20973:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(88774),o=i(92406),s=i(63804),a=i(94184),c=i(89435);class l extends n.TreeNode{constructor(e,t,i,r,n){super({},t),this.description=e,this.severity=i,this.source=r,this.line=n}static is(e){return!!e&&!!e.template}get name(){return`log_${this.id}`}getColor(e){if(void 0===e)return a(o.variable_repl_text,o.info);switch(e){case r.MessageType.Error:return a(o.variable_repl_text,o.error);case r.MessageType.Warning:return a(o.variable_repl_text,o.warn);case r.MessageType.Info:default:return a(o.variable_repl_text,o.info)}}get template(){return()=>s.createElement(c.default,{className:this.getColor(this.severity),linkify:!1},this.description)}}t.AnsiConsoleNode=l},30497:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(88774);class o{constructor(e,t,i){this.session=e,this.source=t,this.line=i}async resolveChildren(e){var t;return!f.is(e)||e.variablesReference||e.presetChildren?await this.doResolve(e):await(null===(t=this.session)||void 0===t?void 0:t.getScopes(e))||[]}async doResolve(e){const t=[];if(!e)return t;if(Array.isArray(e.presetChildren))return e.presetChildren;if(!this.session||this.session.terminated)return t;const{variablesReference:i,startOfVariables:r,indexedVariables:n}=e;if(e.namedVariables&&await this.fetch(t,i,"named",e),n){let i=c.BASE_CHUNK_SIZE;for(;n>i*c.BASE_CHUNK_SIZE;)i*=c.BASE_CHUNK_SIZE;if(n>i){const r=Math.ceil(n/i);for(let o=0;ot.name?1:e.name{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(30497),t),r.__exportStar(i(20973),t)},35549:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(22188),s=i(70499),a=i(76380),c=i(5778),l=i(34865),u=i(76067),d=i(40740),h=i(52215),p=i(65777),f=i(76414);let g=class extends l.WithEventBus{constructor(){super(),this.nodes=[],this.init()}async init(){await this.updateRoots(),this.updateBreakpoints(),this.workspaceService.onWorkspaceChanged((async()=>{await this.updateRoots(),this.updateBreakpoints()})),this.breakpoints.onDidChangeBreakpoints((()=>{this.updateBreakpoints()})),this.breakpoints.onDidChangeExceptionsBreakpoints((()=>{this.updateBreakpoints()})),this.contextKeyService.onDidChangeContext((e=>{e.payload.affectsSome(new Set(["inDebugMode"]))&&o.runInAction((()=>{this.inDebugMode=this.contextKeyService.getContextValue("inDebugMode")||!1}))}))}getBreakpointDecoration(e,t=!1,i=!0){return(new a.DebugDecorator).getDecoration(e,t,i)}onRenameFile(e){this.removeBreakpoints(e.payload.oldUri)}onDeleteFile(e){this.removeBreakpoints(e.payload.oldUri)}removeBreakpoints(e){this.breakpoints.cleanAllMarkers(e),this.updateBreakpoints()}async updateRoots(){this.enable=this.breakpoints.breakpointsEnabled,this.inDebugMode=this.contextKeyService.getContextValue("inDebugMode")||!1;const e=await this.workspaceService.roots;this.roots=e.map((e=>new l.URI(e.uri)))}toggleBreakpointEnable(e){if(a.isDebugBreakpoint(e)){const t=this.breakpoints.getBreakpoint(l.URI.parse(e.uri),{lineNumber:e.raw.line,column:e.raw.column});t&&(t.enabled=!t.enabled,this.breakpoints.updateBreakpoint(t))}a.isDebugExceptionBreakpoint(e)&&this.breakpoints.updateExceptionBreakpoints(e.filter,!e.default)}extractNodes(e){const t=[];return e.forEach((e=>{if(a.isDebugBreakpoint(e)){const i=l.URI.parse(e.uri),r=this.roots.filter((e=>e.isEqualOrParent(i)))[0];t.push({id:e.id,name:i.displayName,description:r&&r.relative(i).toString(),breakpoint:e})}a.isDebugExceptionBreakpoint(e)&&t.push({id:e.filter,name:e.label,description:"",breakpoint:e})})),t}updateBreakpoints(){this.nodes=this.extractNodes([...this.breakpoints.getExceptionBreakpoints(),...this.breakpoints.getBreakpoints()])}removeAllBreakpoints(){this.breakpoints.clearBreakpoints()}toggleBreakpoints(){this.breakpoints.breakpointsEnabled=!this.breakpoints.breakpointsEnabled,this.enable=this.breakpoints.breakpointsEnabled,this.enable?this.reporterService.point(null===f.DEBUG_REPORT_NAME||void 0===f.DEBUG_REPORT_NAME?void 0:f.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"enabled"):this.reporterService.point(null===f.DEBUG_REPORT_NAME||void 0===f.DEBUG_REPORT_NAME?void 0:f.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT,"unenabled")}};r.__decorate([n.Autowired(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],g.prototype,"model",void 0),r.__decorate([n.Autowired(c.IWorkspaceService),r.__metadata("design:type",Object)],g.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(a.BreakpointManager),r.__metadata("design:type",a.BreakpointManager)],g.prototype,"breakpoints",void 0),r.__decorate([n.Autowired(d.IDebugSessionManager),r.__metadata("design:type",h.DebugSessionManager)],g.prototype,"sessions",void 0),r.__decorate([n.Autowired(p.LabelService),r.__metadata("design:type",p.LabelService)],g.prototype,"labelProvider",void 0),r.__decorate([n.Autowired(l.IContextKeyService),r.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(l.IReporterService),r.__metadata("design:type",Object)],g.prototype,"reporterService",void 0),r.__decorate([o.observable,r.__metadata("design:type",Array)],g.prototype,"nodes",void 0),r.__decorate([o.observable,r.__metadata("design:type",Boolean)],g.prototype,"enable",void 0),r.__decorate([o.observable,r.__metadata("design:type",Boolean)],g.prototype,"inDebugMode",void 0),r.__decorate([l.OnEvent(u.WorkspaceEditDidRenameFileEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[u.WorkspaceEditDidRenameFileEvent]),r.__metadata("design:returntype",void 0)],g.prototype,"onRenameFile",null),r.__decorate([l.OnEvent(u.WorkspaceEditDidDeleteFileEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[u.WorkspaceEditDidDeleteFileEvent]),r.__metadata("design:returntype",void 0)],g.prototype,"onDeleteFile",null),r.__decorate([o.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",Promise)],g.prototype,"updateRoots",null),r.__decorate([o.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],g.prototype,"toggleBreakpointEnable",null),r.__decorate([o.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],g.prototype,"updateBreakpoints",null),r.__decorate([o.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],g.prototype,"toggleBreakpoints",null),g=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],g),t.DebugBreakpointsService=g},93743:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(35549),o=i(34865),s=i(17166),a=i(94184),c=i(88774),l=i(32834),u=i(76380),d=i(88774),h=i(76414);t.DebugBreakpointView=l.observer((({viewState:e})=>{const{nodes:i,enable:c,inDebugMode:l,toggleBreakpointEnable:u}=o.useInjectable(n.DebugBreakpointsService),h={height:e.height,width:e.width};return r.createElement("div",{className:a(s.debug_breakpoints,!c&&s.debug_breakpoints_disabled)},r.createElement(d.RecycleList,{data:i,itemHeight:22,template:({data:e})=>r.createElement(t.BreakpointItem,{toggle:()=>u(e.breakpoint),breakpointEnabled:c,data:e,isDebugMode:l}),style:h}))})),t.BreakpointItem=({data:e,toggle:t,isDebugMode:i,breakpointEnabled:l})=>{const p=u.isDebugBreakpoint(e.breakpoint)?e.breakpoint.enabled:!!e.breakpoint.default,f=o.useInjectable(h.IDebugSessionManager),g=o.useInjectable(o.CommandService),m=o.useInjectable(n.DebugBreakpointsService),[v,y]=r.useState(p),[_,b]=r.useState(void 0);r.useEffect((()=>{if(f.onDidChangeActiveDebugSession((()=>{if(u.isDebugBreakpoint(e.breakpoint)&&u.isRuntimeBreakpoint(e.breakpoint)){const t=u.getStatus(e.breakpoint);b(t)}})),u.isDebugBreakpoint(e.breakpoint)&&u.isRuntimeBreakpoint(e.breakpoint)){const t=u.getStatus(e.breakpoint);b(t)}}),[]);const w=!i||u.isDebugBreakpoint(e.breakpoint)&&u.isRuntimeBreakpoint(e.breakpoint);return r.createElement("div",{className:a(s.debug_breakpoints_item)},r.createElement("div",{className:a(u.isDebugBreakpoint(e.breakpoint)?w?(()=>{const{className:t}=m.getBreakpointDecoration(e.breakpoint,i,l&&v);return t})():"kaitian-debug-breakpoint-unverified":"",s.debug_breakpoints_icon)}),r.createElement(c.CheckBox,{id:e.id,onChange:()=>{t(),y(!v)},checked:v}),r.createElement("div",{className:s.debug_breakpoints_wrapper,onClick:()=>{if(e.breakpoint.uri){const t={preview:!0,focus:!0};t.range=_?{startColumn:_.column||0,endColumn:_.column||0,startLineNumber:_.line,endLineNumber:_.line}:{startColumn:e.breakpoint.raw.column||0,endColumn:e.breakpoint.raw.column||0,startLineNumber:e.breakpoint.raw.line,endLineNumber:e.breakpoint.raw.line},g.executeCommand(o.EDITOR_COMMANDS.OPEN_RESOURCE.id,new o.URI(e.breakpoint.uri),t)}}},r.createElement("span",{className:s.debug_breakpoints_name},e.name),r.createElement("span",{className:s.debug_breakpoints_description},e.description)),u.isDebugBreakpoint(e.breakpoint)?r.createElement(d.Badge,null,e.breakpoint.raw.line,e.breakpoint.raw.column&&`:${e.breakpoint.raw.column}`):null)}},52488:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(5778),s=i(16297),a=i(22188),c=i(76414),l=i(34865),u=i(52215),d=i(70499),h=i(40740),p=i(36439);let f=class{constructor(){this.currentValue=c.DEFAULT_ADD_CONFIGURATION_KEY,this.float=!0,this.workspaceRoots=[],this.start=async()=>{const e=this.debugConfigurationManager.current;e?this.debugSessionManager.start(e):this.debugConfigurationManager.addConfiguration()},this.openConfiguration=()=>{const{current:e}=this.debugConfigurationManager,t=null==e?void 0:e.workspaceFolderUri;this.debugConfigurationManager.openConfiguration(t)},this.openDebugConsole=()=>{this.debugConsoleService.activate()},this.addConfiguration=e=>{this.debugConfigurationManager.addConfiguration("string"==typeof e?e:void 0)},this.updateConfiguration=(e,t,i)=>{this.debugConfigurationManager.current=this.debugConfigurationManager.find(e,t,i)},this.toName=({configuration:e,workspaceFolderUri:t})=>t&&this.workspaceService.isMultiRootWorkspaceEnabled?e.name+" ("+new l.URI(t).path.base+")":e.name,this._whenReady=this.init()}get whenReady(){return this._whenReady}async initCurrentConfiguration(){const e=await this.getCurrentConfiguration(),t=!!this.debugConfigurationManager.all.find((t=>this.toValue(t)===e));if(e)if(t)this.updateCurrentValue(e);else{const t=e.indexOf(c.DEFAULT_CONFIGURATION_NAME_SEPARATOR),i=e.slice(0,t);let r;if(this.configurationOptions.length>0){let e=this.configurationOptions.find((e=>e.configuration.name===i));e&&(e=this.configurationOptions[0]),r=this.toValue(e)}else r=c.DEFAULT_ADD_CONFIGURATION_KEY;this.updateCurrentValue(r)}else this.debugConfigurationManager.current&&this.updateCurrentValue(this.toValue(this.debugConfigurationManager.current))}async init(){await this.updateConfigurationOptions(),await this.initCurrentConfiguration(),this.debugConfigurationManager.onDidChange((async()=>{this.updateConfigurationOptions(),await this.initCurrentConfiguration()})),this.preferenceService.onPreferenceChanged((e=>{const{preferenceName:t,newValue:i}=e;"debug.toolbar.float"===t&&this.float!==i&&this.updateFloat(i)})),await this.updateWorkspaceState(),this.workspaceService.onWorkspaceChanged((async()=>{await this.updateWorkspaceState()})),this.updateFloat(!!this.preferenceService.get("debug.toolbar.float"))}async updateWorkspaceState(){this.isMultiRootWorkspace=this.workspaceService.isMultiRootWorkspaceOpened,this.workspaceRoots=(await this.workspaceService.tryGetRoots()).map((e=>e.uri))}updateFloat(e){this.float=e}updateCurrentValue(e){this.currentValue=e}updateConfigurationOptions(){const{current:e}=this.debugConfigurationManager;if(this.configurationOptions=this.debugConfigurationManager.all,e){const t=this.toValue(e);this.setCurrentConfiguration(t),this.updateCurrentValue(t)}else this.updateCurrentValue(c.DEFAULT_ADD_CONFIGURATION_KEY)}toValue({configuration:e,workspaceFolderUri:t,index:i}){if(!t)return e.name;if(l.isUndefined(i)){const i=this.debugConfigurationManager.find(e.name,t);return i&&i.index?this.toValue(i):this.currentValue}return e.name+c.DEFAULT_CONFIGURATION_NAME_SEPARATOR+t+c.DEFAULT_CONFIGURATION_INDEX_SEPARATOR+i}async getCurrentConfiguration(){const e=await this.storageProvider(l.STORAGE_NAMESPACE.DEBUG);return await e.get("currentConfiguration")}async setCurrentConfiguration(e){const t=await this.storageProvider(l.STORAGE_NAMESPACE.DEBUG);await t.set("currentConfiguration",e)}};r.__decorate([n.Autowired(o.IWorkspaceService),r.__metadata("design:type",Object)],f.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(s.DebugConfigurationManager),r.__metadata("design:type",s.DebugConfigurationManager)],f.prototype,"debugConfigurationManager",void 0),r.__decorate([n.Autowired(h.IDebugSessionManager),r.__metadata("design:type",u.DebugSessionManager)],f.prototype,"debugSessionManager",void 0),r.__decorate([n.Autowired(d.DebugViewModel),r.__metadata("design:type",d.DebugViewModel)],f.prototype,"debugViewModel",void 0),r.__decorate([n.Autowired(p.DebugConsoleService),r.__metadata("design:type",p.DebugConsoleService)],f.prototype,"debugConsoleService",void 0),r.__decorate([n.Autowired(l.StorageProvider),r.__metadata("design:type",Function)],f.prototype,"storageProvider",void 0),r.__decorate([n.Autowired(l.PreferenceService),r.__metadata("design:type",Object)],f.prototype,"preferenceService",void 0),r.__decorate([a.observable,r.__metadata("design:type",String)],f.prototype,"currentValue",void 0),r.__decorate([a.observable,r.__metadata("design:type",Boolean)],f.prototype,"float",void 0),r.__decorate([a.observable,r.__metadata("design:type",Boolean)],f.prototype,"isMultiRootWorkspace",void 0),r.__decorate([a.observable,r.__metadata("design:type",Array)],f.prototype,"workspaceRoots",void 0),r.__decorate([a.observable.shallow,r.__metadata("design:type",Array)],f.prototype,"configurationOptions",void 0),r.__decorate([a.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",Promise)],f.prototype,"updateWorkspaceState",null),r.__decorate([a.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Boolean]),r.__metadata("design:returntype",void 0)],f.prototype,"updateFloat",null),r.__decorate([a.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[String]),r.__metadata("design:returntype",void 0)],f.prototype,"updateCurrentValue",null),r.__decorate([a.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],f.prototype,"updateConfigurationOptions",null),f=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],f),t.DebugConfigurationService=f},72559:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(12120),o=i(94184),s=i(34865),a=i(16378),c=i(52488),l=i(32834),u=i(2447),d=i(88774),h=i(45830),p=i(76414);t.DebugConfigurationView=l.observer((()=>{const{configurationOptions:e,toValue:t,currentValue:i,openConfiguration:l,addConfiguration:f,openDebugConsole:g,updateConfiguration:m,start:v,float:y,isMultiRootWorkspace:_,workspaceRoots:b}=s.useInjectable(c.DebugConfigurationService),w=s.localize("debug.action.add.configuration"),S=e=>{let t;if(t="object"==typeof e?e.target.value:e,t.startsWith(p.DEFAULT_ADD_CONFIGURATION_KEY)){const e=t.slice(p.DEFAULT_ADD_CONFIGURATION_KEY.length);f(e?b[e]:b[0])}else{const[e,i]=t.split(p.DEFAULT_CONFIGURATION_NAME_SEPARATOR),[r,n]=i.split(p.DEFAULT_CONFIGURATION_INDEX_SEPARATOR);m(e,r,+n)}},C=e=>e.length?e.map(((e,i)=>{const n=_?`${e.configuration.name} (${new s.URI(e.workspaceFolderUri).displayName})`:e.configuration.name;return s.isElectronRenderer()?r.createElement("option",{key:i,value:t(e),label:n},n):r.createElement(d.Option,{key:i,value:t(e),label:n},n)})):s.isElectronRenderer()?[r.createElement("option",{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:s.localize("debug.action.no.configuration")},s.localize("debug.action.no.configuration"))]:[r.createElement(d.Option,{value:p.DEFAULT_NO_CONFIGURATION_KEY,key:p.DEFAULT_NO_CONFIGURATION_KEY,label:s.localize("debug.action.no.configuration")},s.localize("debug.action.no.configuration"))],E=()=>{if(_){let e=w;const t=b.map(((t,i)=>{const n=`${w} (${new s.URI(t).displayName})`;return e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(22188),s=i(70499),a=i(61853),c=i(34865),l=i(43849),u=i(76414);let d=class{constructor(){this.sessions=[],this.toolBarMenuMap=new Map,this.doStart=()=>this.model.start(),this.doRestart=async()=>{const e=this.instrumentReporter("restart"),t=await this.model.restart();return e(),t},this.doStop=async()=>{if(!this.model.currentSession)return;const e=this.instrumentReporter("stop"),t=await this.model.currentSession.terminate();return e(),t},this.doContinue=async()=>{if(!this.model.currentThread)return;const e=this.instrumentReporter("continue"),t=await this.model.currentThread.continue();return e(),t},this.doPause=async()=>{if(!this.model.currentThread)return;const e=this.instrumentReporter("pause"),t=await this.model.currentThread.pause();return e(),t},this.doStepOver=async()=>{if(!this.model.currentThread)return;const e=this.instrumentReporter("stepOver"),t=await this.model.currentThread.stepOver();return e(),t},this.doStepIn=async()=>{if(!this.model.currentThread)return;const e=this.instrumentReporter("stepIn"),t=await this.model.currentThread.stepIn();return e(),t},this.doStepOut=async()=>{if(!this.model.currentThread)return;const e=this.instrumentReporter("stepOut"),t=await this.model.currentThread.stepOut();return e(),t},this.updateCurrentSession=e=>{this.model.currentSession=e},this.model.onDidChange((()=>{this.updateToolBarMenu(),this.updateModel()}))}updateModel(){this.state=this.model.state,this.currentSession=this.model.currentSession,this.sessions=Array.from(this.model.sessions).filter((e=>e&&e.state>a.DebugState.Inactive)),this.sessionCount=this.sessions.length}updateToolBarMenu(){if(this.currentSession&&this.currentSession.id&&!this.toolBarMenuMap.has(this.currentSession.id)){const e=this.contextMenuService.createMenu({id:l.MenuId.DebugToolBar,contextKeyService:this.contextKeyService.createScoped()});this.currentSession.on("terminated",(()=>{var e;this.toolBarMenuMap.delete(null===(e=this.currentSession)||void 0===e?void 0:e.id)})),this.toolBarMenuMap.set(this.currentSession.id,e)}}instrumentReporter(e){var t,i,r;const n=this.model.currentSession,o=null===(t=n.configuration)||void 0===t?void 0:t.type,s=this.model.currentThread,a=null===(i=null==s?void 0:s.raw)||void 0===i?void 0:i.id;this.model.reportAction(n.id,a,e);const c={type:o,request:null===(r=this.currentSession)||void 0===r?void 0:r.configuration.request,sessionId:n.id,threadId:a};this.model.report(u.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION,e,c);const l=this.model.reportTime(u.DEBUG_REPORT_NAME.DEBUG_TOOLBAR_OPERATION_TIME,c);return()=>{l(e)}}};r.__decorate([n.Autowired(c.IContextKeyService),r.__metadata("design:type",Object)],d.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(l.AbstractContextMenuService),r.__metadata("design:type",l.AbstractContextMenuService)],d.prototype,"contextMenuService",void 0),r.__decorate([n.Autowired(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],d.prototype,"model",void 0),r.__decorate([n.Autowired(c.IReporterService),r.__metadata("design:type",Object)],d.prototype,"reporterService",void 0),r.__decorate([o.observable,r.__metadata("design:type",Number)],d.prototype,"state",void 0),r.__decorate([o.observable,r.__metadata("design:type",Number)],d.prototype,"sessionCount",void 0),r.__decorate([o.observable,r.__metadata("design:type",Object)],d.prototype,"currentSession",void 0),r.__decorate([o.observable.shallow,r.__metadata("design:type",Array)],d.prototype,"sessions",void 0),r.__decorate([o.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],d.prototype,"updateModel",null),r.__decorate([o.action,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],d.prototype,"updateToolBarMenu",null),d=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],d),t.DebugToolbarService=d},2447:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(88774),s=i(34865),a=i(45830),c=i(94184),l=i(22188),u=i(32834),d=i(63804),h=i(16378),p=i(61853),f=i(82627),g=i(52488),m=i(30579),v=i(12120),y=i(19401);let _=class{constructor(){this.x=0,this.line=0,this.enable=!1,this._origin=0,this._last=0,this._y=0}onMouseDown(e){this.enable=!0,this._origin=e.clientX,this._y=e.clientY}onMouseMove(e){e.stopPropagation(),this.enable&&(this.x=e.clientX-this._origin+this._last,this.line=e.clientY-this._y>10?1:0)}onMouseUp(){this.enable=!1,this._last=this.x}};r.__decorate([l.observable,r.__metadata("design:type",Number)],_.prototype,"x",void 0),r.__decorate([l.observable,r.__metadata("design:type",Number)],_.prototype,"line",void 0),r.__decorate([l.observable,r.__metadata("design:type",Boolean)],_.prototype,"enable",void 0),r.__decorate([l.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],_.prototype,"onMouseDown",null),r.__decorate([l.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],_.prototype,"onMouseMove",null),r.__decorate([l.action.bound,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[]),r.__metadata("design:returntype",void 0)],_.prototype,"onMouseUp",null),_=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],_),t.DebugToolbarView=u.observer((e=>{const{state:t,toolBarMenuMap:i,doStop:r,doStepIn:n,doStepOut:l,doStepOver:u,doContinue:g,doRestart:_,doPause:b,currentSession:w,sessions:S,updateCurrentSession:C}=s.useInjectable(m.DebugToolbarService),E=!!w&&"attach"===w.configuration.request&&!f.isExtensionHostDebugging(w.configuration),O=w&&w.id,k=e=>e.map((e=>s.isElectronRenderer()?d.createElement("option",{key:e.id,value:e.id},e.label):d.createElement(o.Option,{key:e.id,label:e.label,value:e.id},e.label))),D=e=>{let t=e;if(s.isElectronRenderer()&&(t=e.target.value),S)for(const e of S)e.id===t&&C(e)};return d.createElement(d.Fragment,null,d.createElement("div",{className:v.kt_debug_action_bar},(t=>{if(t.length>1)return d.createElement("div",{className:c(v.debug_selection)},s.isElectronRenderer()?d.createElement(a.Select,{value:O,onChange:D},k(t)):d.createElement(o.Select,{className:c(v.debug_selection,v.special_radius),size:e.float?"small":"default",value:O,onChange:D},k(t)))})(S.filter((e=>!e.parentSession))),d.createElement("div",{className:v.kt_debug_actions},(e=>e===p.DebugState.Stopped?d.createElement(h.DebugAction,{run:g,icon:"continue",label:s.localize("debug.action.continue")}):d.createElement(h.DebugAction,{run:b,enabled:"number"==typeof e&&e===p.DebugState.Running,icon:"pause",label:s.localize("debug.action.pause")}))(t),d.createElement(h.DebugAction,{run:u,enabled:"number"==typeof t&&t===p.DebugState.Stopped,icon:"step",label:s.localize("debug.action.step-over")}),d.createElement(h.DebugAction,{run:n,enabled:"number"==typeof t&&t===p.DebugState.Stopped,icon:"step-in",label:s.localize("debug.action.step-into")}),d.createElement(h.DebugAction,{run:l,enabled:"number"==typeof t&&t===p.DebugState.Stopped,icon:"step-out",label:s.localize("debug.action.step-out")}),d.createElement(h.DebugAction,{run:_,enabled:"number"==typeof t&&t!==p.DebugState.Inactive,icon:"reload",label:s.localize("debug.action.restart")}),(e=>E?d.createElement(h.DebugAction,{run:r,enabled:"number"==typeof e&&e!==p.DebugState.Inactive,icon:"disconnect",label:s.localize("debug.action.disattach")}):d.createElement(h.DebugAction,{run:r,enabled:"number"==typeof e&&e!==p.DebugState.Inactive,icon:"stop",label:s.localize("debug.action.stop")}))(t),(M=w)&&M.id&&i.has(M.id)?d.createElement(y.InlineMenuBar,{menus:i.get(M.id)}):null)));var M}));const b=u.observer((()=>{const e=s.useInjectable(_),i=s.useInjectable(s.PreferenceService),{state:r}=s.useInjectable(m.DebugToolbarService),n=i.get("debug.toolbar.top")||0,o=i.get("debug.toolbar.height")||0;return r?d.createElement("div",{style:{pointerEvents:e.enable?"all":"none"},className:v.debug_toolbar_container,onMouseMove:t=>e.onMouseMove(t),onMouseUp:t=>e.onMouseUp()},d.createElement("div",{style:{transform:`translateX(${e.x}px) translateY(${n+e.line*o}px)`,height:`${o}px`},className:v.debug_toolbar_wrapper},d.createElement("div",{className:c(v.debug_toolbar_drag_wrapper)},d.createElement("div",{className:c(s.getIcon("drag"),v.debug_toolbar_drag),onMouseDown:t=>e.onMouseDown(t),onMouseMove:t=>e.onMouseMove(t)})),d.createElement(t.DebugToolbarView,{float:!0}))):(e.enable=!1,null)}));t.DebugToolbarOverlayWidget=u.observer((()=>{const{float:e}=s.useInjectable(g.DebugConfigurationService);return e?d.createElement(b,null):null}))},68651:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(65686),s=i(19745),a=i(7634);let c=r=class{constructor(){this._parsedQueries=[]}set filterQuery(e){if(this._parsedQueries=[],(e=e.trim())&&""!==e){const t=a.splitGlobAware(e,",").map((e=>e.trim())).filter((e=>!!e.length));for(const e of t)e.startsWith("!")?this._parsedQueries.push({type:"exclude",query:e.slice(1)}):this._parsedQueries.push({type:"include",query:e})}}filter(e){let t=!1,i=!1;for(const{type:n,query:o}of this._parsedQueries){if("exclude"===n&&r.matchQuery(o,e))return!1;"include"===n&&(t=!0,r.matchQuery(o,e)&&(i=!0))}return t&&i}};c.matchQuery=o.matchesFuzzy,c=r=n.__decorate([s.Injectable({multiple:!0})],c),t.DebugConsoleFilterModel=c},50116:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(68651),a=i(1458);let c=class{constructor(){this._onDidValueChange=new o.Emitter,this._filterText="",this.filterModel=new s.DebugConsoleFilterModel}get onDidValueChange(){return this._onDidValueChange.event}get filterText(){return this._filterText}setFilterText(e){return this._filterText!==e&&(this._filterText=e,this.filterModel.filterQuery=this._filterText,this._onDidValueChange.fire(this._filterText)),this}filter(e){const t=a.ansiToText(e.description);return""===this._filterText||this.filterModel.filter(t)}};c=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],c),t.DebugConsoleFilterService=c},72373:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(32834),o=i(34865),s=i(92406),a=i(91296),c=i(88774),l=i(34865),u=i(50116);t.DebugConsoleFilterView=n.observer((()=>{const e=l.useInjectable(u.DebugConsoleFilterService),[t,i]=r.useState(""),n=a((t=>{i(t),e.setFilterText(t)}),300);return r.useEffect((()=>{const t=e.onDidValueChange((e=>{i(e)}));return()=>{t.dispose()}}),[]),r.createElement("div",{className:s.debug_console_filter},r.createElement(c.Input,{hasClear:!0,className:s.filter_input,value:t,placeholder:o.localize("debug.console.filter.placeholder"),onValueChange:n}))}))},73849:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(88774),s=i(19745),a=i(34865),c=i(30497);let l=r=class extends o.TreeModel{constructor(e){super(),this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),this.onWillUpdateEmitter=new a.Emitter,this._tempScrollOffset=0,this.init(e)}get onWillUpdate(){return this.onWillUpdateEmitter.event}get isScrollBottom(){return this._tempScrollOffset=Math.max(this.state.scrollOffset,this._tempScrollOffset),this._tempScrollOffset===this.state.scrollOffset}init(e){this.root=e,this.root.watcher.on(o.TreeNodeEvent.BranchDidUpdate,(()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{await this.onWillUpdateEmitter.fireAndAwait(),this.dispatchChange()}))}))}};l.DEFAULT_FLUSH_DELAY=100,l=r=n.__decorate([s.Injectable({multiple:!0}),n.__param(0,s.Optional()),n.__metadata("design:paramtypes",[c.ExpressionContainer])],l),t.DebugConsoleTreeModel=l},17754:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(88466),a=i(61853),c=i(93096),l=i(73849);let u=class{constructor(e,t){this.session=e,this.treeModel=t,this.completionKinds=new Map,this.toDispose=new o.DisposableCollection,this.fireDidChange=c((()=>this.onDidChangeEmitter.fire()),50),this.onDidChangeEmitter=new o.Emitter,this.init()}resolveChildren(){return(this.treeModel.root.flattenedBranch||[]).map((e=>this.treeModel.root.getTreeNodeById(e)))}async init(){this.session.on("output",(e=>this.logOutput(this.session,e)))}get onDidChange(){return this.onDidChangeEmitter.event}clear(){this.fireDidChange()}async logOutput(e,t){var i,r;const n=t.body,{category:a,variablesReference:c,source:l,line:u}=n;if(!this.treeModel)return;const d="stderr"===a?o.MessageType.Error:"console"===t.body.category?o.MessageType.Warning:o.MessageType.Info;if("telemetry"!==a){if(c){const t=new s.ExpressionContainer({session:e,variablesReference:c,source:l,line:u},null===(i=this.treeModel)||void 0===i?void 0:i.root);if(await t.hardReloadChildren(!0),t.children)for(const e of t.children)this.treeModel.root.insertItem(e)}else if("string"==typeof n.output)for(const e of n.output.split("\n"))e&&this.treeModel.root.insertItem(new s.AnsiConsoleNode(e,null===(r=this.treeModel)||void 0===r?void 0:r.root,d,l,u));this.fireDidChange()}else this.logger.debug(`telemetry/${t.body.output}`,t.body.data)}async execute(e){var t;this.treeModel.root.insertItem(new s.AnsiConsoleNode(e,this.treeModel.root,o.MessageType.Info));const i=new s.DebugConsoleNode(this.session,e,null===(t=this.treeModel)||void 0===t?void 0:t.root);this.treeModel.root.insertItem(i),this.fireDidChange()}append(e){var t;if(!e)return;const i=this.resolveChildren().slice(-1)[0];i instanceof s.AnsiConsoleNode&&i.description===this.uncompletedItemContent?(this.resolveChildren().pop(),this.uncompletedItemContent+=e):this.uncompletedItemContent=e,this.treeModel.root.insertItem(new s.AnsiConsoleNode(this.uncompletedItemContent,null===(t=this.treeModel)||void 0===t?void 0:t.root,o.MessageType.Info)),this.fireDidChange()}appendLine(e){var t;this.treeModel.root.insertItem(new s.AnsiConsoleNode(e,null===(t=this.treeModel)||void 0===t?void 0:t.root,o.MessageType.Info)),this.fireDidChange()}};r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),u=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optional()),r.__param(1,n.Optional()),r.__metadata("design:paramtypes",[a.DebugSession,l.DebugConsoleTreeModel])],u),t.DebugConsoleSession=u},65874:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(43849),l=i(73849),u=i(35463),d=i(30497),h=i(70499),p=i(17754),f=i(52258),g=i(92406),m=i(76414),v=i(88466);let y=r=class{constructor(){this.debugSessionModelMap=new Map,this._changeEventDispatchQueue=[],this.selectedDecoration=new s.Decoration(g.mod_selected),this.focusedDecoration=new s.Decoration(g.mod_focused),this.contextMenuDecoration=new s.Decoration(g.mod_actived),this.loadingDecoration=new s.Decoration(g.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new a.Emitter,this.onDidUpdateTreeModelEmitter=new a.Emitter,this.treeModelDisposableCollection=new a.DisposableCollection,this.debugConsoleDisposableCollection=new a.DisposableCollection,this.clear=()=>{this.initTreeModel(this.manager.currentSession,!0)},this.collapseAll=()=>{var e;null===(e=this.treeModel)||void 0===e||e.root.collapsedAll()},this.copyAll=()=>{var e;let t="";if((null===(e=this.treeModel)||void 0===e?void 0:e.root)&&this.treeModel.root.children){for(const e of this.treeModel.root.children)t+=this.getValidText(e)+"\n";this.clipboardService.writeText(t.slice(0,-"\n".length))}},this.copy=e=>{e&&this.clipboardService.writeText(this.getValidText(e))},this.activeNodeDecoration=(e,t=!0)=>{var i;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),e){if(this.selectedNodes.length>0)for(const e of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(e);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes=[e],t&&(null===(i=this.treeModel)||void 0===i||i.dispatchChange())}},this.activeNodeActivedDecoration=e=>{var t;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(e),this._contextMenuNode=e,null===(t=this.treeModel)||void 0===t||t.dispatchChange()},this.enactiveNodeDecoration=()=>{var e;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),null===(e=this.treeModel)||void 0===e||e.dispatchChange()},this.handleContextMenu=(e,t)=>{var i;e.stopPropagation(),e.preventDefault();const{x:r,y:n}=e.nativeEvent;let o;t?this.activeNodeActivedDecoration(t):this.enactiveNodeDecoration(),o=t||(null===(i=this.treeModel)||void 0===i?void 0:i.root);const s=this.contextMenuService.createMenu({id:c.MenuId.DebugConsoleContext,contextKeyService:this.contextMenuContextKeyService}),a=s.getMergedMenuNodes();s.dispose(),this.ctxMenuRenderer.show({anchor:{x:r,y:n},menuNodes:a,args:[o]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=e=>{this.activeNodeDecoration(e)},this.handleTwistierClick=(e,t)=>{if(t===s.TreeNodeType.CompositeTreeNode){if(d.DebugConsoleNode.is(e)&&e.available)return this.activeNodeDecoration(e,!1),void this.toggleDirectory(e);if(e.variablesReference)return this.activeNodeDecoration(e,!1),void this.toggleDirectory(e)}this.activeNodeDecoration(e)},this.toggleDirectory=async e=>{e.expanded?this.treeHandle.collapseNode(e):this.treeHandle.expandNode(e)},this.flushEventQueue=()=>{let e;if(!this._changeEventDispatchQueue||0===this._changeEventDispatchQueue.length)return;this._changeEventDispatchQueue.sort(((e,t)=>u.Path.pathDepth(e)-u.Path.pathDepth(t)));const t=[this._changeEventDispatchQueue[0]];for(const e of this._changeEventDispatchQueue)t.some((t=>0===e.indexOf(t)))||t.push(e);return e=f(t.map((e=>async()=>{var t,i;const r=null===(i=null===(t=this.treeModel)||void 0===t?void 0:t.root)||void 0===i?void 0:i.getTreeNodeByPath(e);return r&&s.CompositeTreeNode.is(r)&&await r.refresh(),null}))),this._changeEventDispatchQueue=[],e},this.init()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){var e;return null===(e=this._activeDebugSessionModel)||void 0===e?void 0:e.treeModel}get debugConsoleSession(){var e;return null===(e=this._activeDebugSessionModel)||void 0===e?void 0:e.debugConsoleSession}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}getValidText(e){return e.description}getConsoleModel(e){return this.debugSessionModelMap.get(e)}dispose(){this.disposeTreeModel(),this.disposeDebugConsole()}disposeTreeModel(){this.treeModelDisposableCollection.disposed||this.treeModelDisposableCollection.dispose()}disposeDebugConsole(){this.debugConsoleDisposableCollection.disposed||this.debugConsoleDisposableCollection.dispose()}async init(){this.debugConsoleDisposableCollection.push(this.manager.onDidDestroyDebugSession((e=>{this.debugSessionModelMap.delete(e.id),this.debugSessionModelMap.size>0&&this.initTreeModel(this.manager.currentSession)}))),this.debugConsoleDisposableCollection.push(this.manager.onDidChangeActiveDebugSession((e=>{e.current&&this.initTreeModel(e.current)})))}listenTreeViewChange(){var e,t;this.disposeTreeModel(),this.treeModelDisposableCollection.push(null===(e=this.treeModel)||void 0===e?void 0:e.root.watcher.on(s.TreeNodeEvent.WillResolveChildren,(e=>{this.loadingDecoration.addTarget(e)}))),this.treeModelDisposableCollection.push(null===(t=this.treeModel)||void 0===t?void 0:t.root.watcher.on(s.TreeNodeEvent.DidResolveChildren,(e=>{this.loadingDecoration.removeTarget(e)}))),this.treeModelDisposableCollection.push(this.treeModel.onWillUpdate((()=>{var e;if(0!==this.selectedNodes.length){const t=null===(e=this.treeModel)||void 0===e?void 0:e.root.getTreeNodeByPath(this.selectedNodes[0].path);this.selectedDecoration.addTarget(t)}})))}async initTreeModel(e,t){if(!e)return this._activeDebugSessionModel=void 0,void this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel);const i=e.hasSeparateRepl()?e.id:e.parentSession.id;if(this.debugSessionModelMap.has(i)&&!t){const e=this.debugSessionModelMap.get(i);this._activeDebugSessionModel=e}else{const t=new d.DebugConsoleRoot({});if(!t)return;const r=this.injector.get(l.DebugConsoleTreeModel,[t]),n=this.injector.get(p.DebugConsoleSession,[e,r]);this._activeDebugSessionModel={treeModel:r,debugConsoleSession:n},n.onDidChange((async()=>{if(!r)return;const e=r.root.branchSize,t=n.resolveChildren();r.root.updatePresetChildren(t),e!==t.length&&(this.refresh(),r.isScrollBottom&&await this.treeHandle.ensureVisible(t[t.length-1]),null==r||r.dispatchChange())})),this.debugSessionModelMap.set(i,this._activeDebugSessionModel),this.initDecorations(t),this.listenTreeViewChange()}return this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel),this._activeDebugSessionModel}initDecorations(e){this._decorations=new s.DecorationsManager(e),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(e){this._debugWatchTreeHandle=e}dispatchWatchEvent(e,t,i){const r=e.watchEvents.get(t);r&&r.callback&&r.callback(i)}collapsedAll(){var e;null===(e=this.treeModel)||void 0===e||e.root.collapsedAll()}async refresh(e){if(!e){if(!this.treeModel)return;e=this.treeModel.root}!d.ExpressionContainer.is(e)&&e.parent&&(e=e.parent),this.queueChangeEvent(e.path,(()=>{this.onDidRefreshedEmitter.fire()}))}queueChangeEvent(e,t){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new a.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout((async()=>{var e;await this.flushEventQueue(),null===(e=this.flushEventQueueDeferred)||void 0===e||e.resolve(),this.flushEventQueueDeferred=null,t()}),r.DEFAULT_REFRESH_DELAY)),-1===this._changeEventDispatchQueue.indexOf(e)&&this._changeEventDispatchQueue.push(e)}async execute(e){if(!this.treeModel)return;const t=this.treeModel.root,i=new v.AnsiConsoleNode(e,t);this.dispatchWatchEvent(t,t.path,{type:s.WatchEvent.Added,node:i,id:t.id});const r=new d.DebugConsoleNode(this.manager.currentSession,e,t);await r.evaluate(),this.dispatchWatchEvent(t,t.path,{type:s.WatchEvent.Added,node:r,id:t.id}),this.treeHandle.ensureVisible(r,"end",!0)}};y.DEFAULT_REFRESH_DELAY=200,n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],y.prototype,"injector",void 0),n.__decorate([o.Autowired(c.ICtxMenuRenderer),n.__metadata("design:type",c.ICtxMenuRenderer)],y.prototype,"ctxMenuRenderer",void 0),n.__decorate([o.Autowired(c.AbstractContextMenuService),n.__metadata("design:type",c.AbstractContextMenuService)],y.prototype,"contextMenuService",void 0),n.__decorate([o.Autowired(h.DebugViewModel),n.__metadata("design:type",h.DebugViewModel)],y.prototype,"viewModel",void 0),n.__decorate([o.Autowired(a.IContextKeyService),n.__metadata("design:type",Object)],y.prototype,"contextKeyService",void 0),n.__decorate([o.Autowired(m.IDebugSessionManager),n.__metadata("design:type",Object)],y.prototype,"manager",void 0),n.__decorate([o.Autowired(a.IClipboardService),n.__metadata("design:type",Object)],y.prototype,"clipboardService",void 0),y=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],y),t.DebugConsoleModelService=y},18602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(71734),a=i(76414),c=i(32971),l=i(36439),u=i(58407),d=i(72373),h=i(60481),p=i(65874),f=i(43849);t.DEBUG_CONSOLE_VIEW_ID="debug-console-view";let g=class{registerComponent(e){e.register("debug-console",{id:t.DEBUG_CONSOLE_VIEW_ID,component:c.DebugConsoleView},{title:o.localize("debug.console.panel.title"),priority:8,containerId:a.DEBUG_CONSOLE_CONTAINER_ID,iconClass:o.getIcon("debug"),titleComponent:d.DebugConsoleFilterView})}registerToolbarItems(e){e.registerItem({id:h.DEBUG_COMMANDS.CLEAR_CONSOLE.id,command:h.DEBUG_COMMANDS.CLEAR_CONSOLE.id,iconClass:o.getIcon("clear"),viewId:a.DEBUG_CONSOLE_CONTAINER_ID,tooltip:h.DEBUG_COMMANDS.CLEAR_CONSOLE.label})}registerEditorDocumentModelContentProvider(e){e.registerEditorDocumentModelContentProvider(this.debugConsoleInputDocumentProvider)}registerCommands(e){e.registerCommand(h.DEBUG_COMMANDS.CLEAR_CONSOLE,{execute:()=>{this.debugConsoleModelService.clear()}}),e.registerCommand(h.DEBUG_COMMANDS.COPY_CONSOLE_ITEM,{execute:e=>{this.debugConsoleModelService.copy(e)}}),e.registerCommand(h.DEBUG_COMMANDS.COPY_CONSOLE_ALL,{execute:()=>{this.debugConsoleModelService.copyAll()}}),e.registerCommand(h.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM,{execute:()=>{this.debugConsoleModelService.collapseAll()}})}registerMenus(e){e.registerMenuItem(f.MenuId.DebugConsoleContext,{command:{id:h.DEBUG_COMMANDS.COPY_CONSOLE_ITEM.id,label:o.localize("debug.console.copy")},group:"copy"}),e.registerMenuItem(f.MenuId.DebugConsoleContext,{command:{id:h.DEBUG_COMMANDS.COPY_CONSOLE_ALL.id,label:o.localize("debug.console.copyAll")},group:"copy"}),e.registerMenuItem(f.MenuId.DebugConsoleContext,{command:{id:h.DEBUG_COMMANDS.CLEAR_CONSOLE.id,label:o.localize("debug.console.clear")},group:"other"}),e.registerMenuItem(f.MenuId.DebugConsoleContext,{command:{id:h.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM.id,label:o.localize("debug.console.collapseAll")},group:"other"})}};r.__decorate([n.Autowired(),r.__metadata("design:type",p.DebugConsoleModelService)],g.prototype,"debugConsoleModelService",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",l.DebugConsoleInputDocumentProvider)],g.prototype,"debugConsoleInputDocumentProvider",void 0),g=r.__decorate([s.Domain(o.ComponentContribution,u.BrowserEditorContribution,o.TabBarToolbarContribution,o.CommandContribution,f.MenuContribution)],g),t.DebugConsoleContribution=g},36439:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(81924),s=i(19745),a=i(73607),c=i(65686),l=i(58407),u=i(84859),d=i(34865),h=i(76414),p=i(52215),f=i(65874),g=e=>e.replace(/^\S/,(e=>e.toUpperCase())),m=Object.assign(Object.assign({},l.getSimpleEditorOptions()),{scrollbar:{horizontal:"hidden",vertical:"hidden",handleMouseWheel:!1},acceptSuggestionOnEnter:"on",renderIndentGuides:!1});let v=r=class{constructor(){this._isCommandOrCtrl=!1,this._consoleInputElement=null,this._updateDisposable=null,this._onConsoleInputValueChange=new c.Emitter,this.onConsoleInputValueChange=this._onConsoleInputValueChange.event,this.execute=e=>this.debugConsoleModelService.execute(e),this.createConsoleInput=async()=>{var e;if(!(null===(e=this.inputEditor)||void 0===e?void 0:e.monacoEditor))return;const t=(await this.documentService.createModelReference(this.consoleInputUri)).instance.getMonacoModel();t.updateOptions({tabSize:2}),this._consoleModel=t,this.inputEditor.monacoEditor.setModel(t),setTimeout((()=>{var e;null===(e=this.inputEditor)||void 0===e||e.monacoEditor.layout()}),0)},this.contextKeyService.onDidChangeContext((e=>{if(e.payload.affectsSome(r.keySet)){this.contextKeyService.match("inDebugMode")?this.enable():this.disable()}}))}get isVisible(){const e=this.mainLayoutService.getTabbarHandler(h.DEBUG_CONSOLE_CONTAINER_ID);return e&&e.isVisible}get tree(){return this.debugConsoleModelService}activate(){const e=this.mainLayoutService.getTabbarHandler(h.DEBUG_CONSOLE_CONTAINER_ID);e&&!e.isVisible&&e.activate()}get consoleInputUri(){return new c.URI("debug/console/input").withScheme(c.Schemas.walkThroughSnippet)}get consoleInputElement(){return this._consoleInputElement}async initConsoleInputMonacoInstance(e){if(!e)return;this._consoleInputElement=e,this.inputEditor=await this.editorService.createCodeEditor(this._consoleInputElement,Object.assign({},m));const t=this.inputEditor.monacoEditor;t.onKeyDown((async e=>{if(e.keyCode===o.KeyCode.Enter){const e=t.getValue();await this.execute(e),t.setValue("")}}))}get consoleInputValue(){return this._consoleModel&&this._consoleModel.getValue()||""}async enable(){return this._updateDisposable=o.languages.registerCompletionItemProvider("plaintext",{triggerCharacters:["."],provideCompletionItems:async(e,t,i)=>{var r;if(!(null===(r=this.manager.currentSession)||void 0===r?void 0:r.capabilities.supportsCompletionsRequest))return;if(e.uri.toString()!==this.consoleInputUri.toString())return null;const n=this.manager.currentSession,{triggerCharacter:s}=i;let a=e.getWordAtPosition(t);if(a&&n){const{word:e,startColumn:i,endColumn:r}=a;return{suggestions:(await n.sendRequest("completions",{text:e,column:r,frameId:n.currentFrame&&n.currentFrame.raw.id})).body.targets.map((e=>({label:e.label,insertText:e.text||e.label,sortText:e.sortText,kind:o.languages.CompletionItemKind[g(e.type||"property")],range:{startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i,endColumn:r}})))}}if(a=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column-1}),a&&n&&s){const{word:e,endColumn:i}=a;return{suggestions:(await n.sendRequest("completions",{text:e+s,column:i+1,frameId:n.currentFrame&&n.currentFrame.raw.id})).body.targets.map((e=>({label:e.label,insertText:e.text||e.label,sortText:e.sortText,kind:o.languages.CompletionItemKind[g(e.type||"property")],range:{startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i+1,endColumn:i+1}})))}}return null}}),await this.createConsoleInput()}disable(){var e,t;this._updateDisposable&&(this._updateDisposable.dispose(),this._updateDisposable=null),null===(e=this.inputEditor)||void 0===e||e.monacoEditor.setValue(""),null===(t=this.inputEditor)||void 0===t||t.monacoEditor.setModel(null)}};v.keySet=new Set(["inDebugMode"]),n.__decorate([s.Autowired(f.DebugConsoleModelService),n.__metadata("design:type",f.DebugConsoleModelService)],v.prototype,"debugConsoleModelService",void 0),n.__decorate([s.Autowired(a.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"mainLayoutService",void 0),n.__decorate([s.Autowired(l.IEditorDocumentModelService),n.__metadata("design:type",Object)],v.prototype,"documentService",void 0),n.__decorate([s.Autowired(u.EditorCollectionService),n.__metadata("design:type",u.EditorCollectionService)],v.prototype,"editorService",void 0),n.__decorate([s.Autowired(c.CommandRegistry),n.__metadata("design:type",Object)],v.prototype,"commands",void 0),n.__decorate([s.Autowired(d.IContextKeyService),n.__metadata("design:type",Object)],v.prototype,"contextKeyService",void 0),n.__decorate([s.Autowired(h.IDebugSessionManager),n.__metadata("design:type",p.DebugSessionManager)],v.prototype,"manager",void 0),v=r=n.__decorate([s.Injectable(),n.__metadata("design:paramtypes",[])],v),t.DebugConsoleService=v;let y=class{handlesScheme(e){return e===c.Schemas.walkThroughSnippet}async provideEditorDocumentModelContent(){return this.debugConsole.consoleInputValue}isReadonly(){return!1}get onDidChangeContent(){return this.debugConsole.onConsoleInputValueChange}preferLanguageForUri(){return"plaintext"}};n.__decorate([s.Autowired(v),n.__metadata("design:type",v)],y.prototype,"debugConsole",void 0),y=n.__decorate([s.Injectable()],y),t.DebugConsoleInputDocumentProvider=y},32971:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(32834),s=i(92406),a=i(34865),c=i(36439),l=i(88774),u=i(88466),d=i(88422),h=i(50116);t.DebugConsoleView=o.observer((({viewState:e})=>{const i=a.useInjectable(c.DebugConsoleService),n=a.useInjectable(h.DebugConsoleFilterService),{tree:o}=i,u=r.createRef(),{height:d,width:p}=e,[f,g]=r.useState(),[m,v]=r.useState(""),y=r.createRef();r.useEffect((()=>{i.initConsoleInputMonacoInstance(u.current)}),[u.current]),r.useEffect((()=>{o.onDidUpdateTreeModel((async e=>{e&&await e.treeModel.root.ensureLoaded(),g(e)}));const e=n.onDidValueChange((e=>{v(e)}));return()=>{o.removeNodeDecoration(),e.dispose()}}),[]);const _=e=>{o.handleTreeHandler(Object.assign(Object.assign({},e),{getModel:()=>null==f?void 0:f.treeModel,hasDirectFocus:()=>y.current===document.activeElement}))},b=(e,t,i)=>{e.stopPropagation();const{handleTwistierClick:r}=o;t&&r(t,i)},w=(e,t)=>{const{handleContextMenu:i}=o;i(e,t)},S=e=>{const{enactiveNodeDecoration:t}=o;t()},C=()=>({pre:"",post:"",extract:e=>e.description?e.description:e.name});return r.createElement("div",{className:s.debug_console,onContextMenu:e=>{const{handleContextMenu:t}=o;t(e)},onClick:e=>{const{enactiveNodeDecoration:t}=o;t()}},f?r.createElement("div",{className:s.debug_console_output,tabIndex:-1,onBlur:S,ref:y,"data-name":t.DEBUG_CONSOLE_TREE_FIELD_NAME},r.createElement(l.RecycleTree,{height:d-26,width:p,itemHeight:t.DEBUG_CONSOLE_TREE_NODE_HEIGHT,onReady:_,filter:m,filterProvider:{fuzzyOptions:C,filterAlways:!0},model:f.treeModel,overflow:"auto"},(e=>{const i=o.decorations.getDecorations(e.item);return r.createElement(t.DebugConsoleRenderedNode,{item:e.item,itemType:e.itemType,decorations:i,onClick:b,onTwistierClick:b,onContextMenu:w,defaultLeftPadding:14,leftPadding:8})}))):null,r.createElement("div",{className:s.variable_repl_bar},r.createElement("div",{className:s.variable_repl_editor,ref:u})))})),t.DebugConsoleRenderedNode=({item:e,decorations:i,defaultLeftPadding:o,leftPadding:c,onClick:h,onTwistierClick:p,onContextMenu:f,itemType:g})=>{const m=`${(o||8)+(e.depth||0)*(c||0)}px`,v={height:t.DEBUG_CONSOLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_CONSOLE_TREE_NODE_HEIGHT}px`,paddingLeft:m},y=()=>{var t,i,n;return u.AnsiConsoleNode.is(e)?r.createElement("div",{className:s.debug_console_node_status,title:null===(t=e.source)||void 0===t?void 0:t.path},(null===(i=e.source)||void 0===i?void 0:i.name)?`${null===(n=e.source)||void 0===n?void 0:n.name}:${e.line}`:""):r.createElement("div",{className:s.debug_console_node_status},e.badge)};return r.createElement("div",{key:e.id,onClick:t=>{h(t,e,l.CompositeTreeNode.is(e)?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},onContextMenu:t=>{0!==t.nativeEvent.which&&(g!==l.TreeNodeType.TreeNode&&g!==l.TreeNodeType.CompositeTreeNode||f&&f(t,e,g))},title:e.tooltip,className:n(s.debug_console_node,i?i.classlist:null),style:v,"data-id":e.id},r.createElement("div",{className:n(s.debug_console_node_content)},(e=>{if(l.CompositeTreeNode.is(e))return t=e,o=p,i&&(null==i?void 0:i.classlist.indexOf(s.mod_loading))>-1?r.createElement("div",{className:n(s.debug_console_node_segment,s.expansion_toggle)},r.createElement(d.Loading,null)):u.DebugConsoleNode.is(t)&&!t.variablesReference?null:r.createElement("div",{onClick:e=>{o(e,t,g)},className:n(s.debug_console_node_segment,s.expansion_toggle,a.getIcon("right"),{[`${s.mod_collapsed}`]:!t.expanded})});var t,o})(e),r.createElement("div",{className:s.debug_console_node_overflow_wrap},(_=e,u.AnsiConsoleNode.is(_)?null:r.createElement("div",{className:n(s.debug_console_node_segment,!u.DebugConsoleNode.is(_)&&s.debug_console_node_display_name,s.debug_console_variable,!u.DebugConsoleVariableContainer.is(_)&&e.description?s.name:s.info)},u.DebugConsoleVariableContainer.is(_)?_.description:u.DebugConsoleNode.is(_)?"":_.name,u.DebugConsoleVariableContainer.is(_)||!_.description||u.DebugConsoleNode.is(_)?"":":")),(t=>{const i=t.description?t.description.replace("function","f"):"",o=[s.debug_console_variable];return u.AnsiConsoleNode.is(t)?r.createElement("div",{className:n(s.debug_console_node_segment,s.debug_console_node_display_name)},t.template()):u.DebugConsoleVariableContainer.is(t)?null:("number"===e.variableType||"boolean"===e.variableType||"string"===e.variableType?o.push(s[e.variableType]):isNaN(+i)?/^true|false$/i.test(i)?o.push(s.boolean):/^(['"]).*\1$/.test(i)&&o.push(s.string):o.push(s.number),r.createElement("div",{className:n(s.debug_console_node_segment_grow,s.debug_console_node_description,...o)},i))})(e)),r.createElement("div",{className:n(s.debug_console_node_segment,s.debug_console_node_tail)},y())));var _},t.DEBUG_CONSOLE_TREE_NODE_HEIGHT=22,t.DEBUG_CONSOLE_TREE_FIELD_NAME="DEBUG_CONSOLE_TREE_FIELD"},70499:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(61853),o=i(52215),s=i(34865),a=i(19745),c=i(40740);let l=class{constructor(){this.onDidChangeEmitter=new s.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.onDidChangeBreakpointsEmitter=new s.Emitter,this.onDidChangeBreakpoints=this.onDidChangeBreakpointsEmitter.event,this.toDispose=new s.DisposableCollection(this.onDidChangeEmitter,this.onDidChangeBreakpointsEmitter),this._sessions=new Set}fireDidChange(){this.onDidChangeEmitter.fire(void 0)}fireDidChangeBreakpoints(e){this.onDidChangeBreakpointsEmitter.fire(e)}get sessions(){return this._sessions.values()}get sessionCount(){return this._sessions.size}push(e){this._sessions.has(e)||(this._sessions.add(e),this.fireDidChange())}delete(e){return!!this._sessions.delete(e)&&(this.fireDidChange(),!0)}get session(){return this.sessions.next().value}get id(){return this.session&&this.session.id||"-1"}get label(){return this.session&&this.session.label||"Unknown Session"}has(e){return!!e&&this._sessions.has(e)}init(e){e&&this.push(e),this.toDispose.push(this.manager.onDidChangeActiveDebugSession((({previous:e,current:t})=>{this.has(e)&&!this.has(t)&&this.fireDidChange()}))),this.toDispose.push(this.manager.onDidChange((e=>{this.has(e)&&this.fireDidChange()}))),this.toDispose.push(this.manager.onDidDestroyDebugSession((e=>{this.has(e)&&this.fireDidChange()})))}dispose(){this.toDispose.dispose()}get threads(){if(this.manager.currentSession)return this.manager.currentSession.getThreads((()=>!0))}get currentSession(){const{currentSession:e}=this.manager;return this.has(e)&&e||this.session}set currentSession(e){this.manager.currentSession=e}get state(){const{currentSession:e}=this;return e&&e.state||n.DebugState.Inactive}get currentThread(){const{currentSession:e}=this;return e&&e.currentThread}get currentFrame(){const{currentThread:e}=this;return e&&e.currentFrame}async start(){const{session:e}=this;if(!e)return;const t=await this.manager.start(e.options);t&&(this._sessions.delete(e),this._sessions.add(t),this.fireDidChange())}async restart(){const{currentSession:e}=this;if(!e)return;const t=await this.manager.restart(e);t!==e&&(this._sessions.delete(e),this._sessions.add(t)),this.fireDidChange()}report(...e){return this.manager.report(...e)}reportTime(...e){return this.manager.reportTime(...e)}reportAction(...e){return this.manager.reportAction(...e)}};r.__decorate([a.Autowired(c.IDebugSessionManager),r.__metadata("design:type",o.DebugSessionManager)],l.prototype,"manager",void 0),l=r.__decorate([a.Injectable()],l),t.DebugViewModel=l},41222:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(32834),s=i(34865),a=i(88774),c=i(76414),l=i(51755),u=i(98637);t.DebugStackFramesView=o.observer((e=>{const{viewState:t,frames:i,thread:o,indent:d=0,session:h}=e,[p,f]=r.useState(),[g,m]=r.useState(!1),[v,y]=r.useState([]),[_,b]=r.useState(""),[w,S]=r.useState(!1),C=s.useInjectable(c.IDebugSessionManager),E=s.useInjectable(u.DebugCallStackService),O=e=>{e&&e.source&&e.source.open({},e)};r.useEffect((()=>{y([...i]);const e=new s.DisposableCollection;return e.push(C.onDidChangeActiveDebugSession((({previous:e})=>{e&&e!==o.session&&f(void 0)}))),h&&e.push(h.onDidChangeCallStack((()=>{y([...o.frames])}))),()=>{e.dispose()}}),[]),r.useEffect((()=>{if(o){const e=o.frames.find((e=>!!e.source));e&&(f(e.raw.id),O(e))}}),[o.frameCount]),r.useEffect((()=>{if(o)if(o.stoppedDetails){const{framesErrorMessage:e,totalFrames:t}=o.stoppedDetails;b(e||""),t&&t>o.frameCount?S(!0):S(!1)}else S(!1);else S(!1)}),[v]);const k=()=>r.createElement("div",{className:l.debug_stack_frames_item,onClick:async()=>{m(!0),await(async()=>{var e,t;if(!o)return;const i="number"==typeof(null===(e=o.stoppedDetails)||void 0===e?void 0:e.totalFrames)?(null===(t=o.stoppedDetails)||void 0===t?void 0:t.totalFrames)-o.frameCount:void 0,r=await o.fetchFrames(i);y(r)})(),m(!1)}},r.createElement("span",{className:l.debug_stack_frames_load_more},s.localize("debug.stack.loadMore")));if(_)return r.createElement("div",{className:l.debug_stack_frames},(D=_,r.createElement("div",{className:l.debug_stack_frames_item},r.createElement("span",{className:l.debug_stack_frames_error_message,title:D},D))));var D;return r.createElement(a.RecycleList,{data:v,template:({data:e})=>{const t=e,i="label"===t.raw.presentationHint,o="subtle"===t.raw.presentationHint;return r.createElement("div",{style:{paddingLeft:`${d}px`},className:n(l.debug_stack_frames_item,p===t.raw.id&&l.selected,!(t.raw&&t.raw.source&&t.raw.source.name)&&l.debug_stack_frames_item_hidden),onClick:()=>{i||o||(C.currentSession=t.session,t.session.currentThread=t.thread,f(t.raw.id),O(t))},onContextMenu:t=>E.handleContextMenu(t,e)},r.createElement("span",{className:n(l.debug_stack_frames_item_label,i&&l.label,o&&l.subtle)},t.raw&&t.raw.name),r.createElement("span",{className:l.debug_stack_frames_item_description},t.raw&&t.raw.source&&t.raw.source.name||s.localize("debug.stack.frame.noSource")),r.createElement("div",{className:n(!s.isUndefined(t.raw.line)&&l.debug_stack_frames_item_badge)},t.raw&&t.raw.line,!s.isUndefined(t.raw.line)&&":",t.raw&&t.raw.column))},itemHeight:22,width:t.width,height:g||w?22*(v.length+1):22*v.length,footer:g||w?()=>g?r.createElement("div",{className:l.debug_stack_frames_item},r.createElement("span",{className:l.debug_stack_frames_load_more},s.localize("debug.stack.loading"))):w?k():null:void 0})}))},15659:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(34865),s=i(61853),a=i(54194),c=i(66914),l=i(76414),u=i(51755);t.DebugStackSessionView=e=>{const{session:i,viewState:d,indent:h}=e,p=o.useInjectable(l.IDebugSessionManager),[f,g]=r.useState([]),[m,v]=r.useState([]),[y,_]=r.useState([]),[b,w]=r.useState([]),[S,C]=r.useState(!0),[E,O]=r.useState(!1),[k,D]=r.useState(!0),M=p.sessions.length>1,x=i.supportsThreadIdCorrespond,T=()=>{var e,t;const r=p.sessions.filter((e=>e.parentSession)),n=[];for(;r[0];)(null===(t=p.getSession(null===(e=r[0].parentSession)||void 0===e?void 0:e.id))||void 0===t?void 0:t.id)===i.id&&n.push(r[0]),r.shift();return n},A=async()=>{D(!0);const e=await i.fetchThreads();D(!1),v(e)};r.useEffect((()=>{const e=p.onDidCreateDebugSession((()=>{const e=T();w(e)})),t=p.onDidDestroyDebugSession((()=>{const e=T();w(e)}));return()=>{e.dispose(),t.dispose()}}),[]),r.useEffect((()=>{g(Array.from(i.threads));const e=new o.DisposableCollection;return e.push(i.onDidChange((()=>{g([...i.threads])}))),e.push(i.onDidThread((async({body:{reason:e}})=>{i.supportsThreadIdCorrespond&&i.state===s.DebugState.Stopped&&"started"===e&&await A()}))),e.push(i.onDidStop((async()=>{if(!i.supportsThreadIdCorrespond)return;const e=Array.from(i.multipleThreadPaused.values());_(e),await A()}))),e.push(i.onDidContinued((async()=>{if(!i.supportsThreadIdCorrespond)return;const e=Array.from(i.multipleThreadPaused.values());_(e)}))),()=>{e.dispose()}}),[]);if((e=>{if(e.threads.some((e=>e.frameCount>0)))return!1;const t=T();return 1===t.length&&!!t[0].compact})(i)){const e=T();return r.createElement("div",{className:u.debug_stack_item},e.map((e=>r.createElement(t.DebugStackSessionView,{key:e.id,viewState:d,session:e,indent:1}))))}return r.createElement("div",{className:u.debug_stack_item},r.createElement("div",{style:{paddingLeft:10*h+"px"}},M&&r.createElement("div",{className:u.debug_stack_item_label,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1)},(x||f.length>0)&&[r.createElement("div",{className:S?o.getIcon("down"):o.getIcon("right"),onClick:()=>C(!S)}),r.createElement("div",{className:n([o.getIcon("debug"),u.debug_session_icon])})],r.createElement("div",{className:u.debug_stack_item_label_title},i.label),E&&r.createElement(c.DebugStackOperationView,{session:i})),x&&S?y.map((e=>r.createElement(a.DebugStackThreadView,{key:e.id,indent:M?16:0,viewState:d,thread:e,session:i}))):null,!x&&(!M||S)&&f.map((e=>r.createElement(a.DebugStackThreadView,{key:e.id,indent:M?16:0,viewState:d,thread:e,session:i}))),b.length>0&&b.map((e=>S&&r.createElement(t.DebugStackSessionView,{key:e.id,viewState:d,session:e,indent:1}))),i.state!==s.DebugState.Stopped?null:x&&S?k?r.createElement("div",{className:u.debug_stack_item_loading},r.createElement("span",null,"正在加载线程...")):m.map((e=>!i.hasInMultipleThreadPaused(e.raw.id)&&r.createElement(a.DebugStackThreadView,{key:e.id,indent:M?16:0,viewState:d,thread:e,session:i}))):void 0))}},54194:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(41222),s=i(66914),a=i(76414),c=i(51755);t.DebugStackThreadView=e=>{var t;const{thread:i,viewState:l,indent:u,session:d}=e,h=n.useInjectable(a.IDebugSessionManager),[p,f]=r.useState(!0),g=h.sessions.length>1,m=!!(null===(t=h.currentSession)||void 0===t?void 0:t.supportsThreadIdCorrespond)||(h.sessions.length>1||h.sessions[0].threadCount>1);return r.useEffect((()=>{const e=new n.DisposableCollection;return e.push(d.onDidChangeCallStack((()=>{i.stopped&&h.currentThread&&h.currentThread.id===i.id?f(!0):f(!1)}))),()=>{e.dispose()}}),[]),r.createElement("div",{className:c.debug_stack_item},m&&r.createElement("div",{style:{paddingLeft:`${u}px`},className:c.debug_stack_item_label},i.frames.length>0?r.createElement("div",{className:p?n.getIcon("down"):n.getIcon("right"),onClick:()=>f(!p)}):r.createElement("div",{style:{width:14}}),r.createElement("div",{className:c.debug_threads_item},i.raw.name),r.createElement(r.Fragment,null,r.createElement("div",{className:c.debug_threads_operation},r.createElement(s.DebugStackOperationView,{thread:i})),r.createElement("span",{className:c.debug_threads_description},i.stopped&&i.stoppedDetails?i.raw.id===i.stoppedDetails.threadId?`${n.localize("debug.stack.frame.because")} ${i.stoppedDetails.reason} ${n.localize("debug.stack.frame.stopped")}`:n.localize("debug.stack.frame.stopped"):n.localize("debug.stack.frame.running")))),(!m||p)&&i.frames.length>0&&r.createElement(o.DebugStackFramesView,{indent:m?g?46:30:8,viewState:l,thread:i,frames:i.frames,session:d}))}},66914:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(16378),s=i(30579),a=i(51755);t.DebugStackOperationView=e=>{const{session:t,thread:i}=e,{doStop:c,doStepIn:l,doStepOut:u,doStepOver:d,doContinue:h,doRestart:p,doPause:f,updateCurrentSession:g}=n.useInjectable(s.DebugToolbarService);if(t&&!i){const e=e=>{g(t),e()};return r.createElement("div",{className:a.debug_stack_session_operations},r.createElement(o.DebugAction,{run:()=>e(p),icon:"reload",label:n.localize("debug.action.restart")}),r.createElement(o.DebugAction,{run:()=>e(c),icon:"stop",label:n.localize("debug.action.stop")}))}if(!t&&i){const{stopped:e}=i,t=e=>{i.session.currentThread=i,e()},s=e=>e?r.createElement(o.DebugAction,{run:()=>t(h),icon:"continue",label:n.localize("debug.action.continue")}):r.createElement(o.DebugAction,{run:()=>t(f),enabled:!0,icon:"pause",label:n.localize("debug.action.pause")});return r.createElement("div",{className:a.debug_stack_thread_operations},s(e),r.createElement(o.DebugAction,{run:()=>t(d),enabled:e,icon:"step",label:n.localize("debug.action.step-over")}),r.createElement(o.DebugAction,{run:()=>t(l),enabled:e,icon:"step-in",label:n.localize("debug.action.step-into")}),r.createElement(o.DebugAction,{run:()=>t(u),enabled:e,icon:"step-out",label:n.localize("debug.action.step-out")}))}return null}},98637:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(19745),s=i(43849);let a=class{constructor(){this.handleContextMenu=(e,t)=>{e.stopPropagation(),e.preventDefault();const{x:i,y:r}=e.nativeEvent,n=this.contextMenuService.createMenu({id:s.MenuId.DebugCallStackContext,contextKeyService:this.contextMenuContextKeyService}),o=n.getMergedMenuNodes();n.dispose();this.ctxMenuRenderer.show({anchor:{x:i,y:r},menuNodes:o,args:[t.source?t.source.uri.toString():"",{sessionId:t.session.id,threadId:t.thread.id,frameId:t.raw.id}]})}}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}};r.__decorate([o.Autowired(n.IContextKeyService),r.__metadata("design:type",Object)],a.prototype,"contextKeyService",void 0),r.__decorate([o.Autowired(s.AbstractContextMenuService),r.__metadata("design:type",s.AbstractContextMenuService)],a.prototype,"contextMenuService",void 0),r.__decorate([o.Autowired(s.ICtxMenuRenderer),r.__metadata("design:type",s.ICtxMenuRenderer)],a.prototype,"ctxMenuRenderer",void 0),a=r.__decorate([o.Injectable()],a),t.DebugCallStackService=a},6191:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(32834),o=i(34865),s=i(15659),a=i(76414);t.DebugCallStackView=n.observer((({viewState:e})=>{const t=o.useInjectable(a.IDebugSessionManager),[i,n]=r.useState([]);return r.useEffect((()=>{const e=t.onDidCreateDebugSession((e=>{i.push(e),n([...i])})),r=t.onDidDestroyDebugSession((e=>{const t=i.findIndex((t=>t.id===e.id));i.splice(t,1),n([...i])}));return()=>{e.dispose(),r.dispose()}}),[]),r.createElement("div",{style:{width:e.width}},i.filter((e=>!e.parentSession)).map((t=>r.createElement(s.DebugStackSessionView,{key:t.id,viewState:e,session:t,indent:0}))))}))},9499:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(88774),s=i(19745),a=i(34865),c=i(30497);let l=r=class extends o.TreeModel{constructor(e){super(),this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),this.onWillUpdateEmitter=new a.Emitter,this.init(e)}get onWillUpdate(){return this.onWillUpdateEmitter.event}init(e){this.root=e,this.root.watcher.on(o.TreeNodeEvent.BranchDidUpdate,(()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{await this.onWillUpdateEmitter.fireAndAwait(),this.dispatchChange()}))}))}};l.DEFAULT_FLUSH_DELAY=100,l=r=n.__decorate([s.Injectable({multiple:!0}),n.__param(0,s.Optional()),n.__metadata("design:paramtypes",[c.ExpressionContainer])],l),t.DebugVariablesModel=l},64617:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(43849),l=i(9499),u=i(35463),d=i(52258),h=i(30497),p=i(70499),f=i(36271);let g=r=class{constructor(){this.allTreeModel=new Map,this._changeEventDispatchQueue=[],this.selectedDecoration=new s.Decoration(f.mod_selected),this.focusedDecoration=new s.Decoration(f.mod_focused),this.contextMenuDecoration=new s.Decoration(f.mod_actived),this.loadingDecoration=new s.Decoration(f.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new a.Emitter,this.onDidUpdateTreeModelEmitter=new a.Emitter,this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new a.DisposableCollection,this.activeNodeDecoration=(e,t=!0)=>{var i;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),e){if(this.selectedNodes.length>0)for(const e of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(e);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes=[e],t&&(null===(i=this.treeModel)||void 0===i||i.dispatchChange())}},this.activeNodeActivedDecoration=e=>{var t;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(e),this._contextMenuNode=e,null===(t=this.treeModel)||void 0===t||t.dispatchChange()},this.enactiveNodeDecoration=()=>{var e;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),null===(e=this.treeModel)||void 0===e||e.dispatchChange()},this.handleContextMenu=(e,t)=>{var i;e.stopPropagation(),e.preventDefault();const{x:r,y:n}=e.nativeEvent;let o;t?this.activeNodeActivedDecoration(t):this.enactiveNodeDecoration(),o=t||(null===(i=this.treeModel)||void 0===i?void 0:i.root);const s=this.contextMenuService.createMenu({id:c.MenuId.DebugVariablesContext,contextKeyService:this.contextMenuContextKeyService}),a=s.getMergedMenuNodes();s.dispose(),this.ctxMenuRenderer.show({anchor:{x:r,y:n},menuNodes:a,args:[o]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=e=>{this.activeNodeDecoration(e)},this.handleTwistierClick=(e,t)=>{t===s.TreeNodeType.CompositeTreeNode?(this.activeNodeDecoration(e,!1),this.toggleDirectory(e)):this.activeNodeDecoration(e)},this.toggleDirectory=async e=>{e.expanded?this.treeHandle.collapseNode(e):this.treeHandle.expandNode(e)},this.flushEventQueue=()=>{let e;if(!this._changeEventDispatchQueue||0===this._changeEventDispatchQueue.length)return;this._changeEventDispatchQueue.sort(((e,t)=>u.Path.pathDepth(e)-u.Path.pathDepth(t)));const t=[this._changeEventDispatchQueue[0]];for(const e of this._changeEventDispatchQueue)t.some((t=>0===e.indexOf(t)))||t.push(e);return e=d(t.map((e=>async()=>{var t,i;const r=null===(i=null===(t=this.treeModel)||void 0===t?void 0:t.root)||void 0===i?void 0:i.watchEvents.get(e);return r&&"function"==typeof r.callback&&await r.callback({type:s.WatchEvent.Changed,path:e}),null}))),this._changeEventDispatchQueue=[],e},this.listenViewModelChange()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugVariablesTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenViewModelChange(){this.viewModel.onDidChange((async()=>{this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{var e,t,i,r,n,o,s;if(this.viewModel&&this.viewModel.currentSession&&!this.viewModel.currentSession.terminated)if((null===(e=this.viewModel.currentSession)||void 0===e?void 0:e.currentFrame)&&this.allTreeModel.has(null===(t=this.viewModel.currentSession)||void 0===t?void 0:t.currentFrame)){const e=this.allTreeModel.get(null===(i=this.viewModel.currentSession)||void 0===i?void 0:i.currentFrame);this._activeTreeModel!==e&&(this._activeTreeModel=e)}else{const e=await this.initTreeModel(this.viewModel.currentSession);(null===(r=this.viewModel.currentSession)||void 0===r?void 0:r.currentFrame)&&e&&this.allTreeModel.set(null===(n=this.viewModel.currentSession)||void 0===n?void 0:n.currentFrame,e)}else(null===(o=this.viewModel.currentSession)||void 0===o?void 0:o.currentFrame)&&this.allTreeModel.delete(null===(s=this.viewModel.currentSession)||void 0===s?void 0:s.currentFrame),this._activeTreeModel=void 0;this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel)}))}))}listenTreeViewChange(){var e,t;this.dispose(),this.disposableCollection.push(null===(e=this.treeModel)||void 0===e?void 0:e.root.watcher.on(s.TreeNodeEvent.WillResolveChildren,(e=>{this.loadingDecoration.addTarget(e)}))),this.disposableCollection.push(null===(t=this.treeModel)||void 0===t?void 0:t.root.watcher.on(s.TreeNodeEvent.DidResolveChildren,(e=>{this.loadingDecoration.removeTarget(e)}))),this.disposableCollection.push(this.treeModel.onWillUpdate((()=>{var e;if(0!==this.selectedNodes.length){const t=null===(e=this.treeModel)||void 0===e?void 0:e.root.getTreeNodeByPath(this.selectedNodes[0].path);this.selectedDecoration.addTarget(t)}})))}async initTreeModel(e){const t=new h.DebugVariableRoot(e);if(t)return this._activeTreeModel=this.injector.get(l.DebugVariablesModel,[t]),this.initDecorations(t),this.listenTreeViewChange(),this._activeTreeModel}initDecorations(e){this._decorations=new s.DecorationsManager(e),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.loadingDecoration),this.decorations.removeDecoration(this.contextMenuDecoration))}handleTreeHandler(e){this._debugVariablesTreeHandle=e}async refresh(e){if(!e){if(!this.treeModel)return;e=this.treeModel.root}!h.ExpressionContainer.is(e)&&e.parent&&(e=e.parent),this.queueChangeEvent(e.path,(()=>{this.onDidRefreshedEmitter.fire()}))}queueChangeEvent(e,t){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new a.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout((async()=>{var e;await this.flushEventQueue(),null===(e=this.flushEventQueueDeferred)||void 0===e||e.resolve(),this.flushEventQueueDeferred=null,t()}),r.DEFAULT_FLUSH_EVENT_DELAY)),-1===this._changeEventDispatchQueue.indexOf(e)&&this._changeEventDispatchQueue.push(e)}async copyValue(e){const t=await(async()=>{if(!e.session||!e.session.capabilities.supportsValueFormattingOptions)return e.value;try{const{variable:{evaluateName:t}}=e;if(t){const i=await e.session.evaluate(t,"clipboard");if(i)return i.result}return""}catch(e){return""}})();t&&await this.clipboardService.writeText(t)}};g.DEFAULT_FLUSH_EVENT_DELAY=100,g.DEFAULT_TRIGGER_DELAY=200,n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],g.prototype,"injector",void 0),n.__decorate([o.Autowired(c.ICtxMenuRenderer),n.__metadata("design:type",c.ICtxMenuRenderer)],g.prototype,"ctxMenuRenderer",void 0),n.__decorate([o.Autowired(c.AbstractContextMenuService),n.__metadata("design:type",c.AbstractContextMenuService)],g.prototype,"contextMenuService",void 0),n.__decorate([o.Autowired(p.DebugViewModel),n.__metadata("design:type",p.DebugViewModel)],g.prototype,"viewModel",void 0),n.__decorate([o.Autowired(a.IContextKeyService),n.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),n.__decorate([o.Autowired(a.IClipboardService),n.__metadata("design:type",Object)],g.prototype,"clipboardService",void 0),g=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],g),t.DebugVariablesModelService=g},77194:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(43849),o=i(19745),s=i(34865),a=i(64617),c=i(60481),l=i(92224),u=i(76414);let d=class{registerCommands(e){e.registerCommand(c.DEBUG_COMMANDS.SET_VARIABLE_VALUE,{execute:async e=>{var t;this.reporterService.point(null===u.DEBUG_REPORT_NAME||void 0===u.DEBUG_REPORT_NAME?void 0:u.DEBUG_REPORT_NAME.DEBUG_VARIABLES,c.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id);const i=await this.quickInputService.open({placeHolder:s.localize("deugger.menu.setValue.param"),value:e.description.replace(/^\"(.*)\"$/,"$1")});if(null!=i){try{await e.setValue(i)}catch(e){this.messageService.error(e.message)}null===(t=this.debugVariablesModelService.treeModel)||void 0===t||t.dispatchChange()}}}),e.registerCommand(c.DEBUG_COMMANDS.COPY_VARIABLE_VALUE,{execute:async e=>{this.debugVariablesModelService.copyValue(e)}})}registerMenus(e){e.registerMenuItem(n.MenuId.DebugVariablesContext,{command:{id:c.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id,label:s.localize("deugger.menu.setValue")},order:1}),e.registerMenuItem(n.MenuId.DebugVariablesContext,{command:{id:c.DEBUG_COMMANDS.COPY_VARIABLE_VALUE.id,label:s.localize("deugger.menu.copyValue")},order:1})}};r.__decorate([o.Autowired(s.IQuickInputService),r.__metadata("design:type",Object)],d.prototype,"quickInputService",void 0),r.__decorate([o.Autowired(a.DebugVariablesModelService),r.__metadata("design:type",a.DebugVariablesModelService)],d.prototype,"debugVariablesModelService",void 0),r.__decorate([o.Autowired(l.IMessageService),r.__metadata("design:type",Object)],d.prototype,"messageService",void 0),r.__decorate([o.Autowired(s.IReporterService),r.__metadata("design:type",Object)],d.prototype,"reporterService",void 0),d=r.__decorate([s.Domain(n.MenuContribution,s.CommandContribution)],d),t.VariablesPanelContribution=d},77370:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(32834),s=i(88774),a=i(30497),c=i(64617),l=i(36271),u=i(94184),d=i(88422);t.DEBUG_VARIABLE_TREE_FIELD_NAME="DEBUG_VARIABLE_TREE_FIELD",t.DebugVariableView=o.observer((({viewState:e})=>{const{width:i,height:o}=e,u=r.createRef(),[d,h]=r.useState(),p=n.useInjectable(c.DebugVariablesModelService);r.useEffect((()=>(p.onDidUpdateTreeModel((async e=>{if(e&&(await p.treeModel.root.ensureLoaded(),e.root instanceof a.DebugVariableRoot)){const t=e.root.children||[];if(t.length>0&&t.every((e=>!e.expanded))){const e=t.find((e=>!1===e.getRawScope().expensive));e&&p.toggleDirectory(e)}}h(e)})),()=>{p.removeNodeDecoration()})),[]);const f=e=>{p.handleTreeHandler(Object.assign(Object.assign({},e),{getModel:()=>d,hasDirectFocus:()=>u.current===document.activeElement}))},g=(e,t,i)=>{e.stopPropagation();const{handleTwistierClick:r}=p;t&&r(t,i)},m=(e,t)=>{const{handleContextMenu:i}=p;i(e,t)};return r.createElement("div",{className:l.debug_variables_container,tabIndex:-1,ref:u,onContextMenu:e=>{const{handleContextMenu:t}=p;t(e)},onClick:e=>{const{enactiveNodeDecoration:t}=p;t()},onBlur:e=>{const{enactiveNodeDecoration:t}=p;t()},"data-name":t.DEBUG_VARIABLE_TREE_FIELD_NAME},d?r.createElement(s.RecycleTree,{height:o,width:i,itemHeight:22,onReady:f,model:d,placeholder:()=>r.createElement("span",null),overflow:"auto"},(e=>{const i=p.decorations.getDecorations(e.item);return r.createElement(t.DebugVariableRenderedNode,{item:e.item,itemType:e.itemType,decorations:i,onClick:g,onTwistierClick:g,onContextMenu:m,defaultLeftPadding:8,leftPadding:8})})):r.createElement("span",null))})),t.DebugVariableRenderedNode=({item:e,decorations:i,defaultLeftPadding:o,leftPadding:c,onClick:h,onTwistierClick:p,onContextMenu:f,itemType:g})=>{const m=`${(o||8)+(e.depth||0)*(c||0)+(a.ExpressionContainer.is(e)?0:16)}px`,v={height:t.DEBUG_VARIABLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_VARIABLE_TREE_NODE_HEIGHT}px`,paddingLeft:m},y=()=>r.createElement("div",{className:l.debug_variables_node_status},e.badge);return r.createElement("div",{key:e.id,onClick:t=>{h(t,e,s.CompositeTreeNode.is(e)?s.TreeNodeType.CompositeTreeNode:s.TreeNodeType.TreeNode)},onContextMenu:t=>{0!==t.nativeEvent.which&&(g!==s.TreeNodeType.TreeNode&&g!==s.TreeNodeType.CompositeTreeNode||f&&f(t,e,g))},title:e.tooltip,className:u(l.debug_variables_node,i?i.classlist:null),style:v,"data-id":e.id},r.createElement("div",{className:u(l.debug_variables_node_content)},(e=>{if(s.CompositeTreeNode.is(e))return t=e,o=p,i&&(null==i?void 0:i.classlist.indexOf(l.mod_loading))>-1?r.createElement("div",{className:u(l.debug_variables_node_segment,l.expansion_toggle)},r.createElement(d.Loading,null)):r.createElement("div",{onClick:e=>{o(e,t,g)},className:u(l.debug_variables_node_segment,l.expansion_toggle,n.getIcon("right"),{[`${l.mod_collapsed}`]:!t.expanded})});var t,o})(e),r.createElement("div",{className:l.debug_variables_node_overflow_wrap},(_=e,r.createElement("div",{className:u(l.debug_variables_node_segment,l.debug_variables_node_display_name,l.debug_variables_variable,_.description?l.name:"")},_.name,_.description?":":"")),(t=>{const i=t.description?t.description.replace("function","f"):"",n=[l.debug_variables_variable];return"number"===e.variableType||"boolean"===e.variableType||"string"===e.variableType?n.push(l[e.variableType]):isNaN(+i)?/^true|false$/i.test(i)?n.push(l.boolean):/^(['"]).*\1$/.test(i)&&n.push(l.string):n.push(l.number),r.createElement("div",{className:u(l.debug_variables_node_segment_grow,l.debug_variables_node_description,...n)},i)})(e)),r.createElement("div",{className:u(l.debug_variables_node_segment,l.debug_variables_node_tail)},y())));var _},t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=22},64750:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(88774),s=i(19745),a=i(34865),c=i(30497);let l=r=class extends o.TreeModel{constructor(e){super(),this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),this.onWillUpdateEmitter=new a.Emitter,this.init(e)}get onWillUpdate(){return this.onWillUpdateEmitter.event}init(e){this.root=e,this.root.watcher.on(o.TreeNodeEvent.BranchDidUpdate,(()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{await this.onWillUpdateEmitter.fireAndAwait(),this.dispatchChange()}))}))}};l.DEFAULT_FLUSH_DELAY=100,l=r=n.__decorate([s.Injectable({multiple:!0}),n.__param(0,s.Optional()),n.__metadata("design:paramtypes",[c.ExpressionContainer])],l),t.DebugWatchModel=l},20560:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(43849),l=i(64750),u=i(35463),d=i(30497),h=i(70499),p=i(2859),f=i(52258),g=i(31912);let m=r=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new s.Decoration(g.mod_selected),this.focusedDecoration=new s.Decoration(g.mod_focused),this.contextMenuDecoration=new s.Decoration(g.mod_actived),this.loadingDecoration=new s.Decoration(g.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new a.Emitter,this.onDidUpdateTreeModelEmitter=new a.Emitter,this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new a.DisposableCollection,this.loadedDeferred=new a.Deferred,this.activeNodeDecoration=(e,t=!0)=>{var i;if(this.contextMenuNode&&(this.focusedDecoration.removeTarget(this.contextMenuNode),this.selectedDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),e){if(this.selectedNodes.length>0)for(const e of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(e);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes=[e],t&&(null===(i=this.treeModel)||void 0===i||i.dispatchChange())}},this.activeNodeActivedDecoration=e=>{var t;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(e),this._contextMenuNode=e,null===(t=this.treeModel)||void 0===t||t.dispatchChange()},this.enactiveNodeDecoration=()=>{var e;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),null===(e=this.treeModel)||void 0===e||e.dispatchChange()},this.handleContextMenu=(e,t)=>{var i;e.stopPropagation(),e.preventDefault();const{x:r,y:n}=e.nativeEvent;let o;t?this.activeNodeActivedDecoration(t):this.enactiveNodeDecoration(),o=t||(null===(i=this.treeModel)||void 0===i?void 0:i.root);const s=this.contextMenuService.createMenu({id:c.MenuId.DebugWatchContext,contextKeyService:this.contextMenuContextKeyService}),a=s.getMergedMenuNodes();s.dispose(),this.ctxMenuRenderer.show({anchor:{x:r,y:n},menuNodes:a,args:[o]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=e=>{this.activeNodeDecoration(e)},this.handleTwistierClick=(e,t)=>{if(t===s.TreeNodeType.CompositeTreeNode){if(d.DebugWatchNode.is(e)&&e.available)return this.activeNodeDecoration(e,!1),void this.toggleDirectory(e);if(e.variablesReference)return this.activeNodeDecoration(e,!1),void this.toggleDirectory(e)}this.activeNodeDecoration(e)},this.toggleDirectory=async e=>{e.expanded?this.treeHandle.collapseNode(e):this.treeHandle.expandNode(e)},this.proxyPrompt=e=>{let t=!1;const i=async i=>{if(!t){if(t=!0,i)if(e instanceof s.NewPromptHandle){const t=e.parent;if(e.addAddonAfter("loading_indicator"),t.session)this.debugWatch.addWatchExpression(i),this.initTreeModel();else{const e=new d.DebugWatchNode(t.session,i,t);this.dispatchWatchEvent(t.path,{type:s.WatchEvent.Added,node:e,id:t.id}),this.debugWatch.addWatchExpression(i)}}else if(e instanceof s.RenamePromptHandle){const t=e.target,r=t.parent;if(e.addAddonAfter("loading_indicator"),r.session)this.debugWatch.renameWatchExpression(t.name,i),this.initTreeModel();else{const e=new u.Path(t.path).dir.join(i).toString();this.dispatchWatchEvent(r.path,{type:s.WatchEvent.Moved,oldPath:t.path,newPath:e}),this.debugWatch.renameWatchExpression(t.name,i)}}return!0}};e.destroyed||(e.onCommit(i),e.onBlur(i))},this.flushEventQueue=()=>{let e;if(!this._changeEventDispatchQueue||0===this._changeEventDispatchQueue.length)return;this._changeEventDispatchQueue.sort(((e,t)=>u.Path.pathDepth(e)-u.Path.pathDepth(t)));const t=[this._changeEventDispatchQueue[0]];for(const e of this._changeEventDispatchQueue)t.some((t=>0===e.indexOf(t)))||t.push(e);return e=f(t.map((e=>async()=>{var t,i;const r=null===(i=null===(t=this.treeModel)||void 0===t?void 0:t.root)||void 0===i?void 0:i.watchEvents.get(e);return r&&"function"==typeof r.callback&&await r.callback({type:s.WatchEvent.Changed,path:e}),null}))),this._changeEventDispatchQueue=[],e},this.init()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}async save(e=[]){const t=await this.storageProvider(a.STORAGE_NAMESPACE.DEBUG);await t.set(r.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,e)}async load(){const e=await this.storageProvider(a.STORAGE_NAMESPACE.DEBUG),t=await e.get(r.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,[]);await this.debugWatch.updateWatchExpressions(t),this.loadedDeferred.resolve()}async init(){await this.loadedDeferred.promise,this.initTreeModel(),this.listenDebugWatchChange()}listenDebugWatchChange(){this.debugWatch.onDidChange((async()=>{this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((async()=>{this.initTreeModel()}))})),this.debugWatch.onDidVariableChange((async()=>{this.refresh()})),this.debugWatch.onDidExpressionChange((e=>{this.save(e)}))}listenTreeViewChange(){var e,t;this.dispose(),this.disposableCollection.push(null===(e=this.treeModel)||void 0===e?void 0:e.root.watcher.on(s.TreeNodeEvent.WillResolveChildren,(e=>{this.loadingDecoration.addTarget(e)}))),this.disposableCollection.push(null===(t=this.treeModel)||void 0===t?void 0:t.root.watcher.on(s.TreeNodeEvent.DidResolveChildren,(e=>{this.loadingDecoration.removeTarget(e)}))),this.disposableCollection.push(this.treeModel.onWillUpdate((()=>{var e;if(0!==this.selectedNodes.length){const t=null===(e=this.treeModel)||void 0===e?void 0:e.root.getTreeNodeByPath(this.selectedNodes[0].path);this.selectedDecoration.addTarget(t)}})))}async initTreeModel(){const e=await this.debugWatch.getRoot();if(e)return this._activeTreeModel=this.injector.get(l.DebugWatchModel,[e]),this.initDecorations(e),this.listenTreeViewChange(),this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel),this._activeTreeModel}initDecorations(e){this._decorations=new s.DecorationsManager(e),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(e){this._debugWatchTreeHandle=e}async newDebugWatchNodePrompt(){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptNewTreeNode(this.treeModel.root))}async renameDebugWatchNodePrompt(e){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptRename(e))}removeDebugWatchNode(e){this.debugWatch.removeWatchExpression(e.name),e.session?this.initTreeModel():this.dispatchWatchEvent(e.parent.path,{type:s.WatchEvent.Removed,path:e.path})}async copyValue(e){const t=await e.getClipboardValue();t&&await this.clipboardService.writeText(t)}async clearAllExpression(){this.debugWatch.updateWatchExpressions([]),await this.initTreeModel(),this.save()}dispatchWatchEvent(e,t){var i;const r=null===(i=this.treeModel)||void 0===i?void 0:i.root.watchEvents.get(e);r&&r.callback&&r.callback(t)}collapsedAll(){var e;null===(e=this.treeModel)||void 0===e||e.root.collapsedAll()}async refresh(e){if(!e){if(!this.treeModel)return;e=this.treeModel.root}!d.ExpressionContainer.is(e)&&e.parent&&(e=e.parent),this.queueChangeEvent(e.path,(()=>{this.onDidRefreshedEmitter.fire()}))}queueChangeEvent(e,t){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new a.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout((async()=>{var e;await this.flushEventQueue(),null===(e=this.flushEventQueueDeferred)||void 0===e||e.resolve(),this.flushEventQueueDeferred=null,t()}),r.DEFAULT_REFRESH_DELAY)),-1===this._changeEventDispatchQueue.indexOf(e)&&this._changeEventDispatchQueue.push(e)}};m.DEFAULT_REFRESH_DELAY=100,m.DEFAULT_TRIGGER_DELAY=200,m.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY="watchers",n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],m.prototype,"injector",void 0),n.__decorate([o.Autowired(c.ICtxMenuRenderer),n.__metadata("design:type",c.ICtxMenuRenderer)],m.prototype,"ctxMenuRenderer",void 0),n.__decorate([o.Autowired(c.AbstractContextMenuService),n.__metadata("design:type",c.AbstractContextMenuService)],m.prototype,"contextMenuService",void 0),n.__decorate([o.Autowired(h.DebugViewModel),n.__metadata("design:type",h.DebugViewModel)],m.prototype,"viewModel",void 0),n.__decorate([o.Autowired(p.DebugWatch),n.__metadata("design:type",p.DebugWatch)],m.prototype,"debugWatch",void 0),n.__decorate([o.Autowired(a.IContextKeyService),n.__metadata("design:type",Object)],m.prototype,"contextKeyService",void 0),n.__decorate([o.Autowired(a.StorageProvider),n.__metadata("design:type",Function)],m.prototype,"storageProvider",void 0),n.__decorate([o.Autowired(a.IClipboardService),n.__metadata("design:type",Object)],m.prototype,"clipboardService",void 0),m=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],m),t.DebugWatchModelService=m},57296:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(43849),o=i(19745),s=i(34865),a=i(60481),c=i(76414),l=i(20560),u=i(43849);let d=class{registerCommands(e){e.registerCommand(a.DEBUG_COMMANDS.ADD_WATCHER,{execute:()=>{this.debugWatchModelService.newDebugWatchNodePrompt()}}),e.registerCommand(a.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.collapsedAll()}}),e.registerCommand(a.DEBUG_COMMANDS.REMOVE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.clearAllExpression()}}),e.registerCommand(a.DEBUG_COMMANDS.REMOVE_WATCHER,{execute:e=>{this.debugWatchModelService.removeDebugWatchNode(e)}}),e.registerCommand(a.DEBUG_COMMANDS.EDIT_WATCHER,{execute:e=>{this.debugWatchModelService.renameDebugWatchNodePrompt(e)}}),e.registerCommand(a.DEBUG_COMMANDS.COPY_WATCHER_VALUE,{execute:e=>{this.debugWatchModelService.copyValue(e)}})}registerToolbarItems(e){e.registerItem({id:a.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,command:a.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,viewId:c.DEBUG_WATCH_ID,tooltip:s.localize("debug.watch.removeAll")}),e.registerItem({id:a.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,command:a.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,viewId:c.DEBUG_WATCH_ID,tooltip:s.localize("debug.watch.collapseAll"),when:"inDebugMode"}),e.registerItem({id:a.DEBUG_COMMANDS.ADD_WATCHER.id,command:a.DEBUG_COMMANDS.ADD_WATCHER.id,viewId:c.DEBUG_WATCH_ID,tooltip:s.localize("debug.watch.add"),when:"inDebugMode"})}registerMenus(e){e.registerMenuItem(u.MenuId.DebugWatchContext,{command:{id:a.DEBUG_COMMANDS.ADD_WATCHER.id,label:s.localize("debug.watch.add")},when:"inDebugMode",group:"0_operator"}),e.registerMenuItem(u.MenuId.DebugWatchContext,{command:{id:a.DEBUG_COMMANDS.EDIT_WATCHER.id,label:s.localize("debug.watch.edit")},group:"0_operator"}),e.registerMenuItem(u.MenuId.DebugWatchContext,{command:{id:a.DEBUG_COMMANDS.COPY_WATCHER_VALUE.id,label:s.localize("debug.watch.copyValue")},when:"inDebugMode",group:"0_operator"}),e.registerMenuItem(u.MenuId.DebugWatchContext,{command:{id:a.DEBUG_COMMANDS.REMOVE_WATCHER.id,label:s.localize("debug.watch.remove")},group:"1_operator"}),e.registerMenuItem(u.MenuId.DebugWatchContext,{command:{id:a.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,label:s.localize("debug.watch.removeAll")},group:"1_operator"})}async onStart(){await this.debugWatchModelService.load()}};r.__decorate([o.Autowired(l.DebugWatchModelService),r.__metadata("design:type",l.DebugWatchModelService)],d.prototype,"debugWatchModelService",void 0),d=r.__decorate([s.Domain(s.ClientAppContribution,n.MenuContribution,s.CommandContribution,s.TabBarToolbarContribution)],d),t.WatchPanelContribution=d},93618:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(32834),s=i(88774),a=i(30497),c=i(20560),l=i(31912),u=i(94184),d=i(88422);t.DEBUG_WATCH_TREE_FIELD_NAME="DEBUG_WATCH_TREE_FIELD",t.AdaptiveTree=s.RecycleTreeAdaptiveDecorator(s.RecycleTree),t.DebugWatchView=o.observer((({viewState:e})=>{const{width:i,height:o}=e,s=r.createRef(),[a,u]=r.useState(),d=n.useInjectable(c.DebugWatchModelService);r.useEffect((()=>{h()}),[]);const h=async()=>{const e=d.treeModel;return e&&(await e.root.ensureLoaded(),u(e)),d.onDidUpdateTreeModel((async e=>{e&&await e.root.ensureLoaded(),u(e)})),()=>{d.removeNodeDecoration()}},p=e=>{d.handleTreeHandler(Object.assign(Object.assign({},e),{getModel:()=>a,hasDirectFocus:()=>s.current===document.activeElement}))},f=(e,t,i)=>{e.stopPropagation();const{handleTwistierClick:r}=d;t&&r(t,i)},g=(e,t)=>{const{handleContextMenu:i}=d;i(e,t)};return r.createElement("div",{className:l.debug_watch_container,tabIndex:-1,ref:s,onContextMenu:e=>{const{handleContextMenu:t}=d;t(e)},onClick:e=>{const{enactiveNodeDecoration:t}=d;t()},onBlur:e=>{const{enactiveNodeDecoration:t}=d;t()},"data-name":t.DEBUG_WATCH_TREE_FIELD_NAME},a?r.createElement(t.AdaptiveTree,{height:o,width:i,itemHeight:22,onReady:p,model:a,placeholder:()=>r.createElement("span",null)},(e=>{const i=d.decorations.getDecorations(e.item);return r.createElement(t.DebugWatchRenderedNode,{item:e.item,itemType:e.itemType,decorations:i,onClick:f,onTwistierClick:f,onContextMenu:g,defaultLeftPadding:12,leftPadding:8})})):r.createElement("span",null))})),t.DebugWatchRenderedNode=({item:e,decorations:i,defaultLeftPadding:o,leftPadding:c,onClick:h,onTwistierClick:p,onContextMenu:f,itemType:g})=>{const m=g===s.TreeNodeType.RenamePrompt,v=g===s.TreeNodeType.NewPrompt,y=m||v;let _;_=`${(o||8)+(e.depth||0)*(c||0)}px`;const b={height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_WATCH_TREE_NODE_HEIGHT}px`,paddingLeft:_},w=()=>r.createElement("div",{className:l.debug_watch_node_status},e.badge),S=(e,t)=>i&&(null==i?void 0:i.classlist.indexOf(l.mod_loading))>-1?r.createElement("div",{className:u(l.debug_watch_node_segment,l.expansion_toggle)},r.createElement(d.Loading,null)):r.createElement("div",{onClick:i=>{t(i,e,g)},className:u(l.debug_watch_node_segment,l.expansion_toggle,n.getIcon("right"),{[`${l.mod_collapsed}`]:!e.expanded})});return r.createElement("div",{key:e.id,onClick:t=>{h(t,e,s.CompositeTreeNode.is(e)?s.TreeNodeType.CompositeTreeNode:s.TreeNodeType.TreeNode)},onContextMenu:t=>{0!==t.nativeEvent.which&&(g!==s.TreeNodeType.TreeNode&&g!==s.TreeNodeType.CompositeTreeNode||f&&f(t,e,g))},title:e.tooltip,className:u(l.debug_watch_node,i?i.classlist:null),style:b,"data-id":e.id},r.createElement("div",{className:u(l.debug_watch_node_content)},(e=>{if(a.DebugWatchNode.is(e)){if(e.available&&e.variablesReference)return S(e,p)}else if(a.ExpressionContainer.is(e)&&e.variablesReference)return S(e,p)})(e),r.createElement("div",{style:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT},className:y?l.debug_watch_node_prompt_wrap:l.debug_watch_node_overflow_wrap},(C=e,y&&C instanceof s.PromptHandle?r.createElement("div",{className:u(l.debug_watch_node_segment,l.debug_watch_node_inputbox)},r.createElement("div",{className:u("input-box",l.debug_watch_node_prompt_box)},r.createElement(C.ProxiedInput,{wrapperStyle:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,padding:"0 5px"}}))):r.createElement("div",{className:u(l.debug_watch_node_segment,l.debug_watch_node_display_name,l.debug_watch_variable,C.description?l.name:"")},C.name,C.description?":":"")),(t=>{const i=t.description?t.description.replace("function","f"):"",n=[l.debug_watch_variable];return y?null:("number"===e.variableType||"boolean"===e.variableType||"string"===e.variableType?n.push(l[e.variableType]):isNaN(+i)?/^true|false$/i.test(i)?n.push(l.boolean):/^(['"]).*\1$/.test(i)&&n.push(l.string):n.push(l.number),r.createElement("div",{className:u(l.debug_watch_node_segment_grow,l.debug_watch_node_description,...n)},i))})(e)),r.createElement("div",{className:u(l.debug_watch_node_segment,l.debug_watch_node_tail)},w())));var C},t.DEBUG_WATCH_TREE_NODE_HEIGHT=22},14169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_CONSOLE_CONTAINER_ID="debug-console-container",t.DEBUG_CONTAINER_ID="debug",t.DEBUG_WATCH_ID="debug-watch",t.DEBUG_THREAD_ID="debug-thread",t.DEBUG_VARIABLES_ID="debug-variable",t.DEBUG_BREAKPOINTS_ID="debug-breakpoints",t.DEBUG_WELCOME_ID="debug-welcome",t.DEBUG_STACK_ID="debug-stack",t.DEBUG_FLOATING_CLICK_WIDGET="debug.overlayWidget.floatingClickWidget"},48246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_SESSION_CLOSE_WHILE_RECIVE_CLOSE_EVENT={reson:"Recive chnanel close event",code:200}},38731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.is=function(e){return!!e&&"object"==typeof e&&"type"in e&&"name"in e&&"request"in e}}(t.DebugConfiguration||(t.DebugConfiguration={})),t.DEFAULT_ADD_CONFIGURATION_KEY="__ADD_CONF__",t.DEFAULT_NO_CONFIGURATION_KEY="__NO_CONF__",t.DEFAULT_CONFIGURATION_NAME_SEPARATOR="__CONF__",t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR="__INDEX__"},92928:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84969:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditor=Symbol("DebugEditor")},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugAdapterSession=Symbol("DebugAdapterSession"),t.DebugAdapterSessionFactory=Symbol("DebugAdapterSessionFactory"),t.DebugAdapterFactory=Symbol("DebugAdapterFactory"),t.DebugAdapterContribution=Symbol("DebugAdapterContribution"),t.DebugModelFactory=Symbol("DebugModelFactory"),t.IDebugModel=Symbol("IDebugModel")},29906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.launchSchemaUri="vscode://schemas/launch"},66514:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.DebugAdapterPath="DebugAdaptor",t.IDebugServer=Symbol("DebugServer"),t.IDebugService=Symbol("DebugService"),function(e){e.NotFound=r.ApplicationError.declare(-41e3,(e=>({message:`'${e}' debugger type is not supported.`,data:{type:e}})))}(t.DebugError||(t.DebugError={}))},95577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.is=function(e){return"id"in e}}(t.InternalDebugSessionOptions||(t.InternalDebugSessionOptions={}))},40740:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSession=Symbol("DebugSession"),t.IDebugSessionManager=Symbol("DebugSessionManager");let i=1;t.getSequenceId=function(){return i++}},76414:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(38731),t),r.__exportStar(i(66514),t),r.__exportStar(i(48246),t),r.__exportStar(i(8898),t),r.__exportStar(i(40740),t),r.__exportStar(i(95577),t),r.__exportStar(i(84969),t),r.__exportStar(i(92928),t),r.__exportStar(i(29906),t),r.__exportStar(i(80834),t),r.__exportStar(i(14169),t)},80834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEBUG_SESSION_START_TIME="debugSessionStartTime",e.DEBUG_PRE_LAUNCH_TASK_TIME="debugPreLaunchTaskTime",e.DEBUG_TOOLBAR_OPERATION_TIME="debugToolBarOperationTime",e.DEBUG_TOOLBAR_OPERATION="debugToolBarOperation",e.DEBUG_PANEL_OPERATION_FOLDEXPR="debugPanelOperationFoldexpr",e.DEBUG_WATCH="debugWatch",e.DEBUG_VARIABLES="debugVariables",e.DEBUG_BREAKPOINT="debugBreakpoint",e.DEBUG_ADAPTER_PROTOCOL_TIME="debugAdapterProtocolTime",e.DEBUG_STOPPED="debugStopped",e.DEBUG_UI_FRONTEND_TIME="debugFrontEndTime"}(t.DEBUG_REPORT_NAME||(t.DEBUG_REPORT_NAME={}))},76195:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(76414),t)},10586:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(53188),a=i(29332),c=i(50777),l=i(65686);class u{constructor(){this._data=a.TernarySearchTree.forPaths()}affectsResource(e){return this._data.get(e.toString())||void 0!==this._data.findSuperstr(e.toString())}static debouncer(e,t){if(e||(e=new u),Array.isArray(t))for(const i of t)e._data.set(i.toString(),!0);else e._data.set(t.toString(),!0);return e}}class d{constructor(e,t){this.source=e,this.thenable=t}}class h{constructor(e,t,i){this._provider=e,this._uriEmitter=t,this._flushEmitter=i,this.data=a.TernarySearchTree.forPaths(),this._dispoable=this._provider.onDidChange((e=>{if(e)for(const t of e)this._fetchData(t);else this.data.clear(),this._flushEmitter.fire({affectsResource:()=>!0})}))}dispose(){this._dispoable.dispose(),this.data.clear()}knowsAbout(e){return Boolean(this.data.get(e.toString()))||Boolean(this.data.findSuperstr(e.toString()))}getOrRetrieve(e,t,i){const r=e.toString();let n=this.data.get(r);if(void 0===n&&(n=this._fetchData(e)),!n||n instanceof d||i(n,!1),t){const e=this.data.findSuperstr(r);if(e)for(let t=e.next();!t.done;t=e.next())!t.value||t.value instanceof d||i(t.value,!0)}}_fetchData(e){const t=this.data.get(e.toString());t instanceof d&&(t.source.cancel(),this.data.delete(e.toString()));const i=new o.CancellationTokenSource,r=this._provider.provideDecorations(e,i.token);if(o.isThenable(r)){const t=new d(i,Promise.resolve(r).then((i=>{this.data.get(e.toString())===t&&this._keepItem(e,i)})).catch((i=>{s.isPromiseCanceledError(i)||this.data.get(e.toString())!==t||this.data.delete(e.toString())})));return this.data.set(e.toString(),t),null}return this._keepItem(e,r)}_keepItem(e,t){const i=t||null,r=this.data.set(e.toString(),i);return(i||r)&&this._uriEmitter.fire(e),i}}function p(e){return l.asArray(e).map((({color:e,letter:t})=>`${e}/${t}`)).join(",")}let f=class extends o.Disposable{constructor(){super(...arguments),this.logger=l.getDebugLogger(),this._data=new c.LinkedList,this._onDidChangeDecorationsDelayed=new o.Emitter,this._onDidChangeDecorations=new o.Emitter,this.onDidChangeDecorations=o.Event.any(this._onDidChangeDecorations.event,o.Event.debounce(this._onDidChangeDecorationsDelayed.event,u.debouncer,void 0,void 0,500))}dispose(){o.dispose(this._onDidChangeDecorations),o.dispose(this._onDidChangeDecorationsDelayed)}registerDecorationsProvider(e){this.logger.log("DecorationService#registerDecorationsProvider",e);const t=new h(e,this._onDidChangeDecorationsDelayed,this._onDidChangeDecorations),i=this._data.push(t);return this._onDidChangeDecorations.fire({affectsResource:()=>!0}),o.toDisposable((()=>{i(),this._onDidChangeDecorations.fire({affectsResource:e=>t.knowsAbout(e)}),t.dispose()}))}getDecoration(e,t){const i=[];let r=!1;for(let n=this._data.iterator(),o=n.next();!o.done;o=n.next())o.value.getOrRetrieve(e,t,((e,t)=>{t&&!e.bubble||(i.push(e),r=t||r)}));if(0!==i.length){return this.asDecoration(i,r)}}asDecoration(e,t){e.sort(((e,t)=>(t.weight||0)-(e.weight||0)));const i=function(e){const t=l.asArray(e);if(t.length)return{key:p(e),color:t[0].color,badge:t.filter((e=>!l.isFalsyOrWhitespace(e.letter))).map((e=>e.letter)).join(","),tooltip:t.filter((e=>!l.isFalsyOrWhitespace(e.tooltip))).map((e=>e.tooltip)).join(" • ")}}(e);return i&&t&&(i.badge="•",i.tooltip=o.localize("bubbleTitle","Contains emphasized items")),i}};f=r.__decorate([n.Injectable()],f),t.FileDecorationsService=f},55412:(e,t,i)=>{"use strict";const r=i(70655),n=i(19745),o=i(34865),s=i(89285),a=i(10586);let c=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:s.IDecorationsService,useClass:a.FileDecorationsService}]}};c=r.__decorate([n.Injectable()],c),t.q=c},89285:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);class n extends r.Disposable{}t.IDecorationsService=n},5597:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(89285),t)},67142:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(5597),t)},92385:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(91296),o=i(19745),s=i(34865),a=i(65777),c=i(35463),l=i(91672),u=i(5778),d=i(75871),h=i(51565);let p=class extends s.WithEventBus{constructor(){super(...arguments),this._onDidUpdateBreadCrumb=new s.Emitter,this.onDidUpdateBreadCrumb=this._onDidUpdateBreadCrumb.event,this.debouncedFireUriEvent=new Map}handlesUri(e){return"file"===e.scheme}provideBreadCrumbForUri(e,t){return this.getFileParts(e).concat(this.getDocumentSymbolParts(e,t))}getFileParts(e){const t=this.workspaceService.workspace?new s.URI(this.workspaceService.workspace.uri):void 0;let i,r;t&&t.isEqualOrParent(e)?(i=t,r=t.relative(e)):(i=s.URI.from({scheme:e.scheme,authority:e.authority}),r=e.path);let n=i.path;const o=[];for(const t of r.toString().split(c.Path.separator).filter((e=>!!e))){n=n.join(t);const r=i.withPath(n);o.push(this.createFilePartBreadCrumbUri(r,!r.isEqual(e)))}return o}createFilePartBreadCrumbUri(e,t){const i={name:e.path.base,icon:this.labelService.getIcon(e,{isDirectory:t}),getSiblings:async()=>{const t=s.URI.from({scheme:e.scheme}).withPath(e.path.dir),i=await this.fileServiceClient.getFileStat(t.toString()),r=[];let n=-1;return i&&i.children&&i.children.length>0&&g(i.children).forEach(((t,i)=>{r.push(this.createFilePartBreadCrumbUri(new s.URI(t.uri),t.isDirectory)),-1===n&&e.toString()===t.uri&&(n=i)})),{parts:r,currentIndex:n}}};return t?i.getChildren=async()=>{const t=await this.fileServiceClient.getFileStat(e.toString()),i=[];return t&&t.children&&t.children.length>0&&g(t.children).forEach(((e,t)=>{i.push(this.createFilePartBreadCrumbUri(new s.URI(e.uri),e.isDirectory))})),i}:i.onClick=()=>{this.commandService.executeCommand(s.EDITOR_COMMANDS.OPEN_RESOURCE.id,e)},i}getDocumentSymbolParts(e,t){if(!t)return[];const i=this.documentSymbolStore.getDocumentSymbol(e);if(i&&i.length>0){const e=f(i,t.monacoEditor.getPosition());return e.length>0?e.map((e=>this.createFromDocumentSymbol(e,t))):[{name:"...",getSiblings:()=>({parts:i.sort(((e,t)=>v(e.range,t.range))).map((e=>this.createFromDocumentSymbol(e,t))),currentIndex:-1})}]}return[]}createFromDocumentSymbol(e,t){const i={name:e.name,icon:s.getSymbolIcon(e.kind),onClick:()=>{t.setSelection({startColumn:e.range.startColumn,endColumn:e.range.startColumn,startLineNumber:e.range.startLineNumber,endLineNumber:e.range.startLineNumber}),t.monacoEditor.revealRangeInCenter(e.range),t.monacoEditor.focus()}};return e.parent&&(i.getSiblings=()=>({parts:e.parent.children.sort(((e,t)=>v(e.range,t.range))).map((e=>this.createFromDocumentSymbol(e,t))),currentIndex:e.parent.children.indexOf(e)})),e.children&&e.children.length>0&&(i.getChildren=()=>e.children.sort(((e,t)=>v(e.range,t.range))).map((e=>this.createFromDocumentSymbol(e,t)))),i}onDocumentSymbolChangedEvent(e){this.notifyUpdate(e.payload)}onEditorSelectionChangeEvent(e){this.notifyUpdate(e.payload.editorUri)}notifyUpdate(e){this.debouncedFireUriEvent.has(e.toString())||this.debouncedFireUriEvent.set(e.toString(),n((()=>{this._onDidUpdateBreadCrumb.fire(e)}),100,{maxWait:1e3})),this.debouncedFireUriEvent.get(e.toString())()}};function f(e,t){const i=[];if(!t)return i;let r=e;for(;r&&r.length>0;){let e=!1;for(const n of r)if(m(t,n.range)){i.push(n),r=n.children,e=!0;break}if(!e)break}return i}function g(e){return e.sort(((e,t)=>{if(e.isDirectory&&t.isDirectory||!e.isDirectory&&!t.isDirectory){const i=new s.URI(e.uri).path.name,r=new s.URI(t.uri).path.name;return i.localeCompare(r,"kn",{numeric:!0})}return e.isDirectory&&!t.isDirectory?-1:!e.isDirectory&&t.isDirectory?1:0}))}function m(e,t){return!(e.lineNumber=t.startColumn:e.lineNumbert.startLineNumber?1:e.startLineNumbert.startColumn?1:-1}r.__decorate([o.Autowired(l.IFileServiceClient),r.__metadata("design:type",Object)],p.prototype,"fileServiceClient",void 0),r.__decorate([o.Autowired(u.IWorkspaceService),r.__metadata("design:type",Object)],p.prototype,"workspaceService",void 0),r.__decorate([o.Autowired(a.LabelService),r.__metadata("design:type",a.LabelService)],p.prototype,"labelService",void 0),r.__decorate([o.Autowired(s.CommandService),r.__metadata("design:type",Object)],p.prototype,"commandService",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",h.DocumentSymbolStore)],p.prototype,"documentSymbolStore",void 0),r.__decorate([s.OnEvent(h.DocumentSymbolChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[h.DocumentSymbolChangedEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onDocumentSymbolChangedEvent",null),r.__decorate([s.OnEvent(d.EditorSelectionChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[d.EditorSelectionChangeEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorSelectionChangeEvent",null),p=r.__decorate([o.Injectable()],p),t.DefaultBreadCrumbProvider=p,t.findCurrentDocumentSymbol=f},51565:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(20172),o=i(19745),s=i(34865),a=i(36579),c=i(35492),l=i(91296),u=i(20172);t.SymbolTag=u.SymbolTag;let d=class extends s.WithEventBus{constructor(){super(),this.documentSymbols=new Map,this.pendingUpdate=new Set,this.debounced=new Map,this.addDispose(n.DocumentSymbolProviderRegistry.onDidChange((()=>{Array.from(this.documentSymbols.keys()).forEach((e=>{this.markNeedUpdate(new s.URI(e))}))})))}getDocumentSymbol(e){return this.documentSymbols.has(e.toString())||(this.documentSymbols.set(e.toString(),void 0),this.createDocumentSymbolCache(e)),this.pendingUpdate.has(e.toString())&&this.updateDocumentSymbolCache(e),this.documentSymbols.get(e.toString())}async createDocumentSymbolCache(e){this.updateDocumentSymbolCache(e)}async doUpdateDocumentSymbolCache(e){this.pendingUpdate.delete(e.toString());const t=await this.editorDocumentModelRegistry.createModelReference(e);if(t)try{const i=await n.DocumentSymbolProviderRegistry.all(t.instance.getMonacoModel());let r;for(const e of i)if(r=await e.provideDocumentSymbols(t.instance.getMonacoModel(),(new s.CancellationTokenSource).token),r)break;r&&p(r,{children:r},e),this.documentSymbols.set(e.toString(),r),this.eventBus.fire(new h(e))}finally{t.dispose()}}updateDocumentSymbolCache(e){this.debounced.has(e.toString())||this.debounced.set(e.toString(),l((()=>this.doUpdateDocumentSymbolCache(e)),100,{maxWait:1e3})),this.debounced.get(e.toString())()}onEditorDocumentModelContentChangedEvent(e){e.payload.changes&&e.payload.changes.length>0&&this.markNeedUpdate(e.payload.uri)}markNeedUpdate(e){this.pendingUpdate.add(e.toString()),this.isWatching(e)&&this.updateDocumentSymbolCache(e)}isWatching(e){for(const t of this.editorService.editorGroups)if(t.currentResource&&t.currentResource.uri.isEqual(e))return!0;return!1}};r.__decorate([o.Autowired(c.IEditorDocumentModelService),r.__metadata("design:type",Object)],d.prototype,"editorDocumentModelRegistry",void 0),r.__decorate([o.Autowired(a.WorkbenchEditorService),r.__metadata("design:type",a.WorkbenchEditorService)],d.prototype,"editorService",void 0),r.__decorate([s.OnEvent(c.EditorDocumentModelContentChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.EditorDocumentModelContentChangedEvent]),r.__metadata("design:returntype",void 0)],d.prototype,"onEditorDocumentModelContentChangedEvent",null),d=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],d),t.DocumentSymbolStore=d;class h extends s.BasicEvent{}function p(e,t,i){return e.forEach(((e,r)=>{const n=e;n.parent=t,n.id=function(e,t,i){const r=[t.name];for(;t.parent;){const e=t.parent;if(!e.name)break;r.unshift(e.name),t=e}return`${e.toString()}__${r.join("-")}__${i}`}(i,n,r),e.children&&e.children.length>0&&p(e.children,e,i)})),e}t.DocumentSymbolChangedEvent=h},83907:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(92385);let a=class{constructor(){this.providers=[],this._onDidUpdateBreadCrumbResults=new o.Emitter,this.onDidUpdateBreadCrumbResults=this._onDidUpdateBreadCrumbResults.event,this.crumbResults=new Map,this.registerBreadCrumbProvider(this.defaultBreadCrumbProvider)}registerBreadCrumbProvider(e){const t=o.addElement(this.providers,e);return e.onDidUpdateBreadCrumb((e=>{this.crumbResults.forEach(((t,i)=>{t.has(e.toString())&&this.getBreadCrumbs(e,i)}))})),t}getBreadCrumbs(e,t){const i=this.getEditorCrumbResults(t);for(const r of this.providers)if(r.handlesUri(e)){const n=i.get(e.toString()),o=r.provideBreadCrumbForUri(e,t);c(n,o)||(i.set(e.toString(),o),this._onDidUpdateBreadCrumbResults.fire({editor:t,uri:e}));break}return i.get(e.toString())}getEditorCrumbResults(e){return this.crumbResults.has(e)||(this.crumbResults.set(e,new Map),e&&e.monacoEditor.onDidDispose((()=>{this.crumbResults.delete(e)}))),this.crumbResults.get(e)}disposeCrumb(e){}};function c(e,t){if(e||t){if(e&&t){if(e.length!==t.length)return!1;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(75871),o=i(65686),s=i(19745),a=i(27196);let c=class{constructor(){this.components=new Map,this.sideWidgets={bottom:new Set},this.initialPropsMap=new Map,this.resolvers=new Map,this.normalizedResolvers=[],this.perWorkbenchComponents={}}registerEditorComponent(e,t){const i=e.uid;return e.renderMode||(e.renderMode=n.EditorComponentRenderMode.ONE_PER_GROUP),this.components.set(i,e),this.initialPropsMap.set(i,t),this.eventBus.fire(new o.ExtensionActivateEvent({topic:"onRegisterEditorComponent",data:i})),this.eventBus.fire(new n.RegisterEditorComponentEvent(i)),{dispose:()=>{this.components.get(i)===e&&(this.components.delete(i),this.eventBus.fire(new n.EditorComponentDisposeEvent(e)))}}}registerEditorComponentResolver(e,t){let i;return i="function"==typeof e?{handleScheme:e,resolver:t}:{handleScheme:t=>t===e?10:-1,resolver:t},this.normalizedResolvers.push(i),this.resolvers.clear(),{dispose:()=>{for(const e of this.resolvers.values()){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}const e=this.normalizedResolvers.indexOf(i);-1!==e&&this.normalizedResolvers.splice(e,1)}}}async resolveEditorComponent(e){let t=[];const i=this.getResolvers(e.uri.scheme).slice();let r=!1;const n=e=>{t=e,r=!0};for(const o of i)if(await o(e,t,n),r)break;return t.sort(((e,t)=>{const i=e.weight||0;return(t.weight||0)-i})),t}calculateSchemeResolver(e){const t=this.normalizedResolvers.slice(),i=[];return t.forEach(((t,r)=>{const n=t.handleScheme(e);n>=0&&i.push({weight:n,index:r,resolver:t.resolver})})),i.sort(((e,t)=>e.weight>t.weight?-1:e.weighte.resolver))}getResolvers(e){return this.resolvers.has(e)||this.resolvers.set(e,this.calculateSchemeResolver(e)),this.resolvers.get(e)}getEditorComponent(e){return this.components.get(e)||null}getEditorInitialProps(e){return this.initialPropsMap.get(e)||null}clearPerWorkbenchComponentCache(e){a.unmountComponentAtNode(this.perWorkbenchComponents[e]),delete this.perWorkbenchComponents[e]}getSideWidgets(e,t){const i=[];return this.sideWidgets[e].forEach((e=>{e.displaysOnResource(t)&&i.push(e)})),i.sort(((e,t)=>{const i=void 0===e.weight?10:e.weight;return(void 0===t.weight?10:t.weight)-i}))}registerEditorSideWidget(e){const t=e.side||"bottom";return this.sideWidgets[t].add(e),{dispose:()=>{this.sideWidgets[t].delete(e)}}}};r.__decorate([s.Autowired(o.IEventBus),r.__metadata("design:type",Object)],c.prototype,"eventBus",void 0),c=r.__decorate([s.Injectable()],c),t.EditorComponentRegistryImpl=c},199:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(6232),o=i(94184);class s extends r.Component{constructor(){super(...arguments),this.position={top:0,left:0},this.dragging=!1,this.draggingStart=0,this.draggingStartPos=0,this.shouldHideThumb=!0,this.isAtTop=!0,this.onMouseMoveHorizontal=e=>{if(!this.dragging)return;const t=e.pageX-this.draggingStart;this.ref.scrollLeft=this.draggingStartPos+this.calculateXToLeft(t)},this.onMouseUpHorizontal=e=>{this.dragging=!1,document.removeEventListener("mousemove",this.onMouseMoveHorizontal),document.removeEventListener("mouseup",this.onMouseUpHorizontal),this.shouldHideThumb&&this.hideThumb()},this.onMouseMoveVertical=e=>{if(!this.dragging)return;const t=e.pageY-this.draggingStart;this.ref.scrollTop=this.draggingStartPos+this.calculateYToTop(t)},this.onMouseUpVertical=e=>{this.dragging=!1,document.removeEventListener("mousemove",this.onMouseMoveVertical),document.removeEventListener("mouseup",this.onMouseUpVertical),this.shouldHideThumb&&this.hideThumb()},this.onMousewheel=e=>{this.ref.clientHeight>=this.ref.scrollHeight&&(this.ref.scrollLeft+=e.deltaY)},this.onMouseEnter=()=>{this.update()},this.handleWindowResize=()=>{this.update()},this.update=e=>{this.requestFrame&&window.cancelAnimationFrame(this.requestFrame),this.requestFrame=window.requestAnimationFrame((()=>{this._update(),e&&e()}))}}onScroll(e){this.position={top:this.ref.scrollTop,left:this.ref.scrollLeft},this.props.onScroll&&this.props.onScroll(this.position),this.update((()=>{const e=this.ref.scrollWidth,t=this.ref.offsetWidth,i=this.ref.scrollHeight,r=this.ref.offsetHeight;this.thumbH.style.left=this.position.left*t/e+"px",this.thumbV.style.top=this.position.top*r/i+"px"})),this.isAtTop||0!==this.ref.scrollTop?this.isAtTop&&0!==this.ref.scrollTop&&(this.isAtTop=!1,this.setCss()):(this.isAtTop=!0,this.setCss())}scrollTo(e){this.ref.scrollLeft=e.left,this.ref.scrollTop=e.top}onMouseDownHorizontal(e){this.dragging=!0,e.target===this.trackH&&this.onMouseDownOnTrack(e),this.draggingStart=e.pageX,this.draggingStartPos=this.ref.scrollLeft,document.addEventListener("mousemove",this.onMouseMoveHorizontal),document.addEventListener("mouseup",this.onMouseUpHorizontal)}onMouseDownOnTrack(e){const t=e.target,i=e.clientX-t.getBoundingClientRect().left,r=this.ref.scrollWidth,n=this.ref.offsetWidth,o=i*r/n-.5*n;this.scrollTo({left:o,top:this.position.top})}calculateXToLeft(e){return e*this.ref.scrollWidth/this.ref.offsetWidth}onMouseDownVertical(e){this.dragging=!0,e.target===this.trackV&&this.onMouseDownOnTrackVertical(e),this.draggingStart=e.pageY,this.draggingStartPos=this.ref.scrollTop,document.addEventListener("mousemove",this.onMouseMoveVertical),document.addEventListener("mouseup",this.onMouseUpVertical)}onMouseDownOnTrackVertical(e){const t=e.target,i=e.clientY-t.getBoundingClientRect().top,r=this.ref.scrollHeight,n=this.ref.offsetHeight,o=i*r/n-.5*n;this.scrollTo({left:this.position.left,top:o})}calculateYToTop(e){return e*this.ref.scrollHeight/this.ref.offsetHeight}componentDidUpdate(){this.update(),this.props.delegate&&this.props.delegate({scrollTo:this.scrollTo.bind(this)})}componentDidMount(){this.update(),window.addEventListener("resize",this.handleWindowResize),this.props.delegate&&this.props.delegate({scrollTo:this.scrollTo.bind(this)}),this.ref&&(this.ref.addEventListener("mouseenter",this.onMouseEnter),this.ref.addEventListener("wheel",this.onMousewheel))}componentWillUnmount(){this.ref&&(this.ref.removeEventListener("mouseenter",this.onMouseEnter),this.ref.addEventListener("wheel",this.onMousewheel)),window.removeEventListener("resize",this.handleWindowResize),this.requestFrame&&window.cancelAnimationFrame(this.requestFrame)}sizeEqual(e,t){return e&&t&&e.offsetHeight===t.offsetHeight&&e.scrollHeight===t.scrollHeight&&e.offsetWidth===t.offsetWidth&&e.scrollWidth===t.scrollWidth}_update(){this.ref&&(this.sizeEqual(this.size,this.ref)||(this.size={offsetHeight:this.ref.offsetHeight,offsetWidth:this.ref.offsetWidth,scrollWidth:this.ref.scrollWidth,scrollHeight:this.ref.scrollHeight},this.updateScrollBar()))}updateScrollBar(){const e=this.ref.scrollWidth,t=this.ref.offsetWidth;if(te&&(this.container=e),onMouseMove:()=>this.showThumb(),onMouseLeave:()=>this.hideThumb(),style:this.props.containerStyle},r.createElement("div",{style:this.props.style,className:o.default(this.props.className),onScroll:this.onScroll.bind(this),ref:e=>e&&(this.ref=e),onMouseDown:()=>this.update(),onMouseUp:()=>this.update()},this.props.children),r.createElement("div",{className:n["scroll-horizontal"]},r.createElement("div",{className:n["track-horizontal"],ref:e=>e&&(this.trackH=e),onMouseDown:this.onMouseDownHorizontal.bind(this)}),r.createElement("div",{className:n["thumb-horizontal"],onMouseDown:this.onMouseDownHorizontal.bind(this),ref:e=>e&&(this.thumbH=e)})),r.createElement("div",{className:n["scroll-vertical"]},r.createElement("div",{className:n["track-vertical"],ref:e=>e&&(this.trackV=e),onMouseDown:this.onMouseDownVertical.bind(this)}),r.createElement("div",{className:n["thumb-vertical"],onMouseDown:this.onMouseDownVertical.bind(this),ref:e=>e&&(this.thumbV=e)})))}}t.Scroll=s},59941:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(81924),i(19745)),o=i(75871),s=i(65686),a=i(64994),c=i(94184);let l=class extends s.Disposable{constructor(e){super(),this.editor=e,this.decorations=new Map,this.applyDecorationFromProvider(),this.editor.onDidChangeModel((()=>{this.clearDecorations(),this.applyDecorationFromProvider()})),this.editor.onDidDispose((()=>{this.dispose()})),this.addDispose(this.eventBus.on(o.EditorDecorationChangeEvent,(e=>{const t=this.getEditorUri();t&&e.payload.uri.isEqual(t)&&this.applyDecorationFromProvider(e.payload.key)}))),this.addDispose(this.eventBus.on(o.EditorDecorationTypeRemovedEvent,(e=>{this.deltaDecoration(e.payload,[])})))}getEditorUri(){if(this.editor.getModel()){return new s.URI(this.editor.getModel().uri.toString())}return null}async applyDecorationFromProvider(e){if(this.editor.getModel()){const t=new s.URI(this.editor.getModel().uri.toString()),i=await this.decorationService.getDecorationFromProvider(t,e);if(!this.editor.getModel()||this.editor.getModel().uri.toString()!==t.toString())return;for(const e of Object.keys(i))this.deltaDecoration(e,i[e]);this.eventBus.fire(new o.DidApplyEditorDecorationFromProvider({key:e,uri:t}))}}dispose(){super.dispose(),this.clearDecorations()}clearDecorations(){this.decorations.forEach((e=>{e.dispose(),this.editor.deltaDecorations(e.decorations,[])})),this.decorations.clear()}deltaDecoration(e,t){let i=[];if(this.decorations.has(e)&&(i=this.decorations.get(e).decorations,this.decorations.get(e).dispose(),this.decorations.delete(e)),0===i.length&&0===t.length)return;const r=this.editor.deltaDecorations(i,t);this.decorations.set(e,{decorations:r,dispose:()=>null})}applyDecoration(e,t){const i=this.decorations.get(e);i&&i.dispose();const r=i?i.decorations:[],n=[],o=new s.Disposable;if(0===r.length&&0===t.length)return;t.forEach((t=>{const i=this.resolveDecorationRenderer(e,t.renderOptions);n.push({range:t.range,options:Object.assign(Object.assign({},i.options),{hoverMessage:h(t.hoverMessage)})}),o.addDispose(i)}));const a=this.editor.deltaDecorations(r,n);this.decorations.set(e,{decorations:a,dispose:()=>o.dispose()})}resolveDecorationRenderer(e,t){const i=this.decorationService.getTextEditorDecorationType(e),r={},n=this.themeService.getCurrentThemeSync().type,o=new s.Disposable;if(i){u(r,i.property,n)}if(t){const e=this.decorationService.createTextEditorDecorationType(t);u(r,e.property,n),o.addDispose(e)}return{options:r,dispose:()=>o.dispose()}}};function u(e,t,i){t.overviewRulerLane&&(e.overviewRuler?e.overviewRuler.position=t.overviewRulerLane:e.overviewRuler={color:null,range:null,position:t.overviewRulerLane}),t.default&&d(e,t.default),"dark"===i&&t.dark&&d(e,t.dark),"light"===i&&t.light&&d(e,t.light),void 0!==t.isWholeLine&&(e.isWholeLine=t.isWholeLine),t.rangeBehavior&&(e.stickiness=t.rangeBehavior),e.inlineClassNameAffectsLetterSpacing=!0}function d(e,t){t.className&&(e.className=c(e.className,t.className)),t.inlineClassName&&(e.inlineClassName=c(e.inlineClassName,t.inlineClassName)),t.afterContentClassName&&(e.afterContentClassName=c(e.afterContentClassName,t.afterContentClassName)),t.beforeContentClassName&&(e.beforeContentClassName=c(e.beforeContentClassName,t.beforeContentClassName)),t.glyphMarginClassName&&(e.glyphMarginClassName=c(e.glyphMarginClassName,t.glyphMarginClassName)),t.overviewRulerColor&&e.overviewRuler&&(e.overviewRuler.color=t.overviewRulerColor)}function h(e){if(e)return e instanceof Array?e.map(p):p(e)}function p(e){return"string"==typeof e?{value:e,isTrusted:!0}:e}r.__decorate([n.Autowired(o.IEditorDecorationCollectionService),r.__metadata("design:type",Object)],l.prototype,"decorationService",void 0),r.__decorate([n.Autowired(a.IThemeService),r.__metadata("design:type",Object)],l.prototype,"themeService",void 0),r.__decorate([n.Autowired(s.IEventBus),r.__metadata("design:type",Object)],l.prototype,"eventBus",void 0),l=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],l),t.MonacoEditorDecorationApplier=l},57821:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(75871),s=i(34865),a=i(34865),c=i(43849);let l=class{constructor(){this.comparing=new Map}compare(e,t,i){const r=s.URI.from({scheme:"diff",query:s.URI.stringifyQuery({name:i,original:e,modified:t,comparing:!0})});if(!this.comparing.has(r.toString())){const e=new s.Deferred;this.comparing.set(r.toString(),e),e.promise.then((()=>{this.comparing.delete(r.toString()),this.commandService.executeCommand(s.EDITOR_COMMANDS.CLOSE_ALL.id,r)}))}return this.commandService.executeCommand(s.EDITOR_COMMANDS.OPEN_RESOURCE.id,r),this.comparing.get(r.toString()).promise}};r.__decorate([n.Autowired(s.CommandService),r.__metadata("design:type",Object)],l.prototype,"commandService",void 0),l=r.__decorate([n.Injectable()],l),t.CompareService=l;let u=class{registerMenus(e){e.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:"editor.diff.accept",label:s.localize("editor.action.accept")},iconClass:a.getIcon("check"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),e.registerMenuItems(c.MenuId.EditorTitle,[{command:{id:"editor.diff.revert",label:s.localize("editor.action.revert")},iconClass:a.getIcon("rollback"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}])}registerCommands(e){e.registerCommand({id:"editor.diff.accept"},{execute:e=>{e&&this.compareService.comparing.has(e.toString())&&this.compareService.comparing.get(e.toString()).resolve(o.CompareResult.accept)}}),e.registerCommand({id:"editor.diff.revert"},{execute:e=>{e&&this.compareService.comparing.has(e.toString())&&this.compareService.comparing.get(e.toString()).resolve(o.CompareResult.revert)}})}};r.__decorate([n.Autowired(o.ICompareService),r.__metadata("design:type",l)],u.prototype,"compareService",void 0),u=r.__decorate([s.Domain(c.MenuContribution,s.CommandContribution)],u),t.CompareEditorContribution=u},61417:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(36579),o=i(34865),s=i(19745),a=i(65777),c=i(75871);let l=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme="diff",this.modifiedToResource=new Map}onResourceDecorationChangeEvent(e){e.payload.uri&&this.modifiedToResource.has(e.payload.uri.toString())&&this.eventBus.fire(new n.ResourceDecorationChangeEvent({uri:this.modifiedToResource.get(e.payload.uri.toString()),decoration:e.payload.decoration}))}async provideResource(e){const{original:t,modified:i,name:r}=e.getParsedQuery(),n=new o.URI(t),s=new o.URI(i),a=await this.labelService.getIcon(n);return this.modifiedToResource.set(s.toString(),e),{name:r,icon:a,uri:e,metadata:{original:n,modified:s}}}async shouldCloseResource(e,t){const{modified:i}=e.uri.getParsedQuery(),r=new o.URI(i),n=await this.resourceService.getResource(r);return!n||await this.resourceService.shouldCloseResource(n,t)}};r.__decorate([s.Autowired(),r.__metadata("design:type",a.LabelService)],l.prototype,"labelService",void 0),r.__decorate([s.Autowired(n.ResourceService),r.__metadata("design:type",n.ResourceService)],l.prototype,"resourceService",void 0),r.__decorate([o.OnEvent(n.ResourceDecorationChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[n.ResourceDecorationChangeEvent]),r.__metadata("design:returntype",void 0)],l.prototype,"onResourceDecorationChangeEvent",null),l=r.__decorate([s.Injectable()],l),t.DiffResourceProvider=l;let u=class{registerResource(e){e.registerResourceProvider(this.diffResourceProvider)}registerEditorComponent(e){e.registerEditorComponentResolver("diff",((e,t)=>{t.push({type:"diff"})}))}};r.__decorate([s.Autowired(),r.__metadata("design:type",l)],u.prototype,"diffResourceProvider",void 0),u=r.__decorate([o.Domain(c.BrowserEditorContribution)],u),t.DefaultDiffEditorContribution=u},74889:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745);let o=class{hasCache(e){return!1}isFlushed(){return!0}getCache(e){return null}persistCache(e,t){}};o=r.__decorate([n.Injectable()],o),t.EmptyDocCacheImpl=o},32613:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(74889),t),r.__exportStar(i(16675),t)},16675:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(97307),s=i(5778);let a=class{hasCache(e){return!0}isFlushed(){return!0}async getCache(e){const t=this.parseKeyFrom(e);return await this.storageService.getData(t)||null}persistCache(e,t){const i=this.parseKeyFrom(e),r=this.parseCacheFrom(e,t);this.storageService.setData(i,r)}parseCacheFrom(e,t){if(t.dirty&&t.changeMatrix.length)return{path:e.path.toString(),startMD5:t.startMD5,changeMatrix:t.changeMatrix.map((e=>e.map((e=>o.parseCacheValueFrom(e)))))}}parseKeyFrom(e){return`LocalStorageDocCacheImpl_${e.toString()}`}};r.__decorate([n.Autowired(s.IWorkspaceStorageService),r.__metadata("design:type",Object)],a.prototype,"storageService",void 0),a=r.__decorate([n.Injectable()],a),t.LocalStorageDocCacheImpl=a},55364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.READ_CACHE_ERROR="EditorDocumentError:READ_CACHE_ERROR",e.APPLY_CACHE_TO_DIRTY_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIRTY_DOCUMENT",e.APPLY_CACHE_TO_DIFFERENT_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIFFERENT_DOCUMENT",e.FORMAT_ERROR="EditorDocumentError:FORMAT_ERROR"}(t.EditorDocumentError||(t.EditorDocumentError={}))},85679:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(2568),o=i(34865),s=i(19745),a=i(35492),c=i(55946),l=i(29332);t.EDITOR_DOCUMENT_MODEL_STORAGE=o.URI.from({scheme:o.STORAGE_SCHEMA.SCOPE,path:"editor-doc"}),t.EDITOR_DOC_OPTIONS_PREF_KEY="editor_doc_pref";let u=class extends o.WithEventBus{constructor(){super(),this.editorDocModels=new Map,this.creatingEditorModels=new Map,this._modelsToDispose=new Set,this.preferredModelOptions=new Map,this._modelReferenceManager=new o.ReferenceManager((e=>(this._modelsToDispose.has(e)&&this._modelsToDispose.delete(e),this.getOrCreateModel(e)))),this._modelReferenceManager.onReferenceAllDisposed((e=>{this._delete(e)})),this._modelReferenceManager.onInstanceCreated((e=>{this.eventBus.fire(new a.EditorDocumentModelCreationEvent({uri:e.uri,languageId:e.languageId,eol:e.eol,encoding:e.encoding,content:e.getText(),readonly:e.readonly,versionId:e.getMonacoModel().getVersionId()}))})),this.addDispose(this.preferenceService.onPreferenceChanged((e=>{"editor.detectIndentation"===e.preferenceName&&this.editorDocModels.forEach((e=>{e.updateOptions({})}))})))}_delete(e){const t=this.preferenceService.get("editor.modelDisposeTime",3e3);this._modelsToDispose.add(e.toString());let i=null;const r=this.addDispose({dispose:()=>{i&&clearTimeout(i)}});i=setTimeout((()=>{r.dispose(),i=null,this._modelsToDispose.has(e.toString())&&this._doDelete(e.toString())}),t)}_doDelete(e){const t=this.editorDocModels.get(e);if(t)return t.dispose(),this.editorDocModels.delete(e),t;this._modelsToDispose.delete(e)}async changeModelOptions(e,t){await this.ready,this.preferredModelOptions.has(e.toString())&&(t=Object.assign(Object.assign({},this.preferredModelOptions.get(e.toString())),t)),this.preferredModelOptions.set(e.toString(),t);const i=this.getModelReference(e);return i&&(t.encoding&&t.encoding!==i.instance.encoding&&i.instance.updateEncoding(t.encoding),t.languageId&&t.languageId!==i.instance.languageId&&(i.instance.languageId=t.languageId),t.eol&&t.eol!==i.instance.eol&&(i.instance.eol=t.eol),i.dispose()),this.persistOptionsPreference()}persistOptionsPreference(){return this.storage.set(t.EDITOR_DOC_OPTIONS_PREF_KEY,JSON.stringify(l.mapToSerializable(this.preferredModelOptions)))}get ready(){return this._ready||(this._ready=new Promise((async e=>{if(this.storage=await this.getStorage(t.EDITOR_DOCUMENT_MODEL_STORAGE),this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY))try{this.preferredModelOptions=l.serializableToMap(JSON.parse(this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY)))}catch(e){this.logger.error(e)}e()}))),this._ready}async acceptExternalChange(e){const t=this.editorDocModels.get(e.payload.toString());if(t)if(t.dirty);else{const e=await this.contentRegistry.getProvider(t.uri);if(e)if(e.provideEditorDocumentModelContentMd5){await e.provideEditorDocumentModelContentMd5(t.uri,t.encoding)!==t.baseContentMd5&&t.updateContent(await this.contentRegistry.getContentForUri(t.uri,t.encoding),void 0,!0)}else{const e=await this.contentRegistry.getContentForUri(t.uri,t.encoding);n(e)!==t.baseContentMd5&&t.updateContent(e,void 0,!0)}}}createModelReference(e,t){return this._modelReferenceManager.getReference(e.toString(),t)}getModelReference(e,t){return this._modelReferenceManager.getReferenceIfHasInstance(e.toString(),t)}getAllModels(){return Array.from(this.editorDocModels.values())}async getOrCreateModel(e,t){return this.editorDocModels.has(e)?this.editorDocModels.get(e):this.createModel(e,t)}createModel(e,t){if(!this.creatingEditorModels.has(e)){const i=this.doCreateModel(e,t).then((t=>(this.creatingEditorModels.delete(e),t)),(t=>{throw this.creatingEditorModels.delete(e),t}));this.creatingEditorModels.set(e,i)}return this.creatingEditorModels.get(e)}async doCreateModel(e,t){await this.ready;const i=new o.URI(e),r=await this.contentRegistry.getProvider(i);if(!r)throw new Error(`未找到${i.toString()}的文档提供商`);const n=this.preferredModelOptions.get(i.toString());!t&&r.provideEncoding&&(n&&n.encoding?t=n.encoding:r.provideEncoding&&(t=await r.provideEncoding(i)));const s=n&&n.languageId,[a,l,u,d,h,p]=await Promise.all([(async()=>r.provideEditorDocumentModelContent(i,t))(),(async()=>r.isReadonly?r.isReadonly(i):void 0)(),(async()=>s||(r.preferLanguageForUri?r.preferLanguageForUri(i):void 0))(),(async()=>(null==n?void 0:n.eol)||(r.provideEOL?r.provideEOL(i):void 0))(),(async()=>!!r.isAlwaysDirty&&r.isAlwaysDirty(i))(),(async()=>!!r.closeAutoSave&&r.closeAutoSave(i))()]),f=!!r.saveDocumentModel,g=this.injector.get(c.EditorDocumentModel,[i,a,{readonly:l,languageId:u,savable:f,eol:d,encoding:t,alwaysDirty:h,closeAutoSave:p}]);return this.editorDocModels.set(i.toString(),g),g}async saveEditorDocumentModel(e,t,i,r,n,o,s){const a=await this.contentRegistry.getProvider(e);if(!a)throw new Error(`未找到${e.toString()}的文档提供商`);if(!a.saveDocumentModel)throw new Error(`${e.toString()}的文档提供商不存在保存方法`);return await a.saveDocumentModel(e,t,i,r,n,o,s)}dispose(){super.dispose(),this.getAllModels().forEach((e=>{e.getMonacoModel().dispose()}))}};r.__decorate([s.Autowired(a.IEditorDocumentModelContentRegistry),r.__metadata("design:type",Object)],u.prototype,"contentRegistry",void 0),r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],u.prototype,"injector",void 0),r.__decorate([s.Autowired(o.StorageProvider),r.__metadata("design:type",Function)],u.prototype,"getStorage",void 0),r.__decorate([s.Autowired(o.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([s.Autowired(o.PreferenceService),r.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),r.__decorate([o.OnEvent(a.EditorDocumentModelOptionExternalUpdatedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.EditorDocumentModelOptionExternalUpdatedEvent]),r.__metadata("design:returntype",Promise)],u.prototype,"acceptExternalChange",null),u=r.__decorate([s.Injectable(),r.__metadata("design:paramtypes",[])],u),t.EditorDocumentModelServiceImpl=u},55946:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(19745),s=i(34865),a=i(92224),c=i(2568),l=i(36579),u=i(75871),d=i(55364),h=i(21200),p=i(35492),f=i(91296),g=i(14484);let m=class extends s.Disposable{constructor(e,t,i={}){super(),this.uri=e,this._encoding="utf8",this.readonly=!1,this.savable=!1,this.alwaysDirty=!1,this.closeAutoSave=!1,this._originalEncoding=this._encoding,this._persistVersionId=0,this._baseContent="",this.savingTasks=[],this.dirtyChanges=[],this._isInitOption=!0,this._onDidChangeEncoding=new s.Emitter,this.onDidChangeEncoding=this._onDidChangeEncoding.event,this.onDispose((()=>{this.eventBus.fire(new p.EditorDocumentModelRemovalEvent(this.uri))})),i.encoding&&(this._encoding=i.encoding),this.readonly=!!i.readonly,this.savable=!!i.savable,this.alwaysDirty=!!i.alwaysDirty,this.closeAutoSave=!!i.closeAutoSave,this.monacoModel=n.editor.createModel(t,i.languageId,n.Uri.parse(e.toString())),this.editorPreferences=g.createEditorPreferenceProxy(this.preferences,this.uri.toString(),this.languageId),this.updateOptions({}),i.eol&&(this.eol=i.eol),this._originalEncoding=this._encoding,this._previousVersionId=this.monacoModel.getVersionId(),this._persistVersionId=this.monacoModel.getAlternativeVersionId(),this.baseContent=t,this._isInitOption=!1,this.listenTo(this.monacoModel),this.readCacheToApply(),this.addDispose(this._onDidChangeEncoding)}updateOptions(e){const t=Object.assign({tabSize:this.editorPreferences["editor.tabSize"]||1,insertSpaces:this.editorPreferences["editor.insertSpaces"],detectIndentation:this.editorPreferences["editor.detectIndentation"]},e);t.detectIndentation?this.monacoModel.detectIndentation(t.insertSpaces,t.tabSize):this.monacoModel.updateOptions(t)}listenTo(e){e.onDidChangeContent((e=>{e.changes&&e.changes.length>0&&this.dirtyChanges.push({fromVersionId:this._previousVersionId,toVersionId:e.versionId,changes:e.changes}),this._previousVersionId=e.versionId,this.notifyChangeEvent(e.changes)})),this.addDispose(e)}readCacheToApply(){if(!this.cacheProvider.hasCache(this.uri))return;const e=this.cacheProvider.getCache(this.uri,this.encoding);e&&(s.isThenable(e)?e.then((e=>{e&&this.applyCache(e)})).catch((e=>{this.logger.error(`${d.EditorDocumentError.READ_CACHE_ERROR} ${e&&e.message}`)})):this.applyCache(e))}applyCache(e){if(this.dirty)this.logger.error(d.EditorDocumentError.APPLY_CACHE_TO_DIRTY_DOCUMENT);else if(this.baseContentMd5===e.startMD5)if(l.isDocContentCache(e))this.monacoModel.setValue(e.content);else for(const t of e.changeMatrix){const e=t.map((e=>({range:l.parseRangeFrom(e),text:e[0]})));this.monacoModel.applyEdits(e)}else this.logger.error(d.EditorDocumentError.APPLY_CACHE_TO_DIFFERENT_DOCUMENT)}cleanAndUpdateContent(e){this.monacoModel.setValue(e),this.monacoModel._commandManager.clear(),this._persistVersionId=this.monacoModel.getVersionId(),this.savingTasks=[],this.notifyChangeEvent(),this.baseContent=e}async updateEncoding(e){let t=!1;this._encoding!==e&&(t=!0),this._encoding=e,await this.reload(),t&&(this.eventBus.fire(new p.EditorDocumentModelOptionChangedEvent({uri:this.uri,encoding:this._encoding})),this._onDidChangeEncoding.fire())}get encoding(){return this._encoding}set eol(e){this.monacoModel.setEOL("\n"===e?0:1),this._isInitOption||this.eventBus.fire(new p.EditorDocumentModelOptionChangedEvent({uri:this.uri,eol:e}))}get eol(){return this.monacoModel.getEOL()}get dirty(){return!!this.alwaysDirty||!!this.savable&&this._persistVersionId!==this.monacoModel.getAlternativeVersionId()}set languageId(e){n.editor.setModelLanguage(this.monacoModel,e),this.eventBus.fire(new p.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:e}))}get languageId(){return this.monacoModel.getModeId()}get id(){return this.monacoModel.id}getMonacoModel(){return this.monacoModel}async save(e=!1,t=l.SaveReason.Manual){if(await this.formatOnSave(t),await this.eventBus.fireAndAwait(new p.EditorDocumentModelWillSaveEvent({uri:this.uri,reason:t,language:this.languageId})),this.editorPreferences["editor.askIfDiff"]||(e=!0),!this.dirty)return!1;const i=this.monacoModel.getVersionId(),r=this.savingTasks[this.savingTasks.length-1];if(r&&r.versionId===i)return!1;const n=new h.SaveTask(this.uri,i,this.monacoModel.getAlternativeVersionId(),this.getText(),e);this.savingTasks.push(n),1===this.savingTasks.length&&this.initSave();const o=await n.finished;return"success"===o.state||("error"===o.state?(this.logger.error(o.errorMessage),this.messageService.error(s.localize("doc.saveError.failed")+"\n"+o.errorMessage),!1):"diff"===o.state&&(this.messageService.error(s.formatLocalize("doc.saveError.diff",this.uri.toString()),[s.localize("doc.saveError.diffAndSave")]).then((e=>{e&&this.compareAndSave()})),this.logger.error("文件无法保存,版本和磁盘不一致"),!1))}async compareAndSave(){const e=s.URI.from({scheme:p.ORIGINAL_DOC_SCHEME,query:s.URI.stringifyQuery({target:this.uri.toString()})}),t=this.uri.path.base,i=await this.compareService.compare(e,this.uri,s.formatLocalize("editor.compareAndSave.title",t,t));i===u.CompareResult.revert?this.revert():i===u.CompareResult.accept&&this.save(!0)}async initSave(){for(;this.savingTasks.length>0;){const e=this.dirtyChanges;this.dirtyChanges=[];"success"===(await this.savingTasks[0].run(this.service,this.baseContent,e,this.encoding,this.eol)).state&&this.savingTasks[0]?(this.baseContent=this.savingTasks[0].content,this.eventBus.fire(new p.EditorDocumentModelSavedEvent(this.uri)),this.setPersist(this.savingTasks[0].alternativeVersionId)):this.dirtyChanges.unshift(...e),this.savingTasks.shift()}}setPersist(e){this._persistVersionId=e,this.notifyChangeEvent()}async reload(){try{const e=await this.contentRegistry.getContentForUri(this.uri,this._encoding);s.isUndefinedOrNull(e)||this.cleanAndUpdateContent(e)}catch(e){this._persistVersionId=this.monacoModel.getAlternativeVersionId()}}async revert(e){e?this._persistVersionId=this.monacoModel.getAlternativeVersionId():await this.updateEncoding(this._originalEncoding)}getText(e){return e?this.monacoModel.getValueInRange(e):this.monacoModel.getValue()}updateContent(e,t,i=!1){this.monacoModel.pushEditOperations([],[{range:this.monacoModel.getFullModelRange(),text:e}],(()=>[])),t&&(this.eol=t),i&&(this.setPersist(this.monacoModel.getAlternativeVersionId()),this.baseContent=e)}set baseContent(e){this._baseContent=e,this._baseContentMd5=null}get baseContent(){return this._baseContent}get baseContentMd5(){return this._baseContentMd5||(this._baseContentMd5=c(this._baseContent)),this._baseContentMd5}get tryAutoSaveAfterDelay(){return this._tryAutoSaveAfterDelay||(this._tryAutoSaveAfterDelay=f((()=>{this.save(void 0,l.SaveReason.AfterDelay)}),this.editorPreferences["editor.autoSaveDelay"]||1e3),this.addDispose(this.editorPreferences.onPreferenceChanged((e=>{"editor.autoSaveDelay"===e.preferenceName&&(this._tryAutoSaveAfterDelay=f((()=>{this.save(void 0,l.SaveReason.AfterDelay)}),this.editorPreferences["editor.autoSaveDelay"]||1e3))})))),this._tryAutoSaveAfterDelay}notifyChangeEvent(e=[]){!this.closeAutoSave&&this.savable&&"afterDelay"===this.editorPreferences["editor.autoSave"]&&this.tryAutoSaveAfterDelay(),this.eventBus.fire(new p.EditorDocumentModelContentChangedEvent({uri:this.uri,dirty:this.dirty,changes:e,eol:this.eol,versionId:this.monacoModel.getVersionId()}));const t=this;this.cacheProvider.persistCache(this.uri,{get dirty(){return t.dirty},get startMD5(){return t.baseContentMd5},get content(){return t.getText()},get changeMatrix(){return t.dirtyChanges.map((({changes:e})=>e))},encoding:this.encoding})}async formatOnSave(e){if(this.editorPreferences["editor.formatOnSave"]&&e!==l.SaveReason.AfterDelay){const e=this.editorPreferences["editor.formatOnSaveTimeout"]||3e3,t=this.reporter.time(s.REPORT_NAME.FORMAT_ON_SAVE);try{await Promise.race([new Promise(((t,i)=>{setTimeout((()=>{const t=new Error(s.formatLocalize("preference.editor.formatOnSaveTimeoutError",e));t.name="FormatOnSaveTimeoutError",i(t)}),e)})),this.commandService.executeCommand("editor.action.formatDocument")])}catch(e){"FormatOnSaveTimeoutError"===e.name&&this.reporter.point(s.REPORT_NAME.FORMAT_ON_SAVE_TIMEOUT_ERROR,this.uri.toString()),this.logger.warn(`${d.EditorDocumentError.FORMAT_ERROR} ${e&&e.message}`)}finally{t.timeEnd(this.uri.path.ext)}}}};r.__decorate([o.Autowired(p.IEditorDocumentModelContentRegistry),r.__metadata("design:type",Object)],m.prototype,"contentRegistry",void 0),r.__decorate([o.Autowired(p.IEditorDocumentModelService),r.__metadata("design:type",Object)],m.prototype,"service",void 0),r.__decorate([o.Autowired(u.ICompareService),r.__metadata("design:type",Object)],m.prototype,"compareService",void 0),r.__decorate([o.Autowired(l.IDocPersistentCacheProvider),r.__metadata("design:type",Object)],m.prototype,"cacheProvider",void 0),r.__decorate([o.Autowired(a.IMessageService),r.__metadata("design:type",Object)],m.prototype,"messageService",void 0),r.__decorate([o.Autowired(s.IEventBus),r.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),r.__decorate([o.Autowired(s.ILogger),r.__metadata("design:type",Object)],m.prototype,"logger",void 0),r.__decorate([o.Autowired(s.CommandService),r.__metadata("design:type",Object)],m.prototype,"commandService",void 0),r.__decorate([o.Autowired(s.IReporterService),r.__metadata("design:type",Object)],m.prototype,"reporter",void 0),r.__decorate([o.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],m.prototype,"preferences",void 0),m=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[s.URI,String,Object])],m),t.EditorDocumentModel=m},20671:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(35492);let a=class{constructor(){this.providers=[],this._onOriginalDocChanged=new o.Emitter,this.cachedProviders=new o.LRUMap(1e3,500),this.originalProvider={handlesScheme:e=>e===s.ORIGINAL_DOC_SCHEME,provideEditorDocumentModelContent:async e=>{const{target:t}=e.getParsedQuery(),i=new o.URI(t);return await this.getContentForUri(i)||""},isReadonly:()=>!0,onDidChangeContent:this._onOriginalDocChanged.event},this.registerEditorDocumentModelContentProvider(this.originalProvider)}registerEditorDocumentModelContentProvider(e){this.providers.push(e),this.cachedProviders.clear();const t=e.onDidChangeContent((e=>{this.eventBus.fire(new s.EditorDocumentModelOptionExternalUpdatedEvent(e))}));return e!==this.originalProvider&&e.onDidChangeContent&&e.onDidChangeContent((e=>{this._onOriginalDocChanged.fire(o.URI.from({scheme:s.ORIGINAL_DOC_SCHEME,query:o.URI.stringifyQuery({target:e.toString()})}))})),{dispose:()=>{t.dispose();const i=this.providers.indexOf(e);i&&(this.providers.splice(i,1),this.cachedProviders.clear())}}}getProvider(e){const t=e.toString();return this.cachedProviders.has(t)||this.cachedProviders.set(t,this.calculateProvider(e)),this.cachedProviders.get(t)}async calculateProvider(e){let t={provider:void 0,weight:-1,index:1};for(const i of this.providers){let r=-1;const n=this.providers.indexOf(i);i.handlesUri?r=await i.handlesUri(e):i.handlesScheme&&(r=await i.handlesScheme(e.scheme)?10:-1),r>=0&&(r>t.weight||r===t.weight&&n>t.index)&&(t={index:n,weight:r,provider:i})}return t.provider}async getContentForUri(e,t){const i=await this.getProvider(e);if(!i)throw new Error;return i.provideEditorDocumentModelContent(e,t)}};r.__decorate([n.Autowired(o.IEventBus),r.__metadata("design:type",Object)],a.prototype,"eventBus",void 0),a=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],a),t.EditorDocumentModelContentRegistryImpl=a},47892:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(85679),t),r.__exportStar(i(55946),t),r.__exportStar(i(20671),t),r.__exportStar(i(21200),t)},81668:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(35492);let a=class{hasTextModelContentProvider(e){throw new Error("Method not implemented.")}async createModelReference(e){const t=await this.documentModelManager.createModelReference(new o.URI(e.toString()),"monaco");if(t){const e=t.instance.getMonacoModel();return Promise.resolve({object:{textEditorModel:e},dispose:()=>{t.dispose()}})}}registerTextModelContentProvider(e,t){return{dispose(){}}}};r.__decorate([n.Autowired(s.IEditorDocumentModelService),r.__metadata("design:type",Object)],a.prototype,"documentModelManager",void 0),a=r.__decorate([n.Injectable()],a),t.MonacoTextModelService=a},21200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.SaveTask=class{constructor(e,t,i,n,o){this.uri=e,this.versionId=t,this.alternativeVersionId=i,this.content=n,this.ignoreDiff=o,this.deferred=new r.Deferred,this.finished=this.deferred.promise,this.started=!1}async run(e,t,i,r,n){this.started=!0;try{const o=await e.saveEditorDocumentModel(this.uri,this.content,t,i,r,this.ignoreDiff,n);return this.deferred.resolve(o),o}catch(e){const t={errorMessage:e.message,state:"error"};return this.deferred.resolve(t),t}}}},90795:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(20172),s=i(61758),a=i(67727),c=i(34865),l=i(19745),u=i(35492),d=i(75871);let h=class extends c.WithEventBus{get bulkEditService(){return this.overrideServiceRegistry.getRegisteredService(c.ServiceNames.BULK_EDIT_SERVICE)}activate(){}async onEditorDocumentModelWillSave(e){if(e.payload.reason!==d.SaveReason.Manual)return;const t=this.preferenceService.get("editor.codeActionsOnSave",void 0,e.payload.uri.toString(),e.payload.language),i=[];if(t["source.fixAll"]&&i.push(s.CodeActionKind.SourceFixAll),t["source.organizeImports"]&&i.push(s.CodeActionKind.SourceOrganizeImports),0===i.length)return;const r=this.docService.getModelReference(e.payload.uri,"codeActionOnSave");if(!r)return;const o=r.instance.getMonacoModel(),a=new n.CancellationTokenSource,c=this.preferenceService.get("editor.codeActionsOnSaveTimeout",void 0,e.payload.uri.toString(),e.payload.language);return Promise.race([new Promise(((e,t)=>setTimeout((()=>{a.cancel(),t("codeActionsOnSave timeout")}),c))),this.applyOnSaveActions(o,i,a.token)]).finally((()=>{a.cancel(),r.dispose()}))}async applyOnSaveActions(e,t,i){for(const r of t)try{const t=await this.getActionsToRun(e,r,i);await this.applyCodeActions(t.validActions)}catch(e){this.logger.error(e)}}async applyCodeActions(e){var t;for(const i of e)i.edit&&await(null===(t=this.bulkEditService)||void 0===t?void 0:t.apply(i.edit)),i.command&&await this.commandService.executeCommand(i.command.id,...i.command.arguments||[])}async getActionsToRun(e,t,i){return a.getCodeActions(e,e.getFullModelRange(),{type:o.CodeActionTriggerType.Auto,filter:{include:t,includeSourceActions:!0}},i)}};r.__decorate([l.Autowired(c.PreferenceService),r.__metadata("design:type",Object)],h.prototype,"preferenceService",void 0),r.__decorate([l.Autowired(c.MonacoService),r.__metadata("design:type",c.MonacoService)],h.prototype,"monacoService",void 0),r.__decorate([l.Autowired(c.MonacoOverrideServiceRegistry),r.__metadata("design:type",c.MonacoOverrideServiceRegistry)],h.prototype,"overrideServiceRegistry",void 0),r.__decorate([l.Autowired(c.CommandService),r.__metadata("design:type",Object)],h.prototype,"commandService",void 0),r.__decorate([l.Autowired(u.IEditorDocumentModelService),r.__metadata("design:type",Object)],h.prototype,"docService",void 0),r.__decorate([l.Autowired(c.ILogger),r.__metadata("design:type",Object)],h.prototype,"logger",void 0),r.__decorate([c.OnEvent(u.EditorDocumentModelWillSaveEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[u.EditorDocumentModelWillSaveEvent]),r.__metadata("design:returntype",Promise)],h.prototype,"onEditorDocumentModelWillSave",null),h=r.__decorate([l.Injectable()],h),t.CodeActionOnSaveParticipant=h;let p=class{onStart(){this.codeActionOnSaveParticipant.activate()}};r.__decorate([l.Autowired(),r.__metadata("design:type",h)],p.prototype,"codeActionOnSaveParticipant",void 0),p=r.__decorate([c.Domain(c.ClientAppContribution)],p),t.SaveParticipantsContribution=p},35492:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.IEditorDocumentModelService=Symbol("IEditorDocumentModelService"),t.IEditorDocumentModelContentRegistry=Symbol("IEditorDocumentModelContentRegistry");class n extends r.BasicEvent{}t.EditorDocumentModelContentChangedEvent=n;class o extends r.BasicEvent{}t.EditorDocumentModelOptionChangedEvent=o;class s extends r.BasicEvent{}t.EditorDocumentModelOptionExternalUpdatedEvent=s;class a extends r.BasicEvent{}t.EditorDocumentModelCreationEvent=a;class c extends r.BasicEvent{}t.EditorDocumentModelRemovalEvent=c;class l extends r.BasicEvent{}t.EditorDocumentModelSavedEvent=l;class u extends r.BasicEvent{}t.EditorDocumentModelWillSaveEvent=u,t.ORIGINAL_DOC_SCHEME="original_doc"},99644:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(19745),s=i(65686),a=i(36579),c=i(34865),l=i(59941),u=i(35492),d=i(65686),h=i(75871),p=i(92935),f=i(43577),g=i(7680),m=i(80843);let v=class extends s.WithEventBus{constructor(){super(),this._editors=new Set,this._diffEditors=new Set,this._onCodeEditorCreate=new d.Emitter,this._onDiffEditorCreate=new d.Emitter,this.onCodeEditorCreate=this._onCodeEditorCreate.event,this.onDiffEditorCreate=this._onDiffEditorCreate.event,this.addDispose(this.editorFeatureRegistry.onDidRegisterFeature((e=>{this._editors.forEach((t=>{this.editorFeatureRegistry.runOneContribution(t,e)}))})))}get currentEditor(){return this._currentEditor}async createCodeEditor(e,t,i){const r=Object.assign(Object.assign({},f.getConvertedMonacoOptions(this.configurationService).editorOptions),t),n=await this.monacoService.createCodeEditor(e,r,i),o=this.injector.get(b,[n,t]);return this._onCodeEditorCreate.fire(o),o}listEditors(){return Array.from(this._editors.values())}addEditors(e){this._editors.size;e.forEach((e=>{this._editors.has(e)||(this._editors.add(e),this.editorFeatureRegistry.runContributions(e),e.monacoEditor.onDidFocusEditorWidget((()=>{this._currentEditor=e})),e.monacoEditor.onContextMenu((()=>{this._currentEditor=e})))})),this._editors.size}removeEditors(e){this._editors.size;e.forEach((e=>{this._editors.delete(e),this._currentEditor===e&&(this._currentEditor=void 0)})),this._editors.size}async createDiffEditor(e,t,i){const r=f.getConvertedMonacoOptions(this.configurationService),n=Object.assign(Object.assign(Object.assign({},r.editorOptions),r.diffOptions),t),o=await this.monacoService.createDiffEditor(e,n,i),s=this.injector.get(w,[o,t]);return this._onDiffEditorCreate.fire(s),s}listDiffEditors(){return Array.from(this._diffEditors.values())}addDiffEditors(e){this._diffEditors.size;e.forEach((e=>{this._diffEditors.has(e)||this._diffEditors.add(e)})),this._diffEditors.size}removeDiffEditors(e){this._diffEditors.size;e.forEach((e=>{this._diffEditors.delete(e)})),this._diffEditors.size}onDocModelContentChangedEvent(e){this.eventBus.fire(new a.ResourceDecorationNeedChangeEvent({uri:e.payload.uri,decoration:{dirty:!!e.payload.dirty}}))}};function y(e,t,i,r){const o=e.getContribution("snippetController2"),s=i.map((e=>new n.Selection(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn)));e.setSelections(s),e.focus(),o.insert(t,0,0,r.undoStopBefore,r.undoStopAfter)}r.__decorate([o.Autowired(),r.__metadata("design:type",c.MonacoService)],v.prototype,"monacoService",void 0),r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],v.prototype,"injector",void 0),r.__decorate([o.Autowired(m.IConfigurationService),r.__metadata("design:type",Object)],v.prototype,"configurationService",void 0),r.__decorate([o.Autowired(h.IEditorFeatureRegistry),r.__metadata("design:type",p.EditorFeatureRegistryImpl)],v.prototype,"editorFeatureRegistry",void 0),r.__decorate([o.Autowired(u.IEditorDocumentModelService),r.__metadata("design:type",Object)],v.prototype,"documentModelService",void 0),r.__decorate([s.OnEvent(u.EditorDocumentModelContentChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[u.EditorDocumentModelContentChangedEvent]),r.__metadata("design:returntype",void 0)],v.prototype,"onDocModelContentChangedEvent",null),v=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],v),t.EditorCollectionServiceImpl=v,t.insertSnippetWithMonacoEditor=y;let _=class extends s.Disposable{constructor(e,t){super(),this.monacoEditor=e,this.type=t,this._specialEditorOptions={},this._specialModelOptions={},this._editorOptionsFromContribution={},this._disableSelectionEmitter=!1,this.decorationApplier=this.injector.get(l.MonacoEditorDecorationApplier,[this.monacoEditor]),this.addDispose(this.monacoEditor.onDidChangeModel((()=>{this._editorOptionsFromContribution={};const e=this.currentUri;e&&Promise.resolve(this.editorFeatureRegistry.runProvideEditorOptionsForUri(e)).then((t=>{this.currentUri&&e.isEqual(this.currentUri)&&t&&Object.keys(t).length>0&&(this._editorOptionsFromContribution=t,this._doUpdateOptions())})),this._doUpdateOptions()}))),this.addDispose(this.monacoEditor.onDidChangeModelLanguage((()=>{this._doUpdateOptions()}))),this.addDispose(this.configurationService.onDidChangeConfiguration((e=>{e.affectedKeys.filter((e=>f.isEditorOption(e))).length>0&&this._doUpdateOptions()})))}get currentUri(){return this.currentDocumentModel?this.currentDocumentModel.uri:null}getId(){return this.monacoEditor.getId()}getSelections(){return this.monacoEditor.getSelections()||[]}disableSelectionEmitter(){this._disableSelectionEmitter=!0}enableSelectionEmitter(){this._disableSelectionEmitter=!1}getType(){return this.type}updateOptions(e={},t={}){this._specialEditorOptions=s.removeUndefined(Object.assign(Object.assign({},this._specialEditorOptions),e)),this._specialModelOptions=s.removeUndefined(Object.assign(Object.assign({},this._specialModelOptions),t)),this._doUpdateOptions()}_doUpdateOptions(){const{editorOptions:e,modelOptions:t}=this._calculateFinalOptions();!function(e,t,i){e.updateOptions(t),e.getModel()&&e.getModel().updateOptions(i)}(this.monacoEditor,e,t)}_calculateFinalOptions(){var e;const t=this.currentUri?this.currentUri.toString():void 0,i=this.currentDocumentModel?this.currentDocumentModel.languageId:void 0,r=f.getConvertedMonacoOptions(this.configurationService,t,i,void 0),n={readOnly:(null===(e=this.currentDocumentModel)||void 0===e?void 0:e.readonly)||!1};return{editorOptions:Object.assign(Object.assign(Object.assign(Object.assign({},n),r.editorOptions),this._editorOptionsFromContribution),this._specialEditorOptions),modelOptions:Object.assign(Object.assign({},r.modelOptions),this._specialModelOptions)}}insertSnippet(e,t,i){y(this.monacoEditor,e,t,i)}applyDecoration(e,t){this.decorationApplier.applyDecoration(e,t)}onSelectionsChanged(e){return this.monacoEditor.onDidChangeCursorSelection((t=>{this._disableSelectionEmitter||e({selections:this.getSelections(),source:t.source})}))}onVisibleRangesChanged(e){const t=new s.Disposable,i=this.monacoEditor;return t.addDispose(i.onDidScrollChange((t=>{e(this.monacoEditor.getVisibleRanges())}))),t.addDispose(i.onDidLayoutChange((t=>{e(this.monacoEditor.getVisibleRanges())}))),t}setSelections(e){return this.monacoEditor.setSelections(e)}setSelection(e){return this.monacoEditor.setSelection(e)}async save(){this.currentDocumentModel&&await this.currentDocumentModel.save()}onConfigurationChanged(e){return this.monacoEditor.onDidChangeConfiguration((t=>{e()}))}};r.__decorate([o.Autowired(h.IEditorFeatureRegistry),r.__metadata("design:type",Object)],_.prototype,"editorFeatureRegistry",void 0),r.__decorate([o.Autowired(m.IConfigurationService),r.__metadata("design:type",Object)],_.prototype,"configurationService",void 0),r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],_.prototype,"injector",void 0),_=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,Number])],_),t.BaseMonacoEditorWrapper=_;class b extends _{constructor(e,t={}){super(e,a.EditorType.CODE),this.monacoEditor=e,this.editorState=new Map,this.toDispose=[],this._onCursorPositionChanged=new s.Emitter,this.onCursorPositionChanged=this._onCursorPositionChanged.event,this._disposed=!1,this._onRefOpen=new d.Emitter,this.onRefOpen=this._onRefOpen.event,this._specialEditorOptions=t,this.collectionService.addEditors([this]);const i=e.onDidChangeModel((()=>{this.monacoEditor.getDomNode().addEventListener("mousewheel",S),i.dispose()}));this.toDispose.push(e.onDidChangeCursorPosition((()=>{if(!this.currentDocumentModel)return;const t=e.getSelection();this._onCursorPositionChanged.fire({position:e.getPosition(),selectionLength:t?this.currentDocumentModel.getMonacoModel().getValueInRange(t).length:0})}))),this.addDispose({dispose:()=>{this.monacoEditor.dispose()}})}get currentDocumentModel(){return this._currentDocumentModelRef&&!this._currentDocumentModelRef.disposed?this._currentDocumentModelRef.instance:null}getType(){return a.EditorType.CODE}layout(){this.monacoEditor.layout()}focus(){this.monacoEditor.focus()}dispose(){super.dispose(),this.saveCurrentState(),this.collectionService.removeEditors([this]),this._disposed=!0,this.toDispose.forEach((e=>e.dispose()))}saveCurrentState(){if(this.currentUri){const e=this.monacoEditor.saveViewState();e&&this.editorState.set(this.currentUri.toString(),e)}}restoreState(){if(this.currentUri){const e=this.editorState.get(this.currentUri.toString());e&&this.monacoEditor.restoreViewState(e)}}async open(e,t){this.saveCurrentState(),this._currentDocumentModelRef=e;const i=this.currentDocumentModel.getMonacoModel();this.disableSelectionEmitter(),this.monacoEditor.setModel(i),t?(this.enableSelectionEmitter(),this.monacoEditor.revealRangeInCenter(t),this.monacoEditor.setSelection(t)):(this.enableSelectionEmitter(),this.restoreState()),this._onRefOpen.fire(e),this._onCursorPositionChanged.fire({position:this.monacoEditor.getPosition(),selectionLength:0})}}r.__decorate([o.Autowired(a.EditorCollectionService),r.__metadata("design:type",v)],b.prototype,"collectionService",void 0),r.__decorate([o.Autowired(h.IEditorFeatureRegistry),r.__metadata("design:type",Object)],b.prototype,"editorFeatureRegistry",void 0),t.BrowserCodeEditor=b;class w extends s.Disposable{constructor(e,t={}){super(),this.monacoDiffEditor=e,this.specialOptions=t,this.editorState=new Map,this.wrapEditors(),this.addDispose(this.configurationService.onDidChangeConfiguration((e=>{e.affectedKeys.filter((e=>f.isDiffEditorOption(e))).length>0&&this.doUpdateDiffOptions()})))}get originalDocModel(){return this.originalDocModelRef&&!this.originalDocModelRef.disposed?this.originalDocModelRef.instance:null}get modifiedDocModel(){return this.modifiedDocModelRef&&!this.modifiedDocModelRef.disposed?this.modifiedDocModelRef.instance:null}saveCurrentState(){if(this.currentUri){const e=this.monacoDiffEditor.saveViewState();e&&this.editorState.set(this.currentUri.toString(),e)}}restoreState(){if(this.currentUri){const e=this.editorState.get(this.currentUri.toString());e&&this.monacoDiffEditor.restoreViewState(e)}}async compare(e,t,i={},r){if(this.saveCurrentState(),this.originalDocModelRef=e,this.modifiedDocModelRef=t,this.monacoDiffEditor.setModel({original:this.originalDocModel.getMonacoModel(),modified:this.modifiedDocModel.getMonacoModel()}),this.currentUri=r||s.URI.from({scheme:"diff",query:s.URI.stringifyQuery({name,original:this.originalDocModel.uri.toString(),modified:this.modifiedDocModel.uri.toString()})}),i.range||i.originalRange){const e=i.range||i.originalRange,t=i.range?this.modifiedEditor.monacoEditor:this.originalEditor.monacoEditor;setTimeout((()=>{t.revealRangeInCenter(e),t.setSelection(e)}));const r=this.monacoDiffEditor.onDidUpdateDiff((()=>{r.dispose(),setTimeout((()=>{t.revealRangeInCenter(e),t.setSelection(e)}))}))}else this.restoreState();if(i.revealFirstDiff){const e=this.monacoDiffEditor.getLineChanges();if(e&&e.length>0)this.showFirstDiff();else{const e=this.monacoDiffEditor.onDidUpdateDiff((()=>{this.showFirstDiff(),e.dispose()}))}}await this.updateOptionsOnModelChange(),this.diffResourceKey.set(this.currentUri)}showFirstDiff(){const e=this.monacoDiffEditor.getLineChanges();e&&e.length>0&&this.monacoDiffEditor.revealLineInCenter(e[0].modifiedStartLineNumber)}async updateOptionsOnModelChange(){await this.doUpdateDiffOptions()}async doUpdateDiffOptions(){const e=this.modifiedEditor.currentUri?this.modifiedEditor.currentUri.toString():void 0,t=this.modifiedEditor.currentDocumentModel?this.modifiedEditor.currentDocumentModel.languageId:void 0,i=f.getConvertedMonacoOptions(this.configurationService,e,t);this.monacoDiffEditor.updateOptions(Object.assign(Object.assign({},i.diffOptions),this.specialOptions))}updateDiffOptions(e){this.specialOptions=s.removeUndefined(Object.assign(Object.assign({},this.specialOptions),e)),this.doUpdateDiffOptions()}getLineChanges(){return this.monacoDiffEditor.getLineChanges()}wrapEditors(){const e=this;this.originalEditor=this.injector.get(C,[e.monacoDiffEditor.getOriginalEditor(),()=>e.originalDocModel,a.EditorType.ORIGINAL_DIFF]),this.modifiedEditor=this.injector.get(C,[e.monacoDiffEditor.getModifiedEditor(),()=>e.modifiedDocModel,a.EditorType.MODIFIED_DIFF]),this.collectionService.addEditors([this.originalEditor,this.modifiedEditor]),this.collectionService.addDiffEditors([this]);const t=this.contextKeyService.createScoped(this.modifiedEditor.monacoEditor._contextKeyService);this.diffResourceKey=new g.ResourceContextKey(t,void 0,"diffResource")}layout(){return this.monacoDiffEditor.layout()}focus(){this.monacoDiffEditor.focus()}dispose(){super.dispose(),this.collectionService.removeEditors([this.originalEditor,this.modifiedEditor]),this.collectionService.removeDiffEditors([this]),this.monacoDiffEditor.dispose(),this._disposed=!0}}function S(e){e.preventDefault(),e.stopPropagation(),(this.offsetWidth+this.scrollLeft+e.deltaX>this.scrollWidth||this.scrollLeft+e.deltaX<0)&&(e.preventDefault(),e.stopPropagation())}r.__decorate([o.Autowired(a.EditorCollectionService),r.__metadata("design:type",v)],w.prototype,"collectionService",void 0),r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],w.prototype,"injector",void 0),r.__decorate([o.Autowired(m.IConfigurationService),r.__metadata("design:type",Object)],w.prototype,"configurationService",void 0),r.__decorate([o.Autowired(c.IContextKeyService),r.__metadata("design:type",Object)],w.prototype,"contextKeyService",void 0),t.BrowserDiffEditor=w;let C=class extends _{constructor(e,t,i){super(e,i),this.getDocumentModel=t}get currentDocumentModel(){return this.getDocumentModel()}};C=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,Function,Number])],C)},49606:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(36579);let s=class{async open(e){let t;const i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);if(i){const r=parseInt(i[1],10),n=i[2]?parseInt(i[2],10):1;t={startLineNumber:r,startColumn:n,endLineNumber:r,endColumn:n},e=e.withFragment("")}return await this.workbenchEditorService.open(e,{range:t}),!0}async handleURI(e){return this.resourceService.handlesUri(e)}handleScheme(){return!1}};r.__decorate([n.Autowired(o.ResourceService),r.__metadata("design:type",o.ResourceService)],s.prototype,"resourceService",void 0),r.__decorate([n.Autowired(o.WorkbenchEditorService),r.__metadata("design:type",o.WorkbenchEditorService)],s.prototype,"workbenchEditorService",void 0),s=r.__decorate([n.Injectable()],s),t.EditorOpener=s},17820:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(19745),s=i(34865),a=i(8308),c=i(65686),l=i(43849),u=i(87484),d=i(36579),h=i(75871),p=i(41719),f=i(20700),g=i(75455),m=i(63923),v=i(54707),y=i(35492),_=i(15437),b=i(4727),w=i(34488),S=i(49606),C=i(38468),E=i(67628);let O=class{registerComponent(e){e.register("@ali/ide-editor",{id:"ide-editor",component:g.EditorView}),e.register("breadcrumb-menu",{id:"breadcrumb-menu",component:v.NavigationMenuContainer})}registerOverrideService(e){const{MonacoCodeService:t,MonacoContextViewService:r}=i(97489),{MonacoTextModelService:n}=i(81668),o=this.injector.get(t),a=this.injector.get(s.IContextKeyService).createScoped();this.workbenchEditorService.setEditorContextKeyService(a),e.registerOverrideService(s.ServiceNames.CONTEXT_KEY_SERVICE,a.contextKeyService),e.registerOverrideService(s.ServiceNames.CODE_EDITOR_SERVICE,o),e.registerOverrideService(s.ServiceNames.CONTEXT_VIEW_SERVICE,this.injector.get(r)),e.registerOverrideService(s.ServiceNames.TEXT_MODEL_SERVICE,this.injector.get(n))}registerMonacoDefaultFormattingSelector(e){const t=this.injector.get(_.FormattingSelector);e(t.select.bind(t))}async interceptOpen(e){try{return await this.openerService.open(e),!0}catch(e){return this.logger.error(e),!1}}onWillStop(e){return s.isElectronRenderer()?this.onWillStopElectron():this.workbenchEditorService.hasDirty()||!this.cacheProvider.isFlushed()}extractGroupAndUriFromArgs(e,t){let i,r;if(e instanceof s.URI)i=t||this.workbenchEditorService.currentEditorGroup,r=e||i&&i.currentResource&&i.currentResource.uri;else{const t=e||{};i=t.group||this.workbenchEditorService.currentEditorGroup,r=t.uri||i&&i.currentResource&&i.currentResource.uri}return{group:i,uri:r}}async onWillStopElectron(){for(const e of this.workbenchEditorService.editorGroups)for(const t of e.resources)if(!await this.resourceService.shouldCloseResource(t,[]))return!0;return!this.cacheProvider.isFlushed()}registerKeybindings(e){e.registerKeybinding({command:s.EDITOR_COMMANDS.SAVE_CURRENT.id,keybinding:"ctrlcmd+s"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.CLOSE.id,keybinding:c.isElectronEnv()?"ctrlcmd+w":"alt+shift+w"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.PREVIOUS.id,keybinding:c.isElectronEnv()?"alt+cmd+left":"ctrlcmd+ctrl+left"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.NEXT.id,keybinding:c.isElectronEnv()?"alt+cmd+right":"ctrlcmd+ctrl+right"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.PREVIOUS.id,keybinding:c.isElectronEnv()?"ctrlcmd+pageup":"alt+pageup"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.NEXT.id,keybinding:c.isElectronEnv()?"ctrlcmd+pagedown":"alt+pagedown"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.GO_FORWARD.id,keybinding:c.isWindows?"alt+right":"ctrl+shift+-"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.GO_BACK.id,keybinding:c.isWindows?"alt+left":"ctrl+-"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.CHANGE_LANGUAGE.id,keybinding:"ctrlcmd+k m"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,keybinding:"ctrlcmd+\\"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.NAVIGATE_NEXT.id,keybinding:"ctrlcmd+k ctrlcmd+right"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.NAVIGATE_PREVIOUS.id,keybinding:"ctrlcmd+k ctrlcmd+left"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.SAVE_ALL.id,keybinding:"alt+ctrlcmd+s"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP.id,keybinding:"ctrlcmd+k w"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.PIN_CURRENT.id,keybinding:"ctrlcmd+k enter"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.COPY_CURRENT_PATH.id,keybinding:"ctrlcmd+k p"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.REOPEN_CLOSED.id,keybinding:c.isElectronEnv()?"ctrlcmd+shift+t":"alt+shift+t"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,keybinding:c.isElectronEnv()?"ctrlcmd+n":"alt+n"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,keybinding:c.isElectronEnv()?"ctrlcmd+t":"ctrlcmd+o"}),c.isElectronEnv()&&(e.registerKeybinding({command:s.EDITOR_COMMANDS.NEXT.id,keybinding:"ctrl+tab"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.PREVIOUS.id,keybinding:"ctrl+shift+tab"}),c.isOSX&&(e.registerKeybinding({command:s.EDITOR_COMMANDS.NEXT.id,keybinding:"ctrlcmd+shift+]"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.PREVIOUS.id,keybinding:"ctrlcmd+shift+["})));for(let t=1;t<10;t++)e.registerKeybinding({command:s.EDITOR_COMMANDS.GO_TO_GROUP.id,keybinding:"ctrlcmd+"+t,args:[t]});["left","up","down","right"].forEach((t=>{e.registerKeybinding({command:s.EDITOR_COMMANDS.MOVE_GROUP.id,keybinding:"ctrlcmd+k "+t,args:[t]})})),e.registerKeybinding({command:s.EDITOR_COMMANDS.COMPONENT_UNDO.id,keybinding:"ctrlcmd+z",when:"inEditorComponent"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.COMPONENT_REDO.id,keybinding:"shift+ctrlcmd+z",when:"inEditorComponent"}),e.registerKeybinding({command:s.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,keybinding:"alt+z",when:"editorFocus"})}initialize(){this.editorStatusBarService.setListener(),this.historyService.start()}registerCommands(e){e.registerCommand(s.EDITOR_COMMANDS.GO_FORWARD,{execute:()=>{this.historyService.forward()}}),e.registerCommand(s.EDITOR_COMMANDS.GO_BACK,{execute:()=>{this.historyService.back()}}),e.registerCommand(s.EDITOR_COMMANDS.OPEN_RESOURCE,{execute:async(e,t)=>{const i=await this.workbenchEditorService.open(e,t);if(i)return{groupId:null==i?void 0:i.group.name}}}),e.registerCommand(s.EDITOR_COMMANDS.OPEN_RESOURCES,{execute:({uris:e})=>{this.workbenchEditorService.openUris(e)}}),e.registerCommand(s.EDITOR_COMMANDS.COMPARE,{execute:({original:e,modified:t,name:i},r={})=>(i=i||`${e.displayName} <=> ${t.displayName}`,this.workbenchEditorService.open(s.URI.from({scheme:"diff",query:s.URI.stringifyQuery({name:i,original:e,modified:t})}),r))}),e.registerCommand(s.EDITOR_COMMANDS.SAVE_CURRENT,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;e&&e.currentResource&&(e.pin(e.currentResource.uri),e.saveCurrent())}}),e.registerCommand(s.EDITOR_COMMANDS.SAVE_URI,{execute:async e=>{for(const t of this.workbenchEditorService.editorGroups){const i=t.resources.find((t=>t.uri.isEqual(e)));i&&t.saveResource(i)}}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP,{execute:async(e,t)=>{const{group:i}=this.extractGroupAndUriFromArgs(e,t);i&&await i.closeAll()}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_SAVED,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup}=e;t&&await t.closeSaved()}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_OTHER_IN_GROUP,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.closeOthers(i)}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.close(i)}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_TO_RIGHT,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.closeToRight(i)}}),e.registerCommand(s.EDITOR_COMMANDS.GET_CURRENT,{execute:()=>this.workbenchEditorService.currentEditorGroup}),e.registerCommand(s.EDITOR_COMMANDS.GET_CURRENT_RESOURCE,{execute:()=>this.workbenchEditorService.currentResource}),e.registerCommand(s.EDITOR_COMMANDS.PIN_CURRENT,{execute:()=>{const e=this.workbenchEditorService.currentEditorGroup;e&&e.pinPreviewed()}}),e.registerCommand(s.EDITOR_COMMANDS.COPY_CURRENT_PATH,{execute:()=>{const e=this.workbenchEditorService.currentResource;e&&e.uri.scheme===s.Schemas.file&&this.clipboardService.writeText(e.uri.codeUri.fsPath)}}),e.registerCommand(s.EDITOR_COMMANDS.SPLIT_TO_LEFT,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.split(d.EditorGroupSplitAction.Left,i,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.SPLIT_TO_RIGHT,{execute:async(e,t)=>{const{group:i,uri:r}=this.extractGroupAndUriFromArgs(e,t);i&&r&&await i.split(d.EditorGroupSplitAction.Right,r,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.GO_TO_GROUP,{execute:async(e=1)=>{var t;const i=this.workbenchEditorService.sortedEditorGroups[e-1];if(i)return void i.focus();const r=this.workbenchEditorService.sortedEditorGroups.length;if(r===e-1){const e=this.workbenchEditorService.sortedEditorGroups[r-1],i=null===(t=null==e?void 0:e.currentResource)||void 0===t?void 0:t.uri;e&&i&&await e.split(d.EditorGroupSplitAction.Right,i,{focus:!0})}}}),e.registerCommand(s.EDITOR_COMMANDS.MOVE_GROUP,{execute:async e=>{if(e){const t=this.workbenchEditorService.currentEditorGroup;t&&t.grid.move(e)}}}),e.registerCommand(s.EDITOR_COMMANDS.FOCUS_ACTIVE_EDITOR_GROUP,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;e&&e.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.SPLIT_TO_TOP,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.split(d.EditorGroupSplitAction.Top,i,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.SPLIT_TO_BOTTOM,{execute:async e=>{e=e||{};const{group:t=this.workbenchEditorService.currentEditorGroup,uri:i=t&&t.currentResource&&t.currentResource.uri}=e;t&&i&&await t.split(d.EditorGroupSplitAction.Bottom,i,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.CHANGE_LANGUAGE,{execute:async e=>{const t=this.languagesService.languages.map((e=>({label:e.name,value:e.id,description:`(${e.id})`}))),i=await this.quickPickService.show(t,{placeholder:s.localize("editor.changeLanguageId"),selectIndex:()=>t.findIndex((e=>{var t,i;return e.value===(null===(i=null===(t=this.workbenchEditorService.currentCodeEditor)||void 0===t?void 0:t.currentDocumentModel)||void 0===i?void 0:i.languageId)}))});if(i&&e!==i&&this.workbenchEditorService.currentEditor){const e=this.workbenchEditorService.currentEditor.currentDocumentModel;e&&this.editorDocumentModelService.changeModelOptions(e.uri,{languageId:i})}}}),e.registerCommand(s.EDITOR_COMMANDS.CHANGE_ENCODING,{execute:async()=>{const e=this.workbenchEditorService.currentResource;if(e){const t=Object.keys(u.SUPPORTED_ENCODINGS).map((e=>({label:u.SUPPORTED_ENCODINGS[e].labelLong,value:e,description:u.SUPPORTED_ENCODINGS[e].labelShort}))),i=await this.quickPickService.show(t,{placeholder:s.localize("editor.chooseEncoding")});i&&this.editorDocumentModelService.changeModelOptions(e.uri,{encoding:i})}}}),e.registerCommand(s.EDITOR_COMMANDS.CHANGE_EOL,{execute:async()=>{const e=this.workbenchEditorService.currentResource,t=this.workbenchEditorService.currentCodeEditor;if(t&&t.currentDocumentModel&&e){const i=await this.quickPickService.show([{label:"LF",value:"\n"},{label:"CRLF",value:"\r\n"}],{placeholder:s.localize("editor.changeEol"),selectIndex:()=>"\n"===t.currentDocumentModel.eol?0:1});i&&this.editorDocumentModelService.changeModelOptions(e.uri,{eol:i})}}}),e.registerCommand(s.EDITOR_COMMANDS.FOCUS,{execute:async()=>{this.workbenchEditorService.currentEditor&&this.workbenchEditorService.currentEditor.monacoEditor.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_NEXT,{execute:async()=>{let e=this.workbenchEditorService.currentEditorGroup.index+1;return this.workbenchEditorService.editorGroups.length<=e&&(e=0),this.workbenchEditorService.sortedEditorGroups[e].focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_PREVIOUS,{execute:async()=>{let e=this.workbenchEditorService.currentEditorGroup.index-1;return e<0&&(e=this.workbenchEditorService.editorGroups.length-1),this.workbenchEditorService.sortedEditorGroups[e].focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_UP,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup.grid.findGird(d.Direction.UP);if(e)return e.editorGroup.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_DOWN,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup.grid.findGird(d.Direction.DOWN);if(e)return e.editorGroup.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_LEFT,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup.grid.findGird(d.Direction.LEFT);if(e)return e.editorGroup.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.NAVIGATE_RIGHT,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup.grid.findGird(d.Direction.RIGHT);if(e)return e.editorGroup.focus()}}),e.registerCommand(s.EDITOR_COMMANDS.PREVIOUS_IN_GROUP,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(!e.currentResource)return;const t=e.resources.findIndex((t=>t.uri.isEqual(e.currentResource.uri)))-1;return e.resources[t]?e.open(e.resources[t].uri,{focus:!0}):e.open(e.resources[0].uri,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.NEXT_IN_GROUP,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(!e.currentResource)return;const t=e.resources.findIndex((t=>t.uri.isEqual(e.currentResource.uri)))+1;return e.resources[t]?e.open(e.resources[t].uri,{focus:!0}):e.open(e.resources[e.resources.length-1].uri,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.NEXT,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(!e.currentResource)return;const t=e.resources.findIndex((t=>t.uri.isEqual(e.currentResource.uri)))+1;if(e.resources[t])return e.open(e.resources[t].uri,{focus:!0});{const t=e.index===this.workbenchEditorService.editorGroups.length-1?0:e.index+1,i=this.workbenchEditorService.sortedEditorGroups[t];return i.focus(),i.open(i.resources[0].uri,{focus:!0})}}}),e.registerCommand(s.EDITOR_COMMANDS.PREVIOUS,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(!e.currentResource)return;const t=e.resources.findIndex((t=>t.uri.isEqual(e.currentResource.uri)))-1;if(e.resources[t])return e.open(e.resources[t].uri,{focus:!0});{const t=0===e.index?this.workbenchEditorService.editorGroups.length-1:e.index-1,i=this.workbenchEditorService.sortedEditorGroups[t];return i.focus(),i.open(i.resources[i.resources.length-1].uri,{focus:!0})}}}),e.registerCommand(s.EDITOR_COMMANDS.LAST_IN_GROUP,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(e.resources.length>0)return e.open(e.resources[e.resources.length-1].uri,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.EVEN_EDITOR_GROUPS,{execute:async()=>{this.injector.get(s.IEventBus).fire(new h.EditorGroupsResetSizeEvent)}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_OTHER_GROUPS,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;this.workbenchEditorService.editorGroups.filter((t=>t!==e)).forEach((e=>{e.dispose()}))}}),e.registerCommand(s.EDITOR_COMMANDS.OPEN_EDITOR_AT_INDEX,{execute:async e=>{const t=this.workbenchEditorService.currentEditorGroup,i=t.resources[e];i&&await t.open(i.uri,{focus:!0})}}),e.registerCommand(s.EDITOR_COMMANDS.REVERT_DOCUMENT,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(e.isCodeEditorMode()){const t=e.codeEditor.currentDocumentModel;t&&await t.revert()}}}),e.registerCommand(s.EDITOR_COMMANDS.REVERT_AND_CLOSE,{execute:async()=>{const e=this.workbenchEditorService.currentEditorGroup;if(e.isCodeEditorMode()){const t=e.codeEditor.currentDocumentModel;t&&await t.revert(),e.close(e.currentResource.uri)}}}),e.registerCommand(s.EDITOR_COMMANDS.SAVE_ALL,{execute:async e=>{this.workbenchEditorService.saveAll(void 0,e)}}),e.registerCommand(s.EDITOR_COMMANDS.CLOSE_ALL,{execute:async e=>{this.workbenchEditorService.closeAll(e)}}),e.registerCommand(s.EDITOR_COMMANDS.REOPEN_CLOSED,{execute:async()=>{this.historyService.popClosed()}}),e.registerCommand(s.EDITOR_COMMANDS.NEW_UNTITLED_FILE,{execute:()=>{this.workbenchEditorService.createUntitledResource()}}),e.registerCommand(s.EDITOR_COMMANDS.COMPONENT_UNDO,{execute:()=>{this.workbenchEditorService.currentEditorGroup.componentUndo()}}),e.registerCommand(s.EDITOR_COMMANDS.COMPONENT_REDO,{execute:()=>{this.workbenchEditorService.currentEditorGroup.componentRedo()}}),e.registerCommand(s.EDITOR_COMMANDS.TEST_TOKENIZE,{execute:()=>{const e=this.workbenchEditorService.currentCodeEditor;if(e){const t=e.getSelections();if(t&&t.length>0&&e.currentDocumentModel){const{selectionStartLineNumber:i,selectionStartColumn:r,positionLineNumber:o,positionColumn:s}=t[0],a=e.currentDocumentModel.getText(new n.Range(i,r,o,s));this.monacoService.testTokenize(a,e.currentDocumentModel.languageId)}}}}),e.registerCommand(s.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL,{execute:()=>this.prefixQuickOpenService.open("#")}),e.registerCommand(s.EDITOR_COMMANDS.TOGGLE_WORD_WRAP,{execute:()=>{const e=this.preferenceService.get("editor.wordWrap");if(e){const t=["off","on"],i=t.indexOf(e)+1;i>-1&&this.preferenceService.set("editor.wordWrap",t[i%t.length],c.PreferenceScope.User)}}})}registerMenus(e){e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.SPLIT_TO_LEFT.id,group:"9_split"}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,group:"9_split"}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.SPLIT_TO_TOP.id,group:"9_split"}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.SPLIT_TO_BOTTOM.id,group:"9_split"}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:{id:s.EDITOR_COMMANDS.CLOSE.id,label:s.localize("editor.title.context.close")},group:"0_tab",order:1}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP.id,group:"0_tab",order:2}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.CLOSE_SAVED.id,group:"0_tab",order:3}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.CLOSE_OTHER_IN_GROUP.id,group:"0_tab",order:4}),e.registerMenuItem(l.MenuId.EditorTitleContext,{command:s.EDITOR_COMMANDS.CLOSE_TO_RIGHT.id,group:"0_tab",order:5}),e.registerMenuItem(l.MenuId.EditorTitle,{command:s.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP.id,group:"0_internal"}),e.registerMenuItem(l.MenuId.EditorTitle,{command:s.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,group:"navigation",when:"resource",order:5})}registerOpener(e){e.registerOpener(this.editorOpener)}registerQuickOpenHandlers(e){e.registerHandler(this.workspaceSymbolQuickOpenHandler)}};r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],O.prototype,"injector",void 0),r.__decorate([o.Autowired(d.WorkbenchEditorService),r.__metadata("design:type",p.WorkbenchEditorServiceImpl)],O.prototype,"workbenchEditorService",void 0),r.__decorate([o.Autowired(d.ResourceService),r.__metadata("design:type",d.ResourceService)],O.prototype,"resourceService",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",f.EditorStatusBarService)],O.prototype,"editorStatusBarService",void 0),r.__decorate([o.Autowired(s.QuickPickService),r.__metadata("design:type",Object)],O.prototype,"quickPickService",void 0),r.__decorate([o.Autowired(d.ILanguageService),r.__metadata("design:type",Object)],O.prototype,"languagesService",void 0),r.__decorate([o.Autowired(y.IEditorDocumentModelService),r.__metadata("design:type",Object)],O.prototype,"editorDocumentModelService",void 0),r.__decorate([o.Autowired(d.IDocPersistentCacheProvider),r.__metadata("design:type",Object)],O.prototype,"cacheProvider",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",m.EditorHistoryService)],O.prototype,"historyService",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",s.MonacoService)],O.prototype,"monacoService",void 0),r.__decorate([o.Autowired(s.IOpenerService),r.__metadata("design:type",Object)],O.prototype,"openerService",void 0),r.__decorate([o.Autowired(c.ILogger),r.__metadata("design:type",Object)],O.prototype,"logger",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",S.EditorOpener)],O.prototype,"editorOpener",void 0),r.__decorate([o.Autowired(s.IClipboardService),r.__metadata("design:type",Object)],O.prototype,"clipboardService",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",C.WorkspaceSymbolQuickOpenHandler)],O.prototype,"workspaceSymbolQuickOpenHandler",void 0),r.__decorate([o.Autowired(s.PrefixQuickOpenService),r.__metadata("design:type",Object)],O.prototype,"prefixQuickOpenService",void 0),r.__decorate([o.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],O.prototype,"preferenceService",void 0),O=r.__decorate([s.Domain(s.CommandContribution,s.ClientAppContribution,s.KeybindingContribution,s.MonacoContribution,a.ComponentContribution,l.MenuContribution,s.OpenerContribution,s.QuickOpenContribution)],O),t.EditorContribution=O;let k=class{registerEditorFeature(e){e.registerEditorFeatureContribution({contribute:e=>{const t=new s.Disposable;return t.addDispose(e.monacoEditor.onDidBlurEditorWidget((()=>{this.preferenceService.get("editor.autoSave")===E.AUTO_SAVE_MODE.EDITOR_FOCUS_CHANGE&&e.currentDocumentModel&&!e.currentDocumentModel.closeAutoSave&&e.currentDocumentModel.dirty&&e.currentDocumentModel.savable&&e.currentDocumentModel.save(void 0,d.SaveReason.FocusOut)}))),t.addDispose(e.monacoEditor.onDidChangeModel((e=>{if(this.preferenceService.get("editor.autoSave")===E.AUTO_SAVE_MODE.EDITOR_FOCUS_CHANGE&&e.oldModelUrl){const t=new s.URI(e.oldModelUrl.toString()),i=this.editorDocumentService.getModelReference(t,"editor-focus-autosave");i&&!i.instance.closeAutoSave&&i.instance.dirty&&i.instance.savable&&(i.instance.save(void 0,d.SaveReason.FocusOut),i.dispose())}}))),t}}),window.addEventListener("blur",(()=>{this.preferenceService.get("editor.autoSave")===E.AUTO_SAVE_MODE.WINDOWS_LOST_FOCUS&&this.commandService.executeCommand(s.EDITOR_COMMANDS.SAVE_ALL.id,d.SaveReason.FocusOut)})),this.preferenceSettings.setEnumLabels("editor.autoSave",{[E.AUTO_SAVE_MODE.OFF]:s.localize("editor.autoSave.enum.off"),[E.AUTO_SAVE_MODE.AFTER_DELAY]:s.localize("editor.autoSave.enum.afterDelay"),[E.AUTO_SAVE_MODE.EDITOR_FOCUS_CHANGE]:s.localize("editor.autoSave.enum.editorFocusChange"),[E.AUTO_SAVE_MODE.WINDOWS_LOST_FOCUS]:s.localize("editor.autoSave.enum.windowLostFocus")}),e.registerEditorFeatureContribution(new b.EditorTopPaddingContribution),e.registerEditorFeatureContribution(this.injector.get(w.EditorSuggestWidgetContribution)),this.registerAutoSaveConfigurationChange()}registerAutoSaveConfigurationChange(){this.preferenceService.onSpecificPreferenceChange("editor.autoSave",(e=>{const t=e.newValue;if(t!==E.AUTO_SAVE_MODE.OFF){let i=d.SaveReason.FocusOut;t===E.AUTO_SAVE_MODE.AFTER_DELAY&&(i=d.SaveReason.AfterDelay);for(const t of this.workbenchEditorService.editorGroups)for(const r of t.resources)e.affects(null==r?void 0:r.uri.toString())&&t.saveResource(r,i)}}))}registerCommands(e){e.registerCommand(s.EDITOR_COMMANDS.AUTO_SAVE,{execute:()=>{const e="editor.autoSave",t=this.preferenceSettings.getPreference(e,c.PreferenceScope.User).value||E.AUTO_SAVE_MODE.OFF,i=[E.AUTO_SAVE_MODE.AFTER_DELAY,E.AUTO_SAVE_MODE.EDITOR_FOCUS_CHANGE,E.AUTO_SAVE_MODE.WINDOWS_LOST_FOCUS].includes(t)?E.AUTO_SAVE_MODE.OFF:E.AUTO_SAVE_MODE.AFTER_DELAY;return this.preferenceSettings.setPreference(e,i,c.PreferenceScope.User)}})}};r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],k.prototype,"injector",void 0),r.__decorate([o.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],k.prototype,"preferenceService",void 0),r.__decorate([o.Autowired(d.WorkbenchEditorService),r.__metadata("design:type",p.WorkbenchEditorServiceImpl)],k.prototype,"workbenchEditorService",void 0),r.__decorate([o.Autowired(s.CommandService),r.__metadata("design:type",Object)],k.prototype,"commandService",void 0),r.__decorate([o.Autowired(y.IEditorDocumentModelService),r.__metadata("design:type",Object)],k.prototype,"editorDocumentService",void 0),r.__decorate([o.Autowired(s.IPreferenceSettingsService),r.__metadata("design:type",Object)],k.prototype,"preferenceSettings",void 0),k=r.__decorate([s.Domain(h.BrowserEditorContribution,s.CommandContribution)],k),t.EditorAutoSaveEditorContribution=k},86079:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(71825),s=i(34865),a=i(75871),c=i(64994);let l=class{constructor(){this.decorations=new Map,this.tempId=0,this.decorationProviders=new Map}getNextTempId(){return this.tempId++,"temp-decoration-"+this.tempId}createTextEditorDecorationType(e,t){t||(t=this.getNextTempId());const i=this.resolveDecoration(t,e),r={key:t,property:i,dispose:()=>{t&&this.decorations.has(t)&&(i.dispose(),this.decorations.delete(t),this.eventBus.fire(new a.EditorDecorationTypeRemovedEvent(t)))}};return this.decorations.set(t,r),r}getTextEditorDecorationType(e){return this.decorations.get(e)}resolveDecoration(e,t){const i={default:this.addedThemeDecorationToCSSStyleSheet(e,t),light:t.light?this.addedThemeDecorationToCSSStyleSheet(e+"-light",t.light):null,dark:t.dark?this.addedThemeDecorationToCSSStyleSheet(e+"-dark",t.dark):null,isWholeLine:t.isWholeLine||!1,overviewRulerLane:t.overviewRulerLane,dispose:()=>{i.default.dispose(),i.light&&i.light.dispose(),i.dark&&i.dark.dispose()}};return i}addedThemeDecorationToCSSStyleSheet(e,t){const i=e,r=e+"-inline",n=new s.Disposable;let o,a,c;const l=this.resolveCSSStyle(t),u=this.resolveInlineCSSStyle(t);if(n.addDispose(this.cssManager.addClass(i,l)),n.addDispose(this.cssManager.addClass(r,u)),t.after){const i=this.resolveContentCSSStyle(t.after);n.addDispose(this.cssManager.addClass(e+"-after::after",i)),o=e+"-after",n.addDispose(this.cssManager.addClass(o,{display:"inline-block"}))}if(t.before){const i=this.resolveContentCSSStyle(t.before);n.addDispose(this.cssManager.addClass(e+"-before::before",i)),a=e+"-before",n.addDispose(this.cssManager.addClass(a,{display:"inline-block"}))}if(t.gutterIconPath){const i=this.resolveCSSStyle({backgroundIconSize:t.gutterIconSize,backgroundIcon:t.gutterIconPath.toString()});c=e+"-glyphMargin",n.addDispose(this.cssManager.addClass(c,i))}return{className:i,inlineClassName:r,afterContentClassName:o,beforeContentClassName:a,glyphMarginClassName:c,overviewRulerColor:t.overviewRulerColor,dispose:()=>n.dispose()}}resolveCSSStyle(e){return{backgroundColor:this.themeService.getColorVar(e.backgroundColor),background:e.backgroundIcon?`url('${e.backgroundIcon}') center center no-repeat`:void 0,backgroundSize:e.backgroundIconSize?`${e.backgroundIconSize}`:void 0,outline:e.outline,outlineColor:e.outlineColor,outlineStyle:e.outlineStyle,outlineWidth:e.outlineWidth,border:e.border,borderColor:this.themeService.getColorVar(e.borderColor),borderRadius:e.borderRadius,borderSpacing:e.borderSpacing,borderStyle:e.borderStyle,borderWidth:e.borderWidth}}resolveInlineCSSStyle(e){return{fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration,cursor:e.cursor,color:this.themeService.getColorVar(e.color),opacity:e.opacity,letterSpacing:e.letterSpacing}}resolveContentCSSStyle(e){let t;return e.contentText?t=`"${e.contentText}"`:e.contentIconPath&&(t=`url('${s.URI.from(e.contentIconPath).toString(!0).replace(/'/g,"%27")}')`),{content:t,border:e.border,borderColor:this.themeService.getColorVar(e.borderColor),fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration,color:this.themeService.getColorVar(e.color),backgroundColor:this.themeService.getColorVar(e.backgroundColor),margin:e.margin,width:e.width,height:e.height}}registerDecorationProvider(e){this.decorationProviders.set(e.key,e),this.eventBus.fire(new a.EditorDecorationProviderRegistrationEvent(e));const t=e.onDidDecorationChange((t=>{this.eventBus.fire(new a.EditorDecorationChangeEvent({uri:t,key:e.key}))}));return{dispose:()=>{this.decorationProviders.get(e.key)===e&&(this.decorationProviders.delete(e.key),this.eventBus.fire(new a.EditorDecorationTypeRemovedEvent(e.key))),t.dispose()}}}async getDecorationFromProvider(e,t){const i={};let r=[];return t?this.decorationProviders.has(t)&&r.push(this.decorationProviders.get(t)):r=Array.from(this.decorationProviders.values()),await Promise.all(r.map((async t=>{if(t.schemes&&-1===t.schemes.indexOf(e.scheme))return;const r=await t.provideEditorDecoration(e);r&&(i[t.key]=r)}))),i}};r.__decorate([n.Autowired(o.ICSSStyleService),r.__metadata("design:type",Object)],l.prototype,"cssManager",void 0),r.__decorate([n.Autowired(c.IThemeService),r.__metadata("design:type",Object)],l.prototype,"themeService",void 0),r.__decorate([n.Autowired(s.IEventBus),r.__metadata("design:type",Object)],l.prototype,"eventBus",void 0),l=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],l),t.EditorDecorationCollectionService=l},97489:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(88430),s=i(6542),a=i(7510),c=i(74364),l=i(41719),u=i(36579),d=i(65686),h=i(19745);let p=class extends s.CodeEditorServiceImpl{constructor(){super(o.StaticServices.standaloneThemeService.get())}getActiveCodeEditor(){return this.workbenchEditorService.currentEditor?this.workbenchEditorService.currentEditor.monacoEditor:null}async openCodeEditor(e,t,i){const r=new d.URI(e.resource.toString());let o,s=this.workbenchEditorService.currentEditorGroup;t&&(s=this.workbenchEditorService.editorGroups.find((e=>e.currentEditor&&e.currentEditor.monacoEditor===t))||s,o=s.resources.findIndex((e=>s.currentResource&&e.uri===s.currentResource.uri)),o>=0&&o++);const a=e.options?e.options.selection:null;let c;return a&&(c="number"==typeof a.endLineNumber&&"number"==typeof a.endColumn?a:new n.Range(a.startLineNumber,a.startColumn,a.startLineNumber,a.startColumn)),await s.open(r,{index:o,range:c,focus:!0}),s.codeEditor.monacoEditor}};r.__decorate([h.Autowired(u.WorkbenchEditorService),r.__metadata("design:type",l.WorkbenchEditorServiceImpl)],p.prototype,"workbenchEditorService",void 0),p=r.__decorate([h.Injectable(),r.__metadata("design:paramtypes",[])],p),t.MonacoCodeService=p;let f=class extends c.ContextViewService{constructor(){super(new a.SimpleLayoutService(document.body))}setContainer(e){this.menuContainer||(this.menuContainer=document.createElement("div"),this.menuContainer.className=e.className,this.menuContainer.style.left="0",this.menuContainer.style.top="0",this.menuContainer.style.position="fixed",this.menuContainer.style.zIndex="10",document.body.append(this.menuContainer)),super.setContainer(this.menuContainer)}};f=r.__decorate([h.Injectable(),r.__metadata("design:paramtypes",[])],f),t.MonacoContextViewService=f},20700:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65777),s=i(36579),a=i(34865),c=i(35492);let l=class extends a.WithEventBus{setListener(){this.workbenchEditorService.onActiveResourceChange((()=>{this.updateLanguageStatus(this.workbenchEditorService.currentEditor)})),this.workbenchEditorService.onCursorChange((e=>{this.updateCursorStatus(e)})),this.eventBus.on(c.EditorDocumentModelOptionChangedEvent,(e=>{const t=this.workbenchEditorService.currentEditor;t&&t.currentUri&&t.currentUri.isEqual(e.payload.uri)&&this.updateLanguageStatus(this.workbenchEditorService.currentEditor)}))}updateCursorStatus(e){const{position:t,selectionLength:i}=e;if(!t)return void this.statusBar.removeElement("editor-status-cursor");this.statusBar.addElement("editor-status-cursor",{text:`%status-bar.label.line%${t.lineNumber},%status-bar.label.column%${t.column}${i?`(%status-bar.label.selected%${i})`:""}`,priority:4,alignment:o.StatusBarAlignment.RIGHT})}updateLanguageStatus(e){if(!e)return this.statusBar.removeElement("editor-status-language"),this.statusBar.removeElement("editor-status-encoding"),this.statusBar.removeElement("editor-status-eol"),void this.statusBar.removeElement("editor-status-space");let t="",i="",r="",n=!1,s=2;const c=e.currentDocumentModel;c&&(t=c.languageId,i=c.encoding,r=c.eol,n=c.getMonacoModel().getOptions().insertSpaces,s=c.getMonacoModel().getOptions().tabSize);const l="\n"===r?"LF":"CRLF",u=this.languageService.getLanguage(t),d=u?u.name:"";this.statusBar.addElement("editor-status-language",{text:d,alignment:o.StatusBarAlignment.RIGHT,priority:1,command:a.EDITOR_COMMANDS.CHANGE_LANGUAGE.id,tooltip:a.localize("status.editor.chooseLanguage")}),this.statusBar.addElement("editor-status-encoding",{text:i.toUpperCase(),alignment:o.StatusBarAlignment.RIGHT,priority:2,command:a.EDITOR_COMMANDS.CHANGE_ENCODING.id,tooltip:a.localize("status.editor.chooseEncoding")}),this.statusBar.addElement("editor-status-eol",{text:l,alignment:o.StatusBarAlignment.RIGHT,priority:3,command:a.EDITOR_COMMANDS.CHANGE_EOL.id,tooltip:a.localize("status.editor.changeEol")}),this.statusBar.addElement("editor-status-space",{text:(n?a.localize("status-bar.label.tabType.space"):a.localize("status-bar.label.tabType.tab"))+": "+s,alignment:o.StatusBarAlignment.RIGHT,priority:4,command:void 0})}};r.__decorate([n.Autowired(o.IStatusBarService),r.__metadata("design:type",Object)],l.prototype,"statusBar",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",s.WorkbenchEditorService)],l.prototype,"workbenchEditorService",void 0),r.__decorate([n.Autowired(s.ILanguageService),r.__metadata("design:type",Object)],l.prototype,"languageService",void 0),l=r.__decorate([n.Injectable()],l),t.EditorStatusBarService=l},75455:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(13205),s=i(99396),a=i(94184),c=i(63804),l=i(59864),u=i(27196),d=i(36579),h=i(199),p=i(81661),f=i(54707),g=i(94873),m=i(75871),v=i(7619);t.EditorView=()=>{const e=c.useRef(),i=s.useInjectable(d.WorkbenchEditorService),r=s.useInjectable(n.ComponentRegistry).getComponentRegistryInfo("editor-widget-right"),o=r&&r.views[0].component,[a,l]=c.useState(i.gridReady);return c.useEffect((()=>{if(!a){if(!i.gridReady){const e=i.onDidGridReady((()=>{l(!0)}));return()=>e.dispose()}l(!0)}}),[]),a?c.createElement("div",{className:v.kt_workbench_editor,id:"workbench-editor",ref:t=>{e.current=t,t&&i.onDomCreated(t)}},c.createElement("div",{className:v.kt_editor_main_wrapper},c.createElement(t.EditorGridView,{grid:i.topGrid})),o?c.createElement("div",{className:v.kt_editor_right_widget},c.createElement(n.ErrorBoundary,null,c.createElement(o,null))):null):null};const y={};t.EditorGridView=({grid:e})=>{let i;const r=c.useContext(n.ConfigContext),l=s.useInjectable(n.IEventBus),d=[],[,h]=c.useState(),f=c.useCallback((()=>h({})),[]);if(c.useEffect((()=>{if(i)if(y[e.editorGroup.name])i.appendChild(y[e.editorGroup.name]),e.editorGroup.layoutEditors();else{const o=document.createElement("div");y[e.editorGroup.name]=o,o.style.height="100%",i.appendChild(o),u.render(c.createElement(n.ConfigProvider,{value:r},c.createElement(t.EditorGroupView,{group:e.editorGroup})),o)}})),n.useDisposable((()=>[l.on(m.EditorGroupsResetSizeEvent,(()=>{e.splitDirection&&d.length>0&&d.forEach((t=>{t.setSize(1/e.children.length,1/e.children.length)}))})),e.onDidGridStateChange((()=>{f()}))]),[]),0===e.children.length&&e.editorGroup)return c.createElement("div",{style:{height:"100%"},ref:e=>e&&(i=e)});const g=e.splitDirection===p.SplitDirection.Horizontal?{width:100/e.children.length+"%"}:{height:100/e.children.length+"%"},_=[];return e.children.forEach(((i,r)=>{0!==r&&(e.splitDirection===p.SplitDirection.Vertical?_.push(c.createElement(o.ResizeHandleVertical,{key:"resize-"+e.children[r-1].uid+"-"+i.uid,onResize:()=>{e.children[r-1].emitResizeWithEventBus(l),i.emitResizeWithEventBus(l)},delegate:e=>{d.push(e)}})):_.push(c.createElement(o.ResizeHandleHorizontal,{key:"resize-"+e.children[r-1].uid+"-"+i.uid,onResize:()=>{e.children[r-1].emitResizeWithEventBus(l),i.emitResizeWithEventBus(l)},delegate:e=>{d.push(e)}}))),_.push(c.createElement("div",{className:a.default({[v.kt_grid_vertical_child]:e.splitDirection===p.SplitDirection.Vertical,[v.kt_grid_horizontal_child]:e.splitDirection===p.SplitDirection.Horizontal}),style:g,key:i.uid,"data-min-resize":e.splitDirection===p.SplitDirection.Horizontal?150:60},c.createElement(t.EditorGridView,{grid:i})))})),c.createElement("div",{className:a.default({[v.kt_grid_vertical]:e.splitDirection===p.SplitDirection.Vertical,[v.kt_grid_horizontal]:e.splitDirection===p.SplitDirection.Horizontal})},_)};const _={},b={},w=({editorBackgroundImage:e})=>e?c.createElement("div",{className:v.editorEmpty},c.createElement("img",{className:v.editorEmptyImg,src:e})):null;function S({group:e}){const i=c.useRef(null),r=s.useInjectable(d.WorkbenchEditorService),o=s.useInjectable(n.IEventBus),l=[],u=c.useRef(null),h=c.useRef(null),[,p]=c.useState(),g=c.useCallback((()=>p({})),[]);c.useEffect((()=>{if(u.current)if(_[e.name])_[e.name].remove(),u.current.appendChild(_[e.name]);else{const t=document.createElement("div");u.current.appendChild(t),_[e.name]=t,e.createEditor(t)}if(h.current)if(b[e.name])b[e.name].remove(),h.current.appendChild(b[e.name]);else{const t=document.createElement("div");h.current.appendChild(t),b[e.name]=t,e.createDiffEditor(t)}}),[u.current]),n.useDisposable((()=>e.onDidEditorGroupBodyChanged((()=>{g()}))),[]),e.activeComponents.forEach(((i,r)=>{const n=e.activateComponentsProps.get(r);l.push(c.createElement("div",{key:r.uid,className:a.default({[v.kt_hidden]:!(e.currentOpenType&&e.currentOpenType.componentId===r.uid)})},c.createElement(t.ComponentsWrapper,Object.assign({key:r.uid,component:r},n,{resources:i,current:e.currentResource}))))}));const y=c.useMemo((()=>0===e.resources.length||!e.currentResource),[e.resources.length,e.currentResource]);return c.useEffect((()=>{var t,i;"code"===(null===(t=e.currentOpenType)||void 0===t?void 0:t.type)?o.fire(new m.CodeEditorDidVisibleEvent({groupName:e.name,type:"code",editorId:e.codeEditor.getId()})):"diff"===(null===(i=e.currentOpenType)||void 0===i?void 0:i.type)&&o.fire(new m.CodeEditorDidVisibleEvent({groupName:e.name,type:"diff",editorId:e.diffEditor.modifiedEditor.getId()}))})),c.createElement("div",{ref:i,className:v.kt_editor_body,onDragOver:e=>{if(e.preventDefault(),i.current){const t=C(e.nativeEvent,i.current);!function(e,t){E(e,v.kt_on_drag_over),[m.DragOverPosition.LEFT,m.DragOverPosition.RIGHT,m.DragOverPosition.TOP,m.DragOverPosition.BOTTOM].filter((e=>e!==t)).forEach((t=>{O(e,v["kt_on_drag_over_"+t])})),E(e,v["kt_on_drag_over_"+t])}(i.current,t)}},onDragLeave:e=>{i.current&&k(i.current)},onDrop:t=>{if(i.current){if(k(i.current),t.dataTransfer.getData("uri")){const o=new n.URI(t.dataTransfer.getData("uri"));let s;t.dataTransfer.getData("uri-source-group")&&(s=r.getEditorGroup(t.dataTransfer.getData("uri-source-group"))),e.dropUri(o,C(t.nativeEvent,i.current),s)}t.dataTransfer.files.length>0&&o.fire(new m.EditorGroupFileDropEvent({group:e,files:t.dataTransfer.files,position:C(t.nativeEvent,i.current)}))}}},!y&&c.createElement(f.NavigationBar,{editorGroup:e}),c.createElement("div",{className:v.kt_editor_components},c.createElement("div",{className:a.default({[v.kt_editor_component]:!0,[v.kt_hidden]:!e.currentOpenType||"component"!==e.currentOpenType.type})},l),c.createElement("div",{className:a.default({[v.kt_editor_code_editor]:!0,[v.kt_editor_component]:!0,[v.kt_hidden]:!e.currentOpenType||"code"!==e.currentOpenType.type}),ref:u}),c.createElement("div",{className:a.default(v.kt_editor_diff_editor,v.kt_editor_component,{[v.kt_hidden]:!e.currentOpenType||"diff"!==e.currentOpenType.type}),ref:h})),e.currentResource&&c.createElement(D,{side:"bottom",resource:e.currentResource}),c.createElement(t.OpenTypeSwitcher,{options:e.availableOpenTypes,current:e.currentOpenType,group:e}))}function C(e,t){const i=t.getBoundingClientRect(),r=e.clientX-i.left,n=e.clientY-i.top,o=t.offsetWidth,s=t.offsetHeight;return r<.15*o?m.DragOverPosition.LEFT:r>.85*o?m.DragOverPosition.RIGHT:n<.15*s?m.DragOverPosition.TOP:n>.85*s?m.DragOverPosition.BOTTOM:m.DragOverPosition.CENTER}function E(e,t){e.classList.contains(t)||e.classList.add(t)}function O(e,t){e.classList.contains(t)&&e.classList.remove(t)}function k(e){O(e,v.kt_on_drag_over),[m.DragOverPosition.LEFT,m.DragOverPosition.RIGHT,m.DragOverPosition.TOP,m.DragOverPosition.BOTTOM].forEach((t=>{O(e,v["kt_on_drag_over_"+t])}))}t.EditorGroupView=({group:e})=>{const t=c.useRef(),i=s.useInjectable(n.PreferenceService),[r,o]=c.useState(0===e.resources.length),a=s.useInjectable(n.AppConfig),{editorBackgroundImage:u}=a;c.useEffect((()=>{e.attachToDom(t.current)})),c.useEffect((()=>{o(0===e.resources.length);const t=e.onDidEditorGroupTabChanged((()=>{o(0===e.resources.length)}));return t.dispose.bind(t)}),[]);const[d,h]=c.useState((()=>!!i.get("editor.showActionWhenGroupEmpty")));n.useDisposable((()=>[i.onPreferenceChanged((e=>{"editor.showActionWhenGroupEmpty"===e.preferenceName&&h(!!e.newValue)}))]),[]);const p=s.useInjectable(n.ComponentRegistry),f=c.useMemo((()=>{const e=p.getComponentRegistryInfo("editor-empty");return e&&e.views[0]||{component:w,initialProps:{editorBackgroundImage:u}}}),[]);return c.createElement("div",{ref:t,className:v.kt_editor_group,tabIndex:1,onFocus:t=>{e.gainFocus()}},(!r||d)&&c.createElement("div",{className:v.editorGroupHeader},c.createElement(g.Tabs,{group:e})),c.createElement(S,{group:e}),r&&c.createElement("div",{className:v.kt_editor_background,style:{backgroundImage:!f&&u?`url(${u})`:"none"}},f&&l.isValidElementType(f.component)?c.createElement(n.ErrorBoundary,null,c.createElement(f.component,f.initialProps)):null))},t.EditorGroupBody=S,t.ComponentsWrapper=e=>{var{component:i,resources:n,current:o}=e,s=r.__rest(e,["component","resources","current"]);return c.createElement("div",{className:v.kt_editor_component_wrapper},n.map((e=>c.createElement(t.ComponentWrapper,Object.assign({},s,{key:e.toString(),component:i,resource:e,hidden:!(o&&o.uri.toString()===e.uri.toString())})))))},t.ComponentWrapper=e=>{var{component:t,resource:i,hidden:o}=e,l=r.__rest(e,["component","resource","hidden"]);const d=s.useInjectable(m.EditorComponentRegistry);let p,f=null;t.renderMode!==m.EditorComponentRenderMode.ONE_PER_WORKBENCH&&(p=c.createElement(t.component,Object.assign({resource:i},l)));const g=c.useContext(n.ConfigContext);return c.useEffect((()=>{if(t.renderMode===m.EditorComponentRenderMode.ONE_PER_WORKBENCH){if(!d.perWorkbenchComponents[t.uid]){const e=document.createElement("div");e.style.height="100%",d.perWorkbenchComponents[t.uid]=e,u.render(c.createElement(n.ConfigProvider,{value:g},c.createElement(t.component,{resource:i})),e)}f.appendChild(d.perWorkbenchComponents[t.uid])}})),c.createElement("div",{key:i.uri.toString(),className:a.default({[v.kt_hidden]:o})},c.createElement(h.Scroll,null,c.createElement(n.ErrorBoundary,null,c.createElement("div",{ref:e=>{f=e},style:{height:"100%"}},p))))},t.OpenTypeSwitcher=({options:e,current:t,group:i})=>e.length<=1?null:c.createElement("div",{className:v.open_type_switcher},e.map(((e,r)=>c.createElement("div",{className:a.default({[v.option]:!0,[v.current_type]:t&&t.type===e.type&&t.componentId===e.componentId}),onClick:()=>{i.changeOpenType(e)},key:r},e.title||e.componentId||e.type))));const D=({side:e,resource:t})=>{const i=s.useInjectable(m.EditorComponentRegistry).getSideWidgets(e,t);return c.createElement("div",{className:a.default(v.kt_editor_side_widgets,v["kt_editor_side_widgets_"+e])},i.map((e=>{const i=e.component;return c.createElement(i,{resource:t,key:e.id})})))}},13183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{}t.EditorError=i;class r extends i{constructor(){super("editor current tab changed when opening resource"),this.type=r.errorCode}}t.EditorTabChangedError=r,r.errorCode=1001,t.isEditorError=function(e,t){return e&&e.type===t.errorCode}},92935:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865);let s=class{constructor(){this.contributions=[],this._onDidRegisterFeature=new o.Emitter,this.onDidRegisterFeature=this._onDidRegisterFeature.event}registerEditorFeatureContribution(e){const t=o.addElement(this.contributions,e);return this._onDidRegisterFeature.fire(e),t}runContributions(e){this.contributions.forEach((t=>{this.runOneContribution(e,t)}))}async runProvideEditorOptionsForUri(e){return(await Promise.all(this.contributions.map((t=>t.provideEditorOptionsForUri?t.provideEditorOptionsForUri(e):{})))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}runOneContribution(e,t){try{const i=t.contribute(e);e.onDispose((()=>{i.dispose()}))}catch(e){this.logger.error(e)}}};r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],s.prototype,"logger",void 0),s=r.__decorate([n.Injectable()],s),t.EditorFeatureRegistryImpl=s},15437:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(35492);let a=class{async select(e,t){const i=this.modelService.getModelReference(o.URI.from(t.uri.toJSON()));if(!i)return;const r=i.instance.languageId;i.dispose();const n=(this.preferenceService.get("editor.preferredFormatter")||{})[r],s={};if(e.forEach((e=>{e.extensionId&&(s[e.extensionId]=e)})),n){if(s[n])return s[n]}else if(e.length<2)return e[0];const a=await this.quickPickService.show(Object.keys(s).map((e=>({label:s[e].displayName,value:s[e].extensionId}))),{placeholder:o.localize("editor.format.chooseFormatter")});if(a){const e=this.preferenceService.get("editor.preferredFormatter")||{};return this.preferenceService.set("editor.preferredFormatter",Object.assign(Object.assign({},e),{[r]:a}),o.PreferenceScope.User),s[a]}}};r.__decorate([n.Autowired(o.QuickPickService),r.__metadata("design:type",Object)],a.prototype,"quickPickService",void 0),r.__decorate([n.Autowired(o.PreferenceService),r.__metadata("design:type",Object)],a.prototype,"preferenceService",void 0),r.__decorate([n.Autowired(s.IEditorDocumentModelService),r.__metadata("design:type",Object)],a.prototype,"modelService",void 0),a=r.__decorate([n.Injectable()],a),t.FormattingSelector=a},84586:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);class n{constructor(e,t){this.path=e,this.parent=t,this._disposed=!1,this.key=t?t.key+n.separator+e:e}get children(){return this._children||(this._children=new Map),this._children}bindOnDispose(e){this._onDisposed=e}addChild(e){const t=new n(e,this);return this.children.set(e,t),t}getAllDescendants(){if(this._children){const e=[this];return this.children.forEach((t=>{e.push(...t.getAllDescendants())})),e}return[this]}dispose(){this._disposed||(this.parent&&(this.parent.children.delete(this.path),0===this.parent.children.size&&this.parent.dispose()),this._onDisposed&&this._onDisposed(),this._disposed=!0)}}t.FileTreeNode=n,n.separator=r.isElectronRenderer()&&r.isWindows?"\\":"/";t.FileTreeSet=class{constructor(){this.nodes=new Map}add(e){const t=e.split(n.separator);let i,r;for(const e of t){let t;void 0===i?i=e:i+=n.separator+e,this.nodes.has(i)?t=this.nodes.get(i):(t=r?r.addChild(e):new n(e),t.bindOnDispose((()=>{this.nodes.delete(t.key)})),this.nodes.set(t.key,t)),r=t}}delete(e){const t=this.effects(e);return t.forEach((e=>{const t=this.nodes.get(e);t&&t.dispose()})),t}effects(e){const t=this.nodes.get(e);return t?t.getAllDescendants().map((e=>e.key)):[]}}},66952:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(19745),s=i(36002),a=i(35456);let c=class{constructor(){this._onDidChangeContent=new n.Emitter,this.onDidChangeContent=this._onDidChangeContent.event,this._fileContentMd5OnBrowserFs=new Set,this.fileServiceClient.onFilesChanged((e=>{e.forEach((e=>{this._fileContentMd5OnBrowserFs.has(e.uri)&&(e.type!==n.FileChangeType.ADDED&&e.type!==n.FileChangeType.UPDATED||this._onDidChangeContent.fire(new n.URI(e.uri)))}))}))}handlesScheme(e){return this.fileServiceClient.handlesScheme(e)}async provideEncoding(e){return await this.fileServiceClient.getEncoding(e.toString())}async provideEOL(e){const t=await this.applicationService.getBackendOS(),i=this.preferenceService.get("files.eol","auto",e.toString(),n.getLanguageIdFromMonaco(e));return"auto"!==i?i:t===n.OS.Type.Windows?"\r\n":"\n"}async provideEditorDocumentModelContent(e,t){const i=await this.fileServiceClient.resolveContent(e.toString(),{encoding:t}),r=i&&i.content||"";return this._fileContentMd5OnBrowserFs.add(e.toString()),r}async isReadonly(e){const t=this.editorPreferences["editor.readonlyFiles"];if(t&&t.length)for(const i of t)if(e.isEqual(n.URI.file(i))||e.matchGlobPattern(i)||e.toString().endsWith(i.replace("./","")))return!0;return this.fileServiceClient.isReadonly(e.toString())}async saveDocumentModel(e,t,i,r,n,o=!1){try{const i=await this.fileServiceClient.getFileStat(e.toString());return i?await this.fileServiceClient.setContent(i,t,{encoding:n}):await this.fileServiceClient.createFile(e.toString(),{content:t,overwrite:!0,encoding:n}),{state:"success"}}catch(e){return{state:"error",errorMessage:e.message}}}onDidDisposeModel(e){this._fileContentMd5OnBrowserFs.delete(e.toString())}};r.__decorate([o.Autowired(s.IFileServiceClient),r.__metadata("design:type",Object)],c.prototype,"fileServiceClient",void 0),r.__decorate([o.Autowired(a.EditorPreferences),r.__metadata("design:type",Object)],c.prototype,"editorPreferences",void 0),r.__decorate([o.Autowired(n.IApplicationService),r.__metadata("design:type",Object)],c.prototype,"applicationService",void 0),r.__decorate([o.Autowired(n.PreferenceService),r.__metadata("design:type",Object)],c.prototype,"preferenceService",void 0),c=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],c),t.BaseFileSystemEditorDocumentProvider=c},96427:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(36579),o=i(34865),s=i(19745),a=i(65777),c=i(61583),l=i(35463),u=i(65686),d=i(92224),h=i(84586),p=i(35492),f=i(36579);var g;!function(e){e[e.REVERT=1]="REVERT",e[e.SAVE=2]="SAVE",e[e.CANCEL=3]="CANCEL"}(g||(g={}));let m=class extends o.WithEventBus{constructor(){super(),this.cachedFileStat=new o.LRUMap(200,100),this.involvedFiles=new h.FileTreeSet,this.listen()}handlesUri(e){const t=e.scheme;return this.fileServiceClient.handlesScheme(t)?10:-1}listen(){this.fileServiceClient.onFilesChanged((e=>{e.forEach((e=>{if(e.type===u.FileChangeType.ADDED||e.type===u.FileChangeType.DELETED){this.involvedFiles.effects(new o.URI(e.uri).codeUri.fsPath).forEach((e=>{const t=o.URI.file(e);this.cachedFileStat.delete(t.toString()),this.eventBus.fire(new n.ResourceNeedUpdateEvent(t))}))}else this.cachedFileStat.has(e.uri)&&void 0===this.cachedFileStat.get(e.uri)&&(this.cachedFileStat.delete(e.uri),this.eventBus.fire(new n.ResourceNeedUpdateEvent(new o.URI(e.uri))))}))}))}async getFileStat(e){return this.cachedFileStat.has(e)||this.cachedFileStat.set(e,await this.fileServiceClient.getFileStat(e.toString())),this.cachedFileStat.get(e)}provideResource(e){return this.involvedFiles.add(e.codeUri.fsPath),Promise.all([this.getFileStat(e.toString()),this.labelService.getName(e),this.labelService.getIcon(e)]).then((([t,i,r])=>({name:t?i:i+o.localize("file.resource-deleted","(已删除)"),icon:r,uri:e,metadata:null,deleted:!t,supportsRevive:!0})))}provideResourceSubname(e,t){const i=[];for(const r of t)this.fileServiceClient.handlesScheme(r.uri.scheme)&&r.uri.displayName===e.uri.displayName&&r!==e&&i.push(r.uri);return i.length>0?"..."+l.Path.separator+function(e,t){const i=e.path.dir.toString().split(l.Path.separator).reverse(),r=t.map((e=>e.path.dir.toString().split(l.Path.separator).reverse()));for(let e=0;e1)return!0;const r=this.documentModelService.getModelReference(e.uri,"close-resource-check");if(!r||!r.instance.dirty)return r&&r.dispose(),!0;const n={[o.localize("file.prompt.dontSave","不保存")]:g.REVERT,[o.localize("file.prompt.save","保存")]:g.SAVE,[o.localize("file.prompt.cancel","取消")]:g.CANCEL},s=n[await this.dialogService.open(o.localize("saveChangesMessage").replace("{0}",e.name),o.MessageType.Info,Object.keys(n))];if(s===g.SAVE){const e=await r.instance.save();return r.dispose(),e}return s===g.REVERT?(await r.instance.revert(),r.dispose(),!0):!(!s||s===g.CANCEL)||(r.dispose(),!1)}};r.__decorate([s.Autowired(),r.__metadata("design:type",a.LabelService)],m.prototype,"labelService",void 0),r.__decorate([s.Autowired(c.IFileServiceClient),r.__metadata("design:type",Object)],m.prototype,"fileServiceClient",void 0),r.__decorate([s.Autowired(d.IDialogService),r.__metadata("design:type",Object)],m.prototype,"dialogService",void 0),r.__decorate([s.Autowired(p.IEditorDocumentModelService),r.__metadata("design:type",Object)],m.prototype,"documentModelService",void 0),m=r.__decorate([s.Injectable(),r.__metadata("design:paramtypes",[])],m),t.FileSystemResourceProvider=m},38653:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(75871),s=i(19745),a=i(96427),c=i(66952);let l=class{registerResource(e){e.registerResourceProvider(this.fsResourceProvider)}registerEditorDocumentModelContentProvider(e){e.registerEditorDocumentModelContentProvider(this.fsDocProvider)}};r.__decorate([s.Autowired(a.FileSystemResourceProvider),r.__metadata("design:type",a.FileSystemResourceProvider)],l.prototype,"fsResourceProvider",void 0),r.__decorate([s.Autowired(c.BaseFileSystemEditorDocumentProvider),r.__metadata("design:type",c.BaseFileSystemEditorDocumentProvider)],l.prototype,"fsDocProvider",void 0),l=r.__decorate([n.Domain(o.BrowserEditorContribution)],l),t.FileSystemResourceContribution=l},81661:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(36579),n=i(34865),o=i(14895),s=i(75871);t.editorGridUid=new Set;class a{constructor(e){this.parent=e,this.editorGroup=null,this.children=[],this._onDidGridStateChange=new n.Emitter,this.onDidGridStateChange=this._onDidGridStateChange.event;let i=o.makeRandomHexString(5);for(;t.editorGridUid.has(i);)i=o.makeRandomHexString(5);this.uid=i,t.editorGridUid.add(i)}setEditorGroup(e){this.editorGroup=e,e.grid=this,this.splitDirection=void 0}generateSplitParent(e,t,i){this.splitDirection=e;const r=new a(this);r.setEditorGroup(this.editorGroup),this.editorGroup=null;const n=new a(this);n.setEditorGroup(t),this.children=i?[n,r]:[r,n],this._onDidGridStateChange.fire()}generateSplitSibling(e,t){if(this.parent){const i=this.parent.children.indexOf(this),r=new a(this.parent);r.setEditorGroup(e),t?this.parent.children.splice(i,0,r):this.parent.children.splice(i+1,0,r),this.parent._onDidGridStateChange.fire()}}split(e,t,i){this.splitDirection||(this.parent?this.parent.splitDirection===e?this.generateSplitSibling(t,i):this.parent.splitDirection!==e&&this.generateSplitParent(e,t,i):this.generateSplitParent(e,t,i))}dispose(){if(this.editorGroup){if(this.editorGroup=null,!this.parent)return;const e=this.parent.children.indexOf(this);this.parent.children.splice(e,1),1===this.parent.children.length&&this.parent.replaceBy(this.parent.children[0]),this.parent._onDidGridStateChange.fire()}}replaceBy(e){e.editorGroup&&this.setEditorGroup(e.editorGroup),this.splitDirection=e.splitDirection,this.children.splice(0,this.children.length,...e.children.splice(0,e.children.length)),this.children.forEach((e=>{e.parent=this})),this.parent&&this.parent._onDidGridStateChange.fire()}emitResizeWithEventBus(e){e.fire(new s.GridResizeEvent({gridId:this.uid})),this.children.forEach((t=>{t.emitResizeWithEventBus(e)}))}serialize(){if(this.editorGroup){const e=this.editorGroup.getState();return this.parent&&0===e.uris.length?null:{editorGroup:e}}{if(this.parent&&0===this.children.length)return null;const e=this.children.map((e=>e.serialize())).filter((e=>!!e));return 1===e.length?e[0]:{splitDirection:this.splitDirection,children:e}}}async deserialize(e,t,i){const r=[];return e.editorGroup?(this.setEditorGroup(t()),i.push(this.editorGroup.restoreState(e.editorGroup))):(this.splitDirection=e.splitDirection,this.children=(e.children||[]).map((e=>{const n=new a(this);return r.push(n.deserialize(e,t,i)),n}))),Promise.all(r)}findGird(e,t=0){if(this.splitDirection&&l(this.splitDirection,e)){const i=t+(e===r.Direction.LEFT||e===r.Direction.UP?-1:1);if(this.children[i])return this.children[i].getFirstLeaf()}return this.parent?this.parent.findGird(e,this.parent.children.indexOf(this)):null}getFirstLeaf(){return this.editorGroup?this:this.children.length>0?this.children[0].getFirstLeaf():null}sortEditorGroups(e){this.editorGroup?e.push(this.editorGroup):this.children.length>0&&this.children.forEach((t=>{t.sortEditorGroups(e)}))}move(e){if(this.parent)if(this.parent.splitDirection===c.Horizontal){if(e===r.Direction.LEFT){const e=this.parent.children.indexOf(this);e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._onDidGridStateChange.fire())}else if(e===r.Direction.RIGHT){const e=this.parent.children.indexOf(this);e0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._onDidGridStateChange.fire())}else if(e===r.Direction.DOWN){const e=this.parent.children.indexOf(this);e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(75871),a=i(36579);let c=class extends o.WithEventBus{constructor(){super(...arguments),this.currentIndex=-1,this.stack=[],this.closedStack=[]}start(){}onEditorSelectionChangeEvent(e){e.payload.selections[0]&&this.onNewState(new l(e.payload.editorUri,{lineNumber:e.payload.selections[0].selectionStartLineNumber,column:e.payload.selections[0].selectionStartColumn},e.payload.group.index,!1))}onEditorGroupChangeEvent(e){if(e.payload.newOpenType&&("code"===e.payload.newOpenType.type||"diff"===e.payload.newOpenType.type)){const t=e.payload.group.currentEditor.getSelections();t&&t.length>0&&this.onNewState(new l(e.payload.newResource.uri,{lineNumber:t[0].selectionStartLineNumber,column:t[0].selectionStartColumn},e.payload.group.index,!0))}}onEditorGroupCloseEvent(e){this.pushClosed(e.payload.resource.uri)}onNewState(e){if(this.currentIndex!==this.stack.length-1){if(e.isTabChange&&this.currentState.isRelevant(e))return;if(this.currentState&&this.currentState.isEqual(e))return}const t=this.currentState&&this.currentState.isRelevant(e);this.doPushState(e,t)}get currentState(){return this.stack[this.currentIndex]}doPushState(e,t){this.stack.splice(this.currentIndex+(t?0:1)),this.stack.push(e),this.stack.length>200&&this.stack.splice(0,this.stack.length-100),this.currentIndex=this.stack.length-1}forward(){this.currentIndex0&&(this.currentIndex--,this.restoreState(this.currentState))}restoreState(e){if(!e)return;(this.editorService.editorGroups[e.groupIndex]||this.editorService.currentEditorGroup).open(e.uri,{range:{startColumn:e.position.column,startLineNumber:e.position.lineNumber,endColumn:e.position.column,endLineNumber:e.position.lineNumber},focus:!0})}pushClosed(e){this.closedStack.push(e),this.closedStack.length>200&&this.closedStack.splice(0,this.closedStack.length-100)}popClosed(){const e=this.closedStack.pop();e&&(this.editorService.open(e,{focus:!0}),this.closedStack=this.closedStack.filter((t=>!e.isEqual(t))))}};r.__decorate([n.Autowired(a.WorkbenchEditorService),r.__metadata("design:type",a.WorkbenchEditorService)],c.prototype,"editorService",void 0),r.__decorate([o.OnEvent(s.EditorSelectionChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[s.EditorSelectionChangeEvent]),r.__metadata("design:returntype",void 0)],c.prototype,"onEditorSelectionChangeEvent",null),r.__decorate([o.OnEvent(s.EditorGroupChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[s.EditorGroupChangeEvent]),r.__metadata("design:returntype",void 0)],c.prototype,"onEditorGroupChangeEvent",null),r.__decorate([o.OnEvent(s.EditorGroupCloseEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[s.EditorGroupCloseEvent]),r.__metadata("design:returntype",void 0)],c.prototype,"onEditorGroupCloseEvent",null),c=r.__decorate([n.Injectable()],c),t.EditorHistoryService=c;class l{constructor(e,t,i,r){this.uri=e,this.position=t,this.groupIndex=i,this.isTabChange=r}isRelevant(e){if(this.uri.isEqual(e.uri)){if(e.position.lineNumberthis.position.lineNumber-7)return!0;if(this.isTabChange||e.isTabChange)return!0}return!1}isEqual(e){return this.uri.isEqual(e.uri)&&this.position.lineNumber===e.position.lineNumber&&this.position.column===e.position.column}}t.EditorHistoryState=l},58407:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(75455),s=i(36579),a=i(99644),c=i(41719),l=i(19745),u=i(17820),d=i(71241),h=i(75871),p=i(31206),f=i(61417),g=i(86079),m=i(34749),v=i(35492),y=i(47892),_=i(56853),b=i(97307),w=i(32613),S=i(57821),C=i(83907),E=i(19336),O=i(92935),k=i(76877),D=i(90795),M=i(35456),x=i(38653);r.__exportStar(i(35456),t),r.__exportStar(i(75871),t),r.__exportStar(i(35492),t),r.__exportStar(i(32613),t),r.__exportStar(i(54818),t),r.__exportStar(i(91292),t);let T=class extends n.BrowserModule{constructor(){super(...arguments),this.providers=[{token:s.EditorCollectionService,useClass:a.EditorCollectionServiceImpl},{token:s.WorkbenchEditorService,useClass:c.WorkbenchEditorServiceImpl},{token:s.ResourceService,useClass:d.ResourceServiceImpl},{token:h.EditorComponentRegistry,useClass:p.EditorComponentRegistryImpl},{token:h.IEditorDecorationCollectionService,useClass:g.EditorDecorationCollectionService},{token:v.IEditorDocumentModelContentRegistry,useClass:y.EditorDocumentModelContentRegistryImpl},{token:v.IEditorDocumentModelService,useClass:y.EditorDocumentModelServiceImpl},{token:s.ILanguageService,useClass:m.LanguageService},{token:h.IEditorActionRegistry,useClass:_.EditorActionRegistryImpl},{token:b.IDocPersistentCacheProvider,useClass:w.EmptyDocCacheImpl},{token:h.ICompareService,useClass:S.CompareService},{token:h.IBreadCrumbService,useClass:C.BreadCrumbServiceImpl},{token:h.IEditorFeatureRegistry,useClass:O.EditorFeatureRegistryImpl},{token:M.EditorPreferences,useFactory:e=>{const t=e.get(n.PreferenceService);return n.createPreferenceProxy(t,M.editorPreferenceSchema)}},k.EditorPreferenceContribution,f.DefaultDiffEditorContribution,A,u.EditorContribution,S.CompareEditorContribution,E.EditorContextMenuBrowserEditorContribution,u.EditorAutoSaveEditorContribution,D.SaveParticipantsContribution,x.FileSystemResourceContribution],this.contributionProvider=h.BrowserEditorContribution,this.component=o.EditorView}};T=r.__decorate([l.Injectable()],T),t.EditorModule=T;let A=class{async onStart(){for(const e of this.contributions.getContributions())e.registerResource&&e.registerResource(this.resourceService),e.registerEditorComponent&&e.registerEditorComponent(this.editorComponentRegistry),e.registerEditorDocumentModelContentProvider&&e.registerEditorDocumentModelContentProvider(this.modelContentRegistry),e.registerEditorActions&&e.registerEditorActions(this.editorActionRegistry),e.registerEditorFeature&&e.registerEditorFeature(this.editorFeatureRegistry);this.workbenchEditorService.contributionsReady.resolve(),await this.workbenchEditorService.initialize()}async onDidStart(){this.workbenchEditorService.prepareContextKeyService()}};r.__decorate([l.Autowired(),r.__metadata("design:type",s.ResourceService)],A.prototype,"resourceService",void 0),r.__decorate([l.Autowired(),r.__metadata("design:type",h.EditorComponentRegistry)],A.prototype,"editorComponentRegistry",void 0),r.__decorate([l.Autowired(s.WorkbenchEditorService),r.__metadata("design:type",c.WorkbenchEditorServiceImpl)],A.prototype,"workbenchEditorService",void 0),r.__decorate([l.Autowired(v.IEditorDocumentModelContentRegistry),r.__metadata("design:type",Object)],A.prototype,"modelContentRegistry",void 0),r.__decorate([l.Autowired(h.IEditorActionRegistry),r.__metadata("design:type",Object)],A.prototype,"editorActionRegistry",void 0),r.__decorate([l.Autowired(h.IEditorFeatureRegistry),r.__metadata("design:type",Object)],A.prototype,"editorFeatureRegistry",void 0),r.__decorate([l.Autowired(l.INJECTOR_TOKEN),r.__metadata("design:type",l.Injector)],A.prototype,"injector",void 0),r.__decorate([l.Autowired(h.BrowserEditorContribution),r.__metadata("design:type",Object)],A.prototype,"contributions",void 0),A=r.__decorate([n.Domain(n.ClientAppContribution)],A),t.EditorClientAppContribution=A},33980:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(81924),n=i(36579),o=i(65686);t.MonacoDiagnosticCollection=class{constructor(e){this.name=e,this.diagnostics=new Map,this.toDispose=new o.DisposableCollection}dispose(){this.toDispose.dispose()}get(e){const t=this.diagnostics.get(e);return t?t.diagnostics:[]}set(e,t){const i=this.diagnostics.get(e);if(i)i.diagnostics=t;else{const i=new s(e,t,this.name);this.diagnostics.set(e,i),this.toDispose.push(o.Disposable.create((()=>{this.diagnostics.delete(e),i.dispose()})))}}};class s{constructor(e,t,i){this.owner=i,this._markers=[],this._diagnostics=[],this.uri=r.Uri.parse(e),this.diagnostics=t,r.editor.onDidCreateModel((e=>this.doUpdateModelMarkers(e)))}set diagnostics(e){this._diagnostics=e,this._markers=n.asDiagnostics(e)||[],this.updateModelMarkers()}get diagnostics(){return this._diagnostics}get markers(){return this._markers}dispose(){this._markers=[],this.updateModelMarkers()}updateModelMarkers(){const e=r.editor.getModel(this.uri);this.doUpdateModelMarkers(e)}doUpdateModelMarkers(e){e&&this.uri.toString()===e.uri.toString()&&r.editor.setModelMarkers(e,this.owner,this._markers)}}t.MonacoModelDiagnostics=s},34749:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(19745),s=i(33980),a=i(65686),c=i(36579);function l(e){switch(e){case a.MarkerSeverity.Error:return c.DiagnosticSeverity.Error;case a.MarkerSeverity.Warning:return c.DiagnosticSeverity.Warning;case a.MarkerSeverity.Info:return c.DiagnosticSeverity.Information;case a.MarkerSeverity.Hint:return c.DiagnosticSeverity.Hint}}function u(e,t,i,r){return{start:{line:e-1,character:t-1},end:{line:i-1,character:r-1}}}function d(e){return{message:e.message,location:{uri:e.resource,range:u(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn)}}}function h(e){const t={code:e.code,severity:l(e.severity),range:u(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),message:e.message,source:e.source,relatedInformation:void 0,tags:e.tags};return e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(d)),t}let p=class{constructor(){this.markers=new Map,this.workspaceSymbolProviders=[];for(const e of this.markerManager.getResources())this.updateMarkers(new a.URI(e));this.markerManager.onMarkerChanged((e=>{e&&e.forEach((e=>this.updateMarkers(new a.URI(e))))}))}get languages(){return[...this.mergeLanguages(n.languages.getLanguages()).values()]}getLanguage(e){return this.mergeLanguages(n.languages.getLanguages().filter((t=>t.id===e))).get(e)}mergeLanguages(e){const t=new Map;for(const{id:i,aliases:r,extensions:n,filenames:o}of e){const e=t.get(i)||{id:i,name:"",extensions:new Set,filenames:new Set};if(!e.name&&r&&r.length&&(e.name=r[0]),n&&n.length)for(const t of n)e.extensions.add(t);if(o&&o.length)for(const t of o)e.filenames.add(t);t.set(i,e)}for(const[e,i]of t)i.name||(i.name=e);return t}registerWorkspaceSymbolProvider(e){return this.workspaceSymbolProviders.push(e),a.Disposable.create((()=>{const t=this.workspaceSymbolProviders.indexOf(e);-1!==t&&this.workspaceSymbolProviders.splice(t,1)}))}updateMarkers(e){const t=e.toString(),i=new Map;for(const t of this.markerManager.getMarkers({resource:e.toString()})){const e=i.get(t.type)||[];e.push(h(t)),i.set(t.type,e)}const r=new Set(this.markers.keys());for(const[e,n]of i){r.delete(e);const i=this.markers.get(e)||new s.MonacoDiagnosticCollection(e);i.set(t,n),this.markers.set(e,i)}for(const e of r){const i=this.markers.get(e);i&&i.set(t,[])}}};r.__decorate([o.Autowired(),r.__metadata("design:type",a.MarkerManager)],p.prototype,"markerManager",void 0),p=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],p),t.LanguageService=p},38468:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(36579),a=i(65686),c=i(5778),l=i(44779);let u=class{constructor(){this.prefix="#",this.cancellationSource=new o.CancellationTokenSource}get description(){return a.localize("editor.workspaceSymbol.description")}getModel(){return{onType:(e,t)=>{if(""===e)return void t([new o.QuickOpenItem({label:a.localize("editor.workspaceSymbol.search"),run:()=>!1})]);if(0===this.languageService.workspaceSymbolProviders.length)return void t([new o.QuickOpenItem({label:a.localize("editor.workspaceSymbol.notfound"),run:()=>!1})]);const i=[];t(i),this.cancellationSource.cancel();const r=new o.CancellationTokenSource;this.cancellationSource=r;const n={query:e};Promise.all(this.languageService.workspaceSymbolProviders.map((async e=>{const o=await e.provideWorkspaceSymbols(n,r.token);if(o&&o.length&&!r.token.isCancellationRequested){const n=await Promise.all(o.map((async t=>{const i=await this.workspaceService.asRelativePath(t.location.uri)||"";return new d(t,e,this.workbenchEditorService,r.token,i)})));i.push(...n),t(i)}return o}))).then((e=>{0===l(e).length&&t([new o.QuickOpenItem({label:a.localize("editor.workspaceSymbol.notfound"),run:()=>!1})])})).catch((e=>{this.logger.log(e)}))}}}getOptions(){return{fuzzyMatchLabel:{enableSeparateSubstringMatching:!0},showItemsWithoutHighlight:!0,fuzzyMatchDescription:!1}}};r.__decorate([n.Autowired(s.ILanguageService),r.__metadata("design:type",Object)],u.prototype,"languageService",void 0),r.__decorate([n.Autowired(c.IWorkspaceService),r.__metadata("design:type",Object)],u.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([n.Autowired(s.WorkbenchEditorService),r.__metadata("design:type",s.WorkbenchEditorService)],u.prototype,"workbenchEditorService",void 0),u=r.__decorate([n.Injectable()],u),t.WorkspaceSymbolQuickOpenHandler=u;class d extends o.QuickOpenItem{constructor(e,t,i,r,n){super(),this.symbol=e,this.provider=t,this.workbenchEditorService=i,this.token=r,this.relativePath=n}getLabel(){return this.symbol.name}getUri(){return new o.URI(this.symbol.location.uri)}getIconClass(){return o.getSymbolIcon(this.symbol.kind)}getDescription(){const e=this.symbol.containerName;return`${e?`${e} · `:""}${decodeURIComponent(this.relativePath)}`}fromRange(e){if(!e)return;const{start:t,end:i}=e;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:i.line+1,endColumn:i.character+1}}open(e,t){this.workbenchEditorService.open(e,{range:this.fromRange(t)})}run(e){const t=this.getUri();return e===o.QuickOpenMode.OPEN&&this.provider.resolveWorkspaceSymbol(this.symbol,this.token).then((e=>{e?this.open(t,e.location.range):this.open(t,this.symbol.location.range)})),!0}}t.SymbolInformationQuickOpenItem=d},19336:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(98804),s=i(19745),a=i(34865),c=i(43849),l=i(13077),u=i(1779),d=i(75871);let h=class extends a.Disposable{constructor(e){super(),this._editor=e,this.contextKeyService=this.registerDispose(this.globalContextKeyService.createScoped(this._editor.monacoEditor._contextKeyService)),this.overrideContextmenuContribution(e)}overrideContextmenuContribution(e){const t=e.monacoEditor.getContribution(o.ContextMenuController.ID),i=this,r=t.showContextMenu;t.showContextMenu=function(e){if(!this._editor.getOption(l.EditorOption.contextmenu))return;if(!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();const t=i.getMenuNodes();t.length>0&&i._doShowContextMenu(t,e)},this.addDispose({dispose:()=>{t._onContextMenu=function(){r.apply(t,arguments)}}})}_doShowContextMenu(e,t){const i=this._editor.monacoEditor;if(!i.hasModel())return;const r=this._editor.monacoEditor.getOption(n.editor.EditorOption.hover);if(this._editor.monacoEditor.updateOptions({hover:{enabled:!1}}),!t){i.revealPosition(i.getPosition(),n.editor.ScrollType.Immediate),i.render();const e=i.getScrolledVisiblePosition(i.getPosition()),r=u.getDomNodePagePosition(i.getDomNode());t={x:r.left+e.left,y:r.top+e.top+e.height}}this.contextMenuRenderer.show({anchor:t,menuNodes:e,args:[this._editor.currentUri],onHide:e=>{this._editor.monacoEditor.updateOptions({hover:r})}})}getMenuNodes(){const e=this.contextMenuService.createMenu({id:c.MenuId.EditorContext,contextKeyService:this.contextKeyService}),t=e.getMergedMenuNodes();return e.dispose(),t}};r.__decorate([s.Autowired(c.AbstractContextMenuService),r.__metadata("design:type",c.AbstractContextMenuService)],h.prototype,"contextMenuService",void 0),r.__decorate([s.Autowired(a.IContextKeyService),r.__metadata("design:type",Object)],h.prototype,"globalContextKeyService",void 0),r.__decorate([s.Autowired(c.ICtxMenuRenderer),r.__metadata("design:type",c.ICtxMenuRenderer)],h.prototype,"contextMenuRenderer",void 0),h=r.__decorate([s.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],h),t.EditorContextMenuController=h;let p=class{registerEditorFeature(e){e.registerEditorFeatureContribution({contribute:e=>this.injector.get(h,[e])})}};r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],p.prototype,"injector",void 0),p=r.__decorate([a.Domain(d.BrowserEditorContribution)],p),t.EditorContextMenuBrowserEditorContribution=p},56853:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(43849);let a=class extends o.Disposable{constructor(){super(...arguments),this._cachedMenus=new Map}registerEditorAction(){return this.logger.warn(new Error("registerEditorAction has been deprecated, use menu apis instead")),new o.Disposable}getMenu(e){const t=e.currentEditor?"editor-menu-"+e.currentEditor.getId():"editor-group-menu-"+e.name;if(!this._cachedMenus.has(t)){const i=e.currentEditor?this.contextKeyService.createScoped(e.currentEditor.monacoEditor._contextKeyService):e.contextKeyService,r=this.registerDispose(this.menuService.createMenu(s.MenuId.EditorTitle,i));this._cachedMenus.set(t,r),r.onDispose((()=>{this._cachedMenus.get(t)===r&&this._cachedMenus.delete(t)}))}return this._cachedMenus.get(t)}};r.__decorate([n.Autowired(o.IContextKeyService),r.__metadata("design:type",Object)],a.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(s.AbstractMenuService),r.__metadata("design:type",s.AbstractMenuService)],a.prototype,"menuService",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],a.prototype,"logger",void 0),a=r.__decorate([n.Injectable()],a),t.EditorActionRegistryImpl=a},59094:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(43849),s=i(29506),a=i(34865);let c=class{get editorTitleContextKey(){return this._editorTitleContextKey||(this._editorTitleContextKey=this.contextKeyService.createKey("editorTitleContext",!1)),this._editorTitleContextKey}show(e,t,i,r){const n=r.contextKeyService.createScoped();new s.ResourceContextKey(n).set(i),this.editorTitleContextKey.set(!0);const a=this.ctxMenuService.createMenu({id:o.MenuId.EditorTitleContext,contextKeyService:n}),c=a.getMergedMenuNodes();a.dispose(),n.dispose(),this.ctxMenuRenderer.show({anchor:{x:e,y:t},menuNodes:c,args:[{uri:i,group:r}],onHide:()=>{this.editorTitleContextKey.set(!1)}})}};r.__decorate([n.Autowired(o.AbstractContextMenuService),r.__metadata("design:type",o.AbstractContextMenuService)],c.prototype,"ctxMenuService",void 0),r.__decorate([n.Autowired(o.ICtxMenuRenderer),r.__metadata("design:type",o.ICtxMenuRenderer)],c.prototype,"ctxMenuRenderer",void 0),r.__decorate([n.Autowired(a.IContextKeyService),r.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),c=r.__decorate([n.Injectable()],c),t.TabTitleMenuService=c},54707:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(34865),s=i(88774),a=i(34865),c=i(82),l=i(75871),u=i(19745),d=i(22188),h=i(32834),p=i(199),f=i(94184),g=i(18960);t.NavigationBar=({editorGroup:e})=>{const i=o.useInjectable(l.IBreadCrumbService);if(g.useUpdateOnGroupTabChange(e),o.useUpdateOnEvent(i.onDidUpdateBreadCrumbResults,[],(t=>{var i;const r=e.currentEditor&&e.currentEditor.currentDocumentModel?e.currentEditor:null,n=e.currentEditor&&e.currentEditor.currentDocumentModel?e.currentEditor.currentDocumentModel.uri:null===(i=e.currentResource)||void 0===i?void 0:i.uri;return!!n&&t.editor===r&&t.uri.isEqual(n)})),0===e.resources.length||!e.currentResource)return null;let r;return r=e.currentEditor&&e.currentEditor.currentDocumentModel?i.getBreadCrumbs(e.currentEditor.currentDocumentModel.uri,e.currentEditor):i.getBreadCrumbs(e.currentResource.uri,null),r?0===r.length?null:n.createElement("div",{className:c.navigation_container},r.map(((e,i)=>n.createElement(n.Fragment,{key:i+"-crumb:"+e.name},i>0&&n.createElement(s.Icon,{icon:"right",size:"small"}),n.createElement(t.NavigationItem,{part:e}))))):null},t.NavigationItem=({part:e})=>{const t=o.useInjectable(m),i=n.useRef(),r=e.getSiblings?async()=>{if(i.current){const{left:r,top:n,height:o}=i.current.getBoundingClientRect(),s=await e.getSiblings();let a=r;window.innerWidth-a<210&&(a=window.innerWidth-200-5),t.showMenu(s.parts,a,n+o+5,s.currentIndex)}}:void 0;return n.createElement("span",{onClick:r,className:c["navigation-part"],ref:i},e.icon&&n.createElement("span",{className:e.icon}),n.createElement("span",null,e.name))},t.NavigationMenu=h.observer((({model:e})=>{let i=window.innerHeight-e.y-20,r=e.y;const l=22*e.parts.length;i<100&&i{t.scrollTo({top:22*e.initialIndex-.5*Math.min(i,l),left:0})}},e.parts.map(((t,i)=>{let r;const o=t.getChildren?async()=>{if(r){const{left:i,top:n,width:o}=r.getBoundingClientRect();let s=i+o+5;window.innerWidth-s<210&&(s=i-o-5),e.showSubMenu(await t.getChildren(),s,n)}}:void 0,l=t.onClick?()=>{t.onClick(),u.dispose()}:void 0;return n.createElement("div",{onClick:l||o,ref:e=>r=e,className:f({[c.navigation_menu_item_current]:i===e.initialIndex}),key:"menu-"+t.name},n.createElement("span",{className:t.icon||a.getIcon("smile")}),n.createElement("span",null,t.name),t.getChildren&&n.createElement("span",{className:c.navigation_right,onClick:l&&o?e=>{e.stopPropagation(),o()}:void 0},n.createElement(s.Icon,{icon:"right",size:"small"})))}))),e.subMenu&&n.createElement(t.NavigationMenu,{model:e.subMenu}))})),t.NavigationMenuContainer=h.observer((()=>{const e=o.useInjectable(m),i=n.useRef();return n.useEffect((()=>{if(i.current){const t=new o.Disposable;return t.addDispose(new o.DomListener(window,"mouseup",(()=>{e.dispose()}))),t.addDispose(new o.DomListener(i.current,"mouseup",(e=>{e.stopPropagation()}))),t.dispose.bind(t)}})),e.current?n.createElement("div",{tabIndex:1,ref:i},n.createElement(t.NavigationMenu,{model:e.current})):null}));let m=class{showMenu(e,t,i,r){this.current=new v(e,t,i,r)}dispose(){this.current&&this.current.dispose(),this.current=void 0}};r.__decorate([d.observable.ref,r.__metadata("design:type",Object)],m.prototype,"current",void 0),m=r.__decorate([u.Injectable()],m),t.NavigationBarViewService=m;class v{constructor(e,t,i,r=-1){this.parts=e,this.x=t,this.y=i,this.initialIndex=r}showSubMenu(e,t,i){this.subMenu=new v(e,t,i)}dispose(){this.subMenu&&this.subMenu.dispose(),this.subMenu=void 0}}r.__decorate([d.observable.ref,r.__metadata("design:type",v)],v.prototype,"subMenu",void 0),t.NavigationMenuModel=v},76877:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(35456);let s=class{constructor(){this.schema=o.editorPreferenceSchema}};s=r.__decorate([n.Domain(n.PreferenceContribution,n.ClientAppContribution)],s),t.EditorPreferenceContribution=s},43577:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);function n(e,t){if(t.has(e))return!0;{const i=t.keys();for(const t of i)if(e.startsWith(t))return!0}return!1}t.getConvertedMonacoOptions=function(e,i,n,o){const s={},a={},c={},l=o?o.filter((e=>t.editorOptionsConverters.has(e))):Array.from(t.editorOptionsConverters.keys()),u=o?o.filter((e=>t.textModelUpdateOptionsConverters.has(e))):Array.from(t.textModelUpdateOptionsConverters.keys()),d=o?o.filter((e=>t.diffEditorOptionsConverters.has(e))):Array.from(t.diffEditorOptionsConverters.keys());return l.forEach((o=>{const a=e.getValue(o,{resource:i?r.Uri.parse(i):void 0,overrideIdentifier:n});if(void 0!==a)if(t.editorOptionsConverters.get(o)){const e=t.editorOptionsConverters.get(o);s[e.monaco]=e.convert?e.convert(a):a}else s[o]=a})),u.forEach((o=>{const s=e.getValue(o,{resource:i?r.Uri.parse(i):void 0,overrideIdentifier:n});if(void 0!==s)if(t.textModelUpdateOptionsConverters.get(o)){const e=t.textModelUpdateOptionsConverters.get(o);c[e.monaco]=e.convert?e.convert(s):s}else c[o]=s})),d.forEach((o=>{const c=e.getValue(o,{resource:i?r.Uri.parse(i):void 0,overrideIdentifier:n});if(void 0!==c)if(t.diffEditorOptionsConverters.get(o)){const e=t.diffEditorOptionsConverters.get(o);a[e.monaco]=e.convert?e.convert(c):c}else s[o]=c})),{editorOptions:r.removeUndefined(s),modelOptions:r.removeUndefined(c),diffOptions:r.removeUndefined(a)}},t.editorOptionsConverters=new Map([["editor.ariaLabel",{monaco:"ariaLabel"}],["editor.rulers",{monaco:"rulers"}],["editor.wordSeparators",{monaco:"wordSeparators"}],["editor.selectionClipboard",{monaco:"selectionClipboard"}],["editor.lineNumbers",{monaco:"lineNumbers"}],["editor.renderFinalNewline",{monaco:"renderFinalNewline"}],["editor.selectOnLineNumbers",{monaco:"selectOnLineNumbers"}],["editor.lineNumbersMinChars",{monaco:"lineNumbersMinChars"}],["editor.glyphMargin",{monaco:"glyphMargin"}],["editor.lineDecorationsWidth",{monaco:"lineDecorationsWidth"}],["editor.revealHorizontalRightPadding",{monaco:"revealHorizontalRightPadding"}],["editor.roundedSelection",{monaco:"roundedSelection"}],["editor.extraEditorClassName",{monaco:"extraEditorClassName"}],["editor.readOnly",{monaco:"readOnly"}],["editor.scrollbar",{monaco:"scrollbar"}],["editor.minimap",{monaco:"minimap",convert:e=>({enabled:e})}],["editor.find",{monaco:"find"}],["editor.fixedOverflowWidgets",{monaco:"fixedOverflowWidgets"}],["editor.overviewRulerLanes",{monaco:"overviewRulerLanes"}],["editor.overviewRulerBorder",{monaco:"overviewRulerBorder"}],["editor.cursorBlinking",{monaco:"cursorBlinking"}],["editor.mouseWheelZoom",{monaco:"mouseWheelZoom"}],["editor.cursorSmoothCaretAnimation",{monaco:"cursorSmoothCaretAnimation"}],["editor.cursorStyle",{monaco:"cursorStyle"}],["editor.cursorWidth",{monaco:"cursorWidth"}],["editor.fontLigatures",{monaco:"fontLigatures"}],["editor.disableLayerHinting",{monaco:"disableLayerHinting"}],["editor.disableMonospaceOptimizations",{monaco:"disableMonospaceOptimizations"}],["editor.hideCursorInOverviewRuler",{monaco:"hideCursorInOverviewRuler"}],["editor.scrollBeyondLastLine",{monaco:"scrollBeyondLastLine"}],["editor.scrollBeyondLastColumn",{monaco:"scrollBeyondLastColumn"}],["editor.smoothScrolling",{monaco:"smoothScrolling"}],["editor.automaticLayout",{monaco:"automaticLayout"}],["editor.wordWrap",{monaco:"wordWrap"}],["editor.wordWrapColumn",{monaco:"wordWrapColumn"}],["editor.wordWrapMinified",{monaco:"wordWrapMinified"}],["editor.wrappingIndent",{monaco:"wrappingIndent"}],["editor.wordWrapBreakBeforeCharacters",{monaco:"wordWrapBreakBeforeCharacters"}],["editor.wordWrapBreakAfterCharacters",{monaco:"wordWrapBreakAfterCharacters"}],["editor.wordWrapBreakObtrusiveCharacters",{monaco:"wordWrapBreakObtrusiveCharacters"}],["editor.stopRenderingLineAfter",{monaco:"stopRenderingLineAfter"}],["editor.hover",{monaco:"hover"}],["editor.links",{monaco:"links"}],["editor.colorDecorators",{monaco:"colorDecorators"}],["editor.contextmenu",{monaco:"contextmenu"}],["editor.mouseWheelScrollSensitivity",{monaco:"mouseWheelScrollSensitivity"}],["editor.fastScrollSensitivity",{monaco:"fastScrollSensitivity"}],["editor.multiCursorModifier",{monaco:"multiCursorModifier"}],["editor.multiCursorMergeOverlapping",{monaco:"multiCursorMergeOverlapping"}],["editor.accessibilitySupport",{monaco:"accessibilitySupport"}],["editor.suggest",{monaco:"suggest"}],["editor.gotoLocation",{monaco:"gotoLocation"}],["editor.quickSuggestions",{monaco:"quickSuggestions"}],["editor.quickSuggestionsDelay",{monaco:"quickSuggestionsDelay"}],["editor.parameterHints",{monaco:"parameterHints"}],["editor.autoClosingBrackets",{monaco:"autoClosingBrackets"}],["editor.autoClosingQuotes",{monaco:"autoClosingQuotes"}],["editor.autoSurround",{monaco:"autoSurround"}],["editor.autoIndent",{monaco:"autoIndent"}],["editor.formatOnType",{monaco:"formatOnType"}],["editor.formatOnPaste",{monaco:"formatOnPaste"}],["editor.dragAndDrop",{monaco:"dragAndDrop"}],["editor.suggestOnTriggerCharacters",{monaco:"suggestOnTriggerCharacters"}],["editor.acceptSuggestionOnEnter",{monaco:"acceptSuggestionOnEnter"}],["editor.acceptSuggestionOnCommitCharacter",{monaco:"acceptSuggestionOnCommitCharacter"}],["editor.snippetSuggestions",{monaco:"snippetSuggestions"}],["editor.emptySelectionClipboard",{monaco:"emptySelectionClipboard"}],["editor.copyWithSyntaxHighlighting",{monaco:"copyWithSyntaxHighlighting"}],["editor.wordBasedSuggestions",{monaco:"wordBasedSuggestions"}],["editor.suggestSelection",{monaco:"suggestSelection"}],["editor.suggestFontSize",{monaco:"suggestFontSize"}],["editor.suggestLineHeight",{monaco:"suggestLineHeight"}],["editor.tabCompletion",{monaco:"tabCompletion"}],["editor.selectionHighlight",{monaco:"selectionHighlight"}],["editor.occurrencesHighlight",{monaco:"occurrencesHighlight"}],["editor.codeLens",{monaco:"codeLens"}],["editor.lightbulb",{monaco:"lightbulb"}],["editor.codeActionsOnSave",{monaco:"codeActionsOnSave"}],["editor.codeActionsOnSaveTimeout",{monaco:"codeActionsOnSaveTimeout"}],["editor.folding",{monaco:"folding"}],["editor.foldingStrategy",{monaco:"foldingStrategy"}],["editor.showFoldingControls",{monaco:"showFoldingControls"}],["editor.matchBrackets",{monaco:"matchBrackets"}],["editor.renderWhitespace",{monaco:"renderWhitespace"}],["editor.renderControlCharacters",{monaco:"renderControlCharacters"}],["editor.renderIndentGuides",{monaco:"renderIndentGuides"}],["editor.highlightActiveIndentGuide",{monaco:"highlightActiveIndentGuide"}],["editor.renderLineHighlight",{monaco:"renderLineHighlight"}],["editor.useTabStops",{monaco:"useTabStops"}],["editor.fontFamily",{monaco:"fontFamily"}],["editor.fontWeight",{monaco:"fontWeight"}],["editor.fontSize",{monaco:"fontSize"}],["editor.lineHeight",{monaco:"lineHeight"}],["editor.letterSpacing",{monaco:"letterSpacing"}],["editor.showUnused",{monaco:"showUnused"}],["editor.rename.enablePreview",{monaco:"editor.rename.enablePreview"}],["editor.wrappingStrategy",{monaco:"wrappingStrategy"}],["editor.forceReadOnly",{monaco:"readOnly",convert:e=>!!e||void 0}]]),t.textModelUpdateOptionsConverters=new Map([["editor.tabSize",{monaco:"tabSize"}],["editor.indentSize",{monaco:"indentSize"}],["editor.insertSpaces",{monaco:"insertSpaces"}],["editor.trimAutoWhitespace",{monaco:"trimAutoWhitespace"}]]),t.diffEditorOptionsConverters=new Map([["diffEditor.enableSplitViewResizing",{monaco:"enableSplitViewResizing"}],["diffEditor.renderSideBySide",{monaco:"renderSideBySide"}],["diffEditor.ignoreTrimWhitespace",{monaco:"ignoreTrimWhitespace"}],["diffEditor.renderIndicators",{monaco:"renderIndicators"}],["diffEditor.originalEditable",{monaco:"originalEditable"}]]),t.isEditorOption=function(e){return n(e,t.editorOptionsConverters)||n(e,t.textModelUpdateOptionsConverters)||n(e,t.diffEditorOptionsConverters)},t.isDiffEditorOption=function(e){return n(e,t.diffEditorOptionsConverters)}},35456:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";t.EDITOR_FONT_DEFAULTS={fontFamily:r.isOSX?"Menlo, Monaco, 'Courier New', monospace":r.isLinux?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:12,tabSize:2,renderWhitespace:!1,cursorStyle:"line",insertSpace:!0,wordWrap:"off",wordWrapColumn:80,lineHeight:0,letterSpacing:0},t.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},t.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:t.USUAL_WORD_SEPARATORS,lineNumbersMinChars:3,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!0,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,wrappingStrategy:"simple",viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:r.localize("editorViewAccessibleLabel","Editor content"),renderLineNumbers:0,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:1,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"none",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!0},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!1,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}};const n={"editor.ariaLabel":{type:"string",default:t.EDITOR_DEFAULTS.viewInfo.ariaLabel,description:r.localize("ariaLabel","The aria label for the editor's textarea (when it is focused).")},"editor.extraEditorClassName":{type:"string",description:r.localize("extraEditorClassName","Class name to be added to the editor.")},"editor.fixedOverflowWidgets":{type:"boolean",description:r.localize("fixedOverflowWidgets","Display overflow widgets as fixed. Defaults to false.")},"editor.revealHorizontalRightPadding":{type:"number",description:r.localize("revealHorizontalRightPadding","When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle. This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport. Defaults to 30 (px).")},"editor.selectOnLineNumbers":{type:"boolean",description:r.localize("selectOnLineNumbers","Should the corresponding line be selected when clicking on the line number? Defaults to true.")},"editor.wordWrapMinified":{type:"boolean",description:r.localize("wordWrapMinified","Force word wrapping when the text appears to be of a minified/generated file. Defaults to true.")},"editor.wordWrapBreakAfterCharacters":{type:"string",default:" \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",description:r.localize("wordWrapBreakAfterCharacters","Configure word wrapping characters. A break will be introduced after these characters. Defaults to ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」'.")},"editor.wrappingStrategy":{type:"string",enum:["advanced","simple"],default:"simple",description:r.localize("wrappingStrategy","Controls the algorithm that computes wrapping points.")},"editor.wordWrapBreakBeforeCharacters":{type:"string",default:"([{‘“〈《「『【〔([{「£¥$£¥++",description:r.localize("wordWrapBreakBeforeCharacters","Configure word wrapping characters. A break will be introduced before these characters. Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'.")},"editor.lineNumbersMinChars":{type:"number",default:t.EDITOR_DEFAULTS.lineNumbersMinChars,description:r.localize("lineNumbersMinChars","Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits. Defaults to 5.")},"editor.lineDecorationsWidth":{type:"number",default:t.EDITOR_DEFAULTS.lineDecorationsWidth,description:r.localize("lineDecorationsWidth",'The width reserved for line decorations (in px). Line decorations are placed between line numbers and the editor content. You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch. Defaults to 10.')},"editor.fontFamily":{type:"string",default:t.EDITOR_FONT_DEFAULTS.fontFamily,description:r.localize("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:t.EDITOR_FONT_DEFAULTS.fontWeight,description:r.localize("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:t.EDITOR_FONT_DEFAULTS.fontSize,description:r.localize("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:t.EDITOR_FONT_DEFAULTS.lineHeight,description:r.localize("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:t.EDITOR_FONT_DEFAULTS.letterSpacing,description:r.localize("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r.localize("lineNumbers.off","Line numbers are not rendered."),r.localize("lineNumbers.on","Line numbers are rendered as absolute number."),r.localize("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r.localize("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r.localize("lineNumbers","Controls the display of line numbers.")},"editor.renderFinalNewline":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.renderFinalNewline,description:r.localize("renderFinalNewline","Render last line number when the file ends with a newline.")},"editor.rulers":{type:"array",items:{type:"number"},default:t.EDITOR_DEFAULTS.viewInfo.rulers,description:r.localize("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")},"editor.wordSeparators":{type:"string",default:t.EDITOR_DEFAULTS.wordSeparators,description:r.localize("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:t.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:r.localize("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:t.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:r.localize("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:t.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:r.localize("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.roundedSelection,description:r.localize("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastLine,description:r.localize("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:t.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastColumn,description:r.localize("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.smoothScrolling,description:r.localize("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.minimap.enabled,description:r.localize("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:t.EDITOR_DEFAULTS.viewInfo.minimap.side,description:r.localize("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:t.EDITOR_DEFAULTS.viewInfo.minimap.showSlider,description:r.localize("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.minimap.renderCharacters,description:r.localize("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:t.EDITOR_DEFAULTS.viewInfo.minimap.maxColumn,description:r.localize("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.hover.enabled,description:r.localize("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:t.EDITOR_DEFAULTS.contribInfo.hover.delay,description:r.localize("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.hover.sticky,description:r.localize("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.find.seedSearchStringFromSelection,description:r.localize("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.find.autoFindInSelection,description:r.localize("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.find.globalFindClipboard,description:r.localize("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.isOSX},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:r.localize("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[r.localize("wordWrap.off","Lines will never wrap."),r.localize("wordWrap.on","Lines will wrap at the viewport width."),r.localize("wordWrap.wordWrapColumn","Lines will wrap at `#editor.wordWrapColumn#`."),r.localize("wordWrap.bounded","Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:t.EDITOR_DEFAULTS.wordWrap,description:r.localize("wordWrap","Controls how lines should wrap.")},"editor.wordWrapColumn":{type:"integer",default:t.EDITOR_DEFAULTS.wordWrapColumn,minimum:1,markdownDescription:r.localize("wordWrapColumn","Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[r.localize("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),r.localize("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),r.localize("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),r.localize("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:r.localize("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:t.EDITOR_DEFAULTS.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:r.localize("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.fastScrollSensitivity":{type:"number",default:t.EDITOR_DEFAULTS.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:r.localize("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[r.localize("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r.localize("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:r.localize("multiCursorModifier","The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:t.EDITOR_DEFAULTS.multiCursorMergeOverlapping,description:r.localize("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:r.localize("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:r.localize("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:r.localize("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:t.EDITOR_DEFAULTS.contribInfo.quickSuggestions,description:r.localize("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:t.EDITOR_DEFAULTS.contribInfo.quickSuggestionsDelay,minimum:0,description:r.localize("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.parameterHints.enabled,description:r.localize("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.parameterHints.cycle,description:r.localize("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",r.localize("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),r.localize("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:t.EDITOR_DEFAULTS.autoClosingBrackets,description:r.localize("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",r.localize("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),r.localize("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:t.EDITOR_DEFAULTS.autoClosingQuotes,description:r.localize("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[r.localize("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),r.localize("editor.autoSurround.brackets","Surround with brackets but not quotes."),r.localize("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:t.EDITOR_DEFAULTS.autoSurround,description:r.localize("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.formatOnType,description:r.localize("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.formatOnPaste,description:r.localize("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:t.EDITOR_DEFAULTS.autoIndent,description:r.localize("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.suggestOnTriggerCharacters,description:r.localize("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:t.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",r.localize("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:r.localize("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:r.localize("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[r.localize("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),r.localize("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),r.localize("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),r.localize("snippetSuggestions.none","Do not show snippet suggestions.")],default:t.EDITOR_DEFAULTS.contribInfo.suggest.snippets,description:r.localize("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:t.EDITOR_DEFAULTS.emptySelectionClipboard,description:r.localize("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:t.EDITOR_DEFAULTS.copyWithSyntaxHighlighting,description:r.localize("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.wordBasedSuggestions,description:r.localize("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[r.localize("suggestSelection.first","Always select the first suggestion."),r.localize("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),r.localize("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:r.localize("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:r.localize("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:r.localize("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[r.localize("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),r.localize("tabCompletion.off","Disable tab completions."),r.localize("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:r.localize("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:r.localize("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:r.localize("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:r.localize("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:r.localize("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.suggest.showIcons,description:r.localize("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:t.EDITOR_DEFAULTS.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:r.localize("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:r.localize("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:r.localize("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:r.localize("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:t.EDITOR_DEFAULTS.contribInfo.gotoLocation.multiple,enumDescriptions:[r.localize("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r.localize("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r.localize("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.selectionHighlight,description:r.localize("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.occurrencesHighlight,description:r.localize("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:r.localize("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.overviewRulerBorder,description:r.localize("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:"blink",description:r.localize("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.mouseWheelZoom,markdownDescription:r.localize("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.cursorSmoothCaretAnimation,description:r.localize("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:t.EDITOR_FONT_DEFAULTS.cursorStyle,description:r.localize("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:t.EDITOR_DEFAULTS.viewInfo.cursorWidth,markdownDescription:r.localize("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.fontLigatures,description:r.localize("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.hideCursorInOverviewRuler,description:r.localize("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",r.localize("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),r.localize("renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:t.EDITOR_DEFAULTS.viewInfo.renderWhitespace,description:r.localize("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.rename.enablePreview":{type:"boolean",default:!0,description:"Enable/disable the ability to preview changes before renaming"},"editor.renderControlCharacters":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.renderControlCharacters,description:r.localize("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.renderIndentGuides,description:r.localize("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.highlightActiveIndentGuide,description:r.localize("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",r.localize("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:t.EDITOR_DEFAULTS.viewInfo.renderLineHighlight,description:r.localize("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.codeLens,description:r.localize("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.folding,description:r.localize("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:t.EDITOR_DEFAULTS.contribInfo.foldingStrategy,markdownDescription:r.localize("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:t.EDITOR_DEFAULTS.contribInfo.showFoldingControls,description:r.localize("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.matchBrackets,description:r.localize("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:t.EDITOR_DEFAULTS.viewInfo.glyphMargin,description:r.localize("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:t.EDITOR_DEFAULTS.useTabStops,description:r.localize("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:t.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:r.localize("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r.localize("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:t.EDITOR_DEFAULTS.dragAndDrop,description:r.localize("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[r.localize("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r.localize("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),r.localize("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:t.EDITOR_DEFAULTS.accessibilitySupport,description:r.localize("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:t.EDITOR_DEFAULTS.showUnused,description:r.localize("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.links,description:r.localize("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.colorDecorators,description:r.localize("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.lightbulbEnabled,description:r.localize("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r.localize("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:r.localize("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:r.localize("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:t.EDITOR_DEFAULTS.contribInfo.codeActionsOnSave,description:r.localize("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:t.EDITOR_DEFAULTS.contribInfo.codeActionsOnSaveTimeout,description:r.localize("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:t.EDITOR_DEFAULTS.contribInfo.selectionClipboard,description:r.localize("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.isLinux},"editor.largeFileOptimizations":{type:"boolean",default:t.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:r.localize("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:r.localize("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"editor.defaultFormatter":{type:"string",description:r.localize("defaultFormatter","Default code formatter")}},o={"editor.tokenColorCustomizations":{type:"object",description:"%preference.editor.tokenColorCustomizations%",default:{}},"editor.askIfDiff":{type:"boolean",default:!0,description:"%editor.configuration.askIfDiff%"},"editor.showActionWhenGroupEmpty":{type:"boolean",default:!1,description:"%editor.configuration.showActionWhenGroupEmpty%"},"editor.autoSave":{type:"string",enum:["off","afterDelay","editorFocusChange","windowLostFocus"],default:"off",description:"%editor.configuration.autoSave%"},"editor.autoSaveDelay":{type:"number",default:1e3,description:"%editor.configuration.autoSaveDelay%"},"editor.preferredFormatter":{type:"object",default:{},description:"%editor.configuration.preferredFormatter%"},"editor.previewMode":{type:"boolean",default:!0,description:"%editor.configuration.preview%"},"editor.minimap":{type:"boolean",default:!1},"editor.forceReadOnly":{type:"boolean",default:!1,description:"%editor.configuration.forceReadOnly%"},"editor.languageFeatureEnabledMaxSize":{type:"number",default:2097152,description:"%editor.configuration.languageFeatureEnabledMaxSize%"},"editor.docExtHostSyncMaxSize":{type:"number",default:2097152,description:"%editor.configuration.docExtHostSyncMaxSize%"},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:"all",description:"%editor.configuration.renderLineHighlight%"},"editor.fontFamily":{type:"string",default:t.EDITOR_FONT_DEFAULTS.fontFamily,description:"%editor.configuration.fontFamily%"},"editor.fontWeight":{type:"string",default:t.EDITOR_FONT_DEFAULTS.fontWeight,description:"%editor.configuration.fontWeight%"},"editor.fontSize":{type:"number",default:t.EDITOR_FONT_DEFAULTS.fontSize,description:"%editor.configuration.fontSize%",minimum:6},"editor.tabSize":{type:"number",default:t.EDITOR_FONT_DEFAULTS.tabSize,description:"%editor.configuration.tabSize%"},"editor.formatOnPaste":{type:"boolean",default:!1,description:"%editor.configuration.formatOnPaste%"},"editor.detectIndentation":{type:"boolean",default:!0,description:"%editor.configuration.detectIndentation%"},"editor.renderWhitespace":{type:"boolean",default:t.EDITOR_FONT_DEFAULTS.renderWhitespace,description:"%editor.configuration.renderWhitespace%"},"editor.cursorStyle":{type:"string",enum:["line","block","block-outline","line-thin","underline","underline-thin"],default:t.EDITOR_FONT_DEFAULTS.cursorStyle,description:"%editor.configuration.cursorStyle%"},"editor.insertSpaces":{type:"boolean",default:t.EDITOR_FONT_DEFAULTS.insertSpace,description:"%editor.configuration.insertSpace%"},"editor.wordWrap":{type:"string",enum:["off","on"],default:t.EDITOR_FONT_DEFAULTS.wordWrap,description:"%editor.configuration.wordWrap%"},"editor.wordWrapColumn":{type:"number",default:t.EDITOR_FONT_DEFAULTS.wordWrapColumn,description:"%editor.configuration.wordWrapColumn%"},"editor.readonlyFiles":{type:"array",default:[],description:"%editor.configuration.readonlyFiles%",items:{type:"string"}},"editor.formatOnSave":{type:"boolean",default:!1,description:"%preference.editor.formatOnSave%"},"editor.formatOnSaveTimeout":{type:"number",default:750,description:"%editor.configuration.formatOnSaveTimeout%"},"editor.maxTokenizationLineLength":{type:"integer",default:1e4,description:"%editor.configuration.maxTokenizationLineLength%"},"editor.largeFile":{type:"number",default:2097152,description:"%editor.configuration.largeFileSize%"},"editor.quickSuggestionsDelay":{type:"integer",default:100,description:"%editor.configuration.quickSuggestionsDelay%"},"editor.quickSuggestionsMaxCount":{type:"integer",default:0},"editor.modelDisposeTime":{type:"integer",default:3e3},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:"%diffEditor.configuration.renderSideBySide%"},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!1,description:"%diffEditor.configuration.ignoreTrimWhitespace%"}};t.editorPreferenceSchema={type:"object",properties:Object.assign(Object.assign({},n),o)},t.EditorPreferences=Symbol("EditorPreference")},14484:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(35456);t.createEditorPreferenceProxy=function(e,t,i){return r.createPreferenceProxy(e,n.editorPreferenceSchema,{resourceUri:t,overrideIdentifier:i})}},71241:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(36579),o=i(19745),s=i(34865),a=i(22188),c=i(65686);let l=class extends s.WithEventBus{constructor(){super(),this.providers=[],this.resources=new Map,this.gettingResources=new Map,this.resourceDecoration=new Map,this.cachedProvider=new c.LRUMap(500,200)}onResourceNeedUpdateEvent(e){const t=e.payload;if(this.resources.has(t.toString())){const e=this.resources.get(t.toString());this.doGetResource(t).then((i=>{e&&(Object.assign(null==e?void 0:e.resource,null==i?void 0:i.resource),e.provider=null==i?void 0:i.provider),this.eventBus.fire(new n.ResourceDidUpdateEvent(t))}))}}onResourceDecorationChangeEvent(e){this.getResourceDecoration(e.payload.uri);let t=!1;const i=this.resourceDecoration.get(e.payload.uri.toString())||{};new Set([...Object.keys(i),...Object.keys(e.payload.decoration)]).forEach((r=>{i[r]!==e.payload.decoration[r]&&(t=!0)})),t&&(Object.assign(this.resourceDecoration.get(e.payload.uri.toString()),e.payload.decoration),this.eventBus.fire(new n.ResourceDecorationChangeEvent(e.payload)))}async getResource(e){if(!this.resources.has(e.toString())){const t=await this.doGetResource(e);if(!t)return null;const i={resource:a.observable(Object.assign({},t.resource)),provider:t.provider};this.resources.set(e.toString(),i)}return this.resources.get(e.toString()).resource}handlesUri(e){return!!this.calculateProvider(e)}async doGetResource(e){if(!this.gettingResources.has(e.toString())){const t=(async()=>{const t=this.calculateProvider(e);if(t){const i=await t.provideResource(e);return i.uri=e,{resource:i,provider:t}}return this.logger.error("URI has no resource provider: "+e),null})();this.gettingResources.set(e.toString(),t),t.finally((()=>{this.gettingResources.delete(e.toString())}))}return this.gettingResources.get(e.toString())}registerResourceProvider(e){const t=new c.Disposable;return t.addDispose(c.addElement(this.providers,e)),t.addDispose({dispose:()=>{for(const t of this.resources.values())t.provider===e&&(t.provider=d);this.cachedProvider.clear()}}),this.cachedProvider.clear(),t}async shouldCloseResource(e,t){const i=this.getProvider(e.uri);return!i||!i.shouldCloseResource||await i.shouldCloseResource(e,t)}calculateProvider(e){if(this.cachedProvider.has(e.toString()))return this.cachedProvider.get(e.toString());let t,i={weight:-1,index:-1};function r(e,r,n){i={weight:r,index:n},t=e}return this.providers.forEach(((t,n)=>{let o=-1;t.handlesUri?o=t.handlesUri(e):t.scheme&&(o=t.scheme===e.scheme?10:-1),o>=0&&(o>i.weight||o===i.weight&&n>i.index)&&r(t,o,n)})),this.cachedProvider.set(e.toString(),t),t}getProvider(e){const t=this.resources.get(e.toString());return t?t.provider:void 0}getResourceDecoration(e){return this.resourceDecoration.has(e.toString())||this.resourceDecoration.set(e.toString(),a.observable(u)),this.resourceDecoration.get(e.toString())}getResourceSubname(e,t){const i=this.getProvider(e.uri);return i?i.provideResourceSubname?i.provideResourceSubname(e,t):null:(this.logger.error("URI has no resource provider: "+e.uri),null)}disposeResource(e){const t=this.getProvider(e.uri);return this.resources.delete(e.uri.toString()),t&&t.onDisposeResource?t.onDisposeResource(e):void 0}};r.__decorate([o.Autowired(c.ILogger),r.__metadata("design:type",Object)],l.prototype,"logger",void 0),r.__decorate([s.OnEvent(n.ResourceNeedUpdateEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[n.ResourceNeedUpdateEvent]),r.__metadata("design:returntype",void 0)],l.prototype,"onResourceNeedUpdateEvent",null),r.__decorate([s.OnEvent(n.ResourceDecorationNeedChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[n.ResourceDecorationNeedChangeEvent]),r.__metadata("design:returntype",void 0)],l.prototype,"onResourceDecorationChangeEvent",null),l=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],l),t.ResourceServiceImpl=l;const u={dirty:!1},d={handlesUri:()=>-1,provideResource:e=>({uri:e,name:"",icon:""})}},94873:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(99396),o=i(36579),s=i(7619),a=i(94184),c=i(34865),l=i(199),u=i(75871),d=i(19401),h=i(59094),p=i(18960),f=i(88774),g=i(37065).u2;function m(e){(this.offsetWidth+this.scrollLeft+e.deltaX>this.scrollWidth||this.scrollLeft+e.deltaX<0)&&e.preventDefault()}t.Tabs=({group:e})=>{const i=r.useRef(),d=r.useRef(),v=n.useInjectable(o.ResourceService),y=n.useInjectable(c.IEventBus),_=r.useContext(c.ConfigContext),b=n.useInjectable(o.WorkbenchEditorService),w=n.useInjectable(h.TabTitleMenuService),[S,C]=r.useState({});function E(t,i,r){if(t.dataTransfer.getData("uri")){const i=new c.URI(t.dataTransfer.getData("uri"));let n;t.dataTransfer.getData("uri-source-group")&&(n=b.getEditorGroup(t.dataTransfer.getData("uri-source-group"))),e.dropUri(i,u.DragOverPosition.CENTER,n,r)}t.dataTransfer.files.length>0&&y.fire(new u.EditorGroupFileDropEvent({group:e,tabIndex:i,files:t.dataTransfer.files}))}function O(){if(i.current&&e.currentResource)try{const t=i.current.querySelector("."+s.kt_editor_tab+"[data-uri='"+e.currentResource.uri.toString()+"']");t&&function(e,t){const i=function(e,t){const i=e.scrollLeft,r=i+e.offsetWidth,n=t.offsetLeft,o=t.offsetWidth+n;if(t.offsetWidth>e.offsetWidth)return-1;return i<=n?r>=o?0:1:-1}(e,t);i<0?e.scrollLeft=t.offsetLeft:i>0&&(e.scrollLeft=t.offsetLeft+t.offsetWidth-e.offsetWidth)}(i.current,t)}catch(e){}}return p.useUpdateOnGroupTabChange(e),r.useEffect((()=>{const t=new c.Disposable;return t.addDispose(e.onDidEditorGroupContentLoading((t=>{var i;null===(i=e.resourceStatus.get(t))||void 0===i||i.finally((()=>{C(Object.assign({},S,{[t.uri.toString()]:!1}))})),C(Object.assign({},S,{[t.uri.toString()]:!0}))}))),()=>{t.dispose()}}),[e]),r.useEffect((()=>{O()})),r.useEffect((()=>{const t=new c.Disposable;return i.current&&t.addDispose(new c.DomListener(i.current,"mousewheel",m)),t.addDispose(y.on(c.ResizeEvent,(e=>{e.payload.slotLocation===c.getSlotLocation(g,_.layoutConfig)&&O()}))),t.addDispose(y.on(u.GridResizeEvent,(t=>{t.payload.gridId===e.grid.uid&&O()}))),()=>{t.dispose()}}),[]),r.createElement("div",{className:s.kt_editor_tabs},r.createElement("div",{className:s.kt_editor_tabs_scroll_wrapper},r.createElement(l.Scroll,{ref:e=>e?i.current=e.ref:null,className:s.kt_editor_tabs_scroll},r.createElement("div",{className:s.kt_editor_tabs_content,ref:d,onDragLeave:e=>{d.current&&d.current.classList.remove(s.kt_on_drag_over)},onDragOver:e=>{e.preventDefault(),e.stopPropagation(),d.current&&d.current.classList.add(s.kt_on_drag_over)},onDrop:e=>{d.current&&d.current.classList.remove(s.kt_on_drag_over),E&&E(e,-1)}},e.resources.map(((t,i)=>{let n;const o=v.getResourceDecoration(t.uri),l=v.getResourceSubname(t,e.resources);return r.createElement("div",{draggable:!0,className:a.default({[s.kt_editor_tab]:!0,[s.kt_editor_tab_current]:e.currentResource===t,[s.kt_editor_tab_preview]:e.previewURI&&e.previewURI.isEqual(t.uri)}),onContextMenu:i=>{w.show(i.nativeEvent.x,i.nativeEvent.y,t&&t.uri,e),i.preventDefault()},key:t.uri.toString(),onMouseUp:i=>{2===i.nativeEvent.which&&(i.preventDefault(),i.stopPropagation(),e.close(t.uri))},onMouseDown:i=>{1===i.nativeEvent.which&&e.open(t.uri)},onDragOver:e=>{e.preventDefault(),e.stopPropagation(),n&&n.classList.add(s.kt_on_drag_over)},"data-uri":t.uri.toString(),onDragLeave:e=>{n&&n.classList.remove(s.kt_on_drag_over)},onDrop:e=>{n&&n.classList.remove(s.kt_on_drag_over),E&&E(e,i,t)},onDoubleClick:i=>{e.pinPreviewed(t.uri)},ref:e=>n=e,onDragStart:i=>{i.dataTransfer.setData("uri",t.uri.toString()),i.dataTransfer.setData("uri-source-group",e.name)}},r.createElement("div",{className:a.default(t.icon,{[s.small]:S[t.uri.toString()]})}," "),S[t.uri.toString()]&&r.createElement(f.Icon,{icon:"refresh",loading:!0,className:s.tab_loading}),r.createElement("div",null,t.name),l?r.createElement("div",{className:s.subname},l):null,r.createElement("div",{className:s.tab_right},r.createElement("div",{className:a.default({[s.kt_hidden]:!o.dirty,[s.dirty]:!0})}),r.createElement("div",{className:s.close_tab,onMouseDown:i=>{i.stopPropagation(),e.close(t.uri)}},r.createElement("div",{className:c.getIcon("close")}))))}))))),r.createElement(t.EditorActions,{group:e}),r.createElement("div",null))},t.EditorActions=({group:e})=>{var t;const i=n.useInjectable(u.IEditorActionRegistry),a=n.useInjectable(o.WorkbenchEditorService),c=i.getMenu(e),[l,h]=r.useState(a.currentEditorGroup===e);r.useEffect((()=>{const t=a.onDidCurrentEditorGroupChanged((()=>{h(a.currentEditorGroup===e)}));return()=>{t.dispose()}}),[]),n.useUpdateOnEvent(e.onDidEditorGroupBodyChanged,[e],(()=>!!e.currentOpenType));const p=e.currentResource?[e.currentResource.uri,e,null===(t=e.currentEditor)||void 0===t?void 0:t.currentUri]:void 0;return r.createElement("div",{className:s.editor_actions},r.createElement(d.InlineActionBar,{menus:c,context:p,regroup:(e,t)=>l?[e,t]:[[],t]}))}},75871:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865);r.__exportStar(i(36579),t),function(e){e[e.ONE_PER_RESOURCE=1]="ONE_PER_RESOURCE",e[e.ONE_PER_GROUP=2]="ONE_PER_GROUP",e[e.ONE_PER_WORKBENCH=3]="ONE_PER_WORKBENCH"}(t.EditorComponentRenderMode||(t.EditorComponentRenderMode={}));class o extends n.BasicEvent{}t.RegisterEditorComponentResolverEvent=o;class s extends n.BasicEvent{}t.RegisterEditorComponentEvent=s;t.EditorComponentRegistry=class{},t.BrowserEditorContribution=Symbol("BrowserEditorContribution");class a extends n.BasicEvent{}t.GridResizeEvent=a;class c extends n.BasicEvent{}t.EditorGroupOpenEvent=c;class l extends n.BasicEvent{}t.EditorGroupCloseEvent=l;class u extends n.BasicEvent{}t.EditorGroupDisposeEvent=u;class d extends n.BasicEvent{}t.EditorGroupChangeEvent=d;class h extends n.BasicEvent{}t.EditorActiveResourceStateChangedEvent=h;class p extends n.BasicEvent{}t.EditorGroupFileDropEvent=p,t.IEditorDecorationCollectionService=Symbol("IEditorDecorationCollectionService");class f extends n.BasicEvent{}t.EditorSelectionChangeEvent=f;class g extends n.BasicEvent{}t.EditorVisibleChangeEvent=g;class m extends n.BasicEvent{}t.EditorConfigurationChangedEvent=m;class v extends n.BasicEvent{}t.EditorGroupIndexChangedEvent=v;class y extends n.BasicEvent{}t.EditorGroupsResetSizeEvent=y;class _ extends n.BasicEvent{}t.EditorDecorationProviderRegistrationEvent=_;class b extends n.BasicEvent{}t.EditorDecorationChangeEvent=b;class w extends n.BasicEvent{}t.EditorDecorationTypeRemovedEvent=w,t.IEditorActionRegistry=Symbol("IEditorActionRegistry"),t.ICompareService=Symbol("ICompareService"),function(e){e.revert="revert",e.accept="accept",e.cancel="cancel"}(t.CompareResult||(t.CompareResult={})),t.IBreadCrumbService=Symbol("IBreadScrumbService"),t.IEditorFeatureRegistry=Symbol("IEditorFeatureRegistry");class S extends n.BasicEvent{}t.ResourceOpenTypeChangedEvent=S;class C extends n.BasicEvent{}t.EditorComponentDisposeEvent=C;class E extends n.BasicEvent{}t.CodeEditorDidVisibleEvent=E},82931:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(35463),a=i(36579),c=i(35492);let l=class{constructor(){this._onDidChangeContent=new o.Emitter,this.onDidChangeContent=this._onDidChangeContent.event}handlesScheme(e){return e===o.Schemas.untitled}async provideEncoding(e){return this.preferenceService.get("files.encoding",void 0,e.toString(),o.getLanguageIdFromMonaco(e))||"utf8"}async provideEOL(e){const t=await this.applicationService.getBackendOS(),i=this.preferenceService.get("files.eol","auto",e.toString(),o.getLanguageIdFromMonaco(e));return"auto"!==i?i:t===o.OS.Type.Windows?"\r\n":"\n"}async provideEditorDocumentModelContent(e,t){return""}isReadonly(e){return!1}isAlwaysDirty(e){return!0}closeAutoSave(e){return!0}async saveDocumentModel(e,t,i,r,n,a=!1){const{name:c}=e.getParsedQuery(),l="/"!==e.path.toString()?s.dirname(e.path.toString()):this.appConfig.workspaceDir,u=await this.commandService.tryExecuteCommand("file.save",{showNameInput:!0,defaultFileName:c||e.displayName,defaultUri:o.URI.file(l)});return u?(await this.editorDocumentModelService.saveEditorDocumentModel(u,t,i,r,n,a),await this.workbenchEditorService.close(e),await this.workbenchEditorService.open(u,{preview:!1,focus:!0}),{state:"success"}):{state:"error",errorMessage:o.localize("editor.cannotSaveWithoutDirectory")}}onDidDisposeModel(){}};r.__decorate([n.Autowired(c.IEditorDocumentModelService),r.__metadata("design:type",Object)],l.prototype,"editorDocumentModelService",void 0),r.__decorate([n.Autowired(a.WorkbenchEditorService),r.__metadata("design:type",a.WorkbenchEditorService)],l.prototype,"workbenchEditorService",void 0),r.__decorate([n.Autowired(o.CommandService),r.__metadata("design:type",Object)],l.prototype,"commandService",void 0),r.__decorate([n.Autowired(o.AppConfig),r.__metadata("design:type",Object)],l.prototype,"appConfig",void 0),r.__decorate([n.Autowired(o.IApplicationService),r.__metadata("design:type",Object)],l.prototype,"applicationService",void 0),r.__decorate([n.Autowired(o.PreferenceService),r.__metadata("design:type",Object)],l.prototype,"preferenceService",void 0),l=r.__decorate([n.Injectable()],l),t.UntitledSchemeDocumentProvider=l;let u=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=o.Schemas.untitled}provideResource(e){const{name:t}=e.getParsedQuery();return{name:t||e.displayName,uri:e,icon:"",metadata:null}}};u=r.__decorate([n.Injectable()],u),t.UntitledSchemeResourceProvider=u},91292:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(36579),s=i(35492);t.CodeEditor=e=>{const t=r.useRef(),i=n.useInjectable(o.EditorCollectionService),a=n.useInjectable(s.IEditorDocumentModelService),[c,l]=r.useState(void 0),[u,d]=r.useState(void 0),[h,p]=r.useState(void 0),[f,g]=r.useState(void 0);let m=!1;return r.useEffect((()=>(t.current&&(c&&c.dispose(),i.createCodeEditor(t.current,Object.assign({automaticLayout:!0},e.options)).then((e=>{m?e.dispose():(l(e),u&&e.open(u))}))),()=>{m=!0,c&&c.dispose(),u&&u.dispose()})),[t.current]),e&&c&&e.editorRef&&e.editorRef(c),h&&f!==h&&(g(h),a.createModelReference(new n.URI(h),"editor-react-component").then((e=>{u&&u.dispose(),m||e.instance.uri.toString()!==h?e.dispose():d(e)}))),u&&c&&c.currentDocumentModel!==u.instance&&c.open(u),e.uri&&e.uri.toString()!==h&&p(e.uri.toString()),r.createElement("div",Object.assign({ref:e=>e&&(t.current=e)},e))}},18960:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865);t.useUpdateOnGroupTabChange=function(e){return r.useUpdateOnEvent(e.onDidEditorGroupTabChanged,[e])}},34488:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(34865);let a=class{contribute(e){const t=new s.DisposableCollection,i=e.monacoEditor.getContribution("editor.contrib.suggestController");if(i&&i._widget){const e=i._widget.getValue();t.push(e.onDidSelect((e=>{this.eventBus.fire(new s.SuggestEvent({eventType:"onDidSelect",data:e}))}))),t.push(e.onDidHide((e=>{this.eventBus.fire(new s.SuggestEvent({eventType:"onDidHide",data:e}))}))),t.push(e.onDidShow((e=>{this.eventBus.fire(new s.SuggestEvent({eventType:"onDidShow",data:e}))}))),t.push(e.onDidFocus((e=>{this.eventBus.fire(new s.SuggestEvent({eventType:"onDidFocus",data:e}))})))}return t}};r.__decorate([n.Autowired(o.IEventBus),r.__metadata("design:type",Object)],a.prototype,"eventBus",void 0),a=r.__decorate([n.Injectable()],a),t.EditorSuggestWidgetContribution=a},4727:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EditorTopPaddingContribution=class{contribute(e){return e.monacoEditor.onDidChangeModel((()=>{e.monacoEditor.changeViewZones((e=>{e.addZone({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:8})}))}))}}},41719:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(36579),s=i(19745),a=i(65686),c=i(75871),l=i(81661),u=i(14895),d=i(34865),h=i(35492),p=i(65686),f=i(29506),g=i(92224),m=i(13183);let v=class extends a.WithEventBus{constructor(){super(),this.editorGroups=[],this._onDidEditorGroupsChanged=new a.Emitter,this.onDidEditorGroupsChanged=this._onDidEditorGroupsChanged.event,this._sortedEditorGroups=[],this._onActiveResourceChange=new a.Emitter,this.onActiveResourceChange=this._onActiveResourceChange.event,this._onCursorChange=new a.Emitter,this.onCursorChange=this._onCursorChange.event,this._onDidCurrentEditorGroupChanged=new a.Emitter,this.onDidCurrentEditorGroupChanged=this._onDidCurrentEditorGroupChanged.event,this._restoring=!0,this.contributionsReady=new a.Deferred,this.untitledIndex=1,this.untitledCloseIndex=[],this.gridReady=!1,this._onDidGridReady=new a.Emitter,this.onDidGridReady=this._onDidGridReady.event,this.initialize()}setEditorContextKeyService(e){this.editorContextKeyService=e}setCurrentGroup(e){var t;if(e){if(this._currentEditorGroup===e)return;this._currentEditorGroup=e,this._onActiveResourceChange.fire(e.currentResource),this.eventBus.fire(new c.EditorActiveResourceStateChangedEvent({resource:e.currentResource,openType:e.currentOpenType,editorUri:null===(t=this.currentEditor)||void 0===t?void 0:t.currentUri})),this._onDidCurrentEditorGroupChanged.fire(this._currentEditorGroup)}}onEditorGroupChangeEvent(e){var t;e.payload.group===this.currentEditorGroup&&this.eventBus.fire(new c.EditorActiveResourceStateChangedEvent({resource:e.payload.newResource,openType:e.payload.newOpenType,editorUri:null===(t=this.currentEditor)||void 0===t?void 0:t.currentUri}))}getAllOpenedUris(){const e=[];for(const t of this.editorGroups)for(const i of t.resources){-1===e.findIndex((e=>e.isEqual(i.uri)))&&e.push(i.uri)}return e}async saveAll(e,t){for(const i of this.editorGroups)await i.saveAll(e,t)}hasDirty(){for(const e of this.editorGroups)if(e.hasDirty())return!0;return!1}createEditorGroup(){const e=this.injector.get(y,[this.generateRandomEditorGroupName()]);this.editorGroups.push(e);const t=e.onDidEditorGroupBodyChanged((()=>{e===this.currentEditorGroup&&(!e.currentOpenType&&e.currentResource||this._onActiveResourceChange.fire(e.currentResource))}));e.addDispose({dispose:()=>{t.dispose()}});const i=e.onDidEditorGroupTabChanged((()=>{this.saveOpenedResourceState()}));return e.addDispose({dispose:()=>{i.dispose()}}),e.onCurrentEditorCursorChange((t=>{this._currentEditorGroup===e&&this._onCursorChange.fire(t)})),this._sortedEditorGroups=void 0,this._onDidEditorGroupsChanged.fire(),e}generateRandomEditorGroupName(){let e=u.makeRandomHexString(5);for(;-1!==this.editorGroups.findIndex((t=>t.name===e));)e=u.makeRandomHexString(5);return e}initialize(){return this.initializing||(this.initializing=this.doInitialize()),this.initializing}async doInitialize(){this.openedResourceState=await this.initializeState(),await this.contributionsReady.promise,await this.restoreState(),this._currentEditorGroup=this.editorGroups[0]}async initializeState(){return await this.getStorage(a.STORAGE_NAMESPACE.WORKBENCH)}get currentEditor(){return this.currentEditorGroup&&this.currentEditorGroup.currentEditor}get currentCodeEditor(){return this.currentEditorGroup.currentCodeEditor}get currentEditorGroup(){return this._currentEditorGroup}async open(e,t){await this.initialize();let i,r=this.currentEditorGroup;if(t&&void 0!==t.groupIndex?i=t.groupIndex:t&&t.relativeGroupIndex&&(i=this.currentEditorGroup.index+t.relativeGroupIndex),"number"==typeof i&&i>=0){if(i>=this.editorGroups.length)return r.open(e,Object.assign({},t,{split:o.EditorGroupSplitAction.Right}));r=this.sortedEditorGroups[i]||this.currentEditorGroup}return r.open(e,t)}async openUris(e){await this.initialize(),await this.currentEditorGroup.openUris(e)}getEditorGroup(e){return this.editorGroups.find((t=>t.name===e))}get currentResource(){return this.currentEditorGroup?this.currentEditorGroup.currentResource:null}removeGroup(e){const t=this.editorGroups.findIndex((t=>t===e));if(-1!==t){if(1===this.editorGroups.length)return;this.editorGroups.splice(t,1),this.currentEditorGroup===e&&this.setCurrentGroup(this.editorGroups[0]);for(let e=t;e{let t=null;const i=this.documentModelManager.getModelReference(e,"resourceContextKey");return i&&(i&&(t=i.instance.languageId),i.dispose()),t},t=new f.ResourceContextKey(this.editorContextKeyService,(t=>{const i=e(t);return i||e(t)}));this.onActiveResourceChange((e=>{this.currentEditor&&this.currentEditor.currentUri?t.set(this.currentEditor.currentUri):e?t.set(e.uri):t.reset()})),this.currentEditor&&this.currentEditor.currentUri?t.set(this.currentEditor.currentUri):this.currentResource?t.set(this.currentResource.uri):t.reset()}onDomCreated(e){this._domNode=e,this.editorContextKeyService&&this.editorContextKeyService.attachToDomNode(e)}async restoreState(){let e={editorGroup:{uris:[],previewIndex:-1}};e=this.openedResourceState.get("grid",e),this.topGrid=new l.EditorGrid;const t=[],i=this.topGrid.deserialize(e,(()=>this.createEditorGroup()),t).then((()=>{0!==this.topGrid.children.length||this.topGrid.editorGroup||this.topGrid.setEditorGroup(this.createEditorGroup()),this.gridReady=!0,this._onDidGridReady.fire()}));return Promise.all(t).then((()=>{this._restoring=!1;for(const e of this.contributions.getContributions())e.onDidRestoreState&&e.onDidRestoreState()})),i}async closeAll(e,t){for(const i of this.editorGroups.slice(0))e?await i.close(e,{force:t}):await i.closeAll()}async close(e,t){return this.closeAll(e,t)}get sortedEditorGroups(){return this._sortedEditorGroups||(this._sortedEditorGroups=[],this.topGrid.sortEditorGroups(this._sortedEditorGroups)),this._sortedEditorGroups}handleOnCloseUntitledResource(e){if(e.payload.resource.uri.scheme===p.Schemas.untitled){const{index:t}=e.payload.resource.uri.getParsedQuery();this.untitledCloseIndex.push(parseInt(t,10)),this.untitledCloseIndex.sort(((e,t)=>e-t))}}createUntitledURI(){const e=this.untitledCloseIndex.shift()||this.untitledIndex++;return(new a.URI).withScheme(p.Schemas.untitled).withQuery(`name=Untitled-${e}&index=${e}`)}createUntitledResource(e={uri:this.createUntitledURI()}){return this.open(e.uri,Object.assign({preview:!1,focus:!0},e.resourceOpenOptions))}};r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],v.prototype,"injector",void 0),r.__decorate([s.Autowired(a.StorageProvider),r.__metadata("design:type",Function)],v.prototype,"getStorage",void 0),r.__decorate([s.Autowired(c.BrowserEditorContribution),r.__metadata("design:type",Object)],v.prototype,"contributions",void 0),r.__decorate([s.Autowired(h.IEditorDocumentModelService),r.__metadata("design:type",Object)],v.prototype,"documentModelManager",void 0),r.__decorate([a.OnEvent(c.EditorGroupChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.EditorGroupChangeEvent]),r.__metadata("design:returntype",void 0)],v.prototype,"onEditorGroupChangeEvent",null),r.__decorate([a.OnEvent(c.EditorGroupCloseEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.EditorGroupCloseEvent]),r.__metadata("design:returntype",void 0)],v.prototype,"handleOnCloseUntitledResource",null),v=r.__decorate([s.Injectable(),r.__metadata("design:paramtypes",[])],v),t.WorkbenchEditorServiceImpl=v;let y=class extends a.WithEventBus{constructor(e){super(),this.name=e,this.openingPromise=new Map,this._onDidEditorGroupTabChanged=new a.Emitter,this.onDidEditorGroupTabChanged=this._onDidEditorGroupTabChanged.event,this._onDidEditorGroupBodyChanged=new a.Emitter,this.onDidEditorGroupBodyChanged=this._onDidEditorGroupBodyChanged.event,this._onDidEditorGroupContentLoading=new a.Emitter,this.onDidEditorGroupContentLoading=this._onDidEditorGroupContentLoading.event,this.previewURI=null,this.resources=[],this.resourceStatus=new Map,this.cachedResourcesActiveOpenTypes=new Map,this.cachedResourcesOpenTypes=new Map,this.availableOpenTypes=[],this.activeComponents=new Map,this.activateComponentsProps=new Map,this.codeEditorReady=new a.Deferred,this.diffEditorReady=new a.Deferred,this.holdDocumentModelRefs=new Map,this.toDispose=[],this._prevDomHeight=0,this._prevDomWidth=0,this._codeEditorPendingLayout=!1,this._diffEditorPendingLayout=!1,this._onCurrentEditorCursorChange=new a.Emitter,this.onCurrentEditorCursorChange=this._onCurrentEditorCursorChange.event,this.resourceOpenHistory=[],this._domNode=null,this.eventBus.on(d.ResizeEvent,(e=>{e.payload.slotLocation===d.getSlotLocation("@ali/ide-editor",this.config.layoutConfig)&&this.doLayoutEditors()})),this.eventBus.on(c.GridResizeEvent,(e=>{e.payload.gridId===this.grid.uid&&this.doLayoutEditors()})),this.eventBus.on(c.EditorComponentDisposeEvent,(e=>{this.activeComponents.delete(e.payload),this.activateComponentsProps.delete(e.payload)})),this.listenToExplorerAutoRevealConfig()}listenToExplorerAutoRevealConfig(){this.explorerAutoRevealConfig=!!this.preferenceService.get("explorer.autoReveal"),this.disposables.push(this.preferenceService.onPreferenceChanged((e=>{"explorer.autoReveal"===e.preferenceName&&(this.explorerAutoRevealConfig=e.newValue)})))}attachToDom(e){this._domNode=e,e&&(this.contextKeyService.attachToDomNode(e),this.layoutEditors())}layoutEditors(){if(this._domNode){const e=this._domNode.offsetWidth,t=this._domNode.offsetHeight;e===this._prevDomWidth&&t===this._prevDomHeight||this.doLayoutEditors(),this._prevDomWidth=e,this._prevDomHeight=t}}doLayoutEditors(){this.codeEditor&&(this.currentOpenType&&"code"===this.currentOpenType.type?(this.codeEditor.layout(),this._codeEditorPendingLayout=!1):this._codeEditorPendingLayout=!0),this.diffEditor&&(this.currentOpenType&&"diff"===this.currentOpenType.type?(this.diffEditor.layout(),this._diffEditorPendingLayout=!1):this._diffEditorPendingLayout=!0)}setContextKeys(){var e;if(!this._resourceContext){const e=e=>{let t=null;const i=this.documentModelManager.getModelReference(e,"resourceContextKey");return i&&(i&&(t=i.instance.languageId),i.dispose()),t};this._resourceContext=new f.ResourceContextKey(this.contextKeyService,(t=>{const i=e(t);return i||e(t)})),this._editorLangIDContextKey=this.contextKeyService.createKey("editorLangId",""),this._isInDiffEditorContextKey=this.contextKeyService.createKey("isInDiffEditor",!1),this._isInEditorComponentContextKey=this.contextKeyService.createKey("inEditorComponent",!1)}this.currentEditor&&this.currentEditor.currentUri?(this._resourceContext.set(this.currentEditor.currentUri),this.currentEditor.currentDocumentModel&&this._editorLangIDContextKey.set(this.currentEditor.currentDocumentModel.languageId)):(this.currentResource?this._resourceContext.set(this.currentResource.uri):this._resourceContext.reset(),this._editorLangIDContextKey.reset()),this._isInDiffEditorContextKey.set(!!this.currentOpenType&&"diff"===this.currentOpenType.type),this._isInEditorComponentContextKey.set("component"===(null===(e=this.currentOpenType)||void 0===e?void 0:e.type))}get contextKeyService(){return this._contextKeyService||(this._contextKeyService=this.workbenchEditorService.editorContextKeyService.createScoped()),this._contextKeyService}get index(){return this.workbenchEditorService.sortedEditorGroups.indexOf(this)}onResourceDecorationChangeEvent(e){e.payload.decoration.dirty&&this.previewURI&&this.previewURI.isEqual(e.payload.uri)&&this.pinPreviewed();this.resources.find((t=>t.uri.isEqual(e.payload.uri)))&&this.notifyTabChanged()}oResourceOpenTypeChangedEvent(e){const t=e.payload;this.cachedResourcesOpenTypes.has(t.toString())&&this.cachedResourcesOpenTypes.delete(t.toString()),this.currentResource&&this.currentResource.uri.isEqual(t)&&(this._currentOpenType=null,this.notifyBodyChanged(),this.displayResourceComponent(this.currentResource,{}))}pinPreviewed(e){const t=this.previewURI;(void 0===e||this.previewURI&&this.previewURI.isEqual(e))&&(this.previewURI=null),t!==this.previewURI&&this.notifyTabChanged()}notifyTabChanged(){this._onDidEditorGroupTabChanged.fire()}notifyBodyChanged(){this._onDidEditorGroupBodyChanged.fire()}notifyTabLoading(e){this._onDidEditorGroupContentLoading.fire(e)}get currentEditor(){return this.currentOpenType?"code"===this.currentOpenType.type?this.codeEditor:"diff"===this.currentOpenType.type?this.diffEditor.modifiedEditor:null:null}get currentFocusedEditor(){if(this.currentOpenType)if("code"===this.currentOpenType.type){if(this.codeEditor.monacoEditor.hasWidgetFocus())return this.codeEditor}else if("diff"===this.currentOpenType.type){if(this.diffEditor.modifiedEditor.monacoEditor.hasWidgetFocus())return this.diffEditor.modifiedEditor;if(this.diffEditor.originalEditor.monacoEditor.hasWidgetFocus())return this.diffEditor.originalEditor}}get currentCodeEditor(){return this.currentOpenType&&"code"===this.currentOpenType.type?this.codeEditor:null}async createEditor(e){this.codeEditor=await this.collectionService.createCodeEditor(e,{},{[d.ServiceNames.CONTEXT_KEY_SERVICE]:this.contextKeyService.contextKeyService}),setTimeout((()=>{this.codeEditor.layout()})),this.toDispose.push(this.codeEditor.onCursorPositionChanged((e=>{this._onCurrentEditorCursorChange.fire(e)}))),this.toDispose.push(this.codeEditor.onSelectionsChanged((e=>{this.currentOpenType&&"code"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorSelectionChangeEvent({group:this,resource:this.currentResource,selections:e.selections,source:e.source,editorUri:this.codeEditor.currentUri}))}))),this.toDispose.push(this.codeEditor.onVisibleRangesChanged((e=>{this.currentOpenType&&"code"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorVisibleChangeEvent({group:this,resource:this.currentResource,visibleRanges:e}))}))),this.toDispose.push(this.codeEditor.onConfigurationChanged((()=>{this.currentOpenType&&"code"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorConfigurationChangedEvent({group:this,resource:this.currentResource}))}))),this.eventBus.fire(new c.CodeEditorDidVisibleEvent({groupName:this.name,type:"code",editorId:this.codeEditor.getId()})),this.codeEditorReady.resolve()}async createDiffEditor(e){this.diffEditor=await this.collectionService.createDiffEditor(e,{},{[d.ServiceNames.CONTEXT_KEY_SERVICE]:this.contextKeyService.contextKeyService}),setTimeout((()=>{this.diffEditor.layout()})),this.toDispose.push(this.diffEditor.modifiedEditor.onSelectionsChanged((e=>{this.currentOpenType&&"diff"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorSelectionChangeEvent({group:this,resource:this.currentResource,selections:e.selections,source:e.source,editorUri:this.diffEditor.modifiedEditor.currentUri}))}))),this.toDispose.push(this.diffEditor.modifiedEditor.onVisibleRangesChanged((e=>{this.currentOpenType&&"diff"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorVisibleChangeEvent({group:this,resource:this.currentResource,visibleRanges:e}))}))),this.toDispose.push(this.diffEditor.modifiedEditor.onConfigurationChanged((()=>{this.currentOpenType&&"diff"===this.currentOpenType.type&&this.eventBus.fire(new c.EditorConfigurationChangedEvent({group:this,resource:this.currentResource}))}))),this.eventBus.fire(new c.CodeEditorDidVisibleEvent({groupName:this.name,type:"diff",editorId:this.diffEditor.modifiedEditor.getId()})),this.diffEditorReady.resolve()}async split(e,t,i){var r,s,a;const c=this.workbenchEditorService.createEditorGroup(),u=e===o.EditorGroupSplitAction.Left||e===o.EditorGroupSplitAction.Right?l.SplitDirection.Horizontal:l.SplitDirection.Vertical,d=e===o.EditorGroupSplitAction.Left||e===o.EditorGroupSplitAction.Top;if(this.grid.split(u,c,d),i&&!i.scrollTop&&(i.scrollTop=null===(r=this.currentEditor)||void 0===r?void 0:r.monacoEditor.getScrollTop()),i&&!i.scrollLeft&&(i.scrollLeft=null===(s=this.currentEditor)||void 0===s?void 0:s.monacoEditor.getScrollLeft()),i&&!(null==i?void 0:i.range)){const e=null===(a=this.currentCodeEditor)||void 0===a?void 0:a.monacoEditor.getSelection();e&&(i.range=new n.Range(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn))}return c.open(t,Object.assign(Object.assign({},i),{preview:!1}))}async open(e,t={}){if(e.scheme===p.Schemas.file&&this.recentFilesManager.setMostRecentlyOpenedFile(e.withoutFragment().toString()),t&&t.split)return this.split(t.split,e,Object.assign({},t,{split:void 0,preview:!1}));if(!this.openingPromise.has(e.toString())){const i=this.doOpen(e,t);this.openingPromise.set(e.toString(),i),i.then((()=>{this.openingPromise.delete(e.toString())}),(()=>{this.openingPromise.delete(e.toString())}))}return this.preferenceService.get("editor.previewMode")&&(!!p.isUndefinedOrNull(t.preview)||t.preview)||this.openingPromise.get(e.toString()).then((()=>{this.pinPreviewed(e)})),this.openingPromise.get(e.toString())}async pin(e){return this.pinPreviewed(e)}async doOpen(e,t={}){var i,r;if(!this.resourceService.handlesUri(e))return this.openerService.open(e),!1;let n;try{const o=this.preferenceService.get("editor.previewMode")&&(!!p.isUndefinedOrNull(t.preview)||t.preview);if(this.currentResource&&this.currentResource.uri.isEqual(e))return t.focus&&this.currentEditor&&(null===(i=this._domNode)||void 0===i||i.focus(),this.currentEditor.monacoEditor.focus()),t.range&&this.currentEditor&&(this.currentEditor.monacoEditor.revealRangeInCenter(t.range),this.currentEditor.monacoEditor.setSelection(t.range)),t&&t.disableNavigate||t&&t.backend||this.locateInFileTree(e),this.notifyTabChanged(),{group:this,resource:this.currentResource};{const i=this._currentOpenType,s=this._currentResource;let l=this.resources.find((t=>t.uri.toString()===e.toString()));if(!l){if(l=await this.resourceService.getResource(e),!l)throw new Error("This uri cannot be opened!: "+e);if(l.deleted){if("fail"===t.deletedPolicy)throw new Error("resource deleted "+e);if("skip"===t.deletedPolicy)return!1}t&&t.label&&(l.name=t.label);let i=null;if(t&&void 0!==t.index&&t.index0&&this.recentFilesManager.updateMostRecentlyOpenedFile(s.uri.toString(),{lineNumber:e[0].selectionStartLineNumber,column:e[0].selectionStartColumn})}this._currentResource=l,this.notifyTabChanged(),this._currentOpenType=null,this.notifyBodyChanged();const u=this.reporterService.time(p.REPORT_NAME.EDITOR_REACTIVE);n=new a.Deferred,this.resourceStatus.set(l,n.promise);const d=setTimeout((()=>{this.notifyTabLoading(l)}),60);return await this.displayResourceComponent(l,t),clearTimeout(d),n.resolve(),u.timeEnd(l.uri.toString()),this.setContextKeys(),this.eventBus.fire(new c.EditorGroupOpenEvent({group:this,resource:l})),t&&t.disableNavigate||t&&t.backend||this.locateInFileTree(e),this.eventBus.fire(new c.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:i,oldResource:s})),{group:this,resource:l}}}catch(t){return a.getDebugLogger().error(t),n&&n.reject(),m.isEditorError(t,m.EditorTabChangedError)||this.messageService.error(a.formatLocalize("editor.failToOpen",e.displayName,t.message),[],!0),!1}}locateInFileTree(e){this.explorerAutoRevealConfig&&this.commands.tryExecuteCommand(d.FILE_COMMANDS.LOCATION.id,e)}async openUris(e){for(const t of e)await this.open(t)}async getDocumentModelRef(e){return this.holdDocumentModelRefs.has(e.toString())||this.holdDocumentModelRefs.set(e.toString(),await this.documentModelManager.createModelReference(e,"editor-group-"+this.name)),this.holdDocumentModelRefs.get(e.toString())}disposeDocumentRef(e){if("diff"===e.scheme){const t=e.getParsedQuery();this.doDisposeDocRef(new a.URI(t.original)),this.doDisposeDocRef(new a.URI(t.modified))}else this.doDisposeDocRef(e)}doDisposeDocRef(e){this.holdDocumentModelRefs.has(e.toString())&&(this.holdDocumentModelRefs.get(e.toString()).dispose(),this.holdDocumentModelRefs.delete(e.toString()))}async displayResourceComponent(e,t={}){var i,r;const o=e,s=await this.resolveOpenType(e,t);if(s){const{activeOpenType:l,openTypes:u}=s;if(this.availableOpenTypes=u,t.preserveFocus&&(t.focus=!1),"code"===l.type){if(await this.codeEditorReady.promise,await this.codeEditor.open(await this.getDocumentModelRef(e.uri),t.range?new n.Range(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn):void 0),setTimeout((()=>{t.scrollTop&&this.codeEditor.monacoEditor.setScrollTop(t.scrollTop),t.scrollLeft&&this.codeEditor.monacoEditor.setScrollLeft(t.scrollLeft)}),0),t.focus){null===(i=this._domNode)||void 0===i||i.focus();const t=this.eventBus.on(c.CodeEditorDidVisibleEvent,(i=>{var r;if(i.payload.groupName===this.name&&"code"===i.payload.type){if(t.dispose(),this.disposed)return;if(this!==this.workbenchEditorService.currentEditorGroup)return;if(this.currentEditor===this.codeEditor&&(null===(r=this.codeEditor.currentUri)||void 0===r?void 0:r.isEqual(e.uri)))try{this.codeEditor.focus()}catch(i){}}}))}this.codeEditor.currentDocumentModel.dirty&&this.pinPreviewed(e.uri)}else if("diff"===l.type){const i=e;await this.diffEditorReady.promise;const[n,o]=await Promise.all([this.getDocumentModelRef(i.metadata.original),this.getDocumentModelRef(i.metadata.modified)]);if(await this.diffEditor.compare(n,o,t,e.uri),t.focus){null===(r=this._domNode)||void 0===r||r.focus();const e=this.eventBus.on(c.CodeEditorDidVisibleEvent,(t=>{if(t.payload.groupName===this.name&&"diff"===t.payload.type){if(e.dispose(),this.disposed)return;if(this!==this.workbenchEditorService.currentEditorGroup)return;if(this.currentEditor===this.diffEditor.modifiedEditor)try{this.diffEditor.focus()}catch(t){}}}))}}else{if("component"!==l.type)return;{const t=this.editorComponentRegistry.getEditorComponent(l.componentId),i=this.editorComponentRegistry.getEditorInitialProps(l.componentId);if(!t)throw new Error("Cannot find Editor Component with id: "+l.componentId);if(this.activateComponentsProps.set(t,i),t.renderMode===c.EditorComponentRenderMode.ONE_PER_RESOURCE){const i=this.activeComponents.get(t)||[];-1===i.findIndex((t=>t.uri.toString()===e.uri.toString()))&&i.push(e),this.activeComponents.set(t,i)}else if(t.renderMode===c.EditorComponentRenderMode.ONE_PER_GROUP)this.activeComponents.set(t,[e]);else if(t.renderMode===c.EditorComponentRenderMode.ONE_PER_WORKBENCH){const i=[];this.workbenchEditorService.editorGroups.forEach((t=>{if(t===this)return;const r=t.resources.find((t=>t.uri.isEqual(e.uri)));r&&i.push(t.close(r.uri))})),await Promise.all(i).catch(a.getDebugLogger().error),this.activeComponents.set(t,[e])}this._onCurrentEditorCursorChange.fire({position:null,selectionLength:0})}}if(o!==this.currentResource)throw new m.EditorTabChangedError;this._currentOpenType=l,this.notifyBodyChanged(),(this._codeEditorPendingLayout&&"code"===l.type||this._diffEditorPendingLayout&&"diff"===l.type)&&this.doLayoutEditors(),this.cachedResourcesActiveOpenTypes.set(e.uri.toString(),l)}}async resolveOpenType(e,t){const i=this.cachedResourcesOpenTypes.get(e.uri.toString())||await this.editorComponentRegistry.resolveEditorComponent(e),r=function(e,t,i){if(i)return e.find((e=>_(e,i)))||e[0];if(t)return e.find((e=>_(e,t)))||e[0];return e[0]}(i,this.cachedResourcesActiveOpenTypes.get(e.uri.toString()),t.forceOpenType);return this.cachedResourcesOpenTypes.set(e.uri.toString(),i),{activeOpenType:r,openTypes:i}}async close(e,{treatAsNotCurrent:t,force:i}={}){const r=this.resources.findIndex((t=>t.uri.toString()===e.toString()));if(-1!==r){const n=this.resources[r];if(!i&&!await this.shouldClose(n))return;if(this.resources.splice(r,1),this.eventBus.fire(new c.EditorGroupCloseEvent({group:this,resource:n})),this.previewURI&&this.previewURI.isEqual(e)&&(this.previewURI=null),n!==this.currentResource||t)this.notifyTabChanged();else{let e;for(;this.resourceOpenHistory.length>0;){if(-1!==this.resources.findIndex((e=>e.uri===this.resourceOpenHistory[this.resourceOpenHistory.length-1]))){e=this.resourceOpenHistory.pop();break}this.resourceOpenHistory.pop()}if(e)this.open(e);else{let e=r;for(;e>0&&!this.resources[e];)e--;this.resources[e]?this.open(this.resources[e].uri):this.backToEmpty()}}for(const e of this.activeComponents.values()){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}this.disposeDocumentRef(e)}0===this.resources.length&&(this.grid.parent&&this.dispose(),this.availableOpenTypes=[])}async shouldClose(e){const t=this.workbenchEditorService.editorGroups.map((e=>e.resources));if(await this.resourceService.shouldCloseResource(e,t)){let i=0;for(const r of t)for(const t of r)if(t.uri.isEqual(e.uri)&&(i++,i>=2))break;return i<=1&&this.resourceService.disposeResource(e),!0}return!1}backToEmpty(){const e=this._currentOpenType,t=this._currentResource;this._currentResource=null,this._currentOpenType=null,this.notifyTabChanged(),this.notifyBodyChanged(),this.eventBus.fire(new c.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:e,oldResource:t}))}async closeAll(){for(const e of this.resources)if(!await this.shouldClose(e))return;this.resources.splice(0,this.resources.length).forEach((e=>{this.clearResourceOnClose(e)})),this.activeComponents.clear(),this.workbenchEditorService.editorGroups.length>1&&this.dispose(),this.previewURI=null,this.backToEmpty()}async closeSaved(){const e=this.resources.filter((e=>{const t=this.resourceService.getResourceDecoration(e.uri);if(!t||!t.dirty)return!0}));for(const t of e)if(!await this.shouldClose(t))return;for(const t of e)await this.close(t.uri)}async closeToRight(e){const t=this.resources.findIndex((t=>t.uri.toString()===e.toString()));if(-1!==t){const i=this.resources.slice(t+1);for(const e of i)if(!await this.shouldClose(e))return;this.resources.splice(t+1);for(const e of i)this.clearResourceOnClose(e);this.open(e)}}clearResourceOnClose(e){this.eventBus.fire(new c.EditorGroupCloseEvent({group:this,resource:e}));for(const t of this.activeComponents.values()){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}async closeOthers(e){const t=this.resources.findIndex((t=>t.uri.toString()===e.toString()));if(-1!==t){const i=this.resources.filter(((e,i)=>i!==t));for(const e of i)if(!await this.shouldClose(e))return;this.resources=[this.resources[t]];for(const e of i)this.clearResourceOnClose(e);await this.open(e)}}get currentResource(){return this._currentResource}get currentOpenType(){return this._currentOpenType}async changeOpenType(e){if(!this.currentResource)return;if(_(e,this.currentOpenType))return;const t=this.currentOpenType;await this.displayResourceComponent(this.currentResource,{forceOpenType:e}),this.eventBus.fire(new c.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:t,oldResource:this.currentResource}))}async dropUri(e,t,i,r){if(t!==c.DragOverPosition.CENTER)await this.split(o.getSplitActionFromDragDrop(t),e,{preview:!1,focus:!0});else if(r){const t=this.resources.indexOf(r);if(-1===t)await this.open(e,{preview:!1,focus:!0});else{const i=this.resources.findIndex((t=>t.uri.toString()===e.toString()));if(-1===i)await this.open(e,{index:t,preview:!1});else{const r=this.resources[i];i>t?(this.resources.splice(i,1),this.resources.splice(t,0,r),await this.open(e,{preview:!1})):ie.dispose())),this.eventBus.fire(new c.EditorGroupDisposeEvent({group:this}))}getState(){const e=e=>!(!e.supportsRevive||e.deleted),t=this.resources.filter(e).map((e=>e.uri.toString()));return{uris:t,current:this.currentResource&&e(this.currentResource)?this.currentResource.uri.toString():void 0,previewIndex:this.previewURI?t.indexOf(this.previewURI.toString()):-1}}isCodeEditorMode(){return this.currentOpenType&&"code"===this.currentOpenType.type}isDiffEditorMode(){return this.currentOpenType&&"diff"===this.currentOpenType.type}isComponentMode(){return this.currentOpenType&&"component"===this.currentOpenType.type}async restoreState(e){this.previewURI=e.uris[e.previewIndex]?null:new a.URI(e.uris[e.previewIndex]);for(const t of e.uris)await this.doOpen(new a.URI(t),{disableNavigate:!0,backend:!0,preview:!1,deletedPolicy:"skip"});let t;e.current?t=new a.URI(e.current):e.uris.length>0&&(t=new a.URI(e.uris[e.uris.length-1])),t&&(await this.open(t,{deletedPolicy:"skip"})||this.resources[0]&&await this.open(this.resources[0].uri))}async saveAll(e,t){for(const i of this.resources)(e||i.uri.scheme!==p.Schemas.untitled)&&await this.saveResource(i,t)}async saveResource(e,t=o.SaveReason.Manual){if(await this.saveByOpenType(e,t))return;const i=this.documentModelManager.getModelReference(e.uri);i&&(i.instance.dirty&&await i.instance.save(void 0,t),i.dispose())}async saveByOpenType(e,t){const i=this.cachedResourcesActiveOpenTypes.get(e.uri.toString());if(i&&i.saveResource)try{return await i.saveResource(e,t),!0}catch(e){this.logger.error(e)}return!1}async saveCurrent(e=o.SaveReason.Manual){const t=this.currentResource;if(t&&!await this.saveByOpenType(t,e))return this.currentEditor?this.currentEditor.save():void 0}hasDirty(){for(const e of this.resources){const t=this.documentModelManager.getModelReference(e.uri);if(t){const e=t.instance.dirty;if(t.dispose(),e)return!0}}return!1}componentUndo(){const e=this.currentOpenType;(null==e?void 0:e.undo)&&e.undo(this.currentResource)}componentRedo(){const e=this.currentOpenType;(null==e?void 0:e.redo)&&e.redo(this.currentResource)}toJSON(){return{name:this.name}}};function _(e,t){return e.type===t.type&&("component"!==e.type||e.componentId===t.componentId)}r.__decorate([s.Autowired(),r.__metadata("design:type",o.EditorCollectionService)],y.prototype,"collectionService",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",o.ResourceService)],y.prototype,"resourceService",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",c.EditorComponentRegistry)],y.prototype,"editorComponentRegistry",void 0),r.__decorate([s.Autowired(o.WorkbenchEditorService),r.__metadata("design:type",v)],y.prototype,"workbenchEditorService",void 0),r.__decorate([s.Autowired(h.IEditorDocumentModelService),r.__metadata("design:type",Object)],y.prototype,"documentModelManager",void 0),r.__decorate([s.Autowired(a.CommandService),r.__metadata("design:type",Object)],y.prototype,"commands",void 0),r.__decorate([s.Autowired(d.PreferenceService),r.__metadata("design:type",Object)],y.prototype,"preferenceService",void 0),r.__decorate([s.Autowired(d.RecentFilesManager),r.__metadata("design:type",d.RecentFilesManager)],y.prototype,"recentFilesManager",void 0),r.__decorate([s.Autowired(g.IMessageService),r.__metadata("design:type",Object)],y.prototype,"messageService",void 0),r.__decorate([s.Autowired(a.IReporterService),r.__metadata("design:type",Object)],y.prototype,"reporterService",void 0),r.__decorate([s.Autowired(d.AppConfig),r.__metadata("design:type",Object)],y.prototype,"config",void 0),r.__decorate([s.Autowired(d.IOpenerService),r.__metadata("design:type",Object)],y.prototype,"openerService",void 0),r.__decorate([s.Autowired(a.ILogger),r.__metadata("design:type",Object)],y.prototype,"logger",void 0),r.__decorate([a.OnEvent(o.ResourceDecorationChangeEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[o.ResourceDecorationChangeEvent]),r.__metadata("design:returntype",void 0)],y.prototype,"onResourceDecorationChangeEvent",null),r.__decorate([a.OnEvent(c.ResourceOpenTypeChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.ResourceOpenTypeChangedEvent]),r.__metadata("design:returntype",void 0)],y.prototype,"oResourceOpenTypeChangedEvent",null),y=r.__decorate([s.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[String])],y),t.EditorGroup=y},97307:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(75911);t.IDocPersistentCacheProvider=Symbol("IDocPersistentCacheProvider"),t.isDocContentCache=function(e){return e.hasOwnProperty("content")},t.isDocChangesCache=function(e){return e.hasOwnProperty("changeMatrix")},t.parseCacheValueFrom=function(e){return[e.text,e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn]},t.parseRangeFrom=function(e){const[t,i,n,o,s]=e;return r.Range.lift({startLineNumber:i,startColumn:n,endLineNumber:o,endColumn:s})}},67628:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);!function(e){e[e.CODE=0]="CODE",e[e.ORIGINAL_DIFF=1]="ORIGINAL_DIFF",e[e.MODIFIED_DIFF=2]="MODIFIED_DIFF"}(t.EditorType||(t.EditorType={}));let s=class{};s=r.__decorate([n.Injectable()],s),t.EditorCollectionService=s;class a extends o.BasicEvent{}t.CollectionEditorsUpdateEvent=a;class c extends o.BasicEvent{}t.DidChangeEditorGroupUriEvent=c;class l extends o.BasicEvent{}t.DidApplyEditorDecorationFromProvider=l;t.WorkbenchEditorService=class{},function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(t.OverviewRulerLane||(t.OverviewRulerLane={})),function(e){e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e.CENTER="center"}(t.DragOverPosition||(t.DragOverPosition={})),function(e){e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Left=3]="Left",e[e.Right=4]="Right"}(t.EditorGroupSplitAction||(t.EditorGroupSplitAction={})),function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(t.Direction||(t.Direction={})),function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",e[e.FocusOut=3]="FocusOut"}(t.SaveReason||(t.SaveReason={})),function(e){e.OFF="off",e.AFTER_DELAY="afterDelay",e.EDITOR_FOCUS_CHANGE="editorFocusChange",e.WINDOWS_LOST_FOCUS="windowLostFocus"}(t.AUTO_SAVE_MODE||(t.AUTO_SAVE_MODE={})),t.getSimpleEditorOptions=function(){return{wordWrap:"on",overviewRulerLanes:0,glyphMargin:!1,lineNumbers:"off",folding:!1,selectOnLineNumbers:!1,hideCursorInOverviewRuler:!0,selectionHighlight:!1,scrollbar:{horizontal:"hidden"},lineDecorationsWidth:0,overviewRulerBorder:!1,scrollBeyondLastLine:!1,renderLineHighlight:"none",fixedOverflowWidgets:!0,acceptSuggestionOnEnter:"smart",minimap:{enabled:!1}}}},36579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(97307),t),r.__exportStar(i(67628),t),r.__exportStar(i(57377),t),r.__exportStar(i(8427),t),r.__exportStar(i(62223),t)},8427:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(94038),n=i(65686);function o(e){return 1===e?n.MarkerSeverity.Error:2===e?n.MarkerSeverity.Warning:3===e?n.MarkerSeverity.Info:n.MarkerSeverity.Hint}function s(e){if(e)return e.map((e=>a(e)))}function a(e){return{resource:r.URI.parse(e.location.uri),startLineNumber:e.location.range.start.line+1,startColumn:e.location.range.start.character+1,endLineNumber:e.location.range.end.line+1,endColumn:e.location.range.end.character+1,message:e.message}}function c(e){return{code:"number"==typeof e.code?e.code.toString():e.code,severity:o(e.severity),message:e.message,source:e.source,startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,relatedInformation:s(e.relatedInformation),tags:e.tags}}t.ILanguageService=Symbol("ILanguageService"),function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint"}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(t.DiagnosticTag||(t.DiagnosticTag={})),t.asSeverity=o,t.asRelatedInformations=s,t.asRelatedInformation=a,t.asDiagnostics=function(e){if(e)return e.map((e=>c(e)))},t.asDiagnostic=c},57377:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.ResourceService=class{};class n extends r.BasicEvent{}t.ResourceNeedUpdateEvent=n;class o extends r.BasicEvent{}t.ResourceDidUpdateEvent=o;class s extends r.BasicEvent{}t.ResourceRemoveEvent=s;class a extends r.BasicEvent{}t.ResourceDecorationChangeEvent=a;class c extends r.BasicEvent{}t.ResourceDecorationNeedChangeEvent=c,t.DIFF_SCHEME="diff",t.isDiffResource=function(e){return e.uri.scheme===t.DIFF_SCHEME}},62223:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(67628);t.getSplitActionFromDragDrop=function(e){return{[r.DragOverPosition.LEFT]:r.EditorGroupSplitAction.Left,[r.DragOverPosition.RIGHT]:r.EditorGroupSplitAction.Right,[r.DragOverPosition.BOTTOM]:r.EditorGroupSplitAction.Bottom,[r.DragOverPosition.TOP]:r.EditorGroupSplitAction.Top}[e]}},84859:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(36579),t)},37065:e=>{"use strict";e.exports=JSON.parse('{"u2":"@ali/ide-editor"}')},90671:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(77702),o=i(19745),s=i(34865),a=i(24076),c=i(91606),l=i(63779),u=i(4684);let d=class extends s.BrowserModule{constructor(){super(...arguments),this.providers=[{token:n.IExtensionStorageService,useClass:a.ExtensionStorageService},{token:n.IExtensionStoragePathServer,useClass:c.ExtensionStoragePathServer},{token:n.IExtensionStorageServer,useClass:l.ExtensionStorageServer},h]}};d=r.__decorate([s.EffectDomain(u.name)],d),t.ExtensionStorageModule=d;let h=class{onReconnect(){this.extensionStorageService.reConnectInit()}};r.__decorate([o.Autowired(n.IExtensionStorageService),r.__metadata("design:type",Object)],h.prototype,"extensionStorageService",void 0),h=r.__decorate([s.Domain(s.ClientAppContribution)],h),t.ExtensionStorageContribution=h,r.__exportStar(i(24076),t)},91606:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(4648),o=i(19745),s=i(65686),a=i(5778),c=i(36002),l=i(63558),u=i(35463);let d=class{constructor(){this.windowsDataFolders=[s.StoragePaths.WINDOWS_APP_DATA_DIR,s.StoragePaths.WINDOWS_ROAMING_DIR],this.deferredWorkspaceStoragePath=new s.Deferred,this.deferredStoragePath=new s.Deferred,this.storagePathInitialized=!1}async provideHostLogPath(){const e=await this.getLogsDirPath();if(!e)throw new Error("Unable to get parent log directory");const t=e;return await this.fileSystem.createFolder(s.URI.file(t).toString()),new s.URI(t)}async provideHostStoragePath(e,t,i){const r=await this.getWorkspaceStorageDirPath(i);if(!r)throw new Error("Unable to get parent storage directory");if(!e)return this.storagePathInitialized||(this.deferredWorkspaceStoragePath.resolve(void 0),this.deferredStoragePath.resolve(void 0),this.storagePathInitialized=!0),this.cachedStoragePath=void 0;await this.fileSystem.access(s.URI.file(r).toString())||await this.fileSystem.createFolder(s.URI.file(r).toString());const n=await this.buildWorkspaceId(e,t,i),o=new u.Path(r).join(n).toString();await this.fileSystem.access(s.URI.file(o).toString())||await this.fileSystem.createFolder(s.URI.file(o).toString());const a=new s.URI(o);return this.storagePathInitialized||(this.deferredWorkspaceStoragePath.resolve(a.path.toString()),this.deferredStoragePath.resolve(r),this.storagePathInitialized=!0),this.cachedStoragePath=a}async getLastWorkspaceStoragePath(){var e;return this.storagePathInitialized?null===(e=this.cachedStoragePath)||void 0===e?void 0:e.path.toString():this.deferredWorkspaceStoragePath.promise}async getLastStoragePath(){return this.deferredStoragePath.promise}async buildWorkspaceId(e,t,i){const r=await this.getUserHomeDir();if(new s.URI(r).resolve(i||a.WORKSPACE_USER_STORAGE_FOLDER_NAME).resolve(`${a.UNTITLED_WORKSPACE}.${a.KAITIAN_MULTI_WORKSPACE_EXT}`).withScheme("file").toString()===e.uri){const e=t.map((e=>e.uri)).sort().join(",");return n.createHash("md5").update(e).digest("hex")}{const t=new s.URI(e.uri);let i=t.displayName;return e&&e.isDirectory||!i.endsWith(`.${a.KAITIAN_MULTI_WORKSPACE_EXT}`)||(i=i.slice(0,i.lastIndexOf("."))),n.createHash("md5").update(t.toString()).digest("hex")}}async getLogsDirPath(){const e=await this.loggerManager.getLogFolder();return new u.Path(e).join(s.StoragePaths.EXTENSIONS_LOGS_DIR).toString()}async getWorkspaceStorageDirPath(e){const t=await this.getWorkspaceDataDirPath(e);return new u.Path(t).join(s.StoragePaths.EXTENSIONS_WORKSPACE_STORAGE_DIR).toString()}async getWorkspaceDataDirPath(e){const t=await this.getUserHomeDir(),i=e;return new u.Path(t).join(...s.isWindows?this.windowsDataFolders:[""],i).toString()}async getUserHomeDir(){const e=await this.fileSystem.getCurrentUserHome();if(!e)throw new Error("Unable to get user home directory");return await this.fileSystem.getFsPath(e.uri)}};r.__decorate([o.Autowired(c.IFileServiceClient),r.__metadata("design:type",Object)],d.prototype,"fileSystem",void 0),r.__decorate([o.Autowired(l.ILoggerManagerClient),r.__metadata("design:type",Object)],d.prototype,"loggerManager",void 0),d=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[])],d),t.ExtensionStoragePathServer=d},63779:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(65686),a=i(36002),c=i(77702),l=i(35463);let u=r=class{constructor(){this.deferredWorkspaceDataDirPath=new s.Deferred,this.storageThrottler=new s.Throttler,this.storageTasks={}}async init(e,t,i){return this.storageDelayer=new s.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),await this.setupDirectories(e,t,i||c.DEFAULT_EXTENSION_STORAGE_DIR_NAME)}async setupDirectories(e,t,i){const r=await this.extensionStoragePathsServer.getWorkspaceDataDirPath(i);await this.fileSystem.createFolder(s.URI.file(r).toString()),this.workspaceDataDirPath=r,this.globalDataPath=new l.Path(this.workspaceDataDirPath).join(s.StoragePaths.EXTENSIONS_GLOBAL_STORAGE_DIR).toString(),await this.fileSystem.createFolder(s.URI.file(this.globalDataPath).toString()),this.deferredWorkspaceDataDirPath.resolve(this.workspaceDataDirPath);const n=await this.extensionStoragePathsServer.provideHostLogPath(),o=await this.extensionStoragePathsServer.provideHostStoragePath(e,t,i);return{logUri:n.codeUri||void 0,storageUri:null==o?void 0:o.codeUri,globalStorageUri:s.Uri.parse(this.globalDataPath)}}async resolveStorageTask(e){const t=Object.keys(e);for(const i of t){const t=await this.readFromFile(i);for(const{key:r,value:n}of e[i])void 0===n||n==={}?delete t[r]:t[r]=n;await this.writeToFile(i,t)}}doSet(){const e=Object.assign({},this.storageTasks);return this.storageTasks={},this.resolveStorageTask(e)}async set(e,t,i){const r=await this.getDataPath(i);if(!r)throw new Error("Cannot save data: no opened workspace");return this.storageTasks[r]||(this.storageTasks[r]=[]),this.storageTasks[r].push({key:e,value:t}),this.storageDelayer.trigger((()=>this.storageThrottler.queue(this.doSet.bind(this))))}async get(e,t){const i=await this.getDataPath(t);if(!i)return{};return(await this.readFromFile(i))[e]}async getAll(e){const t=await this.getDataPath(e);if(!t)return{};return await this.readFromFile(t)}async getDataPath(e){if(void 0===this.workspaceDataDirPath&&await this.deferredWorkspaceDataDirPath.promise,e)return new l.Path(this.globalDataPath).join("global-state.json").toString();{const e=await this.extensionStoragePathsServer.getLastWorkspaceStoragePath();return e?new l.Path(e).join("workspace-state.json").toString():void 0}}async readFromFile(e){const t=s.URI.file(e);if(!await this.fileSystem.access(t.toString()))return{};try{const{content:e}=await this.fileSystem.resolveContent(t.toString());return JSON.parse(e)}catch(e){return this.logger.error('Failed to parse data from "',t.toString(),'". Reason:',e),{}}}async writeToFile(e,t){const i=s.URI.file(e);await this.fileSystem.access(i.parent.toString())||await this.fileSystem.createFolder(i.parent.toString());const r=JSON.stringify(t);let n=await this.fileSystem.getFileStat(i.toString());n||(n=await this.fileSystem.createFile(i.toString())),await this.fileSystem.setContent(n,r)}};u.DEFAULT_FLUSH_DELAY=100,n.__decorate([o.Autowired(c.IExtensionStoragePathServer),n.__metadata("design:type",Object)],u.prototype,"extensionStoragePathsServer",void 0),n.__decorate([o.Autowired(a.IFileServiceClient),n.__metadata("design:type",Object)],u.prototype,"fileSystem",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),u=r=n.__decorate([o.Injectable()],u),t.ExtensionStorageServer=u},24076:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(77702),s=i(5778),a=i(34865);let c=class{constructor(){this._init=this.init()}get whenReady(){return this._init}get extensionStoragePath(){return this._extensionStoragePath}async init(){const e=await this.workspaceService.roots,t=this.workspaceService.workspace,i=this.appConfig.extensionStorageDirName||o.DEFAULT_EXTENSION_STORAGE_DIR_NAME;return this._extensionStoragePath=await this.extensionStorageServer.init(t,e,i),this._extensionStoragePath}set(e,t,i){return this.extensionStorageServer.set(e,t,i)}get(e,t){return this.extensionStorageServer.get(e,t)}getAll(e=!1){return this.extensionStorageServer.getAll(e)}async reConnectInit(){const e=await this.workspaceService.roots,t=this.workspaceService.workspace,i=this.appConfig.extensionStorageDirName||o.DEFAULT_EXTENSION_STORAGE_DIR_NAME;return this._extensionStoragePath=await this.extensionStorageServer.init(t,e,i),this._extensionStoragePath}};r.__decorate([n.Autowired(o.IExtensionStorageServer),r.__metadata("design:type",Object)],c.prototype,"extensionStorageServer",void 0),r.__decorate([n.Autowired(s.IWorkspaceService),r.__metadata("design:type",Object)],c.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(a.AppConfig),r.__metadata("design:type",Object)],c.prototype,"appConfig",void 0),c=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],c),t.ExtensionStorageService=c},77702:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(74048),t),r.__exportStar(i(9112),t)},74048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionStoragePathServer=Symbol("IExtensionStoragePathServer"),t.DEFAULT_EXTENSION_STORAGE_DIR_NAME=".kaitian"},9112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionStorageServer=Symbol("ExtensionStorageServer"),t.IExtensionStorageService=Symbol("ExtensionStorageService")},39154:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(77702),t)},4684:e=>{"use strict";e.exports=JSON.parse('{"name":"@ali/ide-extension-storage","version":"2.5.5","files":["lib"],"main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"start":"run-p start:client","start:client":"webpack-dev-server --config ./webpack.config.js"},"repository":{"type":"git","url":"git@code.alipay.com:kaitian/ide-framework.git"},"publishConfig":{"registry":"http://registry.npm.alibaba-inc.com"},"dependencies":{"@ali/ide-core-common":"2.5.5","@ali/ide-core-node":"2.5.5","@ali/ide-file-service":"2.5.5","@ali/ide-logs":"2.5.5","@ali/ide-workspace":"2.5.5"},"devDependencies":{"@ali/ide-core-browser":"2.5.5","@ali/ide-dev-tool":"^1.1.0","npm-run-all":"^4.1.5","ts-node":"8.0.2","webpack-dev-server":"^3.3.1"},"gitHead":"5dad2ca7b3ea2e1781caefb2552eb1596f146193"}')},37266:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(23975),s=i(83977),a=i(19745);t.BinaryEditorComponent=e=>{const t=e.resource.uri.codeUri.fsPath,i=n.useInjectable(a.INJECTOR_TOKEN);return r.createElement("div",{className:o.external},n.localize("editor.cannotOpenBinary"),n.isElectronRenderer()?r.createElement("a",{onClick:()=>i.get(s.IElectronMainUIService).openPath(t)},n.localize("editor.openExternal")):null)}},10662:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(67201),s=i(34865),a=i(36002),c=i(2568),l=i(66952);let u=class extends l.BaseFileSystemEditorDocumentProvider{constructor(){super()}handlesUri(e){return e.scheme===o.FILE_SCHEME?20:-1}handlesScheme(){return!1}async provideEncoding(e){if(e.scheme===o.FILE_SCHEME){const t=this.preferenceService.get("files.encoding",void 0,e.toString(),s.getLanguageIdFromMonaco(e));if(t)return t}return super.provideEncoding(e)}async saveDocumentModel(e,t,i,r,n,s=!1,a="\n"){const l=c(i);return t.length>o.FILE_SAVE_BY_CHANGE_THRESHOLD?this.fileSchemeDocClient.saveByChange(e.toString(),{baseMd5:l,changes:r,eol:a},n,s):await this.fileSchemeDocClient.saveByContent(e.toString(),{baseMd5:l,content:t},n,s)}async provideEditorDocumentModelContentMd5(e,t){return this.fileSchemeDocClient.getMd5(e.toString(),t)}};r.__decorate([n.Autowired(a.IFileServiceClient),r.__metadata("design:type",Object)],u.prototype,"fileServiceClient",void 0),r.__decorate([n.Autowired(o.IFileSchemeDocClient),r.__metadata("design:type",Object)],u.prototype,"fileSchemeDocClient",void 0),r.__decorate([n.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),u=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],u),t.FileSchemeDocumentProvider=u;let d=class{constructor(){this._onDidChangeContent=new s.Emitter,this.onDidChangeContent=this._onDidChangeContent.event,this.listeners={}}isReadonly(e){return!0}handlesScheme(e){return"vscode"===e}async provideEditorDocumentModelContent(e,t){const i=this.getSchemaContent(e);return s.replaceLocalizePlaceholder(i)}getSchemaContent(e){const t=e.toString(),i=this.jsonRegistry.getSchemaContributions().schemas[t];if(i){const r=JSON.stringify(i);if(!this.listeners[t]){const i=s.Disposable.create((()=>{this.jsonRegistry.onDidChangeSchema((i=>{i===t&&this._onDidChangeContent.fire(e)}))}));this.listeners[t]=i}return r}return"{}"}onDidDisposeModel(e){e.toString()&&(this.listeners[e.toString()].dispose(),delete this.listeners[e.toString()])}};r.__decorate([n.Autowired(s.ISchemaStore),r.__metadata("design:type",Object)],d.prototype,"schemaStore",void 0),r.__decorate([n.Autowired(s.ISchemaRegistry),r.__metadata("design:type",Object)],d.prototype,"jsonRegistry",void 0),d=r.__decorate([n.Injectable()],d),t.VscodeSchemeDocumentProvider=d},49188:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(67201);let s=class{saveByChange(e,t,i,r){return this.fileDocBackendService.$saveByChange(e,t,i,r)}saveByContent(e,t,i,r){return this.fileDocBackendService.$saveByContent(e,t,i,r)}getMd5(e,t){return this.fileDocBackendService.$getMd5(e,t)}};r.__decorate([n.Autowired(o.FileSchemeDocNodeServicePath),r.__metadata("design:type",Object)],s.prototype,"fileDocBackendService",void 0),s=r.__decorate([n.Injectable()],s),t.FileSchemeDocClientService=s},72701:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(34865),o=i(19745),s=i(65777),a=i(58407),c=i(61583),l=i(10282),u=i(37266),d=i(67201),h=i(10662),p=i(82931),f=i(75704),g="video-preview",m="image-preview",v="external-file",y="large-file-prevent";let _=class{registerResource(e){e.registerResourceProvider(this.untitledResourceProvider)}registerEditorDocumentModelContentProvider(e){e.registerEditorDocumentModelContentProvider(this.fileSchemeDocumentProvider),e.registerEditorDocumentModelContentProvider(this.vscodeSchemeDocumentProvider),e.registerEditorDocumentModelContentProvider(this.untitledSchemeDocumentProvider)}};r.__decorate([o.Autowired(),r.__metadata("design:type",h.FileSchemeDocumentProvider)],_.prototype,"fileSchemeDocumentProvider",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",h.VscodeSchemeDocumentProvider)],_.prototype,"vscodeSchemeDocumentProvider",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",p.UntitledSchemeResourceProvider)],_.prototype,"untitledResourceProvider",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",p.UntitledSchemeDocumentProvider)],_.prototype,"untitledSchemeDocumentProvider",void 0),_=r.__decorate([n.Domain(a.BrowserEditorContribution)],_),t.FileSystemEditorResourceContribution=_;let b=class{constructor(){this.cachedFileType=new n.LRUMap(200,100),this.fileServiceClient.onFilesChanged((e=>{e.forEach((e=>{this.cachedFileType.delete(e.uri.toString())}))}))}registerEditorComponent(e){e.registerEditorComponent({component:l.ImagePreview,uid:m,scheme:d.FILE_SCHEME}),e.registerEditorComponent({component:l.VideoPreview,uid:g,scheme:d.FILE_SCHEME}),e.registerEditorComponent({component:u.BinaryEditorComponent,uid:v,scheme:d.FILE_SCHEME}),e.registerEditorComponent({component:f.LargeFilePrevent,uid:y,scheme:d.FILE_SCHEME}),e.registerEditorComponentResolver((e=>e===d.FILE_SCHEME||this.fileServiceClient.handlesScheme(e)?10:-1),((e,t)=>{0===t.length&&t.push({type:"component",componentId:v})})),e.registerEditorComponentResolver((e=>e===d.FILE_SCHEME||this.fileServiceClient.handlesScheme(e)?10:-1),(async(e,t)=>{const i=await this.getFileType(e.uri.toString());if("image"===i&&t.push({type:"component",componentId:m}),"video"===i&&t.push({type:"component",componentId:g}),"text"===i){const{metadata:i,uri:r}=e,o=await this.fileServiceClient.getFileStat(r.toString()),s=this.preference.get("editor.largeFile")||2e4;o&&(o.size||0)>s&&!(i||{}).noPrevent?t.push({type:"component",componentId:y}):t.push({type:"code",title:n.localize("editorOpenType.code")})}})),e.registerEditorComponentResolver("debug",((e,t)=>{0===t.length&&t.push({type:"code",title:n.localize("editorOpenType.code")})})),e.registerEditorComponentResolver(n.Schemas.untitled,((e,t)=>{0===t.length&&t.push({type:"code"})}))}async getFileType(e){return this.cachedFileType.has(e)||(s.getLanguageIdFromMonaco(new n.URI(e))?this.cachedFileType.set(e,"text"):this.cachedFileType.set(e,await this.getRealFileType(e))),this.cachedFileType.get(e)}async getRealFileType(e){try{return await this.fileServiceClient.getFileType(e)}catch(e){return"text"}}};r.__decorate([o.Autowired(c.IFileServiceClient),r.__metadata("design:type",Object)],b.prototype,"fileServiceClient",void 0),r.__decorate([o.Autowired(n.PreferenceService),r.__metadata("design:type",Object)],b.prototype,"preference",void 0),b=r.__decorate([n.Domain(a.BrowserEditorContribution),r.__metadata("design:paramtypes",[])],b),t.FileSystemEditorComponentContribution=b},56914:(e,t,i)=>{"use strict";const r=i(70655),n=i(19745),o=i(34865),s=i(72701),a=i(67201),c=i(49188);let l=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[s.FileSystemEditorResourceContribution,s.FileSystemEditorComponentContribution,{token:a.IFileSchemeDocClient,useClass:c.FileSchemeDocClientService}],this.backServices=[{servicePath:a.FileSchemeDocNodeServicePath}]}};l=r.__decorate([n.Injectable()],l),t.w=l},75704:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(34865),o=i(84859),s=i(75871),a=i(23975);t.LargeFilePrevent=()=>{const e=n.useInjectable(o.WorkbenchEditorService),t=n.useInjectable(n.IEventBus);return r.createElement("div",{className:a.font},n.localize("editor.largeFile.prevent"),r.createElement("a",{onClick:()=>(()=>{const i=e.currentResource;i&&(i.metadata={noPrevent:!0},t.fire(new s.ResourceOpenTypeChangedEvent(i.uri)))})()},n.localize("editor.largeFile.prevent.stillOpen")))}},10282:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(23975),o=i(34865),s=i(81776),a=e=>{const t=o.useInjectable(s.StaticResourceService);return{src:r.useMemo((()=>t.resolveStaticResource(e.uri).toString()),[e])}};t.VideoPreview=e=>{const{src:t}=a(e.resource);return r.createElement("div",{className:n.kt_video_preview},r.createElement("video",{autoPlay:!0,controls:!0,className:n.kt_video,src:t}))},t.ImagePreview=e=>{const t=r.useRef(),i=r.useRef(),{src:s}=a(e.resource);return r.useEffect((()=>{const e=new o.Disposable;if(t.current){t.current.src=s;const r=t.current;t.current.onload=n=>{if(r===t.current&&i.current&&t.current){const r=i.current;let n=0;const s=t.current.width,a=t.current.height,c=a/s;function l(){r.style.width=s+n+"px",r.style.height=a+n*c+"px"}l(),e.addDispose(new o.DomListener(r.parentElement,"wheel",(e=>{e.ctrlKey&&(e.deltaY>0||e.deltaY<0)&&(e.preventDefault(),n-=10*e.deltaY,l())})))}}}return()=>{e.dispose()}}),[e.resource]),r.createElement("div",{className:n.kt_image_preview},r.createElement("div",{ref:i},r.createElement("img",{ref:e=>e&&(t.current=e)})))}},67201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FILE_SCHEME="file",t.FILE_ON_DISK_SCHEME="fileOnDisk",t.FILE_SAVE_BY_CHANGE_THRESHOLD=1e6,t.IFileSchemeDocClient=Symbol("IFileSchemeDocClient"),t.IFileSchemeDocNodeService=Symbol("FileSchemeDocNodeService"),t.FileSchemeDocNodeServicePath="FileSchemeDocNodeService",function(e){e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED"}(t.ChangeType||(t.ChangeType={}))},46100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSearchServicePath="FileSearchServicePath",t.IFileSearchService=Symbol("FileSearchService")},86814:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(46100),t)},7868:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(61583),s=i(91674),a=i(65686),c=i(7634),l=i(35972),u=i(83977),d=i(34865),h=i(93728);let p=class{constructor(){this.providers=new Map}registerFileSystemProvider(e){const t=e.scheme;return this.providers.set(t,e),{dispose:()=>{this.providers.delete(t)}}}};p=r.__decorate([n.Injectable()],p),t.BrowserFileSystemRegistryImpl=p;let f=class{constructor(){this.onFileChangedEmitter=new a.Emitter,this.onFilesChanged=this.onFileChangedEmitter.event,this.filesExcludesMatcherList=[],this.watcherId=0,this.watcherDisposerMap=new Map,this.watcherWithSchemaMap=new Map,this.toDisposable=new a.DisposableCollection,this.watchFileExcludes=[],this.watchFileExcludesMatcherList=[],this.filesExcludes=[],this.workspaceRoots=[],this._providerChanged=new Set,this.fsProviders=new Map,this.options={encoding:"utf8",overwrite:!1,recursive:!0,moveToTrash:!0}}handlesScheme(e){return this.registry.providers.has(e)||this.fsProviders.has(e)}async resolveContent(e,t){const i=this.convertUri(e),r=await this.getProvider(i.scheme),n=await r.readFile(i.codeUri),o=n.data||n;return{content:h.BinaryBuffer.wrap(Uint8Array.from(o)).toString(null==t?void 0:t.encoding)}}async readFile(e){const t=this.convertUri(e),i=await this.getProvider(t.scheme),r=await i.readFile(t.codeUri),n=r.data||r;return{content:h.BinaryBuffer.wrap(Uint8Array.from(n))}}async getFileStat(e,t=!0){const i=this.convertUri(e),r=await this.getProvider(i.scheme);try{const e=await r.stat(i.codeUri);return this.filterStat(e,t)}catch(e){if(o.FileSystemError.FileNotFound.is(e))return}}async setContent(e,t,i){const r=this.convertUri(e.uri),n=await this.getProvider(r.scheme),s=await n.stat(r.codeUri);if(s.isDirectory)throw o.FileSystemError.FileIsDirectory(e.uri,"Cannot set the content.");if(!await this.isInSync(e,s))throw this.createOutOfSyncError(e,s);await n.writeFile(r.codeUri,"string"==typeof t?h.BinaryBuffer.fromString(t).buffer:t,{create:!1,overwrite:!0,encoding:null==i?void 0:i.encoding});return await n.stat(r.codeUri)}async updateContent(e,t,i){const r=this.convertUri(e.uri),n=await this.getProvider(r.scheme),s=await n.stat(r.codeUri);if(s.isDirectory)throw o.FileSystemError.FileIsDirectory(e.uri,"Cannot set the content.");if(!this.checkInSync(e,s))throw this.createOutOfSyncError(e,s);if(0===t.length)return s;const a=await n.readFile(r.codeUri),c=this.applyContentChanges(h.BinaryBuffer.wrap(a).toString(null==i?void 0:i.encoding),t);await n.writeFile(r.codeUri,h.BinaryBuffer.fromString(c).buffer,{create:!1,overwrite:!0,encoding:null==i?void 0:i.encoding});return await n.stat(r.codeUri)}async createFile(e,t){const i=this.convertUri(e),r=await this.getProvider(i.scheme),n=h.BinaryBuffer.fromString((null==t?void 0:t.content)||"").buffer;let o=await r.writeFile(i.codeUri,n,{create:!0,overwrite:t&&t.overwrite||!1,encoding:null==t?void 0:t.encoding});return o=o||await r.stat(i.codeUri),o}async createFolder(e){const t=this.convertUri(e),i=await this.getProvider(t.scheme),r=await i.createDirectory(t.codeUri);return r||await i.stat(t.codeUri)}async move(e,t,i){const r=this.convertUri(e),n=this.convertUri(t),o=await this.getProvider(r.scheme),s=await o.rename(r.codeUri,n.codeUri,{overwrite:!(!i||!i.overwrite)});return s||await o.stat(n.codeUri)}async copy(e,t,i){const r=this.convertUri(e),n=this.convertUri(t),s=await this.getProvider(r.scheme),a=await this.doGetOverwrite(i);if(!o.containsExtraFileMethod(s,"copy"))throw this.getErrorProvideNotSupport(r.scheme,"copy");const c=await s.copy(r.codeUri,n.codeUri,{overwrite:!!a});return c||await s.stat(n.codeUri)}async getFsPath(e){return e.startsWith("file:/")?a.FileUri.fsPath(e):void 0}fireFilesChange(e){const t=e.changes.map((e=>({uri:e.uri,type:e.type})));this.onFileChangedEmitter.fire(t),this.eventBus.fire(new d.FilesChangeEvent(t))}async watchFileChanges(e,t){const i=this.watcherId++,r=this.convertUri(e.toString()),n=await this.getProvider(r.scheme),o=this.watcherWithSchemaMap.get(r.scheme)||[],s=await n.watch(e.codeUri,{recursive:!0,excludes:t||[]});return this.watcherDisposerMap.set(i,{dispose:()=>n.unwatch&&n.unwatch(s)}),o.push(i),this.watcherWithSchemaMap.set(r.scheme,o),new l.FileSystemWatcher({fileServiceClient:this,watchId:i,uri:e})}async setWatchFileExcludes(e){const t=await this.getProvider("file");return await t.setWatchFileExcludes(e)}async getWatchFileExcludes(){const e=await this.getProvider("file");return await e.getWatchFileExcludes()}async setFilesExcludes(e,t){this.filesExcludes=e,this.filesExcludesMatcherList=[],t&&this.setWorkspaceRoots(t),this.updateExcludeMatcher()}async setWorkspaceRoots(e){this.workspaceRoots=e,this.updateExcludeMatcher()}async unwatchFileChanges(e){const t=this.watcherDisposerMap.get(e);t&&t.dispose&&t.dispose()}async delete(e,t){if(a.isElectronRenderer()&&t&&t.moveToTrash){const t=new a.URI(e);if("file"===t.scheme)return this.injector.get(u.IElectronMainUIService).moveToTrash(t.codeUri.fsPath)}const i=this.convertUri(e),r=await this.getProvider(i.scheme);await r.stat(i.codeUri),await r.delete(i.codeUri,{recursive:!0,moveToTrash:await this.doGetMoveToTrash(t)})}async getEncoding(e){return"utf8"}registerProvider(e,t){return this.fsProviders.set(e,t),this.toDisposable.push({dispose:()=>{this.fsProviders.delete(e),this._providerChanged.add(e)}}),t.onDidChangeFile&&this.toDisposable.push(t.onDidChangeFile((e=>this.fireFilesChange({changes:e})))),this.toDisposable.push({dispose:()=>{(this.watcherWithSchemaMap.get(e)||[]).forEach((e=>this.unwatchFileChanges(e)))}}),this._providerChanged.add(e),this.toDisposable}async access(e,t=o.FileAccess.Constants.F_OK){const i=this.convertUri(e),r=await this.getProvider(i.scheme);if(!o.containsExtraFileMethod(r,"access"))throw this.getErrorProvideNotSupport(i.scheme,"access");return await r.access(i.codeUri,t)}async getFileType(e){const t=this.convertUri(e),i=await this.getProvider(t.scheme);if(!o.containsExtraFileMethod(i,"getFileType"))throw this.getErrorProvideNotSupport(t.scheme,"getFileType");return await i.getFileType(e)}async getCurrentUserHome(){return(await this.getProvider("file")).getCurrentUserHome()}getErrorProvideNotSupport(e,t){return`Scheme ${e} not support this function: ${t}.`}convertUri(e){const t=new a.URI(e);if(!t.scheme)throw new Error(`没有设置 scheme: ${e}`);return t}updateExcludeMatcher(){this.filesExcludes.forEach((e=>{this.workspaceRoots.length>0?this.workspaceRoots.forEach((t=>{const i=new a.URI(t).resolve(e).path.toString();this.filesExcludesMatcherList.push(c.parse(i))})):this.filesExcludesMatcherList.push(c.parse(e))}))}async getProvider(e){this._providerChanged.has(e)&&(await this.eventBus.fireAndAwait(new d.ExtensionActivateEvent({topic:"onFileSystem",data:e}),{timeout:3e3}),this._providerChanged.delete(e));const t=this.fsProviders.get(e);if(!t)throw new Error(`Not find ${e} provider.`);return t}async isReadonly(e){try{const t=new a.URI(e);return!!(await this.getProvider(t.scheme)).readonly}catch(e){return!1}}isExclude(e){const t=new a.URI(e);return this.filesExcludesMatcherList.some((e=>e(t.path.toString())))}filterStat(e,t=!0){if(e&&!this.isExclude(e.uri))return e.children&&t&&(e.children=this.filterStatChildren(e.children)),e}filterStatChildren(e){const t=[];return e.forEach((e=>{if(this.isExclude(e.uri))return!1;const i=this.filterStat(e);i&&t.push(i)})),t}applyContentChanges(e,t){let i=s.TextDocument.create("","",1,e);for(const e of t){let t=e.text;if(e.range){const r=i.offsetAt(e.range.start),n=i.offsetAt(e.range.end);t=i.getText().substr(0,r)+e.text+i.getText().substr(n)}i=s.TextDocument.create(i.uri,i.languageId,i.version,t)}return i.getText()}async isInSync(e,t){return!!this.checkInSync(e,t)}checkInSync(e,t){return t.lastModification===e.lastModification&&t.size===e.size}createOutOfSyncError(e,t){return o.FileSystemError.FileIsOutOfSync(e,t)}async doGetEncoding(e){return e&&void 0!==e.encoding?e.encoding:this.options.encoding}async doGetOverwrite(e){return e&&void 0!==e.overwrite?e.overwrite:this.options.overwrite}async doGetRecursive(e){return e&&void 0!==e.recursive?e.recursive:this.options.recursive}async doGetMoveToTrash(e){return e&&void 0!==e.moveToTrash?e.moveToTrash:this.options.moveToTrash}};r.__decorate([n.Autowired(o.IBrowserFileSystemRegistry),r.__metadata("design:type",p)],f.prototype,"registry",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",Object)],f.prototype,"injector",void 0),r.__decorate([n.Autowired(a.IEventBus),r.__metadata("design:type",Object)],f.prototype,"eventBus",void 0),f=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],f),t.FileServiceClient=f},15861:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(61583),a=i(7868);class c{constructor(e,t){this.uri=e,this.fileSystem=t,this.toDispose=new o.DisposableCollection,this.onDidChangeContentsEmitter=new o.Emitter,this.logger=o.getDebugLogger(),this.onDidChangeContents=this.onDidChangeContentsEmitter.event,this.uriString=this.uri.toString(),this.toDispose.push(this.onDidChangeContentsEmitter)}async init(){const e=await this.getFileStat();if(e&&e.isDirectory)throw new Error("The given uri is a directory: "+this.uriString);this.stat=e,this.toDispose.push(this.fileSystem.onFilesChanged((e=>{e.filter((e=>e.uri===this.uri.toString())).length>0&&this.sync()})));try{await this.fileSystem.access(this.uri.toString())&&this.toDispose.push(await this.fileSystem.watchFileChanges(this.uri))}catch(e){this.logger.error(e)}}dispose(){this.toDispose.dispose()}async readContents(e){try{const[e,t]=await Promise.all([this.fileSystem.readFile(this.uriString),this.fileSystem.getFileStat(this.uriString)]);return this.stat=t,e.content.toString()}catch(e){if(s.FileSystemError.FileNotFound.is(e))throw this.stat=void 0,o.ResourceError.NotFound(Object.assign(Object.assign({},e.toJson()),{data:{uri:this.uri}}));throw e}}async saveContents(e,t){this.stat=await this.doSaveContents(e,t)}async getFsPath(){return await this.fileSystem.getFsPath(this.uriString)}async doSaveContents(e,t){const i=await this.getFileStat();return i?this.fileSystem.setContent(i,e,t):this.fileSystem.createFile(this.uriString,Object.assign({content:e},t))}async saveContentChanges(e,t){if(!this.stat)throw new Error(this.uriString+" has not been read yet");this.stat=await this.fileSystem.updateContent(this.stat,e,t)}async sync(){await this.isInSync(this.stat)||this.onDidChangeContentsEmitter.fire(void 0)}async isInSync(e){const t=await this.getFileStat();return e?!!t&&e.lastModification>=t.lastModification:!t}async getFileStat(){if(await this.fileSystem.access(this.uriString))try{return this.fileSystem.getFileStat(this.uriString)}catch(e){return void this.logger.error(e)}}}t.FileResource=c;let l=class{constructor(){this.fileSystem.registerProvider("file",this.diskFileServiceProvider),this.fileSystem.registerProvider("debug",this.shadowFileServiceProvider)}async initialize(){const e=this.contributionProvider.getContributions();for(const t of e)t.registerProvider&&await t.registerProvider(this.fileSystem);for(const t of e)t.onFileServiceReady&&await t.onFileServiceReady()}async resolve(e){if("file"!==e.scheme)return;const t=new c(e,this.fileSystem);return await t.init(),t}};r.__decorate([n.Autowired(s.IFileServiceClient),r.__metadata("design:type",a.FileServiceClient)],l.prototype,"fileSystem",void 0),r.__decorate([n.Autowired(s.IDiskFileProvider),r.__metadata("design:type",Object)],l.prototype,"diskFileServiceProvider",void 0),r.__decorate([n.Autowired(s.IShadowFileProvider),r.__metadata("design:type",Object)],l.prototype,"shadowFileServiceProvider",void 0),r.__decorate([n.Autowired(o.FsProviderContribution),r.__metadata("design:type",Object)],l.prototype,"contributionProvider",void 0),l=r.__decorate([o.Domain(o.ResourceResolverContribution,o.ClientAppContribution),r.__metadata("design:paramtypes",[])],l),t.FileResourceResolver=l},58262:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(61583);class a{constructor(){this.onDidChangeFileEmitter=new o.Emitter,this.onDidChangeFile=this.onDidChangeFileEmitter.event}watch(e,t){return this.fileServiceProvider.watch(e,t)}unwatch(e){return this.fileServiceProvider.unwatch&&this.fileServiceProvider.unwatch(e)}async stat(e){return await this.fileServiceProvider.stat(e)}readDirectory(e){return this.fileServiceProvider.readDirectory(e)}createDirectory(e){return this.fileServiceProvider.createDirectory(e)}async readFile(e,t){t&&o.getDebugLogger("fileService.fsProvider").warn("encoding option for fsProvider.readFile is deprecated");return await this.fileServiceProvider.readFile(e)}writeFile(e,t,i){return this.fileServiceProvider.writeFile(e,Array.from(t),i)}delete(e,t){return this.fileServiceProvider.delete(e,t)}rename(e,t,i){return this.fileServiceProvider.rename(e,t,i)}}r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],a.prototype,"injector",void 0),t.CoreFileServiceProviderClient=a;let c=class extends a{setWatchFileExcludes(e){return this.fileServiceProvider.setWatchFileExcludes(e)}getWatchFileExcludes(){return this.fileServiceProvider.getWatchFileExcludes()}onDidFilesChanged(e){const t=e.changes.map((e=>({uri:e.uri,type:e.type})));this.onDidChangeFileEmitter.fire(t)}copy(e,t,i){return this.fileServiceProvider.copy(e,t,i)}access(e,t){return this.fileServiceProvider.access(e,t)}getCurrentUserHome(){return this.fileServiceProvider.getCurrentUserHome()}getFileType(e){return this.fileServiceProvider.getFileType(e)}};r.__decorate([n.Autowired(s.DiskFileServicePath),r.__metadata("design:type",Object)],c.prototype,"fileServiceProvider",void 0),c=r.__decorate([n.Injectable()],c),t.DiskFsProviderClient=c},74229:(e,t,i)=>{"use strict";const r=i(70655),n=i(19745),o=i(61583),s=i(7868),a=i(34865),c=i(15861),l=i(58262),u=i(2965);let d=class extends a.BrowserModule{constructor(){super(...arguments),this.providers=[{token:o.IFileServiceClient,useClass:s.FileServiceClient},{token:o.IBrowserFileSystemRegistry,useClass:s.BrowserFileSystemRegistryImpl},{token:o.IDiskFileProvider,useClass:l.DiskFsProviderClient},{token:o.IShadowFileProvider,useClass:u.ShadowFileSystemProvider},c.FileResourceResolver],this.backServices=[{servicePath:o.DiskFileServicePath,clientToken:o.IDiskFileProvider}]}};d=r.__decorate([n.Injectable()],d),t.B=d},2965:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(19745),s=i(93728);let a=class{constructor(){this.readonly=!0,this.shadowFiles=new Map,this.fileChangeEmitter=new n.Emitter,this.onDidChangeFile=this.fileChangeEmitter.event}watch(e,t){throw new Error("Method not implemented.")}stat(e){return Promise.resolve({uri:e.toString(),lastModification:0})}readDirectory(e){throw new Error("Method not implemented.")}createDirectory(e){throw new Error("Method not implemented.")}readFile(e){return this.shadowFiles.get(e.toString())||s.BinaryBuffer.fromString("no available").buffer}writeFile(e,t,i){this.shadowFiles.set(e.toString(),t)}delete(e,t){throw new Error("Method not implemented.")}rename(e,t,i){throw new Error("Method not implemented.")}copy(e,t,i){throw new Error("Method not implemented.")}exists(e){throw new Error("Method not implemented.")}access(e,t){throw new Error("Method not implemented.")}};a=r.__decorate([o.Injectable()],a),t.ShadowFileSystemProvider=a},35972:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.FileSystemWatcher=class{constructor(e){this.toDispose=new r.DisposableCollection,this.changeEmitter=new r.Emitter,this.toDispose.push(this.changeEmitter),this.fileServiceClient=e.fileServiceClient,this.watchId=e.watchId,this.uri=e.uri,this.fileServiceClient.onFilesChanged((e=>{const t=function(e,t){return e.filter((e=>0===e.uri.indexOf(t)))}(e,this.uri.toString());t&&t.length>0&&this.changeEmitter.fire(t)}))}get onFilesChanged(){return this.changeEmitter.event}dispose(){return this.toDispose.dispose(),this.fileServiceClient.unwatchFileChanges(this.watchId)}}},91672:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.IFileServiceClient=r.IFileServiceClient,t.IBrowserFileSystemRegistry=Symbol("IBrowserFileSystemRegistry")},14177:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686);var o=i(58390);t.FileType=o.FileType,t.FileStat=o.FileStat,r.__exportStar(i(25305),t),t.IDiskFileProvider=Symbol("IDiskFileProvider"),t.IShadowFileProvider=Symbol("IShadowFileProvider"),t.IFileService=Symbol("IFileService"),function(e){let t;!function(e){e.F_OK=0,e.R_OK=4,e.W_OK=2,e.X_OK=1}(t=e.Constants||(e.Constants={}))}(t.FileAccess||(t.FileAccess={})),function(e){e.FileNotFound=n.ApplicationError.declare(-33e3,((e,t)=>({message:`${t?t+" ":""} '${e}' has not been found.`,data:{uri:e}}))),e.FileExists=n.ApplicationError.declare(-33001,((e,t)=>({message:`${t?t+" ":""}'${e}' already exists.`,data:{uri:e}}))),e.FileIsDirectory=n.ApplicationError.declare(-33002,((e,t)=>({message:`${t?t+" ":""}'${e}' is a directory.`,data:{uri:e}}))),e.FileNotDirectory=n.ApplicationError.declare(-33003,((e,t)=>({message:`${t?t+" ":""}'${e}' is not a directory.`,data:{uri:e}}))),e.FileIsOutOfSync=n.ApplicationError.declare(-33004,((e,t)=>({message:`'${e.uri}' is out of sync.`,data:{file:e,stat:t}}))),e.FileIsNoPermissions=n.ApplicationError.declare(-33005,((e,t)=>({message:`${t?t+" ":""}'${e}' is no permissions.`,data:{uri:e}})))}(t.FileSystemError||(t.FileSystemError={}));class s extends Error{constructor(e,t,i){super(e),this.fileOperationResult=t,this.options=i}static isFileOperationError(e){return e instanceof Error&&!n.isUndefinedOrNull(e.fileOperationResult)}}t.FileOperationError=s,t.containsExtraFileMethod=function(e,t){return n.hasProperty(e,t)&&n.isFunction(e[t])},t.notEmpty=function(e){return void 0!==e},t.isErrnoException=function(e){return void 0!==e.code&&void 0!==e.errno}},61583:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(91672),t),r.__exportStar(i(14177),t),r.__exportStar(i(81879),t),t.FileServicePath="FileService",t.DiskFileServicePath="DiskFileService",t.ShadowFileServicePath="ShadowFileService",t.FileWatcherServicePath="FileWatcherService",t.FileExtServicePath="FileExtServicePath"},81879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;!function(e){e[e.CREATED=0]="CREATED",e[e.DELETED=1]="DELETED",e[e.MODIFIED=2]="MODIFIED",e[e.RENAMED=3]="RENAMED"}(t=e.actions||(e.actions={}))}(t.INsfw||(t.INsfw={}))},36002:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(70655).__exportStar(i(61583),t)},49978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizationBundle={languageId:"en-US",languageName:"english",localizedLanguageName:"English",contents:{ButtonAllow:"Allow",ButtonOK:"Confirm",ButtonCancel:"Cancel",extension:"Extension","common.yes":"Yes","common.no":"No","tree.filter.placeholder":"Enter a keyword or path to filter","file.new":"New File","file.folder.new":"New Folder","file.locate":"Locate File","file.save":"Save File","file.saveAll":"Save All","file.autoSave":"Auto Save","file.open":"Open","file.open.side":"Open to the Side","file.delete":"Delete","file.compare":"Compare with Current File","file.rename":"Rename","file.close":"Close","file.copy.path":"Copy Path","file.copy.relativepath":"Copy Relative Path","file.paste.file":"Paste","file.copy.file":"Copy","file.cut.file":"Cut","file.location":"Locate in Files Explorer","file.action.new.file":"New File","file.action.new.folder":"New Folder","file.action.refresh":"Refresh","file.open.folder":"Open Folder","file.open.workspace":"Open Workspace","file.action.collapse":"Collapse","file.confirm.delete":"Are you sure you want to delete the following files?\n{0}","file.confirm.delete.ok":"Move to trash","file.confirm.delete.cancel":"Cancel","file.confirm.move":"Are you sure you want to move file {0} to {1}?","file.confirm.move.ok":"Move","file.confirm.move.cancel":"Cancel","file.confirm.replace":"Are you sure you want to replace file {0}?","file.confirm.replace.ok":"Replace","file.confirm.replace.cancel":"Cancel","file.move.existMessage":"The file to be pasted is deleted or moved at the same time. Unable to move/copy. The file already exists at the target location.","file.empty.defaultTitle":"No Open Folder","file.empty.defaultMessage":"The folder has not been opened yet","file.workspace.defaultTip":"Untitled (WORKSPACE)","file.workspace.defaultWorkspaceTip":"{0} (WORKSPACE)","file.empty.openFolder":"Open Folder","file.collapse":"Collapse All","file.refresh":"Refresh","file.search.folder":"Search on this folder","file.focus.files":"Focus on Files Explorer","file.filetree.filter":"Filter on opened files","file.filetree.openWithPath":"Open In The Terminal","file.tooltip.symbolicLink":"Symbolic Link","file.resource-deleted":"(Deleted)","menu-bar.title.file":"File","menu-bar.title.edit":"Edit","menu-bar.title.selection":"Selection","menu-bar.title.view":"View","menu-bar.title.go":"Go","menu-bar.title.debug":"Debug","menu-bar.title.terminal":"Terminal","menu-bar.title.window":"Window","menu-bar.title.help":"Help","menu-bar.file.save-as":"Save As","menu-bar.file.save-all":"Save All","menu-bar.file.open":"Open File","menu-bar.view.quick.command":"Command","menu-bar.view.outward":"Outward","menu-bar.view.outward.right-panel.toggle":"Toggle Right Panel","menu-bar.view.outward.right-panel.hide":"Hide Right Panel","menu-bar.view.outward.right-panel.show":"Show Right Panel","menu-bar.view.outward.left-panel.hide":"Hide Left Panel","menu-bar.view.outward.left-panel.show":"Show Left Panel","menu-bar.view.outward.theme.toggle":"switch skin","menu-bar.view.outward.localize.toggle":"switch language","menu-bar.view.outward.localize.toogle.message":"language toogled: %s",selectAll:"Select All",editor:"Editor","editor.undo":"Undo","editor.redo":"Redo","editor.saveCurrent":"Save Current File","editor.title.context.close":"Close","editor.closeCurrent":"Close Current Editor","editor.openExternal":"Open Externally","editor.cannotOpenBinary":"Cannot open binary file in this editor.","editor.splitToLeft":"Split To Left","editor.splitToRight":"Split To Right","editor.splitToTop":"Split To Top","editor.splitToBottom":"Split To Bottom","editor.closeAllInGroup":"Close All","editor.closeToRight":"Close To Right","editor.closeSaved":"Close Saved","editor.cannotSaveWithoutDirectory":"Cannot save file without directory","editor.close":"Close","editor.action.accept":"Accept Changes (Use version on the right)","editor.action.revert":"Revert Changes (Use version on the left)","editor.format.chooseFormatter":"Choose the Formatter","editor.configuration.preferredFormatter":"Preferred formatter for files","editor.chooseEncoding":"Reopen with encoding (Unsaved Changes will be lost)","editor.changeEol":"Select End Of Line Sequence","editor.failToOpen":"Failed to open {0}. Error message: {1}","editor.changeLanguageId":"Select Language Mode","editor.configuration.maxTokenizationLineLength":"Lines above this length will not be tokenized for performance reasons","editor.configuration.quickSuggestionsDelay":"Quick suggestions show delay (in ms) Defaults to 100 (ms)","status-bar.label.line":"Ln","status-bar.label.column":"Col","status-bar.label.selected":"Selected","status-bar.label.tabType.space":"Spaces","status-bar.label.tabType.tab":"Tab Size","editor.closeOtherEditors":"Close Others","status.editor.chooseLanguage":"Choose Language Mode","status.editor.chooseEncoding":"Choose Encoding","status.editor.changeEol":"Select End Of Line Sequence","edit.cut":"Cut","edit.copy":"Copy","edit.paste":"Paste","edit.selectAll":"Select All","editor.goBack":"Back","editor.goForward":"Forward","editor.quickOpen":"Go to File...","editor.editor.goToSymbol":"Go to Symbol...","editor.goToLine":"Go to Line...","editor.tokenize.test":"Try Tokenize First Selection","quickopen.command.placeholder":"Placeholder","quickopen.command.description":"Run Ide Command","quickopen.command.nohandler":"Cannot Find Anymore","quickopen.quickinput.prompt":"Press 'Enter' to confirm your input or 'Escape' to cancel","explorer.title":"EXPLORER","explorer.electron.revealInFinder":"Reveal In Explorer","explorer.electron.openInSystemTerminal":"Open In Terminal","explorer.electron.openInSystemTerminal.error":"Open {0} In Terminal Fail: {1}","search.title":"SEARCH","search.input.placeholder":"Enter search content","search.input.title":"Search","search.replace.title":"Replace","search.input.checkbox":"Display search rules","file-search.command.fileOpen.description":"Open File","file-search.command.fileOpen.placeholder":"Search File By Name(Append @ To Locate Symbol)","search.includes":"Files to include","search.includes.description":'Enter the file name or folder name, multiple separated by ","',"search.excludes":"Files to exclude","search.excludes.default.enable":"Enable default exclusions","search.replaceAll.label":"Replace all","search.replace.label":"Replace","search.files.result.kt":"{0} results found in {1} files","search.CollapseDeepestExpandedLevelAction.label":"Collapse All","search.ExpandDeepestExpandedLevelAction.label":"Expand All","search.ClearSearchResultsAction.label":"Clear Search Results","search.RefreshAction.label":"Refresh","search.removeAll.occurrences.files.confirmation.message":"Are you sure to replace {0} of the {1} files","search.removeAll.occurrences.file.confirmation.message":"Are you sure to replace the {0} results in this file?","search.result.hide":"Hide","search.menu.copyAll":"Copy all","search.help.showIncludeRule":"View syntax rules","search.help.supportRule":"Support the following syntax rules:","search.help.excludeList":"Excluded items include:","search.help.concatRule":"Multiple conditional separation","search.help.matchOneOrMoreRule":"To match one or more characters in a path segment","search.help.matchOne":"To match on one character in a path segment","search.help.matchAny":"To match any number of path segments, including none","search.help.matchWithGroup":"To group conditions","search.help.matchRange":"To declare a range of characters to match","search.help.modify":"Modify","search.replace.buttonOK":"Replace","search.replace.buttonCancel":"Cancel","search.too.many.results":"Because your search terms are too loose, we only show some search results","file-search.quickOpen.leftRight":"Open on the side","file-search.quickOpen.upDown":"Open at the bottom","search.fileReplaceChanges":"{0} ↔ {1} (Replace Preview)",fileResults:"File results",historyMatches:"Recently opened","replaceAll.occurrences.files.message":"Replaced {0} occurrences across {1} files with '{2}'.","search.replace.toggle.button.title":"Toggle Replace",caseDescription:"Match Case",wordsDescription:"Match Whole Word",regexDescription:"Use Regular Expression",includeIgnoredFiles:"Include Ignored Files",onlyOpenEditors:"Search only in Open Editors",noResultsFound:"No results found. Review your settings for configured exclusions and ignore files","quickopen.recent-commands":"recently used","quickopen.other-commands":"other commands",mSelection:"Selection","selection.all":"Select All","dialog.confirm":"confirm","dialog.file.name":"File Name","dialog.file.title":"Select Directory:","dialog.file.openLabel":"Open File:","dialog.file.saveLabel":"Save File:","dialog.file.close":"Close","dialog.file.ok":"OK","menu-bar.file.pref":"prefrence","editorOpenType.code":"Code","editorOpenType.preview":"Preview","scm.title":"SOURCE CONTROL","scm.action.git.refresh":"Refresh","scm.action.git.commit":"Commit","scm.action.git.more":"More Actions","scm.statusbar.repo":"Repo","scm.provider.title":"Source Control Providers","scm.provider.empty":"No source control providers registered.","scm.provider.init":"Click to initialize a repository","scm.diff.change.next":"Next Change","scm.diff.change.previous":"Previous Change","scm.diff.toggle.renderSideBySide":"Toggle Inline View","debug.action.add.configuration":"Add Configuration...","debug.action.no.configuration":"No Configurations","debug.action.start":"Start Debugging","debug.action.open.configuration":"Open launch.json","debug.action.debug.console":"Debug Console","debug.action.step-into":"Step Into","debug.action.step-over":"Step Over","debug.action.step-out":"Step Out","debug.action.restart":"Restart","debug.action.pause":"Pause","debug.action.stop":"Stop","debug.action.disattach":"Disattach","debug.breakpoint.toggle":"Enable/Disable Breakpoints","debug.breakpoint.removeAll":"Remove All Breakpoints","debug.breakpoint.uncaughtExceptions":"Uncaught Exceptions","debug.breakpoint.allExceptions":"All Exceptions","debug.watch.removeAll":"Remove All Expression","debug.watch.collapseAll":"Collapse All Expression","debug.watch.add":"Add Expression","debug.watch.notAvailable":"not available","debug.watch.edit":"Edit Expression","debug.watch.copyValue":"Copy Value","debug.watch.remove":"Remove Expression","debug.action.continue":"Continue","debug.console.panel.title":"DEBUG CONSOLE","debug.console.panel.default":"default","debug.console.filter.placeholder":"Filter (e.g. text, !exclude)","debug.console.clear":"Clear","debug.console.copy":"Copy","debug.console.copyAll":"Copy All","debug.console.collapseAll":"Collapse All","debug.stack.loadMore":"Load All Stack Frames","debug.stack.loading":"Loading...","debug.breakpoint.deactive":"Deactivate Breakpoints","debug.breakpoint.active":"Activate Breakpoints","debug.threads.title":"THREADS","debug.watch.title":"WATCH","debug.callStack.title":"CALL STACK","debug.variables.title":"VARIABLES","debug.breakpoints.title":"BREAKPOINTS","debug.container.title":"DEBUG","debug.breakpoint.breakpointMessage":"Breakpoint","debug.breakpoint.logpointMessage":"Logpoint","debug.breakpoint.conditionalMessage":"Conditional Breakpoint","debug.breakpoint.unverified":"Unverified ","debug.breakpoint.disabled":"Disabled ","debug.configuration.comment1":"Use IntelliSense to learn about possible attributes.","debug.configuration.comment2":"Hover to view descriptions of existing attributes.","debug.configuration.comment3":"For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387","debug.launch.existed":'Debug configuration "{0}" is already running',"debug.expression.log.placeholder":'Message to log when breakpoint is hit. Expressions within {} are interpolated. Press "Enter " to confirm and "Esc " to cancel.',"debug.expression.hit.placeholder":'Break when hit count condition is met. Press "Enter " to confirm and "Esc " to cancel.',"debug.expression.condition.placeholder":'Break when the expression evaluates to true. Press "Enter " to confirm and "Esc " to cancel.',"debug.expression.condition":"Expression","debug.expression.hitCondition":"Hit Count","debug.expression.logMessage":"Log Message","debug.menu.delete.breakpoint":"Delete Breakpoint","debug.menu.edit.breakpoint":"Edit Breakpoint","debug.menu.disable.breakpoint":"Disable Breakpoint","debug.menu.enable.breakpoint":"Enable Breakpoint","debug.menu.add.logpoint":"Add Log breakpoint","debug.menu.add.conditional":"Add Condition Breakpoint","debug.menu.add.breakpoint":"Add Breakpoint","debug.menu.disable.logpoint":"Disable Log Breakpoint","debug.stack.frame.noSource":"Unknown","debug.stack.frame.because":"Because Of","debug.stack.frame.stopped":"Stopped","debug.stack.frame.running":"Running","debug.hover.not.available":"not available","debug.launch.configurations.debugType":"Type of configuration.","debug.launch.configurations.debugTypeNotRecognised":"The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled.","debug.launch.configurations.node2NotSupported":'"node2" is no longer supported, use "node" instead and set the "protocol" attribute to "inspector".',"debug.launch.configurations.debugName":"Name of configuration; appears in the launch configuration drop down menu.","debug.launch.configurations.debugRequest":'Request type of configuration. Can be "launch" or "attach".',"debug.launch.configurations.debugServer":"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode","debug.launch.configurations.debugPrelaunchTask":"Task to run before debug session starts.","debug.launch.configurations.debugPostDebugTask":"Task to run after debug session ends.","debug.launch.configurations.debugWindowsConfiguration":"Windows specific launch configuration attributes.","debug.launch.configurations.debugOSXConfiguration":"OS X specific launch configuration attributes.","debug.launch.configurations.debugLinuxConfiguration":"Linux specific launch configuration attributes.","output.tabbar.title":"OUTPUT","output.channel.none":"","output.configurationTitle":"Ouput settings","output.logWhenNoPanel":"Whether to output to the browser when no available panel","output.maxChannelLine":"Max channel message line length","output.maxChannelLineDesc":"Max channel message line length","output.enableLogHighlight":"Enable/disable Log Highlight","output.enableLogHighlightDesc":"Use Log language to tokenization log text, vscode-log extension is required","output.enableSmartScroll":"Enable/disable Smart scrolling","output.enableSmartScrollDesc":"Smart scrolling allows you to lock scrolling automatically when you click in the output view and unlocks when you click in the last line.","preference.explorer.confirm.delete":"Controls whether the explorer should ask for confirmation when deleting a file via trash","preference.explorer.confirm.move":"Controls whether the explorer should ask for confirmation when moving a file","preference.files.watcherExclude":"Configure glob patterns of file paths to exclude from file watching. Patterns must match on absolute paths (i.e. prefix with ** or the full path to match properly). Changing this setting requires a restart. When you experience Code consuming lots of cpu time on startup, you can exclude large folders to reduce the initial load.","preference.files.exclude":"Configure glob patterns for excluding files and folders. For example, the files explorer decides which files and folders to show or hide based on this setting.","preference.search.exclude":"Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the `#files.exclude#` setting.","preference.search.include":"Configure glob patterns for including files and folders in searches.","preference.files.watcherExclude.title":"Exclusion file watch `files.watcherExclude`","preference.search.exclude.title":"Search exclusion file `search.exclude`","preference.search.useReplacePreview":"Controls whether to open Replace Preview when selecting or replacing a match.","preference.files.exclude.title":"Exclude file display `files.exclude`","preference.array.additem":"Add","preference.files.associations.title":"File Association","preference.files.associations":'Configure file associations to languages (e.g. "*.extension": "html"). These have precedence over the default associations of the languages installed.',"preference.files.encoding.title":"File Encoding","preference.files.encoding":"The default character set encoding to use when reading and writing files.","preference.explorer.fileTree.indent.title":"Explorer: FileTree Indent","preference.explorer.fileTree.baseIndent.title":"Explorer: FileTree BaseIndent","preference.explorer.compactFolders.title":"Explorer: Compact Mode","preference.explorer.compactFolders":"Controls whether the explorer should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element. Useful for Java package structures, for example.","preference.explorer.autoReveal":"Controls whether the explorer should automatically reveal and select files when opening them.","preference.editorTitle.openSource":"Open Setting (JSON)","preference.editorTitle.openUserSource":"Open User Setting (JSON)","preference.editorTitle.openWorkspaceSource":"Open Workspace Setting (JSON)","preference.editorTitle.openPreference":"Open Setting","preference.view.saveLayoutWithWorkspace.title":"Controls whether the layout should bind with workspace","preference.stringArray.operate.delete":"Delete","preference.stringArray.operate.edit":"Edit","preference.stringArray.operate.editTip":"Press ↲","preference.stringArray.none":"None","preference.terminal.type":"Default Shell Type","preference.terminal.typeDesc":"To change the default type of create a new terminal","preference.terminal.fontFamily":"Terminal Font Family","preference.terminal.fontSize":"Terminal Font Size","preference.terminal.fontWeight":"Terminal Font Weight","preference.terminal.lineHeight":"Terminal Line Height","preference.terminal.cursorBlink":"Terminal Cursor Link","preference.terminal.scrollback":"Terminal Cursor Scrollback","preference.terminal.integrated.shellArgs.linux":"The command line arguments to use when on the Linux terminal. ","common.preference.open":"Settings","common.keymaps.open":"Keyboard Shortcut","common.about":"About","common.find":"Find","common.replace":"Replace","component.message.origin":"Origin","preference.tab.user":"Global Settings","preference.tab.workspace":"Workspace Settings","settings.group.general":"General","settings.group.shortcut":"Shortcut","settings.group.editor":"Editor","settings.group.extension":"Extensions","settings.group.feature":"Feature","settings.group.view":"View","settings.group.terminal":"Terminal","settings.menu.keymaps":"Settings","preference.general.theme":"Theme","preference.general.icon":"Icon Theme","preference.workbench.colorCustomizations":"Overwrite colors of current color theme","preference.editor.tokenColorCustomizations":"Overwrite token colors of current color theme","preference.general.language":"Language","preference.general.language.change.refresh.info":"After changing the language, it should be restarted to take effect. Will it be refreshed immediately?","preference.general.language.change.refresh.now":"now","preference.general.language.change.refresh.later":"later","preference.debug.internalConsoleOptions":"Controls when the internal debug console should open.","preference.debug.openDebug":"Controls when the debug view should open.","preference.debug.debugViewLocation":"Controls the location of the debug view.","preference.debug.trace":"Enable/disable tracing communications with debug adapters.","preference.debug.allowBreakpointsEverywhere":"Allow setting breakpoints in any file.","preference.debug.toolbar.float.title":"Run And Debug: Float Mode","preference.debug.toolbar.float":"Float mode","preference.workbench.refactoringChanges.showPreviewStrategy":"Show preview confirm when triggering some refactoring changes","preference.workbench.refactoringChanges.showPreviewStrategy.title":"Refactor Confirm","preference.tab.name":"Settings","preference.noResults":"No Setting Found Containing '{0}'","preference.editSettingsJson":"Edit in settings.json","preference.overwritten":"(Overwritten by next scope)","preference.overwrittenInUser":"(Set in User Settings)","preference.overwrittenInWorkspace":"(Set in Workspace Settings)","preference.searchPlaceholder":"Search settings...","preference.editor.formatOnSave":"Enable format on manual save.","preference.editor.formatOnSaveTimeout":"Timeout in milliseconds after which the formatting that is run on file save is cancelled.","preference.editor.formatOnSaveTimeoutError":"Aborted format on save after ${0}ms","preference.editor.maxTokenizationLineLength":"Max Tokenization Line Length","preference.editor.quickSuggestionsDelay":"Quick suggestions show delay (in ms) Defaults to 10 (ms)","preference.editor.largeFile":"Large File Size","preference.editor.formatOnPaste":"Format On Paste","preference.files.eol":"Files EOL","preference.files.eolDesc":"Control files eol","keymaps.tab.name":"Keyboard Shortcuts","preference.editor.preferredFormatter":"Default Formatter","preference.editor.previewMode":"Preview Mode","preference.editor.fontFamily":"Font Family","preference.editor.minimap":"minimap","preference.editor.forceReadOnly":"readOnly","preference.editor.renderLineHighlight":"Render Line Highlight","preference.editor.askIfDiff":"Error If File On Disk is ewer","preference.editor.autoSave":"Editor Auto Save","preference.editor.autoSaveDelay":"Auto Save Delay","preference.editor.detectIndentation":"Auto Detect Indentation","editor.configuration.askIfDiff":"When saving files, throw error if the file on disk has a newer version.","editor.configuration.autoSave":"Controls how dirty files are auto saved.","editor.configuration.autoSaveDelay":"Controls the delay in ms after which a dirty file is saved automatically. Only applies when Editor Auto Save is set to 'Save After Delay'.","editor.configuration.forceReadOnly":"If Enable readOnly","editor.configuration.tabSize":"The number of spaces a tab is equal to. This setting is overridden based on the file contents when Detect Indentation is on.","editor.configuration.detectIndentation":"Controls whether Tab Size and Insert Spaces will be automatically detected when a file is opened based on the file contents.","editor.configuration.largeFileSize":"Custom size of the large file","editor.autoSave.enum.off":"OFF","editor.autoSave.enum.editorFocusChange":"When editor focus changed","editor.autoSave.enum.afterDelay":"Save after delay","editor.autoSave.enum.windowLostFocus":"When window lost focus","editor.largeFile.prevent":"The file is too large, continuing to open it may cause it to jam or crash.","editor.largeFile.prevent.stillOpen":"Still open it.","editor.workspaceSymbol.quickopen":"Search Workspace Symbol","editor.workspaceSymbol.description":"Go to Symbol in Workspace","editor.workspaceSymbol.search":"Type to search for symbols","editor.workspaceSymbol.notfound":"No symbols matching","preference.diffEditor.renderSideBySide":"Render Side By Side","preference.diffEditor.ignoreTrimWhitespace":"Ignore Trim Whitespace","diffEditor.configuration.renderSideBySide":"Controls whether the diff editor shows the diff side by side or inline.","diffEditor.configuration.ignoreTrimWhitespace":"Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.","validate.tree.emptyFileNameError":"Please provide a file or folder name","validate.tree.fileNameStartsWithSlashError":"File or folder name cannot start with /","validate.tree.fileNameFollowOrStartWithSpaceWarning":"Leading or trailing spaces detected in file or folder name","validate.tree.fileNameExistsError":"File or folder **{0}** already exists. Please use a different name.","validate.tree.invalidFileNameError":"The name **{0}** is not available. Please use a different name.","opened.editors.title":"OPENED EDITORS","opened.editors.save.all":"Save All","opened.editors.close.all":"Close All","opened.editors.close.byGroup":"Close files in the group","opened.editors.save.byGroup":"Save files in the group","opened.editors.empty":"No file is open in the editor","opened.editors.group.title":"Group {0}","opened.editors.open":"Open","opened.editors.openToTheSide":"Open To The Side","opened.editors.compare":"Compare With Current File","opened.editors.copyRelativePath":"Copy Relative Path","opened.editors.copyPath":"Copy Path","terminal.name":"TERMINAL","terminal.disconnected":"Terminal Already Disconnected","terminal.can.not.reconnect":"Terminal Unavailable, Please","terminal.stop":"Stop The Terminal","terminal.try.reconnect":"Try To Reconnect The Terminal","terminal.new":"Create Terminal","terminal.split":"Split Terminal","terminal.clear":"Remove All Terminals","terminal.clear.content":"Clear All Terminals","terminal.independ":"Independ Terminal","terminal.maximum":"Maximum Terminal Panel","terminal.or":"Or","terminal.search":"Search","terminal.search.next":"Search Next","terminal.openWithPath":"Open In The Terminal","terminal.remove":"Kill terminal","terminal.menu.search":"Search","terminal.menu.split":"Split","terminal.menu.rename":"Rename","terminal.menu.selectAll":"Select All","terminal.menu.copy":"Copy","terminal.menu.paste":"Paste","terminal.menu.clear":"Clear","terminal.menu.stop":"Stop","terminal.menu.stopGroup":"Stop Group","terminal.menu.stopGroups":"Stop All Terminals","terminal.menu.clearGroups":"Clear All Terminals","terminal.menu.selectType":"Default Terminal Type","terminal.menu.moreSettings":"More Settings","terminal.menu.clearCurrentGroup":"Clear Current Terminals","terminal.menu.clearAllGroups":"Clear All Terminals","terminal.environment.changed":"Extensions have made changes to this terminal's environment","terminal.environment.relaunch":"Relaunch Terminal","terminal.environment.changes":"Extensions want to make the following changes to the terminal's environment:","terminal.environment.removal":"Extensions want to remove these existing changes from the terminal's environment:","deugger.menu.setValue":"Set Value","deugger.menu.setValue.param":"Please input the value of this variable","deugger.menu.copyValue":"Copy Value","theme.toggle":"Color Theme","theme.icon.toggle":"File Icon Theme","theme.base.vs":"Light Theme","theme.base.vs-dark":"Dark Theme","theme.base.hc-black":"High Contrast Theme","theme.quickopen.plh":"Select Color Theme(Up/Down Keys to Preview)","icon.quickopen.plh":"Select Icon Theme(Up/Down Keys to Preview)","preference.workbench.list.openMode":"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable.","preference.workbench.list.openMode.title":"Tree/List open mode","keymaps.search.placeholder":"Type to search in keybindings","keymaps.search.keyboard.placeholder":"Type to search in keybindings","keymaps.header.command.title":"Command","keymaps.header.source.title":"Source","keymaps.header.keybinding.title":"Keybinding","keymaps.header.when.title":"When","keymaps.source.default":"DEFAULT","keymaps.source.user":"USER","keymaps.source.workspace":"WORKSPACE","keymaps.keybinding.full.collide":'Contains conflict between this shortcut and "{0}" command, please reset',"keymaps.keybinding.partial.collide":'Contains conflict between this shortcut and "{0}" command, please reset',"keymaps.keybinding.shadow.collide":'Contains conflict between this shortcut and "{0}" command, please reset',"keymaps.keybinding.duplicate":"This shortcut is bound to the following {0} commands:","keymaps.keybinding.success":"Edit Keybinding success","keymaps.keybinding.require":"keybinding value is required","keymaps.action.edit":"Edit","keymaps.action.add":"Add","keymaps.action.reset":"Reset","keymaps.action.clear":"Clear","keymaps.edit.placeholder":"Press Enter to save","keymaps.editorTitle.openSource":"Open Keymap ShortCut(JSON)","keymaps.editorTitle.openKeymap":"Open Keymap ShortCut","keybinding.combination.tip":"({0}) was pressed, waiting for more keys","layout.tabbar.hide":"HIDE","layout.view.hide":"HIDE","marketplace.extension.update.now":"Update now","marketplace.extension.update.delay":"Update later","marketplace.extension.uninstall.failed":"Failed to uninstall","marketplace.extension.uninstall.failed.depended":'Cannot uninstall extension "{0}". Extension "{1}" depends on this.',"marketplace.extension.disabled.failed.depended":'Cannot disable extension "{0}". Extension "{1}" depends on this.',"marketplace.extension.reload.delay":"Restart later","marketplace.extension.reload.now":"Restart now","marketplace.extension.builtin":"Builtin","marketplace.extension.development":"Develop","marketplace.extension.enable":"Enable","marketplace.extension.disable":"Disable","marketplace.extension.enable.workspace":"Enable(workspace)","marketplace.extension.disable.workspace":"Disable(workspace)","marketplace.extension.enable.all":"Enable All Extensions","marketplace.extension.disable.all":"Disable All Extensions","marketplace.extension.install":"Install","marketplace.extension.container":"EXTENSIONS MARKET","marketplace.extension.empty.disabled":"No disabled extensions yet","marketplace.extension.notfound":"No Extension","marketplace.panel.hot":"Hot Extensions","marketplace.panel.search":"Search","marketplace.panel.enabled":"Enabled","marketplace.panel.disabled":"Disabled","marketplace.panel.tab.marketplace":"Marketplace","marketplace.panel.tab.placeholder.search":"Search from marketplace","marketplace.tab.installed":"Installed","marketplace.panel.tab.placeholder.installed":"Search from installed","marketplace.extension.findUpdate":"Find Extension {0} has new version {1},Do you want to update?","marketplace.extension.updateAll":"Find multiple extensions that can be updated. Do you want to update all?","marketplace.extension.needreloadFromAll":"All extensions are updated and will take effect after reload window. Do you want to reload window now?","marketplace.extension.needreload":"Updating extension {0} is completed. Do you want to reload window now?","marketplace.extension.canupdate":"Can update","marketplace.extension.updating":"Updating","marketplace.extension.update":"Update","marketplace.extension.installing":"Installing","marketplace.extension.reloadrequire":"Require reload","marketplace.extension.uninstalling":"Uninstalling","marketplace.extension.uninstall":"Uninstall","marketplace.extension.readme":"Readme","marketplace.extension.changelog":"Changelog","marketplace.extension.dependencies":"Dependencies","marketplace.extension.otherVersion":"Install Other Version","marketplace.extension.currentVersion":"Current Version","marketplace.extension.installed":"Installed","marketplace.quickopen.install":"Install Extension","marketplace.quickopen.install.byReleaseId":"Install Extension (ReleaseId)","marketplace.quickopen.install.releaseId":"Extension ReleaseId","marketplace.quickopen.install.releaseId.required":"Extension Release ID is required","marketplace.quickopen.install.id":"Extension ID","marketplace.quickopen.install.id.required":"Extension ID is required","marketplace.quickopen.install.version.required":"Extension version is require","marketplace.quickopen.install.version.placeholder":"Extension version","marketplace.quickopen.install.error":"Install Extension has error",saveChangesMessage:"Do you want to save the changes you made to {0}?","file.prompt.dontSave":"Don't Save","file.prompt.save":"Save","file.prompt.cancel":"Cancel","doc.saveError.failed":"File Saving Failed. Reason: ","doc.saveError.diff":"{0} cannot be saved because it has been modified by other editors.","doc.saveError.diffAndSave":"Compare...","editor.compareAndSave.title":"{0} (on Disk) <=> {1} (Editing) ","workspace.openDirectory":"Open Directory","workspace.addFolderToWorkspace":"Add Folder Into Workspace ...","workspace.saveWorkspaceAsFile":"Save Workspace As ...","workspace.openWorkspace":"Open Workspace","workspace.openWorkspaceTitle":"Workspace","window.toggleDevTools":"Toggle Developer Tools","window.reload":"Reload Window",about:"About","outline.title":"OutLine","outline.noinfo":"There is no outline information from the active editor","outline.collapse.all":"Collapse All","outline.sort.kind":"Sort By SymbolKind","outline.sort.name":"Sort By SymbolName","outline.sort.position":"Sort By Position","outline.follow.cursor":"Follow Cursor","welcome.title":"Welcome","welcome.quckstart":"Quick Start","welcome.recent.workspace":"Recent Workspaces","markers.title":"PROBLEMS","markers.panel.content.empty":"No problems have been detected in the workspace so far.","markers.panel.filter.errors":"errors","markers.panel.filter.warnings":"warnings","markers.panel.filter.infos":"infos","markers.filter.placefolder":"Filter. E.g.: text, **/*.ts, !**/node_modules/**","markers.filter.content.empty":"No results found with provided filter criteria.","markers.filter.reset":"Clear Filter.","app.quit":"Quit","view.zoomReset":"Zoom Reset","view.zoomIn":"Zoom In","view.zoomOut":"Zoom Out","kaitianExtension.invalidExthostReload.confirm.content":"Ext-host process is invalid. Click to refresh to resume this process.","kaitianExtension.invalidExthostReload.confirm.ok":"Refresh","kaitianExtension.invalidExthostReload.confirm.cancel":"Ignore and continue to use","kaitianExtension.crashedExthostReload.confirm":"Ext-host process crashed, restart this process?","extension.no.view.found":"The view component registered with the plugin {0} could not be found. \n Please make sure that the component named {1} has been exported from the plugin.","extension.profilingExtensionHost":"Profiling Extension Host","extension.profiling.clickStop":"Click to stop profiling.","extension.profile.save":"Save Extension Host Profile",comments:"Comments","comments.reply.placeholder":"Reply","comments.participants":"Participants","comments.zone.title":"Start discussion","comments.panel.action.collapse":"Collapse All","comments.thread.action.close":"Close Panel","comments.thread.action.openFile":"Open file","comments.thread.action.next":"Next Comment","comments.thread.action.previous":"Previous Comment","comments.thread.action.reply":"Reply","comments.panel.placeholder":"No Comments","comments.thread.textarea.write":"Write","comments.thread.textarea.preview":"Preview","treeview.command.action.collapse":"Collapse ALL","task.outputchannel.name":"Task","task.label":"{0} : {1}","TaskService.pickRunTask":"Select the task to run","TerminalTaskSystem.terminalName":"Task - {0}","terminal.integrated.exitedWithCode":"The terminal process terminated with exit code: {0}",reuseTerminal:"Terminal will be reused by tasks, press any key to close it.","toolbar-customize.buttonDisplay.description":"Button Style","toolbar-customize.buttonDisplay.icon":"Icon Only","toolbar-customize.buttonDisplay.iconAndText":"Icon And Text","toolbar-customize.complete":"Complete","toolbar.customize.menu":"Customize Toolbar...","workbench.uploadingFiles":"{0} Files Uploading {1}/s","workspace.development.title":"Extension Development Host","workbench.testViewContainer":"Test","variable.list.all":"Variables: List All","variable.registered.variables":"Registered variables","main-layout.left-panel.toggle":"Toggle Left Side Bar","main-layout.left-panel.show":"Show Left Side Bar","main-layout.left-panel.hide":"Hide Left Side Bar","main-layout.right-panel.toggle":"Toggle Right Side Bar","main-layout.right-panel.show":"Show Right Side Bar","main-layout.right-panel.hide":"Hide Right Side Bar","main-layout.bottom-panel.toggle":"Toggle Bottom Side Bar","main-layout.bottom-panel.show":"Show Bottom Side Bar","main-layout.bottom-panel.hide":"Hide Bottom Side Bar","refactor-preview.title":"REFACTOR PREVIEW","refactor-preview.title.clear":"Discard Refactoring","refactor-preview.title.apply":"Apply Refactoring","refactor-preview.overlay.title":"Another refactoring is being previewed.","refactor-preview.overlay.detail":"Press 'Continue' to discard the previous refactoring and continue with the current refactoring.","refactor-preview.overlay.continue":"Continue","refactor-preview.overlay.cancel":"Cancel","refactor-preview.file.create":"Creating","refactor-preview.file.delete":"Deleting","refactor-preview.file.move":"Moving","welcome-view.noOpenRepo":"No source control providers registered.","welcome-view.noFolderHelp":"You have not yet opened a folder.\n[Open Folder](command:{0})","welcome-view.noLaunchJson":"No debug configuration detected。\n[Create Debug Configuration](command:{0})","authentication.manageTrustedExtensions":"Manage Trusted Extensions","authentication.manageExtensions":"Choose which extensions can access this account","authentication.noTrustedExtensions":"This account has not been used by any extensions.","authentication.accountLastUsedDate":"Last used this account","authentication.notUsed":"Has not used this account","authentication.signOutMessage":"The account {0} has been used by: \n\n{1}\n\n Sign out of these features?","authentication.signOutMessageSimple":"Sign out of {0}?","authentication.useOtherAccount":"Sign in to another account","authentication.selectAccount":"The extension '{0}' wants to access a {1} account","authentication.getSessionPlaceholder":"Select an account for '{0}' to use or Esc to cancel","authentication.confirmAuthenticationAccess":"The extension '{0}' wants to access the {1} account '{2}'.","authentication.confirmLogin":"The extension '{0}' wants to sign in using {1}.","authentication.signInRequests":"Sign in to use {0} (1)","authentication.signOut":"Sign out {0}","authentication.noAccounts":"You are not signed in to any accounts","authentication.signedOut":"Successfully signed out.","refactoring-changes.ask.1.create":"Extension '{0}' wants to make refactoring changes with this file creation","refactoring-changes.ask.1.copy":"Extension '{0}' wants to make refactoring changes with this file copy","refactoring-changes.ask.1.move":"Extension '{0}' wants to make refactoring changes with this file move","refactoring-changes.ask.1.delete":"Extension '{0}' wants to make refactoring changes with this file deletion","refactoring-changes.ask.N.create":"{0} extensions want to make refactoring changes with this file creation","refactoring-changes.ask.N.copy":"{0} extensions want to make refactoring changes with this file copy","refactoring-changes.ask.N.move":"{0} extensions want to make refactoring changes with this file move","refactoring-changes.ask.N.delete":"{0} extensions want to make refactoring changes with this file deletion"}}},8851:(e,t,i)=>{"use strict";const r=i(65686),n=i(92355),o=i(49978);r.registerLocalizationBundle(n.localizationBundle),r.registerLocalizationBundle(o.localizationBundle)},92355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizationBundle={languageId:"zh-CN",languageName:"Chinese",localizedLanguageName:"中文(中国)",contents:{ButtonAllow:"允许",ButtonOK:"确定",ButtonCancel:"取消","common.yes":"是","common.no":"否",extension:"插件","tree.filter.placeholder":"输入关键字或路径查找","file.new":"新建文件","file.folder.new":"新建文件夹","file.locate":"文件定位","file.save":"保存文件","file.saveAll":"保存全部","file.autoSave":"自动保存","file.open":"打开文件","file.open.side":"侧边栏打开","file.delete":"删除","file.rename":"重命名","file.compare":"与编辑器中的文件比较","file.close":"关闭文件","file.copy.path":"复制路径","file.copy.relativepath":"复制相对路径","file.paste.file":"粘贴","file.copy.file":"复制","file.cut.file":"剪切","file.move.existMessage":"要粘贴的文件同时被删除或移动。无法移动/复制。文件已存在于目标位置。","file.action.new.file":"新建文件","file.action.new.folder":"新建文件夹","file.action.refresh":"刷新文件","file.action.collapse":"全部折叠","file.location":"在文件树中定位","file.open.folder":"打开文件夹","file.open.workspace":"打开工作区","file.confirm.delete":"确定删除下面列的文件?\n{0}","file.confirm.delete.ok":"移入回收站","file.confirm.delete.cancel":"取消","file.confirm.move":"确定移动文件{0} 到 {1}?","file.confirm.move.ok":"移动","file.confirm.move.cancel":"取消","file.confirm.replace":"确定替换{0}文件?","file.confirm.replace.ok":"替换","file.confirm.replace.cancel":"取消","file.empty.defaultTitle":"无打开的文件夹","file.empty.defaultMessage":"尚未打开文件夹","file.workspace.defaultTip":"无标题(工作区)","file.workspace.defaultWorkspaceTip":"{0}(工作区)","file.empty.openFolder":"打开文件夹","file.collapse":"全部折叠","file.refresh":"刷新","file.search.folder":"在文件夹中查找","file.focus.files":"在资源管理器中聚焦文件","file.filetree.filter":"在展开文件中查找","file.filetree.openWithPath":"在终端中打开","file.tooltip.symbolicLink":"符号链接","file.resource-deleted":"(已删除)","menu-bar.title.file":"文件","menu-bar.title.edit":"编辑","menu-bar.title.selection":"选择","menu-bar.title.view":"视图","menu-bar.title.go":"前往","menu-bar.title.debug":"调试","menu-bar.title.terminal":"终端","menu-bar.title.window":"窗口","menu-bar.title.help":"帮助","menu-bar.file.open":"打开文件","menu-bar.file.save-as":"另存为","menu-bar.file.save-all":"全部保存","menu-bar.view.quick.command":"命令面板","menu-bar.view.outward":"外观","menu-bar.view.outward.right-panel.toggle":"切换右侧面板","menu-bar.view.outward.right-panel.hide":"隐藏右侧面板","menu-bar.view.outward.right-panel.show":"显示右侧面板","menu-bar.view.outward.left-panel.hide":"隐藏左侧面板","menu-bar.view.outward.left-panel.show":"显示左侧面板","menu-bar.view.outward.theme.toggle":"切换皮肤","menu-bar.view.outward.localize.toggle":"切换语言","menu-bar.view.outward.localize.toogle.message":"已经切换到语言: %s",editor:"编辑器","editor.undo":"撤销","editor.redo":"重做","editor.saveCurrent":"保存当前文件","editor.title.context.close":"关闭","editor.closeCurrent":"关闭当前编辑窗口","editor.openExternal":"使用外部软件打开","editor.cannotOpenBinary":"我们无法在编辑器中展示这个文件。","editor.splitToLeft":"向左拆分","editor.splitToRight":"向右拆分","editor.splitToTop":"向上拆分","editor.splitToBottom":"向下拆分","editor.closeAllInGroup":"关闭全部","editor.closeSaved":"关闭已保存","editor.closeOtherEditors":"关闭其他","editor.closeToRight":"关闭到右侧","editor.cannotSaveWithoutDirectory":"请选择要保存的路径","editor.failToOpen":"打开文件 {0} 失败, 请确认文件是否存在。详细错误信息: {1}","editor.workspaceSymbol.quickopen":"搜索工作区符号","editor.workspaceSymbol.description":"跳转工作区符号","editor.workspaceSymbol.search":"请输入要搜索的符号","editor.workspaceSymbol.notfound":"没有匹配的工作区符号","edit.cut":"剪切","edit.copy":"复制","edit.paste":"粘贴","edit.selectAll":"全选","editor.goBack":"向后","editor.goForward":"前进","editor.quickOpen":"转到文件...","editor.editor.goToSymbol":"转到符号...","editor.goToLine":"转到行...","quickopen.command.placeholder":"请输入你要执行的命令","quickopen.command.description":"执行 IDE 预设的命令","quickopen.command.nohandler":"找不到结果","quickopen.quickinput.prompt":"请按 '回车(Enter)' 确认你的输入或者按 '取消(Esc)' 取消输入","explorer.title":"资源管理器","explorer.electron.revealInFinder":"在文件系统中打开","explorer.electron.openInSystemTerminal":"在系统终端中打开","explorer.electron.openInSystemTerminal.error":"在系统终端中打开 {0} 失败: {1}","search.title":"跨文件搜索","search.input.placeholder":"输入搜索内容","search.input.title":"搜索","search.replace.title":"替换","search.input.checkbox":"显示搜索条件","file-search.command.fileOpen.description":"打开文件","file-search.command.fileOpen.placeholder":"按名称搜索文件(追加@转到符号)","search.includes":"要包含的文件","search.includes.description":'输入文件名或文件夹名,多个用 "," 分隔',"search.excludes":"要排除的文件","search.excludes.default.enable":"启用默认排除项","search.replaceAll.label":"替换全部","search.replace.label":"替换为","search.files.result.kt":"找到 {1} 个文件,共 {0} 个结果","search.CollapseDeepestExpandedLevelAction.label":"全部折叠","search.ExpandDeepestExpandedLevelAction.label":"全部展开","search.ClearSearchResultsAction.label":"清空搜索结果","search.RefreshAction.label":"刷新","search.removeAll.occurrences.files.confirmation.message":"确定替换 {1} 个文件中的 {0} 个结果吗?","search.removeAll.occurrences.file.confirmation.message":"确定替换该文件中的 {0} 个结果吗?","search.result.hide":"隐藏","search.menu.copyAll":"全部复制","search.help.showIncludeRule":"查看语法规则","search.help.supportRule":"支持以下语法规则:","search.help.excludeList":"已排除项包含:","search.help.concatRule":"多个条件分隔","search.help.matchOneOrMoreRule":"匹配路径段中的一个或多个字符","search.help.matchOne":"匹配路径段中的一个字符","search.help.matchAny":"匹配任意数量的路径段,包括无","search.help.matchWithGroup":"组合条件","search.help.matchRange":"匹配的字符范围","search.help.modify":"修改","search.replace.buttonOK":"替换","search.replace.buttonCancel":"取消","search.too.many.results":"由于您的搜索条件过于疏松,我们仅展示了部分搜索结果","file-search.quickOpen.leftRight":"在侧边打开","file-search.quickOpen.upDown":"在底部打开","search.fileReplaceChanges":"{0} ↔ {1} (替换预览)",fileResults:"文件结果",historyMatches:"最近打开","replaceAll.occurrences.files.message":"已将 {1} 个文件中出现的 {0} 处替换为“{2}”。","search.replace.toggle.button.title":"切换替换",caseDescription:"区分大小写",wordsDescription:"全字匹配",regexDescription:"使用正则表达式",includeIgnoredFiles:"包含忽略的文件",onlyOpenEditors:"仅在已打开的编辑器内搜索","match.replace.label":"替换",noResultsFound:"未找到结果。查看您的设置配置排除, 并检查您的 gitignore 文件","quickopen.recent-commands":"最近使用","quickopen.other-commands":"其他命令",mSelection:"选择","selection.all":"选择全部","dialog.confirm":"知道了","dialog.file.name":"文件名","dialog.file.title":"存储目录:","dialog.file.openLabel":"打开文件:","dialog.file.saveLabel":"保存文件:","dialog.file.close":"关闭","dialog.file.ok":"确定","menu-bar.file.pref":"设置","editorOpenType.code":"代码","editorOpenType.preview":"预览","scm.title":"源代码管理","scm.action.git.refresh":"刷新","scm.action.git.commit":"提交","scm.action.git.more":"提交","scm.statusbar.repo":"当前仓库","scm.provider.title":"代码仓库列表","scm.provider.empty":"没有可用的源代码仓库","scm.provider.init":"点击初始化仓库","scm.diff.change.next":"下一个变化","scm.diff.change.previous":"上一个变化","scm.diff.toggle.renderSideBySide":"切换内联视图","debug.action.start":"启动调试","debug.action.no.configuration":"暂无配置","debug.action.add.configuration":"添加配置...","debug.action.open.configuration":"打开 launch.json","debug.action.debug.console":"调试控制台","debug.action.step-into":"单步跳入","debug.action.step-over":"单步跳过","debug.action.step-out":"单步跳出","debug.action.restart":"重启","debug.action.pause":"暂停","debug.action.stop":"终止","debug.action.disattach":"断开","debug.action.continue":"下一步","debug.console.panel.title":"调试控制台","debug.console.panel.default":"默认","debug.console.filter.placeholder":"筛选器(例如 text、!exclude)","debug.console.clear":"清空日志","debug.console.copy":"复制","debug.console.copyAll":"复制全部","debug.console.collapseAll":"折叠全部","output.tabbar.title":"输出","output.channel.none":"<还没有任何输出>","output.configurationTitle":"输出配置","output.logWhenNoPanel":"无面板时是否输出到浏览器 console","output.maxChannelLine":"限制输出最大行数","output.maxChannelLineDesc":"限制单个输出通道最大行数,超出后会自动裁剪","output.enableLogHighlight":"输出文本语法高亮","output.enableLogHighlightDesc":"对输出文本使用 .log 语法高亮解析。","output.enableSmartScroll":"输出视图智能滚动","output.enableSmartScrollDesc":"在点击输出视图时禁用滚动,点击最后一行输出时启用滚动。","debug.stack.loadMore":"展开全部堆栈","debug.stack.loading":"加载中...","debug.breakpoint.deactive":"关闭所有断点","debug.breakpoint.active":"激活所有断点","debug.threads.title":"进程","debug.watch.title":"监听","debug.callStack.title":"堆栈","debug.variables.title":"变量","debug.breakpoints.title":"断点","debug.container.title":"调试管理器","debug.breakpoint.toggle":"启用/禁用断点","debug.breakpoint.removeAll":"移除所有断点","debug.breakpoint.uncaughtExceptions":"未捕获的异常","debug.breakpoint.allExceptions":"所有异常","debug.watch.removeAll":"移除所有表达式","debug.watch.collapseAll":"折叠所有表达式","debug.watch.add":"添加表达式","debug.watch.edit":"编辑表达式","debug.watch.copyValue":"复制值","debug.watch.remove":"删除表达式","debug.watch.notAvailable":"不可用","debug.breakpoint.breakpointMessage":"断点","debug.breakpoint.logpointMessage":"日志断点","debug.breakpoint.conditionalMessage":"条件断点","debug.breakpoint.unverified":"无效的","debug.breakpoint.disabled":"禁用的","debug.configuration.comment1":"使用 IntelliSense 了解相关属性。 ","debug.configuration.comment2":"悬停以查看现有属性的描述。","debug.configuration.comment3":"欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387","debug.launch.existed":'调试配置"{0}"已在运行',"debug.expression.log.placeholder":'遇到断点时要记录的消息。 {}中的表达式是插值的。. 按 "Enter" 键确认,"Esc" 键取消。',"debug.expression.hit.placeholder":'满足命中次数条件时中断。 按 "Enter" 键确认,"Esc" 键取消。',"debug.expression.condition.placeholder":'在表达式结果为真时中断。按 "Enter" 键确认,"Esc" 键取消。',"debug.expression.condition":"表达式","debug.expression.hitCondition":"命中次数","debug.expression.logMessage":"记录消息","debug.menu.delete.breakpoint":"删除断点","debug.menu.edit.breakpoint":"编辑断点","debug.menu.disable.breakpoint":"禁用断点","debug.menu.enable.breakpoint":"启用断点","debug.menu.add.logpoint":"添加记录点","debug.menu.add.conditional":"添加条件断点","debug.menu.add.breakpoint":"添加断点","debug.menu.disable.logpoint":"禁用记录点","debug.stack.frame.noSource":"未知源","debug.stack.frame.because":"因","debug.stack.frame.stopped":"已暂停","debug.stack.frame.running":"正在运行","debug.hover.not.available":"暂无值","debug.launch.configurations.debugType":"配置类型。","debug.launch.configurations.debugTypeNotRecognised":"无法识别此调试类型。确保已经安装并启用相应的调试扩展。","debug.launch.configurations.node2NotSupported":"不再支持 'node2',改用 'node',并将 'protocol' 属性设为 'inspector'。","debug.launch.configurations.debugName":"配置名称;在启动配置下拉菜单中显示。","debug.launch.configurations.debugRequest":'请求配置类型。可以是 "启动" 或 "附加"。',"debug.launch.configurations.debugServer":"仅用于调试扩展开发: 如果已指定端口,VS 代码会尝试连接到在服务器模式中运行的调试适配器","debug.launch.configurations.debugPrelaunchTask":"调试会话开始前要运行的任务。","debug.launch.configurations.debugPostDebugTask":"调试会话结束后运行的任务。","debug.launch.configurations.debugWindowsConfiguration":"特定于 Windows 的启动配置属性。","debug.launch.configurations.debugOSXConfiguration":"特定于 OS X 的启动配置属性。","debug.launch.configurations.debugLinuxConfiguration":"特定于 Linux 的启动配置属性。","workspace.openDirectory":"打开文件夹","workspace.addFolderToWorkspace":"将文件夹添加到工作区...","workspace.saveWorkspaceAsFile":"将工作区另存为...","workspace.openWorkspaceTitle":"工作区","workspace.openWorkspace":"打开工作区","window.toggleDevTools":"切换开发人员工具","window.reload":"重载窗口","preference.explorer.confirm.delete":"控制是否在删除文件时弹出确认框","preference.explorer.confirm.move":"控制是否在移动文件时弹出确认框","preference.files.watcherExclude":"配置排除文件监听的文件路径 glob 模式,模式必须在绝对路径上匹配(即前缀为 ** 或完整路径才能正确匹配)。更改此设置需要重新启动。若在启动时遇到代码占用大量 CPU 时间,可以排除大文件夹以减少初始加载。","preference.files.exclude":"配置排除的文件和文件夹的 glob 模式,资源管理器将根据此设置决定要显示或隐藏的文件和文件夹。","preference.search.exclude":"配置在搜索中排除的文件和文件夹的 glob 模式。已经继承 `#files.exclude#` 设置的所有 glob 模式。","preference.search.include":"配置在搜索中包含的文件和文件夹的 glob 模式","preference.files.watcherExclude.title":"排除文件监听","preference.search.exclude.title":"搜索排除文件","preference.search.useReplacePreview":"控制搜索替换打开编辑器时,是否打开“替换预览”。","preference.files.exclude.title":"排除文件显示","preference.debug.internalConsoleOptions":"控制何时打开内部调试控制台。","preference.debug.openDebug":"控制何时打开调试视图。","preference.debug.debugViewLocation":"控制调试视图的位置。","preference.debug.trace":"启用/禁用与调试适配器的堆栈通信。","preference.debug.allowBreakpointsEverywhere":"允许在所有文件中设置断点。","preference.debug.toolbar.float":"浮层模式","preference.files.associations.title":"文件关联","preference.files.associations":'配置语言的文件关联(如 "*.extension": "html")。这些关联的优先级高于已安装语言的默认关联。',"preference.files.encoding.title":"文件编码","preference.files.encoding":"读写文件时使用的默认字符集编码","preference.explorer.fileTree.indent.title":"资源管理器:文件树子节点缩进","preference.explorer.fileTree.baseIndent.title":"资源管理器:文件树基础缩进","preference.debug.toolbar.float.title":"运行与调试:浮层模式","preference.explorer.compactFolders":"文件夹紧凑模式下,单个子文件夹将被压缩在组合的树元素中,对 Java 包结构很有用。","preference.explorer.compactFolders.title":"资源管理器:文件夹紧凑模式","preference.explorer.autoReveal":"打开文件时自动显示并聚焦","preference.editorTitle.openSource":"打开设置(JSON)","preference.editorTitle.openUserSource":"打开全局设置(JSON)","preference.editorTitle.openWorkspaceSource":"打开工作区设置(JSON)","preference.editorTitle.openPreference":"打开设置(可视化)","preference.view.saveLayoutWithWorkspace.title":"控制是否将布局信息与工作区绑定","preference.stringArray.operate.delete":"删除","preference.stringArray.operate.edit":"修改","preference.stringArray.operate.editTip":"按回车确认","preference.stringArray.none":"暂无可选值","preference.terminal.type":"默认终端类型","preference.terminal.typeDesc":"控制打开终端所使用的默认 Shell 类型。","preference.terminal.fontFamily":"终端字体","preference.terminal.fontSize":"终端字体大小","preference.terminal.fontWeight":"终端字体权重","preference.terminal.lineHeight":"终端文字行高","preference.terminal.cursorBlink":"终端光标是否闪烁","preference.terminal.scrollback":"终端可滚动内容行数","preference.terminal.integrated.shellArgs.linux":"Linux 终端命令行参数","preference.terminal.integrated.shellArgs.linuxDesc":"配置在 Linux 终端上时要使用的命令行参数。","settings.group.general":"常规","settings.group.shortcut":"快捷键","settings.group.editor":"编辑器","settings.group.extension":"扩展","settings.group.feature":"功能","settings.group.terminal":"终端","settings.group.view":"视图","preference.general.theme":"主题","preference.general.icon":"图标主题","preference.workbench.colorCustomizations":"覆盖当前所选颜色主题的颜色","preference.editor.tokenColorCustomizations":"覆盖当前所选颜色主题中的编辑器颜色和字体样式","preference.general.language":"语言","preference.general.language.change.refresh.info":"更改语言后需重启后生效,是否立即刷新?","preference.general.language.change.refresh.now":"立即刷新","preference.general.language.change.refresh.later":"稍后自己刷新","preference.workbench.refactoringChanges.showPreviewStrategy":"触发一些重构变更时,是否需要弹窗确认","preference.workbench.refactoringChanges.showPreviewStrategy.title":"重构确认方式","preference.editor.previewMode":"使用预览模式打开","preference.editor.fontFamily":"字体","preference.editor.minimap":"显示 Minimap","preference.editor.forceReadOnly":"只读模式","preference.editor.renderLineHighlight":"当前行突出显示","preference.editor.fontWeight":"字体粗细","preference.editor.fontSize":"字体大小","preference.editor.tabSize":"Tab 缩进大小","preference.editor.detectIndentation":"自动检测缩进大小","preference.editor.renderWhitespace":"显示空白字符","preference.editor.cursorStyle":"光标样式","preference.editor.insertSpace":"使用空格代替 Tab","preference.editor.wordWrap":"自动换行","preference.editor.wordWrapColumn":"自动换行长度","preference.editor.askIfDiff":"保存文件冲突时提示","preference.editor.readonlyFiles":"只读文件列表","preference.editor.formatOnSave":"在保存时格式化文件","preference.editor.formatOnSaveTimeout":"保存时格式化超时","preference.editor.formatOnSaveTimeoutError":"格式化时间超过 {0} 毫秒,终止格式化","preference.editor.autoSave":"自动保存文件","preference.editor.autoSaveDelay":"自动保存延迟","preference.editor.maxTokenizationLineLength":"最大解析标识长度","preference.editor.quickSuggestionsDelay":"智能提示延迟(毫秒)","preference.editor.largeFile":"超大文件尺寸","preference.files.eol":"文件行尾字符","preference.editor.formatOnPaste":"粘贴时自动格式化","preference.editor.preferredFormatter":"默认格式化器","preference.array.additem":"添加","editor.configuration.renderLineHighlight":"控制编辑器的当前行突出显示方式。","editor.configuration.formatOnSaveTimeout":"控制保存时格式化的超时时间(毫秒)。仅当 `#editor.formatOnSave#` 启用时生效。","editor.configuration.autoSave":"控制如何自动保存文件。","editor.configuration.autoSaveDelay":"控制自动保存的延迟时长(毫秒)。仅当 `#editor.autoSave#` 设置为“编辑后自动保存”时生效。","editor.configuration.askIfDiff":"保存文件时如果磁盘上的文件较新,进行提示手动解决保存冲突。","editor.configuration.forceReadOnly":"是否启用 只读模式","editor.autoSave.enum.off":"不启用","editor.files.eol":"文件行尾字符","editor.files.eolDesc":"控制文件默认行尾字符。","editor.autoSave.enum.editorFocusChange":"编辑器失去焦点时自动保存","editor.autoSave.enum.afterDelay":"编辑后自动保存(延迟一定时间)","editor.autoSave.enum.windowLostFocus":"窗口失去焦点时自动保存","editor.action.accept":"接受更改(使用右边)","editor.action.revert":"回退更改(使用左边)","editor.format.chooseFormatter":"选择要使用的格式化扩展。","editor.configuration.preferredFormatter":"配置优先使用的格式化器。","editor.chooseEncoding":"用编码重新打开(会丢失未保存内容)","editor.changeEol":"选择行尾序列","editor.changeLanguageId":"选择语言模式","editor.configuration.maxTokenizationLineLength":"由于性能原因,超过这个长度的行将不会被标识。","editor.configuration.quickSuggestionsDelay":"控制显示智能提示的延迟时长 (毫秒)。","editor.configuration.tabSize":"控制 Tab 缩进等于的空格数。若启用 `#editor.detectIndentation#`,该设置可能会被覆盖","editor.configuration.largeFileSize":"控制超大文件的自定义体积。","editor.tokenize.test":"获取选中字符串的Tokenize结果(console)","editor.largeFile.prevent":"文件过大,继续打开可能会导致卡顿或者崩溃。","editor.largeFile.prevent.stillOpen":"仍要打开","preference.diffEditor.renderSideBySide":"显示并排差异编辑器","preference.diffEditor.ignoreTrimWhitespace":"忽略差异编辑器的前导和尾随空白字符","diffEditor.configuration.renderSideBySide":"控制差异编辑器的显示方式。","diffEditor.configuration.ignoreTrimWhitespace":"启用后,差异编辑器的前导和尾随空白字符将会忽略","status.editor.chooseLanguage":"选择语言模式","status.editor.chooseEncoding":"选择编码","status.editor.changeEol":"选择行尾序列","common.preference.open":"设置","common.keymaps.open":"快捷键","common.about":"关于","common.find":"查找","common.replace":"替换","component.message.origin":"来源","preference.tab.user":"全局设置","preference.tab.workspace":"工作区设置","preference.tab.name":"设置","preference.noResults":"未找到包含 '{0}' 的设置项","preference.editSettingsJson":"在 settings.json 中编辑","preference.overwritten":"(已被下一级设置覆盖)","preference.overwrittenInUser":"(已在全局设置中设置)","preference.overwrittenInWorkspace":"(已在工作区设置中设置)","preference.searchPlaceholder":"搜索设置...","keymaps.tab.name":"快捷键设置","marketplace.extension.update.now":"是,现在更新","marketplace.extension.update.delay":"稍后我自己更新","marketplace.extension.uninstall.failed":"卸载失败","marketplace.extension.uninstall.failed.depended":'无法卸载扩展程序 "{0}"。 扩展程序 "{1}" 依赖于此',"marketplace.extension.disabled.failed.depended":'无法禁用扩展 "{0}"。扩展 "{1}" 依赖于此。',"marketplace.extension.reload.delay":"稍后我自己重启","marketplace.extension.reload.now":"是,现在重启","marketplace.extension.enable":"启用","marketplace.extension.disable":"禁用","marketplace.extension.enable.workspace":"启用(工作空间)","marketplace.extension.disable.workspace":"禁用(工作空间)","marketplace.extension.enable.all":"启用所有插件","marketplace.extension.disable.all":"禁用所有插件","marketplace.extension.builtin":"内置","marketplace.extension.development":"开发模式","marketplace.extension.install":"安装","marketplace.extension.container":"扩展市场","marketplace.extension.empty.disabled":"暂无已禁用的扩展","marketplace.extension.notfound":"找不到扩展","marketplace.panel.hot":"热门插件","marketplace.panel.search":"搜索","marketplace.panel.enabled":"已启用","marketplace.panel.disabled":"已禁用","marketplace.panel.tab.marketplace":"扩展市场","marketplace.panel.tab.placeholder.search":"搜索市场中的扩展","marketplace.panel.tab.placeholder.installed":"搜索已安装的扩展","marketplace.tab.installed":"已安装的扩展","marketplace.extension.findUpdate":"发现插件 {0} 有最新版本 {1},是否要更新到最新版本?","marketplace.extension.updateAll":"发现有多个扩展可以更新,是否一键全部更新?","marketplace.extension.needreloadFromAll":"所有扩展更新完毕,重启后生效,是否立即重启?","marketplace.extension.needreload":"插件 {0} 更新成功,重启后生效,是否立即重启?","marketplace.extension.canupdate":"有新版本","marketplace.extension.updating":"更新中","marketplace.extension.update":"更新","marketplace.extension.installing":"安装中","marketplace.extension.reloadrequire":"需要重启","marketplace.extension.uninstalling":"卸载中","marketplace.extension.uninstall":"卸载","marketplace.extension.readme":"简介","marketplace.extension.changelog":"更改日志","marketplace.extension.dependencies":"依赖项","marketplace.extension.installed":"已安装","marketplace.extension.otherVersion":"安装其他版本","marketplace.extension.currentVersion":"当前版本","marketplace.quickopen.install":"安装插件","marketplace.quickopen.install.byReleaseId":"安装插件 (ReleaseId)","marketplace.quickopen.install.releaseId":"扩展 ReleaseId","marketplace.quickopen.install.releaseId.required":"扩展 ReleaseId 必填","marketplace.quickopen.install.id":"扩展 ID","marketplace.quickopen.install.id.required":"扩展 ID 必填","marketplace.quickopen.install.version.required":"扩展版本必填","marketplace.quickopen.install.version.placeholder":"扩展版本","marketplace.quickopen.install.error":"安装插件报错","validate.tree.emptyFileNameError":"需提供可用的文件或文件夹名称","validate.tree.fileNameStartsWithSlashError":"文件或文件夹名称不能以/开头","validate.tree.fileNameFollowOrStartWithSpaceWarning":"在文件或文件夹名称中检查到前导或尾随空格","validate.tree.fileNameExistsError":"文件或文件夹 **{0}** 已存在. 请使用另外的名称.","validate.tree.invalidFileNameError":"名称 **{0}** 不可用. 请使用另外的名称.","opened.editors.title":"打开的编辑器","opened.editors.save.all":"保存全部","opened.editors.close.all":"关闭全部","opened.editors.close.byGroup":"关闭组","opened.editors.save.byGroup":"保存组中未保存文件","opened.editors.empty":"编辑器中暂无打开文件","opened.editors.group.title":"第{0}组","opened.editors.open":"打开文件","opened.editors.openToTheSide":"侧边栏打开","opened.editors.compare":"与当前文件比较","opened.editors.copyRelativePath":"复制相对路径","opened.editors.copyPath":"复制路径","terminal.name":"终端","terminal.disconnected":"终端断开连接","terminal.can.not.reconnect":"终端不可用,请","terminal.stop":"终止终端","terminal.try.reconnect":"重新连接终端","terminal.new":"新建终端","terminal.split":"拆分终端","terminal.clear":"终止所有终端","terminal.clear.content":"清空当前终端内容","terminal.independ":"独立终端","terminal.maximum":"最大化面板大小","terminal.or":"或者","terminal.search":"搜索","terminal.search.next":"搜索下一个匹配项","terminal.openWithPath":"在终端中打开","terminal.remove":"终止终端","terminal.relaunch":"重启终端","terminal.menu.search":"搜索","terminal.menu.split":"拆分终端","terminal.menu.rename":"重命名","terminal.menu.selectAll":"全选","terminal.menu.copy":"复制","terminal.menu.paste":"粘贴","terminal.menu.clear":"清空","terminal.menu.stop":"终止","terminal.menu.stopGroup":"终止终端","terminal.menu.clearCurrentGroup":"清空当前终端日志","terminal.menu.clearAllGroups":"清空所有终端日志","terminal.menu.selectType":"默认终端类型","terminal.menu.moreSettings":"更多设置","terminal.environment.changed":"终端环境变量已经被部分插件修改","terminal.environment.changes":"扩展期望对终端的环境变量做以下更改:","terminal.environment.removal":"扩展期望从现有的终端环境变量中删除以下值:","deugger.menu.setValue":"设置变量","deugger.menu.setValue.param":"请输入你要改变变量的值","deugger.menu.copyValue":"复制值","theme.toggle":"颜色主题","theme.icon.toggle":"文件图标主题","theme.base.vs":"浅色主题","theme.base.vs-dark":"深色主题","theme.base.hc-black":"高对比度主题","theme.quickopen.plh":"选择主题(上下移动光标预览)","icon.quickopen.plh":"选择图标主题(上下移动光标预览)","preference.workbench.list.openMode":"控制如何使用鼠标展开树和打开列表项(若支持)。如果此设置不适用,某些树和列表可能会选择忽略此设置。","preference.workbench.list.openMode.title":"树展开/列表项打开方式","keymaps.search.placeholder":"输入关键字查找","keymaps.search.keyboard.placeholder":"输入快捷键","keymaps.header.command.title":"命令","keymaps.header.source.title":"作用域","keymaps.header.keybinding.title":"快捷键","keymaps.header.when.title":"条件","keymaps.source.default":"默认","keymaps.source.user":"用户","keymaps.source.workspace":"工作区","keymaps.keybinding.full.collide":'该快捷键与"{0}"命令冲突,请重新设置',"keymaps.keybinding.partial.collide":'该快捷键与"{0}"命令存在包含关系冲突,请重新设置',"keymaps.keybinding.shadow.collide":'该快捷键与"{0}"命令存在包含关系冲突,请重新设置',"keymaps.keybinding.duplicate":"该快捷键已绑定以下 {0} 条命令:","keymaps.keybinding.success":"快捷键修改成功","keymaps.keybinding.require":"请输入快捷键","keymaps.action.edit":"编辑快捷键","keymaps.action.add":"添加快捷键","keymaps.action.reset":"重置快捷键","keymaps.action.clear":"清空","keymaps.edit.placeholder":"请按 Enter 键保存","keymaps.editorTitle.openSource":"打开键盘快捷方式(JSON)","keymaps.editorTitle.openKeymap":"打开键盘快捷方式(可视化)","keybinding.combination.tip":"已按下({0}), 等待同时按下第二个键","layout.tabbar.hide":"隐藏面板","layout.view.hide":"隐藏","status-bar.label.line":"行","status-bar.label.column":"列","status-bar.label.selected":"已选择","status-bar.label.tabType.space":"空格","status-bar.label.tabType.tab":"Tab 大小",saveChangesMessage:"是否要保存对 {0} 的更改?","file.prompt.dontSave":"不保存","file.prompt.save":"保存","file.prompt.cancel":"取消","doc.saveError.failed":"文件保存失败, 原因:","doc.saveError.diff":"{0} 已经在磁盘上被修改,不能保存","doc.saveError.diffAndSave":"进行比较","editor.compareAndSave.title":"{0} (在磁盘上) <=> {1} (编辑中) ","outline.title":"大纲","outline.noinfo":"活动编辑器无法提供大纲信息","outline.collapse.all":"折叠全部","outline.sort.kind":"排序依据:类别","outline.sort.name":"排序依据:名称","outline.sort.position":"排序依据:位置","outline.follow.cursor":"跟随光标","welcome.title":"开始使用","welcome.quckstart":"开始使用","welcome.recent.workspace":"最近打开的工作区","markers.title":"问题","markers.panel.content.empty":"目前尚未在工作区检测到问题。","markers.panel.filter.errors":"错误","markers.panel.filter.warnings":"警告","markers.panel.filter.infos":"信息","markers.filter.placefolder":"筛选器,例如:text、**/*.ts、!**/node_modules/**","markers.filter.content.empty":"在给定的筛选条件下,没有找到结果。","markers.filter.reset":"清除筛选器","app.quit":"退出","view.zoomReset":"重置窗口缩放","view.zoomIn":"窗口缩放放大","view.zoomOut":"窗口缩放缩小","kaitianExtension.invalidExthostReload.confirm.content":"插件进程已失效,点击刷新后可恢复插件使用","kaitianExtension.invalidExthostReload.confirm.ok":"刷新","kaitianExtension.invalidExthostReload.confirm.cancel":"继续使用其他功能","kaitianExtension.crashedExthostReload.confirm":"插件进程异常退出,是否重启插件进程","extension.no.view.found":"找不到插件 {0} 注册的视图组件。\n 请确保插件中已经导出名为 {1} 的组件。","extension.profilingExtensionHost":"分析扩展主机","extension.profiling.clickStop":"点击停止分析扩展主机","extension.profile.save":"保存扩展宿主分析文件",comments:"评论","comments.reply.placeholder":"请输入","comments.participants":"参与者","comments.zone.title":"开始讨论","comments.panel.action.collapse":"全部折叠","comments.thread.action.close":"关闭面板","comments.thread.action.openFile":"打开文件","comments.thread.action.next":"下一个评论","comments.thread.action.previous":"上一个评论","comments.thread.action.reply":"回复","comments.panel.placeholder":"暂无评论","comments.thread.textarea.write":"写","comments.thread.textarea.preview":"预览","treeview.command.action.collapse":"全部折叠","task.outputchannel.name":"任务","task.label":"{0} : {1}","TaskService.pickRunTask":"选择要运行的任务","TerminalTaskSystem.terminalName":"任务 - {0}","terminal.integrated.exitedWithCode":"终端进程已终止,退出代码: {0}",reuseTerminal:"终端将被任务重用,按任意键关闭。","toolbar-customize.buttonDisplay.description":"按钮展示形式","toolbar-customize.buttonDisplay.icon":"仅图标","toolbar-customize.buttonDisplay.iconAndText":"图标和文字","toolbar-customize.complete":"完成","toolbar.customize.menu":"自定义工具栏...","workbench.uploadingFiles":"{0} 个文件上传中 {1}/s","workspace.development.title":"插件开发宿主模式","workbench.testViewContainer":"测试","variable.list.all":"所有已注册的变量","variable.registered.variables":"已注册变量","fileOperation.create":"执行文件创建关联操作中……","fileOperation.delete":"执行文件删除关联操作中……","fileOperation.copy":"执行文件拷贝关联操作中……","fileOperation.move":"执行文件移动关联操作中……","main-layout.left-panel.toggle":"切换左侧面板","main-layout.left-panel.show":"显示左侧面板","main-layout.left-panel.hide":"隐藏左侧面板","main-layout.right-panel.toggle":"切换右侧面板","main-layout.right-panel.show":"显示右侧面板","main-layout.right-panel.hide":"隐藏右侧面板","main-layout.bottom-panel.toggle":"切换底部面板","main-layout.bottom-panel.show":"显示底部面板","main-layout.bottom-panel.hide":"隐藏底部面板","refactor-preview.title":"重构预览","refactor-preview.title.clear":"放弃重构","refactor-preview.title.apply":"应用重构","refactor-preview.overlay.title":"正在预览另一个重构。","refactor-preview.overlay.detail":'点击"继续"放弃之前的重构,并继续当前重构。',"refactor-preview.overlay.continue":"继续","refactor-preview.overlay.cancel":"取消","refactor-preview.file.create":"新建","refactor-preview.file.delete":"删除","refactor-preview.file.move":"移动","welcome-view.noOpenRepo":"未注册任何源代码管理实现。","welcome-view.noFolderHelp":"没有打开一个目录.\n[打开目录](command:{0})","welcome-view.noLaunchJson":"没有检测到调试配置,请先创建。\n[创建调试配置](command:{0})","authentication.manageTrustedExtensions":"管理信任的扩展","authentication.manageExtensions":"选择哪一个账户可以访问这个扩展","authentication.noTrustedExtensions":"该账户没有被任何一个扩展使用","authentication.accountLastUsedDate":"最近使用过该账户","authentication.notUsed":"还未使用过该账户","authentication.signOutMessage":"使用该账户 {0} 的扩展有: \n\n{1}\n\n 是否要退出?","authentication.signOutMessageSimple":"是否要退出 {0}?","authentication.useOtherAccount":"使用其他账户登录","authentication.selectAccount":"扩展 '{0}' 将要访问 {1} 账户","authentication.getSessionPlaceholder":"选择一个账户给 '{0}' 使用","authentication.confirmAuthenticationAccess":"扩展 '{0}' 将要使用 '{2}' 访问 {1}","authentication.confirmLogin":"扩展 '{0}' 将要使用 {1} 登录","authentication.signInRequests":"登录 {0}","authentication.signOut":"退出 {0}","authentication.noAccounts":"目前没有登录任何账户","authentication.signedOut":"成功退出","refactoring-changes.ask.1.create":"扩展 '{0} ' 希望根据当前文件新建行为关联一些重构变更","refactoring-changes.ask.1.copy":"扩展 '{0} ' 希望根据当前文件复制行为关联一些重构变更","refactoring-changes.ask.1.move":"扩展 '{0} ' 希望根据当前文件移动行为关联一些重构变更","refactoring-changes.ask.1.delete":"扩展 '{0} ' 希望根据当前文件删除行为关联一些重构变更","refactoring-changes.ask.N.create":"{0} 个插件希望根据当前文件新建行为关联一些重构变更","refactoring-changes.ask.N.copy":"{0} 个插件希望根据当前文件复制行为关联一些重构变更","refactoring-changes.ask.N.move":"{0} 个插件希望根据当前文件移动行为关联一些重构变更","refactoring-changes.ask.N.delete":"{0} 个插件希望根据当前文件删除行为关联一些重构变更"}}},91589:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(59444);let s=class{constructor(){this.eventListeners=new Map,this.wildCardTopics=new Set,this.activatedEventSet=new Set,this.wildCardTopics.add("workspaceContains")}fireEvent(e,t=""){return r.__awaiter(this,void 0,void 0,(function*(){let i;this.activatedEventSet.add({topic:e,data:t}),i=this.wildCardTopics.has(e)?this.eventListeners.get(e):this.eventListeners.get(e+":"+t),i&&(yield Promise.all(i.map((i=>this.tryRun(e,t,i)))))}))}addWildCardTopic(e){return this.wildCardTopics.add(e),{dispose:()=>{this.wildCardTopics.delete(e)}}}onEvent(e,t){const i=e.indexOf(":");let r,n;return-1===i?(r=e,n=""):(r=e.substr(0,i),n=e.substr(i+1)),this.addListener(r,{topic:r,data:n,execute:t})}addListener(e,t){if(this.wildCardTopics.has(e))return this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push(t),{dispose:()=>{const i=this.eventListeners.get(e).indexOf(t);-1!==i&&this.eventListeners.get(e).splice(i,1)}};{const i=e+":"+t.data;return this.eventListeners.has(i)||this.eventListeners.set(i,[]),this.eventListeners.get(i).push(t),{dispose:()=>{const e=this.eventListeners.get(i).indexOf(t);-1!==e&&this.eventListeners.get(i).splice(e,1)}}}}tryRun(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){this.wildCardTopics.has(e)?o(i.data)(t)&&(yield i.execute()):yield i.execute()}))}};s=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],s),t.ActivationEventServiceImpl=s},69562:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(68858),o=i(34865),s=i(64992);t.ExtensionLoadingView=({style:e})=>r.createElement("div",{style:e||{},className:s.kt_extension_view},r.createElement(n.ProgressBar,{loading:!0})),t.ExtensionNoExportsView=(e,t)=>r.createElement("div",{className:s.kt_extension_no_exports_view},o.formatLocalize("extension.no.view.found",e,t))},18171:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(34865),s=i(74864),a=i(78838),c=i(57825);t.PortalRoot=e=>{var t;const[i,l]=r.useState(null),u=o.useInjectable(c.AbstractViewExtProcessService),d=o.useInjectable(s.IThemeService);r.useEffect((()=>{const e=new a.DisposableCollection;return d.getCurrentTheme().then((e=>l(e.type))),e.push(d.onThemeChange((e=>{e.type&&e.type!==i&&l(e.type)}))),e.dispose.bind(e)}),[]);const h=e.original;return r.createElement(h,Object.assign({},e.otherProps,{className:n(null===(t=e.otherProps)||void 0===t?void 0:t.className,s.getThemeTypeSelector(i)),getContainer:()=>u.getPortalShadowRoot(e.extensionId)}))}},46480:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(94184),o=i(7758),s=i(88774),a=i(34865),c=i(88422),l=i(19401),u=i(43849);t.TreeViewNode=({item:e,onClick:i,onContextMenu:d,itemType:h,leftPadding:p=8,onTwistierClick:f,decorations:g,defaultLeftPadding:m=8,treeViewId:v})=>{const y=t=>{h!==s.TreeNodeType.TreeNode&&h!==s.TreeNodeType.CompositeTreeNode||(f?f(t,e,h):i(t,e,h))},_=h===s.TreeNodeType.CompositeTreeNode,b=_?`${m+(e.depth||0)*(p||0)}px`:`${m+(e.depth||0)*(p||0)+8}px`,w={height:t.TREE_VIEW_NODE_HEIGHT,lineHeight:`${t.TREE_VIEW_NODE_HEIGHT}px`,paddingLeft:b},S=()=>{if(e.actions.length>0)return r.createElement("div",{className:o.tree_view_actions},r.createElement(l.TitleActionList,{className:o.inlineMenu,context:[{treeViewId:v,treeItemId:e.treeItemId}],nav:e.actions,menuId:u.MenuId.ViewItemContext}))};return r.createElement("div",{key:e.id,onClick:t=>{h!==s.TreeNodeType.TreeNode&&h!==s.TreeNodeType.CompositeTreeNode||i(t,e,h)},onContextMenu:t=>{0!==t.nativeEvent.which&&d&&(h!==s.TreeNodeType.TreeNode&&h!==s.TreeNodeType.CompositeTreeNode||d(t,e,h))},title:e.tooltip||e.name,className:n(o.tree_view_node,g?g.classlist:null),"data-id":e.id,style:w,draggable:h===s.TreeNodeType.TreeNode||h===s.TreeNodeType.CompositeTreeNode},r.createElement("div",{className:n(o.tree_view_node_content)},(e=>{if(_)return t=e,i=y,g&&(null==g?void 0:g.classlist.indexOf(o.mod_loading))>-1?r.createElement(c.Loading,null):r.createElement("div",{onClick:i,className:n(o.tree_view_node_segment,o.expansion_toggle,a.getIcon("arrow-right"),{[`${o.mod_collapsed}`]:!t.expanded})});var t,i})(e),(C=e,r.createElement("div",{className:n(o.file_icon,C.icon),style:{height:t.TREE_VIEW_NODE_HEIGHT,lineHeight:`${t.TREE_VIEW_NODE_HEIGHT}px`}})),r.createElement("div",{className:o.tree_view_node_overflow_wrap},(e=>r.createElement("div",{className:n(o.tree_view_node_segment,o.tree_view_node_displayname)},e.displayName))(e),(e=>r.createElement("div",{className:n(o.tree_view_node_segment_grow,o.tree_view_node_description)},e.name||e.description?e.description:"——"))(e)),r.createElement("div",{className:n(o.tree_view_node_segment,o.tree_view_node_tail)},S())));var C},t.TREE_VIEW_NODE_HEIGHT=22},60764:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(64992),s=i(34865),a=i(32834),c=i(95008),l=i(88774),u=i(46480),d=i(68858);t.ExtensionTabBarTreeView=a.observer((({viewState:e,model:t,dataProvider:i,treeViewId:a})=>{const[h,p]=n.useState(!1),[f,g]=n.useState(i.isTreeEmpty);n.useEffect((()=>{const e=i.onDidChangeEmpty((()=>{g(i.isTreeEmpty)}));return()=>e.dispose()}),[]);const{width:m,height:v}=e,{canSelectMany:y}=t.treeViewOptions||{},_=n.createRef(),b=e=>{t.handleTreeHandler(Object.assign(Object.assign({},e),{getModel:()=>t.treeModel,hasDirectFocus:()=>_.current===document.activeElement}))},w=(e,i)=>{e.stopPropagation();const{toggleDirectory:r}=t;r(i)},S=e=>{const{metaKey:t,ctrlKey:i}=e;return s.isOSX&&t||i},C=(e,i,r)=>{e.stopPropagation();const{handleItemClick:n,handleItemToggleClick:o,handleItemRangeClick:s}=t;if(!i)return;const a=(e=>!S(e)&&e.shiftKey)(event),c=S(event);y?a?s(i,r):c&&o(i,r):n(i,r)},E=(e,i)=>{const{handleContextMenu:r}=t;r(e,i)};n.useEffect((()=>(r.__awaiter(void 0,void 0,void 0,(function*(){yield t.whenReady,t.treeModel&&(yield t.treeModel.root.ensureLoaded()),p(!0)})),()=>{t&&t.removeNodeDecoration()})),[t]),n.useEffect((()=>{var e;const i=()=>{t.handleTreeBlur()};return null===(e=_.current)||void 0===e||e.addEventListener("blur",i,!0),()=>{var e;null===(e=_.current)||void 0===e||e.removeEventListener("blur",i,!0)}}),[_.current]);return n.createElement("div",{className:o.kt_extension_view,tabIndex:-1,ref:_,onContextMenu:e=>{const{handleContextMenu:i}=t;i(e)},onClick:e=>{const{enactiveNodeDecoration:i}=t;i()},"data-tree-view-id":a},h?f?n.createElement(c.WelcomeView,{viewId:a}):t.treeModel?n.createElement(l.RecycleTree,{height:v,width:m,itemHeight:u.TREE_VIEW_NODE_HEIGHT,onReady:b,model:t.treeModel},(e=>n.createElement(u.TreeViewNode,{item:e.item,itemType:e.itemType,decorations:t.decorations.getDecorations(e.item),onClick:C,onTwistierClick:w,onContextMenu:E,defaultLeftPadding:8,leftPadding:8,treeViewId:a}))):void 0:n.createElement(d.ProgressBar,{loading:!0}))}))},72740:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(63804),o=i(96397);class s extends r.BasicEvent{}t.WebviewViewShouldShowEvent=s,t.ExtensionWebviewView=({viewId:e})=>{const t=n.useRef(null),i=r.useInjectable(r.IEventBus),a=r.useInjectable(o.ExtensionService);return n.useEffect((()=>{const n=new r.CancellationTokenSource,o=new r.Disposable({dispose:()=>n.cancel()});return a.eagerExtensionsActivated.promise.then((()=>{n.token.isCancellationRequested||t.current&&i.fire(new s({viewType:e,container:t.current,title:"",cancellationToken:n.token,disposer:o}))})),()=>{o.dispose()}}),[]),n.createElement("div",{style:{height:"100%",width:"100%",position:"relative"},className:"webview-view-component",ref:t})}},46584:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(60764),t),r.__exportStar(i(69562),t)},43692:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686);let s=class extends o.Disposable{constructor(){super(...arguments),this.commandEnvRegistry=new Map,this.proxyCommandExecutorRegistry=new Map}dispose(){this.commandEnvRegistry.clear(),this.proxyCommandExecutorRegistry.clear()}registerProxyCommandExecutor(e,t){this.proxyCommandExecutorRegistry.set(e,t)}executeExtensionCommand(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.proxyCommandExecutorRegistry.get(e);if(!r)throw new Error('Proxy command executor"'+e+'" is not existed');return r.$executeExtensionCommand(t,...i)}))}registerExtensionCommandEnv(e,t="node"){return this.commandEnvRegistry.set(e,t),{dispose:()=>{this.commandEnvRegistry.delete(e)}}}getExtensionCommandEnv(e){return this.commandEnvRegistry.get(e)}};s=r.__decorate([n.Injectable()],s),t.ExtCommandManagementImpl=s},98953:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(96397),a=i(2013);let c=class extends o.Disposable{constructor(){super(...arguments),this.extensionMap=new Map}dispose(){this.resetExtensionInstances()}getExtensionInstances(){return Array.from(this.extensionMap.values())}resetExtensionInstances(){for(const e of this.extensionMap.values())e.dispose();this.extensionMap=new Map}getExtensionInstanceByPath(e){return this.extensionMap.get(e)}getExtensionInstanceByExtId(e){for(const t of this.extensionMap.values())if(t.id===e)return t}deleteExtensionInstanceByPath(e){this.extensionMap.delete(e)}addExtensionInstance(e){this.extensionMap.set(e.path,e)}checkExtensionEnable(e){return r.__awaiter(this,void 0,void 0,(function*(){const[t,i]=yield Promise.all([this.storageProvider(o.STORAGE_NAMESPACE.EXTENSIONS),this.storageProvider(o.STORAGE_NAMESPACE.GLOBAL_EXTENSIONS)]),r=i.get(e.extensionId,s.EXTENSION_ENABLE.ENABLE);return t.get(e.extensionId,r)===s.EXTENSION_ENABLE.ENABLE}))}createExtensionInstance(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r="string"==typeof e?yield this.extensionNodeClient.getExtension(e,o.getPreferenceLanguageId(),{}):e;if(r)return this.injector.get(a.Extension,[r,yield this.checkExtensionEnable(r),t||!!this.appConfig.extensionDir&&r.realPath.startsWith(this.appConfig.extensionDir),!!i])}))}checkIsBuiltin(e){const t=this.getExtensionCandidateByPath(e.realPath);return!!this.appConfig.extensionDir&&e.realPath.startsWith(this.appConfig.extensionDir)||!!t&&t.isBuiltin}checkIsDevelopment(e){const t=this.getExtensionCandidateByPath(e.realPath);return!!(null==t?void 0:t.isDevelopment)}getExtensionCandidateByPath(e){return this.appConfig.extensionCandidate&&this.appConfig.extensionCandidate.find((t=>t.path===e))}};r.__decorate([n.Autowired(o.StorageProvider),r.__metadata("design:type",Function)],c.prototype,"storageProvider",void 0),r.__decorate([n.Autowired(o.AppConfig),r.__metadata("design:type",Object)],c.prototype,"appConfig",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],c.prototype,"injector",void 0),r.__decorate([n.Autowired(s.ExtensionNodeServiceServerPath),r.__metadata("design:type",Object)],c.prototype,"extensionNodeClient",void 0),c=r.__decorate([n.Injectable()],c),t.ExtInstanceManagementService=c},33875:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(65686),a=i(96397),c=i(92668);let l=class extends s.WithEventBus{getExtensionProps(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=yield this.extensionNodeClient.getExtension(e,o.getPreferenceLanguageId(),t);if(i){const t=this.getExtensionByPath(e);if(t)return Object.assign(Object.assign({},t.toJSON()),{extraMetadata:i.extraMetadata})}}))}getExtensionByPath(e){return this.extInstanceManagementService.getExtensionInstances().find((t=>e===t.path))}getExtensionByExtId(e){return this.extInstanceManagementService.getExtensionInstances().find((t=>e===t.id))}postChangedExtension(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const{upgrade:r,extensionPath:n,oldExtensionPath:o,isBuiltin:s}="boolean"==typeof e?{upgrade:e,extensionPath:t,oldExtensionPath:i,isBuiltin:!1}:e,a=this.extInstanceManagementService.getExtensionInstanceByPath(n);if(a)return void this.logger.warn(`Extension ${a.id} already exists, skip activate`);const c=yield this.extInstanceManagementService.createExtensionInstance(n,!!s);return c?(r&&this.disableExtension(o),yield this.enableExtension(c)):void 0}))}postEnableExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.extInstanceManagementService.getExtensionInstanceByPath(e);if(t)return yield this.enableExtension(t)}))}postDisableExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.disableExtension(e)}))}postUninstallExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.uninstallExtension(e)}))}getAllExtensionJson(){return this.extInstanceManagementService.getExtensionInstances().map((e=>e.toJSON()))}disableExtension(e){const t=this.extInstanceManagementService.getExtensionInstanceByPath(e);t&&(t.disable(),t.dispose(),this.extInstanceManagementService.deleteExtensionInstanceByPath(e))}enableExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){this.extInstanceManagementService.addExtensionInstance(e),e.enable(),yield e.contributeIfEnabled(),this.eventBus.fire(new c.ExtensionDidEnabledEvent(e.toJSON()))}))}uninstallExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.extInstanceManagementService.getExtensionInstanceByPath(e);t&&(t.dispose(),this.extInstanceManagementService.deleteExtensionInstanceByPath(e)),this.eventBus.fire(new c.ExtensionDidUninstalledEvent)}))}};r.__decorate([n.Autowired(c.AbstractExtInstanceManagementService),r.__metadata("design:type",c.AbstractExtInstanceManagementService)],l.prototype,"extInstanceManagementService",void 0),r.__decorate([n.Autowired(a.ExtensionNodeServiceServerPath),r.__metadata("design:type",Object)],l.prototype,"extensionNodeClient",void 0),r.__decorate([n.Autowired(s.ILogger),r.__metadata("design:type",Object)],l.prototype,"logger",void 0),l=r.__decorate([n.Injectable()],l),t.ExtensionManagementService=l},46097:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(39273),s=i(51998),a=i(34865),c=i(96397),l=i(68767),u=i(85974),d=i(63003);let h=class{constructor(){this._apiFactoryDisposables=[],this.ready=new a.Deferred,this._extHostUpdated=new a.Deferred,this.extensions=[]}disposeProcess(){return r.__awaiter(this,void 0,void 0,(function*(){this._apiFactoryDisposables.forEach((e=>{e.dispose()})),this._apiFactoryDisposables=[],yield this.extensionNodeClient.disposeClientExtProcess(this.clientId,!1)}))}activate(){return r.__awaiter(this,void 0,void 0,(function*(){if(this.protocol=yield this.createExtProcess(),this.protocol){this.ready.resolve(),this.logger.verbose("init node thread api proxy",this.protocol),yield this.createBrowserMainThreadAPI(this.protocol);const e=yield this.getProxy();yield e.$updateExtHostData(),this._extHostUpdated.resolve()}return this.protocol}))}activeExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){if(!this.appConfig.noExtHost){yield this._extHostUpdated.promise;const t=yield this.getProxy();yield t.$activateExtension(e.id)}}))}updateExtensionData(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this.extensions=e,this.protocol){const e=yield this.getProxy();yield e.$updateExtHostData(),e.$fireChangeEvent()}}))}getExtension(e){return this.extensions.find((t=>t.id===e))}$activateExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.extensions.find((t=>t.path===e));t&&(yield t.activate())}))}$getExtensions(){return r.__awaiter(this,void 0,void 0,(function*(){return this.extensions.map((e=>e.toJSON()))}))}getProxy(){return r.__awaiter(this,void 0,void 0,(function*(){return yield this.ready.promise,this.protocol.getProxy(l.ExtHostAPIIdentifier.ExtHostExtensionService)}))}createBrowserMainThreadAPI(e){return r.__awaiter(this,void 0,void 0,(function*(){this._apiFactoryDisposables.push(a.toDisposable(yield d.createApiFactory(e,this.injector,this)),a.toDisposable(u.createKaitianApiFactory(e,this.injector)))}))}getActivatedExtensions(){return r.__awaiter(this,void 0,void 0,(function*(){const e=yield this.getProxy();return yield e.$getActivatedExtensions()}))}get clientId(){let e;if(a.isElectronEnv())this.logger.verbose("createExtProcess electronEnv.metadata.windowClientId",a.electronEnv.metadata.windowClientId),e=a.electronEnv.metadata.windowClientId;else{e=this.injector.get(o.WSChannelHandler).clientId}return e}createExtProcess(){return r.__awaiter(this,void 0,void 0,(function*(){return yield this.extensionNodeClient.createProcess(this.clientId,{enableDebugExtensionHost:this.appConfig.enableDebugExtensionHost}),this.initExtProtocol()}))}initExtProtocol(){return r.__awaiter(this,void 0,void 0,(function*(){const e=new o.RPCServiceCenter;if(a.isElectronEnv()){const t=yield this.extensionNodeClient.getElectronMainThreadListenPath(a.electronEnv.metadata.windowClientId);this.logger.verbose("electron initExtProtocol connectPath",t);const i=window.createNetConnection(t);e.setConnection(o.createSocketConnection(i))}else{const t=this.injector.get(o.WSChannelHandler),i=yield t.openChannel("ExtMainThreadConnection");e.setConnection(s.createWebSocketConnection(i))}const{getRPCService:t}=o.initRPCService(e),i=t("ExtProtocol"),r=new a.Emitter;i.on("onMessage",(e=>{r.fire(e)}));const n=r.event,c=i.onMessage;return new o.RPCProtocol({onMessage:n,send:c})}))}};r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],h.prototype,"logger",void 0),r.__decorate([n.Autowired(a.AppConfig),r.__metadata("design:type",Object)],h.prototype,"appConfig",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],h.prototype,"injector",void 0),r.__decorate([n.Autowired(c.ExtensionNodeServiceServerPath),r.__metadata("design:type",Object)],h.prototype,"extensionNodeClient",void 0),h=r.__decorate([n.Injectable()],h),t.NodeExtProcessService=h},18466:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(99422),s=i(19745),a=i(39273),c=i(96397),l=i(65686),u=i(34865),d=i(3041),h=i(35463),p=i(81776),f=i(22790),g=i(46818),m=i(46584),v=i(7310),y=i(57825);let _=r=class{constructor(){this.extensions=[],this.portalShadowRootMap=new Map,this.shadowRootBodyMap=new Map}getExtension(e){return this.extensions.find((t=>t.id===e))}initExtension(e){return n.__awaiter(this,void 0,void 0,(function*(){this.extensions=e}))}getActivatedExtensions(){return n.__awaiter(this,void 0,void 0,(function*(){return[]}))}getProxy(){}$activateExtension(e){return n.__awaiter(this,void 0,void 0,(function*(){}))}$getExtensions(){return n.__awaiter(this,void 0,void 0,(function*(){return this.extensions.map((e=>e.toJSON()))}))}disposeProcess(){return n.__awaiter(this,void 0,void 0,(function*(){}))}activate(){const e=this.requireInterceptorContributionProvider.getContributions();for(const t of e)t.registerRequireInterceptor(this.requireInterceptorService)}getRegisterViewKind(e){return r.tabBarLocation.includes(e)?"replace":"add"}activeExtension(e,t){var i;return n.__awaiter(this,void 0,void 0,(function*(){const{extendConfig:t,packageJSON:r,contributes:n}=e;if(null===(i=null==t?void 0:t.browser)||void 0===i?void 0:i.main)return o.warning(!1,"[Deprecated warning]: kaitian.js is deprecated, please use `package.json#kaitianContributes` instead"),void(yield this.activateExtensionByDeprecatedExtendConfig(e));r.kaitianContributes&&(null==n?void 0:n.browserMain)&&(yield this.activeExtensionContributes(e))}))}activeExtensionContributes(e){var t;return n.__awaiter(this,void 0,void 0,(function*(){const{contributes:i}=e,r=new l.URI(e.extensionLocation.with({path:h.posix.join(e.extensionLocation.path,i.browserMain)})),{moduleExports:o,proxiedHead:s}=yield this.getExtensionModuleExports(r.toString(),e);if(i.browserViews){const{browserViews:t}=i;this.appConfig.useExperimentalShadowDom&&this.registerPortalShadowRoot(e.id);const r=Object.keys(t).reduce(((i,r)=>(i[r]={type:this.getRegisterViewKind(r),view:t[r].view.map((t=>{var{id:i,titleComponentId:r,title:a}=t,c=n.__rest(t,["id","titleComponentId","title"]);return Object.assign(Object.assign({},c),{title:l.replaceLocalizePlaceholder(a,e.id),id:i,component:this.getModuleExportsComponent(o,e,i,s),titleComponent:r&&this.getModuleExportsComponent(o,e,r,s)})}))},i)),{});this.registerBrowserComponent(r,e)}if(i.toolbar&&(null===(t=i.toolbar)||void 0===t?void 0:t.actions))for(const t of i.toolbar.actions)if("button"===t.type&&t.popoverComponent){const i=o[t.popoverComponent];if(!i){this.logger.error(`Can not find CustomPopover from extension ${e.id}, id: ${t.popoverComponent}`);continue}if(this.appConfig.useExperimentalShadowDom){const r=r=>d.getShadowRoot(i,e,r,t.popoverComponent,s);this.toolbarPopoverRegistry.registerComponent(`${e.id}:${t.popoverComponent}`,r)}else this.toolbarPopoverRegistry.registerComponent(`${e.id}:${t.popoverComponent}`,i)}}))}activateExtensionByDeprecatedExtendConfig(e){return n.__awaiter(this,void 0,void 0,(function*(){const{extendConfig:t}=e;this.logger.verbose(`register view by Deprecated config ${e.id}`);const i=yield this.staticResourceService.resolveStaticResource(l.URI.file(new h.Path(e.path).join(t.browser.main).toString()));try{const t=e;if(this.appConfig.useExperimentalShadowDom){this.registerPortalShadowRoot(e.id);const{moduleExports:r,proxiedHead:n}=yield this.loadBrowserModuleUseInterceptor(i.toString(),e,!0);this.registerBrowserComponent(this.normalizeDeprecatedViewsConfig(r,e,n),t)}else{const{moduleExports:r}=yield this.loadBrowserModule(i.toString(),e,!0);this.registerBrowserComponent(this.normalizeDeprecatedViewsConfig(r,e),t)}}catch(t){"load"===t.errorCode?this.logger.error(`[Extension-Host] failed to load ${e.name} - browser module, path: \n\n ${t.moduleId}`):this.logger.error(t)}}))}getExtensionModuleExports(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(this.appConfig.useExperimentalShadowDom)return yield this.loadBrowserModuleUseInterceptor(e,t,!1);const{moduleExports:i}=yield this.loadBrowserModule(e,t,!1);return{moduleExports:i}}))}registerBrowserComponent(e,t){e.default&&(e=e.default);const i=e;t.addDispose(this.injector.get(v.KaitianBrowserContributionRunner,[t,i]).run({getExtensionExtendService:this.getExtensionExtendService.bind(this)}))}getExtensionExtendService(e,t){const i=this.createExtensionExtendProtocol(e,t);return this.logger.log(`bind extend service for ${e.id}:${t}`),{extendProtocol:i,extendService:i.getProxy(c.MOCK_EXTENSION_EXTEND_PROXY_IDENTIFIER)}}createExtensionExtendProtocol(e,t){const{id:i}=e;return new Proxy(Object.create(null),{get:(e,r)=>{if("symbol"==typeof r)return e[r];if("getProxy"===r)return()=>{let e,t;return this.nodeExtensionService.protocol&&(e=this.createExtendProxy(this.nodeExtensionService.protocol,i)),this.workerExtensionService.protocol&&(t=this.createExtendProxy(this.workerExtensionService.protocol,i)),{node:e,worker:t}};if("set"===r){const e={serviceId:`${c.EXTENSION_EXTEND_SERVICE_PREFIX}:${i}:${t}`};return t=>{const i={};for(const e in t)t.hasOwnProperty(e)&&(i[`$${e}`]=t[e]);if(this.logger.log("componentProxyIdentifier",e,"service",i),this.workerExtensionService.protocol&&this.workerExtensionService.protocol.set(e,i),this.nodeExtensionService.protocol)return this.nodeExtensionService.protocol.set(e,i)}}}})}createExtendProxy(e,t){const i=e.getProxy(new a.ProxyIdentifier(`${c.EXTENSION_EXTEND_SERVICE_PREFIX}:${t}`));return this.dollarProxy(i)}dollarProxy(e){return new Proxy(e,{get:(e,t)=>"symbol"==typeof t?e[t]:e[`$${t}`]})}getModuleExportsComponent(e,t,i,r){return e[i]?this.appConfig.useExperimentalShadowDom?n=>d.getShadowRoot(e[i],t,n,i,r):e[i]:()=>m.ExtensionNoExportsView(t.id,i)}registerPortalShadowRoot(e){if(!this.portalShadowRootMap.has(e)){const t=document.createElement("div");t.setAttribute("id",`portal-shadow-root-${e}`),document.body.appendChild(t);const i=t.attachShadow({mode:"open"});g.retargetEvents(i),this.portalShadowRootMap.set(e,i)}}getPortalShadowRoot(e){return this.portalShadowRootMap.get(e)}getShadowRootBody(e){return this.shadowRootBodyMap.get(e)}doFetch(e){const t={};this.appConfig.extensionFetchCredentials&&(t.credentials=this.appConfig.extensionFetchCredentials);return fetch(e,t)}getMockAmdLoader(e,t){const i={};return{_module:{exports:i},_exports:i,_require:i=>{const r=this.requireInterceptorService.getRequireInterceptor(i);return null==r?void 0:r.load({injector:this.injector,extension:e,rpcProtocol:t})}}}loadBrowserModule(e,t,i){return n.__awaiter(this,void 0,void 0,(function*(){const r=this.reporterService.time(l.REPORT_NAME.LOAD_EXTENSION_MAIN),n=yield this.doFetch(decodeURIComponent(e));r.timeEnd(t.id);const{_module:o,_exports:s,_require:a}=this.getMockAmdLoader(t,this.nodeExtensionService.protocol);return new Function("module","exports","require",yield n.text())(o,s,a),{moduleExports:i?o.exports.default:o.exports}}))}normalizeDeprecatedViewsConfig(e,t,i){if(this.appConfig.useExperimentalShadowDom)return Object.keys(e).filter((t=>e[t]&&Array.isArray(e[t].component))).reduce(((r,o)=>(r[o]={view:e[o].component.map((e=>{var{panel:r,id:o}=e,s=n.__rest(e,["panel","id"]);return Object.assign(Object.assign({},s),{id:o,component:e=>d.getShadowRoot(r,t,e,o,i)})}))},r)),{});{const t=e.default?e.default:e;return Object.keys(t).filter((e=>t[e]&&Array.isArray(t[e].component))).reduce(((e,i)=>(e[i]={view:t[i].component.map((e=>{var{panel:t}=e,i=n.__rest(e,["panel"]);return Object.assign(Object.assign({},i),{component:t})}))},e)),{})}}loadBrowserModuleUseInterceptor(e,t,i){return n.__awaiter(this,void 0,void 0,(function*(){const r=this.reporterService.time(l.REPORT_NAME.LOAD_EXTENSION_MAIN),n=yield this.doFetch(decodeURIComponent(e));r.timeEnd(t.id);const{_module:o,_exports:s,_require:a}=this.getMockAmdLoader(t,this.nodeExtensionService.protocol),c=document.createElement("head"),u=f.createProxiedDocument(c),d=f.createProxiedWindow(u,c);return new Function("module","exports","require","styles","document","window",yield n.text())(o,s,a,[],u,d),{moduleExports:i?o.exports.default:o.exports,proxiedHead:c}}))}};_.tabBarLocation=["left","right"],n.__decorate([s.Autowired(s.INJECTOR_TOKEN),n.__metadata("design:type",s.Injector)],_.prototype,"injector",void 0),n.__decorate([s.Autowired(l.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([s.Autowired(u.AppConfig),n.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),n.__decorate([s.Autowired(u.IToolbarPopoverRegistry),n.__metadata("design:type",Object)],_.prototype,"toolbarPopoverRegistry",void 0),n.__decorate([s.Autowired(y.AbstractWorkerExtProcessService),n.__metadata("design:type",y.AbstractWorkerExtProcessService)],_.prototype,"workerExtensionService",void 0),n.__decorate([s.Autowired(y.AbstractNodeExtProcessService),n.__metadata("design:type",y.AbstractNodeExtProcessService)],_.prototype,"nodeExtensionService",void 0),n.__decorate([s.Autowired(),n.__metadata("design:type",p.StaticResourceService)],_.prototype,"staticResourceService",void 0),n.__decorate([s.Autowired(c.RequireInterceptorContribution),n.__metadata("design:type",Object)],_.prototype,"requireInterceptorContributionProvider",void 0),n.__decorate([s.Autowired(c.IRequireInterceptorService),n.__metadata("design:type",Object)],_.prototype,"requireInterceptorService",void 0),n.__decorate([s.Autowired(l.IReporterService),n.__metadata("design:type",Object)],_.prototype,"reporterService",void 0),_=r=n.__decorate([s.Injectable()],_),t.ViewExtProcessService=_},24788:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65579),s=i(62668),a=i(34865),c=i(65686),l=i(35463),u=i(96397),d=i(92410),h=i(63003),p=i(75396);let f=class extends c.Disposable{constructor(){super(...arguments),this.ready=new a.Deferred,this._extHostUpdated=new a.Deferred,this.extensions=[]}disposeProcess(){}activate(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this.protocol=yield this.createExtProcess(e),this.protocol){this.ready.resolve(),this.logger.log("[Worker Host] init worker thread api proxy"),this.logger.verbose(this.protocol);const e=yield h.initWorkerTheadAPIProxy(this.protocol,this.injector,this);this.addDispose({dispose:e}),yield this.getProxy().$updateExtHostData(),this._extHostUpdated.resolve()}return this.protocol}))}activeExtension(e){var t,i;return r.__awaiter(this,void 0,void 0,(function*(){const{extendConfig:r,packageJSON:n}=e;if(null===(t=null==r?void 0:r.worker)||void 0===t?void 0:t.main)return o.warning(!1,"[Deprecated warning]: kaitian.js is deprecated, please use `package.json#kaitianContributes` instead"),void(yield this.doActivateExtension(e));n.kaitianContributes&&(null===(i=e.contributes)||void 0===i?void 0:i.workerMain)&&(yield this.doActivateExtension(e))}))}doActivateExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){this.appConfig.extWorkerHost&&(yield this._extHostUpdated.promise,yield this.getProxy().$activateExtension(e.id))}))}updateExtensionData(e){return r.__awaiter(this,void 0,void 0,(function*(){this.extensions=e,this.protocol&&this.getProxy().$updateExtHostData()}))}getExtension(e){return this.extensions.find((t=>t.id===e))}$activateExtension(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.extensions.find((t=>t.path===e));t&&(yield t.activate())}))}$getExtensions(){return r.__awaiter(this,void 0,void 0,(function*(){return this.extensions.map((e=>e.contributes&&e.contributes.workerMain?this.getWorkerExtensionProps(e,e.contributes.workerMain):e.extendConfig&&e.extendConfig.worker&&e.extendConfig.worker.main?this.getWorkerExtensionProps(e,e.extendConfig.worker.main):e.toJSON()))}))}$getStaticServicePath(){return r.__awaiter(this,void 0,void 0,(function*(){return this.appConfig.staticServicePath||"http://127.0.0.1:8000"}))}createExtProcess(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=d.getWorkerBootstrapUrl(this.appConfig.extWorkerHost,"ExtensionWorkerHost",e);return yield this.initWorkerProtocol(t)}))}initWorkerProtocol(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.log("[Worker Host] init web worker extension host"),new Promise(((t,i)=>{const r=new a.Deferred,n=new a.Emitter;if(this.appConfig.useIframeWrapWorkerHost){const{iframe:i,extHostUuid:o}=p.startInsideIframe(e);window.addEventListener("message",(e=>{e.source===i.contentWindow&&e.data.kaitianWebWorkerExtHostId===o&&e.data.data instanceof MessagePort&&r.resolve(e.data.data)})),r.promise.then((e=>{t(this.createProtocol(e,n))}))}else try{const o=new Worker(e,{name:"KaitianWorkerExtensionHost"});this.addDispose({dispose:()=>o.terminate()}),o.onmessage=e=>{e.data instanceof MessagePort&&r.resolve(e.data)},o.onerror=e=>{i(e)},r.promise.then((e=>{t(this.createProtocol(e,n))}))}catch(e){i(e)}}))}))}createProtocol(e,t){const i=t.event,r=new s.RPCProtocol({onMessage:i,send:e.postMessage.bind(e)},this.logger);return e.onmessage=e=>{t.fire(e.data)},this.logger.log("[Worker Host] web worker extension host ready"),r}getActivatedExtensions(){return this.getProxy().$getActivatedExtensions()}getProxy(){return this.protocol.getProxy(u.WorkerHostAPIIdentifier.ExtWorkerHostExtensionService)}getWorkerExtensionProps(e,t){const i=new a.URI(e.extensionLocation.with({path:l.posix.join(e.extensionLocation.path,t)}));return Object.assign({},e.toJSON(),{workerScriptPath:i.toString()})}};r.__decorate([n.Autowired(a.AppConfig),r.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],f.prototype,"logger",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],f.prototype,"injector",void 0),f=r.__decorate([n.Injectable()],f),t.WorkerExtProcessService=f},17210:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(39699),s=i(34865),a=i(48552),c=i(92224),l=i(48904),u=i(84859),d=i(96397),h=i(81401),p=i(92668),f=i(31084);let g=class{initialize(){return r.__awaiter(this,void 0,void 0,(function*(){yield this.extensionService.activate();const e=this.webviewService.registerWebviewReviver({handles:e=>0,revive:t=>r.__awaiter(this,void 0,void 0,(function*(){return new Promise((i=>{this.eventBus.on(p.ExtensionApiReadyEvent,(()=>{e.dispose(),i(this.webviewService.tryReviveWebviewComponent(t))}))}))}))})}))}onStart(){return r.__awaiter(this,void 0,void 0,(function*(){this.preferenceSettingsService.registerSettingGroup({id:"extension",title:s.localize("settings.group.extension"),iconClass:s.getIcon("extension")})}))}onStop(){this.extensionService.disposeExtensions()}onContextKeyServiceReady(e){e.createKey("listFocus",!0)}};r.__decorate([n.Autowired(s.IPreferenceSettingsService),r.__metadata("design:type",Object)],g.prototype,"preferenceSettingsService",void 0),r.__decorate([n.Autowired(s.QuickOpenService),r.__metadata("design:type",Object)],g.prototype,"quickOpenService",void 0),r.__decorate([n.Autowired(a.IStatusBarService),r.__metadata("design:type",Object)],g.prototype,"statusBar",void 0),r.__decorate([n.Autowired(s.IEventBus),r.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),r.__decorate([n.Autowired(l.IWebviewService),r.__metadata("design:type",Object)],g.prototype,"webviewService",void 0),r.__decorate([n.Autowired(d.ExtensionService),r.__metadata("design:type",d.ExtensionService)],g.prototype,"extensionService",void 0),g=r.__decorate([s.Domain(s.ClientAppContribution)],g),t.KaitianExtensionClientAppContribution=g;let m=class{registerCommands(e){e.registerCommand({id:"ext.restart",label:"重启进程"},{execute:()=>r.__awaiter(this,void 0,void 0,(function*(){this.logger.log("插件进程开始重启"),yield this.extensionService.restartExtProcess(),this.logger.log("插件进程重启结束")}))}),this.registerVSCBuiltinCommands(e)}registerVSCBuiltinCommands(e){e.registerCommand(h.SET_CONTEXT,{execute:(e,t)=>{this.contextKeyService.createKey(String(e),t)}}),e.registerCommand(h.RELOAD_WINDOW_COMMAND,{execute:()=>{this.clientApp.fireOnReload()}}),e.registerCommand(d.EMIT_EXT_HOST_EVENT,{execute:(e,...t)=>r.__awaiter(this,void 0,void 0,(function*(){yield this.activationEventService.fireEvent("onEvent:"+e);const i=yield this.eventBus.fireAndAwait(new p.ExtHostEvent({eventName:e,eventArgs:t})),r=[];return i.forEach((e=>{e.err?r.push(e):r.push(...e.result||[])})),r}))}),e.registerCommand(h.SHOW_RUN_TIME_EXTENSION,{execute:()=>r.__awaiter(this,void 0,void 0,(function*(){const e=yield this.extensionService.getActivatedExtensions();this.quickOpenService.open({onType:(t,i)=>i(this.asQuickOpenItems(e))},{placeholder:"运行中的插件"})}))}),e.registerCommand(h.START_EXTENSION_HOST_PROFILER,{execute:()=>r.__awaiter(this,void 0,void 0,(function*(){this.cpuProfileStatus||(this.cpuProfileStatus=this.statusBar.addElement("ExtensionHostProfile",{tooltip:s.formatLocalize("extension.profiling.clickStop","Click to stop profiling."),text:`$(sync~spin) ${s.formatLocalize("extension.profilingExtensionHost","Profiling Extension Host")}`,alignment:a.StatusBarAlignment.RIGHT,command:h.STOP_EXTENSION_HOST_PROFILER.id})),yield this.extensionProfiler.$startProfile(this.clientId)})),isPermitted:()=>!1}),e.registerCommand(h.STOP_EXTENSION_HOST_PROFILER,{execute:()=>r.__awaiter(this,void 0,void 0,(function*(){const e=yield this.extensionProfiler.$stopProfile(this.clientId);if(this.cpuProfileStatus&&(this.cpuProfileStatus.dispose(),this.cpuProfileStatus=null),e){const e=yield this.dialogService.showSaveDialog({saveLabel:s.formatLocalize("extension.profile.save","Save Extension Host Profile"),showNameInput:!0,defaultFileName:`CPU-${(new Date).toISOString().replace(/[\-:]/g,"")}.cpuprofile`});(null==e?void 0:e.codeUri)&&(yield this.extensionProfiler.$saveLastProfile(null==e?void 0:e.codeUri.fsPath))}})),isPermitted:()=>!1}),e.registerCommand(h.COPY_FILE_PATH,{execute:e=>r.__awaiter(this,void 0,void 0,(function*(){yield this.commandService.executeCommand(s.FILE_COMMANDS.COPY_PATH.id,s.URI.from(e))}))}),e.registerCommand(h.COPY_RELATIVE_FILE_PATH,{execute:e=>r.__awaiter(this,void 0,void 0,(function*(){yield this.commandService.executeCommand(s.FILE_COMMANDS.COPY_RELATIVE_PATH.id,s.URI.from(e))}))}),e.registerCommand(h.OPEN,{execute:(e,t,i)=>{const r=s.URI.from(e),n={};return t&&("number"==typeof t?n.groupIndex=t:(n.groupIndex=t.viewColumn,n.preserveFocus=t.preserveFocus,t.selection&&f.isLikelyVscodeRange(t.selection)&&(t.selection=f.fromRange(t.selection)),n.range=t.selection,n.preview=t.preview)),i&&(n.label=i),this.workbenchEditorService.open(r,n)}}),e.registerCommand(h.DIFF,{execute:(e,t,i,r={})=>{const n=Object.assign(Object.assign(Object.assign({},f.viewColumnToResourceOpenOptions(r.viewColumn)),{revealFirstDiff:!0}),r);return this.commandService.executeCommand(s.EDITOR_COMMANDS.COMPARE.id,{original:s.URI.from(e),modified:s.URI.from(t),name:i},n)}}),[h.WORKBENCH_CLOSE_ACTIVE_EDITOR,h.REVERT_AND_CLOSE_ACTIVE_EDITOR,h.SPLIT_EDITOR_RIGHT,h.SPLIT_EDITOR_DOWN,h.EDITOR_NAVIGATE_BACK,h.EDITOR_NAVIGATE_FORWARD,h.EDITOR_SAVE_ALL,h.CLOSE_ALL_EDITORS,h.PREVIOUS_EDITOR,h.PREVIOUS_EDITOR_IN_GROUP,h.NEXT_EDITOR,h.NEXT_EDITOR_IN_GROUP,h.EVEN_EDITOR_WIDTH,h.CLOSE_OTHER_GROUPS,h.LAST_EDITOR_IN_GROUP,h.OPEN_EDITOR_AT_INDEX,h.CLOSE_OTHER_EDITORS,h.NEW_UNTITLED_FILE,h.FILE_SAVE,h.SPLIT_EDITOR,h.SPLIT_EDITOR_ORTHOGONAL,h.NAVIGATE_LEFT,h.NAVIGATE_RIGHT,h.NAVIGATE_UP,h.NAVIGATE_DOWN,h.NAVIGATE_NEXT,h.REVERT_FILES,h.WORKBENCH_FOCUS_FILES_EXPLORER,h.WORKBENCH_FOCUS_ACTIVE_EDITOR_GROUP,h.DEBUG_COMMAND_STEP_INTO,h.DEBUG_COMMAND_STEP_OVER,h.DEBUG_COMMAND_STEP_OUT,h.DEBUG_COMMAND_CONTINUE,h.DEBUG_COMMAND_RUN,h.DEBUG_COMMAND_START,h.DEBUG_COMMAND_PAUSE,h.DEBUG_COMMAND_RESTART,h.DEBUG_COMMAND_STOP,h.EDITOR_SHOW_ALL_SYMBOLS,h.REVEAL_IN_EXPLORER,h.OPEN_FOLDER,h.CLEAR_TERMINAL,h.TOGGLE_WORKBENCH_VIEW_TERMINAL,h.RELOAD_WINDOW,h.SETTINGS_COMMAND_OPEN_SETTINGS].forEach((t=>{e.registerCommand(t)}))}asQuickOpenItems(e){return[...e.node?e.node.map(((e,t)=>this.toQuickOpenItem(e,"node",0===t))):[],...e.worker?e.worker.map(((e,t)=>this.toQuickOpenItem(e,"worker",0===t))):[]]}toQuickOpenItem(e,t,i){const r=this.extensionInstanceManageService.getExtensionInstanceByExtId(e.id);return new s.QuickOpenGroupItem({groupLabel:i?t:void 0,showBorder:!!i,label:s.replaceLocalizePlaceholder(e.displayName,e.id),description:s.replaceLocalizePlaceholder(e.description,e.id),detail:null==r?void 0:r.realPath})}get clientId(){let e;if(s.isElectronEnv())e=s.electronEnv.metadata.windowClientId;else{e=this.injector.get(o.WSChannelHandler).clientId}return e}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],m.prototype,"injector",void 0),r.__decorate([n.Autowired(u.WorkbenchEditorService),r.__metadata("design:type",u.WorkbenchEditorService)],m.prototype,"workbenchEditorService",void 0),r.__decorate([n.Autowired(p.IActivationEventService),r.__metadata("design:type",p.IActivationEventService)],m.prototype,"activationEventService",void 0),r.__decorate([n.Autowired(s.QuickOpenService),r.__metadata("design:type",Object)],m.prototype,"quickOpenService",void 0),r.__decorate([n.Autowired(d.ExtensionHostProfilerServicePath),r.__metadata("design:type",Object)],m.prototype,"extensionProfiler",void 0),r.__decorate([n.Autowired(a.IStatusBarService),r.__metadata("design:type",Object)],m.prototype,"statusBar",void 0),r.__decorate([n.Autowired(c.IWindowDialogService),r.__metadata("design:type",Object)],m.prototype,"dialogService",void 0),r.__decorate([n.Autowired(s.IClientApp),r.__metadata("design:type",Object)],m.prototype,"clientApp",void 0),r.__decorate([n.Autowired(s.IEventBus),r.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),r.__decorate([n.Autowired(s.CommandService),r.__metadata("design:type",Object)],m.prototype,"commandService",void 0),r.__decorate([n.Autowired(s.IContextKeyService),r.__metadata("design:type",Object)],m.prototype,"contextKeyService",void 0),r.__decorate([n.Autowired(l.IWebviewService),r.__metadata("design:type",Object)],m.prototype,"webviewService",void 0),r.__decorate([n.Autowired(d.ExtensionService),r.__metadata("design:type",d.ExtensionService)],m.prototype,"extensionService",void 0),r.__decorate([n.Autowired(p.AbstractExtInstanceManagementService),r.__metadata("design:type",p.AbstractExtInstanceManagementService)],m.prototype,"extensionInstanceManageService",void 0),r.__decorate([n.Autowired(s.ILogger),r.__metadata("design:type",Object)],m.prototype,"logger",void 0),m=r.__decorate([s.Domain(s.CommandContribution)],m),t.KaitianExtensionCommandContribution=m},2013:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(96397),s=i(65686),a=i(81776),c=i(92039),l=i(92668),u=Symbol.for("metaDataSymbol");let d=class extends s.WithEventBus{constructor(e,t,i,r){super(),this.extensionData=e,this.isUseEnable=t,this.isBuiltin=i,this.isDevelopment=r,this.extraMetadata={},this._activated=!1,this.logger=s.getDebugLogger(),this._enabled=t,this.packageJSON=this.extensionData.packageJSON,this.defaultPkgNlsJSON=this.extensionData.defaultPkgNlsJSON,this.packageNlsJSON=this.extensionData.packageNlsJSON,this.id=this.extensionData.id,this.extensionId=this.extensionData.extensionId,this.name=this.packageJSON.name,this.extraMetadata=this.extensionData.extraMetadata,this.path=this.extensionData.path,this.uri=this.extensionData.uri,this.realPath=this.extensionData.realPath,this.extendConfig=this.extensionData.extendConfig||{},this.enableProposedApi=Boolean(this.extensionData.packageJSON.enableProposedApi),this.extensionLocation=this.staticResourceService.resolveStaticResource(s.URI.from(this.uri)).codeUri}get activated(){return this._activated}get enabled(){return this._enabled}set enabled(e){this._enabled=e}disable(){this._enabled&&(this.extMetadataService.dispose(),this._enabled=!1)}enable(){this._enabled||(this._enabled=!0)}contributeIfEnabled(){return r.__awaiter(this,void 0,void 0,(function*(){this._enabled&&(this.addDispose(this.extMetadataService),this.logger.log(`${this.name} extensionMetadataService.run`),this.packageNlsJSON&&s.registerLocalizationBundle(Object.assign(Object.assign({},s.getCurrentLanguageInfo()),{contents:this.packageNlsJSON}),this.id),this.defaultPkgNlsJSON&&s.registerLocalizationBundle({languageId:"default",languageName:"en-US",localizedLanguageName:"英文(默认)",contents:this.defaultPkgNlsJSON},this.id),yield this.extMetadataService.run(this))}))}activate(e=new Set){var t;return r.__awaiter(this,void 0,void 0,(function*(){const i=(null===(t=this.packageJSON)||void 0===t?void 0:t.extensionDependencies)||[];e.add(this.extensionId);for(const t of i){const i="string"==typeof t?t:Object.keys(t)[0];if(e.has(i))continue;const r=this.extensionInstanceManageService.getExtensionInstanceByExtId(i);r&&(yield r.activate(e))}if(this._activated)return;const r=yield this.eventBus.fireAndAwait(new l.ExtensionWillActivateEvent(this));return r.length>0&&r[0].result?(this._activated=!0,Promise.resolve()):(this._activating||(this._activating=new s.Deferred,this.extensionService.activeExtension(this).then((()=>{this._activated=!0,this.eventBus.fire(new l.ExtensionDidActivatedEvent(this.toJSON())),this._activating.resolve()})).catch((e=>{this.logger.error(e)}))),this._activating.promise)}))}get contributes(){return this.packageJSON.contributes}toJSON(){return{id:this.id,extensionId:this.extensionId,name:this.name,activated:this.activated,enabled:this.enabled,packageJSON:this.packageJSON,defaultPkgNlsJSON:this.defaultPkgNlsJSON,packageNlsJSON:this.packageNlsJSON,path:this.path,realPath:this.realPath,isUseEnable:this.isUseEnable,extendConfig:this.extendConfig,enableProposedApi:this.enableProposedApi,extraMetadata:this.extraMetadata,isBuiltin:this.isBuiltin,isDevelopment:this.isDevelopment,extensionLocation:this.extensionLocation}}};r.__decorate([n.Autowired(c.ExtensionMetadataService),r.__metadata("design:type",c.ExtensionMetadataService)],d.prototype,"extMetadataService",void 0),r.__decorate([n.Autowired(o.ExtensionService),r.__metadata("design:type",o.ExtensionService)],d.prototype,"extensionService",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",a.StaticResourceService)],d.prototype,"staticResourceService",void 0),r.__decorate([n.Autowired(l.AbstractExtInstanceManagementService),r.__metadata("design:type",l.AbstractExtInstanceManagementService)],d.prototype,"extensionInstanceManageService",void 0),d=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optional(u)),r.__param(1,n.Optional(Symbol())),r.__param(2,n.Optional(Symbol())),r.__param(3,n.Optional(Symbol())),r.__metadata("design:paramtypes",[Object,Boolean,Boolean,Boolean])],d),t.Extension=d},30191:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(34865),a=i(65686),c=i(39154),l=i(86814),u=i(92224),d=i(64994),h=i(5778),p=i(96397),f=i(57825),g=i(68767),m=i(92668);let v=r=class extends a.WithEventBus{constructor(){super(...arguments),this.ready=new Map,this.eagerExtensionsActivated=new s.Deferred,this.extensionScanDir=new Set,this.extensionCandidatePath=new Set}getActivatedExtensions(){return n.__awaiter(this,void 0,void 0,(function*(){const e={};return this.nodeExtensionService.protocol&&(e.node=yield this.nodeExtensionService.getActivatedExtensions()),this.workerExtensionService.protocol&&(e.worker=yield this.workerExtensionService.getActivatedExtensions()),e}))}onActivateExtension(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.activationEventService.fireEvent(e.payload.topic,e.payload.data)}))}onExtensionEnabled(e){return n.__awaiter(this,void 0,void 0,(function*(){const t=e.payload;yield this.updateExtHostData(),yield this.fireActivationEventsIfNeed(t.packageJSON.activationEvents)}))}onExtensionUninstalled(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.updateExtHostData()}))}activate(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.initExtensionMetaData(),yield this.initExtensionInstanceData(),yield this.runExtensionContributes(),yield this.initThemeAndColor(),this.doActivate()}))}initExtensionMetaData(){return n.__awaiter(this,void 0,void 0,(function*(){const{extensionDir:e,extensionCandidate:t}=this.appConfig;e&&this.extensionScanDir.add(e),t&&t.forEach((e=>{this.extensionCandidatePath.add(e.path)})),this.extensionMetaDataArr=yield this.getExtensionsMetaData(Array.from(this.extensionScanDir),Array.from(this.extensionCandidatePath)),this.logger.verbose("kaitian extensionMetaDataArr",this.extensionMetaDataArr)}))}initExtensionInstanceData(){return n.__awaiter(this,void 0,void 0,(function*(){for(const e of this.extensionMetaDataArr){const t=this.extensionInstanceManageService.checkIsBuiltin(e),i=this.extensionInstanceManageService.checkIsDevelopment(e),r=yield this.extensionInstanceManageService.createExtensionInstance(e,t,i);r&&this.extensionInstanceManageService.addExtensionInstance(r)}const e=this.extensionInstanceManageService.getExtensionInstances();this.nodeExtensionService.updateExtensionData(e),this.workerExtensionService.updateExtensionData(e)}))}initThemeAndColor(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.themeService.applyTheme(void 0,!0),yield this.iconService.applyTheme(void 0,!0)}))}doActivate(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.workspaceService.whenReady,yield this.extensionStorageService.whenReady,yield this.viewExtensionService.activate(),yield this.startExtProcess(!0);try{yield this.eventBus.fireAndAwait(new m.ExtensionBeforeActivateEvent),yield this.activationEventService.fireEvent("*")}catch(e){this.logger.error(`[Extension Activate Error], \n ${e.message||e}`)}finally{this.eagerExtensionsActivated.resolve(),this.activationEventService.fireEvent("onStartupFinished"),this.eventBus.fire(new m.ExtensionApiReadyEvent)}}))}restartExtProcess(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.startExtProcess(!1)}))}startExtProcess(e){return n.__awaiter(this,void 0,void 0,(function*(){e||(this.disposeExtensions(),yield this.initExtensionInstanceData(),yield this.runExtensionContributes()),yield Promise.all([this.startNodeExtHost(e),this.startWorkerExtHost(e)]),e||this.activationEventService.activatedEventSet.size&&(yield Promise.all(Array.from(this.activationEventService.activatedEventSet.values()).map((e=>(this.logger.verbose("fireEvent","event.topic",e.topic,"event.data",e.data),this.activationEventService.fireEvent(e.topic,e.data))))))}))}startNodeExtHost(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.appConfig.noExtHost){const t=yield this.nodeExtensionService.activate();this.extensionCommandManager.registerProxyCommandExecutor("node",t.get(g.MainThreadAPIIdentifier.MainThreadCommands)),e&&this.ready.set("node",this.nodeExtensionService.ready)}}))}startWorkerExtHost(e){return n.__awaiter(this,void 0,void 0,(function*(){if(this.appConfig.extWorkerHost)try{const t=yield this.workerExtensionService.activate();this.extensionCommandManager.registerProxyCommandExecutor("worker",t.get(g.MainThreadAPIIdentifier.MainThreadCommands)),e&&this.ready.set("worker",this.workerExtensionService.ready)}catch(e){this.logger.error(`Worker host activate fail, \n ${e.message}`)}}))}updateExtHostData(){return n.__awaiter(this,void 0,void 0,(function*(){const e=this.extensionInstanceManageService.getExtensionInstances();this.appConfig.noExtHost||(yield this.nodeExtensionService.updateExtensionData(e)),this.appConfig.extWorkerHost&&(yield this.workerExtensionService.updateExtensionData(e))}))}fireActivationEventsIfNeed(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!Array.isArray(e)||!e.length)return;const t=["*","onStartupFinished"],i=e.filter((e=>"*"!==e)),r=Array.from(this.activationEventService.activatedEventSet.values()).filter((({topic:e,data:t})=>i.find((i=>i===`${e}:${t}`))));for(const i of t)e.includes(i)&&(this.logger.verbose(`Fire activation event ${i}`),this.activationEventService.fireEvent(i));for(const e of r)this.logger.verbose(`Fire activation event ${e.topic}:${e.data}`),this.activationEventService.fireEvent(e.topic,e.data);yield this.activateByWorkspaceContains(e)}))}activateByWorkspaceContains(e){return n.__awaiter(this,void 0,void 0,(function*(){if(!Array.isArray(e)||!e.length)return;const t=[],i=[];for(const r of e)if(/^workspaceContains:/.test(r)){const e=r.substr("workspaceContains:".length);e.indexOf("*")>=0||e.indexOf("?")>=0?i.push(e):t.push(e)}const r=[];t.length&&r.push(this.workspaceService.containsSome(t)),i.length&&r.push((()=>n.__awaiter(this,void 0,void 0,(function*(){try{return(yield this.fileSearchService.find("",{rootUris:this.workspaceService.tryGetRoots().map((e=>e.uri)),includePatterns:i,limit:1})).length>0}catch(e){return this.logger.error(e),!1}})))()),r.length&&(yield Promise.all(r).then((e=>e.some((e=>e)))))&&this.activationEventService.fireEvent("workspaceContains",[...t,...i][0])}))}getExtensionsMetaData(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(!this.extensionMetaDataArr){const i=yield this.extensionNodeClient.getAllExtensions(e,t,s.getPreferenceLanguageId(),r.extraMetadata);this.extensionMetaDataArr=i}return this.extensionMetaDataArr}))}runExtensionContributes(){return n.__awaiter(this,void 0,void 0,(function*(){const e=Array.from(this.extensionInstanceManageService.getExtensionInstances()),t=[],i=[];for(const r of e)g.isLanguagePackExtension(r.packageJSON)?t.push(r):i.push(r);yield Promise.all(t.map((e=>e.contributeIfEnabled()))),yield Promise.all(i.map((e=>e.contributeIfEnabled()))),Promise.all(e.map((e=>this.activateByWorkspaceContains(e.packageJSON.activationEvents)))).catch((e=>this.logger.error(e))),this.commandRegistry.beforeExecuteCommand(((e,t)=>n.__awaiter(this,void 0,void 0,(function*(){return yield this.activationEventService.fireEvent("onCommand",e),t}))))}))}activeExtension(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.nodeExtensionService.activeExtension(e),yield Promise.all([this.viewExtensionService.activeExtension(e,this.nodeExtensionService.protocol),this.workerExtensionService.activeExtension(e)])}))}disposeExtensions(){return n.__awaiter(this,void 0,void 0,(function*(){this.extensionInstanceManageService.resetExtensionInstances(),yield this.nodeExtensionService.disposeProcess(),yield this.workerExtensionService.disposeProcess()}))}executeExtensionCommand(e,t){var i;return n.__awaiter(this,void 0,void 0,(function*(){const r=this.extensionCommandManager.getExtensionCommandEnv(e);if(!r)throw new Error('No Command with id "'+e+'" is declared by extensions');return yield null===(i=this.ready.get(r))||void 0===i?void 0:i.promise,this.extensionCommandManager.executeExtensionCommand(r,e,t)}))}get invalidReloadStrategy(){return this.corePreferences["application.invalidExthostReload"]}$processNotExist(){return n.__awaiter(this,void 0,void 0,(function*(){const e=a.localize("kaitianExtension.invalidExthostReload.confirm.ok"),t=[e],i="ifRequired"===this.invalidReloadStrategy;i&&t.unshift(a.localize("kaitianExtension.invalidExthostReload.confirm.cancel"));(yield this.dialogService.info(a.localize("kaitianExtension.invalidExthostReload.confirm.content"),t,!!i))===e&&this.clientApp.fireOnReload()}))}$processCrashRestart(){return n.__awaiter(this,void 0,void 0,(function*(){const e=a.localize("common.yes"),t=[e],i="ifRequired"===this.invalidReloadStrategy;i&&t.unshift(a.localize("common.no"));(yield this.messageService.info(a.localize("kaitianExtension.crashedExthostReload.confirm"),t,!!i))===e&&(yield this.restartExtProcess())}))}};v.extraMetadata={[p.LANGUAGE_BUNDLE_FIELD]:"./package.nls.json"},n.__decorate([o.Autowired(p.ExtensionNodeServiceServerPath),n.__metadata("design:type",Object)],v.prototype,"extensionNodeClient",void 0),n.__decorate([o.Autowired(s.AppConfig),n.__metadata("design:type",Object)],v.prototype,"appConfig",void 0),n.__decorate([o.Autowired(s.CommandRegistry),n.__metadata("design:type",Object)],v.prototype,"commandRegistry",void 0),n.__decorate([o.Autowired(m.IActivationEventService),n.__metadata("design:type",m.IActivationEventService)],v.prototype,"activationEventService",void 0),n.__decorate([o.Autowired(h.IWorkspaceService),n.__metadata("design:type",Object)],v.prototype,"workspaceService",void 0),n.__decorate([o.Autowired(c.IExtensionStorageService),n.__metadata("design:type",Object)],v.prototype,"extensionStorageService",void 0),n.__decorate([o.Autowired(d.IThemeService),n.__metadata("design:type",Object)],v.prototype,"themeService",void 0),n.__decorate([o.Autowired(d.IIconService),n.__metadata("design:type",Object)],v.prototype,"iconService",void 0),n.__decorate([o.Autowired(u.IDialogService),n.__metadata("design:type",Object)],v.prototype,"dialogService",void 0),n.__decorate([o.Autowired(s.IClientApp),n.__metadata("design:type",Object)],v.prototype,"clientApp",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],v.prototype,"logger",void 0),n.__decorate([o.Autowired(u.IMessageService),n.__metadata("design:type",Object)],v.prototype,"messageService",void 0),n.__decorate([o.Autowired(s.CorePreferences),n.__metadata("design:type",Object)],v.prototype,"corePreferences",void 0),n.__decorate([o.Autowired(f.AbstractWorkerExtProcessService),n.__metadata("design:type",f.AbstractWorkerExtProcessService)],v.prototype,"workerExtensionService",void 0),n.__decorate([o.Autowired(f.AbstractNodeExtProcessService),n.__metadata("design:type",f.AbstractNodeExtProcessService)],v.prototype,"nodeExtensionService",void 0),n.__decorate([o.Autowired(f.AbstractViewExtProcessService),n.__metadata("design:type",f.AbstractViewExtProcessService)],v.prototype,"viewExtensionService",void 0),n.__decorate([o.Autowired(p.IExtCommandManagement),n.__metadata("design:type",p.IExtCommandManagement)],v.prototype,"extensionCommandManager",void 0),n.__decorate([o.Autowired(m.AbstractExtInstanceManagementService),n.__metadata("design:type",m.AbstractExtInstanceManagementService)],v.prototype,"extensionInstanceManageService",void 0),n.__decorate([o.Autowired(l.FileSearchServicePath),n.__metadata("design:type",Object)],v.prototype,"fileSearchService",void 0),n.__decorate([a.OnEvent(s.ExtensionActivateEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.ExtensionActivateEvent]),n.__metadata("design:returntype",Promise)],v.prototype,"onActivateExtension",null),n.__decorate([a.OnEvent(m.ExtensionDidEnabledEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[m.ExtensionDidEnabledEvent]),n.__metadata("design:returntype",Promise)],v.prototype,"onExtensionEnabled",null),n.__decorate([a.OnEvent(m.ExtensionDidUninstalledEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",Promise)],v.prototype,"onExtensionUninstalled",null),v=r=n.__decorate([o.Injectable()],v),t.ExtensionServiceImpl=v},55945:(e,t,i)=>{"use strict";const r=i(70655),n=i(19745),o=i(34865),s=i(76195),a=i(47641),c=i(86814),l=i(96397),u=i(57825),d=i(91589),h=i(43692),p=i(98953),f=i(33875),g=i(46097),m=i(18466),v=i(24788),y=i(17210),_=i(30191),b=i(92668),w=i(46921),S=i(27892);let C=class extends o.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[l.RequireInterceptorContribution],this.providers=[{token:l.ExtensionService,useClass:_.ExtensionServiceImpl},{token:s.IDebugServer,useClass:w.ExtensionDebugService,override:!0},{token:a.DebugSessionContributionRegistry,useClass:w.ExtensionDebugSessionContributionRegistry,override:!0},{token:b.IActivationEventService,useClass:d.ActivationEventServiceImpl},{token:l.IExtCommandManagement,useClass:h.ExtCommandManagementImpl},{token:b.AbstractExtInstanceManagementService,useClass:p.ExtInstanceManagementService},{token:l.AbstractExtensionManagementService,useClass:f.ExtensionManagementService},{token:u.AbstractNodeExtProcessService,useClass:g.NodeExtProcessService},{token:u.AbstractWorkerExtProcessService,useClass:v.WorkerExtProcessService},{token:u.AbstractViewExtProcessService,useClass:m.ViewExtProcessService},{token:l.IRequireInterceptorService,useClass:l.RequireInterceptorService},y.KaitianExtensionCommandContribution,y.KaitianExtensionClientAppContribution,S.BrowserRequireInterceptorContribution],this.backServices=[{servicePath:l.ExtensionNodeServiceServerPath,clientToken:l.ExtensionService},{servicePath:c.FileSearchServicePath},{servicePath:l.ExtensionHostProfilerServicePath}]}};C=r.__decorate([n.Injectable()],C),t.t=C},19570:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(79920),s=i(65686),a=(i(39273),i(68767));let c=class{constructor(e){this.rpcProtocol=e,this.rpcProtocol&&(this.proxy=this.rpcProtocol.getProxy(a.ExtHostAPIIdentifier.ExtHostCommands))}executeCommand(e,t,...i){return r.__awaiter(this,void 0,void 0,(function*(){const r={id:t.id,extensionId:t.extensionId,isBuiltin:t.isBuiltin},n=this.commandRegistry.getCommand(e);if(this.proxy&&n)return this.proxy.$executeCommandWithExtensionInfo(e,r,...i);if(!this.commandRegistry.isPermittedCommand(e,r,...i))throw new Error(`Extension ${r.id} has not permit to execute ${e}`);try{return yield this.monacoCommandService.executeCommand(e,...i)}catch(e){throw this.logger.error(e),e}}))}};r.__decorate([n.Autowired(),r.__metadata("design:type",o.MonacoCommandService)],c.prototype,"monacoCommandService",void 0),r.__decorate([n.Autowired(s.CommandRegistry),r.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),r.__decorate([n.Autowired(s.ILogger),r.__metadata("design:type",Object)],c.prototype,"logger",void 0),c=r.__decorate([n.Injectable(),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[Object])],c),t.KaitianBrowserCommand=c,t.createBrowserCommandsApiFactory=function(e,t,i){const r=e.get(c,[i]);return{executeCommand:(e,...i)=>r.executeCommand(e,t,...i)}}},71620:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63804),n=i(13205),o=i(34865),s=i(18171);t.createBrowserComponents=function(e,t){return e.get(o.AppConfig).useExperimentalShadowDom?new Proxy(n,{get(e,i){if("Dialog"===i||"Overlay"===i){const e=n[i];return i=>r.createElement(s.PortalRoot,{otherProps:i,extensionId:t.id,original:e})}return e[i]}}):n}},80191:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(71098),o=i(65686),s=i(19745),a=i(73607),c=i(64994),l=i(84859),u=i(58407);let d=class extends n.AbstractKaitianBrowserContributionRunner{run(e){const t=new o.Disposable;return this.contribution.editor&&this.contribution.editor.view.forEach((i=>{t.addDispose(this.registerEditorComponent(i,e))})),t}registerEditorComponent(e,t){const i=new o.Disposable,{extendProtocol:r,extendService:n}=t.getExtensionExtendService(this.extension,e.id),s=e.scheme||"file";return i.addDispose(this.editorComponentRegistry.registerEditorComponent({uid:e.id,scheme:s,component:e.component,renderMode:e.renderMode},{kaitianExtendService:n,kaitianExtendSet:r})),"file"===s?i.addDispose(this.editorComponentRegistry.registerEditorComponentResolver(s,((t,i)=>{let r=!1;if(e.fileExt&&e.fileExt.indexOf(t.uri.path.ext)>-1){if(!e.shouldPreview)return;e.shouldPreview(t.uri.path)&&(r=!0)}e.handles&&e.handles(t.uri.codeUri)&&(r=!0),r&&i.push({type:"component",componentId:e.id,title:e.title||"预览",weight:e.priority||10})}))):i.addDispose(this.editorComponentRegistry.registerEditorComponentResolver(s,((t,i)=>{e.handles&&!e.handles(t.uri.codeUri)||i.push({type:"component",componentId:e.id,title:e.title||e.id,weight:e.priority||10})}))),this.resourceService.registerResourceProvider({scheme:s,provideResource:t=>({uri:t,name:e.tabTitle||e.id,icon:e.tabIconPath?this.iconService.fromIcon(this.extension.path,e.tabIconPath,c.IconType.Background):""})}),i}};r.__decorate([s.Autowired(a.IMainLayoutService),r.__metadata("design:type",Object)],d.prototype,"layoutService",void 0),r.__decorate([s.Autowired(l.ResourceService),r.__metadata("design:type",l.ResourceService)],d.prototype,"resourceService",void 0),r.__decorate([s.Autowired(u.EditorComponentRegistry),r.__metadata("design:type",u.EditorComponentRegistry)],d.prototype,"editorComponentRegistry",void 0),r.__decorate([s.Autowired(c.IIconService),r.__metadata("design:type",Object)],d.prototype,"iconService",void 0),d=r.__decorate([s.Injectable({multiple:!0})],d),t.EditorBrowserContributionRunner=d},7310:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(71098),o=i(65686),s=i(19745),a=i(11160),c=i(80191),l=i(68909);let u=class extends n.AbstractKaitianBrowserContributionRunner{run(e){const t=new o.Disposable;return t.addDispose(this.injector.get(a.TabbarBrowserContributionRunner,[this.extension,this.contribution]).run(e)),t.addDispose(this.injector.get(c.EditorBrowserContributionRunner,[this.extension,this.contribution]).run(e)),t.addDispose(this.injector.get(l.ToolBarBrowserContributionRunner,[this.extension,this.contribution]).run(e)),t}};r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],u.prototype,"injector",void 0),u=r.__decorate([s.Injectable({multiple:!0})],u),t.KaitianBrowserContributionRunner=u},11160:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(71098),o=i(65686),s=i(19745),a=i(73607),c=i(34865),l=i(64994),u=["left","right","bottom","editor","toolBar"];let d=class extends n.AbstractKaitianBrowserContributionRunner{run(e){const t=new o.Disposable;return this.contribution.left&&this.contribution.left.view.forEach((i=>{var r;t.addDispose(this.registerTabBar(i,e,null===(r=this.contribution.left)||void 0===r?void 0:r.type,"left"))})),this.contribution.right&&this.contribution.right.view.forEach((i=>{var r;t.addDispose(this.registerTabBar(i,e,null===(r=this.contribution.right)||void 0===r?void 0:r.type,"right"))})),this.contribution.bottom&&this.contribution.bottom.view.forEach((i=>{var r;t.addDispose(this.registerTabBar(i,e,null===(r=this.contribution.bottom)||void 0===r?void 0:r.type,"bottom"))})),Object.keys(this.contribution).forEach((i=>{var r;-1===u.indexOf(i)&&(null===(r=this.contribution[i])||void 0===r?void 0:r.view).forEach((i=>{t.addDispose(this.registerTabBar(i,e,"replace"))}))})),t}registerTabBar(e,t,i="add",r){const{extendProtocol:n,extendService:o}=t.getExtensionExtendService(this.extension,e.id),s=`${this.extension.id}:${e.id}`,a={kaitianExtendService:o,kaitianExtendSet:n};return this.layoutService.viewReady.promise.then((()=>{var t;if("add"===i){const{component:t,titleComponent:i}=e;this.layoutService.collectTabbarComponent([{id:s}],Object.assign(Object.assign({},e),{iconClass:e.icon?c.getIcon(e.icon):e.iconPath?this.iconService.fromIcon(this.extension.path,e.iconPath):"",containerId:s,component:t,titleComponent:i,titleProps:a,initialProps:a,fromExtension:!0}),r)}else this.layoutService.replaceViewComponent(e,a),e.titleComponent&&(null===(t=this.layoutService.getTabbarHandler(s))||void 0===t||t.setTitleComponent(e.titleComponent,a))})),{dispose:()=>{const e=this.layoutService.getTabbarHandler(s);e&&e.dispose()}}}};r.__decorate([s.Autowired(a.IMainLayoutService),r.__metadata("design:type",Object)],d.prototype,"layoutService",void 0),r.__decorate([s.Autowired(l.IIconService),r.__metadata("design:type",Object)],d.prototype,"iconService",void 0),d=r.__decorate([s.Injectable({multiple:!0})],d),t.TabbarBrowserContributionRunner=d},68909:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(71098),o=i(65686),s=i(19745),a=i(73607),c=i(64994),l=i(28861);let u=class extends n.AbstractKaitianBrowserContributionRunner{run(e){const t=new o.Disposable;return this.injector.creatorMap.has(l.IToolBarViewService)?(this.contribution.toolBar&&this.contribution.toolBar.view.forEach((i=>{const{extendProtocol:r,extendService:n}=e.getExtensionExtendService(this.extension,i.id),o=this.toolBarViewService.registerToolBarElement({type:"component",component:i.component,position:i.position||this.contribution.toolBar.position||l.ToolBarPosition.LEFT,initialProps:{kaitianExtendService:n,kaitianExtendSet:r},description:i.description,order:i.order,weight:i.weight});o&&t.addDispose(o)})),t):(this.logger.warn("没有找到 toolbarViewService"),t)}};r.__decorate([s.Autowired(a.IMainLayoutService),r.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),r.__decorate([s.Autowired(l.IToolBarViewService),r.__metadata("design:type",l.IToolBarViewService)],u.prototype,"toolBarViewService",void 0),r.__decorate([s.Autowired(c.IIconService),r.__metadata("design:type",Object)],u.prototype,"iconService",void 0),r.__decorate([s.Autowired(o.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],u.prototype,"injector",void 0),u=r.__decorate([s.Injectable({multiple:!0})],u),t.ToolBarBrowserContributionRunner=u},97619:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(34865),n=i(199),o=i(13205),s=i(48904),a=i(21142),c=i(58407),l=i(64994),u=i(19570),d=i(71620);t.createBrowserApi=function(e,t,i){const h=u.createBrowserCommandsApiFactory(e,t,i),p=d.createBrowserComponents(e,t),f=e.get(r.IReporterService);return Object.assign(Object.assign({},p),{commands:h,Scroll:n.Scroll,ResizeHandleHorizontal:o.ResizeHandleHorizontal,ResizeHandleVertical:o.ResizeHandleVertical,PlainWebview:s.PlainWebview,URI:r.URI,localize:(e,i)=>r.localize(e,i,t.id),getIcon:r.getIcon,getThemeColors:()=>{const t=e.get(l.IThemeService).getCurrentThemeSync();return l.getColorRegistry().getColors().reduce(((e,i)=>{const r=t.getColor(i.id);return r&&(e[i.id.replace(".","-")]=r.toString()),e}),{})},ToolBarPosition:a.ToolBarPosition,EditorComponentRenderMode:c.EditorComponentRenderMode,reporter:f})}},71098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AbstractKaitianBrowserContributionRunner=class{constructor(e,t){this.extension=e,this.contribution=t}}},9841:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(96397),a=i(73607),c=i(34865),l=i(65686),u=i(46584),d=i(64994),h=["left","right","bottom","editor","toolBar"];let p=r=class extends s.VSCodeContributePoint{constructor(){super(...arguments),this.disposableCollection=new l.DisposableCollection}contribute(){this.mainlayoutService.viewReady.promise.then((()=>{const e=Object.keys(this.json).filter((e=>!r.unsupportLocation.includes(e)));for(let t of e){const e=this.json[t].view.map((e=>Object.assign(Object.assign({},e),{component:u.ExtensionLoadingView})));if(!h.includes(t)){if(this.mainlayoutService.getTabbarHandler(t)){for(const i of e){i.titleComponentId&&l.getDebugLogger().warn(`custom title component '${i.titleComponentId}' is not allowed for built-in container ${t}!`);const{title:e,id:r,priority:n,component:o,when:s,weight:a}=i,c=this.mainlayoutService.collectViewComponent({id:r,priority:n,component:o,name:e,when:s,weight:a},t,{},{fromExtension:!0});this.disposableCollection.push({dispose:()=>{this.mainlayoutService.getTabbarHandler(c).disposeView(r)}})}return}t="left"}for(const i of e){const{title:e,icon:r,iconPath:n,id:o,priority:s,component:a,expanded:l,noResize:u,when:d,weight:h,hideTab:p}=i,f=`${this.extension.id}:${o}`,g=this.mainlayoutService.collectTabbarComponent([{id:o,priority:s,component:a,when:d,weight:h}],{iconClass:n?this.iconService.fromIcon(this.extension.path,n):c.getIcon(r),title:e&&this.getLocalizeFromNlsJSON(e),priority:s,expanded:l,containerId:f,noResize:u,fromExtension:!0,hideTab:p},t);this.disposableCollection.push({dispose:()=>{this.mainlayoutService.getTabbarHandler(g).dispose()}})}}}))}};p.unsupportLocation=["bottom","editor","toolBar"],n.__decorate([o.Autowired(a.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"mainlayoutService",void 0),n.__decorate([o.Autowired(d.IIconService),n.__metadata("design:type",Object)],p.prototype,"iconService",void 0),p=r=n.__decorate([o.Injectable(),s.Contributes("browserViews")],p),t.KtViewContributionPoint=p},41466:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(34865),a=i(96397),c=i(92668),l=i(9841),u=i(99450),d=i(40031),h=i(19242),p=Symbol(),f={properties:{kaitianContributes:{description:s.localize("vscode.extension.kaitianContributes","All contributions of the KAITIAN extension represented by this package."),type:"object",properties:{},default:{}}}};let g=r=class extends s.WithEventBus{constructor(e){super(),this.extension=e}run(){var e;return n.__awaiter(this,void 0,void 0,(function*(){const t=this.extension.packageJSON.kaitianContributes;if(!t)return;const i=yield this.eventBus.fireAndAwait(new c.ExtensionWillContributeEvent(this.extension));if(!(i.length>0&&(null===(e=i[0])||void 0===e?void 0:e.result))){for(const e of r.ContributePoints){const i=Reflect.getMetadata(a.CONTRIBUTE_NAME_KEY,e);if(void 0!==t[i])try{const r=this.injector.get(e,[t[i],t,this.extension,this.extension.packageNlsJSON,this.extension.defaultPkgNlsJSON]);r.schema&&(f.properties.kaitianContributes.properties[i]=r.schema),this.addDispose(r),yield r.contribute()}catch(e){this.logger.error(e)}}this.schemaRegistry.registerSchema("vscode://schemas/vscode-extensions",f,["package.json"])}}))}};g.ContributePoints=[l.KtViewContributionPoint,u.KtMenubarsContributionPoint,d.KtSubmenusContributionPoint,h.KtToolbarContributionPoint],n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],g.prototype,"injector",void 0),n.__decorate([o.Autowired(s.ISchemaRegistry),n.__metadata("design:type",Object)],g.prototype,"schemaRegistry",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),n.__decorate([o.Autowired(s.IEventBus),n.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),g=r=n.__decorate([o.Injectable({multiple:!0}),n.__param(0,o.Optional(p)),n.__metadata("design:paramtypes",[Object])],g),t.KaitianContributesRunner=g},99450:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(43849),s=i(65686),a=i(96397);let c=class extends a.VSCodeContributePoint{constructor(){super(...arguments),this.schema={description:s.localize("kaitianContributes.menubars","Contributes extension defined menubars"),type:"array",items:{type:"object",properties:{id:{type:"string",description:s.localize("kaitianContributes.menubars.id","The identifier of menubar item, used as menu-id")},title:{type:"string",description:s.localize("kaitianContributes.menubars.title","The title of menubar item")},order:{type:"number",description:s.localize("kaitianContributes.menubars.order","The order of menubar item")},nativeRole:{type:"string",description:s.localize("kaitianContributes.menubars.order","The nativeRole of menubar item")}}}}}contribute(){for(const e of this.json)this.addDispose(this.menuRegistry.registerMenubarItem(e.id,{label:this.getLocalizeFromNlsJSON(e.title),order:e.order,nativeRole:e.nativeRole}))}};r.__decorate([n.Autowired(o.IMenuRegistry),r.__metadata("design:type",o.IMenuRegistry)],c.prototype,"menuRegistry",void 0),c=r.__decorate([n.Injectable(),a.Contributes("menubars")],c),t.KtMenubarsContributionPoint=c},40031:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(43849),s=i(65686),a=i(64994),c=i(96397),l=i(27926);function u(e,t){if(!Array.isArray(e))return t.error(s.formatLocalize("requirearray")),!1;for(const i of e){if("string"!=typeof i.id)return t.error(s.formatLocalize("requirestring","id")),!1;if(i.title&&"string"!=typeof i.title)return t.error(s.formatLocalize("optstring","title")),!1;if(i.when&&"string"!=typeof i.when)return t.error(s.formatLocalize("optstring","when")),!1;if(i.group&&"string"!=typeof i.group)return t.error(s.formatLocalize("optstring","group")),!1}return!0}t.isValidSubmenu=u;let d=class extends c.VSCodeContributePoint{constructor(){super(...arguments),this.schema={description:s.localize("kaitianContributes.submenu","Contributes extension defined submenu"),type:"array",items:{type:"object",properties:{id:{type:"string",description:s.localize("kaitianContributes.submenu.id","The identifier of submenu item, used as menu-id")},title:{type:"string",description:s.localize("kaitianContributes.submenu.title","The title of submenu item")},group:{type:"string",description:s.localize("kaitianContributes.submenu.group","The order of submenu item")},when:{type:"string",description:s.localize("kaitianContributes.submenu.when","The when expression string of submenu item")}}}}}contribute(){const e=console;for(const t of Object.keys(this.json)){const i=this.json[t];if(!u(i,console))return;const r=l.parseMenuId(t);if(s.isUndefined(r))return void e.warn(s.formatLocalize("menuId.invalid","`{0}` is not a valid submenu identifier",t));for(const e of i){const[t,i]=l.parseMenuGroup(e.group);this.addDispose(this.menuRegistry.registerMenuItem(r,{submenu:e.id,label:e.title&&this.getLocalizeFromNlsJSON(e.title),iconClass:this.iconService.fromIcon(this.extension.path,e.icon,a.IconType.Background),when:e.when,group:t,order:i,nativeRole:e.nativeRole}))}}}};r.__decorate([n.Autowired(o.IMenuRegistry),r.__metadata("design:type",o.IMenuRegistry)],d.prototype,"menuRegistry",void 0),r.__decorate([n.Autowired(a.IIconService),r.__metadata("design:type",Object)],d.prototype,"iconService",void 0),d=r.__decorate([n.Injectable(),c.Contributes("submenus")],d),t.KtSubmenusContributionPoint=d},19242:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(96397),s=i(61129),a=i(34865);let c=class extends o.VSCodeContributePoint{toLocalized(e,t){return t.reduce(((e,t)=>(e[t]&&(e[t]=this.getLocalizeFromNlsJSON(e[t])),e)),e)}contribute(){if(this.json.groups)for(const e of this.json.groups)this.addDispose(this.toolbarRegistry.registerToolbarActionGroup({id:e.id,preferredLocation:e.preferredLocation,weight:e.weight}));if(this.json.actions)for(const e of this.json.actions)"button"===e.type?this.addDispose(this.kaitianExtToolbarService.registerToolbarButton(this.extension.id,this.extension.path,this.toLocalized(e,["title"]))):"select"===e.type&&this.addDispose(this.kaitianExtToolbarService.registerToolbarSelect(this.extension.id,this.extension.path,this.toLocalized(e,["description"])))}};r.__decorate([n.Autowired(),r.__metadata("design:type",s.KaitianExtensionToolbarService)],c.prototype,"kaitianExtToolbarService",void 0),r.__decorate([n.Autowired(a.IToolbarRegistry),r.__metadata("design:type",Object)],c.prototype,"toolbarRegistry",void 0),c=r.__decorate([n.Injectable(),o.Contributes("toolbar")],c),t.KtToolbarContributionPoint=c},85974:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(62685),n=i(47331),o=i(69635),s=i(65686),a=i(68836),c=i(64481),l=i(61129),u=i(52653);t.createKaitianApiFactory=function(e,t){const i=new s.Disposable,d=t.get(r.MainThreaLifeCycle,[e,t]),h=t.get(a.MainThreadTheme,[e,t]);i.addDispose(h);const p=t.get(o.MainThreadLayout,[e]);i.addDispose(p);const f=t.get(c.MainThreadCommon,[e,t]);i.addDispose(f);const g=t.get(l.MainThreadToolbar);i.addDispose(g);const m=t.get(u.MainThreadIDEWindow,[e]);return i.addDispose(m),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadLifecycle,d),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadTheme,h),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadLayout,p),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadCommon,f),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadToolbar,g),e.set(n.MainThreadKaitianAPIIdentifier.MainThreadIDEWindow,m),()=>{i.dispose()}}},64481:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(39273),i(47331)),s=i(34865),a=i(92668);let c=class extends s.WithEventBus{constructor(e,t){super(),this.rpcProtocol=e,this.injector=t,this.subscribedEvent=new Set,this._proxy=this.rpcProtocol.getProxy(o.ExtHostKaitianAPIIdentifier.ExtHostCommon)}onExtHostEvent(e){if(this.subscribedEvent.has(e.payload.eventName))return this._proxy.$acceptEvent(e.payload.eventName,e.payload.eventArgs)}$subscribeEvent(e){return r.__awaiter(this,void 0,void 0,(function*(){this.subscribedEvent.add(e)}))}$unSubscribeEvent(e){return r.__awaiter(this,void 0,void 0,(function*(){this.subscribedEvent.delete(e)}))}};r.__decorate([n.Autowired(s.IEventBus),r.__metadata("design:type",Object)],c.prototype,"themeService",void 0),r.__decorate([s.OnEvent(a.ExtHostEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.ExtHostEvent]),r.__metadata("design:returntype",void 0)],c.prototype,"onExtHostEvent",null),c=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,n.Injector])],c),t.MainThreadCommon=c},69635:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(39273),i(73607)),s=i(47331),a=i(34865),c=i(64994);let l=class extends a.Disposable{constructor(e){super(),this.handlerMap=new Map,this.proxy=e.getProxy(s.ExtHostKaitianAPIIdentifier.ExtHostLayout)}$setTitle(e,t){this.getHandler(e).updateTitle(t)}$setIcon(e,t){const i=this.iconService.fromIcon("",t,c.IconType.Background,c.IconShape.Square);this.getHandler(e).setIconClass(i)}$setSize(e,t){this.getHandler(e).setSize(t)}$activate(e){this.getHandler(e).activate()}$deactivate(e){this.getHandler(e).deactivate()}$setBadge(e,t){this.getHandler(e).setBadge(t)}$setVisible(e,t){return r.__awaiter(this,void 0,void 0,(function*(){t?this.getHandler(e).show():(this.getHandler(e).isActivated()&&this.getHandler(e).deactivate(),this.getHandler(e).hide())}))}$connectTabbar(e){return r.__awaiter(this,void 0,void 0,(function*(){if(!this.handlerMap.has(e)){const t=this.layoutService.getTabbarHandler(e);if(t)this.bindHandleEvents(t);else{const t=this.eventBus.on(o.TabBarRegistrationEvent,(i=>{if(i.payload.tabBarId===e){const i=this.layoutService.getTabbarHandler(e);this.bindHandleEvents(i),t.dispose()}}));this.addDispose(t)}}}))}$isAttached(e){return r.__awaiter(this,void 0,void 0,(function*(){return!!this.layoutService.getTabbarHandler(e)}))}bindHandleEvents(e){this.handlerMap.set(e.containerId,e),e.onActivate((()=>{this.proxy.$acceptMessage(e.containerId,"activate")})),e.onInActivate((()=>{this.proxy.$acceptMessage(e.containerId,"deactivate")}))}getHandler(e){const t=this.layoutService.getTabbarHandler(e);return t||this.logger.warn(`MainThreaLayout:没有找到${e}对应的handler`),t}};r.__decorate([n.Autowired(o.IMainLayoutService),r.__metadata("design:type",Object)],l.prototype,"layoutService",void 0),r.__decorate([n.Autowired(c.IIconService),r.__metadata("design:type",Object)],l.prototype,"iconService",void 0),r.__decorate([n.Autowired(a.IEventBus),r.__metadata("design:type",Object)],l.prototype,"eventBus",void 0),r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],l.prototype,"logger",void 0),l=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],l),t.MainThreadLayout=l},62685:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(83977),s=(i(39273),i(65686)),a=i(34865);let c=class{constructor(e,t){this.rpcProtocol=e,this.injector=t}$setExtensionCandidate(e){if(!s.isElectronRenderer())throw new Error("Not implemented");this.injector.get(o.IElectronMainLifeCycleService).setExtensionCandidate(e,a.electronEnv.currentWindowId)}$setExtensionDir(e){if(!s.isElectronRenderer())throw new Error("Not implemented");this.injector.get(o.IElectronMainLifeCycleService).setExtensionDir(e,a.electronEnv.currentWindowId)}};c=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,n.Injector])],c),t.MainThreaLifeCycle=c},68836:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(39273),i(47331)),s=i(64994),a=i(34865);let c=class extends a.Disposable{constructor(e,t){super(),this.rpcProtocol=e,this.injector=t,this._proxy=this.rpcProtocol.getProxy(o.ExtHostKaitianAPIIdentifier.ExtHostTheme),this.addDispose(this.themeService.onThemeChange((()=>{this._proxy.$notifyThemeChanged()})))}$getThemeColors(){return r.__awaiter(this,void 0,void 0,(function*(){const e=this.themeService.getCurrentThemeSync();return s.getColorRegistry().getColors().reduce(((t,i)=>{const r=e.getColor(i.id);return r&&(t[i.id.replace(".","-")]=r.toString()),t}),{})}))}};r.__decorate([n.Autowired(s.IThemeService),r.__metadata("design:type",Object)],c.prototype,"themeService",void 0),c=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,n.Injector])],c),t.MainThreadTheme=c},61129:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(64994),a=i(96397),c=i(34865),l=i(46584);let u=class{constructor(){this.btnDelegates=new Map,this.selectDelegates=new Map,this.connected=new Set,this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.btn.setState"},{execute:(e,t,i)=>{this.btnDelegates.has(e)&&this.btnDelegates.get(e).setState(t,i)}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.btn.setContext"},{execute:(e,t)=>{if(this.btnDelegates.has(e)){const i=this.btnDelegates.get(e);i&&i.setContext(t)}}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.btn.connectHandle"},{execute:e=>{this.connected.has(e)||(this.doConnectToolbarButtonHandle(e),this.connected.add(e))}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.select.setState"},{execute:(e,t)=>{this.selectDelegates.has(e)&&this.selectDelegates.get(e).setState(t)}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.select.setOptions"},{execute:(e,t,i)=>{this.selectDelegates.has(e)&&(i.forEach((e=>{e.iconPath&&(e.iconClass=this.iconService.fromIcon(t,e.iconPath,e.iconMaskMode?s.IconType.Mask:s.IconType.Background))})),this.selectDelegates.get(e).setOptions(i))}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.select.setSelect"},{execute:(e,t)=>{this.selectDelegates.has(e)&&this.selectDelegates.get(e).setSelect(t)}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.select.connectHandle"},{execute:e=>{if(this.connected.has(e)||(this.doConnectToolbarSelectHandle(e),this.connected.add(e)),this.selectDelegates.get(e))return this.selectDelegates.get(e).getValue()}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.showPopover"},{execute:(e,t)=>{this.btnDelegates.has(e)&&this.btnDelegates.get(e).showPopOver(t)}}),this.commandRegistry.registerCommand({id:"kaitian-extension.toolbar.hidePopover"},{execute:e=>{this.btnDelegates.has(e)&&this.btnDelegates.get(e).hidePopOver()}})}getPopoverComponent(e,t){return this.toolbarPopover.getComponent(e)||(()=>{var e,i,r,n;return l.ExtensionLoadingView({style:{minHeight:(null===(e=t.popoverStyle)||void 0===e?void 0:e.minHeight)?Number(null===(i=t.popoverStyle)||void 0===i?void 0:i.minHeight):200,minWidth:(null===(r=t.popoverStyle)||void 0===r?void 0:r.minWidth)?Number(null===(n=t.popoverStyle)||void 0===n?void 0:n.minWidth):300}})})}registerToolbarButton(e,t,i){const n=e+"."+i.id,a={};return i.states&&Object.keys(i.states).forEach((e=>{const r=i.states[e];a[e]=Object.assign({},r),r.iconPath&&(a[e].iconClass=this.iconService.fromIcon(t,r.iconPath,r.iconMaskMode?s.IconType.Mask:s.IconType.Background))})),this.toolbarRegistry.registerToolbarAction({id:n,preferredPosition:i.preferredPosition,strictPosition:i.strictPosition,description:i.description||i.title||n,weight:i.weight,component:o.createToolbarActionBtn({id:n,popoverId:`${e}:${i.popoverComponent}`,title:i.title,styles:a,defaultState:i.defaultState,iconClass:this.iconService.fromIcon(t,i.iconPath,i.iconMaskMode?s.IconType.Mask:s.IconType.Background),popoverComponent:i.popoverComponent?this.getPopoverComponent(`${e}:${i.popoverComponent}`,i):void 0,popoverStyle:i.popoverStyle||{noContainerStyle:!1},delegate:e=>{e&&(this.btnDelegates.set(n,e),i.command&&e.onClick((()=>r.__awaiter(this,void 0,void 0,(function*(){e.showPopOver(),yield this.eventBus.fireAndAwait(new o.ExtensionActivateEvent({topic:"onAction",data:i.id})),this.commandService.executeCommand(i.command)})))),this.connected.has(n)&&this.doConnectToolbarButtonHandle(n))}})})}doConnectToolbarButtonHandle(e){const t=this.btnDelegates.get(e);t&&(t.onClick((()=>this.commandService.executeCommand(a.EMIT_EXT_HOST_EVENT.id,"kaitian-extension.toolbar.btn.click",e))),t.onChangeState((t=>this.commandService.executeCommand(a.EMIT_EXT_HOST_EVENT.id,"kaitian-extension.toolbar.btn.stateChange",e,t))))}registerToolbarSelect(e,t,i){const r=e+"."+i.id,n=i.options||[];return n.forEach((e=>{e.iconPath&&(e.iconClass=this.iconService.fromIcon(t,e.iconPath,e.iconMaskMode?s.IconType.Mask:s.IconType.Background))})),this.toolbarRegistry.registerToolbarAction({id:r,preferredPosition:i.preferredPosition,strictPosition:i.strictPosition,description:i.description,component:o.createToolbarActionSelect({styles:i.states,options:n,defaultState:i.defaultState,defaultValue:i.defaultValue,equals:i.optionEqualityKey?(e,t)=>{const r=i.optionEqualityKey;return e&&t?e[r]===t[r]:e===t}:void 0,delegate:e=>{e&&(this.selectDelegates.set(r,e),i.command&&e.onSelect((e=>{this.commandService.executeCommand(i.command,e)})),this.connected.has(r)&&this.doConnectToolbarSelectHandle(r))}})})}doConnectToolbarSelectHandle(e){const t=this.selectDelegates.get(e);t&&(t.onSelect((t=>this.commandService.executeCommand(a.EMIT_EXT_HOST_EVENT.id,"kaitian-extension.toolbar.select.onSelect",e,t))),t.onChangeState((t=>this.commandService.executeCommand(a.EMIT_EXT_HOST_EVENT.id,"kaitian-extension.toolbar.select.stateChange",e,t))))}};r.__decorate([n.Autowired(o.IEventBus),r.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),r.__decorate([n.Autowired(o.IToolbarPopoverRegistry),r.__metadata("design:type",Object)],u.prototype,"toolbarPopover",void 0),r.__decorate([n.Autowired(o.IToolbarRegistry),r.__metadata("design:type",Object)],u.prototype,"toolbarRegistry",void 0),r.__decorate([n.Autowired(s.IIconService),r.__metadata("design:type",Object)],u.prototype,"iconService",void 0),r.__decorate([n.Autowired(o.CommandService),r.__metadata("design:type",Object)],u.prototype,"commandService",void 0),r.__decorate([n.Autowired(o.CommandRegistry),r.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),u=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],u),t.KaitianExtensionToolbarService=u;let d=class extends c.Disposable{$registerToolbarButtonAction(e,t,i){return this.addDispose(this.toolbarService.registerToolbarButton(e,t,i)),Promise.resolve()}$registerToolbarSelectAction(e,t,i){return this.addDispose(this.toolbarService.registerToolbarSelect(e,t,i)),Promise.resolve()}};r.__decorate([n.Autowired(u),r.__metadata("design:type",u)],d.prototype,"toolbarService",void 0),d=r.__decorate([n.Injectable({multiple:!0})],d),t.MainThreadToolbar=d},52653:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(39273),i(47331)),s=i(34865),a=i(48904);let c=class extends s.Disposable{constructor(e){super(),this.rpcProtocol=e,this._plainWebviewWindowMap=new Map,this._proxy=this.rpcProtocol.getProxy(o.ExtHostKaitianAPIIdentifier.ExtHostIDEWindow),window.onbeforeunload=()=>{this.dispose()}}$createWebviewWindow(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){try{let r;return this._plainWebviewWindowMap.has(e)?r=this._plainWebviewWindowMap.get(e):(r=this.webviewService.createWebviewWindow(t,i),r&&(this.disposables.push(r.onMessage((t=>{this._proxy.$postMessage(e,t)}))),this.disposables.push(r.onClosed((t=>{this._proxy.$dispatchClosed(e),this.$destroy(e)}))),this.disposables.push(r),this._plainWebviewWindowMap.set(e,r))),yield r.ready,{windowId:r.windowId,webContentsId:r.webContentsId}}catch(e){throw e}}))}$show(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const t=this._plainWebviewWindowMap.get(e);null==t||t.show()}}))}$hide(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const t=this._plainWebviewWindowMap.get(e);null==t||t.hide()}}))}$setSize(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const i=this._plainWebviewWindowMap.get(e);null==i||i.setSize(t)}}))}$postMessage(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const i=this._plainWebviewWindowMap.get(e);null==i||i.postMessage(t)}}))}$setAlwaysOnTop(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const i=this._plainWebviewWindowMap.get(e);null==i||i.setAlwaysOnTop(t)}}))}$loadURL(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const i=this._plainWebviewWindowMap.get(e);null==i||i.loadURL(t)}}))}$destroy(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this._plainWebviewWindowMap.has(e)){const t=this._plainWebviewWindowMap.get(e);null==t||t.dispose(),this._plainWebviewWindowMap.delete(e)}}))}};r.__decorate([n.Autowired(a.IWebviewService),r.__metadata("design:type",Object)],c.prototype,"webviewService",void 0),c=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadIDEWindow=c},92410:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.getAMDRequire=function(){return r.isElectronEnv()||i.g.amdLoader.require.config({onError:e=>{throw e}}),i.g.amdLoader.require},t.getWorkerBootstrapUrl=function(e,t,i){if(i)return e;if(/^(http:)|(https:)|(file:)/.test(e)){const i=String(window.location),r=i.substr(0,i.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(e.substring(0,r.length)!==r){return`data:text/javascript;charset=utf-8,${encodeURIComponent(`/*${t}*/importScripts('${e}');/*${t}*/`)}`}}return e},t.getAMDDefine=function(){return r.isElectronEnv()?i.g.amdLoader.require.define:i.g.amdLoader.define}},92039:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(92668),a=i(65686),c=i(31378),l=i(41466);let u=class extends o.Disposable{run(e){return r.__awaiter(this,void 0,void 0,(function*(){try{const t=this.injector.get(c.VSCodeContributeRunner,[e]),i=this.injector.get(l.KaitianContributesRunner,[e]);this.addDispose(t),this.addDispose(i),this.eventBus.fire(new a.ExtensionEnabledEvent(e.toJSON())),yield Promise.all([t.run(),i.run()]),this.registerActivationEvent(e)}catch(t){this.logger.error("vscode meta启用插件出错"+e.name),this.logger.error(t)}}))}registerActivationEvent(e){const{activationEvents:t=[]}=e.packageJSON,i=new o.Disposable;t.forEach((t=>{"onUri"===t&&(t=`onUri:${e.id}`),i.addDispose(this.activationService.onEvent(t,(()=>r.__awaiter(this,void 0,void 0,(function*(){yield e.activate(),i.dispose()})))))}))}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],u.prototype,"injector",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",s.IActivationEventService)],u.prototype,"activationService",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([n.Autowired(a.IEventBus),r.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),u=r.__decorate([n.Injectable({multiple:!0})],u),t.ExtensionMetadataService=u},22790:(e,t)=>{"use strict";function i(){}function r(e,t){return"function"==typeof e[t]&&/^[a-z]/.test(t)?e[t].bind&&e[t].bind(e):e[t]}function n(e){return new Proxy(document,{get:(t,n)=>{switch(n){case"write":case"writeln":return i;case"querySelector":return i=>"head"===i?e:r(t,n)(i);default:return r(t,n)}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.createProxiedDocument=n,t.createProxiedWindow=function(e,t){return new Proxy(window,{get:(i,o)=>{switch(o){case"document":return e||n(t);default:return r(i,o)}}})}},27892:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(63804),o=i(27196),s=i(34865),a=i(92614),c=i(97619);let l=class{registerRequireInterceptor(e){e.registerRequireInterceptor({moduleName:"React",load:()=>n}),e.registerRequireInterceptor({moduleName:"ReactDOM",load:()=>o}),e.registerRequireInterceptor({moduleName:"kaitian-browser",load:e=>c.createBrowserApi(e.injector,e.extension,e.rpcProtocol)})}};l=r.__decorate([s.Domain(a.RequireInterceptorContribution)],l),t.BrowserRequireInterceptorContribution=l},46818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=["onAbort","onAnimationCancel","onAnimationEnd","onAnimationIteration","onAuxClick","onBlur","onChange","onClick","onClose","onContextMenu","onDoubleClick","onError","onFocus","onGotPointerCapture","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadEnd","onLoadStart","onLostPointerCapture","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onReset","onResize","onScroll","onSelect","onSelectionChange","onSelectStart","onSubmit","onTouchCancel","onTouchMove","onTouchStart","onTouchEnd","onTransitionCancel","onTransitionEnd","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocusOut"],r={onDoubleClick:"dblclick"},n={onInput:"onChange",onFocusOut:"onBlur",onSelectionChange:"onSelect"};function o(e){return s(e,"__reactEventHandlers")}function s(e,t){for(const i in e)if(e.hasOwnProperty(i)&&-1!==i.indexOf(t))return e[i]}function a(e){if(e)return e.memoizedProps?e.memoizedProps:e._currentElement&&e._currentElement.props?e._currentElement.props:void 0}function c(e,t,i){e.persist=()=>{e.isPersistent=()=>!0},i[t]&&i[t](e)}t.retargetEvents=function(e){const t=[];return i.forEach((i=>{const l=function(e){if(r[e])return r[e];return e.replace(/^on/,"").toLowerCase()}(i);function u(t){t.nativeEvent=t;const r=t.path||t.composedPath&&t.composedPath()||function(e){const t=[];for(;e;){if(t.push(e),"HTML"===e.tagName)return t.push(document),t.push(window),t;e=e.parentElement}}(t.target);for(const l of r){let r=null;const u=s(l,"_reactInternal"),d=o(l);if(r=d||a(u),u&&r&&c(t,i,r),u&&r&&n[i]&&c(t,n[i],r),t.cancelBubble)break;if(l===e)break}}e.addEventListener(l,u,!1),t.push((()=>{e.removeEventListener(l,u,!1)}))})),()=>{t.forEach((e=>{e()}))}}},3041:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(88774),n=i(34865),o=i(65686),s=i(64994),a=i(94184),c=i(63804),l=i(63804),u=i(27196),d=i(57825),h=i(64968),p=({root:e,children:t})=>u.createPortal(t,e);function f(e,t){const i=document.createElement("link");return i.setAttribute("href",`https://gw.alipayobjects.com/os/lib/ali/ide-components/${t}/${e}`),i.setAttribute("rel","stylesheet"),i}const g=({id:e,extensionId:t,children:i,proxiedHead:r})=>{const o=l.useRef(null),[u,g]=c.useState(null),m=n.useInjectable(d.AbstractViewExtProcessService),v=n.useInjectable(s.IThemeService),[y,_]=l.useState(null);return l.useEffect((()=>{const e=new n.DisposableCollection;if(o.current){const i=o.current.attachShadow({mode:"open"});if(r){r.appendChild(f("dist/index.css",h.version)),r.appendChild(f("lib/icon/iconfont/iconfont.css",h.version));const n=r.cloneNode(!0);e.push(function(e,t){const i=new MutationObserver((e=>{for(const i of e)if("childList"===i.type){if(i.addedNodes.length>0)for(const e of Array.from(i.addedNodes))t.appendChild(e.cloneNode(!0));if(i.removedNodes.length>0)for(const e of Array.from(i.removedNodes))t.removeChild(e)}}));return i.observe(e,{childList:!0,subtree:!0}),{dispose:()=>{i.disconnect()}}}(r,n)),i.appendChild(n);const o=m.getPortalShadowRoot(t);o&&o.appendChild(r)}return u||g(i),v.getCurrentTheme().then((e=>_(e.type))),e.push(v.onThemeChange((e=>{e.type&&e.type!==y&&_(e.type)}))),e.dispose.bind(e)}}),[]),c.createElement("div",{id:e,style:{width:"100%",height:"100%"},ref:o},u&&c.createElement(p,{root:u},c.createElement("div",{className:a(s.getThemeTypeSelector(y),"shadow-context-wrapper"),style:{width:"100%",height:"100%"}},i)))};t.getShadowRoot=function(e,t,i,n,s){const a=e,{getIcon:l}=c.useContext(r.IconContext);return c.createElement(r.ComponentContextProvider,{value:{getIcon:l,localize:o.localize}},c.createElement(g,{id:`${t.id}-${n}`,extensionId:t.id,proxiedHead:s},c.createElement(a,Object.assign({},i))))}},92668:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865);class s extends o.BasicEvent{}t.ExtHostEvent=s;let a=class{};a=r.__decorate([n.Injectable()],a),t.IActivationEventService=a;t.AbstractExtInstanceManagementService=class{};class c extends o.BasicEvent{}t.ExtensionApiReadyEvent=c;class l extends o.BasicEvent{}t.ExtensionBeforeActivateEvent=l;class u extends o.BasicEvent{}t.ExtensionWillActivateEvent=u;class d extends o.BasicEvent{}t.ExtensionWillContributeEvent=d;class h extends o.BasicEvent{}t.ExtensionDidActivatedEvent=h;class p extends o.BasicEvent{}t.ExtensionDidUninstalledEvent=p;class f extends o.BasicEvent{}t.ExtensionDidEnabledEvent=f},88111:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);t.ExtensionDebugAdapterContribution=class{constructor(e,t,i){this.description=e,this.extDebug=t,this.activationEventService=i}get type(){return this.description.type}get label(){return this.description.label}get languages(){return this.extDebug.$getSupportedLanguages(this.type)}getSchemaAttributes(){return r.__awaiter(this,void 0,void 0,(function*(){return this.extDebug.$getSchemaAttributes(this.type)}))}getConfigurationSnippets(){return r.__awaiter(this,void 0,void 0,(function*(){return this.extDebug.$getConfigurationSnippets(this.type)}))}provideDebugConfigurations(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.extDebug.$provideDebugConfigurations(this.type,e)}))}resolveDebugConfiguration(e,t){return r.__awaiter(this,void 0,void 0,(function*(){return this.extDebug.$resolveDebugConfigurations(e,t)}))}resolveDebugConfigurationWithSubstitutedVariables(e,t){return r.__awaiter(this,void 0,void 0,(function*(){return this.extDebug.$resolveDebugConfigurationWithSubstitutedVariables(e,t)}))}createDebugSession(e){return r.__awaiter(this,void 0,void 0,(function*(){return yield this.activationEventService.fireEvent("onDebugAdapterProtocolTracker",e.type),this.extDebug.$createDebugSession(e)}))}terminateDebugSession(e){return r.__awaiter(this,void 0,void 0,(function*(){this.extDebug.$terminateDebugSession(e)}))}}},32740:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(76195),s=i(34865),a=i(5778),c=i(37210),l=i(47641),u=i(92668);let d=class{constructor(){this.contributors=new Map,this.toDispose=new s.DisposableCollection,this.sessionId2contrib=new Map,this.activationEvents=new Set,this.init()}init(){this.logger=this.loggerManager.getLogger(c.SupportLogNamespace.ExtensionHost),this.debugSessionManager.onWillStartDebugSession((e=>this.ensureDebugActivation(e))),this.debugSessionManager.onWillResolveDebugConfiguration((e=>this.ensureDebugActivation(e,"onDebugResolve",e.debugType))),this.debugConfigurationManager.onWillProvideDebugConfiguration((e=>this.ensureDebugActivation(e,"onDebugInitialConfigurations"))),this.toDispose.pushAll([s.Disposable.create((()=>{for(const e of this.sessionId2contrib.keys()){this.sessionId2contrib.get(e).terminateDebugSession(e)}this.sessionId2contrib.clear()}))])}registerDebugAdapterContribution(e){const{type:t}=e;return this.contributors.has(t)?(this.logger.warn(`Debugger with type '${t}' already registered.`),s.Disposable.NULL):(this.contributors.set(t,e),s.Disposable.create((()=>this.unregisterDebugAdapterContribution(t))))}unregisterDebugAdapterContribution(e){this.contributors.delete(e)}ensureDebugActivation(e,t,i){"function"==typeof e.waitUntil&&e.waitUntil(this.activateByDebug(t,i))}activateByDebug(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=[this.activationEventService.fireEvent("onDebug")];e&&(i.push(this.activationEventService.fireEvent(e)),t&&i.push(this.activationEventService.fireEvent(e,t))),yield Promise.all(i)}))}debugTypes(){return r.__awaiter(this,void 0,void 0,(function*(){return Array.from(this.contributors.keys())}))}provideDebugConfigurations(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=this.contributors.get(e);return i&&i.provideDebugConfigurations&&i.provideDebugConfigurations(t)||[]}))}resolveDebugConfiguration(e,t){return r.__awaiter(this,void 0,void 0,(function*(){let i=e;for(const e of this.contributors.values())if(e)try{const r=yield e.resolveDebugConfiguration(i,t);if(!r)return i;i=r}catch(e){this.logger.error(e)}return i}))}resolveDebugConfigurationWithSubstitutedVariables(e,t){return r.__awaiter(this,void 0,void 0,(function*(){let i=e;for(const e of this.contributors.values())if(e)try{const r=yield e.resolveDebugConfigurationWithSubstitutedVariables(i,t);if(!r)return i;i=r}catch(e){this.logger.error(e)}return i}))}getDebuggersForLanguage(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=[];for(const i of this.contributors.values()){const r=yield i.languages;if(r&&-1!==r.indexOf(e)){const{type:e}=i;t.push({type:e,label:(yield i.label)||e})}}return t}))}getSchemaAttributes(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.contributors.get(e);return t&&t.getSchemaAttributes&&t.getSchemaAttributes()||[]}))}getConfigurationSnippets(){return r.__awaiter(this,void 0,void 0,(function*(){let e=[];for(const t of this.contributors.values())t.getConfigurationSnippets&&(e=e.concat(yield t.getConfigurationSnippets()));return e}))}createDebugSession(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.contributors.get(e.type);if(t){const i=yield t.createDebugSession(e);return this.sessionId2contrib.set(i,t),i}}))}terminateDebugSession(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.sessionId2contrib.get(e);if(t)return this.sessionId2contrib.delete(e),t.terminateDebugSession(e)}))}dispose(){this.toDispose.dispose()}};r.__decorate([n.Autowired(a.IWorkspaceService),r.__metadata("design:type",Object)],d.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(c.ILoggerManagerClient),r.__metadata("design:type",Object)],d.prototype,"loggerManager",void 0),r.__decorate([n.Autowired(o.IDebugSessionManager),r.__metadata("design:type",Object)],d.prototype,"debugSessionManager",void 0),r.__decorate([n.Autowired(l.DebugConfigurationManager),r.__metadata("design:type",l.DebugConfigurationManager)],d.prototype,"debugConfigurationManager",void 0),r.__decorate([n.Autowired(u.IActivationEventService),r.__metadata("design:type",u.IActivationEventService)],d.prototype,"activationEventService",void 0),d=r.__decorate([n.Injectable(),r.__metadata("design:paramtypes",[])],d),t.ExtensionDebugService=d},9538:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(47641),o=i(34865),s=i(19745);let a=class{constructor(){this.contribs=new Map,this.init()}init(){for(const e of this.contributions.getContributions())this.contribs.set(e.debugType,e)}get(e){return this.contribs.get(e)}registerDebugSessionContribution(e){const{debugType:t}=e;return this.contribs.has(t)?(console.warn(`Debug session contribution already registered for ${t}`),o.Disposable.NULL):(this.contribs.set(t,e),o.Disposable.create((()=>this.unregisterDebugSessionContribution(t))))}unregisterDebugSessionContribution(e){this.contribs.delete(e)}};r.__decorate([s.Autowired(n.DebugSessionContribution),r.__metadata("design:type",Object)],a.prototype,"contributions",void 0),a=r.__decorate([s.Injectable(),r.__metadata("design:paramtypes",[])],a),t.ExtensionDebugSessionContributionRegistry=a},49988:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(47641);class o extends n.DebugSession{constructor(e,t,i,r,n,o,s,a,c,l,u,d){super(e,t,i,r,n,o,s,a,c,l,u),this.id=e,this.options=t,this.connection=i,this.terminalService=r,this.editorService=n,this.breakpointManager=o,this.modelManager=s,this.labelService=a,this.messageService=c,this.fileSystem=l,this.sessionManager=u,this.terminalOptionsExt=d}doRunInTerminal(e,t){const i=Object.create(null,{doRunInTerminal:{get:()=>super.doRunInTerminal}});return r.__awaiter(this,void 0,void 0,(function*(){const r=Object.assign({},e,this.terminalOptionsExt);return i.doRunInTerminal.call(this,r,t)}))}}t.ExtensionDebugSession=o;t.ExtensionDebugSessionFactory=class{constructor(e,t,i,r,n,o,s,a,c,l,u,d,h,p){this.editorManager=e,this.breakpoints=t,this.modelManager=i,this.terminalService=r,this.labelService=n,this.messageService=o,this.debugPreferences=s,this.connectionFactory=a,this.fileSystem=c,this.terminalOptionsExt=l,this.debugPreference=u,this.outputService=d,this.injector=h,this.sessionManager=p}get(e,t){const i=this.injector.get(n.DebugSessionConnection,[e,this.connectionFactory,this.getTraceOutputChannel()]);return new o(e,t,i,this.terminalService,this.editorManager,this.breakpoints,this.modelManager,this.labelService,this.messageService,this.fileSystem,this.sessionManager,this.terminalOptionsExt)}getTraceOutputChannel(){if(this.debugPreferences["debug.trace"])return this.outputService.getChannel("Debug adapters")}}},46921:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655);r.__exportStar(i(49988),t),r.__exportStar(i(9538),t),r.__exportStar(i(32740),t),r.__exportStar(i(88111),t)},63003:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(68767),o=i(92643),s=i(94867),a=i(76287),c=i(34338),l=i(28300),u=i(87731),d=i(45821),h=i(77850),p=i(62720),f=i(7726),g=i(19025),m=i(81813),v=i(74401),y=i(11602),_=i(35255),b=i(81457),w=i(28326),S=i(88587),C=i(31557),E=i(89456),O=i(71761),k=i(22381),D=i(67447),M=i(82318),x=i(34534),T=i(40836),A=i(18937),I=i(3077),P=i(42281),R=i(71916),L=i(91859),N=i(73474);t.createApiFactory=function(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=t.get(a.MainThreadLanguages,[e]),F=t.get(o.MainThreadCommands,[e]),B=t.get(s.MainThreadExtensionDocumentData,[e]),z=t.get(u.MainThreadEditorService,[e,B]),V=t.get(c.MainThreadStatusBar,[e]),j=t.get(l.MainThreadMessage,[e]),K=t.get(h.MainThreadWorkspace,[e]),H=t.get(d.MainThreadPreference,[e]),W=t.get(p.MainThreadEnv,[e]),U=t.get(f.MainThreadQuickOpen,[e]),G=t.get(g.MainThreadStorage,[e]),q=t.get(m.MainThreadOutput),$=t.get(v.MainThreadFileSystem,[e]),Y=t.get(T.MainThreadFileSystemEvent,[e]),Z=t.get(y.MainThreadWebview,[e]),X=t.get(y.MainThreadWebviewView,[e,Z]),Q=t.get(_.MainThreadSCM,[e]),J=t.get(b.MainThreadTreeView,[e]),ee=t.get(w.MainThreadDecorations,[e]),te=t.get(S.MainThreadWindowState,[e]),ie=t.get(k.MainThreadWindow,[e]),re=t.get(E.MainThreadConnection,[e]),ne=t.get(C.MainThreadDebug,[e,re]),oe=t.get(O.MainThreadTerminal,[e]),se=t.get(D.MainThreadProgress,[e]),ae=t.get(M.MainthreadTasks,[e]),ce=t.get(x.MainthreadComments,[e,F]),le=t.get(A.MainThreadUrls,[e]),ue=t.get(R.MainThreadTheming,[e]),de=t.get(L.MainThreadCustomEditor,[e,Z]),he=t.get(N.MainThreadAuthentication,[e]);return e.set(n.MainThreadAPIIdentifier.MainThreadExtensionService,i),e.set(n.MainThreadAPIIdentifier.MainThreadCommands,F),e.set(n.MainThreadAPIIdentifier.MainThreadLanguages,r),e.set(n.MainThreadAPIIdentifier.MainThreadDocuments,B),e.set(n.MainThreadAPIIdentifier.MainThreadEditors,z),e.set(n.MainThreadAPIIdentifier.MainThreadStatusBar,V),e.set(n.MainThreadAPIIdentifier.MainThreadMessages,j),e.set(n.MainThreadAPIIdentifier.MainThreadWorkspace,K),e.set(n.MainThreadAPIIdentifier.MainThreadPreference,H),e.set(n.MainThreadAPIIdentifier.MainThreadEnv,W),e.set(n.MainThreadAPIIdentifier.MainThreadQuickOpen,U),e.set(n.MainThreadAPIIdentifier.MainThreadStorage,G),e.set(n.MainThreadAPIIdentifier.MainThreadOutput,q),e.set(n.MainThreadAPIIdentifier.MainThreadFileSystem,$),e.set(n.MainThreadAPIIdentifier.MainThreadWebview,Z),e.set(n.MainThreadAPIIdentifier.MainThreadWebviewView,X),e.set(n.MainThreadAPIIdentifier.MainThreadSCM,Q),e.set(n.MainThreadAPIIdentifier.MainThreadTreeView,J),e.set(n.MainThreadAPIIdentifier.MainThreadDecorations,ee),e.set(n.MainThreadAPIIdentifier.MainThreadWindowState,te),e.set(n.MainThreadAPIIdentifier.MainThreadWindow,ie),e.set(n.MainThreadAPIIdentifier.MainThreadConnection,re),e.set(n.MainThreadAPIIdentifier.MainThreadDebug,ne),e.set(n.MainThreadAPIIdentifier.MainThreadTerminal,oe),e.set(n.MainThreadAPIIdentifier.MainThreadProgress,se),e.set(n.MainThreadAPIIdentifier.MainThreadTasks,ae),e.set(n.MainThreadAPIIdentifier.MainThreadComments,ce),e.set(n.MainThreadAPIIdentifier.MainThreadUrls,le),e.set(n.MainThreadAPIIdentifier.MainThreadTheming,ue),e.set(I.MainThreadExtensionLogIdentifier,t.get(P.MainThreadExtensionLog)),e.set(n.MainThreadAPIIdentifier.MainThreadCustomEditor,de),e.set(n.MainThreadAPIIdentifier.MainThreadAuthentication,he),yield Z.init(),()=>{r.dispose(),F.dispose(),B.dispose(),z.dispose(),V.dispose(),j.dispose(),K.dispose(),H.dispose(),W.dispose(),U.dispose(),G.dispose(),q.dispose(),$.dispose(),Y.dispose(),Z.dispose(),Q.dispose(),J.dispose(),ee.dispose(),te.dispose(),ie.dispose(),re.dispose(),ne.dispose(),oe.dispose(),se.dispose(),ae.dispose(),ce.dispose(),le.dispose(),ue.dispose(),he.dispose()}}))},t.initWorkerTheadAPIProxy=function(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=t.get(o.MainThreadCommands,[e,!0]),p=t.get(a.MainThreadLanguages,[e]),_=t.get(c.MainThreadStatusBar,[e]),b=t.get(f.MainThreadQuickOpen,[e]),w=t.get(s.MainThreadExtensionDocumentData,[e]),S=t.get(u.MainThreadEditorService,[e,w]),C=t.get(D.MainThreadProgress,[e]),E=t.get(h.MainThreadWorkspace,[e]),O=t.get(v.MainThreadFileSystem,[e]),k=t.get(d.MainThreadPreference,[e]),M=t.get(m.MainThreadOutput),T=t.get(l.MainThreadMessage,[e]),N=t.get(P.MainThreadExtensionLog),F=t.get(y.MainThreadWebview,[e]),B=t.get(g.MainThreadStorage,[e]),z=t.get(A.MainThreadUrls,[e]),V=t.get(x.MainthreadComments,[e,r]),j=t.get(R.MainThreadTheming,[e]),K=t.get(L.MainThreadCustomEditor,[e,F]);return e.set(n.MainThreadAPIIdentifier.MainThreadExtensionService,i),e.set(n.MainThreadAPIIdentifier.MainThreadCommands,r),e.set(n.MainThreadAPIIdentifier.MainThreadLanguages,p),e.set(n.MainThreadAPIIdentifier.MainThreadDocuments,w),e.set(n.MainThreadAPIIdentifier.MainThreadStatusBar,_),e.set(n.MainThreadAPIIdentifier.MainThreadQuickOpen,b),e.set(n.MainThreadAPIIdentifier.MainThreadWorkspace,E),e.set(n.MainThreadAPIIdentifier.MainThreadFileSystem,O),e.set(n.MainThreadAPIIdentifier.MainThreadPreference,k),e.set(n.MainThreadAPIIdentifier.MainThreadOutput,M),e.set(n.MainThreadAPIIdentifier.MainThreadEditors,S),e.set(n.MainThreadAPIIdentifier.MainThreadMessages,T),e.set(I.MainThreadExtensionLogIdentifier,N),e.set(n.MainThreadAPIIdentifier.MainThreadWebview,F),e.set(n.MainThreadAPIIdentifier.MainThreadStorage,B),e.set(n.MainThreadAPIIdentifier.MainThreadUrls,z),e.set(n.MainThreadAPIIdentifier.MainThreadComments,V),e.set(n.MainThreadAPIIdentifier.MainThreadProgress,C),e.set(n.MainThreadAPIIdentifier.MainThreadTheming,j),e.set(n.MainThreadAPIIdentifier.MainThreadCustomEditor,K),yield F.init(),()=>{r.dispose(),p.dispose(),_.dispose(),b.dispose(),w.dispose(),S.dispose(),C.dispose(),E.dispose(),O.dispose(),k.dispose(),M.dispose(),T.dispose(),F.dispose(),B.dispose(),z.dispose(),V.dispose(),j.dispose(),K.dispose()}}))}},67447:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(39273),o=i(19745),s=i(68767),a=i(65686),c=i(71755);let l=class{constructor(e){this.rpcProtocol=e,this.progress=new Map,this.proxy=this.rpcProtocol.getProxy(s.ExtHostAPIIdentifier.ExtHostProgress)}$startProgress(e,t,i){const r=this.createTask(e);if(t.location===a.ProgressLocation.Notification&&i){t=Object.assign(Object.assign({},t),{location:a.ProgressLocation.Notification})}this.progressService.withProgress(t,r,(()=>this.proxy.$acceptProgressCanceled(e)))}$progressReport(e,t){const i=this.progress.get(e);i&&i.progress.report(t)}$progressEnd(e){const t=this.progress.get(e);t&&(t.resolve(),this.progress.delete(e))}dispose(){this.progress.forEach((e=>e.resolve())),this.progress.clear()}createTask(e){return t=>new Promise((i=>{this.progress.set(e,{resolve:i,progress:t})}))}};r.__decorate([o.Autowired(c.IProgressService),r.__metadata("design:type",Object)],l.prototype,"progressService",void 0),l=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(n.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],l),t.MainThreadProgress=l},11602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(68767),o=i(19745),s=i(48904),a=(i(39273),i(84859)),c=i(34865),l=i(58407),u=i(64994),d=i(81776),h=i(31084),p=i(34865),f=i(14480),g=i(27601),m=i(93096),v=i(92668),y=i(65686),_=i(73607),b=i(72740);let w=class extends c.Disposable{constructor(e){super(),this.rpcProtocol=e,this.webivewPanels=new Map,this.webviews=new Map,this.plainWebviews=new Map,this.webviewPanelStates=new Map,this._hasSerializer=new Set,this.statePersister=new Map,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostWebview),this.kaitianProxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.KaitianExtHostWebview),this.initEvents(),this.extWebviewStorage=this.getStorage(new c.URI("extension-webview-panels").withScheme(c.STORAGE_SCHEMA.SCOPE)),this.webviewService.registerWebviewReviver({revive:e=>this.reviveWebview(e),handles:e=>r.__awaiter(this,void 0,void 0,(function*(){return(yield this.extWebviewStorage).get(e)?10:-1}))})}init(){return r.__awaiter(this,void 0,void 0,(function*(){yield this.proxy.$init()}))}isSupportedLink(e,t,i){if(f.HttpOpener.standardSupportedLinkSchemes.has(e.scheme))return!0;if(t.enableCommandUris&&e.scheme===c.Schemas.command){const{id:t,args:r}=g.CommandOpener.parseURI(e);if(!this.commandRegistry.isPermittedCommand(t,i,...r))throw new Error(`Extension ${i.id} has not permit to execute ${t}`);return!0}return!1}initEvents(){this.addDispose(this.editorService.onActiveResourceChange((()=>{this.onChange()}))),this.addDispose(this.eventBus.on(l.EditorGroupChangeEvent,(()=>{this.onChange()})))}isActive(e,t,i){return e.resourceState.uri.isEqual(null==t?void 0:t.uri)&&e.resourceState.openTypeId===(null==i?void 0:i.componentId)}onChange(){const e=this.editorService.currentResource,t=this.editorService.currentEditorGroup.currentOpenType,i=this.editorService.editorGroups.map((e=>({resource:e.currentResource,openType:e.currentOpenType,index:e.index+1})));this.webviewPanelStates.forEach(((r,n)=>{if(!this.hasWebviewPanel(n))return;let o=!1;const s=this.getWebivewPanel(n);if(r.active?e&&this.isActive(s,e,t)||(r.active=!1,o=!0):e&&this.isActive(s,e,t)&&(r.active=!0,o=!0),r.visible){const e=i.find((e=>e.resource&&this.isActive(s,e.resource,e.openType)));e?e.index!==r.position&&(r.position=e.index,o=!0):(r.visible=!1,r.position=-1,o=!0)}else{const e=i.find((e=>e.resource&&this.isActive(s,e.resource,e.openType)));e&&(r.visible=!0,r.position=e.index,o=!0)}o&&(this.proxy.$onDidChangeWebviewPanelViewState(n,r),r.position!==this.getWebivewPanel(n).viewColumn&&(this.getWebivewPanel(n).viewColumn=r.position,this._persistWebviewPanelMeta(n)))}))}$createWebviewPanel(e,t,i,r={},n={},o){this.doCreateWebviewPanel(e,t,i,r,n,o)}pipeBrowserHostedWebviewPanel(e,t,i,r,n){const o=e.id,s=new S(o,i,t,{},{},n,e);this.onCreateWebviewPanel(s),this.proxy.$pipeBrowserHostedWebviewPanel(o,i)}reviveWebview(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(yield this.extWebviewStorage).get(e);if(!t)throw new Error("No revival info for webview "+e);const{viewType:i,webviewOptions:r,extensionInfo:n,title:o}=t;yield this.activation.fireEvent("onWebviewPanel",i);const s=yield this.getPersistedWebviewState(i,e),a=this.webviewService.createEditorWebviewComponent({allowScripts:r.enableScripts,longLive:r.retainContextWhenHidden},e),c=a.group?a.group.index+1:t.viewColumn;yield this.doCreateWebviewPanel(e,i,o,{viewColumn:c},r,n,s),yield this.proxy.$deserializeWebviewPanel(e,i,o,yield this.getPersistedWebviewState(i,e),c,r)}))}onCreateWebviewPanel(e){this.webivewPanels.set(e.id,e);const t=e.webview,i=e.id;e.editorWebview&&e.addDispose(e.editorWebview),e.addDispose(this.connectWebview(e.id,e.webview)),e.addDispose(t.onRemove((()=>{t.dispose(),this.proxy.$onDidDisposeWebviewPanel(i)}))),this.webviewPanelStates.set(e.id,{active:!1,visible:!1,position:-1}),this.addDispose({dispose:()=>{this.webivewPanels.has(i)&&this.getWebivewPanel(i).dispose()}}),t.onDidClickLink((t=>{this.isSupportedLink(t,e.options,e.extensionInfo)&&this.openerService.open(t)})),this.addDispose(t.onDidUpdateState((t=>{this._hasSerializer.has(e.viewType)&&this.persistWebviewState(e.viewType,i,t)}))),this._persistWebviewPanelMeta(i)}doCreateWebviewPanel(e,t,i,n={},o={},s,a){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.webviewService.createEditorWebviewComponent({allowScripts:o.enableScripts,longLive:o.retainContextWhenHidden},e),c=new S(e,t,{uri:r.webviewUri,openTypeId:r.componentId},n,o,s,r.webview,r);r.title=i,this.onCreateWebviewPanel(c),r.supportsRevive=this._hasSerializer.has(c.viewType);const l=h.viewColumnToResourceOpenOptions(n.viewColumn);r.open(l),a&&(c.webview.state=a)}))}getWebivewPanel(e){if(!this.webivewPanels.has(e))throw new Error("拥有ID "+e+" 的 webview 不存在在browser进程中!");return this.webivewPanels.get(e)}hasWebviewPanel(e){return this.webivewPanels.has(e)}$disposeWebview(e){this.getWebivewPanel(e).dispose(),this.webivewPanels.delete(e),this._persistWebviewPanelMeta(e)}$reveal(e,t={}){var i;const r=this.getWebivewPanel(e),n=Object.assign({},r.showOptions,t).viewColumn;null===(i=r.editorWebview)||void 0===i||i.open(h.viewColumnToResourceOpenOptions(n))}$setTitle(e,t){const i=this.getWebivewPanel(e);i.editorWebview&&(i.editorWebview.title=t,i.title=t,this._persistWebviewPanelMeta(e))}$setIconPath(e,t){const i=this.getWebivewPanel(e);i.editorWebview&&(i.editorWebview.icon=t?this.iconService.fromIcon("",t,u.IconType.Background)+" background-tab-icon":"")}connectWebview(e,t){this.webviews.set(e,t);const i=new c.Disposable;return i.addDispose(t.onMessage((t=>{this.proxy.$onMessage(e,t)}))),i.addDispose(c.addMapElement(this.webviews,e,t)),t.onDispose((()=>{i.dispose()})),i}getWebivew(e){return this.webviews.get(e)}$setHtml(e,t){var i;null===(i=this.getWebivew(e))||void 0===i||i.setContent(t)}$setOptions(e,t){var i;null===(i=this.getWebivew(e))||void 0===i||i.updateOptions({allowScripts:t.enableScripts})}$postMessage(e,t){var i;return r.__awaiter(this,void 0,void 0,(function*(){try{return yield null===(i=this.getWebivew(e))||void 0===i?void 0:i.postMessage(t),!0}catch(e){return!1}}))}$registerSerializer(e){this._hasSerializer.add(e),this.webivewPanels.forEach((t=>{t.viewType===e&&t.editorWebview&&(t.editorWebview.supportsRevive=!0)}))}$unregisterSerializer(e){this._hasSerializer.add(e)}_persistWebviewPanelMeta(e){return this.extWebviewStorage.then((t=>{this.webivewPanels.has(e)?t.set(e,this.getWebivewPanel(e).toJSON()):t.delete(e)}))}persistWebviewState(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){this.statePersister.has(e)||this.statePersister.set(e,this.getStorage(new c.URI("extension-webview/"+e).withScheme(c.STORAGE_SCHEMA.SCOPE)).then((e=>{const i=m((i=>e.set(t,i)),500);return e=>r.__awaiter(this,void 0,void 0,(function*(){yield i(e)}))}))),(yield this.statePersister.get(e))(i)}))}getPersistedWebviewState(e,t){return r.__awaiter(this,void 0,void 0,(function*(){return(yield this.getStorage(new c.URI("extension-webview/"+e).withScheme(c.STORAGE_SCHEMA.SCOPE))).get(t)}))}$connectPlainWebview(e){if(!this.plainWebviews.has(e)){const t=this.webviewService.getEditorPlainWebviewComponent(e)||this.webviewService.getOrCreatePlainWebviewComponent(e);t&&(this.plainWebviews.set(e,t),t.webview.onMessage((t=>{this.kaitianProxy.$acceptMessage(e,t)})),t.webview.onDispose((()=>{this.plainWebviews.delete(e)})))}}$postMessageToPlainWebview(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(this.plainWebviews.has(e))try{return yield this.plainWebviews.get(e).webview.postMessage(t),!0}catch(e){return this.logger.error(e),!1}return!1}))}$createPlainWebview(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.webviewService.createEditorPlainWebviewComponent({},e);r.title=t,i&&(r.icon=this.iconService.fromIcon("",i)||""),this.$connectPlainWebview(e)}))}$plainWebviewLoadUrl(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(!this.plainWebviews.has(e))throw new Error("No Plain Webview With id "+e);yield this.plainWebviews.get(e).webview.loadURL(t)}))}$disposePlainWebview(e){var t;return r.__awaiter(this,void 0,void 0,(function*(){this.plainWebviews.has(e)&&(null===(t=this.plainWebviews.get(e))||void 0===t||t.dispose())}))}$revealPlainWebview(e,t){return r.__awaiter(this,void 0,void 0,(function*(){if(!this.plainWebviews.has(e))throw new Error("No Plain Webview With id "+e);const i=this.plainWebviews.get(e);if(!i.open)throw new Error("not able to open plain webview id:"+e);yield i.open({groupIndex:t})}))}$getWebviewResourceRoots(){return r.__awaiter(this,void 0,void 0,(function*(){return Array.from(this.staticResourceService.resourceRoots)}))}};r.__decorate([o.Autowired(s.IWebviewService),r.__metadata("design:type",Object)],w.prototype,"webviewService",void 0),r.__decorate([o.Autowired(v.IActivationEventService),r.__metadata("design:type",v.IActivationEventService)],w.prototype,"activation",void 0),r.__decorate([o.Autowired(c.StorageProvider),r.__metadata("design:type",Function)],w.prototype,"getStorage",void 0),r.__decorate([o.Autowired(),r.__metadata("design:type",a.WorkbenchEditorService)],w.prototype,"editorService",void 0),r.__decorate([o.Autowired(u.IIconService),r.__metadata("design:type",Object)],w.prototype,"iconService",void 0),r.__decorate([o.Autowired(c.IEventBus),r.__metadata("design:type",Object)],w.prototype,"eventBus",void 0),r.__decorate([o.Autowired(c.ILogger),r.__metadata("design:type",Object)],w.prototype,"logger",void 0),r.__decorate([o.Autowired(d.StaticResourceService),r.__metadata("design:type",d.StaticResourceService)],w.prototype,"staticResourceService",void 0),r.__decorate([o.Autowired(p.IOpenerService),r.__metadata("design:type",Object)],w.prototype,"openerService",void 0),r.__decorate([o.Autowired(c.CommandRegistry),r.__metadata("design:type",Object)],w.prototype,"commandRegistry",void 0),w=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],w),t.MainThreadWebview=w;class S extends c.Disposable{constructor(e,t,i,r,n,o,s,a){super(),this.id=e,this.viewType=t,this.resourceState=i,this.showOptions=r,this.options=n,this.extensionInfo=o,this.webview=s,this.editorWebview=a}toJSON(){return{id:this.id,viewType:this.viewType,viewColumn:this.viewColumn,extensionInfo:this.extensionInfo,webviewOptions:this.options,title:this.title}}}class C extends c.Disposable{constructor(e,t,i,r){super(),this.id=e,this.viewType=t,this.extension=i,this.webview=r}}let E=class extends y.WithEventBus{constructor(e,t){super(),this.mainThreadWebview=t,this._webviewViews=new Map,this._resolvers=new Map,this.proxy=e.getProxy(n.ExtHostAPIIdentifier.ExtHostWebviewView)}$registerWebviewViewProvider(e,t,i={}){this._resolvers.set(t,{extension:e,options:i}),this.eventBus.fire(new n.WebviewViewResolverRegistrationEvent({viewType:t,options:i}))}$unregisterWebviewViewProvider(e){this._resolvers.delete(e),this.eventBus.fire(new n.WebviewViewResolverRegistrationRemovalEvent({viewType:e}))}$setWebviewViewTitle(e,t){var i;const r=this._webviewViews.get(e);r&&(null===(i=this.mainLayout.getTabbarHandler(r.viewType))||void 0===i||i.updateViewTitle(r.viewType,t||""))}$setWebviewViewDescription(e,t){this._webviewViews.get(e)}onWebviewViewShouldShow(e){const t=e.payload.viewType;this._resolvers.has(t)?e.payload.disposer.addDispose(this.resolveWebviewView(e.payload.container,t,e.payload.title,e.payload.cancellationToken)):this.addDispose(this.eventBus.on(n.WebviewViewResolverRegistrationEvent,(i=>{i.payload.viewType===t&&this._resolvers.has(t)&&e.payload.disposer.addDispose(this.resolveWebviewView(e.payload.container,t,e.payload.title,e.payload.cancellationToken))})))}resolveWebviewView(e,t,i,r){var n;const o=new c.Disposable,s=this.webviewService.createWebview(),a=null===(n=this._resolvers.get(t))||void 0===n?void 0:n.options,l=this._resolvers.get(t).extension,u=s.id,d=new C(u,t,l,s);d.addDispose(this.mainThreadWebview.connectWebview(u,s)),d.addDispose(c.addMapElement(this._webviewViews,u,d)),d.addDispose(s),o.addDispose(this.eventBus.on(_.ViewCollapseChangedEvent,(i=>{if(i.payload.viewId===t){const i=this.mainLayout.isViewVisible(t);this.proxy.$onDidChangeWebviewViewVisibility(u,i),(null==a?void 0:a.retainContextWhenHidden)||(i?s.appendTo(e):s.remove())}})));const h=this.mainLayout.getTabbarHandler(t);h&&(o.addDispose(null==h?void 0:h.onActivate((()=>{const e=this.mainLayout.isViewVisible(t);this.proxy.$onDidChangeWebviewViewVisibility(u,e)}))),o.addDispose(null==h?void 0:h.onInActivate((()=>{const e=this.mainLayout.isViewVisible(t);this.proxy.$onDidChangeWebviewViewVisibility(u,e)})))),this.proxy.$resolveWebviewView(u,t,i,s.state,r);const p=this.mainLayout.isViewVisible(t);return this.proxy.$onDidChangeWebviewViewVisibility(u,p),((null==a?void 0:a.retainContextWhenHidden)||p)&&s.appendTo(e),o.addDispose(d),{dispose:()=>d.dispose()}}$show(e,t){const i=this._webviewViews.get(e);i&&this.mainLayout.revealView(i.viewType)}};r.__decorate([o.Autowired(_.IMainLayoutService),r.__metadata("design:type",Object)],E.prototype,"mainLayout",void 0),r.__decorate([o.Autowired(s.IWebviewService),r.__metadata("design:type",Object)],E.prototype,"webviewService",void 0),r.__decorate([y.OnEvent(b.WebviewViewShouldShowEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[b.WebviewViewShouldShowEvent]),r.__metadata("design:returntype",void 0)],E.prototype,"onWebviewViewShouldShow",null),E=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,w])],E),t.MainThreadWebviewView=E},73474:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(68767),o=i(19745),s=(i(39273),i(34865)),a=i(92224),c=i(65686),l=i(92668);let u=class extends s.Disposable{constructor(e,t,i,r){super(),this._proxy=e,this.id=t,this.label=i,this.supportsMultipleAccounts=r,this._accounts=new Map,this._sessions=new Map}initialize(){return r.__awaiter(this,void 0,void 0,(function*(){return this.registerCommandsAndContextMenuItems()}))}manageTrustedExtensions(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.authenticationService.getAllowedExtensions(this.id,e);if(!t.length)return void this.dialogService.info(s.localize("authentication.noTrustedExtensions"));const i=yield this.authenticationService.getAccountUsages(this.id,e),r=t.map((e=>{const t=i.find((t=>e.id===t.extensionId));return{label:e.name,description:t?s.localize("authentication.accountLastUsedDate"):s.localize("authentication.notUsed"),value:e}})),n=yield this.quickPickService.show(r,{title:s.localize("authentication.manageTrustedExtensions"),placeholder:s.localize("authentication.manageExtensions")});n&&(yield this.authenticationService.setAllowedExtensions(this.id,e,[n]))}))}signOut(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.authenticationService.getAccountUsages(this.id,e),i=this._accounts.get(e),r=t.length?s.formatLocalize("authentication.signOutMessage",e,t.map((e=>e.extensionName)).join("\n")):s.formatLocalize("authentication.signOutMessageSimple",e);(yield this.dialogService.info(r,[s.localize("ButtonCancel"),s.localize("ButtonOK")]))===s.localize("ButtonOK")&&(null==i||i.forEach((e=>this.logout(e))),yield this.authenticationService.removeAccountUsage(this.id,e),yield this.authenticationService.removeAllowedExtensions(this.id,e))}))}getSessions(){return r.__awaiter(this,void 0,void 0,(function*(){return this._proxy.$getSessions(this.id)}))}hasSessions(){return!!this._sessions.size}updateSessionItems(e){return r.__awaiter(this,void 0,void 0,(function*(){const{added:t,removed:i}=e,r=(yield this._proxy.$getSessions(this.id)).filter((e=>t.some((t=>t.id===e.id))));i.forEach((e=>{const t=this._sessions.get(e.id);if(t){this._sessions.delete(e.id);const i=this._accounts.get(t)||[],r=i.indexOf(e.id);i.splice(r),i.length||this._accounts.delete(t)}})),r.forEach((e=>this.registerSession(e)))}))}registerCommandsAndContextMenuItems(){return r.__awaiter(this,void 0,void 0,(function*(){try{(yield this._proxy.$getSessions(this.id)).forEach((e=>this.registerSession(e)))}catch(e){this.logger.error(e)}}))}registerSession(e){this._sessions.set(e.id,e.account.label);const t=this._accounts.get(e.account.label);t?this._accounts.set(e.account.label,t.concat(e.id)):this._accounts.set(e.account.label,[e.id])}login(e){return this._proxy.$login(this.id,e)}logout(e){return r.__awaiter(this,void 0,void 0,(function*(){yield this._proxy.$logout(this.id,e),this.messageService.info(s.localize("authentication.signedOut"))}))}};r.__decorate([o.Autowired(c.IAuthenticationService),r.__metadata("design:type",Object)],u.prototype,"authenticationService",void 0),r.__decorate([o.Autowired(s.QuickPickService),r.__metadata("design:type",Object)],u.prototype,"quickPickService",void 0),r.__decorate([o.Autowired(a.IDialogService),r.__metadata("design:type",Object)],u.prototype,"dialogService",void 0),r.__decorate([o.Autowired(a.IMessageService),r.__metadata("design:type",Object)],u.prototype,"messageService",void 0),r.__decorate([o.Autowired(s.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),u=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,String,String,Boolean])],u),t.MainThreadAuthenticationProvider=u;let d=class extends s.Disposable{constructor(e){super(),this._proxy=e.getProxy(n.ExtHostAPIIdentifier.ExtHostAuthentication),this.addDispose(this.authenticationService.onDidChangeSessions((e=>{this._proxy.$onDidChangeAuthenticationSessions(e.providerId,e.label,e.event)}))),this.addDispose(this.authenticationService.onDidRegisterAuthenticationProvider((e=>{this._proxy.$onDidChangeAuthenticationProviders([e],[])}))),this.addDispose(this.authenticationService.onDidUnregisterAuthenticationProvider((e=>{this._proxy.$onDidChangeAuthenticationProviders([],[e])})))}$getProviderIds(){return Promise.resolve(this.authenticationService.getProviderIds())}$registerAuthenticationProvider(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.injector.get(u,[this._proxy,e,t,i]);yield r.initialize(),this.authenticationService.registerAuthenticationProvider(e,r)}))}$unregisterAuthenticationProvider(e){this.authenticationService.unregisterAuthenticationProvider(e)}$ensureProvider(e){return this.activationService.fireEvent("onAuthenticationRequest",e)}$sendDidChangeSessions(e,t){this.authenticationService.sessionsUpdate(e,t)}$getSessions(e){return this.authenticationService.getSessions(e)}$login(e,t){return this.authenticationService.login(e,t)}$logout(e,t){return this.authenticationService.logout(e,t)}$requestNewSession(e,t,i,n){return r.__awaiter(this,void 0,void 0,(function*(){return this.authenticationService.requestNewSession(e,t,i,n)}))}$getSession(e,t,i,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r=t.sort().join(" "),s=(yield this.$getSessions(e)).filter((e=>e.scopes.slice().sort().join(" ")===r)),a=this.authenticationService.getLabel(e);if(s.length){if(!this.authenticationService.supportsMultipleAccounts(e)){const t=s[0];if(yield this.$getSessionsPrompt(e,t.account.label,a,i,n))return t;throw new Error("User did not consent to login.")}const r=yield this.$selectSession(e,a,i,n,s,t,!!o.clearSessionPreference);return s.find((e=>e.id===r.id))}if(o.createIfNone){if(!(yield this.$loginPrompt(a,n)))throw new Error("User did not consent to login.");const r=yield this.authenticationService.login(e,t);return yield this.$setTrustedExtensionAndAccountPreference(e,r.account.label,i,n,r.id),r}yield this.$requestNewSession(e,t,i,n)}))}$selectSession(e,t,i,n,o,a,c){return r.__awaiter(this,void 0,void 0,(function*(){if(!o.length)throw new Error("No potential sessions found");if(c)yield this.authenticationService.removeExtensionSessionId(n,e);else{const r=yield this.authenticationService.getExtensionSessionId(n,e);if(r){const s=o.find((e=>e.id===r));if(s){if(yield this.$getSessionsPrompt(e,s.account.label,t,i,n))return s}}}const r=o.map((e=>({label:e.account.label,value:e})));r.push({label:s.localize("authentication.useOtherAccount"),value:void 0});const l=yield this.quickPickService.show(r,{title:s.formatLocalize("authentication.selectAccount",n,t),placeholder:s.formatLocalize("authentication.getSessionPlaceholder",n),ignoreFocusOut:!0}),u=null!=l?l:yield this.authenticationService.login(e,a),d=u.account.label,h=yield this.authenticationService.getAllowedExtensions(e,d);return h.find((e=>e.id===i))||(h.push({id:i,name:n}),yield this.authenticationService.setAllowedExtensions(e,d,h)),yield this.authenticationService.setExtensionSessionId(n,e,u.id),u}))}$getSessionsPrompt(e,t,i,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.authenticationService.getAllowedExtensions(e,t);if(r.find((e=>e.id===n)))return yield this.authenticationService.addAccountUsage(e,t,n,o),!0;const a=(yield this.dialogService.info(s.formatLocalize("authentication.confirmAuthenticationAccess",o,i,t),[s.localize("ButtonCancel"),s.localize("ButtonAllow")]))===s.localize("ButtonAllow");return a&&(this.authenticationService.addAccountUsage(e,t,n,o),r.push({id:n,name:o}),yield this.authenticationService.setAllowedExtensions(e,t,r)),a}))}$loginPrompt(e,t){return r.__awaiter(this,void 0,void 0,(function*(){return(yield this.dialogService.info(s.formatLocalize("authentication.confirmLogin",t,e),[s.localize("ButtonCancel"),s.localize("ButtonAllow")]))===s.localize("ButtonAllow")}))}$setTrustedExtensionAndAccountPreference(e,t,i,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.authenticationService.getAllowedExtensions(e,t);r.find((e=>e.id===i))||(r.push({id:i,name:n}),yield this.authenticationService.setAllowedExtensions(e,t,r)),yield this.authenticationService.setExtensionSessionId(n,e,o),yield this.authenticationService.addAccountUsage(e,t,i,n)}))}};r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],d.prototype,"injector",void 0),r.__decorate([o.Autowired(c.IAuthenticationService),r.__metadata("design:type",Object)],d.prototype,"authenticationService",void 0),r.__decorate([o.Autowired(a.IDialogService),r.__metadata("design:type",Object)],d.prototype,"dialogService",void 0),r.__decorate([o.Autowired(a.IMessageService),r.__metadata("design:type",Object)],d.prototype,"messageService",void 0),r.__decorate([o.Autowired(s.QuickPickService),r.__metadata("design:type",Object)],d.prototype,"quickPickService",void 0),r.__decorate([o.Autowired(l.IActivationEventService),r.__metadata("design:type",l.IActivationEventService)],d.prototype,"activationService",void 0),d=r.__decorate([o.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],d),t.MainThreadAuthentication=d},92643:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(39273),o=i(68767),s=i(19745),a=i(34865),c=i(79920),l=i(65686);let u=class{constructor(e,t){this.rpcProtocol=e,this.commands=new Map,this.argumentProcessors=[],this.disposable=new l.Disposable,this.proxy=this.rpcProtocol.getProxy(o.ExtHostAPIIdentifier.ExtHostCommands),t||this.proxy.$registerBuiltInCommands(),this.proxy.$registerCommandConverter(),this.registerUriArgProcessor()}registerUriArgProcessor(){this.disposable.addDispose(this.registerArgumentProcessor({processArgument:e=>e instanceof l.URI?e.codeUri:l.isNonEmptyArray(e)?e.map((e=>e instanceof l.URI?e.codeUri:e)):e}))}dispose(){this.commands.forEach((e=>{e.dispose()})),this.commands.clear(),this.disposable.dispose()}registerArgumentProcessor(e){return this.argumentProcessors.push(e),l.Disposable.create((()=>{const t=this.argumentProcessors.indexOf(e);t>=0&&this.argumentProcessors.splice(t,1)}))}$registerCommand(e){const t=this.proxy,i=(...i)=>(i=i.map((e=>this.argumentProcessors.reduce(((e,t)=>t.processArgument(e)),e))),t.$executeContributedCommand(e,...i)),r=new l.Disposable,n={execute:i,dispose:()=>r.dispose()};this.commandRegistry.getCommand(e)?r.addDispose(this.commandRegistry.registerHandler(e,{execute:i})):r.addDispose(this.commandRegistry.registerCommand({id:e},{execute:i})),this.commands.set(e,n)}$unregisterCommand(e){const t=this.commands.get(e);t&&(t.dispose(),this.commands.delete(e))}$getCommands(){return Promise.resolve(this.commandRegistry.getCommands().map((e=>e.id)))}$executeExtensionCommand(e,...t){return this.commands.has(e)?this.commands.get(e).execute(...t):(t=t.map((e=>this.argumentProcessors.reduce(((e,t)=>t.processArgument(e)),e))),this.proxy.$executeContributedCommand(e,...t))}$executeCommandWithExtensionInfo(e,t,...i){if(!this.commandRegistry.isPermittedCommand(e,t,...i))throw new Error(`Extension ${t.id} has not permit to execute ${e}`);return this.$executeCommand(e,...i)}$executeCommand(e,...t){return r.__awaiter(this,void 0,void 0,(function*(){try{return yield this.monacoCommandService.executeCommand(e,...t)}catch(e){throw this.logger.error(e),e}}))}};r.__decorate([s.Autowired(a.CommandRegistry),r.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",c.MonacoCommandService)],u.prototype,"monacoCommandService",void 0),r.__decorate([s.Autowired(a.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([s.Autowired(a.IContextKeyService),r.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),u=r.__decorate([s.Injectable({multiple:!0}),r.__param(0,s.Optinal(n.IRPCProtocol)),r.__metadata("design:paramtypes",[Object,Boolean])],u),t.MainThreadCommands=u},34534:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(86451),s=i(65686),a=(i(39273),i(68767)),c=i(12047),l=i(43849);let u=class{constructor(e,t){this.rpcProtocol=e,this.mainThreadCommands=t,this._providers=new Map,this._commentControllers=new Map,this.disposable=new s.Disposable,this.proxy=this.rpcProtocol.getProxy(a.ExtHostAPIIdentifier.ExtHostComments),this.disposable.addDispose(this.registerCommentThreadTemplateHander()),this.disposable.addDispose(this.registerArgumentProcessor())}registerCommentThreadTemplateHander(){return this.commentsService.onThreadsCreated((e=>r.__awaiter(this,void 0,void 0,(function*(){if(s.isUndefined(e.data)){const t=this.commentsService.getProviderIdsByLine(e.range.startLineNumber)[0];if(t){const i=this._providers.get(t);if(s.isUndefined(i))return;const r=this._commentControllers.get(i);if(!r)throw new Error("unknown controller");r.createCommentThreadTemplate(e.uri.codeUri,e.range)}}}))))}registerArgumentProcessor(){return this.mainThreadCommands.registerArgumentProcessor({processArgument:e=>{if(!e||!e.menuId||!e.thread||s.isUndefined(e.thread.data))return e;switch(e.menuId){case l.MenuId.CommentsCommentThreadTitle:return{$mid:7,commentControlHandle:e.thread.data.commentControlHandle,commentThreadHandle:e.thread.data.commentThreadHandle};case l.MenuId.CommentsCommentThreadContext:return{$mid:8,thread:{commentControlHandle:e.thread.data.commentControlHandle,commentThreadHandle:e.thread.data.commentThreadHandle},text:e.text};case l.MenuId.CommentsCommentTitle:return{$mid:9,thread:{commentControlHandle:e.thread.data.commentControlHandle,commentThreadHandle:e.thread.data.commentThreadHandle},commentUniqueId:+e.comment.id};case l.MenuId.CommentsCommentContext:return{$mid:10,thread:{commentControlHandle:e.thread.data.commentControlHandle,commentThreadHandle:e.thread.data.commentThreadHandle},commentUniqueId:+e.comment.id,text:e.body};default:return e}}})}$updateCommentThread(e,t,i,r,n){const o=this._commentControllers.get(e);if(o)return o.updateCommentThread(t,i,r,n)}$registerCommentController(e,t,i){this.commentsService.registerCommentPanel(),this._providers.set(t,e);const r=this.injector.get(h,[this.proxy,e,t,i,{}]);this.disposable.addDispose(r),this._commentControllers.set(e,r),this.commentsService.forceUpdateDecoration()}$updateCommentControllerFeatures(e,t){const i=this._commentControllers.get(e);i&&i.updateFeatures(t)}$unregisterCommentController(e){const t=this._commentControllers.get(e);t&&(t.dispose(),this._providers.delete(t.id)),this._commentControllers.delete(e)}$createCommentThread(e,t,i,r,n,o){const s=this._commentControllers.get(e);if(s)return s.createCommentThread(o,t,i,r,n)}$deleteCommentThread(e,t){const i=this._commentControllers.get(e);if(i)return i.deleteCommentThread(t)}dispose(){this.disposable.dispose(),this._commentControllers.clear()}};r.__decorate([n.Autowired(c.ICommentsService),r.__metadata("design:type",Object)],u.prototype,"commentsService",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],u.prototype,"injector",void 0),u=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,Object])],u),t.MainthreadComments=u;let d=class{constructor(e,t,i,r,n,o){this.commentThreadHandle=e,this.controllerHandle=t,this.extensionId=i,this.threadId=r,this.resource=n,this._range=o,this._onDidChangeInput=new s.Emitter,this._onDidChangeLabel=new s.Emitter,this.onDidChangeLabel=this._onDidChangeLabel.event,this._onDidChangeComments=new s.Emitter,this._onDidChangeRange=new s.Emitter,this.onDidChangeRange=this._onDidChangeRange.event,this._onDidChangeCollasibleState=new s.Emitter,this.onDidChangeCollasibleState=this._onDidChangeCollasibleState.event;const a=this.commentsService.commentsThreads.filter((e=>e.uri.toString()===n&&e.range.startLineNumber===o.startLineNumber)),[c]=a.slice(-1),l={commentControlHandle:t,commentThreadHandle:e};c&&!c.data?(c.data=l,this._thread=c):this._thread=this.commentsService.createThread(new s.URI(n),s.positionToRange(o.startLineNumber),{data:l}),this._isDisposed=!1}get input(){return this._input}set input(e){this._input=e,this._onDidChangeInput.fire(e)}get onDidChangeInput(){return this._onDidChangeInput.event}get label(){return this._thread.label}set label(e){this._thread.label=e,this._onDidChangeLabel.fire(e)}get contextValue(){return this._thread.contextValue}set contextValue(e){this._thread.contextValue=e}convertToIThreadComment(e){var t;return{id:e.uniqueIdInThread.toString(),mode:e.mode,body:e.body.value,label:e.label,contextValue:e.contextValue,author:{name:e.userName,iconPath:e.userIconPath},reactions:null===(t=e.commentReactions)||void 0===t?void 0:t.map((e=>this.convertToCommentReaction(e)))}}convertToCommentReaction(e){const{label:t,iconPath:i,count:r,hasReacted:n}=e;return{label:t,iconPath:new s.URI(s.URI.revive(i)),count:null!=r?r:0,authorHasReacted:!!n}}convertToCoreReaction(e){const{label:t,iconPath:i,count:r,authorHasReacted:n}=e;return{label:t,iconPath:s.URI.revive(i),count:null!=r?r:0,hasReacted:n}}convertToCoreComment(e){var t;return{uniqueIdInThread:+e.id,contextValue:e.contextValue,mode:e.mode,label:"string"==typeof e.label?e.label:"",body:{value:e.body},userName:e.author.name,commentReactions:null===(t=e.reactions)||void 0===t?void 0:t.map((e=>this.convertToCoreReaction(e)))}}get comments(){return this._thread.comments.map((e=>this.convertToCoreComment(e)))}set comments(e){this._thread.comments=e?e.map((e=>this.convertToIThreadComment(e))):[],this._onDidChangeComments.fire(e)}get onDidChangeComments(){return this._onDidChangeComments.event}set range(e){this._thread.range=e,this._onDidChangeRange.fire(this._range)}get range(){return this._thread.range}get collapsibleState(){return this._thread.isCollapsed?o.CommentThreadCollapsibleState.Collapsed:o.CommentThreadCollapsibleState.Expanded}set collapsibleState(e){this._thread.isCollapsed=e===o.CommentThreadCollapsibleState.Collapsed,this._onDidChangeCollasibleState.fire(this._collapsibleState)}get isDisposed(){return this._isDisposed}batchUpdate(e){const t=t=>Object.prototype.hasOwnProperty.call(e,t);t("range")&&(this.range=e.range),t("label")&&(this.label=e.label),t("contextValue")&&(this.contextValue=e.contextValue),t("comments")&&(this.comments=e.comments),t("collapseState")&&(this.collapsibleState=e.collapseState)}dispose(){this._isDisposed=!0,this._onDidChangeCollasibleState.dispose(),this._onDidChangeComments.dispose(),this._onDidChangeInput.dispose(),this._onDidChangeLabel.dispose(),this._onDidChangeRange.dispose(),this._thread.dispose()}toJSON(){return{$mid:7,commentControlHandle:this.controllerHandle,commentThreadHandle:this.commentThreadHandle}}};r.__decorate([n.Autowired(c.ICommentsService),r.__metadata("design:type",Object)],d.prototype,"commentsService",void 0),d=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Number,Number,String,String,String,Object])],d),t.MainThreadCommentThread=d;let h=class extends s.WithEventBus{constructor(e,t,i,r,n){super(),this._proxy=e,this._handle=t,this._id=i,this._label=r,this._features=n,this._threads=new Map,this.addDispose(this.commentsService.registerCommentRangeProvider(i,{getCommentingRanges:e=>this.getCommentingRanges(e.uri,s.CancellationToken.None)}))}get handle(){return this._handle}get id(){return this._id}get contextValue(){return this._id}get proxy(){return this._proxy}get label(){return this._label}get reactions(){return this._reactions}set reactions(e){this._reactions=e}get features(){return this._features}updateFeatures(e){var t;this._features=Object.assign(Object.assign({},this._features),e),this.commentsFeatureRegistry.registerProviderFeature(this._id,{placeholder:null===(t=this._features.options)||void 0===t?void 0:t.placeHolder})}createCommentThread(e,t,i,r,n){const o=s.URI.from(r),a=this.injector.get(d,[t,this.handle,e,i,o.toString(),n]);return this._threads.set(t,a),this.addDispose({dispose:()=>{this._threads.delete(t),a.dispose()}}),a}updateCommentThread(e,t,i,r){this.getKnownThread(e).batchUpdate(r)}deleteCommentThread(e){const t=this.getKnownThread(e);this._threads.delete(e),t.dispose()}deleteCommentThreadMain(e){this._threads.forEach((t=>{t.threadId===e&&this._proxy.$deleteCommentThread(this._handle,t.commentThreadHandle)}))}getKnownThread(e){const t=this._threads.get(e);if(!t)throw new Error("unknown thread");return t}getCommentingRanges(e,t){return r.__awaiter(this,void 0,void 0,(function*(){return(yield this._proxy.$provideCommentingRanges(this.handle,e.codeUri,t))||[]}))}handleCommentReaction(e){var t;const{thread:i,comment:r,reaction:n}=e.payload,o=null===(t=i.data)||void 0===t?void 0:t.commentThreadHandle,s=this.getKnownThread(o),a=s.convertToCoreComment(r),c=s.convertToCoreReaction(n);this.toggleReaction(i.uri,s,a,c)}toggleReaction(e,t,i,n){return r.__awaiter(this,void 0,void 0,(function*(){return this._proxy.$toggleReaction(this._handle,t.commentThreadHandle,e.codeUri,i,n)}))}createCommentThreadTemplate(e,t){this._proxy.$createCommentThreadTemplate(this.handle,e,t)}updateCommentThreadTemplate(e,t){return r.__awaiter(this,void 0,void 0,(function*(){yield this._proxy.$updateCommentThreadTemplate(this.handle,e,t)}))}toJSON(){return{$mid:6,handle:this.handle}}};r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],h.prototype,"injector",void 0),r.__decorate([n.Autowired(c.ICommentsService),r.__metadata("design:type",Object)],h.prototype,"commentsService",void 0),r.__decorate([n.Autowired(c.ICommentsFeatureRegistry),r.__metadata("design:type",Object)],h.prototype,"commentsFeatureRegistry",void 0),r.__decorate([s.OnEvent(c.CommentReactionClick),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[c.CommentReactionClick]),r.__metadata("design:returntype",void 0)],h.prototype,"handleCommentReaction",null),h=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,Number,String,String,Object])],h),t.MainThreadCommentController=h},89456:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(68767),o=i(19745),s=i(39273),a=i(34865);let c=class{constructor(e){this.rpcProtocol=e,this.connections=new Map,this.connectionsReady=new Map,this.logger=this.LoggerManager.getLogger(a.SupportLogNamespace.ExtensionHost),this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostConnection)}dispose(){this.connections.forEach((e=>{e.dispose()})),this.connections.clear()}$sendMessage(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=this.connectionsReady.get(e);i&&(yield i.promise),this.connections.has(e)?this.connections.get(e).reader.readMessage(t):this.logger.warn(`Do not found connection ${e}`)}))}$createConnection(e){return r.__awaiter(this,void 0,void 0,(function*(){this.logger.log(`create connection ${e}`),yield this.doEnsureConnection(e)}))}$deleteConnection(e){return r.__awaiter(this,void 0,void 0,(function*(){this.logger.log(`delete connection ${e}`),this.connections.delete(e)}))}ensureConnection(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.doEnsureConnection(e);return yield this.proxy.$createConnection(e),t}))}doEnsureConnection(e){return r.__awaiter(this,void 0,void 0,(function*(){let t=this.connections.get(e);if(!t){const i=new a.Deferred;this.connectionsReady.set(e,i),t=yield this.doCreateConnection(e),i.resolve(),this.connections.set(e,t),this.connectionsReady.delete(e)}return t}))}doCreateConnection(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new n.ExtensionMessageReader,i=new n.ExtensionMessageWriter(e,this.proxy);return new n.ExtensionConnection(t,i,(()=>{this.connections.delete(e),this.proxy.$deleteConnection(e)}))}))}};r.__decorate([o.Autowired(a.ILoggerManagerClient),r.__metadata("design:type",Object)],c.prototype,"LoggerManager",void 0),c=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(s.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadConnection=c},91859:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(68767),s=(i(39273),i(65686)),a=i(66164),c=i(58407),l=i(11602),u=i(48904);let d=class extends s.WithEventBus{constructor(e,t){super(),this.webview=t,this.customEditors=new Map,this.proxy=e.getProxy(o.ExtHostAPIIdentifier.ExtHostCustomEditor)}$acceptCustomDocumentDirty(e,t){this.eventBus.fire(new c.ResourceDecorationNeedChangeEvent({uri:s.URI.from(e),decoration:{dirty:t}}))}onShouldSave(e){return r.__awaiter(this,void 0,void 0,(function*(){const{viewType:t,uri:i,cancellationToken:r}=e.payload,n=this.customEditors.get(t);if(n)if(n.type===o.CustomEditorType.TextEditor){const e=this.editorDocumentModelService.getModelReference(i);if(e)try{yield e.instance.save()}finally{e.dispose()}}else if(n.type===o.CustomEditorType.FullEditor)return this.proxy.$saveCustomDocument(t,i.codeUri,r)}))}onShouldRevert(e){return r.__awaiter(this,void 0,void 0,(function*(){const{viewType:t,uri:i,cancellationToken:r}=e.payload,n=this.customEditors.get(t);if(n)if(n.type===o.CustomEditorType.TextEditor){const e=this.editorDocumentModelService.getModelReference(i);if(e)try{yield e.instance.revert()}finally{e.dispose()}}else if(n.type===o.CustomEditorType.FullEditor)return this.proxy.$revertCustomDocument(t,i.codeUri,r)}))}onShouldEdit(e){return r.__awaiter(this,void 0,void 0,(function*(){const{viewType:t,uri:i,type:r}=e.payload,n=this.customEditors.get(t);if(n)if(n.type===o.CustomEditorType.TextEditor){const e=this.editorDocumentModelService.getModelReference(i);if(e)try{"undo"===r?yield e.instance.getMonacoModel().undo():yield e.instance.getMonacoModel().redo()}finally{e.dispose()}}else n.type===o.CustomEditorType.FullEditor&&("undo"===r?yield this.proxy.$undo(t,i.codeUri):yield this.proxy.$redo(t,i.codeUri))}))}onCustomEditorShouldDisplayEvent(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.customEditors.get(e.payload.viewType);if(t){const{viewType:i,uri:r,openTypeId:n,webviewPanelId:s,cancellationToken:c}=e.payload;if(t.type===o.CustomEditorType.TextEditor){const e=yield this.editorDocumentModelService.createModelReference(r);if(!e)throw new Error(`failed to open document ${r} for custom editor`);if(c.isCancellationRequested)return void e.dispose();const o=this.webviewService.getWebview(s);if(!o)throw e.dispose(),new Error(`failed to find webview ${s}`);this.eventBus.on(a.CustomEditorShouldHideEvent,(t=>{r.isEqual(t.payload.uri)&&e.dispose()})),this.webview.pipeBrowserHostedWebviewPanel(o,{uri:r,openTypeId:n},i,t.options.webviewOptions||{},t.extensionInfo),this.proxy.$resolveCustomTextEditor(i,r.codeUri,s,c)}else{const e=this.webviewService.getWebview(s);if(!e)throw new Error(`failed to find webview ${s}`);this.webview.pipeBrowserHostedWebviewPanel(e,{uri:r,openTypeId:n},i,t.options.webviewOptions||{},t.extensionInfo),this.proxy.$resolveCustomTextEditor(i,r.codeUri,s,c)}}}))}$registerCustomEditor(e,t,i={},r){this.customEditors.set(e,{type:t,options:i,extensionInfo:r}),this.eventBus.fire(new a.CustomEditorOptionChangeEvent({viewType:e,options:i}))}$unregisterCustomEditor(e){this.customEditors.delete(e)}};r.__decorate([n.Autowired(c.IEditorDocumentModelService),r.__metadata("design:type",Object)],d.prototype,"editorDocumentModelService",void 0),r.__decorate([n.Autowired(u.IWebviewService),r.__metadata("design:type",Object)],d.prototype,"webviewService",void 0),r.__decorate([s.OnEvent(a.CustomEditorShouldSaveEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.CustomEditorShouldSaveEvent]),r.__metadata("design:returntype",Promise)],d.prototype,"onShouldSave",null),r.__decorate([s.OnEvent(a.CustomEditorShouldRevertEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.CustomEditorShouldSaveEvent]),r.__metadata("design:returntype",Promise)],d.prototype,"onShouldRevert",null),r.__decorate([s.OnEvent(a.CustomEditorShouldEditEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.CustomEditorShouldEditEvent]),r.__metadata("design:returntype",Promise)],d.prototype,"onShouldEdit",null),r.__decorate([s.OnEvent(a.CustomEditorShouldDisplayEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[a.CustomEditorShouldDisplayEvent]),r.__metadata("design:returntype",Promise)],d.prototype,"onCustomEditorShouldDisplayEvent",null),d=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object,l.MainThreadWebview])],d),t.MainThreadCustomEditor=d},31557:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(68767),s=i(34865),a=i(76195),c=i(47641),l=i(39273),u=i(65777),d=i(36002),h=i(84859),p=i(92224),f=i(46921),g=i(32740),m=i(88111),v=i(92668),y=i(40740),_=i(63446),b=i(78079),w=i(65874);let S=class{constructor(e,t){this.rpcProtocol=e,this.mainThreadConnection=t,this.toDispose=new Map,this.listenerDispose=new s.DisposableCollection,this.logger=this.loggerManager.getLogger(s.SupportLogNamespace.ExtensionHost),this.proxy=this.rpcProtocol.getProxy(o.ExtHostAPIIdentifier.ExtHostDebug),this.listen(),this.registerDebugContributions()}dispose(){this.toDispose.forEach((e=>{e.dispose()})),this.toDispose.clear(),this.listenerDispose.dispose()}listen(){this.listenerDispose.pushAll([this.breakpointManager.onDidChangeBreakpoints((({added:e,removed:t,changed:i})=>{const r=this.breakpointManager.getBreakpoints();this.proxy.$breakpointsDidChange(this.toCustomApiBreakpoints(r),this.toCustomApiBreakpoints(e),this.toCustomApiBreakpoints(t),this.toCustomApiBreakpoints(i))})),this.sessionManager.onDidStartDebugSession((e=>{this.proxy.$sessionDidStart(e.id)})),this.sessionManager.onDidDestroyDebugSession((e=>{this.proxy.$sessionDidDestroy(e.id)})),this.sessionManager.onDidChangeActiveDebugSession((e=>{this.proxy.$sessionDidChange(e.current&&e.current.id)})),this.sessionManager.onDidReceiveDebugSessionCustomEvent((e=>{this.proxy.$onSessionCustomEvent(e.session.id,e.event,e.body)})),this.debugService.onDidDebugContributionPointChange((({path:e,contributions:t,removed:i})=>{i?(this.proxy.$unregisterDebuggerContributions(t),t.forEach((e=>{this.$unregisterDebuggerContribution({type:e.type,label:e.label||e.type}),this.logger.log(`Debugger contribution has been unregistered: ${e.type}`)}))):(this.proxy.$registerDebuggerContributions(e,t),t.forEach((e=>{this.$registerDebuggerContribution({type:e.type,label:e.label||e.type}),this.logger.log(`Debugger contribution has been registered: ${e.type}`)})))}))])}registerDebugContributions(){const e=this.debugService.debugContributionPoints;for(const[t,i]of e)this.proxy.$registerDebuggerContributions(t,i),i.forEach((e=>{this.$registerDebuggerContribution({type:e.type,label:e.label||e.type}),this.logger.log(`Debugger contribution has been registered: ${e.type}`)}))}$appendToDebugConsole(e){return r.__awaiter(this,void 0,void 0,(function*(){this.debugConsoleModelService.debugConsoleSession&&this.debugConsoleModelService.debugConsoleSession.append(e)}))}$appendLineToDebugConsole(e){return r.__awaiter(this,void 0,void 0,(function*(){this.debugConsoleModelService.debugConsoleSession&&this.debugConsoleModelService.debugConsoleSession.appendLine(e)}))}$unregisterDebuggerContribution(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.toDispose.get(e.type);null==t||t.dispose()}))}$registerDebuggerContribution(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new s.DisposableCollection,i=yield this.proxy.$getTerminalCreationOptions(e.type);this.toDispose.set(e.type,t);const n=new f.ExtensionDebugSessionFactory(this.editorService,this.breakpointManager,this.modelManager,this.terminalService,this.labelService,this.messageService,this.debugPreferences,(e=>r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.mainThreadConnection.ensureConnection(e);return new o.ExtensionWSChannel(t)}))),this.fileService,i,this.debugPreferences,this.outputService,this.injector,this.sessionManager);t.pushAll([this.adapterContributionRegister.registerDebugAdapterContribution(new m.ExtensionDebugAdapterContribution(e,this.proxy,this.activationEventService)),this.sessionContributionRegistry.registerDebugSessionContribution({debugType:e.type,debugSessionFactory:()=>n})])}))}$addBreakpoints(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new Map;e.forEach((e=>t.set(e.id,e))),this.breakpointManager.findMarkers({dataFilter:e=>(t.has(e.id)&&t.delete(e.id),!1)});for(const e of t.values())if(e.location){const t=e.location;this.breakpointManager.addBreakpoint(c.DebugBreakpoint.create(s.Uri.revive(t.uri),{line:e.location.range.startLineNumber+1,column:1,condition:e.condition,hitCondition:e.hitCondition,logMessage:e.logMessage},!0))}}))}$removeBreakpoints(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new Set;e.forEach((e=>t.add(e.id)));for(const e of this.breakpointManager.findMarkers({dataFilter:e=>t.has(e.id)})){const t=this.modelManager.resolve(new s.URI(e.data.uri));t&&t[0].breakpoint&&t[0].breakpoint.remove()}}))}$customRequest(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.sessionManager.getSession(e);if(r)return r.sendCustomRequest(t,i);throw new Error(`Debug session '${e}' not found`)}))}$getDebugProtocolBreakpoint(e,t){const i=this.sessionManager.getSession(e);return i?Promise.resolve(i.getDebugProtocolBreakpoint(t)):Promise.reject(new Error("debug session not found"))}$startDebugging(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){let r,n=0;if("string"==typeof t)for(const e of this.debugConfigurationManager.all){if(e.configuration.name===t){r=e.configuration;break}n++}else r=t;if(!r)throw new Error(`No configuration ${t}`);const o={noDebug:!1,parentSession:this.sessionManager.getSession(i.parentSessionID),repl:i.repl,compact:i.compact};return!!(yield this.sessionManager.start(Object.assign({configuration:r,workspaceFolderUri:e&&s.Uri.revive(e.uri).toString(),index:n},o)))}))}$stopDebugging(e){if(!e)return this.sessionManager.stopSession(void 0);{const t=this.sessionManager.getSession(e);if(t)return this.sessionManager.stopSession(t)}throw new Error(`Debug session '${e}' not found`)}toCustomApiBreakpoints(e){return e.map((e=>({id:e.id,enabled:e.enabled,condition:e.raw.condition,hitCondition:e.raw.hitCondition,logMessage:e.raw.logMessage,location:{uri:s.Uri.parse(e.uri),range:{startLineNumber:e.raw.line-1,startColumn:(e.raw.column||1)-1,endLineNumber:e.raw.line-1,endColumn:(e.raw.column||1)-1}}})))}};r.__decorate([n.Autowired(y.IDebugSessionManager),r.__metadata("design:type",c.DebugSessionManager)],S.prototype,"sessionManager",void 0),r.__decorate([n.Autowired(u.LabelService),r.__metadata("design:type",u.LabelService)],S.prototype,"labelService",void 0),r.__decorate([n.Autowired(c.BreakpointManager),r.__metadata("design:type",c.BreakpointManager)],S.prototype,"breakpointManager",void 0),r.__decorate([n.Autowired(c.DebugModelManager),r.__metadata("design:type",c.DebugModelManager)],S.prototype,"modelManager",void 0),r.__decorate([n.Autowired(c.DebugConfigurationManager),r.__metadata("design:type",c.DebugConfigurationManager)],S.prototype,"debugConfigurationManager",void 0),r.__decorate([n.Autowired(c.DebugPreferences),r.__metadata("design:type",Object)],S.prototype,"debugPreferences",void 0),r.__decorate([n.Autowired(h.WorkbenchEditorService),r.__metadata("design:type",h.WorkbenchEditorService)],S.prototype,"editorService",void 0),r.__decorate([n.Autowired(p.IMessageService),r.__metadata("design:type",Object)],S.prototype,"messageService",void 0),r.__decorate([n.Autowired(d.IFileServiceClient),r.__metadata("design:type",Object)],S.prototype,"fileService",void 0),r.__decorate([n.Autowired(a.IDebugServer),r.__metadata("design:type",g.ExtensionDebugService)],S.prototype,"adapterContributionRegister",void 0),r.__decorate([n.Autowired(v.IActivationEventService),r.__metadata("design:type",v.IActivationEventService)],S.prototype,"activationEventService",void 0),r.__decorate([n.Autowired(c.DebugSessionContributionRegistry),r.__metadata("design:type",f.ExtensionDebugSessionContributionRegistry)],S.prototype,"sessionContributionRegistry",void 0),r.__decorate([n.Autowired(s.ILoggerManagerClient),r.__metadata("design:type",Object)],S.prototype,"loggerManager",void 0),r.__decorate([n.Autowired(_.ITerminalApiService),r.__metadata("design:type",Object)],S.prototype,"terminalService",void 0),r.__decorate([n.Autowired(w.DebugConsoleModelService),r.__metadata("design:type",w.DebugConsoleModelService)],S.prototype,"debugConsoleModelService",void 0),r.__decorate([n.Autowired(b.OutputService),r.__metadata("design:type",b.OutputService)],S.prototype,"outputService",void 0),r.__decorate([n.Autowired(a.IDebugService),r.__metadata("design:type",Object)],S.prototype,"debugService",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],S.prototype,"injector",void 0),S=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optinal(l.IRPCProtocol)),r.__param(1,n.Optinal(o.IMainThreadConnectionService)),r.__metadata("design:paramtypes",[Object,Object])],S),t.MainThreadDebug=S},28326:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(38384),s=i(19745),a=i(39273),c=i(67142),l=i(68767);class u{constructor(e){this._proxy=e,this._idPool=0,this._requests=Object.create(null),this._resolver=Object.create(null)}enqueue(e,t,i){const r=++this._idPool,n=new Promise((i=>{this._requests[r]={id:r,handle:e,uri:t},this._resolver[r]=i,this._processQueue()}));return i.onCancellationRequested((()=>{delete this._requests[r],delete this._resolver[r]})),n}_processQueue(){"number"!=typeof this._timer&&(this._timer=setTimeout((()=>{const e=this._requests,t=this._resolver;this._proxy.$provideDecorations(Object.values(e),n.CancellationToken.None).then((e=>{for(const i in t)t[i](e[i])})),this._requests=[],this._resolver=[],this._timer=void 0}),0))}}let d=class{constructor(e){this.rpcProtocol=e,this._provider=new Map,this.proxy=this.rpcProtocol.getProxy(l.ExtHostAPIIdentifier.ExtHostDecorations),this._requestQueue=new u(this.proxy)}dispose(){this._provider.forEach((e=>o.dispose(e))),this._provider.clear()}$registerDecorationProvider(e,t){const i=new n.Emitter,r=this.decorationsService.registerDecorationsProvider({label:t,onDidChange:i.event,provideDecorations:(t,i)=>this._requestQueue.enqueue(e,t,i).then((e=>{if(!e)return;const[t,i,r,n,o,s]=e;return{weight:t||0,bubble:i||!1,color:o&&o.id,tooltip:r,letter:n,source:s}}))});this._provider.set(e,[i,r])}$onDidChange(e,t){const i=this._provider.get(e);if(i){const[e]=i;e.fire(t&&t.map((e=>n.Uri.revive(e))))}}$unregisterDecorationProvider(e){const t=this._provider.get(e);t&&(o.dispose(t),this._provider.delete(e))}};r.__decorate([s.Autowired(c.IDecorationsService),r.__metadata("design:type",c.IDecorationsService)],d.prototype,"decorationsService",void 0),d=r.__decorate([s.Injectable({multiple:!0}),r.__param(0,s.Optional(a.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],d),t.MainThreadDecorations=d},94867:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(65686),o=i(68767),s=(i(39273),i(19745)),a=i(40816),c=i(84859),l=i(58407),u=i(65777),d=i(34865);let h=class{constructor(e){this.proxy=e,this.onDidChangeContentEmitter=new n.Emitter,this.onDidChangeContent=this.onDidChangeContentEmitter.event,this.schemes=new Set}registerScheme(e){this.schemes.add(e)}unregisterScheme(e){this.schemes.delete(e)}handlesScheme(e){return this.schemes.has(e)}provideEditorDocumentModelContent(e,t){return this.proxy.$provideTextDocumentContent(e.toString(),t)}isReadonly(e){return!0}};h=r.__decorate([s.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],h);let p=class extends n.WithEventBus{constructor(e){super(),this.rpcProtocol=e,this.tempDocIdCount=0,this.editorDisposers=new Map,this.extHoldDocuments=new f,this.docSyncEnabled=new n.LRUMap(200,100),this.proxy=this.rpcProtocol.getProxy(o.ExtHostAPIIdentifier.ExtHostDocuments),this.provider=this.injector.get(h,[this.proxy]),this.contentRegistry.registerEditorDocumentModelContentProvider(this.provider),this.docManager.getAllModels().map((e=>{this.isDocSyncEnabled(e.uri)&&this.proxy.$fireModelOpenedEvent({uri:e.uri.toString(),lines:e.getText().split(e.eol),eol:e.eol,dirty:e.dirty,languageId:e.languageId,versionId:e.getMonacoModel().getVersionId()})}))}isDocSyncEnabled(e){const t=e.toString();if(!this.docSyncEnabled.has(t)){const e=this.docManager.getModelReference(new n.URI(t),"mainthread doc size");e&&(this.docSyncEnabled.set(t,e.instance.getMonacoModel().getValueLength()<(this.preference.get("editor.docExtHostSyncMaxSize")||2097152)),e.dispose())}return this.docSyncEnabled.get(t)}onEditorDocumentModelContentChangeEvent(e){this.isDocSyncEnabled(e.payload.uri)&&this.proxy.$fireModelChangedEvent({changes:e.payload.changes,uri:e.payload.uri.toString(),eol:e.payload.eol,dirty:e.payload.dirty,versionId:e.payload.versionId})}onEditorDocumentModelWillSaveEvent(e){return r.__awaiter(this,void 0,void 0,(function*(){this.isDocSyncEnabled(e.payload.uri)&&(yield this.proxy.$fireModelWillSaveEvent({uri:e.payload.uri.toString(),reason:e.payload.reason}))}))}onEditorDocumentModelOptionChangedEvent(e){this.isDocSyncEnabled(e.payload.uri)&&this.proxy.$fireModelOptionsChangedEvent({encoding:e.payload.encoding,uri:e.payload.uri.toString(),languageId:e.payload.languageId})}onEditorDocumentModelContentCreationEvent(e){this.isDocSyncEnabled(e.payload.uri)&&this.proxy.$fireModelOpenedEvent({uri:e.payload.uri.toString(),lines:e.payload.content.split(e.payload.eol),eol:e.payload.eol,dirty:!1,languageId:e.payload.languageId,versionId:e.payload.versionId})}onEditorDocumentModelRemovedEvent(e){this.isDocSyncEnabled(e.payload)&&this.proxy.$fireModelRemovedEvent({uri:e.payload.toString()})}onEditorDocumentModelSavingEvent(e){this.isDocSyncEnabled(e.payload)&&this.proxy.$fireModelSavedEvent({uri:e.payload.toString()})}$tryCreateDocument(e){return r.__awaiter(this,void 0,void 0,(function*(){const{language:t,content:i}=e,r=yield this.docManager.createModelReference(new n.URI(`${a.Schemas.untitled}://temp/`+this.tempDocIdCount++),"ext-create-document");return e.language&&(r.instance.languageId=t),n.isUndefinedOrNull(e.content)||r.instance.updateContent(i),r.instance.uri.toString()}))}$tryOpenDocument(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.docManager.createModelReference(new n.URI(e),"ext-open-document");this.extHoldDocuments.add(t)}))}$trySaveDocument(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=yield this.docManager.getModelReference(new n.URI(e),"ext-saving-document");if(t)try{return t.instance.save(!0)}finally{t.dispose()}return!1}))}$fireTextDocumentChangedEvent(e){return r.__awaiter(this,void 0,void 0,(function*(){this.provider.onDidChangeContentEmitter.fire(new n.URI(e))}))}$unregisterDocumentProviderWithScheme(e){this.editorDisposers.has(e)&&(this.editorDisposers.get(e).dispose(),this.editorDisposers.delete(e))}$registerDocumentProviderWithScheme(e){this.$unregisterDocumentProviderWithScheme(e);const t=new n.Disposable;t.addDispose(this.resourceService.registerResourceProvider({scheme:e,provideResource:e=>r.__awaiter(this,void 0,void 0,(function*(){return Promise.all([this.labelService.getName(e),this.labelService.getIcon(e)]).then((([t,i])=>({name:t,icon:i,uri:e,metadata:null})))}))})),t.addDispose(this.editorComponentRegistry.registerEditorComponentResolver(e,((e,t)=>{t.push({type:"code",readonly:!0})}))),t.addDispose({dispose:()=>{this.provider.unregisterScheme(e)}}),this.provider.registerScheme(e),this.editorDisposers.set(e,t)}dispose(){for(const e of this.editorDisposers.values())e.dispose();this.editorDisposers.clear()}};r.__decorate([s.Autowired(l.IEditorDocumentModelService),r.__metadata("design:type",Object)],p.prototype,"docManager",void 0),r.__decorate([s.Autowired(l.IEditorDocumentModelContentRegistry),r.__metadata("design:type",Object)],p.prototype,"contentRegistry",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",c.ResourceService)],p.prototype,"resourceService",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",l.EditorComponentRegistry)],p.prototype,"editorComponentRegistry",void 0),r.__decorate([s.Autowired(),r.__metadata("design:type",u.LabelService)],p.prototype,"labelService",void 0),r.__decorate([s.Autowired(s.INJECTOR_TOKEN),r.__metadata("design:type",s.Injector)],p.prototype,"injector",void 0),r.__decorate([s.Autowired(d.PreferenceService),r.__metadata("design:type",Object)],p.prototype,"preference",void 0),r.__decorate([n.OnEvent(l.EditorDocumentModelContentChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelContentChangedEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorDocumentModelContentChangeEvent",null),r.__decorate([n.OnEvent(l.EditorDocumentModelWillSaveEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelWillSaveEvent]),r.__metadata("design:returntype",Promise)],p.prototype,"onEditorDocumentModelWillSaveEvent",null),r.__decorate([n.OnEvent(l.EditorDocumentModelOptionChangedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelOptionChangedEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorDocumentModelOptionChangedEvent",null),r.__decorate([n.OnEvent(l.EditorDocumentModelCreationEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelCreationEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorDocumentModelContentCreationEvent",null),r.__decorate([n.OnEvent(l.EditorDocumentModelRemovalEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelRemovalEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorDocumentModelRemovedEvent",null),r.__decorate([n.OnEvent(l.EditorDocumentModelSavedEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.EditorDocumentModelSavedEvent]),r.__metadata("design:returntype",void 0)],p.prototype,"onEditorDocumentModelSavingEvent",null),p=r.__decorate([s.Injectable({multiple:!0}),r.__param(0,s.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],p),t.MainThreadExtensionDocumentData=p;class f{constructor(){this.maxLength=83886080,this.maxAge=18e4,this.minAge=2e4,this.refs=[],this.length=0}add(e){const t=e.instance.getText().length;this.length+=t;let i=null;const r={ref:e,dispose:()=>{const n=this.refs.indexOf(r);0!==n&&(this.length-=t,e.dispose(),clearTimeout(i),this.refs.splice(n,1))},createTimeStamp:(new Date).getTime()};i=setTimeout((()=>{r.dispose()}),this.maxAge),this.refs.push(r),this.clean()}clean(){for(;this.length>this.maxLength&&this.refs.length>1;){if(this.refs[0].createTimeStamp+this.minAge>(new Date).getTime())break;this.disposeFirst()}}disposeFirst(){const e=this.refs.shift();e&&e.dispose()}}},87731:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(13077),o=i(88430),s=i(81924),a=i(19745),c=i(68767),l=i(84859),u=i(41719),d=i(65686),h=i(58407),p=(i(39273),i(99644)),f=i(91296),g=i(94867),m=i(81776),v=i(31084);let y=class extends d.WithEventBus{constructor(e,t){super(),this.rpcProtocol=e,this.documents=t,this.proxy=this.rpcProtocol.getProxy(c.ExtHostAPIIdentifier.ExtHostEditors),this.$getInitialState().then((e=>{this.proxy.$acceptChange(e)}))}$getInitialState(){return r.__awaiter(this,void 0,void 0,(function*(){this.startEvents();const e=this.editorService.editorGroups.map((e=>{if(e.currentOpenType&&w(e.currentOpenType)){const t=e.currentEditor;if(!t.currentDocumentModel)return;if(!this.documents.isDocSyncEnabled(t.currentDocumentModel.uri))return;return{id:_(e,e.currentResource),uri:t.currentDocumentModel.uri.toString(),selections:t.getSelections()||[],options:b(t.monacoEditor),viewColumn:S(e),visibleRanges:t.monacoEditor.getVisibleRanges()}}})).filter((e=>!!e)),t=this.editorService.currentResource&&e.find((e=>e.uri===this.editorService.currentResource.uri.toString()));return{created:e,actived:t&&this.documents.isDocSyncEnabled(t.uri)&&t.id}}))}$closeEditor(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this.getEditor(e)){const t=this.getGroup(e);t.close(t.currentResource.uri)}}))}$revealRange(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.getEditor(e);if(r)switch(i){case c.TextEditorRevealType.InCenter:return r.monacoEditor.revealRangeInCenter(t);case c.TextEditorRevealType.AtTop:return r.monacoEditor.revealRangeAtTop(t);case c.TextEditorRevealType.InCenterIfOutsideViewport:return r.monacoEditor.revealRangeInCenterIfOutsideViewport(t);default:return r.monacoEditor.revealRange(t)}}))}$createTextEditorDecorationType(e,t){return r.__awaiter(this,void 0,void 0,(function*(){this.resolveIconPaths(t),this.resolveIconPaths(t.dark),this.resolveIconPaths(t.light),this.decorationService.createTextEditorDecorationType(t,e)}))}resolveIconPaths(e){if(!e)return e;if(e.gutterIconPath){let t;t="string"==typeof e.gutterIconPath?d.URI.file(e.gutterIconPath):d.URI.from(e.gutterIconPath),e.gutterIconPath=this.staticResourceService.resolveStaticResource(t).toString()}}$deleteTextEditorDecorationType(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.decorationService.getTextEditorDecorationType(e);t&&t.dispose()}))}$applyDecoration(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.getEditor(e);r&&r.applyDecoration(t,i)}))}$insertSnippet(e,t,i=[],n={undoStopAfter:!0,undoStopBefore:!0}){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.getEditor(e);r&&r.insertSnippet(t,i,n)}))}$updateOptions(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=this.getEditor(e);i&&(yield this.setConfiguration(i.monacoEditor,t))}))}getEditor(e){const t=this.getGroup(e);if(!t)return;const i=t.currentResource;return i&&t.currentOpenType&&w(t.currentOpenType)&&e===_(t,i)?t.currentEditor:void 0}getGroup(e){const t=function(e){return e.substr(0,e.indexOf("."))}(e);return this.editorService.getEditorGroup(t)}startEvents(){this.addDispose(this.eventBus.on(h.EditorGroupChangeEvent,(e=>{const t=e.payload;if(!C(t.newResource,t.oldResource)||!E(t.newOpenType,t.oldOpenType)){const e={};if(t.newOpenType&&("code"===t.newOpenType.type||"diff"===t.newOpenType.type)){const i=t.group.currentEditor;i.currentDocumentModel&&this.documents.isDocSyncEnabled(i.currentDocumentModel.uri)&&(e.created=[{id:_(t.group,t.newResource),uri:i.currentDocumentModel.uri.toString(),selections:i.getSelections()||[],options:b(i.monacoEditor),viewColumn:S(t.group),visibleRanges:i.monacoEditor.getVisibleRanges()}]),C(t.newResource,t.oldResource)&&!E(t.newOpenType,t.oldOpenType)&&t.newResource===this.editorService.currentResource&&(e.actived=_(t.group,t.newResource))}!t.oldOpenType||"code"!==t.oldOpenType.type&&"diff"!==t.oldOpenType.type||(e.removed=[_(t.group,t.oldResource)]),this.proxy.$acceptChange(e)}}))),this.addDispose(this.editorService.onActiveResourceChange((e=>{e&&this.editorService.currentEditorGroup&&w(this.editorService.currentEditorGroup.currentOpenType)?this.proxy.$acceptChange({actived:_(this.editorService.currentEditorGroup,this.editorService.currentResource)}):this.proxy.$acceptChange({actived:"-1"})})));const e=e=>{const t=_(e.payload.group,e.payload.resource);this.proxy.$acceptPropertiesChange({id:t,selections:{selections:e.payload.selections,source:e.payload.source}})},t=f((t=>e(t)),50,{maxWait:200,leading:!0,trailing:!0});this.addDispose(this.eventBus.on(h.EditorSelectionChangeEvent,(i=>{"mouse"===i.payload.source?t(i):(t.cancel(),e(i))}))),this.addDispose(this.eventBus.on(h.EditorVisibleChangeEvent,f((e=>{const t=_(e.payload.group,e.payload.resource);this.proxy.$acceptPropertiesChange({id:t,visibleRanges:e.payload.visibleRanges})}),50,{maxWait:200,leading:!0,trailing:!0}))),this.addDispose(this.eventBus.on(h.EditorConfigurationChangedEvent,(e=>{const t=_(e.payload.group,e.payload.resource);e.payload.group.currentEditor&&e.payload.group.currentEditor.monacoEditor.getModel()&&this.proxy.$acceptPropertiesChange({id:t,options:b(e.payload.group.currentEditor.monacoEditor)})}))),this.addDispose(this.eventBus.on(h.EditorGroupIndexChangedEvent,(e=>{if((t=e.payload.group).currentOpenType&&w(t.currentOpenType)){const t=_(e.payload.group,e.payload.group.currentResource);this.proxy.$acceptPropertiesChange({id:t,viewColumn:S(e.payload.group)})}var t})))}$applyEdits(e,t,i,n){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.getEditor(e);if(r&&r.currentDocumentModel){const e=r.currentDocumentModel.getMonacoModel();if(e&&e.getVersionId()===t){void 0!==n.setEndOfLine&&e.pushEOL(n.setEndOfLine);const t=i.map((e=>({range:s.Range.lift(e.range),text:e.text,forceMoveMarkers:e.forceMoveMarkers})));return n.undoStopBefore&&r.monacoEditor.pushUndoStop(),r.monacoEditor.executeEdits("MainThreadTextEditor",t),n.undoStopAfter&&r.monacoEditor.pushUndoStop(),!0}return!1}return!1}))}$openResource(e,t){return r.__awaiter(this,void 0,void 0,(function*(){t.forceOpenType={type:"code"},t.focus=!0,t=Object.assign(Object.assign({},t),v.viewColumnToResourceOpenOptions(t.viewColumn));const i=yield this.editorService.open(new d.URI(e),t);if(i)return _(i.group,i.resource);throw new Error("Editor Open uri "+e.toString()+" Failed")}))}$setSelections(e,t){return this.getEditor(e)?(this.getEditor(e).setSelections(t),Promise.resolve()):Promise.reject(`No Such TextEditor: ${e}`)}setConfiguration(e,t){if(e.getModel()&&this._setIndentConfiguration(e.getModel(),t),e){if(t.cursorStyle){const i=O(t.cursorStyle);e.updateOptions({cursorStyle:i})}if(void 0!==t.lineNumbers){let i;switch(t.lineNumbers){case n.RenderLineNumbersType.On:i="on";break;case n.RenderLineNumbersType.Relative:i="relative";break;default:i="off"}e.updateOptions({lineNumbers:i})}}}$getDiffInformation(e){const t=this.getEditor(e);if(!t)return Promise.reject(new Error("No such TextEditor"));const i=t.monacoEditor;if(!i)return Promise.reject(new Error("No such CodeEditor"));const r=i.getId(),n=this.codeEditorService.listDiffEditors(),[o]=n.filter((e=>e.originalEditor.getId()===r||e.modifiedEditor.getId()===r));if(o)return Promise.resolve(o.monacoDiffEditor.getLineChanges()||[]);const s=i.getContribution("editor.contrib.dirtydiff");return s?Promise.resolve(s.getChanges()):Promise.resolve([])}_setIndentConfiguration(e,t){const i=o.StaticServices.modelService.get().getCreationOptions(e.getLanguageIdentifier().language,e.uri,e.isForSimpleWidget);if("auto"===t.tabSize||"auto"===t.insertSpaces){let r=i.insertSpaces,n=i.tabSize;return"auto"!==t.insertSpaces&&void 0!==t.insertSpaces&&(r=t.insertSpaces),"auto"!==t.tabSize&&void 0!==t.tabSize&&(n=t.tabSize),void e.detectIndentation(r,n)}const r={};void 0!==t.insertSpaces&&(r.insertSpaces=t.insertSpaces),void 0!==t.tabSize&&(r.tabSize=t.tabSize),void 0!==t.indentSize&&("tabSize"===t.indentSize?r.indentSize=r.tabSize||i.tabSize:r.indentSize=t.indentSize),e.updateOptions(r)}};function _(e,t){return e.name+"."+t.uri}function b(e){const t=e.getModel().getOptions();return{tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,cursorStyle:e.getOption(s.editor.EditorOption.cursorStyle),lineNumbers:e.getOption(s.editor.EditorOption.lineNumbers).renderType}}function w(e){return!!e&&("code"===e.type||"diff"===e.type)}function S(e){return e.index+1}function C(e,t){return!e&&!t||!!(e&&t&&e.uri.isEqual(t.uri))}function E(e,t){return!e&&!t||!(!e||!t||e.type!==t.type||e.componentId!==t.componentId)}function O(e){if(e===c.TextEditorCursorStyle.Line)return"line";if(e===c.TextEditorCursorStyle.Block)return"block";if(e===c.TextEditorCursorStyle.Underline)return"underline";if(e===c.TextEditorCursorStyle.LineThin)return"line-thin";if(e===c.TextEditorCursorStyle.BlockOutline)return"block-outline";if(e===c.TextEditorCursorStyle.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}r.__decorate([a.Autowired(l.WorkbenchEditorService),r.__metadata("design:type",u.WorkbenchEditorServiceImpl)],y.prototype,"editorService",void 0),r.__decorate([a.Autowired(h.IEditorDecorationCollectionService),r.__metadata("design:type",Object)],y.prototype,"decorationService",void 0),r.__decorate([a.Autowired(l.EditorCollectionService),r.__metadata("design:type",p.EditorCollectionServiceImpl)],y.prototype,"codeEditorService",void 0),r.__decorate([a.Autowired(m.StaticResourceService),r.__metadata("design:type",m.StaticResourceService)],y.prototype,"staticResourceService",void 0),y=r.__decorate([a.Injectable({multiple:!0}),r.__param(0,a.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object,g.MainThreadExtensionDocumentData])],y),t.MainThreadEditorService=y,t.cursorStyleToString=O},62720:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(39273),s=i(37210),a=i(68767),c=i(40816),l=i(34865),u=i(65686),d=i(14480);let h=class{constructor(e){this.rpcProtocol=e,this.appConfig=l.ClientAppConfigProvider.get(),this.proxy=this.rpcProtocol.getProxy(a.ExtHostAPIIdentifier.ExtHostEnv),this.eventDispose=this.loggerManger.onDidChangeLogLevel((e=>{this.proxy.$fireChangeLogLevel(e)})),this.setLogLevel();const{applicationName:t,uriScheme:i}=this.appConfig;this.proxy.$setEnvValues({appName:t,uriScheme:i,language:u.getLanguageId(),uiKind:u.isElectronEnv()?c.UIKind.Desktop:c.UIKind.Web})}isSupportedLink(e){return d.HttpOpener.standardSupportedLinkSchemes.has(e.scheme)||e.scheme===l.ClientAppConfigProvider.get().uriScheme}dispose(){this.eventDispose.dispose()}setLogLevel(){return r.__awaiter(this,void 0,void 0,(function*(){const e=yield this.loggerManger.getGlobalLogLevel();yield this.proxy.$setLogLevel(e)}))}$clipboardReadText(){return r.__awaiter(this,void 0,void 0,(function*(){try{return yield this.clipboardService.readText()}catch(e){return""}}))}$clipboardWriteText(e){return new Promise((t=>r.__awaiter(this,void 0,void 0,(function*(){try{yield this.clipboardService.writeText(e)}catch(e){}t()}))))}$openExternal(e){return r.__awaiter(this,void 0,void 0,(function*(){return!!this.isSupportedLink(u.URI.from(e))&&(yield this.openerService.open(e.toString(!0)))}))}getWindowId(){if(u.isElectronEnv())return l.electronEnv.currentWindowId;return this.injector.get(o.WSChannelHandler).clientId}$asExternalUri(e){return r.__awaiter(this,void 0,void 0,(function*(){const{uriScheme:t}=this.appConfig,i=u.URI.from(e);if(i.scheme===t){const e=this.getWindowId();let t=i.query;return t?t+=`&windowId=${e}`:t=`windowId=${e}`,i.withQuery(t).codeUri}return this.externalUriService.resolveExternalUri(i).codeUri}))}};r.__decorate([n.Autowired(s.ILoggerManagerClient),r.__metadata("design:type",Object)],h.prototype,"loggerManger",void 0),r.__decorate([n.Autowired(l.IOpenerService),r.__metadata("design:type",Object)],h.prototype,"openerService",void 0),r.__decorate([n.Autowired(l.IClipboardService),r.__metadata("design:type",Object)],h.prototype,"clipboardService",void 0),r.__decorate([n.Autowired(l.IExternalUriService),r.__metadata("design:type",Object)],h.prototype,"externalUriService",void 0),r.__decorate([n.Autowired(n.INJECTOR_TOKEN),r.__metadata("design:type",n.Injector)],h.prototype,"injector",void 0),h=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optinal(o.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],h),t.MainThreadEnv=h},40836:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(36002),a=i(76067),c=(i(39273),i(71755)),l=i(34865),u=i(92224),d=i(88774),h=i(68767);let p=class extends o.Disposable{constructor(e){super(),this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(h.ExtHostAPIIdentifier.ExtHostFileSystemEvent),this._dispatchFileEventListener(),this._participateFileOperation(),this._initShowPreview()}_dispatchFileEventListener(){const e={created:[],changed:[],deleted:[]};this.addDispose(this.fileService.onFilesChanged((t=>{let i=!1;for(const r of t)switch(r.type){case s.FileChangeType.ADDED:e.created.push(new o.URI(r.uri).codeUri),i=!0;break;case s.FileChangeType.UPDATED:e.changed.push(new o.URI(r.uri).codeUri),i=!0;break;case s.FileChangeType.DELETED:e.deleted.push(new o.URI(r.uri).codeUri),i=!0}i&&(this._proxy.$onFileEvent(e),e.created=[],e.changed=[],e.deleted=[])})))}_participateFileOperation(){this.addDispose(this.workspaceFileService.registerFileOperationParticipant({participate:this.fileOperationParticipant.bind(this)})),this.addDispose(this.workspaceFileService.onDidRunWorkspaceFileOperation((e=>this._proxy.$onDidRunFileOperation(e.operation,e.files))))}_initShowPreview(){this._showPreview=this.preferenceService.get("workbench.refactoringChanges.showPreviewStrategy"),this.addDispose(this.preferenceService.onPreferenceChanged((e=>{"workbench.refactoringChanges.showPreviewStrategy"===e.preferenceName&&(this._showPreview=e.newValue)})))}fileOperationParticipant(...e){return r.__awaiter(this,void 0,void 0,(function*(){const[t,i,r,n,s]=e,a=new o.CancellationTokenSource(s),c=setTimeout((()=>a.cancel()),n),l=yield this.progressService.withProgress({location:o.ProgressLocation.Notification,title:this.getProgressLabel(i),cancellable:!0,delay:Math.min(n/2,3e3)},(()=>{const e=this._proxy.$onWillRunFileOperation(i,t,n,s);return o.raceCancellation(e,a.token)}),(()=>{a.cancel()})).finally((()=>{a.dispose(),clearTimeout(c)}));if(!l)return;let u=this._showPreview;const h=l.edit.edits.some((e=>{var t;return null===(t=e.metadata)||void 0===t?void 0:t.needsConfirmation}));if("askMe"===u){let e;if(e=1===l.extensionNames.length?0===i?o.formatLocalize("refactoring-changes.ask.1.create",l.extensionNames[0]):3===i?o.formatLocalize("refactoring-changes.ask.1.copy",l.extensionNames[0]):2===i?o.formatLocalize("refactoring-changes.ask.1.move",l.extensionNames[0]):o.formatLocalize("refactoring-changes.ask.1.delete",l.extensionNames[0]):0===i?o.formatLocalize("refactoring-changes.ask.N.create",l.extensionNames.length):3===i?o.formatLocalize("refactoring-changes.ask.N.copy",l.extensionNames.length):2===i?o.formatLocalize("refactoring-changes.ask.N.move",l.extensionNames.length):o.formatLocalize("refactoring-changes.ask.N.delete",l.extensionNames.length),h){const t=[o.localize("preview","Show Preview"),o.localize("cancel","Skip Changes")];if(u="show",(yield this.dialogService.open(e,d.MessageType.Info,t))===t[1])return}else{const t=[o.localize("ok","OK"),o.localize("preview","Show Preview"),o.localize("cancel","Skip Changes")],i=yield this.dialogService.open(e,d.MessageType.Info,t);if(i===t[2])return;u=i===t[1]?"show":"hide"}}this.logger.log("[onWill-handler] applying additional workspace edit from extensions",l.extensionNames);const p=null==l?void 0:l.edit;p&&(yield this.bulkEditService.apply(p,{showPreview:"show"===u}))}))}getProgressLabel(e){switch(e){case 0:return o.localize("fileOperation.create","Running 'File Create' participants...");case 1:return o.localize("fileOperation.delete","Running 'File Delete' participants...");case 3:return o.localize("fileOperation.copy","Running 'File Copy' participants...");case 2:return o.localize("fileOperation.move","Running 'File Move' participants...")}}};r.__decorate([n.Autowired(s.IFileServiceClient),r.__metadata("design:type",Object)],p.prototype,"fileService",void 0),r.__decorate([n.Autowired(a.IWorkspaceFileService),r.__metadata("design:type",Object)],p.prototype,"workspaceFileService",void 0),r.__decorate([n.Autowired(l.PreferenceService),r.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),r.__decorate([n.Autowired(c.IProgressService),r.__metadata("design:type",Object)],p.prototype,"progressService",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],p.prototype,"logger",void 0),r.__decorate([n.Autowired(u.IDialogService),r.__metadata("design:type",Object)],p.prototype,"dialogService",void 0),r.__decorate([n.Autowired(a.IBulkEditServiceShape),r.__metadata("design:type",Object)],p.prototype,"bulkEditService",void 0),p=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],p),t.MainThreadFileSystemEvent=p},74401:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(65686),s=i(7899),a=i(19745),c=(i(39273),i(61583)),l=i(68767),u=i(55824),d=i(31084),h=i(93728);let p=r=class{constructor(e){this.rpcProtocol=e,this._fileProvider=new Map,this._proxy=this.rpcProtocol.getProxy(l.ExtHostAPIIdentifier.ExtHostFileSystem)}dispose(){this._fileProvider.forEach((e=>e.dispose())),this._fileProvider.clear()}$registerFileSystemProvider(e,t,i){this.schemeRegistry.registerFileSystemProvider({scheme:t}),this._fileProvider.set(e,new f(this._fileService,t,i,e,this._proxy))}$unregisterProvider(e){o.dispose(this._fileProvider.get(e)),this._fileProvider.delete(e)}$onFileSystemChange(e,t){const i=this._fileProvider.get(e);if(!i)throw new Error("Unknown file provider");i.$onFileSystemChange(t)}$stat(e){return this._fileService.getFileStat(o.URI.revive(e).toString()).then((e=>d.toFileStat(e))).catch(r._handleError)}$readdir(e){return this._fileService.getFileStat(o.URI.revive(e).toString()).then((e=>{if(!e)throw new Error("file stat undefined");if(!e.isDirectory){const t=new Error(e.uri);throw t.name=u.FileSystemProviderErrorCode.FileNotADirectory,t}return e.children?e.children.map((e=>[new o.URI(e.uri).displayName,r._asFileType(e)])):[]})).catch(r._handleError)}static _asFileType(e){let t=0;return e.type&&e.type===c.FileType.File?t+=c.FileType.File:e.isDirectory&&(t+=c.FileType.Directory),e.isSymbolicLink&&(t+=c.FileType.SymbolicLink),t}$readFile(e){return this._fileService.readFile(o.URI.revive(e).toString()).then((e=>e.content.buffer)).catch(r._handleError)}$writeFile(e,t){return n.__awaiter(this,void 0,void 0,(function*(){const i=o.URI.revive(e),n=yield this._fileService.getFileStat(i.toString(),!1);return n?this._fileService.setContent(n,t).then((()=>{})).catch(r._handleError):(yield s.ensureDir(new o.URI(i).path.dir.toString(),{mkdir:e=>this.$mkdir(o.URI.file(e).codeUri),access:e=>this._fileService.getFileStat(o.URI.file(e).codeUri.toString(),!1).then((e=>!!e))}),this._fileService.createFile(i.toString(),{content:h.BinaryBuffer.wrap(t).toString()}).then((()=>{})).catch(r._handleError))}))}$rename(e,t,i){return this._fileService.move(o.URI.revive(e).toString(),o.URI.revive(t).toString(),i).then((()=>{})).catch(r._handleError)}$copy(e,t,i){return this._fileService.copy(o.URI.revive(e).toString(),o.URI.revive(t).toString(),i).then((()=>{})).catch(r._handleError)}$mkdir(e){return this._fileService.createFolder(o.URI.revive(e).toString()).then((()=>{})).catch(r._handleError)}$delete(e,t){return this._fileService.delete(o.URI.revive(e).toString(),{moveToTrash:t.useTrash}).catch(r._handleError)}static _handleError(e){if(e instanceof c.FileOperationError)switch(e.fileOperationResult){case 1:e.name=u.FileSystemProviderErrorCode.FileNotFound;break;case 0:e.name=u.FileSystemProviderErrorCode.FileIsADirectory;break;case 6:e.name=u.FileSystemProviderErrorCode.NoPermissions;break;case 4:e.name=u.FileSystemProviderErrorCode.FileExists}throw e}};n.__decorate([a.Autowired(c.IFileServiceClient),n.__metadata("design:type",Object)],p.prototype,"_fileService",void 0),n.__decorate([a.Autowired(c.IBrowserFileSystemRegistry),n.__metadata("design:type",Object)],p.prototype,"schemeRegistry",void 0),p=r=n.__decorate([a.Injectable({multiple:!0}),n.__metadata("design:paramtypes",[Object])],p),t.MainThreadFileSystem=p;class f{constructor(e,t,i,r,n){this._handle=r,this._proxy=n,this._onDidChange=new o.Emitter,this.onDidChangeFile=this._onDidChange.event,this.onDidChangeCapabilities=o.Event.None,this.capabilities=i,this._registration=e.registerProvider(t,this)}get readonly(){return!!(2048&this.capabilities)}dispose(){this._registration.dispose(),this._onDidChange.dispose()}watch(e,t){const i=Math.random();return this._proxy.$watch(this._handle,i,e,t),i}unwatch(e){this._proxy.$unwatch(this._handle,e)}$onFileSystemChange(e){this._onDidChange.fire(e.map(f._createFileChange))}static _createFileChange(e){return{uri:e.uri,type:e.type}}stat(e){return n.__awaiter(this,void 0,void 0,(function*(){return yield this.doGetStat(e)}))}readFile(e){return n.__awaiter(this,void 0,void 0,(function*(){return yield this._proxy.$readFile(this._handle,e)}))}writeFile(e,t,i){return this._proxy.$writeFile(this._handle,e,t,i)}delete(e,t){return this._proxy.$delete(this._handle,e,t)}createDirectory(e){return this._proxy.$mkdir(this._handle,e)}readDirectory(e){return this._proxy.$readdir(this._handle,e)}rename(e,t,i){return this._proxy.$rename(this._handle,e,t,i)}copy(e,t,i){return this._proxy.$copy(this._handle,e,t,i)}doGetStat(e,t=1){return n.__awaiter(this,void 0,void 0,(function*(){const i=yield this._proxy.$stat(this._handle,e),r=d.fromFileStat(i,e);return r.isDirectory&&(r.children=yield this.doGetChildren(e,t)),r}))}doGetChildren(e,t){return n.__awaiter(this,void 0,void 0,(function*(){if(t<=0)return[];const i=yield this.readDirectory(e);return yield Promise.all(i.map((t=>new o.URI(e).resolve(t[0]))).map((e=>this.doGetStat(e.codeUri,t-1))))}))}}},76287:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(81924),o=i(20172),s=i(88430),a=i(65686),c=i(19745),l=(i(39273),i(34865)),u=i(65686),d=i(35463),h=i(89058),p=i(87592),f=i(92381),g=i(10152),m=i(68767),v=i(31084),y=i(29306),_=i(84859),b=i(58407),w=i(2601);let S=class{constructor(e){this.rpcProtocol=e,this.disposables=new Map,this.languageFeatureEnabled=new u.LRUMap(200,100),this.proxy=this.rpcProtocol.getProxy(m.ExtHostAPIIdentifier.ExtHostLanguages)}dispose(){this.disposables.forEach((e=>{e.dispose()})),this.disposables.clear()}$unregister(e){const t=this.disposables.get(e);t&&(this.disposables.delete(e),t.dispose())}$getLanguages(){return n.languages.getLanguages().map((e=>e.id))}$changeLanguage(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=s.StaticServices.modeService.get().getLanguageIdentifier(t);if(!i||i.language!==t)return Promise.reject(new Error(`Unknown language id: ${t}`));const r=new u.URI(u.URI.revive(e)),n=yield this.documentModelManager.createModelReference(r);try{n.instance.languageId=t}finally{n.dispose()}}))}isLanguageFeatureEnabled(e){const t=e.uri.toString();return this.languageFeatureEnabled.has(t)||this.languageFeatureEnabled.set(t,e.getValueLength()<(this.preference.get("editor.languageFeatureEnabledMaxSize")||2097152)),this.languageFeatureEnabled.get(t)}getUniqueLanguages(){const e=[],t=n.languages.getLanguages().map((e=>e.id));for(const i of t)-1===e.indexOf(i)&&e.push(i);return e}$registerHoverProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createHoverProvider(e,i);this.disposables.set(e,o.HoverProviderRegistry.register(t,r))}createHoverProvider(e,t){return{provideHover:(i,r,n)=>{if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;if(!this.isLanguageFeatureEnabled(i))return;const o=this.reporter.time(u.REPORT_NAME.PROVIDE_HOVER);return this.proxy.$provideHoverWithDuration(e,i.uri,r,n).then((({result:e,_dur:t})=>(e&&o.timeEnd(d.extname(i.uri.fsPath),{extDuration:t}),e)))}}}isDeflatedSuggestDto(e){return e.a||e.o||e.b||e.n||e.c||e.d||e.e||e.f||e.g||e.j||e.i||e.k||e.h||e.m}inflateSuggestDto(e,t){var i,r,n;return this.isDeflatedSuggestDto(t)?{label:null!==(i=t.o)&&void 0!==i?i:t.a,kind:null!==(r=t.b)&&void 0!==r?r:o.CompletionItemKind.Property,tags:t.n,detail:t.c,documentation:t.d,sortText:t.e,filterText:t.f,preselect:t.g,insertText:void 0===t.h?t.a:t.h,range:null!==(n=t.j)&&void 0!==n?n:e,insertTextRules:t.i,commitCharacters:t.k,additionalTextEdits:t.l,command:t.m,_id:t.x}:t}$registerCompletionSupport(e,t,i,o){this.disposables.set(e,n.languages.registerCompletionItemProvider(v.fromLanguageSelector(t),{triggerCharacters:i,provideCompletionItems:(t,i,n,o)=>r.__awaiter(this,void 0,void 0,(function*(){if(!this.isLanguageFeatureEnabled(t))return;const r=this.preference.get("editor.quickSuggestionsMaxCount")||0,s=this.reporter.time(u.REPORT_NAME.PROVIDE_COMPLETION_ITEMS),a=yield this.proxy.$provideCompletionItems(e,t.uri,i,Object.assign(Object.assign({},n),{quickSuggestionsMaxCount:r}),o);if(!a)return;a.b.length&&s.timeEnd(d.extname(t.uri.fsPath),{extDuration:a._dur});return{suggestions:a.b.map((e=>this.inflateSuggestDto(a.a,e))),duration:a.d,incomplete:a.c||!1,dispose:()=>{a.x&&setTimeout((()=>{this.proxy.$releaseCompletionItems(e,a.x)}),0)}}})),resolveCompletionItem:o?(t,i,r,n)=>{if(this.isLanguageFeatureEnabled(t))return this.reporter.point(u.REPORT_NAME.RESOLVE_COMPLETION_ITEM),this.proxy.$resolveCompletionItem(e,r._id,n).then((e=>{if(!e)return r;const t=this.inflateSuggestDto(r.range,e);return y.mixin(r,t,!0)}))}:void 0}))}matchLanguage(e,t){return Array.isArray(e)?e.some((e=>this.matchLanguage(e,t))):g.DocumentFilter.is(e)?!e.language||e.language===t:e===t}matchModel(e,t){return Array.isArray(e)?e.some((e=>this.matchModel(e,t))):g.DocumentFilter.is(e)?(!e.language||e.language===t.languageId)&&((!e.scheme||e.scheme===t.uri.scheme)&&!(e.pattern&&!m.testGlob(e.pattern,t.uri.path))):e===t.languageId}$registerDefinitionProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createDefinitionProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerDefinitionProvider(e,r));this.disposables.set(e,o)}$registerDeclarationProvider(e,t){const i=v.fromLanguageSelector(t),r=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e);this.disposables.set(e,r)}createDefinitionProvider(e,t){return{provideDefinition:(i,o,s)=>r.__awaiter(this,void 0,void 0,(function*(){if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;if(!this.isLanguageFeatureEnabled(i))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_DEFINITION),{result:a,_dur:c}=yield this.proxy.$provideDefinitionWithDuration(e,i.uri,o,s);if(a){if(r.timeEnd(d.extname(i.uri.fsPath),{extDuration:c}),Array.isArray(a)){const e=[];for(const t of a)e.push(Object.assign(Object.assign({},t),{uri:n.Uri.revive(t.uri)}));return e}return{uri:n.Uri.revive(a.uri),range:a.range}}}))}}$registerTypeDefinitionProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createTypeDefinitionProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerTypeDefinitionProvider(e,r));this.disposables.set(e,o)}createTypeDefinitionProvider(e,t){return{provideTypeDefinition:(i,r,o)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const s=this.reporter.time(u.REPORT_NAME.PROVIDE_TYPE_DEFINITION);return this.proxy.$provideTypeDefinition(e,i.uri,r,o).then((e=>{if(e){if(s.timeEnd(d.extname(i.uri.fsPath)),Array.isArray(e)){const t=[];for(const i of e)t.push(Object.assign(Object.assign({},i),{uri:n.Uri.revive(i.uri)}));return t}return{uri:n.Uri.revive(e.uri),range:e.range}}}))}}}$registerFoldingRangeProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createFoldingRangeProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerFoldingRangeProvider(e,r));this.disposables.set(e,o)}createFoldingRangeProvider(e,t){return{provideFoldingRanges:(i,r,n)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const o=this.reporter.time(u.REPORT_NAME.PROVIDE_FOLDING_RANGES);return this.proxy.$provideFoldingRange(e,i.uri,r,n).then((e=>(e&&o.timeEnd(d.extname(i.uri.fsPath)),e)))}}}$registerDocumentColorProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createColorProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerColorProvider(e,r));this.disposables.set(e,o)}createColorProvider(e,t){return{provideDocumentColors:(i,r)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const n=this.reporter.time(u.REPORT_NAME.PROVIDE_DOCUMENT_COLORS);return this.proxy.$provideDocumentColors(e,i.uri,r).then((e=>(n.timeEnd(d.extname(i.uri.fsPath)),e.map((e=>{const[t,i,r,n]=e.color;return{color:{red:t,green:i,blue:r,alpha:n},range:e.range}})))))},provideColorPresentations:(t,i,r)=>{if(!this.isLanguageFeatureEnabled(t))return;const n=this.reporter.time(u.REPORT_NAME.PROVIDE_COLOR_PRESENTATIONS);return this.proxy.$provideColorPresentations(e,t.uri,{color:[i.color.red,i.color.green,i.color.blue,i.color.alpha],range:i.range},r).then((e=>(e&&n.timeEnd(d.extname(t.uri.fsPath)),e)))}}}$registerDocumentHighlightProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createDocumentHighlightProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerDocumentHighlightProvider(e,r));this.disposables.set(e,o)}createDocumentHighlightProvider(e,t){return{provideDocumentHighlights:(i,r,o)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const s=this.reporter.time(u.REPORT_NAME.PROVIDE_DOCUMENT_HIGHLIGHTS);return this.proxy.$provideDocumentHighlights(e,i.uri,r,o).then((e=>{if(e&&Array.isArray(e)){s.timeEnd(d.extname(i.uri.fsPath));const t=[];for(const i of e)t.push(Object.assign(Object.assign({},i),{kind:void 0!==i.kind?i.kind:n.languages.DocumentHighlightKind.Text}));return t}}))}}}$registerDocumentFormattingProvider(e,t,i){const r=v.fromLanguageSelector(i),o=this.createDocumentFormattingEditProvider(e,t,r),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerDocumentFormattingEditProvider(e,o));this.disposables.set(e,s)}createDocumentFormattingEditProvider(e,t,i){return{displayName:t.displayName,extensionId:t.id,provideDocumentFormattingEdits:(t,n)=>r.__awaiter(this,void 0,void 0,(function*(){if(!this.isLanguageFeatureEnabled(t))return;if(!this.matchModel(i,m.MonacoModelIdentifier.fromModel(t)))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_DOCUMENT_FORMATTING_EDITS);return this.proxy.$provideDocumentFormattingEdits(e,t.uri,n).then((e=>{if(r.timeEnd(d.extname(t.uri.fsPath)),e)return e}))}))}}$registerRangeFormattingProvider(e,t,i){const r=v.fromLanguageSelector(i),o=this.createDocumentRangeFormattingEditProvider(e,t,r),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerDocumentRangeFormattingEditProvider(e,o));this.disposables.set(e,s)}createDocumentRangeFormattingEditProvider(e,t,i){return{displayName:t.displayName,extensionId:t.id,provideDocumentRangeFormattingEdits:(t,n,o)=>r.__awaiter(this,void 0,void 0,(function*(){if(!this.isLanguageFeatureEnabled(t))return;if(!this.matchModel(i,m.MonacoModelIdentifier.fromModel(t)))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_DOCUMENT_RANGE_FORMATTING_EDITS);return this.proxy.$provideDocumentRangeFormattingEdits(e,t.uri,n,o).then((e=>{if(r.timeEnd(d.extname(t.uri.fsPath)),e)return 1===e.length&&e[0].onlyPatch&&(e[0].text=f.applyPatch(t.getValue(),"Index: a\n===================================================================\n--- a\n+++ a\n"+e[0].text),e[0].onlyPatch=!1),e}))}))}}$registerOnTypeFormattingProvider(e,t,i){const r=v.fromLanguageSelector(t),o=this.createOnTypeFormattingProvider(e,r,i),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerOnTypeFormattingEditProvider(e,o));this.disposables.set(e,s)}createOnTypeFormattingProvider(e,t,i){return{autoFormatTriggerCharacters:i,provideOnTypeFormattingEdits:(i,n,o,s)=>r.__awaiter(this,void 0,void 0,(function*(){if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_ON_TYPE_FORMATTING_EDITS);return this.proxy.$provideOnTypeFormattingEditsWithDuration(e,i.uri,n,o,s).then((({result:e,_dur:t})=>(e&&r.timeEnd(d.extname(i.uri.fsPath),{extDuration:t}),e)))}))}}$registerCodeLensSupport(e,t,i){const r=v.fromLanguageSelector(t),o=this.createCodeLensProvider(e,r);if("number"==typeof i){const e=new u.Emitter;this.disposables.set(i,e),o.onDidChange=e.event}const s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerCodeLensProvider(e,o));this.disposables.set(e,s)}createCodeLensProvider(e,t){return{provideCodeLenses:(t,i)=>{if(!this.isLanguageFeatureEnabled(t))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_CODE_LENSES);return this.proxy.$provideCodeLenses(e,t.uri).then((e=>(e&&r.timeEnd(d.extname(t.uri.fsPath)),e)))},resolveCodeLens:(t,i,r)=>{if(this.isLanguageFeatureEnabled(t))return this.reporter.point(u.REPORT_NAME.RESOLVE_CODE_LENS),this.proxy.$resolveCodeLens(e,t.uri,i).then((e=>e))}}}$emitCodeLensEvent(e,t){const i=this.disposables.get(e);i instanceof u.Emitter&&i.fire(t)}$clearDiagnostics(e){this.markerManager.clearMarkers(e)}$changeDiagnostics(e,t){for(const[i,r]of t)this.markerManager.updateMarkers(e,i,r)}$registerImplementationProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createImplementationProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerImplementationProvider(e,r));this.disposables.set(e,o)}$registerDocumentLinkProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createLinkProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerLinkProvider(e,r));this.disposables.set(e,o)}createImplementationProvider(e,t){return{provideImplementation:(i,r,o)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const s=this.reporter.time(u.REPORT_NAME.PROVIDE_IMPLEMENTATION);return this.proxy.$provideImplementationWithDuration(e,i.uri,r).then((({result:e,_dur:t})=>{if(e){if(s.timeEnd(d.extname(i.uri.fsPath),{extDuration:t}),Array.isArray(e)){const t=[];for(const i of e)t.push(Object.assign(Object.assign({},i),{uri:n.Uri.revive(i.uri)}));return t}return{uri:n.Uri.revive(e.uri),range:e.range}}}))}}}$registerQuickFixProvider(e,t,i){const r=v.fromLanguageSelector(t),n=this.createQuickFixProvider(e,r,i),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(o.CodeActionProviderRegistry.register(e,n));this.disposables.set(e,s)}createQuickFixProvider(e,t,i){return{provideCodeActions:(i,r,n)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const o=this.reporter.time(u.REPORT_NAME.PROVIDE_CODE_ACTIONS);return this.proxy.$provideCodeActions(e,i.uri,r,n).then((e=>(o.timeEnd(d.extname(i.uri.fsPath)),e)))},providedCodeActionKinds:i}}createLinkProvider(e,t){return{provideLinks:(i,r)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const n=this.reporter.time(u.REPORT_NAME.PROVIDE_LINKS);return this.proxy.$provideDocumentLinks(e,i.uri,r).then((e=>{if(!e)return;n.timeEnd(d.extname(i.uri.fsPath));return{links:e.map((e=>this.reviveLink(e))),dispose:()=>{}}}))},resolveLink:(t,i)=>this.proxy.$resolveDocumentLink(e,t,i).then((e=>{if(e)return this.reviveLink(e)}))}}reviveLink(e){return e.url&&"string"!=typeof e.url&&(e.url=u.URI.revive(e.url)),e}$setLanguageConfiguration(e,t,i){const r={comments:i.comments,brackets:i.brackets,wordPattern:y.reviveRegExp(i.wordPattern),indentationRules:y.reviveIndentationRule(i.indentationRules),onEnterRules:y.reviveOnEnterRules(i.onEnterRules)};this.disposables.set(e,n.languages.setLanguageConfiguration(t,r))}$registerReferenceProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createReferenceProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerReferenceProvider(e,r));this.disposables.set(e,o)}createReferenceProvider(e,t){return{provideReferences:(i,r,o,s)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const a=this.reporter.time(u.REPORT_NAME.PROVIDE_REFERENCES);return this.proxy.$provideReferencesWithDuration(e,i.uri,r,o,s).then((({result:e,_dur:t})=>{if(e&&Array.isArray(e)){a.timeEnd(d.extname(i.uri.fsPath),{extDuration:t});const r=[];for(const t of e)r.push(Object.assign(Object.assign({},t),{uri:n.Uri.revive(t.uri)}));return r}}))}}}$registerWorkspaceSymbolProvider(e){const t=this.createWorkspaceSymbolProvider(e);this.disposables.set(e,this.languageService.registerWorkspaceSymbolProvider(t))}createWorkspaceSymbolProvider(e){return{provideWorkspaceSymbols:(t,i)=>this.proxy.$provideWorkspaceSymbols(e,t.query,i),resolveWorkspaceSymbol:(t,i)=>this.proxy.$resolveWorkspaceSymbol(e,t,i)}}$registerOutlineSupport(e,t){const i=v.fromLanguageSelector(t),r=this.createDocumentSymbolProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerDocumentSymbolProvider(e,r));this.disposables.set(e,o)}createDocumentSymbolProvider(e,t){return{provideDocumentSymbols:(t,i)=>{if(!this.isLanguageFeatureEnabled(t))return;const r=this.reporter.time(u.REPORT_NAME.PROVIDE_DOCUMENT_SYMBOLS);return this.proxy.$provideDocumentSymbols(e,t.uri,i).then((e=>(e&&r.timeEnd(d.extname(t.uri.fsPath)),e)))}}}$registerSignatureHelpProvider(e,t,i){const r=v.fromLanguageSelector(t),o=this.createSignatureHelpProvider(e,r,i),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerSignatureHelpProvider(e,o));this.disposables.set(e,s)}createSignatureHelpProvider(e,t,i){return{signatureHelpTriggerCharacters:i.triggerCharacters,signatureHelpRetriggerCharacters:i.retriggerCharacters,provideSignatureHelp:(i,r,n,o)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const s=this.reporter.time(u.REPORT_NAME.PROVIDE_SIGNATURE_HELP);return this.proxy.$provideSignatureHelp(e,i.uri,r,o,n).then((e=>(e&&s.timeEnd(d.extname(i.uri.fsPath)),e)))}}}$registerRenameProvider(e,t,i){const r=v.fromLanguageSelector(t),o=this.createRenameProvider(e,r,i),s=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(r,e)&&s.push(n.languages.registerRenameProvider(e,o));this.disposables.set(e,s)}createRenameProvider(e,t,i){return{provideRenameEdits:(i,r,n,o)=>{if(!this.isLanguageFeatureEnabled(i))return;if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;const s=this.reporter.time(u.REPORT_NAME.PROVIDE_RENAME_EDITS);return this.proxy.$provideRenameEdits(e,i.uri,r,n,o).then((e=>(e&&s.timeEnd(d.extname(i.uri.fsPath)),this.reviveWorkspaceEditDto(e))))},resolveRenameLocation:i?(i,r,n)=>{if(this.isLanguageFeatureEnabled(i)&&this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return this.proxy.$resolveRenameLocation(e,i.uri,r,n).then((e=>e))}:void 0}}reviveWorkspaceEditDto(e){if(e&&e.edits)for(const t of e.edits)"object"==typeof t.resource?t.resource=a.Uri.revive(t.resource):(t.newUri=a.Uri.revive(t.newUri),t.oldUri=a.Uri.revive(t.oldUri));return e}$registerSelectionRangeProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createSelectionProvider(e,i),o=new u.DisposableCollection;for(const e of this.getUniqueLanguages())this.matchLanguage(i,e)&&o.push(n.languages.registerSelectionRangeProvider(e,r));this.disposables.set(e,o)}createSelectionProvider(e,t){return{provideSelectionRanges:(i,r,n)=>{if(!this.matchModel(t,m.MonacoModelIdentifier.fromModel(i)))return;if(!this.isLanguageFeatureEnabled(i))return;const o=this.reporter.time(u.REPORT_NAME.PROVIDE_SELECTION_RANGES);return this.proxy.$provideSelectionRanges(e,i.uri,r,n).then((e=>(o.timeEnd(d.extname(i.uri.fsPath)),e)))}}}$registerCallHierarchyProvider(e,t){const i=v.fromLanguageSelector(t),r=this.createCallHierarchyProvider(e,i);this.callHierarchyService.registerCallHierarchyProvider(t,r)}reviveCallHierarchyItemDto(e){return e&&(e.uri=u.URI.revive(e.uri)),e}createCallHierarchyProvider(e,t){return{prepareCallHierarchy:(t,i,n)=>r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.proxy.$prepareCallHierarchy(e,t.uri,i,n);if(r)return{dispose:()=>{for(const t of r)this.proxy.$releaseCallHierarchy(e,t._sessionId)},roots:r.map(this.reviveCallHierarchyItemDto)}})),provideOutgoingCalls:(t,i)=>r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.proxy.$provideCallHierarchyOutgoingCalls(e,t._sessionId,t._itemId,i);return r?(r.forEach((e=>{e.to=this.reviveCallHierarchyItemDto(e.to)})),r):r})),provideIncomingCalls:(t,i)=>r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.proxy.$provideCallHierarchyIncomingCalls(e,t._sessionId,t._itemId,i);return r?(r.forEach((e=>{e.from=this.reviveCallHierarchyItemDto(e.from)})),r):r}))}}$registerDocumentSemanticTokensProvider(e,t,i){const r=new w.DocumentSemanticTokensProvider(this.proxy,e,i);this.disposables.set(e,o.DocumentSemanticTokensProviderRegistry.register(v.fromLanguageSelector(t),r))}$registerDocumentRangeSemanticTokensProvider(e,t,i){const r=new w.DocumentRangeSemanticTokensProviderImpl(this.proxy,e,i);this.disposables.set(e,o.DocumentRangeSemanticTokensProviderRegistry.register(v.fromLanguageSelector(t),r))}$registerEvaluatableExpressionProvider(e,t){const i={provideEvaluatableExpression:(t,i,r)=>this.proxy.$provideEvaluatableExpression(e,t.uri,i,r)};this.disposables.set(e,this.evaluatableExpressionService.registerEvaluatableExpressionProvider(t,i))}};r.__decorate([c.Autowired(u.MarkerManager),r.__metadata("design:type",u.MarkerManager)],S.prototype,"markerManager",void 0),r.__decorate([c.Autowired(l.PreferenceService),r.__metadata("design:type",Object)],S.prototype,"preference",void 0),r.__decorate([c.Autowired(l.IReporterService),r.__metadata("design:type",Object)],S.prototype,"reporter",void 0),r.__decorate([c.Autowired(_.ILanguageService),r.__metadata("design:type",Object)],S.prototype,"languageService",void 0),r.__decorate([c.Autowired(h.ICallHierarchyService),r.__metadata("design:type",Object)],S.prototype,"callHierarchyService",void 0),r.__decorate([c.Autowired(p.IEvaluatableExpressionService),r.__metadata("design:type",Object)],S.prototype,"evaluatableExpressionService",void 0),r.__decorate([c.Autowired(b.IEditorDocumentModelService),r.__metadata("design:type",Object)],S.prototype,"documentModelManager",void 0),S=r.__decorate([c.Injectable({multiple:!0}),r.__param(0,c.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],S),t.MainThreadLanguages=S},42281:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(3077),s=i(37210);let a=class{get logger(){return this.loggerManager.getLogger(s.SupportLogNamespace.ExtensionHost)}$getLevel(){return this.logger.getLevel()}$setLevel(e){return this.logger.setLevel(e)}$verbose(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.verbose(...e)}))}$debug(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.debug(...e)}))}$log(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.log(...e)}))}$warn(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.warn(...e)}))}$error(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.error(...e)}))}$critical(...e){return r.__awaiter(this,void 0,void 0,(function*(){return this.logger.critical(...e)}))}$dispose(){return this.logger.dispose()}};r.__decorate([n.Autowired(s.ILoggerManagerClient),r.__metadata("design:type",Object)],a.prototype,"loggerManager",void 0),a=r.__decorate([n.Injectable()],a),t.MainThreadExtensionLog=a,t.createExtensionLogFactory=function(e,t){e.set(o.MainThreadExtensionLogIdentifier,t.get(a))}},28300:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(92224),o=i(68767),s=i(19745),a=i(39273);let c=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.ExtHostAPIIdentifier.ExtHostMessage)}dispose(){}$showMessage(e,t,i,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r=i.modal?yield this.dialogService.open(t,e,n):yield this.messageService.open(t,e,n,!0,o);return r?n.indexOf(r):void 0}))}};r.__decorate([s.Autowired(n.IDialogService),r.__metadata("design:type",Object)],c.prototype,"dialogService",void 0),r.__decorate([s.Autowired(n.IMessageService),r.__metadata("design:type",Object)],c.prototype,"messageService",void 0),c=r.__decorate([s.Injectable({multiple:!0}),r.__param(0,s.Optinal(a.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadMessage=c},81813:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(78079),s=i(73607);let a=class{constructor(){this.channels=new Map}dispose(){this.channels.forEach((e=>{this.outputService.deleteChannel(e.name)})),this.channels.clear()}$append(e,t){const i=this.getChannel(e);return i&&i.append(t),Promise.resolve()}$clear(e){const t=this.getChannel(e);return t&&t.clear(),Promise.resolve()}$dispose(e){return this.outputService.deleteChannel(e),this.channels.has(e)&&this.channels.delete(e),Promise.resolve()}$reveal(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.getChannel(e);t&&(t.setVisibility(!0),this.outputService.updateSelectedChannel(t))}))}$close(e){const t=this.getChannel(e);return t&&t.setVisibility(!1),Promise.resolve()}getChannel(e){let t;return this.channels.has(e)?t=this.channels.get(e):(t=this.outputService.getChannel(e),this.channels.set(e,t)),t}};r.__decorate([n.Autowired(o.OutputService),r.__metadata("design:type",o.OutputService)],a.prototype,"outputService",void 0),r.__decorate([n.Autowired(s.IMainLayoutService),r.__metadata("design:type",Object)],a.prototype,"layoutService",void 0),a=r.__decorate([n.Injectable({multiple:!0})],a),t.MainThreadOutput=a},45821:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(39273),i(68767)),o=i(19745),s=i(68767),a=i(34865),c=i(5778);function l(e,t){const i=t.map((e=>e.uri.toString()));return a.PreferenceScope.getScopes().reduce(((t,r)=>{t[r]={};const n=e(r);if(r===a.PreferenceScope.Folder)for(const e of i){const i=n.getPreferences(e);t[r][e]=i}else{t[r]=n.getPreferences();const e=n.getLanguagePreferences();e&&Object.keys(e).forEach((i=>{t[r][`[${i}]`]=e[i]}))}return t}),{})}t.getPreferences=l;let u=class{constructor(e){this.rpcProtocol=e,this.toDispose=new a.DisposableCollection,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostPreference),this.toDispose.push(this.preferenceService.onPreferencesChanged((e=>{const t=this.workspaceService.tryGetRoots(),i=l(this.preferenceProviderProvider,t),r=[];for(const t of Object.keys(e)){const{newValue:i}=e[t];r.push({preferenceName:t,newValue:i})}this.proxy.$acceptConfigurationChanged(i,r)}))),this.initializeConfiguration(),this.toDispose.push(this.preferenceSchemaProvider.onDidPreferenceSchemaChanged((()=>{this.initializeConfiguration()})))}dispose(){this.toDispose.dispose()}initializeConfiguration(){return r.__awaiter(this,void 0,void 0,(function*(){const e=this.workspaceService.tryGetRoots(),t=l(this.preferenceProviderProvider,e);this.proxy.$initializeConfiguration(t)}))}$updateConfigurationOption(e,t,i,n){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.parseConfigurationTarget(e);yield this.preferenceService.set(t,i,r,n)}))}$removeConfigurationOption(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=this.parseConfigurationTarget(e);yield this.preferenceService.set(t,void 0,r,i)}))}parseConfigurationTarget(e){if("boolean"==typeof e)return e?a.PreferenceScope.User:a.PreferenceScope.Workspace;switch(e){case s.ConfigurationTarget.Global:return a.PreferenceScope.User;case s.ConfigurationTarget.Workspace:return a.PreferenceScope.Workspace;case s.ConfigurationTarget.WorkspaceFolder:return a.PreferenceScope.Folder;default:return}}};r.__decorate([o.Autowired(a.PreferenceService),r.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),r.__decorate([o.Autowired(a.PreferenceProviderProvider),r.__metadata("design:type",Function)],u.prototype,"preferenceProviderProvider",void 0),r.__decorate([o.Autowired(a.PreferenceSchemaProvider),r.__metadata("design:type",a.PreferenceSchemaProvider)],u.prototype,"preferenceSchemaProvider",void 0),r.__decorate([o.Autowired(c.IWorkspaceService),r.__metadata("design:type",Object)],u.prototype,"workspaceService",void 0),u=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],u),t.MainThreadPreference=u},7726:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(68767),o=i(19745),s=i(39273),a=i(95201),c=i(35664),l=i(76126),u=i(34865);let d=class extends u.Disposable{constructor(e){super(),this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostQuickOpen),this.addDispose(this.quickTitleBarService.onDidTriggerButton((e=>r.__awaiter(this,void 0,void 0,(function*(){yield this.proxy.$onDidTriggerButton(e.handler)})))))}$showQuickPick(e,t){return this.quickPickService.show(e,t)}$hideQuickPick(){this.quickPickService.hide()}$showQuickInput(e,t){return t&&(e.validateInput=e=>this.proxy.$validateInput(e)),this.quickInputService.open(e)}$hideQuickinput(){this.quickInputService.hide()}};r.__decorate([o.Autowired(a.QuickPickService),r.__metadata("design:type",Object)],d.prototype,"quickPickService",void 0),r.__decorate([o.Autowired(l.IQuickInputService),r.__metadata("design:type",Object)],d.prototype,"quickInputService",void 0),r.__decorate([o.Autowired(c.QuickTitleBar),r.__metadata("design:type",c.QuickTitleBar)],d.prototype,"quickTitleBarService",void 0),d=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(s.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],d),t.MainThreadQuickOpen=d},35255:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(27813),a=i(39273),c=i(74913),l=i(34865),u=i(68767);class d{constructor(e,t,i,r,n,s){this.sourceControlHandle=e,this.handle=t,this.provider=i,this.features=r,this.label=n,this.id=s,this.elements=[],this._onDidSplice=new o.Emitter,this.onDidSplice=this._onDidSplice.event,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event}get hideWhenEmpty(){return!!this.features.hideWhenEmpty}toJSON(){return{$mid:4,sourceControlHandle:this.sourceControlHandle,groupHandle:this.handle}}splice(e,t,i){this.elements.splice(e,t,...i),this._onDidSplice.fire({start:e,deleteCount:t,toInsert:i})}$updateGroup(e){this.features=Object.assign(this.features,e),this._onDidChange.fire()}$updateGroupLabel(e){this.label=e,this._onDidChange.fire()}}class h{constructor(e,t,i,r,n,o,s,a,c){this.proxy=e,this.sourceControlHandle=t,this.groupHandle=i,this.handle=r,this.sourceUri=n,this.resourceGroup=o,this.decorations=s,this.contextValue=a,this.command=c}open(e){return this.proxy.$executeResourceCommand(this.sourceControlHandle,this.groupHandle,this.handle,e)}toJSON(){return{$mid:3,sourceControlHandle:this.sourceControlHandle,groupHandle:this.groupHandle,handle:this.handle}}}class p{constructor(e,t,i,r,n){this.proxy=e,this._handle=t,this._contextValue=i,this._label=r,this._rootUri=n,this._id="scm"+p.ID_HANDLE++,this.groups=new s.Sequence,this._groupsByHandle=Object.create(null),this._onDidChangeResources=new o.Emitter,this.onDidChangeResources=this._onDidChangeResources.event,this.features={},this._onDidChangeCommitTemplate=new o.Emitter,this.onDidChangeCommitTemplate=this._onDidChangeCommitTemplate.event,this._onDidChangeStatusBarCommands=new o.Emitter,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event}get id(){return this._id}get handle(){return this._handle}get label(){return this._label}get rootUri(){return this._rootUri}get contextValue(){return this._contextValue}get commitTemplate(){return this.features.commitTemplate}get acceptInputCommand(){return this.features.acceptInputCommand}get statusBarCommands(){return this.features.statusBarCommands}get count(){return this.features.count}get onDidChangeStatusBarCommands(){return this._onDidChangeStatusBarCommands.event}$updateSourceControl(e){this.features=Object.assign(this.features,e),this._onDidChange.fire(),void 0!==e.commitTemplate&&this._onDidChangeCommitTemplate.fire(this.commitTemplate),void 0!==e.statusBarCommands&&this._onDidChangeStatusBarCommands.fire(this.statusBarCommands)}$registerGroup(e,t,i){const r=new d(this.handle,e,this,{},i,t);this._groupsByHandle[e]=r,this.groups.splice(this.groups.elements.length,0,[r])}$updateGroup(e,t){const i=this._groupsByHandle[e];i&&i.$updateGroup(t)}$updateGroupLabel(e,t){const i=this._groupsByHandle[e];i&&i.$updateGroupLabel(t)}$spliceGroupResourceStates(e){for(const[t,i]of e){const e=this._groupsByHandle[t];if(e){i.reverse();for(const[r,n,s]of i){const i=s.map((i=>{const[r,n,s,a,c,l,u,d,p,f,g]=i,m=s[0],v=s[1]||m,y={icon:m?o.Uri.parse(m):void 0,iconDark:v?o.Uri.parse(v):void 0,tooltip:a,strikeThrough:c,faded:l,source:p,letter:f,color:g?g.id:void 0};return new h(this.proxy,this.handle,t,r,o.Uri.revive(n),e,y,u||void 0,d)}));e.splice(r,n,i)}}else this.logger.warn(`SCM group ${t} not found in provider ${this.label}`)}this._onDidChangeResources.fire()}$unregisterGroup(e){const t=this._groupsByHandle[e];t&&(delete this._groupsByHandle[e],this.groups.splice(this.groups.elements.indexOf(t),1))}getOriginalResource(e){return r.__awaiter(this,void 0,void 0,(function*(){if(!this.features.hasQuickDiffProvider)return null;const t=yield this.proxy.$provideOriginalResource(this.handle,e,o.CancellationToken.None);return t&&o.Uri.revive(t)}))}toJSON(){return{$mid:5,handle:this.handle}}dispose(){}}p.ID_HANDLE=0,r.__decorate([n.Autowired(c.SCMService),r.__metadata("design:type",c.SCMService)],p.prototype,"scmService",void 0),r.__decorate([n.Autowired(l.ILogger),r.__metadata("design:type",Object)],p.prototype,"logger",void 0);let f=class extends o.Disposable{constructor(e){super(),this.rpcProtocol=e,this._repositories=new Map,this._inputDisposables=new Map,this._proxy=this.rpcProtocol.getProxy(u.ExtHostAPIIdentifier.ExtHostSCM),o.Event.debounce(this.scmService.onDidChangeSelectedRepositories,((e,t)=>t),100)(this.onDidChangeSelectedRepositories,this,this.disposables)}dispose(){this._repositories.forEach((e=>e.dispose())),this._repositories.clear(),this._inputDisposables.forEach((e=>e.dispose())),this._inputDisposables.clear(),super.dispose()}$registerSourceControl(e,t,i,r){const n=new p(this._proxy,e,t,i,r&&o.Uri.revive(r)),s=this.scmService.registerSCMProvider(n);this._repositories.set(e,s);const a=s.input.onDidChange((t=>this._proxy.$onInputBoxValueChange(e,t)));this._inputDisposables.set(e,a)}$updateSourceControl(e,t){const i=this._repositories.get(e);if(!i)return;i.provider.$updateSourceControl(t)}$unregisterSourceControl(e){const t=this._repositories.get(e);t&&(this._inputDisposables.get(e).dispose(),this._inputDisposables.delete(e),t.dispose(),this._repositories.delete(e))}$registerGroup(e,t,i,r){const n=this._repositories.get(e);if(!n)return;n.provider.$registerGroup(t,i,r)}$updateGroup(e,t,i){const r=this._repositories.get(e);if(!r)return;r.provider.$updateGroup(t,i)}$updateGroupLabel(e,t,i){const r=this._repositories.get(e);if(!r)return;r.provider.$updateGroupLabel(t,i)}$spliceResourceStates(e,t){const i=this._repositories.get(e);if(!i)return;i.provider.$spliceGroupResourceStates(t)}$unregisterGroup(e,t){const i=this._repositories.get(e);if(!i)return;i.provider.$unregisterGroup(t)}$setInputBoxValue(e,t){const i=this._repositories.get(e);i&&(i.input.value=t)}$setInputBoxPlaceholder(e,t){const i=this._repositories.get(e);i&&(i.input.placeholder=t)}$setInputBoxVisibility(e,t){const i=this._repositories.get(e);i&&(i.input.visible=t)}$setValidationProviderIsEnabled(e,t){const i=this._repositories.get(e);i&&(i.input.validateInput=t?(t,i)=>r.__awaiter(this,void 0,void 0,(function*(){const r=yield this._proxy.$validateInput(e,t,i);return r&&{message:r[0],type:r[1]}})):()=>r.__awaiter(this,void 0,void 0,(function*(){})))}onDidChangeSelectedRepositories(e){const t=e.filter((e=>e.provider instanceof p)).map((e=>e.provider.handle));this._proxy.$setSelectedSourceControls(t)}};r.__decorate([n.Autowired(c.SCMService),r.__metadata("design:type",c.SCMService)],f.prototype,"scmService",void 0),f=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optional(a.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],f),t.MainThreadSCM=f},34338:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(39273),i(68767)),o=i(19745),s=i(34865),a=i(65777),c=i(40816);let l=class{constructor(e){this.rpcProtocol=e,this.entries=new Map,this.disposable=new s.Disposable,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostStatusBar)}dispose(){this.disposable.dispose()}$setStatusBarMessage(e){this.statusBar.addElement("ext_default_statusbar_text",{text:e,alignment:a.StatusBarAlignment.LEFT})}$dispose(e){e?this.statusBar.removeElement(e):this.statusBar.removeElement("ext_default_statusbar_text")}$createStatusBarItem(e,t,i){this.disposable.addDispose(this.statusBar.addElement(e,{alignment:t,priority:i}))}$setMessage(e,t,i,n,o,s,l,u,d){return r.__awaiter(this,void 0,void 0,(function*(){const r=(null==l?void 0:l.label)||t&&t.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim(),h={text:t||"",priority:i,alignment:n===c.StatusBarAlignment.Left?a.StatusBarAlignment.LEFT:a.StatusBarAlignment.RIGHT,color:o,tooltip:s,command:u,arguments:d,role:null==l?void 0:l.role,ariaLabel:r};this.entries.set(e,h),yield this.statusBar.addElement(e,h)}))}};r.__decorate([o.Autowired(s.CommandService),r.__metadata("design:type",Object)],l.prototype,"commandService",void 0),r.__decorate([o.Autowired(a.IStatusBarService),r.__metadata("design:type",Object)],l.prototype,"statusBar",void 0),l=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optional(Symbol())),r.__metadata("design:paramtypes",[Object])],l),t.MainThreadStatusBar=l},19025:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(39273),o=i(68767),s=i(19745),a=i(39154);let c=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.ExtHostAPIIdentifier.ExtHostStorage),this.init()}dispose(){}init(){return r.__awaiter(this,void 0,void 0,(function*(){yield this.extensionStorageService.whenReady,this.proxy.$acceptStoragePath(this.extensionStorageService.extensionStoragePath)}))}$setValue(e,t,i){try{this.extensionStorageService.set(t,i,e)}catch(e){return Promise.reject(e)}return Promise.resolve(void 0)}$getValue(e,t){try{return Promise.resolve(this.extensionStorageService.get(t,e))}catch(e){return Promise.reject(e)}}};r.__decorate([s.Autowired(a.IExtensionStorageService),r.__metadata("design:type",Object)],c.prototype,"extensionStorageService",void 0),c=r.__decorate([s.Injectable({multiple:!0}),r.__param(0,s.Optinal(n.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadStorage=c},82318:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=(i(39273),i(21589)),s=i(68767),a=i(65686),c=i(77038),l=i(5778),u=i(95335);var d,h,p,f,g,m,v,y,_,b,w,S,C,E,O;!function(e){e.is=function(e){const t=e;return t&&a.isString(t.id)&&!!t.workspaceFolder}}(d||(d={})),function(e){e.from=function(e){return{id:e.id,task:O.from(e.task)}}}(h||(h={})),function(e){e.from=function(e,t){return{id:e.id,processId:t}}}(p||(p={})),function(e){e.from=function(e,t){return{id:e.id,exitCode:t}}}(f||(f={})),function(e){e.from=function(e){const t=Object.assign(Object.create(null),e);return delete t._key,t},e.to=function(e,t,i){let r=i.createTaskIdentifier(e,console);return void 0===r&&t&&(r={_key:a.uuid(),type:"$executeOnly"}),r}}(g||(g={})),function(e){e.from=function(e){if(null!=e)return Object.assign(Object.create(null),e)},e.to=function(e){return null==e?u.PresentationOptions.defaults:Object.assign(Object.create(null),u.PresentationOptions.defaults,e)}}(m||(m={})),function(e){e.from=function(e){if(null!=e)return Object.assign(Object.create(null),e)},e.to=function(e){return null==e?u.RunOptions.defaults:Object.assign(Object.create(null),u.RunOptions.defaults,e)}}(v||(v={})),function(e){e.from=function(e){if(null!=e)return{cwd:e.cwd,env:e.env}},e.to=function(e){return null==e?u.CommandOptions.defaults:{cwd:e.cwd||u.CommandOptions.defaults.cwd,env:e.env}}}(y||(y={})),function(e){e.is=function(e){return e&&!!e.process},e.from=function(e){const t={process:a.isString(e.name)?e.name:e.name.value,args:e.args?e.args.map((e=>a.isString(e)?e:e.value)):[]};return e.options&&(t.options=y.from(e.options)),t},e.to=function(e){const t={runtime:u.RuntimeType.Process,name:e.process,args:e.args,presentation:void 0};return t.options=y.to(e.options),t}}(_||(_={})),function(e){e.from=function(e){if(null==e)return;const t={cwd:e.cwd||u.CommandOptions.defaults.cwd,env:e.env};return e.shell&&(t.executable=e.shell.executable,t.shellArgs=e.shell.args,t.shellQuoting=e.shell.quoting),t},e.to=function(e){if(null==e)return;const t={cwd:e.cwd,env:e.env};return e.executable&&(t.shell={executable:e.executable},e.shellArgs&&(t.shell.args=e.shellArgs),e.shellQuoting&&(t.shell.quoting=e.shellQuoting)),t}}(b||(b={})),function(e){e.is=function(e){const t=e;return t&&(!!t.commandLine||!!t.command)},e.from=function(e){const t={};return e.name&&a.isString(e.name)&&(void 0===e.args||null===e.args||0===e.args.length)?t.commandLine=e.name:(t.command=e.name,t.args=e.args),e.options&&(t.options=b.from(e.options)),t},e.to=function(e){const t={runtime:u.RuntimeType.Shell,name:e.commandLine?e.commandLine:e.command,args:e.args,presentation:void 0};return e.options&&(t.options=b.to(e.options)),t}}(w||(w={})),function(e){e.is=function(e){return e&&"customExecution"===e.customExecution},e.from=function(){return{customExecution:"customExecution"}},e.to=function(){return{runtime:u.RuntimeType.CustomExecution,presentation:void 0}}}(S||(S={})),function(e){e.is=function(e){return e&&"customExecution2"===e.customExecution},e.from=function(){return{customExecution:"customExecution2"}},e.to=function(){return{runtime:u.RuntimeType.CustomExecution2,presentation:void 0}}}(C||(C={})),function(e){e.from=function(e){const t={label:e.label};return e.kind===u.TaskSourceKind.Extension?(t.extensionId=e.extension,e.workspaceFolder?t.scope=e.workspaceFolder.uri:t.scope=e.scope):e.kind===u.TaskSourceKind.Workspace&&(t.extensionId="$core",t.scope=e.config.workspaceFolder.uri),t},e.to=function(e,t){let i,r;const n=t.tryGetRoots().map((e=>a.Uri.parse(e.uri)));return void 0===e.scope||"number"==typeof e.scope&&1!==e.scope?0===t.tryGetRoots().map((e=>a.Uri.file(e.uri))).length?(i=1,r=void 0):(i=3,r={name:"workspace",uri:n[0],index:0}):"number"==typeof e.scope?i=e.scope:(i=3,r=a.withNullAsUndefined({uri:t.tryGetRoots().map((e=>a.Uri.parse(e.uri)))[0],name:t.getWorkspaceName(t.tryGetRoots().map((e=>a.URI.file(e.uri)))[0]),index:0})),{kind:u.TaskSourceKind.Extension,label:e.label,extension:e.extensionId,scope:i,workspaceFolder:r}}}(E||(E={})),function(e){e.from=function(e){if(null==e||!u.CustomTask.is(e)&&!u.ContributedTask.is(e)&&!u.ConfiguringTask.is(e))return;const t={_id:e._id,name:e.configurationProperties.name,definition:g.from(e.getDefinition()),source:E.from(e._source),execution:void 0,presentationOptions:!u.ConfiguringTask.is(e)&&e.command?m.from(e.command.presentation):void 0,isBackground:e.configurationProperties.isBackground,problemMatchers:[],hasDefinedMatchers:!!u.ContributedTask.is(e)&&e.hasDefinedMatchers,runOptions:v.from(e.runOptions)};if(e.configurationProperties.group&&(t.group=e.configurationProperties.group),!u.ConfiguringTask.is(e)&&e.command&&(e.command.runtime===u.RuntimeType.Process?t.execution=_.from(e.command):e.command.runtime===u.RuntimeType.Shell&&(t.execution=w.from(e.command))),e.configurationProperties.problemMatchers)for(const i of e.configurationProperties.problemMatchers)a.isString(i)&&t.problemMatchers.push(i);return t},e.to=function(e,t,i,r){if(!e||"string"!=typeof e.name)return;let n;if(e.execution&&(w.is(e.execution)?n=w.to(e.execution):_.is(e.execution)?n=_.to(e.execution):S.is(e.execution)&&(n=S.to())),!n)return;n.presentation=m.to(e.presentationOptions);const o=E.to(e.source,t),s=a.formatLocalize("task.label",o.label,e.name),c=g.to(e.definition,i,r),l=`${e.source.extensionId}.${c._key}`;return new u.ContributedTask(l,o,s,c.type,c,n,e.hasDefinedMatchers,v.to(e.runOptions),{name:e.name,identifier:s,group:e.group,isBackground:!!e.isBackground,problemMatchers:e.problemMatchers.slice()})}}(O||(O={}));let k=class extends a.Disposable{constructor(e){super(),this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(s.ExtHostAPIIdentifier.ExtHostTasks),this.providers=new Map,this.context={createTaskIdentifier:(e,t)=>this.taskDefinitionRegistry.createTaskIdentifier(e,t)},this.addDispose(this.taskService.onDidStateChange((e=>{const t=e.__task;"start"===e.kind?(this.logger.verbose(`task ${t._label||t._id} start`,e.terminalId),this.proxy.$onDidStartTask(h.from(t.getTaskExecution()),e.terminalId)):"processStarted"===e.kind?(this.logger.verbose(`task ${t._label||t._id} process start`,e.processId),this.proxy.$onDidStartTaskProcess(p.from(t.getTaskExecution(),e.processId))):"processEnded"===e.kind?(this.logger.verbose(`task ${t._label||t._id} process end`,e.exitCode),this.proxy.$onDidEndTaskProcess(f.from(t.getTaskExecution(),e.exitCode))):"end"===e.kind&&(this.logger.verbose(`task ${t._label||t._id} end`),this.proxy.$onDidEndTask(h.from(t.getTaskExecution())))})))}$registerTaskProvider(e,t){this.logger.verbose(`register task provider ${t}, handler ${e}`);const i={provideTasks:i=>(this.logger.verbose(`${t} provideTask`),Promise.resolve(this.proxy.$provideTask(e,i)).then((e=>{const i=[];for(const t of e.tasks){const e=O.to(t,this.workspaceService,!0,this.context);e?i.push(e):this.logger.error(`Task System: can not convert task: ${JSON.stringify(t.definition,void 0,0)}. Task will be dropped`)}return{tasks:i,extension:e.extension,type:t}}))),resolveTask:i=>(this.logger.verbose(`${t} resolveTask`),Promise.resolve(this.proxy.$resolveTask(e,i)).then((e=>{if(e)return O.to(e,this.workspaceService,!0,this.context)})))},r=this.taskService.registerTaskProvider(i,t);return this.providers.set(e,{disposable:r,provider:i}),Promise.resolve()}$unregisterTaskProvider(e){throw new Error("Method not implemented.")}$fetchTasks(e){return this.taskService.tasks(o.TaskFilterDTO.to(e)).then((e=>{const t=[];for(const i of e){const e=O.from(i);e&&t.push(e)}return t}))}$executeTask(e){return new Promise(((t,i)=>{if(d.is(e)){const r=this.workspaceService.getWorkspaceRootUri(a.URI.from(e.workspaceFolder));r?this.taskService.getTask(r.codeUri,e.id,!0).then((i=>{this.taskService.run(i).then((()=>{}));const r={id:e.id,task:O.from(i)};t(r)}),(e=>{i(new Error("Task not found"))})):i(new Error("No workspace folder"))}else{const i=O.to(e,this.workspaceService,!0,this.context);this.taskService.run(i).then((()=>{}));const r={id:i._id,task:O.from(i)};t(r)}}))}$createTaskId(e){return new Promise(((t,i)=>{const r=O.to(e,this.workspaceService,!0,this.context);r?t(r._id):i(new Error("Task could not be created from DTO"))}))}$terminateTask(e){return r.__awaiter(this,void 0,void 0,(function*(){yield this.taskService.terminateTask(e)}))}};r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],k.prototype,"logger",void 0),r.__decorate([n.Autowired(c.ITaskService),r.__metadata("design:type",Object)],k.prototype,"taskService",void 0),r.__decorate([n.Autowired(l.IWorkspaceService),r.__metadata("design:type",Object)],k.prototype,"workspaceService",void 0),r.__decorate([n.Autowired(a.ITaskDefinitionRegistry),r.__metadata("design:type",Object)],k.prototype,"taskDefinitionRegistry",void 0),k=r.__decorate([n.Injectable({multiple:!0}),r.__metadata("design:paramtypes",[Object])],k),t.MainthreadTasks=k},71761:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(39273),s=i(34865),a=i(63446),c=i(51980),l=i(51980),u=i(68767);let d=class{constructor(e){this.rpcProtocol=e,this._terminalProcessProxies=new Map,this.disposable=new s.Disposable,this.proxy=this.rpcProtocol.getProxy(u.ExtHostAPIIdentifier.ExtHostTerminal),this.initData(),this.bindEvent()}dispose(){this.disposable.dispose()}bindEvent(){this.disposable.addDispose(this.terminalApi.onDidChangeActiveTerminal((e=>{this.proxy.$onDidChangeActiveTerminal(e)}))),this.disposable.addDispose(this.terminalApi.onDidCloseTerminal((e=>{this.proxy.$onDidCloseTerminal(e)}))),this.disposable.addDispose(this.terminalApi.onDidOpenTerminal((e=>{this.proxy.$onDidOpenTerminal(e)}))),this.disposable.addDispose(this.controller.onInstanceRequestStartExtensionTerminal((e=>this._onRequestStartExtensionTerminal(e))))}initData(){const e=this.terminalApi.terminals,t=[];e.forEach((e=>{t.push({id:e.id,name:e.name,isActive:e.isActive})})),this.proxy.$setTerminals(t);const i=this.preference.get("terminal.type");i&&this.proxy.$acceptDefaultShell(i)}$sendText(e,t,i){return this.terminalApi.sendText(e,t,i)}$show(e,t){return this.terminalApi.showTerm(e,t)}$hide(e){return this.terminalApi.hideTerm(e)}$dispose(e){return this.terminalApi.removeTerm(e)}$getProcessId(e){return this.terminalApi.getProcessId(e)}$createTerminal(e){return r.__awaiter(this,void 0,void 0,(function*(){yield this.controller.ready.promise;const t=yield this.terminalApi.createTerminal(e);return t?t.id:this.logger.error("创建终端失败")}))}_onRequestStartExtensionTerminal(e){const t=e.proxy;this._terminalProcessProxies.set(t.terminalId,t);const i=e.cols&&e.rows?{columns:e.cols,rows:e.rows}:void 0;this.proxy.$startExtensionTerminal(t.terminalId,i).then(e.callback),t.onInput((e=>this.proxy.$acceptProcessInput(t.terminalId,e))),t.onShutdown((e=>this.proxy.$acceptProcessShutdown(t.terminalId,e))),t.onRequestCwd((()=>this.proxy.$acceptProcessRequestCwd(t.terminalId))),t.onRequestInitialCwd((()=>this.proxy.$acceptProcessRequestInitialCwd(t.terminalId)))}_getTerminalProcess(e){const t=this._terminalProcessProxies.get(e);if(!t)throw new Error(`Unknown terminal: ${e}`);return t}$sendProcessTitle(e,t){this._getTerminalProcess(e).emitTitle(t)}$sendProcessData(e,t){this._getTerminalProcess(e).emitData(t)}$sendProcessReady(e,t,i){this._getTerminalProcess(e).emitReady(t,i)}$sendProcessExit(e,t){this._getTerminalProcess(e).emitExit(t),this._terminalProcessProxies.delete(e)}$sendOverrideDimensions(e,t){this._getTerminalProcess(e).emitOverrideDimensions(t)}$sendProcessInitialCwd(e,t){this._getTerminalProcess(e).emitInitialCwd(t)}$sendProcessCwd(e,t){this._getTerminalProcess(e).emitCwd(t)}$startLinkProvider(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose(),this._linkProvider=this.controller.registerLinkProvider(new h(this.proxy))}$stopLinkProvider(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose(),this._linkProvider=void 0}$setEnvironmentVariableCollection(e,t,i){if(i){const r={persistent:t,map:l.deserializeEnvironmentVariableCollection(i)};this.environmentVariableService.set(e,r)}else this.environmentVariableService.delete(e)}};r.__decorate([n.Autowired(c.EnvironmentVariableServiceToken),r.__metadata("design:type",Object)],d.prototype,"environmentVariableService",void 0),r.__decorate([n.Autowired(a.ITerminalApiService),r.__metadata("design:type",Object)],d.prototype,"terminalApi",void 0),r.__decorate([n.Autowired(a.ITerminalController),r.__metadata("design:type",Object)],d.prototype,"controller",void 0),r.__decorate([n.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],d.prototype,"preference",void 0),r.__decorate([n.Autowired(s.ILogger),r.__metadata("design:type",Object)],d.prototype,"logger",void 0),d=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optinal(o.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],d),t.MainThreadTerminal=d;class h{constructor(e){this._proxy=e}provideLinks(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const i=this._proxy;return(yield i.$provideLinks(e.id,t)).map((t=>({id:t.id,startIndex:t.startIndex,length:t.length,activate:()=>i.$activateLink(e.id,t.id)})))}))}}},71916:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(39273),o=i(19745),s=i(68767),a=i(64994);let c=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(s.ExtHostAPIIdentifier.ExtHostTheming),this._themeChangeListener=this._themeService.onThemeChange((e=>{this.proxy.$onColorThemeChange(e.type)})),this.proxy.$onColorThemeChange(this._themeService.getCurrentThemeSync().type)}dispose(){this._themeChangeListener.dispose()}};r.__decorate([o.Autowired(a.IThemeService),r.__metadata("design:type",Object)],c.prototype,"_themeService",void 0),c=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(n.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadTheming=c},81457:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(39273),s=i(19745),a=i(40816),c=i(68767),l=i(34865),u=i(73607),d=i(46584),h=i(64994),p=i(15185),f=i(55489),g=i(88774),m=i(43849);let v=r=class{constructor(e){this.rpcProtocol=e,this.treeModels=new Map,this.disposableCollection=new Map,this.disposable=new l.DisposableStore,this.proxy=this.rpcProtocol.getProxy(c.ExtHostAPIIdentifier.ExtHostTreeView),this.disposable.add(l.toDisposable((()=>this.treeModels.clear()))),this._registerInternalCommands()}dispose(){this.disposable.dispose()}createTreeModel(e,t,i){return p.ExtensionTreeViewModel.createModel(this.injector,t,e,i||{})}$registerTreeDataProvider(e,t){if(this.treeModels.has(e))return;const i=new l.DisposableStore,n=new y(e,this.proxy,this.iconService,this.themeService,this.labelService,this.contextKeyService,this.menuService),o=this.createTreeModel(e,n,t);this.treeModels.set(e,o),i.add(l.toDisposable((()=>this.treeModels.delete(e)))),this.mainLayoutService.replaceViewComponent({id:e,component:d.ExtensionTabBarTreeView},{model:o,dataProvider:n,treeViewId:e}),(null==t?void 0:t.showCollapseAll)&&i.add(this.menuRegistry.registerMenuItem(m.MenuId.ViewTitle,{command:{id:r.TREE_VIEW_COLLAPSE_ALL_COMMAND_ID,label:l.localize("treeview.command.action.collapse")},extraTailArgs:[e],iconClass:l.getIcon("collapse-all"),when:`view == ${e}`,group:"navigation",order:1e4})),i.add(o.onDidSelectedNodeChange((t=>{n.setSelection(e,t)}))),i.add(o.onDidChangeExpansionState((t=>{const{treeItemId:i,expanded:r}=t;n.setExpanded(e,i,r)})));const s=this.mainLayoutService.getTabbarHandler(e);s&&(i.add(s.onActivate((()=>{n.setVisible(e,!0)}))),i.add(s.onInActivate((()=>{n.setVisible(e,!1)}))),i.add(i.add(l.toDisposable((()=>s.disposeView(e)))))),this.disposableCollection.set(e,i)}$unregisterTreeDataProvider(e){const t=this.disposableCollection.get(e);t&&t.dispose()}$refresh(e,t){const i=this.treeModels.get(e);i&&i.refresh(t)}$reveal(e,t,i){return n.__awaiter(this,void 0,void 0,(function*(){this.mainLayoutService.revealView(e);const r=this.treeModels.get(e);r&&r.reveal(t,i)}))}_registerInternalCommands(){this.disposable.add(this.commandRegistry.registerCommand({id:r.TREE_VIEW_COLLAPSE_ALL_COMMAND_ID},{execute:e=>{const t=this.treeModels.get(e);t&&t.collapseAll()}}))}};v.TREE_VIEW_COLLAPSE_ALL_COMMAND_ID="TREE_VIEW_COLLAPSE_ALL",n.__decorate([s.Autowired(u.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"mainLayoutService",void 0),n.__decorate([s.Autowired(h.IIconService),n.__metadata("design:type",Object)],v.prototype,"iconService",void 0),n.__decorate([s.Autowired(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],v.prototype,"menuRegistry",void 0),n.__decorate([s.Autowired(l.CommandRegistry),n.__metadata("design:type",Object)],v.prototype,"commandRegistry",void 0),n.__decorate([s.Autowired(h.IThemeService),n.__metadata("design:type",Object)],v.prototype,"themeService",void 0),n.__decorate([s.Autowired(l.LabelService),n.__metadata("design:type",l.LabelService)],v.prototype,"labelService",void 0),n.__decorate([s.Autowired(l.IContextKeyService),n.__metadata("design:type",Object)],v.prototype,"contextKeyService",void 0),n.__decorate([s.Autowired(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],v.prototype,"menuService",void 0),n.__decorate([s.Autowired(s.INJECTOR_TOKEN),n.__metadata("design:type",s.Injector)],v.prototype,"injector",void 0),v=r=n.__decorate([s.Injectable({multiple:!0}),n.__param(0,s.Optinal(o.IRPCProtocol)),n.__metadata("design:paramtypes",[Object])],v),t.MainThreadTreeView=v;class y extends g.Tree{constructor(e,t,i,r,n,o,s){super(),this.treeViewId=e,this.proxy=t,this.iconService=i,this.themeService=r,this.labelService=n,this.contextKeyService=o,this.menuService=s,this.onTreeDataChangedEmitter=new l.Emitter,this.onRevealChangedEmitter=new l.Emitter,this.isEmpty=!0,this._onDidChangeEmpty=new l.Emitter,this.onDidChangeEmpty=this._onDidChangeEmpty.event,this.treeItemId2TreeNode=new Map}get isTreeEmpty(){return this.isEmpty}get onTreeDataChanged(){return this.onTreeDataChangedEmitter.event}get onRevealChanged(){return this.onRevealChangedEmitter.event}get root(){return this._root}getTreeNodeIdByTreeItemId(e){var t;return null===(t=this.treeItemId2TreeNode.get(e))||void 0===t?void 0:t.id}createFoldNode(e,t){var i;return n.__awaiter(this,void 0,void 0,(function*(){const r=a.TreeItemCollapsibleState.Expanded===e.collapsibleState,n=yield this.toIconClass(e),o=this.getInlineMenuNodes(e.contextValue||"");return new f.ExtensionCompositeTreeNode(this,t,e.label,e.description,n,e.tooltip,e.command,e.contextValue||"",e.id,o,e.accessibilityInformation,r,null===(i=this.treeItemId2TreeNode.get(e.id))||void 0===i?void 0:i.id)}))}createNormalNode(e,t){var i;return n.__awaiter(this,void 0,void 0,(function*(){const r=yield this.toIconClass(e),n=this.getInlineMenuNodes(e.contextValue||"");return new f.ExtensionTreeNode(this,t,e.label,e.description,r,e.tooltip,e.command,e.contextValue||"",e.id,n,e.accessibilityInformation,null===(i=this.treeItemId2TreeNode.get(e.id))||void 0===i?void 0:i.id)}))}toIconClass(e){return n.__awaiter(this,void 0,void 0,(function*(){if(e.iconUrl||e.icon)return this.iconService.fromIcon("",e.iconUrl||e.icon,h.IconType.Background);if(e.themeIcon){let t=l.getExternalIcon(e.themeIcon.id);e.resourceUri&&("file"===e.themeIcon.id?t=this.labelService.getIcon(l.URI.from(e.resourceUri)):"folder"===e.themeIcon.id&&(t=this.labelService.getIcon(l.URI.from(e.resourceUri),{isDirectory:!0})));const i=this.themeService.getColorClassNameByColorToken(e.themeIcon.color);return`${t} ${null!=i?i:""}`}return""}))}getInlineMenuNodes(e){const t=this.contextKeyService.createScoped();t.createKey("view",this.treeViewId),t.createKey("viewItem",e);const i=this.menuService.createMenu(m.MenuId.ViewItemContext,t),r=m.generateCtxMenu({menus:i,separator:"inline"});return i.dispose(),t.dispose(),r[0]}createTreeNode(e,t){return n.__awaiter(this,void 0,void 0,(function*(){return l.isUndefined(e.collapsibleState)||e.collapsibleState===a.TreeItemCollapsibleState.None?yield this.createNormalNode(e,t):yield this.createFoldNode(e,t)}))}resolveChildren(e){return n.__awaiter(this,void 0,void 0,(function*(){let t=[];if(e){let i;if(i=f.ExtensionTreeRoot.is(e)?yield this.proxy.$getChildren(this.treeViewId):yield this.proxy.$getChildren(this.treeViewId,e.treeItemId),i&&Array.isArray(i))for(const r of i){const i=yield this.createTreeNode(r,e);t.push(i)}if(f.ExtensionTreeRoot.is(e)){const e=this.isEmpty;this.isEmpty=!i||0===i.length,e!==this.isEmpty&&this._onDidChangeEmpty.fire()}}else t=[new f.ExtensionTreeRoot(this,this.treeViewId)];return this.cacheNodes(t),t}))}sortComparator(e,t){return e?t?0:-1:1}getNodeByTreeItemId(e){return this.treeItemId2TreeNode.get(e)}cacheNodes(e){e.forEach((e=>{this.treeItemId2TreeNode.set(e.treeItemId,e)}))}refresh(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.onTreeDataChangedEmitter.fire(e)}))}reveal(e){return n.__awaiter(this,void 0,void 0,(function*(){yield this.onRevealChangedEmitter.fire(e)}))}setSelection(e,t){return n.__awaiter(this,void 0,void 0,(function*(){this.proxy.$setSelection(e,t)}))}setExpanded(e,t,i){return n.__awaiter(this,void 0,void 0,(function*(){this.proxy.$setExpanded(e,t,i)}))}setVisible(e,t){return n.__awaiter(this,void 0,void 0,(function*(){this.proxy.$setVisible(e,t)}))}dispose(){super.dispose(),this.treeItemId2TreeNode.clear()}}t.TreeViewDataProvider=y},18937:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(39273),s=i(68767),a=i(34865),c=i(92668);class l{constructor(e,t,i){this.proxy=e,this.handle=t,this.extensionId=i}handleURL(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.extensionId===e.authority&&(yield this.proxy.$handleExternalUri(this.handle,e.codeUri),!0)}))}}let u=class{constructor(){this.projectScheme=a.ClientAppConfigProvider.get().uriScheme,this.extensionUrlHandlers=new Map}open(e){return r.__awaiter(this,void 0,void 0,(function*(){let t=!1;const i=e.authority,r=this.extensionUrlHandlers.get(i);if(r)try{t=yield r.handleURL(e)}catch(e){this.logger.error(e)}return yield this.activationEventService.fireEvent("onUri",i),t}))}handleScheme(e){return e===this.projectScheme}registerExtensionHandler(e,t,i){const r=new l(i,e,t);return this.extensionUrlHandlers.set(t,r),{dispose:()=>{this.extensionUrlHandlers.delete(t)}}}dispose(){this.extensionUrlHandlers.clear()}};r.__decorate([n.Autowired(a.ILogger),r.__metadata("design:type",Object)],u.prototype,"logger",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",c.IActivationEventService)],u.prototype,"activationEventService",void 0),u=r.__decorate([n.Injectable()],u);let d=class{constructor(e){this.handlers=new Map,this.proxy=e.getProxy(s.ExtHostAPIIdentifier.ExtHostUrls),this.openerService.registerOpener(this.extensionOpener)}$registerUriHandler(e,t){return r.__awaiter(this,void 0,void 0,(function*(){this.handlers.set(e,this.extensionOpener.registerExtensionHandler(e,t,this.proxy))}))}$unregisterUriHandler(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=this.handlers.get(e);t&&(t.dispose(),this.handlers.delete(e))}))}dispose(){this.handlers.clear(),this.extensionOpener.dispose()}};r.__decorate([n.Autowired(a.IOpenerService),r.__metadata("design:type",Object)],d.prototype,"openerService",void 0),r.__decorate([n.Autowired(u),r.__metadata("design:type",u)],d.prototype,"extensionOpener",void 0),d=r.__decorate([n.Injectable({multiple:!0}),r.__param(0,n.Optinal(o.IRPCProtocol)),r.__metadata("design:paramtypes",[Object])],d),t.MainThreadUrls=d},88587:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(39273),i(68767)),o=i(19745);let s=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostWindowState),this.blurHandler=()=>{this.proxy.$setWindowState(!1)},this.focusHandler=()=>{this.proxy.$setWindowState(!0)},window.addEventListener("blur",this.blurHandler),window.addEventListener("focus",this.focusHandler)}dispose(){window.removeEventListener("blur",this.blurHandler),window.removeEventListener("focus",this.focusHandler)}};s=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],s),t.MainThreadWindowState=s},22381:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(39273),i(68767)),o=i(19745),s=i(34865),a=i(92224);let c=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostWindow)}getDefaultDialogOptions(e){return Object.assign(Object.assign({},e),{defaultUri:e.defaultUri?s.URI.from(e.defaultUri):void 0})}$showOpenDialog(e,t={}){return r.__awaiter(this,void 0,void 0,(function*(){const i=this.getDefaultDialogOptions(t),r=yield this.windowDialogService.showOpenDialog(i);this.proxy.$onOpenDialogResult(e,r?r.map((e=>e.codeUri)):r)}))}$showSaveDialog(e,t={}){return r.__awaiter(this,void 0,void 0,(function*(){const i=this.getDefaultDialogOptions(t),r=yield this.windowDialogService.showSaveDialog(i);this.proxy.$onSaveDialogResult(e,r?r.codeUri:r)}))}dispose(){}};r.__decorate([o.Autowired(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],c.prototype,"injector",void 0),r.__decorate([o.Autowired(a.IDialogService),r.__metadata("design:type",Object)],c.prototype,"dialogService",void 0),r.__decorate([o.Autowired(a.IWindowDialogService),r.__metadata("design:type",Object)],c.prototype,"windowDialogService",void 0),c=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optional(Symbol())),r.__metadata("design:paramtypes",[Object])],c),t.MainThreadWindow=c},77850:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=(i(39273),i(68767)),o=i(19745),s=i(5778),a=i(34865),c=i(39154),l=i(76067),u=i(84859),d=i(86814);let h=class extends a.WithEventBus{constructor(e){super(),this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.ExtHostAPIIdentifier.ExtHostWorkspace),this.processWorkspaceFoldersChanged(this.workspaceService.tryGetRoots()),this.workspaceChangeEvent=this.workspaceService.onWorkspaceChanged((e=>{this.processWorkspaceFoldersChanged(e)})),this.storageProxy=e.getProxy(n.ExtHostAPIIdentifier.ExtHostStorage)}$startFileSearch(e,t,i,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r={rootUris:t.cwd?[t.cwd]:this.workspaceService.tryGetRoots().map((e=>e.uri)),excludePatterns:i?[i]:void 0,limit:n,includePatterns:[e]};return yield this.fileSearchService.find("",r)}))}isAnyRootChanged(e){return!this.roots||this.roots.length!==e.length||this.roots.some(((t,i)=>t.uri!==e[i].uri))}processWorkspaceFoldersChanged(e){return r.__awaiter(this,void 0,void 0,(function*(){if(!1===this.isAnyRootChanged(e))return;this.roots=e,this.proxy.$onWorkspaceFoldersChanged({roots:e});const t=yield this.extensionStorageService.getAll(!1);this.storageProxy.$updateWorkspaceStorageData(t)}))}dispose(){this.workspaceChangeEvent.dispose()}$updateWorkspaceFolders(e,t,i,...n){return r.__awaiter(this,void 0,void 0,(function*(){yield this.workspaceService.spliceRoots(e,t,i,...n.map((e=>new a.URI(e))))}))}$tryApplyWorkspaceEdit(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=n.reviveWorkspaceEditDto(e);try{return yield this.workspaceEditService.apply(t),!0}catch(e){return!1}}))}$saveAll(){return r.__awaiter(this,void 0,void 0,(function*(){try{return yield this.editorService.saveAll(),!0}catch(e){return this.logger.error(e),!1}}))}onRenameFile(e){this.proxy.$didRenameFile(e.payload.oldUri.codeUri,e.payload.newUri.codeUri)}};r.__decorate([o.Autowired(s.IWorkspaceService),r.__metadata("design:type",Object)],h.prototype,"workspaceService",void 0),r.__decorate([o.Autowired(u.WorkbenchEditorService),r.__metadata("design:type",u.WorkbenchEditorService)],h.prototype,"editorService",void 0),r.__decorate([o.Autowired(d.FileSearchServicePath),r.__metadata("design:type",Object)],h.prototype,"fileSearchService",void 0),r.__decorate([o.Autowired(c.IExtensionStorageService),r.__metadata("design:type",Object)],h.prototype,"extensionStorageService",void 0),r.__decorate([o.Autowired(l.IWorkspaceEditService),r.__metadata("design:type",Object)],h.prototype,"workspaceEditService",void 0),r.__decorate([o.Autowired(a.ILogger),r.__metadata("design:type",Object)],h.prototype,"logger",void 0),r.__decorate([a.OnEvent(l.WorkspaceEditDidRenameFileEvent),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[l.WorkspaceEditDidRenameFileEvent]),r.__metadata("design:returntype",void 0)],h.prototype,"onRenameFile",null),h=r.__decorate([o.Injectable({multiple:!0}),r.__param(0,o.Optinal(Symbol())),r.__metadata("design:paramtypes",[Object])],h),t.MainThreadWorkspace=h},2601:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(44527);function o(e){if(e instanceof Uint8Array)return e;if(Array.isArray(e))return Uint8Array.from(e);const t=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(Number(e[i]));return Uint8Array.from(t)}t.DocumentSemanticTokensProvider=class{constructor(e,t,i){this.proxy=e,this.handleId=t,this.legend=i}getLegend(){return this.legend}provideDocumentSemanticTokens(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=t?parseInt(t,10):0,s=yield this.proxy.$provideDocumentSemanticTokens(this.handleId,e.uri,r,i);if(!s)return null;if(i.isCancellationRequested)return null;const a=n.decodeSemanticTokensDto(o(s));return"full"===a.type?{resultId:String(a.id),data:a.data}:{resultId:String(a.id),edits:a.deltas}}))}releaseDocumentSemanticTokens(e){e&&this.proxy.$releaseDocumentSemanticTokens(this.handleId,parseInt(e,10))}};t.DocumentRangeSemanticTokensProviderImpl=class{constructor(e,t,i){this.proxy=e,this.handleId=t,this.legend=i}getLegend(){return this.legend}provideDocumentRangeSemanticTokens(e,t,i){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.proxy.$provideDocumentRangeSemanticTokens(this.handleId,e.uri,t,i);if(!r)return null;if(i.isCancellationRequested)return null;const s=n.decodeSemanticTokensDto(o(r));if("full"===s.type)return{resultId:String(s.id),data:s.data};throw new Error("Unexpected")}))}}},53454:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(55489);let l=r=class extends s.TreeModel{constructor(e){super(),this.flushDispatchChangeDelayer=new a.ThrottledDelayer(r.DEFAULT_FLUSH_DELAY),this.onWillUpdateEmitter=new a.Emitter,this.init(e)}get onWillUpdate(){return this.onWillUpdateEmitter.event}init(e){this.root=e,this.root.watcher.on(s.TreeNodeEvent.BranchDidUpdate,(()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger((()=>n.__awaiter(this,void 0,void 0,(function*(){yield this.onWillUpdateEmitter.fireAndAwait(),this.dispatchChange()}))))}))}};l.DEFAULT_FLUSH_DELAY=100,l=r=n.__decorate([o.Injectable({multiple:!0}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[c.ExtensionTreeRoot])],l),t.ExtensionTreeModel=l},15185:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(88774),a=i(34865),c=i(55489),l=i(7758),u=i(53454),d=i(81457),h=i(43849),p=i(65686);t.IExtensionTreeViewModel=Symbol("IExtensionTreeViewModel"),t.ITreeViewId=Symbol("ITreeViewId"),t.ITreeViewBaseOptions=Symbol("TreeViewBaseOptions");const f=Symbol("ITreeViewDataProvider");let g=r=class{constructor(){this.selectedDecoration=new s.Decoration(l.mod_selected),this.focusedDecoration=new s.Decoration(l.mod_focused),this.contextMenuDecoration=new s.Decoration(l.mod_actived),this.loadingDecoration=new s.Decoration(l.mod_loading),this._selectedNodes=[],this.disposableCollection=new a.DisposableCollection,this.onDidFocusedNodeChangeEmitter=new a.Emitter,this.onDidSelectedNodeChangeEmitter=new a.Emitter,this.onDidChangeExpansionStateEmitter=new a.Emitter,this._isMultiSelected=!1,this.refreshDelayer=new a.ThrottledDelayer(r.DEFAULT_REFRESH_DELAY),this.revealDelayer=new a.ThrottledDelayer(r.DEFAULT_REVEAL_DELAY),this.clearNodeSelectedDecoration=()=>{this._selectedNodes.forEach((e=>{this.selectedDecoration.removeTarget(e)})),this._selectedNodes=[],this.onDidSelectedNodeChangeEmitter.fire([])},this.activeNodeDecoration=e=>{if(e!==this.treeModel.root&&(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),e)){if(this.selectedNodes.length>0)for(const e of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(e);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this.focusedDecoration.addTarget(e),this._focusedNode=e,this._selectedNodes=[e],this.onDidFocusedNodeChangeEmitter.fire(e.treeItemId),this.onDidSelectedNodeChangeEmitter.fire([e.treeItemId]),this.treeModel.dispatchChange()}},this.activeNodeFocusedDecoration=(e,t=!1,i=!1)=>{if(e!==this.treeModel.root){if(this.focusedNode!==e&&(t?(this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this._contextMenuNode=e):this.focusedNode&&(this._contextMenuNode=void 0,this.focusedDecoration.removeTarget(this.focusedNode)),e)){if(i){for(const e of this._selectedNodes)this.selectedDecoration.removeTarget(e);this._selectedNodes=[]}this._selectedNodes.indexOf(e)<0&&(this.selectedDecoration.addTarget(e),this._selectedNodes.push(e),this.onDidSelectedNodeChangeEmitter.fire(this._selectedNodes.map((e=>e.treeItemId)))),this.focusedDecoration.addTarget(e),this._focusedNode=e,this.onDidFocusedNodeChangeEmitter.fire(e.treeItemId)}this.treeModel.dispatchChange()}},this.activeNodeActivedDecoration=e=>{this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(e),this._contextMenuNode=e,this.treeModel.dispatchChange()},this.selectNodeDecoration=(e,t=!0)=>{e!==this.treeModel.root&&(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),e&&(this.selectedNodes.length>0&&this.selectedNodes.forEach((e=>{this.selectedDecoration.removeTarget(e)})),this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(e),this._selectedNodes=[e],this.onDidSelectedNodeChangeEmitter.fire([e.treeItemId]),t&&this.treeModel.dispatchChange()))},this.activeNodeSelectedDecoration=e=>{this._selectedNodes.indexOf(e)>-1||(this._selectedNodes.push(e),this.selectedDecoration.addTarget(e),this.onDidSelectedNodeChangeEmitter.fire(this._selectedNodes.map((e=>e.treeItemId))),this.treeModel.dispatchChange())},this.activeNodeDecorationByRange=(e,t)=>{for(this.clearNodeSelectedDecoration(),this._contextMenuNode=void 0;e<=t;e++){const t=this.treeModel.root.getTreeNodeAtIndex(e);t&&(this._selectedNodes.push(t),this.selectedDecoration.addTarget(t))}this.onDidSelectedNodeChangeEmitter.fire(this._selectedNodes.map((e=>e.treeItemId))),this.treeModel.dispatchChange()},this.enactiveNodeDecoration=()=>{var e;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this.onDidFocusedNodeChangeEmitter.fire(),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),null===(e=this.treeModel)||void 0===e||e.dispatchChange()},this.toggleDirectory=e=>n.__awaiter(this,void 0,void 0,(function*(){e.expanded?this.extensionTreeHandle.collapseNode(e):this.extensionTreeHandle.expandNode(e)})),this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleTreeFocus=()=>{},this.handleItemRangeClick=(e,t)=>{if(this.focusedNode){if(this.focusedNode&&this.focusedNode!==e){this._isMultiSelected=!0;const t=this.treeModel.root.getIndexAtTreeNode(e),i=this.treeModel.root.getIndexAtTreeNode(this.focusedNode);i>t?this.activeNodeDecorationByRange(t,i):i{this._isMultiSelected=!0,t!==s.TreeNodeType.CompositeTreeNode&&t!==s.TreeNodeType.TreeNode||(this.selectedNodes.indexOf(e)>-1?this.focusedNode===e?this.enactiveNodeDecoration():this.activeNodeFocusedDecoration(e):this.activeNodeSelectedDecoration(e))},this.handleItemClick=(e,t)=>{this._isMultiSelected=!1,t!==s.TreeNodeType.CompositeTreeNode&&t!==s.TreeNodeType.TreeNode||this.activeNodeDecoration(e),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]):(this.clickTimes++,t===s.TreeNodeType.CompositeTreeNode&&"singleClick"===this.preferenceService.get("workbench.list.openMode")&&this.toggleDirectory(e),this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=setTimeout((()=>{this.clickTimes>1&&t!==s.TreeNodeType.TreeNode&&"doubleClick"===this.preferenceService.get("workbench.list.openMode")&&this.toggleDirectory(e),this.clickTimes=0}),200))},this.handleContextMenu=(e,t)=>{e.stopPropagation(),e.preventDefault();const{x:i,y:r}=e.nativeEvent;let n,o;t?this.activeNodeActivedDecoration(t):this.enactiveNodeDecoration(),t?(o=t,n=this._isMultiSelected?this.selectedNodes.indexOf(o)>=0?this._isMultiSelected?this.selectedNodes:[o]:this._isMultiSelected?this.selectedNodes.concat([o]):[o]:[o]):(n=[this.treeModel.root],o=this.treeModel.root);const s=this.getCtxMenuNodes(o.contextValue);this.injector.get(h.ICtxMenuRenderer).show({anchor:{x:i,y:r},menuNodes:s,args:[{treeViewId:this.treeViewId,treeItemId:o.treeItemId},n.map((e=>({treeViewId:this.treeViewId,treeItemId:e.treeItemId})))]})},this._whenReady=this.initTreeModel()}static createContainer(e,i,n,o){return e.createChild([{token:f,useValue:i},{token:t.IExtensionTreeViewModel,useClass:r},{token:t.ITreeViewId,useValue:n},{token:t.ITreeViewBaseOptions,useValue:o}])}static createModel(e,i,n,o){return r.createContainer(e,i,n,o).get(t.IExtensionTreeViewModel)}get onDidFocusedNodeChange(){return this.onDidFocusedNodeChangeEmitter.event}get onDidChangeExpansionState(){return this.onDidChangeExpansionStateEmitter.event}get onDidSelectedNodeChange(){return this.onDidSelectedNodeChangeEmitter.event}get extensionTreeHandle(){return this._extensionTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._treeModel}get whenReady(){return this._whenReady}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}initTreeModel(){return n.__awaiter(this,void 0,void 0,(function*(){const e=(yield this.treeViewDataProvider.resolveChildren())[0];this._treeModel=this.injector.get(u.ExtensionTreeModel,[e]),this.initDecorations(e),this.disposableCollection.push(this.treeViewDataProvider),this.disposableCollection.push(this.treeModel.root.watcher.on(s.TreeNodeEvent.WillResolveChildren,(e=>{this.loadingDecoration.addTarget(e)}))),this.disposableCollection.push(this.treeModel.root.watcher.on(s.TreeNodeEvent.DidResolveChildren,(e=>{this.loadingDecoration.removeTarget(e)}))),this.disposableCollection.push(this.treeModel.root.watcher.on(s.TreeNodeEvent.DidChangeExpansionState,((e,t)=>{this.onDidChangeExpansionStateEmitter.fire({treeItemId:e.treeItemId,expanded:t})}))),this.disposableCollection.push(this.treeViewDataProvider.onTreeDataChanged((e=>{this.refresh(e)}))),this.disposableCollection.push(this.treeViewDataProvider.onRevealChanged((e=>{this.reveal(e)}))),this.disposableCollection.push(this.treeViewDataProvider.onRevealChanged((e=>{this.reveal(e)}))),this.disposableCollection.push(this.treeModel.onWillUpdate((()=>{var e;if(0!==this.selectedNodes.length){const t=null===(e=this.treeModel)||void 0===e?void 0:e.root.getTreeNodeByPath(this.selectedNodes[0].path);this.selectedDecoration.addTarget(t)}})))}))}updateTreeModel(){return n.__awaiter(this,void 0,void 0,(function*(){const e=yield this.treeViewDataProvider.resolveChildren()[0];this._treeModel=this.injector.get(u.ExtensionTreeModel,[e])}))}initDecorations(e){this._decorations=new s.DecorationsManager(e),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(e){this._extensionTreeHandle=e}getCtxMenuNodes(e){return this.getMenuNodes(e)[1]}getMenuNodes(e){const t=this.contextKeyService.createScoped();t.createKey("view",this.treeViewId),t.createKey("viewItem",e);const i=this.menuService.createMenu(h.MenuId.ViewItemContext,t),r=h.generateCtxMenu({menus:i,separator:"inline"});return i.dispose(),t.dispose(),r}getInlineMenuNodes(e){return this.getMenuNodes(e)[0]}collapseAll(){this.treeModel.root.collapsedAll()}refresh(e){return n.__awaiter(this,void 0,void 0,(function*(){return yield this.whenReady,this.refreshDelayer.isTriggered()?this.refreshDeferred&&(yield this.refreshDeferred.promise):this.refreshDelayer.cancel(),this.refreshDelayer.trigger((()=>n.__awaiter(this,void 0,void 0,(function*(){var t,i;if(this.refreshDeferred=new a.Deferred,e){const t=this.treeViewDataProvider.getTreeNodeIdByTreeItemId(e.id);if(!t)return;const r=this.treeModel.root.getTreeNodeById(t);if(!r)return;let n;c.ExtensionCompositeTreeNode.is(r)?n=r.path:r.parent&&(n=r.parent.path);const o=null===(i=this.treeModel.root)||void 0===i?void 0:i.watchEvents.get(n);o&&"function"==typeof o.callback&&(yield o.callback({type:s.WatchEvent.Changed,path:n}))}else null===(t=this.treeModel.root)||void 0===t||t.refresh();this.refreshDeferred.resolve(),this.refreshDeferred=null}))))}))}reveal(e,t={}){return n.__awaiter(this,void 0,void 0,(function*(){return yield this.whenReady,this.revealDelayer.isTriggered()?this.revealDeferred&&(yield this.revealDeferred.promise):this.revealDelayer.cancel(),this.revealDelayer.trigger((()=>n.__awaiter(this,void 0,void 0,(function*(){this.revealDeferred=new a.Deferred,0===this.treeModel.root.branchSize&&(yield this.refresh());const i=this.treeViewDataProvider.getTreeNodeIdByTreeItemId(e);if(!i)return;const r=this.treeModel.root.getTreeNodeById(i);if(!r)return;const n=!p.isUndefinedOrNull(t.select)&&t.select,o=!p.isUndefinedOrNull(t.focus)&&t.focus;let s=Math.min(p.isNumber(t.expand)?t.expand:!0===t.expand?1:0,3),l=yield this.extensionTreeHandle.ensureVisible(r.path);for(l&&(n&&this.selectNodeDecoration(l),o&&this.activeNodeFocusedDecoration(l,!1,!0));c.ExtensionCompositeTreeNode.is(l)&&l.branchSize>0&&s>0;s--)yield this.extensionTreeHandle.expandNode(l),l=(null==l?void 0:l.children)?null==l?void 0:l.children[0]:void 0;this.revealDeferred.resolve(),this.revealDeferred=null}))))}))}};g.DEFAULT_REVEAL_DELAY=500,g.DEFAULT_REFRESH_DELAY=500,n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],g.prototype,"injector",void 0),n.__decorate([o.Autowired(f),n.__metadata("design:type",d.TreeViewDataProvider)],g.prototype,"treeViewDataProvider",void 0),n.__decorate([o.Autowired(a.PreferenceService),n.__metadata("design:type",Object)],g.prototype,"preferenceService",void 0),n.__decorate([o.Autowired(t.ITreeViewId),n.__metadata("design:type",String)],g.prototype,"treeViewId",void 0),n.__decorate([o.Autowired(t.ITreeViewBaseOptions),n.__metadata("design:type",Object)],g.prototype,"treeViewOptions",void 0),n.__decorate([o.Autowired(h.AbstractMenuService),n.__metadata("design:type",h.AbstractMenuService)],g.prototype,"menuService",void 0),n.__decorate([o.Autowired(a.IContextKeyService),n.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),n.__decorate([o.Autowired(a.CommandService),n.__metadata("design:type",Object)],g.prototype,"commandService",void 0),g=r=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[])],g),t.ExtensionTreeViewModel=g},55489:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(88774);class n extends r.CompositeTreeNode{constructor(e,t=""){super(e,void 0),this.treeViewId=t}static is(e){return!!e&&"children"in e&&!e.parent}get treeItemId(){return`TreeViewRoot_${this.treeViewId}`}get name(){return`TreeViewRoot_${this.id}`}get expanded(){return!0}get displayName(){return this._displayName||this.name}dispose(){super.dispose()}}t.ExtensionTreeRoot=n;class o extends r.CompositeTreeNode{constructor(e,t,i="",n="",o="",s="",a,c="",l="",u,d,h,p){super(e,t,void 0,{name:i},{disableCache:!0}),this.description=n,this.icon=o,this.tooltip=s,this.command=a,this.contextValue=c,this.treeItemId=l,this.actions=u,this._accessibilityInformation=d,h&&(this._whenReady=this.setExpanded()),this._uid=p||this._uid,this.name=String(this._uid),i?(this._displayName=i,r.TreeNode.setTreeNode(this._uid,this.path,this)):r.TreeNode.setTreeNode(this._uid,this.path,this)}get displayName(){return this._displayName}get whenReady(){return this._whenReady}get accessibilityInformation(){var e,t;return{role:(null===(e=this._accessibilityInformation)||void 0===e?void 0:e.role)||"treeitem",label:(null===(t=this._accessibilityInformation)||void 0===t?void 0:t.label)||this.displayName}}dispose(){super.dispose()}}t.ExtensionCompositeTreeNode=o;class s extends r.TreeNode{constructor(e,t,i="",n="",o="",s="",a,c="",l="",u,d,h){super(e,t,void 0,{name:i},{disableCache:!0}),this.description=n,this.icon=o,this.tooltip=s,this.command=a,this.contextValue=c,this.treeItemId=l,this.actions=u,this._accessibilityInformation=d,this._uid=h||this._uid,i?(this._displayName=i,r.TreeNode.setTreeNode(this._uid,this.path,this)):(this.name=String(this._uid),r.TreeNode.setTreeNode(this._uid,this.path,this))}get displayName(){return this._displayName}get accessibilityInformation(){var e,t;return{role:(null===(e=this._accessibilityInformation)||void 0===e?void 0:e.role)||"treeitem",label:(null===(t=this._accessibilityInformation)||void 0===t?void 0:t.label)||this.displayName}}}t.ExtensionTreeNode=s},81401:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(63446),n=i(34865),o=i(60481);t.SET_CONTEXT={id:"setContext"},t.WORKBENCH_CLOSE_ACTIVE_EDITOR={id:"workbench.action.closeActiveEditor",delegate:n.EDITOR_COMMANDS.CLOSE.id},t.REVERT_AND_CLOSE_ACTIVE_EDITOR={id:"workbench.action.revertAndCloseActiveEditor",delegate:n.EDITOR_COMMANDS.REVERT_AND_CLOSE.id},t.SPLIT_EDITOR_RIGHT={id:"workbench.action.splitEditorRight",delegate:n.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id},t.SPLIT_EDITOR_DOWN={id:"workbench.action.splitEditorDown",delegate:n.EDITOR_COMMANDS.SPLIT_TO_BOTTOM.id},t.NEW_UNTITLED_FILE={id:"workbench.action.files.newUntitledFile",delegate:n.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id},t.CLOSE_ALL_EDITORS={id:"workbench.action.closeAllEditors",delegate:n.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP.id},t.CLOSE_OTHER_EDITORS={id:"workbench.action.closeOtherEditors",delegate:n.EDITOR_COMMANDS.CLOSE_OTHER_IN_GROUP.id},t.FILE_SAVE={id:"workbench.action.files.save",delegate:n.EDITOR_COMMANDS.SAVE_CURRENT.id},t.SPLIT_EDITOR={id:"workbench.action.splitEditor",delegate:n.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id},t.SPLIT_EDITOR_ORTHOGONAL={id:"workbench.action.splitEditorOrthogonal",delegate:n.EDITOR_COMMANDS.SPLIT_TO_BOTTOM.id},t.NAVIGATE_LEFT={id:"workbench.action.navigateLeft",delegate:n.EDITOR_COMMANDS.NAVIGATE_LEFT.id},t.NAVIGATE_UP={id:"workbench.action.navigateUp",delegate:n.EDITOR_COMMANDS.NAVIGATE_UP.id},t.NAVIGATE_RIGHT={id:"workbench.action.navigateRight",delegate:n.EDITOR_COMMANDS.NAVIGATE_RIGHT.id},t.NAVIGATE_DOWN={id:"workbench.action.navigateDown",delegate:n.EDITOR_COMMANDS.NAVIGATE_DOWN.id},t.NAVIGATE_NEXT={id:"workbench.action.navigateEditorGroups",delegate:n.EDITOR_COMMANDS.NAVIGATE_NEXT.id},t.NEXT_EDITOR={id:"workbench.action.nextEditor",delegate:n.EDITOR_COMMANDS.NEXT.id},t.PREVIOUS_EDITOR={id:"workbench.action.previousEditor",delegate:n.EDITOR_COMMANDS.PREVIOUS.id},t.PREVIOUS_EDITOR_IN_GROUP={id:"workbench.action.previousEditorInGroup",delegate:n.EDITOR_COMMANDS.PREVIOUS_IN_GROUP.id},t.NEXT_EDITOR_IN_GROUP={id:"workbench.action.nextEditorInGroup",delegate:n.EDITOR_COMMANDS.NEXT_IN_GROUP.id},t.LAST_EDITOR_IN_GROUP={id:"workbench.action.lastEditorInGroup",delegate:n.EDITOR_COMMANDS.LAST_IN_GROUP.id},t.EVEN_EDITOR_WIDTH={id:"workbench.action.eventEditorWidths",delegate:n.EDITOR_COMMANDS.EVEN_EDITOR_GROUPS.id},t.CLOSE_OTHER_GROUPS={id:"workbench.action.closeEditorsInOtherGroups",delegate:n.EDITOR_COMMANDS.EVEN_EDITOR_GROUPS.id},t.OPEN_EDITOR_AT_INDEX={id:"workbench.action.openEditorAtIndex",delegate:n.EDITOR_COMMANDS.OPEN_EDITOR_AT_INDEX.id},t.REVERT_FILES={id:"workbench.action.files.revert",delegate:n.EDITOR_COMMANDS.REVERT_DOCUMENT.id},t.TOGGLE_WORKBENCH_VIEW_TERMINAL={id:"workbench.action.terminal.toggleTerminal",delegate:"workbench.view.terminal"},t.WORKBENCH_FOCUS_FILES_EXPLORER={id:"workbench.files.action.focusFilesExplorer",delegate:n.FILE_COMMANDS.FOCUS_FILES.id},t.WORKBENCH_FOCUS_ACTIVE_EDITOR_GROUP={id:"workbench.action.focusActiveEditorGroup",delegate:n.EDITOR_COMMANDS.FOCUS_ACTIVE_EDITOR_GROUP.id},t.OPEN={id:"vscode.open"},t.OPEN_FOLDER={id:"vscode.openFolder",delegate:n.FILE_COMMANDS.VSCODE_OPEN_FOLDER.id},t.DIFF={id:"vscode.diff"},t.RELOAD_WINDOW_COMMAND={id:"reload_window"},t.RELOAD_WINDOW={id:"workbench.action.reloadWindow",delegate:t.RELOAD_WINDOW_COMMAND.id},t.SHOW_RUN_TIME_EXTENSION={id:"workbench.action.showRuntimeExtensions",label:"Show Running Extensions"},t.START_EXTENSION_HOST_PROFILER={id:"workbench.action.extensionHostProfiler.start",label:"Start Extension Host Profile"},t.STOP_EXTENSION_HOST_PROFILER={id:"workbench.action.extensionHostProfiler.stop",label:"Stop Extension Host Profile"},t.CLEAR_TERMINAL={id:"workbench.action.terminal.clear",delegate:r.TERMINAL_COMMANDS.CLEAR_CONTENT.id},t.COPY_FILE_PATH={id:"copyFilePath",label:n.FILE_COMMANDS.COPY_PATH.label},t.COPY_RELATIVE_FILE_PATH={id:"copyRelativeFilePath",label:n.FILE_COMMANDS.COPY_RELATIVE_PATH.label},t.SETTINGS_COMMAND_OPEN_SETTINGS={id:"workbench.action.openSettings",delegate:"core.openpreference"},t.EDITOR_NAVIGATE_BACK={id:"workbench.action.navigateBack",delegate:n.EDITOR_COMMANDS.GO_BACK.id},t.EDITOR_NAVIGATE_FORWARD={id:"workbench.action.navigateForward",delegate:n.EDITOR_COMMANDS.GO_FORWARD.id},t.EDITOR_SAVE_ALL={id:"workbench.action.files.saveAll",delegate:n.EDITOR_COMMANDS.SAVE_ALL.id},t.DEBUG_COMMAND_STEP_INTO={id:"workbench.action.debug.stepInto",delegate:o.DEBUG_COMMANDS.NEXT.id},t.DEBUG_COMMAND_STEP_OVER={id:"workbench.action.debug.stepOver",delegate:o.DEBUG_COMMANDS.OVER.id},t.DEBUG_COMMAND_STEP_OUT={id:"workbench.action.debug.stepOut",delegate:o.DEBUG_COMMANDS.PREV.id},t.DEBUG_COMMAND_CONTINUE={id:"workbench.action.debug.continue",delegate:o.DEBUG_COMMANDS.CONTINUE.id},t.DEBUG_COMMAND_RUN={id:"workbench.action.debug.run",delegate:o.DEBUG_COMMANDS.START.id},t.DEBUG_COMMAND_START={id:"workbench.action.debug.start",delegate:o.DEBUG_COMMANDS.START.id},t.DEBUG_COMMAND_PAUSE={id:"workbench.action.debug.pause",delegate:o.DEBUG_COMMANDS.PAUSE.id},t.DEBUG_COMMAND_RESTART={id:"workbench.action.debug.restart",delegate:o.DEBUG_COMMANDS.RESTART.id},t.DEBUG_COMMAND_STOP={id:"workbench.action.debug.stop",delegate:o.DEBUG_COMMANDS.STOP.id},t.EDITOR_SHOW_ALL_SYMBOLS={id:"workbench.action.showAllSymbols",delegate:n.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id},t.REVEAL_IN_EXPLORER={id:"revealInExplorer",delegate:n.FILE_COMMANDS.REVEAL_IN_EXPLORER.id}},30059:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(28861),a=i(34865),c=i(23524);let l=class extends n.VSCodeContributePoint{contribute(){this.register(this.json)}register(e){const t=this,i=[];for(const r of e){const{title:e,description:n}=r;switch(r.type){case"action":i.push({title:e,description:n,iconClass:a.getIcon(r.icon),click:()=>{r.command&&t.commandService.executeCommand(r.command)},type:r.type});break;case"enum":i.push({type:r.type,title:e,description:n,select:e=>{r.command&&t.commandService.executeCommand(r.command,e)},enum:r.enum,defaultValue:r.defaultValue})}}this.addDispose(this.toolbarActionService.registryActionGroup(this.extension.id,i))}unregister(){this.toolbarActionService.unRegistryActionGroup(this.extension.id)}dispose(){this.unregister()}};r.__decorate([o.Autowired(s.IToolBarViewService),r.__metadata("design:type",s.IToolBarViewService)],l.prototype,"toolbarViewService",void 0),r.__decorate([o.Autowired(a.CommandService),r.__metadata("design:type",Object)],l.prototype,"commandService",void 0),r.__decorate([o.Autowired(c.IToolbarActionService),r.__metadata("design:type",Object)],l.prototype,"toolbarActionService",void 0),l=r.__decorate([o.Injectable(),n.Contributes("actions")],l),t.ActionsContributionPoint=l},23574:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(47641);let a=class extends n.VSCodeContributePoint{contribute(){this.register(this.json)}register(e){e.forEach((e=>{this.debugConfigurationManager.addSupportBreakpoints(e.language)}))}unregister(e){e.forEach((e=>{this.debugConfigurationManager.removeSupportBreakpoints(e.language)}))}dispose(){this.unregister(this.json)}};r.__decorate([o.Autowired(s.DebugConfigurationManager),r.__metadata("design:type",s.DebugConfigurationManager)],a.prototype,"debugConfigurationManager",void 0),a=r.__decorate([o.Injectable(),n.Contributes("breakpoints")],a),t.BreakpointsContributionPoint=a},52911:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(64994),a=i(34865);let c=class extends n.VSCodeContributePoint{constructor(){super(...arguments),this.schema={description:a.localize("contributes.color","Contributes extension defined themable colors"),type:"array",items:{type:"object",properties:{id:{type:"string",description:a.localize("contributes.color.id","The identifier of the themable color"),pattern:"^\\w+[.\\w+]*$",patternErrorMessage:a.localize("contributes.color.id.format","Identifiers should be in the form aa[.bb]*")},description:{type:"string",description:a.localize("contributes.color.description","The description of the themable color")},defaults:{type:"object",properties:{light:{description:a.localize("contributes.defaults.light","The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default."),type:"string",anyOf:[{type:"string",format:"color-hex"}]},dark:{description:a.localize("contributes.defaults.dark","The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default."),type:"string",anyOf:[{type:"string",format:"color-hex"}]},highContrast:{description:a.localize("contributes.defaults.highContrast","The default color for high contrast themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default."),type:"string",anyOf:[{type:"string",format:"color-hex"}]}}}}}}}contribute(){const e=this.json;for(const t of e)t&&t.description&&(t.description=a.replaceLocalizePlaceholder(t.description)),this.themeService.registerColor(t)}};r.__decorate([o.Autowired(s.IThemeService),r.__metadata("design:type",Object)],c.prototype,"themeService",void 0),c=r.__decorate([o.Injectable(),n.Contributes("colors")],c),t.ColorsContributionPoint=c},68636:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(34865),a=i(64994);let c=class extends n.VSCodeContributePoint{contribute(){return r.__awaiter(this,void 0,void 0,(function*(){this.json.forEach((e=>{this.addDispose(this.commandRegistry.registerCommand({category:this.getLocalizeFromNlsJSON(e.category),label:this.getLocalizeFromNlsJSON(e.title),id:e.command,iconClass:"string"==typeof e.icon&&this.iconService.fromString(e.icon)||this.iconService.fromIcon(this.extension.path,e.icon,a.IconType.Background),enablement:e.enablement},{execute:(...t)=>this.extensionService.executeExtensionCommand(e.command,t)})),this.config.noExtHost?this.addDispose(this.extensionCommandManager.registerExtensionCommandEnv(e.command,"worker")):this.addDispose(this.extensionCommandManager.registerExtensionCommandEnv(e.command,"node"))}))}))}};r.__decorate([o.Autowired(s.CommandRegistry),r.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),r.__decorate([o.Autowired(n.ExtensionService),r.__metadata("design:type",n.ExtensionService)],c.prototype,"extensionService",void 0),r.__decorate([o.Autowired(n.IExtCommandManagement),r.__metadata("design:type",n.IExtCommandManagement)],c.prototype,"extensionCommandManager",void 0),r.__decorate([o.Autowired(a.IIconService),r.__metadata("design:type",Object)],c.prototype,"iconService",void 0),r.__decorate([o.Autowired(s.AppConfig),r.__metadata("design:type",Object)],c.prototype,"config",void 0),c=r.__decorate([o.Injectable(),n.Contributes("commands")],c),t.CommandsContributionPoint=c},9194:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(65686);t.CONTRIBUTE_NAME_KEY="contribute_name";class n extends r.Disposable{constructor(e,t,i){super(),this.json=e,this.contributes=t,this.extension=i}}t.VscodeContributionPoint=n,t.Contributes=function(e){return i=>{Reflect.defineMetadata(t.CONTRIBUTE_NAME_KEY,e,i)}}},91557:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(34865);let a=class extends n.VSCodeContributePoint{contribute(){let e=this.json,t={};Array.isArray(e)||(e=[e]);for(const i of e)if(i&&i.properties){for(const e of Object.keys(i.properties))t[e]=i.properties[e],i.properties[e].description&&(t[e].description=s.replaceLocalizePlaceholder(i.properties[e].description,this.extension.id));i.properties=t,i.title=s.replaceLocalizePlaceholder(i.title,this.extension.id)||this.extension.packageJSON.name,this.updateConfigurationSchema(i),this.preferenceSettingsService.registerSettingSection("extension",{title:i.title,preferences:Object.keys(i.properties)}),t={}}}updateConfigurationSchema(e){this.validateConfigurationSchema(e),this.preferenceSchemaProvider.setSchema(e)}validateConfigurationSchema(e){for(const t in e.properties){const i=e.properties[t];if("string[]"===i.type&&(i.type="array"),"object"!==i.type)continue;void 0===i.default&&this.validateDefaultValue(i);const r=i.properties;if(r)for(const e in r)"object"!=typeof r[e]&&delete r[e]}}validateDefaultValue(e){e.default={};const t=e.properties;if(t)for(const i in t)t[i].default&&(e.default[i]=t[i].default,delete t[i].default)}};r.__decorate([o.Autowired(s.PreferenceSchemaProvider),r.__metadata("design:type",s.PreferenceSchemaProvider)],a.prototype,"preferenceSchemaProvider",void 0),r.__decorate([o.Autowired(s.IPreferenceSettingsService),r.__metadata("design:type",Object)],a.prototype,"preferenceSettingsService",void 0),r.__decorate([o.Autowired(s.PreferenceService),r.__metadata("design:type",Object)],a.prototype,"preferenceService",void 0),a=r.__decorate([o.Injectable(),n.Contributes("configuration")],a),t.ConfigurationContributionPoint=a},48105:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(34865);let a=class extends n.VSCodeContributePoint{contribute(){const e=this.json;e&&this.updateDefaultOverridesSchema(e)}updateDefaultOverridesSchema(e){for(const t in e){const i=e[t];if(s.OVERRIDE_PROPERTY_PATTERN.test(t)){const e=t.match(s.OVERRIDE_PROPERTY_PATTERN)[1];Object.keys(i).forEach((t=>{this.defaultPreferenceProvider.setPreference(t,i[t],void 0,e)}))}}}};r.__decorate([o.Autowired(s.PreferenceProvider,{tag:s.PreferenceScope.Default}),r.__metadata("design:type",s.PreferenceProvider)],a.prototype,"defaultPreferenceProvider",void 0),a=r.__decorate([o.Injectable(),n.Contributes("configurationDefaults")],a),t.ConfigurationDefaultsContributionPoint=a},26947:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(58407),a=i(63804),c=i(34865),l=i(92668),u=i(65686),d=i(48904),h=i(66164),p=i(69271),f=i(98865);let g=class extends n.VSCodeContributePoint{constructor(){super(...arguments),this.options=new Map}contribute(){(this.json||[]).forEach((e=>{this.registerSingleCustomEditor(e)})),this.addDispose(this.eventBus.on(h.CustomEditorOptionChangeEvent,(e=>{this.options.has(e.payload.viewType)&&this.options.set(e.payload.viewType,e.payload.options)})))}getOptions(e){return this.options.get(e)||{}}registerSingleCustomEditor(e){try{const t=e.viewType;this.options.set(e.viewType,{});const i="vscode_customEditor_"+e.viewType,r=m(e.viewType,i,(()=>this.getOptions(e.viewType)));this.addDispose(this.editorComponentRegistry.registerEditorComponent({uid:i,component:r}));const n=e.selector.map((e=>e.filenamePattern)).filter((e=>"string"==typeof e));if(0===n.length)return;const o=e.priority||"default";this.addDispose(this.editorComponentRegistry.registerEditorComponentResolver((()=>10),((r,s)=>{for(const a of n)(f.match(a,r.uri.path.toString().toLowerCase())||f.match(a,r.uri.path.base.toLowerCase()))&&s.push({componentId:i,type:"component",title:e.displayName?this.getLocalizeFromNlsJSON(e.displayName):e.viewType,weight:"default"===o?Number.MAX_SAFE_INTEGER:0,saveResource:e=>this.eventBus.fireAndAwait(new h.CustomEditorShouldSaveEvent({uri:e.uri,viewType:t,cancellationToken:(new u.CancellationTokenSource).token})),revertResource:e=>this.eventBus.fireAndAwait(new h.CustomEditorShouldRevertEvent({uri:e.uri,viewType:t,cancellationToken:(new u.CancellationTokenSource).token})),undo:e=>this.eventBus.fireAndAwait(new h.CustomEditorShouldEditEvent({uri:e.uri,viewType:t,type:"undo"})),redo:e=>this.eventBus.fireAndAwait(new h.CustomEditorShouldEditEvent({uri:e.uri,viewType:t,type:"redo"}))})})))}catch(e){this.logger.error(e)}}};function m(e,t,i){return({resource:r})=>{const o=c.useInjectable(l.IActivationEventService),s=c.useInjectable(d.IWebviewService),f=c.useInjectable(c.IEventBus),g=c.useInjectable(n.ExtensionService);let m=null;return a.useEffect((()=>{const n=new u.CancellationTokenSource,a=new u.Disposable;return Promise.all([o.fireEvent("onCustomEditor",e),g.eagerExtensionsActivated.promise]).then((()=>{if(n.token.isCancellationRequested)return;const o=s.createWebview(i().webviewOptions);if(o&&m){const i=new p.WebviewMounter(o,m,document.getElementById("workbench-editor"),document.getElementById("workbench-editor"));o.onRemove((()=>{i.dispose()})),a.addDispose({dispose:()=>{o.remove(),o.dispose(),f.fire(new h.CustomEditorShouldHideEvent({uri:r.uri,viewType:e}))}}),f.fire(new h.CustomEditorShouldDisplayEvent({uri:r.uri,viewType:e,webviewPanelId:o.id,cancellationToken:n.token,openTypeId:t}))}})),()=>{a.dispose(),n.cancel()}}),[]),a.createElement("div",{style:{height:"100%",width:"100%",position:"relative"},className:"editor-webview-webview-component",ref:e=>m=e})}}r.__decorate([o.Autowired(s.EditorComponentRegistry),r.__metadata("design:type",s.EditorComponentRegistry)],g.prototype,"editorComponentRegistry",void 0),r.__decorate([o.Autowired(u.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([o.Autowired(c.IEventBus),r.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),g=r.__decorate([o.Injectable(),n.Contributes("customEditors")],g),t.CustomEditorContributionPoint=g,t.createCustomEditorComponent=m},9382:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(34865),a=i(65686),c=i(76195),l=i(47641),u={enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart"],default:"openOnFirstSessionStart",description:a.localize("preference.debug.internalConsoleOptions")};let d=class extends n.VSCodeContributePoint{contribute(){this.debugService.registerDebugContributionPoints(this.extension.path,this.resolveDebuggers(this.json)),this.debugSchemaUpdater.update()}resolveDebuggers(e){return e.map((e=>{const t=this.doResolveDebuggers(e);return this.debugConfigurationManager.registerDebugger(t),t}))}doResolveDebuggers(e){const t={type:e.type,label:e.label?s.replaceLocalizePlaceholder(e.label,this.extension.id):"",languages:e.languages,enableBreakpointsFor:e.enableBreakpointsFor,variables:e.variables,adapterExecutableCommand:e.adapterExecutableCommand,configurationSnippets:(e.configurationSnippets||[]).map((e=>(e.label&&(e.label=s.replaceLocalizePlaceholder(e.label,this.extension.id)),e.description&&(e.description=s.replaceLocalizePlaceholder(e.description,this.extension.id)),e))),win:e.win,winx86:e.winx86,windows:e.windows,osx:e.osx,linux:e.linux,program:e.program,args:e.args,runtime:e.runtime,runtimeArgs:e.runtimeArgs};return t.configurationAttributes=e.configurationAttributes&&this.resolveSchemaAttributes(e.type,e.configurationAttributes),t}resolveSchemaAttributes(e,t){const i={},r=e=>{Object.keys(e).forEach((t=>{e[t].properties&&r(e[t].properties),e[t].description=s.replaceLocalizePlaceholder(e[t].description,this.extension.id)}))};return Object.keys(t).map((n=>{const o=a.deepClone(t[n]),s=["name","type","request"];o.required=o.required&&o.required.length?s.concat(o.required):s,o.additionalProperties=!1,o.type="object",o.properties||(o.properties={});const c=o.properties;c.type={enum:[e],description:a.localize("debug.launch.configurations.debugType"),pattern:"^(?!node2)",errorMessage:a.localize("debug.launch.configurations.debugTypeNotRecognised"),patternErrorMessage:a.localize("debug.launch.configurations.node2NotSupported")},c.name={type:"string",description:a.localize("debug.launch.configurations.debugName"),default:"Launch"},c.request={enum:[n],description:a.localize("debug.launch.configurations.debugRequest")},c.debugServer={type:"number",description:a.localize("debug.launch.configurations.debugServer"),default:4711},c.preLaunchTask={anyOf:[i,{type:["string","null"]}],default:"",description:a.localize("debug.launch.configurations.debugPrelaunchTask")},c.postDebugTask={anyOf:[i,{type:["string","null"]}],default:"",description:a.localize("debug.launch.configurations.debugPostDebugTask")},c.internalConsoleOptions=u;const l=Object.assign({},c);return c.windows={type:"object",description:a.localize("debug.launch.configurations.debugWindowsConfiguration"),properties:l},c.osx={type:"object",description:a.localize("debug.launch.configurations.debugOSXConfiguration"),properties:l},c.linux={type:"object",description:a.localize("debug.launch.configurations.debugLinuxConfiguration"),properties:l},Object.keys(o.properties).forEach((e=>{o.properties[e].pattern=o.properties[e].pattern||"^(?!.*\\$\\{(env|config|command)\\.)",o.properties[e].patternErrorMessage=o.properties[e].patternErrorMessage||a.localize("deprecatedVariables","'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead.")})),r(o.properties),o}))}dispose(){this.debugService.unregisterDebugContributionPoints(this.extension.path)}};r.__decorate([o.Autowired(c.IDebugService),r.__metadata("design:type",Object)],d.prototype,"debugService",void 0),r.__decorate([o.Autowired(l.DebugConfigurationManager),r.__metadata("design:type",l.DebugConfigurationManager)],d.prototype,"debugConfigurationManager",void 0),r.__decorate([o.Autowired(l.DebugSchemaUpdater),r.__metadata("design:type",l.DebugSchemaUpdater)],d.prototype,"debugSchemaUpdater",void 0),d=r.__decorate([o.Injectable(),n.Contributes("debuggers")],d),t.DebuggersContributionPoint=d},24264:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(29979),s=i(65686),a=i(96397);let c=class extends a.VSCodeContributePoint{constructor(){super(...arguments),this.schema={description:s.localize("vscode.extension.contributes.grammars","Contributes textmate tokenizers."),type:"array",defaultSnippets:[{body:[{language:"${1:id}",scopeName:"source.${2:id}",path:"./syntaxes/${3:id}.tmLanguage."}]}],items:{type:"object",defaultSnippets:[{body:{language:"${1:id}",scopeName:"source.${2:id}",path:"./syntaxes/${3:id}.tmLanguage."}}],properties:{language:{description:s.localize("vscode.extension.contributes.grammars.language","Language identifier for which this syntax is contributed to."),type:"string"},scopeName:{description:s.localize("vscode.extension.contributes.grammars.scopeName","Textmate scope name used by the tmLanguage file."),type:"string"},path:{description:s.localize("vscode.extension.contributes.grammars.path","Path of the tmLanguage file. The path is relative to the extension folder and typically starts with './syntaxes/'."),type:"string"},embeddedLanguages:{description:s.localize("vscode.extension.contributes.grammars.embeddedLanguages","A map of scope name to language id if this grammar contains embedded languages."),type:"object"},tokenTypes:{description:s.localize("vscode.extension.contributes.grammars.tokenTypes","A map of scope name to token types."),type:"object",additionalProperties:{enum:["string","comment","other"]}},injectTo:{description:s.localize("vscode.extension.contributes.grammars.injectTo","List of language scope names to which this grammar is injected to."),type:"array",items:{type:"string"}}},required:["scopeName","path"]}}}contribute(){for(const e of this.json)this.textMateService.registerGrammar(e,s.URI.from(this.extension.uri))}};r.__decorate([n.Autowired(),r.__metadata("design:type",o.TextmateService)],c.prototype,"textMateService",void 0),c=r.__decorate([n.Injectable(),a.Contributes("grammars")],c),t.GrammarsContributionPoint=c},30938:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(64994),s=i(65686),a=i(96397);let c=class extends a.VSCodeContributePoint{contribute(){this.iconService.registerIconThemes(this.json,s.URI.from(this.extension.uri))}};r.__decorate([n.Autowired(o.IIconService),r.__metadata("design:type",Object)],c.prototype,"iconService",void 0),c=r.__decorate([n.Injectable(),a.Contributes("iconThemes")],c),t.IconThemesContributionPoint=c},31378:(e,t,i)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});const n=i(70655),o=i(19745),s=i(34865),a=i(96397),c=i(92668),l=i(68636),u=i(82552),d=i(87450),h=i(24264),p=i(91557),f=i(48105),g=i(52911),m=i(91613),v=i(98225),y=i(27926),_=i(80287),b=i(4645),w=i(48393),S=i(9382),C=i(23574),E=i(30938),O=i(30059),k=i(84971),D=i(94200),M=i(55676),x=i(26947),T=i(59714);t.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",t.schema={properties:{engines:{type:"object",description:s.localize("vscode.extension.engines","Engine compatibility."),properties:{vscode:{type:"string",description:s.localize("vscode.extension.engines.vscode","For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:s.localize("vscode.extension.publisher","The publisher of the VS Code extension."),type:"string"},displayName:{description:s.localize("vscode.extension.displayName","The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:s.localize("vscode.extension.categories","The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:["Programming Languages","Snippets","Linters","Themes","Debuggers","Other","Keymaps","Formatters","Extension Packs","SCM Providers","Azure","Language Packs"]},{type:"string",const:"Languages",deprecationMessage:s.localize("vscode.extension.category.languages.deprecated","Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:s.localize("vscode.extension.galleryBanner","Banner used in the VS Code marketplace."),properties:{color:{description:s.localize("vscode.extension.galleryBanner.color","The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:s.localize("vscode.extension.galleryBanner.theme","The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:s.localize("vscode.extension.contributes","All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:s.localize("vscode.extension.preview","Sets the extension to be flagged as a Preview in the Marketplace.")},activationEvents:{description:s.localize("vscode.extension.activationEvents","Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onLanguage",description:s.localize("vscode.extension.activationEvents.onLanguage","An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:s.localize("vscode.extension.activationEvents.onCommand","An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:s.localize("vscode.extension.activationEvents.onDebug","An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:s.localize("vscode.extension.activationEvents.onDebugInitialConfigurations",'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugResolve",description:s.localize("vscode.extension.activationEvents.onDebugResolve","An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:s.localize("vscode.extension.activationEvents.onDebugAdapterProtocolTracker","An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:s.localize("vscode.extension.activationEvents.workspaceContains","An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onFileSystem",description:s.localize("vscode.extension.activationEvents.onFileSystem","An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onSearch",description:s.localize("vscode.extension.activationEvents.onSearch","An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:s.localize("vscode.extension.activationEvents.onView","An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:s.localize("vscode.extension.activationEvents.onUri","An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"*",description:s.localize("vscode.extension.activationEvents.star","An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:s.localize("vscode.extension.badges","Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:s.localize("vscode.extension.badges.url","Badge image URL.")},href:{type:"string",description:s.localize("vscode.extension.badges.href","Badge link.")},description:{type:"string",description:s.localize("vscode.extension.badges.description","Badge description.")}}}},markdown:{type:"string",description:s.localize("vscode.extension.markdown","Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:s.localize("vscode.extension.qna","Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:s.localize("vscode.extension.extensionDependencies","Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:t.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:s.localize("vscode.extension.contributes.extensionPack","A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:t.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:s.localize("extensionKind","Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions are run on the remote."),type:"string",enum:["ui","workspace"],enumDescriptions:[s.localize("ui","UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),s.localize("workspace","Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")],default:"workspace"},scripts:{type:"object",properties:{"vscode:prepublish":{description:s.localize("vscode.extension.scripts.prepublish","Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:s.localize("vscode.extension.scripts.uninstall","Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:s.localize("vscode.extension.icon","The path to a 128x128 pixel icon.")}}};const A=Symbol();let I=r=class extends s.WithEventBus{constructor(e){super(),this.extension=e}run(){return n.__awaiter(this,void 0,void 0,(function*(){const e=this.extension.packageJSON.contributes;if(!e)return;const i=yield this.eventBus.fireAndAwait(new c.ExtensionWillContributeEvent(this.extension));if(!(i.length>0&&i[0].result)){for(const i of r.ContributePoints){const r=Reflect.getMetadata(a.CONTRIBUTE_NAME_KEY,i);if(void 0!==e[r])try{const n=this.injector.get(i,[e[r],e,this.extension,this.extension.packageNlsJSON,this.extension.defaultPkgNlsJSON]);n.schema&&(t.schema.properties.contributes.properties[r]=n.schema),this.addDispose(n),yield n.contribute()}catch(e){this.logger.error(e)}}this.schemaRegistry.registerSchema("vscode://schemas/vscode-extensions",t.schema,["package.json"])}}))}};I.ContributePoints=[m.LocalizationsContributionPoint,l.CommandsContributionPoint,u.ThemesContributionPoint,E.IconThemesContributionPoint,h.GrammarsContributionPoint,d.LanguagesContributionPoint,p.ConfigurationContributionPoint,f.ConfigurationDefaultsContributionPoint,g.ColorsContributionPoint,v.KeybindingContributionPoint,y.SubmenusContributionPoint,y.MenusContributionPoint,_.SnippetsContributionPoint,b.ViewContainersContributionPoint,w.ViewsContributionPoint,T.ViewsWelcomeContributionPoint,C.BreakpointsContributionPoint,S.DebuggersContributionPoint,O.ActionsContributionPoint,k.TaskDefinitionContributionPoint,D.ProblemPatternsContributionPoint,M.ProblemMatchersContributionPoint,x.CustomEditorContributionPoint],n.__decorate([o.Autowired(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],I.prototype,"injector",void 0),n.__decorate([o.Autowired(s.ISchemaRegistry),n.__metadata("design:type",Object)],I.prototype,"schemaRegistry",void 0),n.__decorate([o.Autowired(s.IEventBus),n.__metadata("design:type",Object)],I.prototype,"eventBus",void 0),n.__decorate([o.Autowired(s.ILogger),n.__metadata("design:type",Object)],I.prototype,"logger",void 0),I=r=n.__decorate([o.Injectable({multiple:!0}),n.__param(0,o.Optional(A)),n.__metadata("design:paramtypes",[Object])],I),t.VSCodeContributeRunner=I},98225:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(96397),s=i(34865);let a=class extends o.VSCodeContributePoint{contribute(){const e=this.json.map((e=>this.toKeybinding(e,this.extension.isBuiltin)));this.addDispose(this.keybindingRegistry.registerKeybindings(e))}toKeybinding(e,t){const i=this.toOSKeybinding(e),{command:r,when:n}=e;return{keybinding:i,command:r,when:n,priority:t?100*s.KeybindingWeight.BuiltinExtension:100*s.KeybindingWeight.ExternalExtension}}toOSKeybinding(e){let t;const i=s.OS.type();return i===s.OS.Type.Windows&&e.win?t=e.win:i===s.OS.Type.OSX&&e.mac?t=e.mac:e.linux&&(t=e.linux),t||e.key}};r.__decorate([n.Autowired(s.KeybindingRegistry),r.__metadata("design:type",Object)],a.prototype,"keybindingRegistry",void 0),a=r.__decorate([n.Injectable(),o.Contributes("keybindings")],a),t.KeybindingContributionPoint=a},87450:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(29979),s=i(65686),a=i(96397);let c=class extends a.VSCodeContributePoint{constructor(){super(...arguments),this.schema={allowComments:!0,allowTrailingCommas:!0,default:{comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["(",")"],["[","]"],["{","}"]],autoClosingPairs:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[["(",")"],["[","]"],["{","}"]]},definitions:{openBracket:{type:"string",description:s.localize("schema.openBracket","The opening bracket character or string sequence.")},closeBracket:{type:"string",description:s.localize("schema.closeBracket","The closing bracket character or string sequence.")},bracketPair:{type:"array",items:[{$ref:"#definitions/openBracket"},{$ref:"#definitions/closeBracket"}]}},properties:{comments:{default:{blockComment:["/*","*/"],lineComment:"//"},description:s.localize("schema.comments","Defines the comment symbols"),type:"object",properties:{blockComment:{type:"array",description:s.localize("schema.blockComments","Defines how block comments are marked."),items:[{type:"string",description:s.localize("schema.blockComment.begin","The character sequence that starts a block comment.")},{type:"string",description:s.localize("schema.blockComment.end","The character sequence that ends a block comment.")}]},lineComment:{type:"string",description:s.localize("schema.lineComment","The character sequence that starts a line comment.")}}},brackets:{default:[["(",")"],["[","]"],["{","}"]],description:s.localize("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),type:"array",items:{$ref:"#definitions/bracketPair"}},autoClosingPairs:{default:[["(",")"],["[","]"],["{","}"]],description:s.localize("schema.autoClosingPairs","Defines the bracket pairs. When a opening bracket is entered, the closing bracket is inserted automatically."),type:"array",items:{oneOf:[{$ref:"#definitions/bracketPair"},{type:"object",properties:{open:{$ref:"#definitions/openBracket"},close:{$ref:"#definitions/closeBracket"},notIn:{type:"array",description:s.localize("schema.autoClosingPairs.notIn","Defines a list of scopes where the auto pairs are disabled."),items:{enum:["string","comment"]}}}}]}},autoCloseBefore:{default:";:.,=}])> \n\t",description:s.localize("schema.autoCloseBefore","Defines what characters must be after the cursor in order for bracket or quote autoclosing to occur when using the 'languageDefined' autoclosing setting. This is typically the set of characters which can not start an expression."),type:"string"},surroundingPairs:{default:[["(",")"],["[","]"],["{","}"]],description:s.localize("schema.surroundingPairs","Defines the bracket pairs that can be used to surround a selected string."),type:"array",items:{oneOf:[{$ref:"#definitions/bracketPair"},{type:"object",properties:{open:{$ref:"#definitions/openBracket"},close:{$ref:"#definitions/closeBracket"}}}]}},wordPattern:{default:"",description:s.localize("schema.wordPattern","Defines what is considered to be a word in the programming language."),type:["string","object"],properties:{pattern:{type:"string",description:s.localize("schema.wordPattern.pattern","The RegExp pattern used to match words."),default:""},flags:{type:"string",description:s.localize("schema.wordPattern.flags","The RegExp flags used to match words."),default:"g",pattern:"^([gimuy]+)$",patternErrorMessage:s.localize("schema.wordPattern.flags.errorMessage","Must match the pattern `/^([gimuy]+)$/`.")}}},indentationRules:{default:{increaseIndentPattern:"",decreaseIndentPattern:""},description:s.localize("schema.indentationRules","The language's indentation settings."),type:"object",properties:{increaseIndentPattern:{type:["string","object"],description:s.localize("schema.indentationRules.increaseIndentPattern","If a line matches this pattern, then all the lines after it should be indented once (until another rule matches)."),properties:{pattern:{type:"string",description:s.localize("schema.indentationRules.increaseIndentPattern.pattern","The RegExp pattern for increaseIndentPattern."),default:""},flags:{type:"string",description:s.localize("schema.indentationRules.increaseIndentPattern.flags","The RegExp flags for increaseIndentPattern."),default:"",pattern:"^([gimuy]+)$",patternErrorMessage:s.localize("schema.indentationRules.increaseIndentPattern.errorMessage","Must match the pattern `/^([gimuy]+)$/`.")}}},decreaseIndentPattern:{type:["string","object"],description:s.localize("schema.indentationRules.decreaseIndentPattern","If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches)."),properties:{pattern:{type:"string",description:s.localize("schema.indentationRules.decreaseIndentPattern.pattern","The RegExp pattern for decreaseIndentPattern."),default:""},flags:{type:"string",description:s.localize("schema.indentationRules.decreaseIndentPattern.flags","The RegExp flags for decreaseIndentPattern."),default:"",pattern:"^([gimuy]+)$",patternErrorMessage:s.localize("schema.indentationRules.decreaseIndentPattern.errorMessage","Must match the pattern `/^([gimuy]+)$/`.")}}},indentNextLinePattern:{type:["string","object"],description:s.localize("schema.indentationRules.indentNextLinePattern","If a line matches this pattern, then **only the next line** after it should be indented once."),properties:{pattern:{type:"string",description:s.localize("schema.indentationRules.indentNextLinePattern.pattern","The RegExp pattern for indentNextLinePattern."),default:""},flags:{type:"string",description:s.localize("schema.indentationRules.indentNextLinePattern.flags","The RegExp flags for indentNextLinePattern."),default:"",pattern:"^([gimuy]+)$",patternErrorMessage:s.localize("schema.indentationRules.indentNextLinePattern.errorMessage","Must match the pattern `/^([gimuy]+)$/`.")}}},unIndentedLinePattern:{type:["string","object"],description:s.localize("schema.indentationRules.unIndentedLinePattern","If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules."),properties:{pattern:{type:"string",description:s.localize("schema.indentationRules.unIndentedLinePattern.pattern","The RegExp pattern for unIndentedLinePattern."),default:""},flags:{type:"string",description:s.localize("schema.indentationRules.unIndentedLinePattern.flags","The RegExp flags for unIndentedLinePattern."),default:"",pattern:"^([gimuy]+)$",patternErrorMessage:s.localize("schema.indentationRules.unIndentedLinePattern.errorMessage","Must match the pattern `/^([gimuy]+)$/`.")}}}}},folding:{type:"object",description:s.localize("schema.folding","The language's folding settings."),properties:{offSide:{type:"boolean",description:s.localize("schema.folding.offSide","A language adheres to the off-side rule if blocks in that language are expressed by their indentation. If set, empty lines belong to the subsequent block.")},markers:{type:"object",description:s.localize("schema.folding.markers","Language specific folding markers such as '#region' and '#endregion'. The start and end regexes will be tested against the contents of all lines and must be designed efficiently"),properties:{start:{type:"string",description:s.localize("schema.folding.markers.start","The RegExp pattern for the start marker. The regexp must start with '^'.")},end:{type:"string",description:s.localize("schema.folding.markers.end","The RegExp pattern for the end marker. The regexp must start with '^'.")}}}}}}}}contribute(){return r.__awaiter(this,void 0,void 0,(function*(){for(const e of this.json)yield this.textMateService.registerLanguage(e,s.URI.from(this.extension.uri))}))}};r.__decorate([n.Autowired(),r.__metadata("design:type",o.TextmateService)],c.prototype,"textMateService",void 0),c=r.__decorate([n.Injectable(),a.Contributes("languages")],c),t.LanguagesContributionPoint=c},91613:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(35463),a=i(61583),c=i(39154),l=i(96397),u=i(92668);let d=class extends l.VSCodeContributePoint{safeParseJSON(e){let t;try{return t=o.parseWithComments(e),t}catch(t){return this.logger.error("语言配置文件解析出错!",e)}}contribute(){return r.__awaiter(this,void 0,void 0,(function*(){const e=this.extensionInstanceManageService.getExtensionInstances(),t=[];this.json.forEach((i=>{if(i.translations){const n=function(e){const t=e.split("-");t[1]&&(t[1]=t[1].toUpperCase());return t.join("-")}(i.languageId);if(n!==o.getLanguageId())return;i.translations.map((s=>{-1!==e.findIndex((e=>e.id===s.id))&&t.push((()=>r.__awaiter(this,void 0,void 0,(function*(){const e=yield this.registerLanguage(s);o.registerLocalizationBundle({languageId:n,languageName:i.languageName,localizedLanguageName:i.localizedLanguageName,contents:e},s.id)})))())}))}}));const i=this.preferenceService.get("general.language")||"zh-CN",n=(yield this.extensionStoragePathServer.getLastStoragePath())||"";t.push(this.extensionNodeService.updateLanguagePack(i,this.extension.path,n)),yield Promise.all(t)}))}registerLanguage(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=new s.Path(this.extension.path).join(e.path.replace(/^\.\//,"")).toString(),{content:i}=yield this.fileServiceClient.resolveContent(o.URI.file(t).toString()),r=this.safeParseJSON(i),n={};if(r.contents)for(const e of Object.keys(r.contents))if(r.contents[e])for(const t of Object.keys(r.contents[e]))n[t]=r.contents[e][t];return n}))}};r.__decorate([n.Autowired(o.PreferenceService),r.__metadata("design:type",Object)],d.prototype,"preferenceService",void 0),r.__decorate([n.Autowired(c.IExtensionStoragePathServer),r.__metadata("design:type",Object)],d.prototype,"extensionStoragePathServer",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],d.prototype,"logger",void 0),r.__decorate([n.Autowired(a.IFileServiceClient),r.__metadata("design:type",Object)],d.prototype,"fileServiceClient",void 0),r.__decorate([n.Autowired(l.ExtensionNodeServiceServerPath),r.__metadata("design:type",Object)],d.prototype,"extensionNodeService",void 0),r.__decorate([n.Autowired(u.AbstractExtInstanceManagementService),r.__metadata("design:type",u.AbstractExtInstanceManagementService)],d.prototype,"extensionInstanceManageService",void 0),d=r.__decorate([n.Injectable(),l.Contributes("localizations")],d),t.LocalizationsContributionPoint=d},27926:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(34865),s=i(8308),a=i(43849),c=i(58407),l=i(96397);function u(e){return"string"==typeof e.command}function d(e){switch(e){case"touchBar":return a.MenuId.TouchBarContext;case"debug/toolBar":return a.MenuId.DebugToolBar;case"statusBar/windowIndicator":return a.MenuId.StatusBarWindowIndicatorMenu;case"menuBar/file":return a.MenuId.MenubarFileMenu;default:return e}}function h(e){let t,i;if(e){const r=e.lastIndexOf("@");r>0?(t=e.substr(0,r),i=Number(e.substr(r+1))||void 0):t=e}return[t,i]}function p(e,t){return"string"!=typeof e.command?(t.error(o.formatLocalize("requirestring","command")),!1):e.alt&&"string"!=typeof e.alt?(t.error(o.formatLocalize("optstring","alt")),!1):e.when&&"string"!=typeof e.when?(t.error(o.formatLocalize("optstring","when")),!1):!e.group||"string"==typeof e.group||(t.error(o.formatLocalize("optstring","group")),!1)}function f(e,t){return"string"!=typeof e.submenu?(t.error(o.formatLocalize("requirestring","property `{0}` is mandatory and must be of type `string`","submenu")),!1):e.when&&"string"!=typeof e.when?(t.error(o.formatLocalize("optstring","property `{0}` can be omitted or must be of type `string`","when")),!1):!e.group||"string"==typeof e.group||(t.error(o.formatLocalize("optstring","property `{0}` can be omitted or must be of type `string`","group")),!1)}function g(e,t){if(!Array.isArray(e))return t.error(o.formatLocalize("requirearray","submenu items must be an array")),!1;for(const i of e)if(u(i)){if(!p(i,t))return!1}else if(!f(i,t))return!1;return!0}t.parseMenuId=d,t.parseMenuGroup=h,t.isValidMenuItem=p;const m=new Map;let v=class extends l.VSCodeContributePoint{constructor(){super(...arguments),this.schema={}}contribute(){m.set(this.extension.id,this.json)}};v=r.__decorate([n.Injectable(),l.Contributes("submenus")],v),t.SubmenusContributionPoint=v;let y=class extends l.VSCodeContributePoint{createSyntheticCommandId(e,t){const i=e.command;let r=t+i,n=0;for(;this.commandRegistry.getCommand(r);)r=t+i+":"+n,n++;return r}contribute(){const e=console;for(const t of Object.keys(this.json)){const i=this.json[t];if(!g(i,console))return;const r=d(t);if(o.isUndefined(r))return void e.warn(o.formatLocalize("menuId.invalid","`{0}` is not a valid menu identifier",t));for(const t of i)if(u(t)){const i=this.commandRegistry.getRawCommand(t.command),n=t.alt&&this.commandRegistry.getRawCommand(t.alt);if(!i){e.error(o.formatLocalize("missing.command",t.command));continue}t.alt&&!n&&e.warn(o.formatLocalize("missing.altCommand",t.alt)),t.command===t.alt&&e.info(o.formatLocalize("dupe.command"));const[s,c]=h(t.group);let l;r===a.MenuId.EditorTitleContext?l=({uri:e,group:t})=>[e.codeUri]:r===a.MenuId.EditorTitle&&(l=(e,t,i)=>[(null==i?void 0:i.codeUri)||e.codeUri]),this.addDispose(this.menuRegistry.registerMenuItem(r,{command:t.command,alt:n,group:s,order:c,when:t.when,argsTransformer:l,type:t.type,toggledWhen:t.toggledWhen,enabledWhen:t.enabledWhen}))}else{const i=m.get(this.extension.id);if(!i){e.error(o.localize("missing.submenu.section","Need a submenu contributes firstly",t.submenu));continue}const n=i.find((e=>e.id===t.submenu));if(!n){e.error(o.localize("missing.submenu","Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",t.submenu));continue}const[s,a]=h(t.group);this.menuRegistry.registerMenuItem(r,{submenu:t.submenu,label:n.label,when:t.when,group:s,order:a})}}}};r.__decorate([n.Autowired(o.CommandRegistry),r.__metadata("design:type",Object)],y.prototype,"commandRegistry",void 0),r.__decorate([n.Autowired(o.CommandService),r.__metadata("design:type",Object)],y.prototype,"commandService",void 0),r.__decorate([n.Autowired(o.ILogger),r.__metadata("design:type",Object)],y.prototype,"logger",void 0),r.__decorate([n.Autowired(a.IMenuRegistry),r.__metadata("design:type",a.IMenuRegistry)],y.prototype,"menuRegistry",void 0),r.__decorate([n.Autowired(),r.__metadata("design:type",s.ToolbarRegistry)],y.prototype,"toolBarRegistry",void 0),r.__decorate([n.Autowired(c.IEditorActionRegistry),r.__metadata("design:type",Object)],y.prototype,"editorActionRegistry",void 0),r.__decorate([n.Autowired(o.IContextKeyService),r.__metadata("design:type",Object)],y.prototype,"contextKeyService",void 0),y=r.__decorate([n.Injectable(),l.Contributes("menus")],y),t.MenusContributionPoint=y},55676:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(96397),a=i(9194),c=i(94200);var l;!function(e){e.WatchingPattern={type:"object",additionalProperties:!1,properties:{regexp:{type:"string",description:o.localize("WatchingPatternSchema.regexp","The regular expression to detect the begin or end of a background task.")},file:{type:"integer",description:o.localize("WatchingPatternSchema.file","The match group index of the filename. Can be omitted.")}}},e.PatternType={anyOf:[{type:"string",description:o.localize("PatternTypeSchema.name","The name of a contributed or predefined pattern")},c.PatternSchemas.ProblemPattern,c.PatternSchemas.MultiLineProblemPattern],description:o.localize("PatternTypeSchema.description","A problem pattern or the name of a contributed or predefined problem pattern. Can be omitted if base is specified.")},e.ProblemMatcher={type:"object",additionalProperties:!1,properties:{base:{type:"string",description:o.localize("ProblemMatcherSchema.base","The name of a base problem matcher to use.")},owner:{type:"string",description:o.localize("ProblemMatcherSchema.owner","The owner of the problem inside Code. Can be omitted if base is specified. Defaults to 'external' if omitted and base is not specified.")},source:{type:"string",description:o.localize("ProblemMatcherSchema.source","A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.")},severity:{type:"string",enum:["error","warning","info"],description:o.localize("ProblemMatcherSchema.severity","The default severity for captures problems. Is used if the pattern doesn't define a match group for severity.")},applyTo:{type:"string",enum:["allDocuments","openDocuments","closedDocuments"],description:o.localize("ProblemMatcherSchema.applyTo","Controls if a problem reported on a text document is applied only to open, closed or all documents.")},pattern:e.PatternType,fileLocation:{oneOf:[{type:"string",enum:["absolute","relative","autoDetect"]},{type:"array",items:{type:"string"}}],description:o.localize("ProblemMatcherSchema.fileLocation","Defines how file names reported in a problem pattern should be interpreted.")},background:{type:"object",additionalProperties:!1,description:o.localize("ProblemMatcherSchema.background","Patterns to track the begin and end of a matcher active on a background task."),properties:{activeOnStart:{type:"boolean",description:o.localize("ProblemMatcherSchema.background.activeOnStart","If set to true the background monitor is in active mode when the task starts. This is equals of issuing a line that matches the beginsPattern")},beginsPattern:{oneOf:[{type:"string"},e.WatchingPattern],description:o.localize("ProblemMatcherSchema.background.beginsPattern","If matched in the output the start of a background task is signaled.")},endsPattern:{oneOf:[{type:"string"},e.WatchingPattern],description:o.localize("ProblemMatcherSchema.background.endsPattern","If matched in the output the end of a background task is signaled.")}}},watching:{type:"object",additionalProperties:!1,deprecationMessage:o.localize("ProblemMatcherSchema.watching.deprecated","The watching property is deprecated. Use background instead."),description:o.localize("ProblemMatcherSchema.watching","Patterns to track the begin and end of a watching matcher."),properties:{activeOnStart:{type:"boolean",description:o.localize("ProblemMatcherSchema.watching.activeOnStart","If set to true the watcher is in active mode when the task starts. This is equals of issuing a line that matches the beginPattern")},beginsPattern:{oneOf:[{type:"string"},e.WatchingPattern],description:o.localize("ProblemMatcherSchema.watching.beginsPattern","If matched in the output the start of a watching task is signaled.")},endsPattern:{oneOf:[{type:"string"},e.WatchingPattern],description:o.localize("ProblemMatcherSchema.watching.endsPattern","If matched in the output the end of a watching task is signaled.")}}}}},e.LegacyProblemMatcher=o.deepClone(e.ProblemMatcher),e.LegacyProblemMatcher.properties=o.deepClone(e.LegacyProblemMatcher.properties)||{},e.LegacyProblemMatcher.properties.watchedTaskBeginsRegExp={type:"string",deprecationMessage:o.localize("LegacyProblemMatcherSchema.watchedBegin.deprecated","This property is deprecated. Use the watching property instead."),description:o.localize("LegacyProblemMatcherSchema.watchedBegin","A regular expression signaling that a watched tasks begins executing triggered through file watching.")},e.LegacyProblemMatcher.properties.watchedTaskEndsRegExp={type:"string",deprecationMessage:o.localize("LegacyProblemMatcherSchema.watchedEnd.deprecated","This property is deprecated. Use the watching property instead."),description:o.localize("LegacyProblemMatcherSchema.watchedEnd","A regular expression signaling that a watched tasks ends executing.")},e.NamedProblemMatcher=o.deepClone(e.ProblemMatcher),e.NamedProblemMatcher.properties=o.deepClone(e.NamedProblemMatcher.properties)||{},e.NamedProblemMatcher.properties.name={type:"string",description:o.localize("NamedProblemMatcherSchema.name","The name of the problem matcher used to refer to it.")},e.NamedProblemMatcher.properties.label={type:"string",description:o.localize("NamedProblemMatcherSchema.label","A human readable label of the problem matcher.")}}(l=t.Schemas||(t.Schemas={})),t.problemMatchersSchema={description:o.localize("ProblemMatcherExtPoint","Contributes problem matchers"),type:"array",items:l.NamedProblemMatcher};let u=class extends s.VSCodeContributePoint{contribute(){for(const e of this.json)this.addDispose(this.problemMatcher.register(e))}};r.__decorate([n.Autowired(o.IProblemMatcherRegistry),r.__metadata("design:type",Object)],u.prototype,"problemMatcher",void 0),u=r.__decorate([n.Injectable(),a.Contributes("problemMatchers")],u),t.ProblemMatchersContributionPoint=u},94200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(96397);var a;!function(e){e.ProblemPattern={default:{regexp:"^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$",file:1,location:2,message:3},type:"object",additionalProperties:!1,properties:{regexp:{type:"string",description:o.localize("ProblemPatternSchema.regexp","The regular expression to find an error, warning or info in the output.")},kind:{type:"string",description:o.localize("ProblemPatternSchema.kind","whether the pattern matches a location (file and line) or only a file.")},file:{type:"integer",description:o.localize("ProblemPatternSchema.file","The match group index of the filename. If omitted 1 is used.")},location:{type:"integer",description:o.localize("ProblemPatternSchema.location","The match group index of the problem's location. Valid location patterns are: (line), (line,column) and (startLine,startColumn,endLine,endColumn). If omitted (line,column) is assumed.")},line:{type:"integer",description:o.localize("ProblemPatternSchema.line","The match group index of the problem's line. Defaults to 2")},column:{type:"integer",description:o.localize("ProblemPatternSchema.column","The match group index of the problem's line character. Defaults to 3")},endLine:{type:"integer",description:o.localize("ProblemPatternSchema.endLine","The match group index of the problem's end line. Defaults to undefined")},endColumn:{type:"integer",description:o.localize("ProblemPatternSchema.endColumn","The match group index of the problem's end line character. Defaults to undefined")},severity:{type:"integer",description:o.localize("ProblemPatternSchema.severity","The match group index of the problem's severity. Defaults to undefined")},code:{type:"integer",description:o.localize("ProblemPatternSchema.code","The match group index of the problem's code. Defaults to undefined")},message:{type:"integer",description:o.localize("ProblemPatternSchema.message","The match group index of the message. If omitted it defaults to 4 if location is specified. Otherwise it defaults to 5.")},loop:{type:"boolean",description:o.localize("ProblemPatternSchema.loop","In a multi line matcher loop indicated whether this pattern is executed in a loop as long as it matches. Can only specified on a last pattern in a multi line pattern.")}}},e.NamedProblemPattern=o.deepClone(e.ProblemPattern),e.NamedProblemPattern.properties=o.deepClone(e.NamedProblemPattern.properties)||{},e.NamedProblemPattern.properties.name={type:"string",description:o.localize("NamedProblemPatternSchema.name","The name of the problem pattern.")},e.MultiLineProblemPattern={type:"array",items:e.ProblemPattern},e.NamedMultiLineProblemPattern={type:"object",additionalProperties:!1,properties:{name:{type:"string",description:o.localize("NamedMultiLineProblemPatternSchema.name","The name of the problem multi line problem pattern.")},patterns:{type:"array",description:o.localize("NamedMultiLineProblemPatternSchema.patterns","The actual patterns."),items:e.ProblemPattern}}}}(a=t.PatternSchemas||(t.PatternSchemas={})),t.problemPatternsSchema={description:o.localize("ProblemPatternExtPoint","Contributes problem patterns"),type:"array",items:{anyOf:[a.NamedProblemPattern,a.NamedMultiLineProblemPattern]}};let c=class extends s.VSCodeContributePoint{contribute(){for(const e of this.json)this.addDispose(this.problemPattern.register(e))}};r.__decorate([n.Autowired(o.IProblemPatternRegistry),r.__metadata("design:type",Object)],c.prototype,"problemPattern",void 0),c=r.__decorate([n.Injectable(),s.Contributes("problemPatterns")],c),t.ProblemPatternsContributionPoint=c},80287:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(30379);let a=class extends n.VSCodeContributePoint{contribute(){for(const e of this.json)this.snippetSuggestProvider.fromPath(e.path,{extPath:this.extension.path,language:e.language,source:this.extension.packageJSON.name})}};r.__decorate([o.Autowired(s.MonacoSnippetSuggestProvider),r.__metadata("design:type",s.MonacoSnippetSuggestProvider)],a.prototype,"snippetSuggestProvider",void 0),a=r.__decorate([o.Injectable(),n.Contributes("snippets")],a),t.SnippetsContributionPoint=a},84971:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(65686),s=i(34865),a=i(96397);t.taskDefinitionSchema={type:"object",additionalProperties:!1,properties:{type:{type:"string",description:s.localize("TaskDefinition.description","The actual task type. Please note that types starting with a '$' are reserved for internal usage.")},required:{type:"array",items:{type:"string"}},properties:{type:"object",description:s.localize("TaskDefinition.properties","Additional properties of the task type"),additionalProperties:{$ref:"http://json-schema.org/draft-04/schema#"}}}};let c=class extends a.VSCodeContributePoint{contribute(){for(const e of this.json)this.logger.verbose(`${this.extension.id} register taskDefinition ${JSON.stringify(e)}`),this.addDispose(this.taskDefinitionRegistry.register(e.type,Object.assign(Object.assign({},e),{taskType:e.type,extensionId:this.extension.id})))}};r.__decorate([n.Autowired(o.ITaskDefinitionRegistry),r.__metadata("design:type",Object)],c.prototype,"taskDefinitionRegistry",void 0),r.__decorate([n.Autowired(s.ILogger),r.__metadata("design:type",Object)],c.prototype,"logger",void 0),c=r.__decorate([n.Injectable(),a.Contributes("taskDefinitions")],c),t.TaskDefinitionContributionPoint=c},82552:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(19745),o=i(64994),s=i(65686),a=i(96397);let c=class extends a.VSCodeContributePoint{contribute(){const e=this.json;this.addDispose(this.themeService.registerThemes(e,s.URI.from(this.extension.uri)))}};r.__decorate([n.Autowired(o.IThemeService),r.__metadata("design:type",Object)],c.prototype,"themeService",void 0),c=r.__decorate([n.Injectable(),a.Contributes("themes")],c),t.ThemesContributionPoint=c},4645:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(73607),a=i(65686),c=i(64994);let l=class extends n.VSCodeContributePoint{constructor(){super(...arguments),this.disposableCollection=new a.DisposableCollection}contribute(){for(const e of Object.keys(this.json))if("activitybar"===e)for(const t of this.json[e]){const e=this.mainlayoutService.collectTabbarComponent([],{iconClass:this.iconService.fromIcon(this.extension.path,t.icon),title:this.getLocalizeFromNlsJSON(t.title),containerId:t.id,priority:0,fromExtension:!0,hideIfEmpty:!0},"left");this.disposableCollection.push({dispose:()=>{const t=this.mainlayoutService.getTabbarHandler(e);null==t||t.dispose()}})}}dispose(){this.disposableCollection.dispose()}getViewsMap(e){const t=e.views,i={};if(t)for(const e of Object.keys(t))t[e]&&Array.isArray(t[e])&&(i[e]=t[e].map((e=>e.id)));return i}};r.__decorate([o.Autowired(s.IMainLayoutService),r.__metadata("design:type",Object)],l.prototype,"mainlayoutService",void 0),r.__decorate([o.Autowired(c.IIconService),r.__metadata("design:type",Object)],l.prototype,"iconService",void 0),l=r.__decorate([o.Injectable(),n.Contributes("viewsContainers")],l),t.ViewContainersContributionPoint=l},59714:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(76195),a=i(78999),c=i(73607),l=i(34865);var u;!function(e){e.view="view",e.contents="contents",e.when="when",e.group="group",e.enablement="enablement"}(u=t.ViewsWelcomeExtensionPointFields||(t.ViewsWelcomeExtensionPointFields={})),t.ViewIdentifierMap={explorer:"file-explorer-next",debug:s.DEBUG_WELCOME_ID,scm:"scm_view"};let d=class extends n.VSCodeContributePoint{constructor(){super(...arguments),this.schema={type:"array",description:l.localize("contributes.viewsWelcome","Contributed views welcome content. Welcome content will be rendered in tree based views whenever they have no meaningful content to display, ie. the File Explorer when no folder is open. Such content is useful as in-product documentation to drive users to use certain features before they are available. A good example would be a `Clone Repository` button in the File Explorer welcome view."),items:{type:"object",description:l.localize("contributes.viewsWelcome.view","Contributed welcome content for a specific view."),required:[u.view,u.contents],properties:{[u.view]:{anyOf:[{type:"string",description:l.localize("contributes.viewsWelcome.view.view","Target view identifier for this welcome content. Only tree based views are supported.")},{type:"string",description:l.localize("contributes.viewsWelcome.view.view","Target view identifier for this welcome content. Only tree based views are supported."),enum:Object.keys(t.ViewIdentifierMap)}]},[u.contents]:{type:"string",description:l.localize("contributes.viewsWelcome.view.contents","Welcome content to be displayed. The format of the contents is a subset of Markdown, with support for links only.")},[u.when]:{type:"string",description:l.localize("contributes.viewsWelcome.view.when","Condition when the welcome content should be displayed.")},[u.group]:{type:"string",description:l.localize("contributes.viewsWelcome.view.group","Group to which this welcome content belongs.")},[u.enablement]:{type:"string",description:l.localize("contributes.viewsWelcome.view.enablement","Condition when the welcome content buttons and command links should be enabled.")}}}},this.disposableCollection=new l.DisposableCollection}contribute(){var e;const i=new Map;for(const r of this.json){const{group:n,order:o}=h(r),s=a.ContextKeyExpr.deserialize(r.enablement),c=null!==(e=t.ViewIdentifierMap[r.view])&&void 0!==e?e:r.view;let l=i.get(c);l||(l=new Map,i.set(c,l)),l.set(r,{content:this.getLocalizeFromNlsJSON(r.contents),when:a.ContextKeyExpr.deserialize(r.when),precondition:s,group:n,order:o})}for(const[e,t]of i){const i=this.viewsRegistry.registerViewWelcomeContent2(e,t);for(const[,e]of i)this.disposableCollection.push(e)}}dispose(){this.disposableCollection.dispose()}};function h(e){let t,i;if(e.group){const r=e.group.lastIndexOf("@");r>0?(t=e.group.substr(0,r),i=Number(e.group.substr(r+1))||void 0):t=e.group}return{group:t,order:i}}r.__decorate([o.Autowired(c.IMainLayoutService),r.__metadata("design:type",Object)],d.prototype,"mainlayoutService",void 0),r.__decorate([o.Autowired(c.IViewsRegistry),r.__metadata("design:type",Object)],d.prototype,"viewsRegistry",void 0),d=r.__decorate([o.Injectable(),n.Contributes("viewsWelcome")],d),t.ViewsWelcomeContributionPoint=d},48393:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(70655),n=i(96397),o=i(19745),s=i(73607),a=i(95008),c=i(34865),l=i(72740);let u=class extends n.VSCodeContributePoint{constructor(){super(...arguments),this.disposableCollection=new c.DisposableCollection}contribute(){for(const e of Object.keys(this.json)){const t=this.json[e].map((e=>Object.assign(Object.assign({},e),{name:this.getLocalizeFromNlsJSON(e.name),component:"webview"===e.type?l.ExtensionWebviewView:a.WelcomeView})));for(const i of t){const t=this.mainlayoutService.collectViewComponent(i,e,{viewId:i.id},{fromExtension:!0});this.disposableCollection.push({dispose:()=>{const e=this.mainlayoutService.getTabbarHandler(t);null==e||e.disposeView(i.id)}})}}}dispose(){this.disposableCollection.dispose()}};r.__decorate([o.Autowired(s.IMainLayoutService),r.__metadata("design:type",Object)],u.prototype,"mainlayoutService",void 0),u=r.__decorate([o.Injectable(),n.Contributes("views")],u),t.ViewsContributionPoint=u},75396:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=i(55877);t.WORKER_HOST_HARD_CODE="\n(function() {\n const workerSrc = document.getElementById('kaitian-worker-src').getAttribute('data-value');\n\tconst worker = new Worker(workerSrc, { name: 'KaitianWorkerExtensionHost' });\n\tconst kaitianWebWorkerExtHostId = document.getElementById('kaitian-web-worker-ext-host-id').getAttribute('data-value');\n\n\tworker.onmessage = (event) => {\n const { data } = event;\n if (data instanceof MessagePort) {\n window.parent.postMessage({\n kaitianWebWorkerExtHostId,\n data: data\n }, '*', [data]);\n return;\n }\n\n window.parent.postMessage({\n kaitianWebWorkerExtHostId,\n data: data\n }, '*');\n\t};\n\n\tworker.onerror = (event) => {\n\t\tconsole.error(event.message, event.error);\n\t\twindow.parent.postMessage({\n\t\t\tkaitianWebWorkerExtHostId,\n\t\t\terror: {\n\t\t\t\tname: event.error ? event.error.name : '',\n\t\t\t\tmessage: event.error ? event.error.message : '',\n\t\t\t\tstack: event.error ? event.error.stack : []\n\t\t\t}\n\t\t}, '*');\n\t};\n\n\twindow.addEventListener('message', function(event) {\n\t\tif (event.source !== window.parent) {\n\t\t\treturn;\n\t\t}\n\t\tif (event.data.kaitianWebWorkerExtHostId !== kaitianWebWorkerExtHostId) {\n\t\t\treturn;\n }\n\n\t\tworker.postMessage(event.data.data);\n\t}, false);\n})();\n",t.startInsideIframe=function(e){const i=document.createElement("iframe");i.setAttribute("class","web-worker-ext-host-iframe"),i.setAttribute("sandbox","allow-scripts allow-same-origin"),i.style.display="none";const n=e=>e.replace(/"/g,"""),o=r.v4(),s=`\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t