amis
Version:
一种MIS页面生成工具
11 lines (10 loc) • 181 kB
JavaScript
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.28.1(5871d139726f045842cd7dcb06c5465ca4eeaf1d)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/(function(){var z=["require","exports","vs/base/common/platform","vs/editor/common/core/position","vs/base/common/errors","vs/base/common/strings","vs/editor/common/core/range","vs/base/common/lifecycle","vs/base/common/stopwatch","vs/base/common/event","vs/base/common/diff/diff","vs/base/common/types","vs/base/common/uint","vs/base/common/uri","vs/base/common/diff/diffChange","vs/base/common/functional","vs/base/common/iterator","vs/base/common/keyCodes","vs/base/common/linkedList","vs/base/common/process","vs/base/common/path","vs/base/common/cancellation","vs/base/common/hash","vs/editor/common/core/characterClassifier","vs/editor/common/core/selection","vs/editor/common/core/token","vs/editor/common/diff/diffComputer","vs/editor/common/model/wordHelper","vs/editor/common/modes/linkComputer","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/standalone/standaloneEnums","vs/editor/common/standalone/standaloneBase","vs/editor/common/viewModel/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],V=function(I){for(var t=[],E=0,y=I.length;E<y;E++)t[E]=z[I[E]];return t},he=this,de=typeof global=="object"?global:{},X;(function(I){I.global=he;var t=function(){function E(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1}return Object.defineProperty(E.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),E.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=E._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 I.global.importScripts=="function")},E._isWindows=function(){return typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process!="undefined"?process.platform==="win32":!1},E}();I.Environment=t})(X||(X={}));var X;(function(I){var t=function(){function p(s,h,a){this.type=s,this.detail=h,this.timestamp=a}return p}();I.LoaderEvent=t;var E=function(){function p(s){this._events=[new t(1,"",s)]}return p.prototype.record=function(s,h){this._events.push(new t(s,h,I.Utilities.getHighPerformanceTimestamp()))},p.prototype.getEvents=function(){return this._events},p}();I.LoaderEventRecorder=E;var y=function(){function p(){}return p.prototype.record=function(s,h){},p.prototype.getEvents=function(){return[]},p.INSTANCE=new p,p}();I.NullLoaderEventRecorder=y})(X||(X={}));var X;(function(I){var t=function(){function E(){}return E.fileUriToFilePath=function(y,p){if(p=decodeURI(p).replace(/%23/g,"#"),y){if(/^file:\/\/\//.test(p))return p.substr(8);if(/^file:\/\//.test(p))return p.substr(5)}else if(/^file:\/\//.test(p))return p.substr(7);return p},E.startsWith=function(y,p){return y.length>=p.length&&y.substr(0,p.length)===p},E.endsWith=function(y,p){return y.length>=p.length&&y.substr(y.length-p.length)===p},E.containsQueryString=function(y){return/^[^\#]*\?/gi.test(y)},E.isAbsolutePath=function(y){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(y)},E.forEachProperty=function(y,p){if(y){var s=void 0;for(s in y)y.hasOwnProperty(s)&&p(s,y[s])}},E.isEmpty=function(y){var p=!0;return E.forEachProperty(y,function(){p=!1}),p},E.recursiveClone=function(y){if(!y||typeof y!="object"||y instanceof RegExp||!Array.isArray(y)&&Object.getPrototypeOf(y)!==Object.prototype)return y;var p=Array.isArray(y)?[]:{};return E.forEachProperty(y,function(s,h){h&&typeof h=="object"?p[s]=E.recursiveClone(h):p[s]=h}),p},E.generateAnonymousModule=function(){return"===anonymous"+E.NEXT_ANONYMOUS_ID+++"==="},E.isAnonymousModule=function(y){return E.startsWith(y,"===anonymous")},E.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=I.global.performance&&typeof I.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?I.global.performance.now():Date.now()},E.NEXT_ANONYMOUS_ID=1,E.PERFORMANCE_NOW_PROBED=!1,E.HAS_PERFORMANCE_NOW=!1,E}();I.Utilities=t})(X||(X={}));var X;(function(I){function t(p){if(p instanceof Error)return p;var s=new Error(p.message||String(p)||"Unknown Error");return p.stack&&(s.stack=p.stack),s}I.ensureError=t;var E=function(){function p(){}return p.validateConfigurationOptions=function(s){function h(l){if(l.phase==="loading"){console.error('Loading "'+l.moduleId+'" failed'),console.error(l),console.error("Here are the modules that depend on it:"),console.error(l.neededBy);return}if(l.phase==="factory"){console.error('The factory method of "'+l.moduleId+'" has thrown an exception'),console.error(l);return}}if(s=s||{},typeof s.baseUrl!="string"&&(s.baseUrl=""),typeof s.isBuild!="boolean"&&(s.isBuild=!1),typeof s.paths!="object"&&(s.paths={}),typeof s.config!="object"&&(s.config={}),typeof s.catchError=="undefined"&&(s.catchError=!1),typeof s.recordStats=="undefined"&&(s.recordStats=!1),typeof s.urlArgs!="string"&&(s.urlArgs=""),typeof s.onError!="function"&&(s.onError=h),Array.isArray(s.ignoreDuplicateModules)||(s.ignoreDuplicateModules=[]),s.baseUrl.length>0&&(I.Utilities.endsWith(s.baseUrl,"/")||(s.baseUrl+="/")),typeof s.cspNonce!="string"&&(s.cspNonce=""),typeof s.preferScriptTags=="undefined"&&(s.preferScriptTags=!1),Array.isArray(s.nodeModules)||(s.nodeModules=[]),s.nodeCachedData&&typeof s.nodeCachedData=="object"&&(typeof s.nodeCachedData.seed!="string"&&(s.nodeCachedData.seed="seed"),(typeof s.nodeCachedData.writeDelay!="number"||s.nodeCachedData.writeDelay<0)&&(s.nodeCachedData.writeDelay=1e3*7),!s.nodeCachedData.path||typeof s.nodeCachedData.path!="string")){var a=t(new Error("INVALID cached data configuration, 'path' MUST be set"));a.phase="configuration",s.onError(a),s.nodeCachedData=void 0}return s},p.mergeConfigurationOptions=function(s,h){s===void 0&&(s=null),h===void 0&&(h=null);var a=I.Utilities.recursiveClone(h||{});return I.Utilities.forEachProperty(s,function(l,f){l==="ignoreDuplicateModules"&&typeof a.ignoreDuplicateModules!="undefined"?a.ignoreDuplicateModules=a.ignoreDuplicateModules.concat(f):l==="paths"&&typeof a.paths!="undefined"?I.Utilities.forEachProperty(f,function(S,c){return a.paths[S]=c}):l==="config"&&typeof a.config!="undefined"?I.Utilities.forEachProperty(f,function(S,c){return a.config[S]=c}):a[l]=I.Utilities.recursiveClone(f)}),p.validateConfigurationOptions(a)},p}();I.ConfigurationOptionsUtil=E;var y=function(){function p(s,h){if(this._env=s,this.options=E.mergeConfigurationOptions(h),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 a=this.options.nodeRequire.main.filename,l=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,l+1)}if(this.options.nodeMain&&this._env.isNode){var a=this.options.nodeMain,l=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,l+1)}}}return p.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var s=0;s<this.options.ignoreDuplicateModules.length;s++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[s]]=!0},p.prototype._createNodeModulesMap=function(){this.nodeModulesMap=Object.create(null);for(var s=0,h=this.options.nodeModules;s<h.length;s++){var a=h[s];this.nodeModulesMap[a]=!0}},p.prototype._createSortedPathsRules=function(){var s=this;this.sortedPathsRules=[],I.Utilities.forEachProperty(this.options.paths,function(h,a){Array.isArray(a)?s.sortedPathsRules.push({from:h,to:a}):s.sortedPathsRules.push({from:h,to:[a]})}),this.sortedPathsRules.sort(function(h,a){return a.from.length-h.from.length})},p.prototype.cloneAndMerge=function(s){return new p(this._env,E.mergeConfigurationOptions(s,this.options))},p.prototype.getOptionsLiteral=function(){return this.options},p.prototype._applyPaths=function(s){for(var h,a=0,l=this.sortedPathsRules.length;a<l;a++)if(h=this.sortedPathsRules[a],I.Utilities.startsWith(s,h.from)){for(var f=[],S=0,c=h.to.length;S<c;S++)f.push(h.to[S]+s.substr(h.from.length));return f}return[s]},p.prototype._addUrlArgsToUrl=function(s){return I.Utilities.containsQueryString(s)?s+"&"+this.options.urlArgs:s+"?"+this.options.urlArgs},p.prototype._addUrlArgsIfNecessaryToUrl=function(s){return this.options.urlArgs?this._addUrlArgsToUrl(s):s},p.prototype._addUrlArgsIfNecessaryToUrls=function(s){if(this.options.urlArgs)for(var h=0,a=s.length;h<a;h++)s[h]=this._addUrlArgsToUrl(s[h]);return s},p.prototype.moduleIdToPaths=function(s){var h=this.nodeModulesMap[s]===!0||this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(s);if(h)return this.isBuild()?["empty:"]:["node|"+s];var a=s,l;if(!I.Utilities.endsWith(a,".js")&&!I.Utilities.isAbsolutePath(a)){l=this._applyPaths(a);for(var f=0,S=l.length;f<S;f++)this.isBuild()&&l[f]==="empty:"||(I.Utilities.isAbsolutePath(l[f])||(l[f]=this.options.baseUrl+l[f]),!I.Utilities.endsWith(l[f],".js")&&!I.Utilities.containsQueryString(l[f])&&(l[f]=l[f]+".js"))}else!I.Utilities.endsWith(a,".js")&&!I.Utilities.containsQueryString(a)&&(a=a+".js"),l=[a];return this._addUrlArgsIfNecessaryToUrls(l)},p.prototype.requireToUrl=function(s){var h=s;return I.Utilities.isAbsolutePath(h)||(h=this._applyPaths(h)[0],I.Utilities.isAbsolutePath(h)||(h=this.options.baseUrl+h)),this._addUrlArgsIfNecessaryToUrl(h)},p.prototype.isBuild=function(){return this.options.isBuild},p.prototype.isDuplicateMessageIgnoredFor=function(s){return this.ignoreDuplicateModulesMap.hasOwnProperty(s)},p.prototype.getConfigForModule=function(s){if(this.options.config)return this.options.config[s]},p.prototype.shouldCatchError=function(){return this.options.catchError},p.prototype.shouldRecordStats=function(){return this.options.recordStats},p.prototype.onError=function(s){this.options.onError(s)},p}();I.Configuration=y})(X||(X={}));var X;(function(I){var t=function(){function a(l){this._env=l,this._scriptLoader=null,this._callbackMap={}}return a.prototype.load=function(l,f,S,c){var g=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new y;else if(this._env.isElectronRenderer){var d=l.getConfig().getOptionsLiteral().preferScriptTags;d?this._scriptLoader=new E:this._scriptLoader=new p(this._env)}else this._env.isNode?this._scriptLoader=new p(this._env):this._scriptLoader=new E;var v={callback:S,errorback:c};if(this._callbackMap.hasOwnProperty(f)){this._callbackMap[f].push(v);return}this._callbackMap[f]=[v],this._scriptLoader.load(l,f,function(){return g.triggerCallback(f)},function(i){return g.triggerErrorback(f,i)})},a.prototype.triggerCallback=function(l){var f=this._callbackMap[l];delete this._callbackMap[l];for(var S=0;S<f.length;S++)f[S].callback()},a.prototype.triggerErrorback=function(l,f){var S=this._callbackMap[l];delete this._callbackMap[l];for(var c=0;c<S.length;c++)S[c].errorback(f)},a}(),E=function(){function a(){}return a.prototype.attachListeners=function(l,f,S){var c=function(){l.removeEventListener("load",g),l.removeEventListener("error",d)},g=function(v){c(),f()},d=function(v){c(),S(v)};l.addEventListener("load",g),l.addEventListener("error",d)},a.prototype.load=function(l,f,S,c){if(/^node\|/.test(f)){var g=l.getConfig().getOptionsLiteral(),d=s(l.getRecorder(),g.nodeRequire||I.global.nodeRequire),v=f.split("|"),i=null;try{i=d(v[1])}catch(n){c(n);return}l.enqueueDefineAnonymousModule([],function(){return i}),S()}else{var o=document.createElement("script");o.setAttribute("async","async"),o.setAttribute("type","text/javascript"),this.attachListeners(o,S,c);var _=l.getConfig().getOptionsLiteral().trustedTypesPolicy;_&&(f=_.createScriptURL(f)),o.setAttribute("src",f);var L=l.getConfig().getOptionsLiteral().cspNonce;L&&o.setAttribute("nonce",L),document.getElementsByTagName("head")[0].appendChild(o)}},a}(),y=function(){function a(){}return a.prototype.load=function(l,f,S,c){var g=l.getConfig().getOptionsLiteral().trustedTypesPolicy,d=/^((http:)|(https:)|(file:))/.test(f)&&f.substring(0,self.origin.length)!==self.origin;if(!d){fetch(f).then(function(v){if(v.status!==200)throw new Error(v.statusText);return v.text()}).then(function(v){v=v+`
//# sourceURL=`+f;var i=g?self.eval(g.createScript("",v)):new Function(v);i.call(self),S()}).then(void 0,c);return}try{g&&(f=g.createScriptURL(f)),importScripts(f),S()}catch(v){c(v)}},a}(),p=function(){function a(l){this._env=l,this._didInitialize=!1,this._didPatchNodeRequire=!1}return a.prototype._init=function(l){this._didInitialize||(this._didInitialize=!0,this._fs=l("fs"),this._vm=l("vm"),this._path=l("path"),this._crypto=l("crypto"))},a.prototype._initNodeRequire=function(l,f){var S=f.getConfig().getOptionsLiteral().nodeCachedData;if(!S||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var c=this,g=l("module");function d(v){var i=v.constructor,o=function(L){try{return v.require(L)}finally{}};return o.resolve=function(L,n){return i._resolveFilename(L,v,!1,n)},o.resolve.paths=function(L){return i._resolveLookupPaths(L,v)},o.main=process.mainModule,o.extensions=i._extensions,o.cache=i._cache,o}g.prototype._compile=function(v,i){var o=g.wrap(v.replace(/^#!.*/,"")),_=f.getRecorder(),L=c._getCachedDataPath(S,i),n={filename:i},r;try{var u=c._fs.readFileSync(L);r=u.slice(0,16),n.cachedData=u.slice(16),_.record(60,L)}catch(P){_.record(61,L)}var m=new c._vm.Script(o,n),C=m.runInThisContext(n),b=c._path.dirname(i),N=d(this),w=[this.exports,N,this,i,b,process,de,Buffer],M=C.apply(this.exports,w);return c._handleCachedData(m,o,L,!n.cachedData,f),c._verifyCachedData(m,o,L,r,f),M}},a.prototype.load=function(l,f,S,c){var g=this,d=l.getConfig().getOptionsLiteral(),v=s(l.getRecorder(),d.nodeRequire||I.global.nodeRequire),i=d.nodeInstrumenter||function(C){return C};this._init(v),this._initNodeRequire(v,l);var o=l.getRecorder();if(/^node\|/.test(f)){var _=f.split("|"),L=null;try{L=v(_[1])}catch(C){c(C);return}l.enqueueDefineAnonymousModule([],function(){return L}),S()}else{f=I.Utilities.fileUriToFilePath(this._env.isWindows,f);var n=this._path.normalize(f),r=this._getElectronRendererScriptPathOrUri(n),u=Boolean(d.nodeCachedData),m=u?this._getCachedDataPath(d.nodeCachedData,f):void 0;this._readSourceAndCachedData(n,m,o,function(C,b,N,w){if(C){c(C);return}var M;b.charCodeAt(0)===a._BOM?M=a._PREFIX+b.substring(1)+a._SUFFIX:M=a._PREFIX+b+a._SUFFIX,M=i(M,n);var P={filename:r,cachedData:N},U=g._createAndEvalScript(l,M,P,S,c);g._handleCachedData(U,M,m,u&&!N,l),g._verifyCachedData(U,M,m,w,l)})}},a.prototype._createAndEvalScript=function(l,f,S,c,g){var d=l.getRecorder();d.record(31,S.filename);var v=new this._vm.Script(f,S),i=v.runInThisContext(S),o=l.getGlobalAMDDefineFunc(),_=!1,L=function(){return _=!0,o.apply(null,arguments)};return L.amd=o.amd,i.call(I.global,l.getGlobalAMDRequireFunc(),L,S.filename,this._path.dirname(S.filename)),d.record(32,S.filename),_?c():g(new Error("Didn't receive define call in "+S.filename+"!")),v},a.prototype._getElectronRendererScriptPathOrUri=function(l){if(!this._env.isElectronRenderer)return l;var f=l.match(/^([a-z])\:(.*)/i);return f?"file:///"+(f[1].toUpperCase()+":"+f[2]).replace(/\\/g,"/"):"file://"+l},a.prototype._getCachedDataPath=function(l,f){var S=this._crypto.createHash("md5").update(f,"utf8").update(l.seed,"utf8").update(process.arch,"").digest("hex"),c=this._path.basename(f).replace(/\.js$/,"");return this._path.join(l.path,c+"-"+S+".code")},a.prototype._handleCachedData=function(l,f,S,c,g){var d=this;l.cachedDataRejected?this._fs.unlink(S,function(v){g.getRecorder().record(62,S),d._createAndWriteCachedData(l,f,S,g),v&&g.getConfig().onError(v)}):c&&this._createAndWriteCachedData(l,f,S,g)},a.prototype._createAndWriteCachedData=function(l,f,S,c){var g=this,d=Math.ceil(c.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),v=-1,i=0,o=void 0,_=function(){setTimeout(function(){o||(o=g._crypto.createHash("md5").update(f,"utf8").digest());var L=l.createCachedData();if(!(L.length===0||L.length===v||i>=5)){if(L.length<v){_();return}v=L.length,g._fs.writeFile(S,Buffer.concat([o,L]),function(n){n&&c.getConfig().onError(n),c.getRecorder().record(63,S),_()})}},d*Math.pow(4,i++))};_()},a.prototype._readSourceAndCachedData=function(l,f,S,c){if(!f)this._fs.readFile(l,{encoding:"utf8"},c);else{var g=void 0,d=void 0,v=void 0,i=2,o=function(_){_?c(_):--i==0&&c(void 0,g,d,v)};this._fs.readFile(l,{encoding:"utf8"},function(_,L){g=L,o(_)}),this._fs.readFile(f,function(_,L){!_&&L&&L.length>0?(v=L.slice(0,16),d=L.slice(16),S.record(60,f)):S.record(61,f),o()})}},a.prototype._verifyCachedData=function(l,f,S,c,g){var d=this;!c||l.cachedDataRejected||setTimeout(function(){var v=d._crypto.createHash("md5").update(f,"utf8").digest();c.equals(v)||(g.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+S+"' now, but a RESTART IS REQUIRED")),d._fs.unlink(S,function(i){i&&g.getConfig().onError(i)}))},Math.ceil(5e3*(1+Math.random())))},a._BOM=65279,a._PREFIX="(function (require, define, __filename, __dirname) { ",a._SUFFIX=`
});`,a}();function s(a,l){if(l.__$__isRecorded)return l;var f=function(c){a.record(33,c);try{return l(c)}finally{a.record(34,c)}};return f.__$__isRecorded=!0,f}I.ensureRecordedNodeRequire=s;function h(a){return new t(a)}I.createScriptLoader=h})(X||(X={}));var X;(function(I){var t=function(){function a(l){var f=l.lastIndexOf("/");f!==-1?this.fromModulePath=l.substr(0,f+1):this.fromModulePath=""}return a._normalizeModuleId=function(l){var f=l,S;for(S=/\/\.\//;S.test(f);)f=f.replace(S,"/");for(f=f.replace(/^\.\//g,""),S=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;S.test(f);)f=f.replace(S,"/");return f=f.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),f},a.prototype.resolveModule=function(l){var f=l;return I.Utilities.isAbsolutePath(f)||(I.Utilities.startsWith(f,"./")||I.Utilities.startsWith(f,"../"))&&(f=a._normalizeModuleId(this.fromModulePath+f)),f},a.ROOT=new a(""),a}();I.ModuleIdResolver=t;var E=function(){function a(l,f,S,c,g,d){this.id=l,this.strId=f,this.dependencies=S,this._callback=c,this._errorback=g,this.moduleIdResolver=d,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return a._safeInvokeFunction=function(l,f){try{return{returnedValue:l.apply(I.global,f),producedError:null}}catch(S){return{returnedValue:null,producedError:S}}},a._invokeFactory=function(l,f,S,c){return l.isBuild()&&!I.Utilities.isAnonymousModule(f)?{returnedValue:null,producedError:null}:l.shouldCatchError()?this._safeInvokeFunction(S,c):{returnedValue:S.apply(I.global,c),producedError:null}},a.prototype.complete=function(l,f,S){this._isComplete=!0;var c=null;if(this._callback)if(typeof this._callback=="function"){l.record(21,this.strId);var g=a._invokeFactory(f,this.strId,this._callback,S);c=g.producedError,l.record(22,this.strId),!c&&typeof g.returnedValue!="undefined"&&(!this.exportsPassedIn||I.Utilities.isEmpty(this.exports))&&(this.exports=g.returnedValue)}else this.exports=this._callback;if(c){var d=I.ensureError(c);d.phase="factory",d.moduleId=this.strId,this.error=d,f.onError(d)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},a.prototype.onDependencyError=function(l){return this._isComplete=!0,this.error=l,this._errorback?(this._errorback(l),!0):!1},a.prototype.isComplete=function(){return this._isComplete},a}();I.Module=E;var y=function(){function a(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return a.prototype.getMaxModuleId=function(){return this._nextId},a.prototype.getModuleId=function(l){var f=this._strModuleIdToIntModuleId.get(l);return typeof f=="undefined"&&(f=this._nextId++,this._strModuleIdToIntModuleId.set(l,f),this._intModuleIdToStrModuleId[f]=l),f},a.prototype.getStrModuleId=function(l){return this._intModuleIdToStrModuleId[l]},a}(),p=function(){function a(l){this.id=l}return a.EXPORTS=new a(0),a.MODULE=new a(1),a.REQUIRE=new a(2),a}();I.RegularDependency=p;var s=function(){function a(l,f,S){this.id=l,this.pluginId=f,this.pluginParam=S}return a}();I.PluginDependency=s;var h=function(){function a(l,f,S,c,g){g===void 0&&(g=0),this._env=l,this._scriptLoader=f,this._loaderAvailableTimestamp=g,this._defineFunc=S,this._requireFunc=c,this._moduleIdProvider=new y,this._config=new I.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 a.prototype.reset=function(){return new a(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},a.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},a.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},a._findRelevantLocationInStack=function(l,f){for(var S=function(r){return r.replace(/\\/g,"/")},c=S(l),g=f.split(/\n/),d=0;d<g.length;d++){var v=g[d].match(/(.*):(\d+):(\d+)\)?$/);if(v){var i=v[1],o=v[2],_=v[3],L=Math.max(i.lastIndexOf(" ")+1,i.lastIndexOf("(")+1);if(i=i.substr(L),i=S(i),i===c){var n={line:parseInt(o,10),col:parseInt(_,10)};return n.line===1&&(n.col-="(function (require, define, __filename, __dirname) { ".length),n}}}throw new Error("Could not correlate define call site for needle "+l)},a.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var l=[],f=0,S=0,c=this._modules2.length;S<c;S++){var g=this._modules2[S];if(!!g){var d=this._buildInfoPath[g.id]||null,v=this._buildInfoDefineStack[g.id]||null,i=this._buildInfoDependencies[g.id];l[f++]={id:g.strId,path:d,defineLocation:d&&v?a._findRelevantLocationInStack(d,v):null,dependencies:i,shim:null,exports:g.exports}}}return l},a.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new I.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=I.NullLoaderEventRecorder.INSTANCE),this._recorder},a.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},a.prototype.enqueueDefineAnonymousModule=function(l,f){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var S=null;this._config.isBuild()&&(S=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:S,dependencies:l,callback:f}},a.prototype.defineModule=function(l,f,S,c,g,d){var v=this;d===void 0&&(d=new t(l));var i=this._moduleIdProvider.getModuleId(l);if(this._modules2[i]){this._config.isDuplicateMessageIgnoredFor(l)||console.warn("Duplicate definition of module '"+l+"'");return}var o=new E(i,l,this._normalizeDependencies(f,d),S,c,d);this._modules2[i]=o,this._config.isBuild()&&(this._buildInfoDefineStack[i]=g,this._buildInfoDependencies[i]=(o.dependencies||[]).map(function(_){return v._moduleIdProvider.getStrModuleId(_.id)})),this._resolve(o)},a.prototype._normalizeDependency=function(l,f){if(l==="exports")return p.EXPORTS;if(l==="module")return p.MODULE;if(l==="require")return p.REQUIRE;var S=l.indexOf("!");if(S>=0){var c=f.resolveModule(l.substr(0,S)),g=f.resolveModule(l.substr(S+1)),d=this._moduleIdProvider.getModuleId(c+"!"+g),v=this._moduleIdProvider.getModuleId(c);return new s(d,v,g)}return new p(this._moduleIdProvider.getModuleId(f.resolveModule(l)))},a.prototype._normalizeDependencies=function(l,f){for(var S=[],c=0,g=0,d=l.length;g<d;g++)S[c++]=this._normalizeDependency(l[g],f);return S},a.prototype._relativeRequire=function(l,f,S,c){if(typeof f=="string")return this.synchronousRequire(f,l);this.defineModule(I.Utilities.generateAnonymousModule(),f,S,c,null,l)},a.prototype.synchronousRequire=function(l,f){f===void 0&&(f=new t(l));var S=this._normalizeDependency(l,f),c=this._modules2[S.id];if(!c)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+l+"'. This is the first mention of this module!");if(!c.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+l+"'. This module has not been resolved completely yet.");if(c.error)throw c.error;return c.exports},a.prototype.configure=function(l,f){var S=this._config.shouldRecordStats();f?this._config=new I.Configuration(this._env,l):this._config=this._config.cloneAndMerge(l),this._config.shouldRecordStats()&&!S&&(this._recorder=null)},a.prototype.getConfig=function(){return this._config},a.prototype._onLoad=function(l){if(this._currentAnonymousDefineCall!==null){var f=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(l),f.dependencies,f.callback,null,f.stack)}},a.prototype._createLoadError=function(l,f){var S=this,c=this._moduleIdProvider.getStrModuleId(l),g=(this._inverseDependencies2[l]||[]).map(function(v){return S._moduleIdProvider.getStrModuleId(v)}),d=I.ensureError(f);return d.phase="loading",d.moduleId=c,d.neededBy=g,d},a.prototype._onLoadError=function(l,f){var S=this._createLoadError(l,f);this._modules2[l]||(this._modules2[l]=new E(l,this._moduleIdProvider.getStrModuleId(l),[],function(){},function(){},null));for(var c=[],g=0,d=this._moduleIdProvider.getMaxModuleId();g<d;g++)c[g]=!1;var v=!1,i=[];for(i.push(l),c[l]=!0;i.length>0;){var o=i.shift(),_=this._modules2[o];_&&(v=_.onDependencyError(S)||v);var L=this._inverseDependencies2[o];if(L)for(var g=0,d=L.length;g<d;g++){var n=L[g];c[n]||(i.push(n),c[n]=!0)}}v||this._config.onError(S)},a.prototype._hasDependencyPath=function(l,f){var S=this._modules2[l];if(!S)return!1;for(var c=[],g=0,d=this._moduleIdProvider.getMaxModuleId();g<d;g++)c[g]=!1;var v=[];for(v.push(S),c[l]=!0;v.length>0;){var i=v.shift(),o=i.dependencies;if(o)for(var g=0,d=o.length;g<d;g++){var _=o[g];if(_.id===f)return!0;var L=this._modules2[_.id];L&&!c[_.id]&&(c[_.id]=!0,v.push(L))}}return!1},a.prototype._findCyclePath=function(l,f,S){if(l===f||S===50)return[l];var c=this._modules2[l];if(!c)return null;var g=c.dependencies;if(g)for(var d=0,v=g.length;d<v;d++){var i=this._findCyclePath(g[d].id,f,S+1);if(i!==null)return i.push(l),i}return null},a.prototype._createRequire=function(l){var f=this,S=function(c,g,d){return f._relativeRequire(l,c,g,d)};return S.toUrl=function(c){return f._config.requireToUrl(l.resolveModule(c))},S.getStats=function(){return f.getLoaderEvents()},S.hasDependencyCycle=function(){return f._hasDependencyCycle},S.config=function(c,g){g===void 0&&(g=!1),f.configure(c,g)},S.__$__nodeRequire=I.global.nodeRequire,S},a.prototype._loadModule=function(l){var f=this;if(!(this._modules2[l]||this._knownModules2[l])){this._knownModules2[l]=!0;var S=this._moduleIdProvider.getStrModuleId(l),c=this._config.moduleIdToPaths(S),g=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(S.indexOf("/")===-1||g.test(S))&&c.push("node|"+S);var d=-1,v=function(i){if(d++,d>=c.length)f._onLoadError(l,i);else{var o=c[d],_=f.getRecorder();if(f._config.isBuild()&&o==="empty:"){f._buildInfoPath[l]=o,f.defineModule(f._moduleIdProvider.getStrModuleId(l),[],null,null,null),f._onLoad(l);return}_.record(10,o),f._scriptLoader.load(f,o,function(){f._config.isBuild()&&(f._buildInfoPath[l]=o),_.record(11,o),f._onLoad(l)},function(L){_.record(12,o),v(L)})}};v(null)}},a.prototype._loadPluginDependency=function(l,f){var S=this;if(!(this._modules2[f.id]||this._knownModules2[f.id])){this._knownModules2[f.id]=!0;var c=function(g){S.defineModule(S._moduleIdProvider.getStrModuleId(f.id),[],g,null,null)};c.error=function(g){S._config.onError(S._createLoadError(f.id,g))},l.load(f.pluginParam,this._createRequire(t.ROOT),c,this._config.getOptionsLiteral())}},a.prototype._resolve=function(l){var f=this,S=l.dependencies;if(S)for(var c=0,g=S.length;c<g;c++){var d=S[c];if(d===p.EXPORTS){l.exportsPassedIn=!0,l.unresolvedDependenciesCount--;continue}if(d===p.MODULE){l.unresolvedDependenciesCount--;continue}if(d===p.REQUIRE){l.unresolvedDependenciesCount--;continue}var v=this._modules2[d.id];if(v&&v.isComplete()){if(v.error){l.onDependencyError(v.error);return}l.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(d.id,l.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(d.id)+"' and '"+this._moduleIdProvider.getStrModuleId(l.id)+"'. The cyclic path follows:");var i=this._findCyclePath(d.id,l.id,0)||[];i.reverse(),i.push(d.id),console.warn(i.map(function(L){return f._moduleIdProvider.getStrModuleId(L)}).join(` =>
`)),l.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[d.id]=this._inverseDependencies2[d.id]||[],this._inverseDependencies2[d.id].push(l.id),d instanceof s){var o=this._modules2[d.pluginId];if(o&&o.isComplete()){this._loadPluginDependency(o.exports,d);continue}var _=this._inversePluginDependencies2.get(d.pluginId);_||(_=[],this._inversePluginDependencies2.set(d.pluginId,_)),_.push(d),this._loadModule(d.pluginId);continue}this._loadModule(d.id)}l.unresolvedDependenciesCount===0&&this._onModuleComplete(l)},a.prototype._onModuleComplete=function(l){var f=this,S=this.getRecorder();if(!l.isComplete()){var c=l.dependencies,g=[];if(c)for(var d=0,v=c.length;d<v;d++){var i=c[d];if(i===p.EXPORTS){g[d]=l.exports;continue}if(i===p.MODULE){g[d]={id:l.strId,config:function(){return f._config.getConfigForModule(l.strId)}};continue}if(i===p.REQUIRE){g[d]=this._createRequire(l.moduleIdResolver);continue}var o=this._modules2[i.id];if(o){g[d]=o.exports;continue}g[d]=null}l.complete(S,this._config,g);var _=this._inverseDependencies2[l.id];if(this._inverseDependencies2[l.id]=null,_)for(var d=0,v=_.length;d<v;d++){var L=_[d],n=this._modules2[L];n.unresolvedDependenciesCount--,n.unresolvedDependenciesCount===0&&this._onModuleComplete(n)}var r=this._inversePluginDependencies2.get(l.id);if(r){this._inversePluginDependencies2.delete(l.id);for(var d=0,v=r.length;d<v;d++)this._loadPluginDependency(l.exports,r[d])}}},a}();I.ModuleManager=h})(X||(X={}));var $,X;(function(I){var t=new I.Environment,E=null,y=function(a,l,f){typeof a!="string"&&(f=l,l=a,a=null),(typeof l!="object"||!Array.isArray(l))&&(f=l,l=null),l||(l=["require","exports","module"]),a?E.defineModule(a,l,f,null,null):E.enqueueDefineAnonymousModule(l,f)};y.amd={jQuery:!0};var p=function(a,l){l===void 0&&(l=!1),E.configure(a,l)},s=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){p(arguments[0]);return}if(typeof arguments[0]=="string")return E.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){E.defineModule(I.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};s.config=p,s.getConfig=function(){return E.getConfig().getOptionsLiteral()},s.reset=function(){E=E.reset()},s.getBuildInfo=function(){return E.getBuildInfo()},s.getStats=function(){return E.getLoaderEvents()},s.define=function(){return y.apply(null,arguments)};function h(){if(typeof I.global.require!="undefined"||typeof require!="undefined"){var a=I.global.require||require;if(typeof a=="function"&&typeof a.resolve=="function"){var l=I.ensureRecordedNodeRequire(E.getRecorder(),a);I.global.nodeRequire=l,s.nodeRequire=l,s.__$__nodeRequire=l}}t.isNode&&!t.isElectronRenderer?(module.exports=s,require=s):(t.isElectronRenderer||(I.global.define=y),I.global.require=s)}I.init=h,(typeof I.global.define!="function"||!I.global.define.amd)&&(E=new I.ModuleManager(t,I.createScriptLoader(t),y,s,I.Utilities.getHighPerformanceTimestamp()),typeof I.global.require!="undefined"&&typeof I.global.require!="function"&&s.config(I.global.require),$=function(){return y.apply(null,arguments)},$.amd=y.amd,typeof doNotInitLoader=="undefined"&&h())})(X||(X={})),$(z[14],V([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffChange=void 0;class E{constructor(p,s,h,a){this.originalStart=p,this.originalLength=s,this.modifiedStart=h,this.modifiedLength=a}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}t.DiffChange=E}),$(z[4],V([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotSupportedError=t.illegalState=t.illegalArgument=t.canceled=t.isPromiseCanceledError=t.transformErrorForSerialization=t.onUnexpectedExternalError=t.onUnexpectedError=t.errorHandler=t.ErrorHandler=void 0;class E{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(()=>{throw d.stack?new Error(d.message+`
`+d.stack):d},0)}}emit(d){this.listeners.forEach(v=>{v(d)})}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}t.ErrorHandler=E,t.errorHandler=new E;function y(g){a(g)||t.errorHandler.onUnexpectedError(g)}t.onUnexpectedError=y;function p(g){a(g)||t.errorHandler.onUnexpectedExternalError(g)}t.onUnexpectedExternalError=p;function s(g){if(g instanceof Error){let{name:d,message:v}=g;const i=g.stacktrace||g.stack;return{$isError:!0,name:d,message:v,stack:i}}return g}t.transformErrorForSerialization=s;const h="Canceled";function a(g){return g instanceof Error&&g.name===h&&g.message===h}t.isPromiseCanceledError=a;function l(){const g=new Error(h);return g.name=g.message,g}t.canceled=l;function f(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}t.illegalArgument=f;function S(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}t.illegalState=S;class c extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}t.NotSupportedError=c}),$(z[15],V([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0;function E(y){const p=this;let s=!1,h;return function(){return s||(s=!0,h=y.apply(p,arguments)),h}}t.once=E}),$(z[16],V([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iterable=void 0;var E;(function(y){function p(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}y.is=p;const s=Object.freeze([]);function h(){return s}y.empty=h;function*a(u){yield u}y.single=a;function l(u){return u||s}y.from=l;function f(u){return!u||u[Symbol.iterator]().next().done===!0}y.isEmpty=f;function S(u){return u[Symbol.iterator]().next().value}y.first=S;function c(u,m){for(const C of u)if(m(C))return!0;return!1}y.some=c;function g(u,m){for(const C of u)if(m(C))return C}y.find=g;function*d(u,m){for(const C of u)m(C)&&(yield C)}y.filter=d;function*v(u,m){let C=0;for(const b of u)yield m(b,C++)}y.map=v;function*i(...u){for(const m of u)for(const C of m)yield C}y.concat=i;function*o(u){for(const m of u)for(const C of m)yield C}y.concatNested=o;function _(u,m,C){let b=C;for(const N of u)b=m(b,N);return b}y.reduce=_;function*L(u,m,C=u.length){for(m<0&&(m+=u.length),C<0?C+=u.length:C>u.length&&(C=u.length);m<C;m++)yield u[m]}y.slice=L;function n(u,m=Number.POSITIVE_INFINITY){const C=[];if(m===0)return[C,u];const b=u[Symbol.iterator]();for(let N=0;N<m;N++){const w=b.next();if(w.done)return[C,y.empty()];C.push(w.value)}return[C,{[Symbol.iterator](){return b}}]}y.consume=n;function r(u,m,C=(b,N)=>b===N){const b=u[Symbol.iterator](),N=m[Symbol.iterator]();for(;;){const w=b.next(),M=N.next();if(w.done!==M.done)return!1;if(w.done)return!0;if(!C(w.value,M.value))return!1}}y.equals=r})(E=t.Iterable||(t.Iterable={}))}),$(z[17],V([0,1,4]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvedKeybinding=t.ResolvedKeybindingPart=t.ChordKeybinding=t.SimpleKeybinding=t.createSimpleKeybinding=t.createKeybinding=t.KeyChord=t.KeyCodeUtils=void 0;class y{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(o,_){this._keyCodeToStr[o]=_,this._strToKeyCode[_.toLowerCase()]=o}keyCodeToStr(o){return this._keyCodeToStr[o]}strToKeyCode(o){return this._strToKeyCode[o.toLowerCase()]||0}}const p=new y,s=new y,h=new y;(function(){function i(o,_,L=_,n=L){p.define(o,_),s.define(o,L),h.define(o,n)}i(0,"unknown"),i(1,"Backspace"),i(2,"Tab"),i(3,"Enter"),i(4,"Shift"),i(5,"Ctrl"),i(6,"Alt"),i(7,"PauseBreak"),i(8,"CapsLock"),i(9,"Escape"),i(10,"Space"),i(11,"PageUp"),i(12,"PageDown"),i(13,"End"),i(14,"Home"),i(15,"LeftArrow","Left"),i(16,"UpArrow","Up"),i(17,"RightArrow","Right"),i(18,"DownArrow","Down"),i(19,"Insert"),i(20,"Delete"),i(21,"0"),i(22,"1"),i(23,"2"),i(24,"3"),i(25,"4"),i(26,"5"),i(27,"6"),i(28,"7"),i(29,"8"),i(30,"9"),i(31,"A"),i(32,"B"),i(33,"C"),i(34,"D"),i(35,"E"),i(36,"F"),i(37,"G"),i(38,"H"),i(39,"I"),i(40,"J"),i(41,"K"),i(42,"L"),i(43,"M"),i(44,"N"),i(45,"O"),i(46,"P"),i(47,"Q"),i(48,"R"),i(49,"S"),i(50,"T"),i(51,"U"),i(52,"V"),i(53,"W"),i(54,"X"),i(55,"Y"),i(56,"Z"),i(57,"Meta"),i(58,"ContextMenu"),i(59,"F1"),i(60,"F2"),i(61,"F3"),i(62,"F4"),i(63,"F5"),i(64,"F6"),i(65,"F7"),i(66,"F8"),i(67,"F9"),i(68,"F10"),i(69,"F11"),i(70,"F12"),i(71,"F13"),i(72,"F14"),i(73,"F15"),i(74,"F16"),i(75,"F17"),i(76,"F18"),i(77,"F19"),i(78,"NumLock"),i(79,"ScrollLock"),i(80,";",";","OEM_1"),i(81,"=","=","OEM_PLUS"),i(82,",",",","OEM_COMMA"),i(83,"-","-","OEM_MINUS"),i(84,".",".","OEM_PERIOD"),i(85,"/","/","OEM_2"),i(86,"`","`","OEM_3"),i(110,"ABNT_C1"),i(111,"ABNT_C2"),i(87,"[","[","OEM_4"),i(88,"\\","\\","OEM_5"),i(89,"]","]","OEM_6"),i(90,"'","'","OEM_7"),i(91,"OEM_8"),i(92,"OEM_102"),i(93,"NumPad0"),i(94,"NumPad1"),i(95,"NumPad2"),i(96,"NumPad3"),i(97,"NumPad4"),i(98,"NumPad5"),i(99,"NumPad6"),i(100,"NumPad7"),i(101,"NumPad8"),i(102,"NumPad9"),i(103,"NumPad_Multiply"),i(104,"NumPad_Add"),i(105,"NumPad_Separator"),i(106,"NumPad_Subtract"),i(107,"NumPad_Decimal"),i(108,"NumPad_Divide")})();var a;(function(i){function o(u){return p.keyCodeToStr(u)}i.toString=o;function _(u){return p.strToKeyCode(u)}i.fromString=_;function L(u){return s.keyCodeToStr(u)}i.toUserSettingsUS=L;function n(u){return h.keyCodeToStr(u)}i.toUserSettingsGeneral=n;function r(u){return s.strToKeyCode(u)||h.strToKeyCode(u)}i.fromUserSettings=r})(a=t.KeyCodeUtils||(t.KeyCodeUtils={}));function l(i,o){const _=(o&65535)<<16>>>0;return(i|_)>>>0}t.KeyChord=l;function f(i,o){if(i===0)return null;const _=(i&65535)>>>0,L=(i&4294901760)>>>16;return L!==0?new g([S(_,o),S(L,o)]):new g([S(_,o)])}t.createKeybinding=f;function S(i,o){const _=!!(i&2048),L=!!(i&256),n=o===2?L:_,r=!!(i&1024),u=!!(i&512),m=o===2?_:L,C=i&255;return new c(n,r,u,m,C)}t.createSimpleKeybinding=S;class c{constructor(o,_,L,n,r){this.ctrlKey=o,this.shiftKey=_,this.altKey=L,this.metaKey=n,this.keyCode=r}equals(o){return this.ctrlKey===o.ctrlKey&&this.shiftKey===o.shiftKey&&this.altKey===o.altKey&&this.metaKey===o.metaKey&&this.keyCode===o.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new g([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}t.SimpleKeybinding=c;class g{constructor(o){if(o.length===0)throw(0,E.illegalArgument)("parts");this.parts=o}}t.ChordKeybinding=g;class d{constructor(o,_,L,n,r,u){this.ctrlKey=o,this.shiftKey=_,this.altKey=L,this.metaKey=n,this.keyLabel=r,this.keyAriaLabel=u}}t.ResolvedKeybindingPart=d;class v{}t.ResolvedKeybinding=v}),$(z[7],V([0,1,15,16]),function(I,t,E,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImmortalReference=t.MutableDisposable=t.Disposable=t.DisposableStore=t.toDisposable=t.combinedDisposable=t.dispose=t.isDisposable=t.MultiDisposeError=t.markAsSingleton=t.setDisposableTracker=void 0;const p=!1;let s=null;function h(u){s=u}if(t.setDisposableTracker=h,p){const u="__is_disposable_tracked__";h(new class{trackDisposable(m){const C=new Error("Potentially leaked disposable").stack;setTimeout(()=>{m[u]||console.log(C)},3e3)}setParent(m,C){if(m&&m!==L.None)try{m[u]=!0}catch(b){}}markAsDisposed(m){if(m&&m!==L.None)try{m[u]=!0}catch(C){}}markAsSingleton(m){}})}function a(u){return s==null||s.trackDisposable(u),u}function l(u){s==null||s.markAsDisposed(u)}function f(u,m){s==null||s.setParent(u,m)}function S(u,m){if(!!s)for(const C of u)s.setParent(C,m)}function c(u){return s==null||s.markAsSingleton(u),u}t.markAsSingleton=c;class g extends Error{constructor(m){super(`Encountered errors while disposing of store. Errors: [${m.join(", ")}]`);this.errors=m}}t.MultiDisposeError=g;function d(u){return typeof u.dispose=="function"&&u.dispose.length===0}t.isDisposable=d;function v(u){if(y.Iterable.is(u)){let m=[];for(const C of u)if(C)try{C.dispose()}catch(b){m.push(b)}if(m.length===1)throw m[0];if(m.length>1)throw new g(m);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}t.dispose=v;function i(...u){const m=o(()=>v(u));return S(u,m),m}t.combinedDisposable=i;function o(u){const m=a({dispose:(0,E.once)(()=>{l(m),u()})});return m}t.toDisposable=o;class _{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(l(this),this._isDisposed=!0,this.clear())}clear(){try{v(this._toDispose.values())}finally{this._toDispose.clear()}}add(m){if(!m)return m;if(m===this)throw new Error("Cannot register a disposable on itself!");return f(m,this),this._isDisposed?_.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(m),m}}t.DisposableStore=_,_.DISABLE_DISPOSED_WARNING=!1;class L{constructor(){this._store=new _,a(this),f(this._store,this)}dispose(){l(this),this._store.dispose()}_register(m){if(m===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(m)}}t.Disposable=L,L.None=Object.freeze({dispose(){}});class n{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(m){var C;this._isDisposed||m===this._value||((C=this._value)===null||C===void 0||C.dispose(),m&&f(m,this),this._value=m)}clear(){this.value=void 0}dispose(){var m;this._isDisposed=!0,l(this),(m=this._value)===null||m===void 0||m.dispose(),this._value=void 0}clearAndLeak(){const m=this._value;return this._value=void 0,m&&f(m,null),m}}t.MutableDisposable=n;class r{constructor(m){this.object=m}dispose(){}}t.ImmortalReference=r}),$(z[18],V([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedList=void 0;class E{constructor(s){this.element=s,this.next=E.Undefined,this.prev=E.Undefined}}E.Undefined=new E(void 0);class y{constructor(){this._first=E.Undefined,this._last=E.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===E.Undefined}clear(){let s=this._first;for(;s!==E.Undefined;){const h=s.next;s.prev=E.Undefined,s.next=E.Undefined,s=h}this._first=E.Undefined,this._last=E.Undefined,this._size=0}unshift(s){return this._insert(s,!1)}push(s){return this._insert(s,!0)}_insert(s,h){const a=new E(s);if(this._first===E.Undefined)this._first=a,this._last=a;else if(h){const f=this._last;this._last=a,a.prev=f,f.next=a}else{const f=this._first;this._first=a,a.next=f,f.prev=a}this._size+=1;let l=!1;return()=>{l||(l=!0,this._remove(a))}}shift(){if(this._first!==E.Undefined){const s=this._first.element;return this._remove(this._first),s}}pop(){if(this._last!==E.Undefined){const s=this._last.element;return this._remove(this._last),s}}_remove(s){if(s.prev!==E.Undefined&&s.next!==E.Undefined){const h=s.prev;h.next=s.next,s.next.prev=h}else s.prev===E.Undefined&&s.next===E.Undefined?(this._first=E.Undefined,this._last=E.Undefined):s.next===E.Undefined?(this._last=this._last.prev,this._last.next=E.Undefined):s.prev===E.Undefined&&(this._first=this._first.next,this._first.prev=E.Undefined);this._size-=1}*[Symbol.iterator](){let s=this._first;for(;s!==E.Undefined;)yield s.element,s=s.next}}t.LinkedList=y}),$(z[2],V([0,1]),function(I,t){"use strict";var E;Object.defineProperty(t,"__esModule",{value:!0}),t.isLittleEndian=t.OS=t.setImmediate=t.userAgent=t.isIOS=t.isWeb=t.isNative=t.isLinux=t.isMacintosh=t.isWindows=t.globals=void 0;const y="en";let p=!1,s=!1,h=!1,a=!1,l=!1,f=!1,S=!1,c,g=y,d,v;t.globals=typeof self=="object"?self:typeof global=="object"?global:{};let i;typeof t.globals.vscode!="undefined"&&typeof t.globals.vscode.process!="undefined"?i=t.globals.vscode.process:typeof process!="undefined"&&(i=process);const o=typeof((E=i==null?void 0:i.versions)===null||E===void 0?void 0:E.electron)=="string"&&i.type==="renderer";if(typeof navigator=="object"&&!o)v=navigator.userAgent,p=v.indexOf("Windows")>=0,s=v.indexOf("Macintosh")>=0,S=(v.indexOf("Macintosh")>=0||v.indexOf("iPad")>=0||v.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=v.indexOf("Linux")>=0,f=!0,c=navigator.language,g=c;else if(typeof i=="object"){p=i.platform==="win32",s=i.platform==="darwin",h=i.platform==="linux",a=h&&!!i.env.SNAP&&!!i.env.SNAP_REVISION,c=y,g=y;const u=i.env.VSCODE_NLS_CONFIG;if(u)try{const m=JSON.parse(u),C=m.availableLanguages["*"];c=m.locale,g=C||y,d=m._translationsConfigFile}catch(m){}l=!0}else console.error("Unable to resolve platform.");let _=0;s?_=1:p?_=3:h&&(_=2),t.isWindows=p,t.isMacintosh=s,t.isLinux=h,t.isNative=l,t.isWeb=f,t.isIOS=S,t.userAgent=v,t.setImmediate=function(){if(t.globals.setImmediate)return t.globals.setImmediate.bind(t.globals);if(typeof t.globals.postMessage=="function"&&!t.globals.importScripts){let C=[];t.globals.addEventListener("message",N=>{if(N.data&&N.data.vscodeSetImmediateId)for(let w=0,M=C.length;w<M;w++){const P=C[w];if(P.id===N.data.vscodeSetImmediateId){C.splice(w,1),P.callback();return}}});let b=0;return N=>{const w=++b;C.push({id:w,callback:N}),t.globals.postMessage({vscodeSetImmediateId:w},"*")}}if(typeof(i==null?void 0:i.nextTick)=="function")return i.nextTick.bind(i);const m=Promise.resolve();return C=>m.then(C)}(),t.OS=s||S?2:p?1:3;let L=!0,n=!1;function r(){if(!n){n=!0;const u=new Uint8Array(2);u[0]=1,u[1]=2,L=new Uint16Array(u.buffer)[0]===(2<<8)+1}return L}t.isLittleEndian=r}),$(z[19],V([0,1,2]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.platform=t.env=t.cwd=void 0;let y;if(typeof E.globals.vscode!="undefined"&&typeof E.globals.vscode.process!="undefined"){const p=E.globals.vscode.process;y={get platform(){return p.platform},get arch(){return p.arch},get env(){return p.env},cwd(){return p.cwd()},nextTick(s){return(0,E.setImmediate)(s)}}}else typeof process!="undefined"?y={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()},nextTick(p){return process.nextTick(p)}}:y={get platform(){return E.isWindows?"win32":E.isMacintosh?"darwin":"linux"},get arch(){},nextTick(p){return(0,E.setImmediate)(p)},get env(){return{}},cwd(){return"/"}};t.cwd=y.cwd,t.env=y.env,t.platform=y.platform}),$(z[20],V([0,1,19]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sep=t.extname=t.basename=t.dirname=t.relative=t.resolve=t.normalize=t.posix=t.win32=void 0;const y=65,p=97,s=90,h=122,a=46,l=47,f=92,S=58,c=63;class g extends Error{constructor(r,u,m){let C;typeof u=="string"&&u.indexOf("not ")===0?(C="must not be",u=u.replace(/^not /,"")):C="must be";const b=r.indexOf(".")!==-1?"property":"argument";let N=`The "${r}" ${b} ${C} of type ${u}`;N+=`. Received type ${typeof m}`,super(N),this.code="ERR_INVALID_ARG_TYPE"}}function d(n,r){if(typeof n!="string")throw new g(r,"string",n)}function v(n){return n===l||n===f}function i(n){return n===l}function o(n){return n>=y&&n<=s||n>=p&&n<=h}function _(n,r,u,m){let C="",b=0,N=-1,w=0,M=0;for(let P=0;P<=n.length;++P){if(P<n.length)M=n.charCodeAt(P);else{if(m(M))break;M=l}if(m(M)){if(!(N===P-1||w===1))if(w===2){if(C.length<2||b!==2||C.charCodeAt(C.length-1)!==a||C.charCodeAt(C.length-2)!==a){if(C.length>2){const U=C.lastIndexOf(u);U===-1?(C="",b=0):(C=C.slice(0,U),b=C.length-1-C.lastIndexOf(u)),N=P,w=0;continue}else if(C.length!==0){C="",b=0,N=P,w=0;continue}}r&&(C+=C.length>0?`${u}..`:"..",b=2)}else C.length>0?C+=`${u}${n.slice(N+1,P)}`:C=n.slice(N+1,P),b=P-N-1;N=P,w=0}else M===a&&w!==-1?++w:w=-1}return C}function L(n,r){if(r===null||typeof r!="object")throw new g("pathObject","Object",r);const u=r.dir||r.root,m=r.base||`${r.name||""}${r.ext||""}`;return u?u===r.root?`${u}${m}`:`${u}${n}${m}`:m}t.win32={resolve(...n){let r="",u="",m=!1;for(let C=n.length-1;C>=-1;C--){let b;if(C>=0){if(b=n[C],d(b,"path"),b.length===0)continue}else r.length===0?b=E.cwd():(b=E.env[`=${r}`]||E.cwd(),(b===void 0||b.slice(0,2).toLowerCase()!==r.toLowerCase()&&b.charCodeAt(2)===f)&&(b=`${r}\\`));const N=b.length;let w=0,M="",P=!1;const U=b.charCodeAt(0);if(N==