"use strict";/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.29.2(df04357573e045be658960bd50ff0a45d6d1eadb) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/var _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{},AMDLoader;(function(f){f.global=_amdLoaderGlobal;var E=function(){function h(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1}return Object.defineProperty(h.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),h.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=h._isWindows(),this._isNode=typeof module!="undefined"&&!!module.exports,this._isElectronRenderer=typeof process!="undefined"&&typeof process.versions!="undefined"&&typeof process.versions.electron!="undefined"&&process.type==="renderer",this._isWebWorker=typeof f.global.importScripts=="function")},h._isWindows=function(){return typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process!="undefined"?process.platform==="win32":!1},h}();f.Environment=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(f){var E=function(){function a(i,p,s){this.type=i,this.detail=p,this.timestamp=s}return a}();f.LoaderEvent=E;var h=function(){function a(i){this._events=[new E(1,"",i)]}return a.prototype.record=function(i,p){this._events.push(new E(i,p,f.Utilities.getHighPerformanceTimestamp()))},a.prototype.getEvents=function(){return this._events},a}();f.LoaderEventRecorder=h;var _=function(){function a(){}return a.prototype.record=function(i,p){},a.prototype.getEvents=function(){return[]},a.INSTANCE=new a,a}();f.NullLoaderEventRecorder=_})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(f){var E=function(){function h(){}return h.fileUriToFilePath=function(_,a){if(a=decodeURI(a).replace(/%23/g,"#"),_){if(/^file:\/\/\//.test(a))return a.substr(8);if(/^file:\/\//.test(a))return a.substr(5)}else if(/^file:\/\//.test(a))return a.substr(7);return a},h.startsWith=function(_,a){return _.length>=a.length&&_.substr(0,a.length)===a},h.endsWith=function(_,a){return _.length>=a.length&&_.substr(_.length-a.length)===a},h.containsQueryString=function(_){return/^[^\#]*\?/gi.test(_)},h.isAbsolutePath=function(_){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(_)},h.forEachProperty=function(_,a){if(_){var i=void 0;for(i in _)_.hasOwnProperty(i)&&a(i,_[i])}},h.isEmpty=function(_){var a=!0;return h.forEachProperty(_,function(){a=!1}),a},h.recursiveClone=function(_){if(!_||typeof _!="object"||_ instanceof RegExp||!Array.isArray(_)&&Object.getPrototypeOf(_)!==Object.prototype)return _;var a=Array.isArray(_)?[]:{};return h.forEachProperty(_,function(i,p){p&&typeof p=="object"?a[i]=h.recursiveClone(p):a[i]=p}),a},h.generateAnonymousModule=function(){return"===anonymous"+h.NEXT_ANONYMOUS_ID+++"==="},h.isAnonymousModule=function(_){return h.startsWith(_,"===anonymous")},h.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=f.global.performance&&typeof f.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?f.global.performance.now():Date.now()},h.NEXT_ANONYMOUS_ID=1,h.PERFORMANCE_NOW_PROBED=!1,h.HAS_PERFORMANCE_NOW=!1,h}();f.Utilities=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(f){function E(a){if(a instanceof Error)return a;var i=new Error(a.message||String(a)||"Unknown Error");return a.stack&&(i.stack=a.stack),i}f.ensureError=E;var h=function(){function a(){}return a.validateConfigurationOptions=function(i){function p(e){if(e.phase==="loading"){console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),console.error(e.neededBy);return}if(e.phase==="factory"){console.error('The factory method of "'+e.moduleId+'" has thrown an exception'),console.error(e);return}}if(i=i||{},typeof i.baseUrl!="string"&&(i.baseUrl=""),typeof i.isBuild!="boolean"&&(i.isBuild=!1),typeof i.paths!="object"&&(i.paths={}),typeof i.config!="object"&&(i.config={}),typeof i.catchError=="undefined"&&(i.catchError=!1),typeof i.recordStats=="undefined"&&(i.recordStats=!1),typeof i.urlArgs!="string"&&(i.urlArgs=""),typeof i.onError!="function"&&(i.onError=p),Array.isArray(i.ignoreDuplicateModules)||(i.ignoreDuplicateModules=[]),i.baseUrl.length>0&&(f.Utilities.endsWith(i.baseUrl,"/")||(i.baseUrl+="/")),typeof i.cspNonce!="string"&&(i.cspNonce=""),typeof i.preferScriptTags=="undefined"&&(i.preferScriptTags=!1),Array.isArray(i.nodeModules)||(i.nodeModules=[]),i.nodeCachedData&&typeof i.nodeCachedData=="object"&&(typeof i.nodeCachedData.seed!="string"&&(i.nodeCachedData.seed="seed"),(typeof i.nodeCachedData.writeDelay!="number"||i.nodeCachedData.writeDelay<0)&&(i.nodeCachedData.writeDelay=1e3*7),!i.nodeCachedData.path||typeof i.nodeCachedData.path!="string")){var s=E(new Error("INVALID cached data configuration, 'path' MUST be set"));s.phase="configuration",i.onError(s),i.nodeCachedData=void 0}return i},a.mergeConfigurationOptions=function(i,p){i===void 0&&(i=null),p===void 0&&(p=null);var s=f.Utilities.recursiveClone(p||{});return f.Utilities.forEachProperty(i,function(e,t){e==="ignoreDuplicateModules"&&typeof s.ignoreDuplicateModules!="undefined"?s.ignoreDuplicateModules=s.ignoreDuplicateModules.concat(t):e==="paths"&&typeof s.paths!="undefined"?f.Utilities.forEachProperty(t,function(r,n){return s.paths[r]=n}):e==="config"&&typeof s.config!="undefined"?f.Utilities.forEachProperty(t,function(r,n){return s.config[r]=n}):s[e]=f.Utilities.recursiveClone(t)}),a.validateConfigurationOptions(s)},a}();f.ConfigurationOptionsUtil=h;var _=function(){function a(i,p){if(this._env=i,this.options=h.mergeConfigurationOptions(p),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var s=this.options.nodeRequire.main.filename,e=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));this.options.baseUrl=s.substring(0,e+1)}if(this.options.nodeMain&&this._env.isNode){var s=this.options.nodeMain,e=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));this.options.baseUrl=s.substring(0,e+1)}}}return a.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var i=0;i=5)){if(g.length0?(l=g.slice(0,16),c=g.slice(16),n.record(60,r)):n.record(61,r),v()})}},e.prototype._verifyCachedData=function(t,r,n,u,o){var c=this;!u||t.cachedDataRejected||setTimeout(function(){var l=c._crypto.createHash("md5").update(r,"utf8").digest();u.equals(l)||(o.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+n+"' now, but a RESTART IS REQUIRED")),c._fs.unlink(n,function(d){d&&o.getConfig().onError(d)}))},Math.ceil(5e3*(1+Math.random())))},e._BOM=65279,e._PREFIX="(function (require, define, __filename, __dirname) { ",e._SUFFIX=` });`,e}();function p(e,t){if(t.__$__isRecorded)return t;var r=function(u){e.record(33,u);try{return t(u)}finally{e.record(34,u)}};return r.__$__isRecorded=!0,r}f.ensureRecordedNodeRequire=p;function s(e){return new E(e)}f.createScriptLoader=s})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(f){var E=function(){function s(e){var t=e.lastIndexOf("/");t!==-1?this.fromModulePath=e.substr(0,t+1):this.fromModulePath=""}return s._normalizeModuleId=function(e){var t=e,r;for(r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),t},s.prototype.resolveModule=function(e){var t=e;return f.Utilities.isAbsolutePath(t)||(f.Utilities.startsWith(t,"./")||f.Utilities.startsWith(t,"../"))&&(t=s._normalizeModuleId(this.fromModulePath+t)),t},s.ROOT=new s(""),s}();f.ModuleIdResolver=E;var h=function(){function s(e,t,r,n,u,o){this.id=e,this.strId=t,this.dependencies=r,this._callback=n,this._errorback=u,this.moduleIdResolver=o,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return s._safeInvokeFunction=function(e,t){try{return{returnedValue:e.apply(f.global,t),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},s._invokeFactory=function(e,t,r,n){return e.isBuild()&&!f.Utilities.isAnonymousModule(t)?{returnedValue:null,producedError:null}:e.shouldCatchError()?this._safeInvokeFunction(r,n):{returnedValue:r.apply(f.global,n),producedError:null}},s.prototype.complete=function(e,t,r){this._isComplete=!0;var n=null;if(this._callback)if(typeof this._callback=="function"){e.record(21,this.strId);var u=s._invokeFactory(t,this.strId,this._callback,r);n=u.producedError,e.record(22,this.strId),!n&&typeof u.returnedValue!="undefined"&&(!this.exportsPassedIn||f.Utilities.isEmpty(this.exports))&&(this.exports=u.returnedValue)}else this.exports=this._callback;if(n){var o=f.ensureError(n);o.phase="factory",o.moduleId=this.strId,this.error=o,t.onError(o)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},s.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,this._errorback?(this._errorback(e),!0):!1},s.prototype.isComplete=function(){return this._isComplete},s}();f.Module=h;var _=function(){function s(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return s.prototype.getMaxModuleId=function(){return this._nextId},s.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return typeof t=="undefined"&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},s.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},s}(),a=function(){function s(e){this.id=e}return s.EXPORTS=new s(0),s.MODULE=new s(1),s.REQUIRE=new s(2),s}();f.RegularDependency=a;var i=function(){function s(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}return s}();f.PluginDependency=i;var p=function(){function s(e,t,r,n,u){u===void 0&&(u=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=u,this._defineFunc=r,this._requireFunc=n,this._moduleIdProvider=new _,this._config=new f.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}return s.prototype.reset=function(){return new s(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},s.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},s.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},s._findRelevantLocationInStack=function(e,t){for(var r=function(m){return m.replace(/\\/g,"/")},n=r(e),u=t.split(/\n/),o=0;o=0){var n=t.resolveModule(e.substr(0,r)),u=t.resolveModule(e.substr(r+1)),o=this._moduleIdProvider.getModuleId(n+"!"+u),c=this._moduleIdProvider.getModuleId(n);return new i(o,c,u)}return new a(this._moduleIdProvider.getModuleId(t.resolveModule(e)))},s.prototype._normalizeDependencies=function(e,t){for(var r=[],n=0,u=0,o=e.length;u0;){var d=l.shift(),v=this._modules2[d];v&&(c=v.onDependencyError(r)||c);var y=this._inverseDependencies2[d];if(y)for(var u=0,o=y.length;u0;){var l=c.shift(),d=l.dependencies;if(d)for(var u=0,o=d.length;u=n.length)t._onLoadError(e,l);else{var d=n[o],v=t.getRecorder();if(t._config.isBuild()&&d==="empty:"){t._buildInfoPath[e]=d,t.defineModule(t._moduleIdProvider.getStrModuleId(e),[],null,null,null),t._onLoad(e);return}v.record(10,d),t._scriptLoader.load(t,d,function(){t._config.isBuild()&&(t._buildInfoPath[e]=d),v.record(11,d),t._onLoad(e)},function(y){v.record(12,d),c(y)})}};c(null)}},s.prototype._loadPluginDependency=function(e,t){var r=this;if(!(this._modules2[t.id]||this._knownModules2[t.id])){this._knownModules2[t.id]=!0;var n=function(u){r.defineModule(r._moduleIdProvider.getStrModuleId(t.id),[],u,null,null)};n.error=function(u){r._config.onError(r._createLoadError(t.id,u))},e.load(t.pluginParam,this._createRequire(E.ROOT),n,this._config.getOptionsLiteral())}},s.prototype._resolve=function(e){var t=this,r=e.dependencies;if(r)for(var n=0,u=r.length;n `)),e.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[o.id]=this._inverseDependencies2[o.id]||[],this._inverseDependencies2[o.id].push(e.id),o instanceof i){var d=this._modules2[o.pluginId];if(d&&d.isComplete()){this._loadPluginDependency(d.exports,o);continue}var v=this._inversePluginDependencies2.get(o.pluginId);v||(v=[],this._inversePluginDependencies2.set(o.pluginId,v)),v.push(o),this._loadModule(o.pluginId);continue}this._loadModule(o.id)}e.unresolvedDependenciesCount===0&&this._onModuleComplete(e)},s.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var n=e.dependencies,u=[];if(n)for(var o=0,c=n.length;o