@questdb/web-console 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +50 -120
  2. package/dist/assets/index-BDByQptw.js +4095 -0
  3. package/dist/assets/index-DxP8ECWL.css +45 -0
  4. package/dist/assets/vendor-C-4C_esR.js +78 -0
  5. package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js +8 -2
  6. package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js +8 -2
  7. package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js +8 -2
  8. package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js +8 -2
  9. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js +8 -2
  10. package/dist/assets/vs/base/common/worker/simpleWorker.nls.js +8 -2
  11. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js +8 -2
  12. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js +8 -2
  13. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +8 -2
  14. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +8 -2
  15. package/dist/assets/vs/base/worker/workerMain.js +27 -2
  16. package/dist/assets/vs/editor/editor.main.js +745 -2
  17. package/dist/assets/vs/editor/editor.main.nls.js +29 -2
  18. package/dist/assets/vs/loader.js +11 -2
  19. package/dist/index.html +10 -6
  20. package/package.json +70 -76
  21. package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js.LICENSE.txt +0 -6
  22. package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js.LICENSE.txt +0 -6
  23. package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js.LICENSE.txt +0 -6
  24. package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js.LICENSE.txt +0 -6
  25. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js.LICENSE.txt +0 -6
  26. package/dist/assets/vs/base/common/worker/simpleWorker.nls.js.LICENSE.txt +0 -6
  27. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js.LICENSE.txt +0 -6
  28. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js.LICENSE.txt +0 -6
  29. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js.LICENSE.txt +0 -6
  30. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js.LICENSE.txt +0 -6
  31. package/dist/assets/vs/base/worker/workerMain.js.LICENSE.txt +0 -6
  32. package/dist/assets/vs/editor/editor.main.js.LICENSE.txt +0 -15
  33. package/dist/assets/vs/editor/editor.main.nls.js.LICENSE.txt +0 -6
  34. package/dist/assets/vs/loader.js.LICENSE.txt +0 -6
  35. package/dist/qdb.e248c.css +0 -222
  36. package/dist/qdb.e248c.js +0 -1
  37. package/dist/vendor.7241c.css +0 -874
  38. package/dist/vendor.7241c.js +0 -2
  39. package/dist/vendor.7241c.js.LICENSE.txt +0 -169
  40. /package/dist/{d0b483ce9717b92b4bf815d5d4db597a.woff → assets/open-sans-v13-latin-300-DFA0ym50.woff} +0 -0
  41. /package/dist/{573e9313e05d89f4acb5d005476c61bb.woff → assets/open-sans-v13-latin-600-C1Kmc7KT.woff} +0 -0
  42. /package/dist/{6437d5f4c14e01aaf4801aef3909151b.woff → assets/open-sans-v13-latin-700-k6xx1mZI.woff} +0 -0
  43. /package/dist/{7dafb1a4bab4938a38b2d68d9c4575a9.woff → assets/open-sans-v13-latin-regular-BKF8bpuc.woff} +0 -0
@@ -1,2 +1,11 @@
1
- /*! For license information please see loader.js.LICENSE.txt */
2
- "use strict";const _amdLoaderGlobal=this,_commonjsGlobal="object"==typeof global?global:{};var define,AMDLoader;!function(e){e.global=_amdLoaderGlobal;class t{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=t._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&"renderer"===process.type,this._isWebWorker="function"==typeof e.global.importScripts,this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&"worker"===process.type)}static _isWindows(){return!!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0)||typeof process<"u"&&"win32"===process.platform}}e.Environment=t}(AMDLoader||(AMDLoader={})),function(e){class t{constructor(e,t,r){this.type=e,this.detail=t,this.timestamp=r}}e.LoaderEvent=t,e.LoaderEventRecorder=class{constructor(e){this._events=[new t(1,"",e)]}record(r,i){this._events.push(new t(r,i,e.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}};class r{record(e,t){}getEvents(){return[]}}r.INSTANCE=new r,e.NullLoaderEventRecorder=r}(AMDLoader||(AMDLoader={})),function(e){class t{static fileUriToFilePath(e,t){if(t=decodeURI(t).replace(/%23/g,"#"),e){if(/^file:\/\/\//.test(t))return t.substr(8);if(/^file:\/\//.test(t))return t.substr(5)}else if(/^file:\/\//.test(t))return t.substr(7);return t}static startsWith(e,t){return e.length>=t.length&&e.substr(0,t.length)===t}static endsWith(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t}static containsQueryString(e){return/^[^\#]*\?/gi.test(e)}static isAbsolutePath(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)}static forEachProperty(e,t){if(e){let r;for(r in e)e.hasOwnProperty(r)&&t(r,e[r])}}static isEmpty(e){let r=!0;return t.forEachProperty(e,(()=>{r=!1})),r}static recursiveClone(e){if(!e||"object"!=typeof e||e instanceof RegExp||!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype)return e;let r=Array.isArray(e)?[]:{};return t.forEachProperty(e,((e,i)=>{r[e]=i&&"object"==typeof i?t.recursiveClone(i):i})),r}static generateAnonymousModule(){return"===anonymous"+t.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(e){return t.startsWith(e,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),this.HAS_PERFORMANCE_NOW?e.global.performance.now():Date.now()}}t.NEXT_ANONYMOUS_ID=1,t.PERFORMANCE_NOW_PROBED=!1,t.HAS_PERFORMANCE_NOW=!1,e.Utilities=t}(AMDLoader||(AMDLoader={})),function(e){function t(e){if(e instanceof Error)return e;const t=new Error(e.message||String(e)||"Unknown Error");return e.stack&&(t.stack=e.stack),t}e.ensureError=t;class r{static validateConfigurationOptions(r){if("string"!=typeof(r=r||{}).baseUrl&&(r.baseUrl=""),"boolean"!=typeof r.isBuild&&(r.isBuild=!1),"object"!=typeof r.paths&&(r.paths={}),"object"!=typeof r.config&&(r.config={}),typeof r.catchError>"u"&&(r.catchError=!1),typeof r.recordStats>"u"&&(r.recordStats=!1),"string"!=typeof r.urlArgs&&(r.urlArgs=""),"function"!=typeof r.onError&&(r.onError=function(e){return"loading"===e.phase?(console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy)):"factory"===e.phase?(console.error('The factory function of "'+e.moduleId+'" has thrown an exception'),console.error(e),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy)):void 0}),Array.isArray(r.ignoreDuplicateModules)||(r.ignoreDuplicateModules=[]),r.baseUrl.length>0&&(e.Utilities.endsWith(r.baseUrl,"/")||(r.baseUrl+="/")),"string"!=typeof r.cspNonce&&(r.cspNonce=""),typeof r.preferScriptTags>"u"&&(r.preferScriptTags=!1),r.nodeCachedData&&"object"==typeof r.nodeCachedData&&("string"!=typeof r.nodeCachedData.seed&&(r.nodeCachedData.seed="seed"),("number"!=typeof r.nodeCachedData.writeDelay||r.nodeCachedData.writeDelay<0)&&(r.nodeCachedData.writeDelay=7e3),!r.nodeCachedData.path||"string"!=typeof r.nodeCachedData.path)){const e=t(new Error("INVALID cached data configuration, 'path' MUST be set"));e.phase="configuration",r.onError(e),r.nodeCachedData=void 0}return r}static mergeConfigurationOptions(t=null,i=null){let o=e.Utilities.recursiveClone(i||{});return e.Utilities.forEachProperty(t,((t,r)=>{"ignoreDuplicateModules"===t&&typeof o.ignoreDuplicateModules<"u"?o.ignoreDuplicateModules=o.ignoreDuplicateModules.concat(r):"paths"===t&&typeof o.paths<"u"?e.Utilities.forEachProperty(r,((e,t)=>o.paths[e]=t)):"config"===t&&typeof o.config<"u"?e.Utilities.forEachProperty(r,((e,t)=>o.config[e]=t)):o[t]=e.Utilities.recursiveClone(r)})),r.validateConfigurationOptions(o)}}e.ConfigurationOptionsUtil=r;class i{constructor(e,t){if(this._env=e,this.options=r.mergeConfigurationOptions(t),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),""===this.options.baseUrl&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let e=this.options.nodeRequire.main.filename,t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));this.options.baseUrl=e.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let e=0;e<this.options.ignoreDuplicateModules.length;e++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[e]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],e.Utilities.forEachProperty(this.options.paths,((e,t)=>{Array.isArray(t)?this.sortedPathsRules.push({from:e,to:t}):this.sortedPathsRules.push({from:e,to:[t]})})),this.sortedPathsRules.sort(((e,t)=>t.from.length-e.from.length))}cloneAndMerge(e){return new i(this._env,r.mergeConfigurationOptions(e,this.options))}getOptionsLiteral(){return this.options}_applyPaths(t){let r;for(let i=0,o=this.sortedPathsRules.length;i<o;i++)if(r=this.sortedPathsRules[i],e.Utilities.startsWith(t,r.from)){let e=[];for(let i=0,o=r.to.length;i<o;i++)e.push(r.to[i]+t.substr(r.from.length));return e}return[t]}_addUrlArgsToUrl(t){return e.Utilities.containsQueryString(t)?t+"&"+this.options.urlArgs:t+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(e){return this.options.urlArgs?this._addUrlArgsToUrl(e):e}_addUrlArgsIfNecessaryToUrls(e){if(this.options.urlArgs)for(let t=0,r=e.length;t<r;t++)e[t]=this._addUrlArgsToUrl(e[t]);return e}moduleIdToPaths(t){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(t))return this.isBuild()?["empty:"]:["node|"+t];let r,i=t;if(e.Utilities.endsWith(i,".js")||e.Utilities.isAbsolutePath(i))!e.Utilities.endsWith(i,".js")&&!e.Utilities.containsQueryString(i)&&(i+=".js"),r=[i];else{r=this._applyPaths(i);for(let t=0,i=r.length;t<i;t++)this.isBuild()&&"empty:"===r[t]||(e.Utilities.isAbsolutePath(r[t])||(r[t]=this.options.baseUrl+r[t]),!e.Utilities.endsWith(r[t],".js")&&!e.Utilities.containsQueryString(r[t])&&(r[t]=r[t]+".js"))}return this._addUrlArgsIfNecessaryToUrls(r)}requireToUrl(t){let r=t;return e.Utilities.isAbsolutePath(r)||(r=this._applyPaths(r)[0],e.Utilities.isAbsolutePath(r)||(r=this.options.baseUrl+r)),this._addUrlArgsIfNecessaryToUrl(r)}isBuild(){return this.options.isBuild}shouldInvokeFactory(t){return!!(!this.options.isBuild||e.Utilities.isAnonymousModule(t)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[t])}isDuplicateMessageIgnoredFor(e){return this.ignoreDuplicateModulesMap.hasOwnProperty(e)}getConfigForModule(e){if(this.options.config)return this.options.config[e]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(e){this.options.onError(e)}}e.Configuration=i}(AMDLoader||(AMDLoader={})),function(e){class t{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,t,n,s){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new i;else if(this._env.isElectronRenderer){const{preferScriptTags:t}=e.getConfig().getOptionsLiteral();this._scriptLoader=t?new r:new o(this._env)}else this._env.isNode?this._scriptLoader=new o(this._env):this._scriptLoader=new r;let l={callback:n,errorback:s};this._callbackMap.hasOwnProperty(t)?this._callbackMap[t].push(l):(this._callbackMap[t]=[l],this._scriptLoader.load(e,t,(()=>this.triggerCallback(t)),(e=>this.triggerErrorback(t,e))))}triggerCallback(e){let t=this._callbackMap[e];delete this._callbackMap[e];for(let e=0;e<t.length;e++)t[e].callback()}triggerErrorback(e,t){let r=this._callbackMap[e];delete this._callbackMap[e];for(let e=0;e<r.length;e++)r[e].errorback(t)}}class r{attachListeners(e,t,r){let i=()=>{e.removeEventListener("load",o),e.removeEventListener("error",n)},o=e=>{i(),t()},n=e=>{i(),r(e)};e.addEventListener("load",o),e.addEventListener("error",n)}load(t,r,i,o){if(/^node\|/.test(r)){let s=t.getConfig().getOptionsLiteral(),l=n(t.getRecorder(),s.nodeRequire||e.global.nodeRequire),d=r.split("|"),a=null;try{a=l(d[1])}catch(e){return void o(e)}t.enqueueDefineAnonymousModule([],(()=>a)),i()}else{let e=document.createElement("script");e.setAttribute("async","async"),e.setAttribute("type","text/javascript"),this.attachListeners(e,i,o);const{trustedTypesPolicy:n}=t.getConfig().getOptionsLiteral();n&&(r=n.createScriptURL(r)),e.setAttribute("src",r);const{cspNonce:s}=t.getConfig().getOptionsLiteral();s&&e.setAttribute("nonce",s),document.getElementsByTagName("head")[0].appendChild(e)}}}class i{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return null===this._cachedCanUseEval&&(this._cachedCanUseEval=function(e){const{trustedTypesPolicy:t}=e.getConfig().getOptionsLiteral();try{return(t?self.eval(t.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}(e)),this._cachedCanUseEval}load(t,r,i,o){if(/^node\|/.test(r)){const s=t.getConfig().getOptionsLiteral(),l=n(t.getRecorder(),s.nodeRequire||e.global.nodeRequire),d=r.split("|");let a=null;try{a=l(d[1])}catch(e){return void o(e)}t.enqueueDefineAnonymousModule([],(function(){return a})),i()}else{const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();if((!/^((http:)|(https:)|(file:))/.test(r)||r.substring(0,self.origin.length)===self.origin)&&this._canUseEval(t))return void fetch(r).then((e=>{if(200!==e.status)throw new Error(e.statusText);return e.text()})).then((t=>{t=`${t}\n//# sourceURL=${r}`,(e?self.eval(e.createScript("",t)):new Function(t)).call(self),i()})).then(void 0,o);try{e&&(r=e.createScriptURL(r)),importScripts(r),i()}catch(e){o(e)}}}}class o{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,t){const{nodeCachedData:r}=t.getConfig().getOptionsLiteral();if(!r||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const i=this,o=e("module");o.prototype._compile=function(e,n){const s=o.wrap(e.replace(/^#!.*/,"")),l=t.getRecorder(),d=i._getCachedDataPath(r,n),a={filename:n};let u;try{const e=i._fs.readFileSync(d);u=e.slice(0,16),a.cachedData=e.slice(16),l.record(60,d)}catch{l.record(61,d)}const c=new i._vm.Script(s,a),h=c.runInThisContext(a),p=i._path.dirname(n),f=function(e){const t=e.constructor;let r=function(t){try{return e.require(t)}finally{}};return(r.resolve=function(r,i){return t._resolveFilename(r,e,!1,i)}).paths=function(r){return t._resolveLookupPaths(r,e)},r.main=process.mainModule,r.extensions=t._extensions,r.cache=t._cache,r}(this),_=[this.exports,f,this,n,p,process,_commonjsGlobal,Buffer],g=h.apply(this.exports,_);return i._handleCachedData(c,s,d,!a.cachedData,t),i._verifyCachedData(c,s,d,u,t),g}}load(t,r,i,s){const l=t.getConfig().getOptionsLiteral(),d=n(t.getRecorder(),l.nodeRequire||e.global.nodeRequire),a=l.nodeInstrumenter||function(e){return e};this._init(d),this._initNodeRequire(d,t);let u=t.getRecorder();if(/^node\|/.test(r)){let e=r.split("|"),o=null;try{o=d(e[1])}catch(e){return void s(e)}t.enqueueDefineAnonymousModule([],(()=>o)),i()}else{r=e.Utilities.fileUriToFilePath(this._env.isWindows,r);const n=this._path.normalize(r),d=this._getElectronRendererScriptPathOrUri(n),c=!!l.nodeCachedData,h=c?this._getCachedDataPath(l.nodeCachedData,r):void 0;this._readSourceAndCachedData(n,h,u,((e,r,l,u)=>{if(e)return void s(e);let p;p=r.charCodeAt(0)===o._BOM?o._PREFIX+r.substring(1)+o._SUFFIX:o._PREFIX+r+o._SUFFIX,p=a(p,n);const f={filename:d,cachedData:l},_=this._createAndEvalScript(t,p,f,i,s);this._handleCachedData(_,p,h,c&&!l,t),this._verifyCachedData(_,p,h,u,t)}))}}_createAndEvalScript(t,r,i,o,n){const s=t.getRecorder();s.record(31,i.filename);const l=new this._vm.Script(r,i),d=l.runInThisContext(i),a=t.getGlobalAMDDefineFunc();let u=!1;const c=function(){return u=!0,a.apply(null,arguments)};return c.amd=a.amd,d.call(e.global,t.getGlobalAMDRequireFunc(),c,i.filename,this._path.dirname(i.filename)),s.record(32,i.filename),u?o():n(new Error(`Didn't receive define call in ${i.filename}!`)),l}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let t=e.match(/^([a-z])\:(.*)/i);return t?`file:///${(t[1].toUpperCase()+":"+t[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,t){const r=this._crypto.createHash("md5").update(t,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),i=this._path.basename(t).replace(/\.js$/,"");return this._path.join(e.path,`${i}-${r}.code`)}_handleCachedData(e,t,r,i,o){e.cachedDataRejected?this._fs.unlink(r,(i=>{o.getRecorder().record(62,r),this._createAndWriteCachedData(e,t,r,o),i&&o.getConfig().onError(i)})):i&&this._createAndWriteCachedData(e,t,r,o)}_createAndWriteCachedData(e,t,r,i){let o,n=Math.ceil(i.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),s=-1,l=0;const d=()=>{setTimeout((()=>{o||(o=this._crypto.createHash("md5").update(t,"utf8").digest());const n=e.createCachedData();if(!(0===n.length||n.length===s||l>=5)){if(n.length<s)return void d();s=n.length,this._fs.writeFile(r,Buffer.concat([o,n]),(e=>{e&&i.getConfig().onError(e),i.getRecorder().record(63,r),d()}))}}),n*Math.pow(4,l++))};d()}_readSourceAndCachedData(e,t,r,i){if(t){let o,n,s,l=2;const d=e=>{e?i(e):0==--l&&i(void 0,o,n,s)};this._fs.readFile(e,{encoding:"utf8"},((e,t)=>{o=t,d(e)})),this._fs.readFile(t,((e,i)=>{!e&&i&&i.length>0?(s=i.slice(0,16),n=i.slice(16),r.record(60,t)):r.record(61,t),d()}))}else this._fs.readFile(e,{encoding:"utf8"},i)}_verifyCachedData(e,t,r,i,o){i&&(e.cachedDataRejected||setTimeout((()=>{const e=this._crypto.createHash("md5").update(t,"utf8").digest();i.equals(e)||(o.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${r}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(r,(e=>{e&&o.getConfig().onError(e)})))}),Math.ceil(5e3*(1+Math.random()))))}}function n(e,t){if(t.__$__isRecorded)return t;const r=function(r){e.record(33,r);try{return t(r)}finally{e.record(34,r)}};return r.__$__isRecorded=!0,r}o._BOM=65279,o._PREFIX="(function (require, define, __filename, __dirname) { ",o._SUFFIX="\n});",e.ensureRecordedNodeRequire=n,e.createScriptLoader=function(e){return new t(e)}}(AMDLoader||(AMDLoader={})),function(e){class t{constructor(e){let t=e.lastIndexOf("/");this.fromModulePath=-1!==t?e.substr(0,t+1):""}static _normalizeModuleId(e){let t,r=e;for(t=/\/\.\//;t.test(r);)r=r.replace(t,"/");for(r=r.replace(/^\.\//g,""),t=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;t.test(r);)r=r.replace(t,"/");return r=r.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),r}resolveModule(r){let i=r;return e.Utilities.isAbsolutePath(i)||(e.Utilities.startsWith(i,"./")||e.Utilities.startsWith(i,"../"))&&(i=t._normalizeModuleId(this.fromModulePath+i)),i}}t.ROOT=new t(""),e.ModuleIdResolver=t;class r{constructor(e,t,r,i,o,n){this.id=e,this.strId=t,this.dependencies=r,this._callback=i,this._errorback=o,this.moduleIdResolver=n,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,r){try{return{returnedValue:t.apply(e.global,r),producedError:null}}catch(e){return{returnedValue:null,producedError:e}}}static _invokeFactory(t,r,i,o){return t.shouldInvokeFactory(r)?t.shouldCatchError()?this._safeInvokeFunction(i,o):{returnedValue:i.apply(e.global,o),producedError:null}:{returnedValue:null,producedError:null}}complete(t,i,o,n){this._isComplete=!0;let s=null;if(this._callback)if("function"==typeof this._callback){t.record(21,this.strId);let n=r._invokeFactory(i,this.strId,this._callback,o);s=n.producedError,t.record(22,this.strId),!s&&typeof n.returnedValue<"u"&&(!this.exportsPassedIn||e.Utilities.isEmpty(this.exports))&&(this.exports=n.returnedValue)}else this.exports=this._callback;if(s){let t=e.ensureError(s);t.phase="factory",t.moduleId=this.strId,t.neededBy=n(this.id),this.error=t,i.onError(t)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(e){return this._isComplete=!0,this.error=e,!!this._errorback&&(this._errorback(e),!0)}isComplete(){return this._isComplete}}e.Module=r;class i{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(e){let t=this._strModuleIdToIntModuleId.get(e);return typeof t>"u"&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t}getStrModuleId(e){return this._intModuleIdToStrModuleId[e]}}class o{constructor(e){this.id=e}}o.EXPORTS=new o(0),o.MODULE=new o(1),o.REQUIRE=new o(2),e.RegularDependency=o;class n{constructor(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}}e.PluginDependency=n;class s{constructor(t,r,o,n,s=0){this._env=t,this._scriptLoader=r,this._loaderAvailableTimestamp=s,this._defineFunc=o,this._requireFunc=n,this._moduleIdProvider=new i,this._config=new e.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=[],this._requireFunc.moduleManager=this}reset(){return new s(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(e,t){let r=e=>e.replace(/\\/g,"/"),i=r(e),o=t.split(/\n/);for(let e=0;e<o.length;e++){let t=o[e].match(/(.*):(\d+):(\d+)\)?$/);if(t){let e=t[1],o=t[2],n=t[3],s=Math.max(e.lastIndexOf(" ")+1,e.lastIndexOf("(")+1);if(e=e.substr(s),e=r(e),e===i){let e={line:parseInt(o,10),col:parseInt(n,10)};return 1===e.line&&(e.col-=53),e}}}throw new Error("Could not correlate define call site for needle "+e)}getBuildInfo(){if(!this._config.isBuild())return null;let e=[],t=0;for(let r=0,i=this._modules2.length;r<i;r++){let i=this._modules2[r];if(!i)continue;let o=this._buildInfoPath[i.id]||null,n=this._buildInfoDefineStack[i.id]||null,l=this._buildInfoDependencies[i.id];e[t++]={id:i.strId,path:o,defineLocation:o&&n?s._findRelevantLocationInStack(o,n):null,dependencies:l,shim:null,exports:i.exports}}return e}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new e.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=e.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(e,t){if(null!==this._currentAnonymousDefineCall)throw new Error("Can only have one anonymous define call per script file");let r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:e,callback:t}}defineModule(e,i,o,n,s,l=new t(e)){let d=this._moduleIdProvider.getModuleId(e);if(this._modules2[d])return void(this._config.isDuplicateMessageIgnoredFor(e)||console.warn("Duplicate definition of module '"+e+"'"));let a=new r(d,e,this._normalizeDependencies(i,l),o,n,l);this._modules2[d]=a,this._config.isBuild()&&(this._buildInfoDefineStack[d]=s,this._buildInfoDependencies[d]=(a.dependencies||[]).map((e=>this._moduleIdProvider.getStrModuleId(e.id)))),this._resolve(a)}_normalizeDependency(e,t){if("exports"===e)return o.EXPORTS;if("module"===e)return o.MODULE;if("require"===e)return o.REQUIRE;let r=e.indexOf("!");if(r>=0){let i=t.resolveModule(e.substr(0,r)),o=t.resolveModule(e.substr(r+1)),s=this._moduleIdProvider.getModuleId(i+"!"+o),l=this._moduleIdProvider.getModuleId(i);return new n(s,l,o)}return new o(this._moduleIdProvider.getModuleId(t.resolveModule(e)))}_normalizeDependencies(e,t){let r=[],i=0;for(let o=0,n=e.length;o<n;o++)r[i++]=this._normalizeDependency(e[o],t);return r}_relativeRequire(t,r,i,o){if("string"==typeof r)return this.synchronousRequire(r,t);this.defineModule(e.Utilities.generateAnonymousModule(),r,i,o,null,t)}synchronousRequire(e,r=new t(e)){let i=this._normalizeDependency(e,r),o=this._modules2[i.id];if(!o)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This is the first mention of this module!");if(!o.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This module has not been resolved completely yet.");if(o.error)throw o.error;return o.exports}configure(t,r){let i=this._config.shouldRecordStats();this._config=r?new e.Configuration(this._env,t):this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!i&&(this._recorder=null)}getConfig(){return this._config}_onLoad(e){if(null!==this._currentAnonymousDefineCall){let t=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(e),t.dependencies,t.callback,null,t.stack)}}_createLoadError(t,r){let i=this._moduleIdProvider.getStrModuleId(t),o=(this._inverseDependencies2[t]||[]).map((e=>this._moduleIdProvider.getStrModuleId(e)));const n=e.ensureError(r);return n.phase="loading",n.moduleId=i,n.neededBy=o,n}_onLoadError(e,t){const i=this._createLoadError(e,t);this._modules2[e]||(this._modules2[e]=new r(e,this._moduleIdProvider.getStrModuleId(e),[],(()=>{}),null,null));let o=[];for(let e=0,t=this._moduleIdProvider.getMaxModuleId();e<t;e++)o[e]=!1;let n=!1,s=[];for(s.push(e),o[e]=!0;s.length>0;){let e=s.shift(),t=this._modules2[e];t&&(n=t.onDependencyError(i)||n);let r=this._inverseDependencies2[e];if(r)for(let e=0,t=r.length;e<t;e++){let t=r[e];o[t]||(s.push(t),o[t]=!0)}}n||this._config.onError(i)}_hasDependencyPath(e,t){let r=this._modules2[e];if(!r)return!1;let i=[];for(let e=0,t=this._moduleIdProvider.getMaxModuleId();e<t;e++)i[e]=!1;let o=[];for(o.push(r),i[e]=!0;o.length>0;){let e=o.shift().dependencies;if(e)for(let r=0,n=e.length;r<n;r++){let n=e[r];if(n.id===t)return!0;let s=this._modules2[n.id];s&&!i[n.id]&&(i[n.id]=!0,o.push(s))}}return!1}_findCyclePath(e,t,r){if(e===t||50===r)return[e];let i=this._modules2[e];if(!i)return null;let o=i.dependencies;if(o)for(let i=0,n=o.length;i<n;i++){let n=this._findCyclePath(o[i].id,t,r+1);if(null!==n)return n.push(e),n}return null}_createRequire(t){let r=(e,r,i)=>this._relativeRequire(t,e,r,i);return r.toUrl=e=>this._config.requireToUrl(t.resolveModule(e)),r.getStats=()=>this.getLoaderEvents(),r.hasDependencyCycle=()=>this._hasDependencyCycle,r.config=(e,t=!1)=>{this.configure(e,t)},r.__$__nodeRequire=e.global.nodeRequire,r}_loadModule(e){if(this._modules2[e]||this._knownModules2[e])return;this._knownModules2[e]=!0;let t=this._moduleIdProvider.getStrModuleId(e),r=this._config.moduleIdToPaths(t);this._env.isNode&&(-1===t.indexOf("/")||/^@[^\/]+\/[^\/]+$/.test(t))&&r.push("node|"+t);let i=-1,o=t=>{if(i++,i>=r.length)this._onLoadError(e,t);else{let t=r[i],n=this.getRecorder();if(this._config.isBuild()&&"empty:"===t)return this._buildInfoPath[e]=t,this.defineModule(this._moduleIdProvider.getStrModuleId(e),[],null,null,null),void this._onLoad(e);n.record(10,t),this._scriptLoader.load(this,t,(()=>{this._config.isBuild()&&(this._buildInfoPath[e]=t),n.record(11,t),this._onLoad(e)}),(e=>{n.record(12,t),o(e)}))}};o(null)}_loadPluginDependency(e,r){if(this._modules2[r.id]||this._knownModules2[r.id])return;this._knownModules2[r.id]=!0;let i=e=>{this.defineModule(this._moduleIdProvider.getStrModuleId(r.id),[],e,null,null)};i.error=e=>{this._config.onError(this._createLoadError(r.id,e))},e.load(r.pluginParam,this._createRequire(t.ROOT),i,this._config.getOptionsLiteral())}_resolve(e){let t=e.dependencies;if(t)for(let r=0,i=t.length;r<i;r++){let i=t[r];if(i===o.EXPORTS){e.exportsPassedIn=!0,e.unresolvedDependenciesCount--;continue}if(i===o.MODULE){e.unresolvedDependenciesCount--;continue}if(i===o.REQUIRE){e.unresolvedDependenciesCount--;continue}let s=this._modules2[i.id];if(s&&s.isComplete()){if(s.error)return void e.onDependencyError(s.error);e.unresolvedDependenciesCount--}else if(this._hasDependencyPath(i.id,e.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(i.id)+"' and '"+this._moduleIdProvider.getStrModuleId(e.id)+"'. The cyclic path follows:");let t=this._findCyclePath(i.id,e.id,0)||[];t.reverse(),t.push(i.id),console.warn(t.map((e=>this._moduleIdProvider.getStrModuleId(e))).join(" => \n")),e.unresolvedDependenciesCount--}else if(this._inverseDependencies2[i.id]=this._inverseDependencies2[i.id]||[],this._inverseDependencies2[i.id].push(e.id),i instanceof n){let e=this._modules2[i.pluginId];if(e&&e.isComplete()){this._loadPluginDependency(e.exports,i);continue}let t=this._inversePluginDependencies2.get(i.pluginId);t||(t=[],this._inversePluginDependencies2.set(i.pluginId,t)),t.push(i),this._loadModule(i.pluginId)}else this._loadModule(i.id)}0===e.unresolvedDependenciesCount&&this._onModuleComplete(e)}_onModuleComplete(e){let t=this.getRecorder();if(e.isComplete())return;let r=e.dependencies,i=[];if(r)for(let t=0,n=r.length;t<n;t++){let n=r[t];if(n===o.EXPORTS){i[t]=e.exports;continue}if(n===o.MODULE){i[t]={id:e.strId,config:()=>this._config.getConfigForModule(e.strId)};continue}if(n===o.REQUIRE){i[t]=this._createRequire(e.moduleIdResolver);continue}let s=this._modules2[n.id];i[t]=s?s.exports:null}e.complete(t,this._config,i,(e=>(this._inverseDependencies2[e]||[]).map((e=>this._moduleIdProvider.getStrModuleId(e)))));let n=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,n)for(let e=0,t=n.length;e<t;e++){let t=n[e],r=this._modules2[t];r.unresolvedDependenciesCount--,0===r.unresolvedDependenciesCount&&this._onModuleComplete(r)}let s=this._inversePluginDependencies2.get(e.id);if(s){this._inversePluginDependencies2.delete(e.id);for(let t=0,r=s.length;t<r;t++)this._loadPluginDependency(e.exports,s[t])}}}e.ModuleManager=s}(AMDLoader||(AMDLoader={})),function(e){const t=new e.Environment;let r=null;const i=function(e,t,i){"string"!=typeof e&&(i=t,t=e,e=null),("object"!=typeof t||!Array.isArray(t))&&(i=t,t=null),t||(t=["require","exports","module"]),e?r.defineModule(e,t,i,null,null):r.enqueueDefineAnonymousModule(t,i)};i.amd={jQuery:!0};const o=function(e,t=!1){r.configure(e,t)},n=function(){if(1===arguments.length){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0]))return void o(arguments[0]);if("string"==typeof arguments[0])return r.synchronousRequire(arguments[0])}if(2!==arguments.length&&3!==arguments.length||!Array.isArray(arguments[0]))throw new Error("Unrecognized require call");r.defineModule(e.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null)};function s(){if(typeof e.global.require<"u"||typeof require<"u"){const t=e.global.require||require;if("function"==typeof t&&"function"==typeof t.resolve){const i=e.ensureRecordedNodeRequire(r.getRecorder(),t);e.global.nodeRequire=i,n.nodeRequire=i,n.__$__nodeRequire=i}}!t.isNode||t.isElectronRenderer||t.isElectronNodeIntegrationWebWorker?(t.isElectronRenderer||(e.global.define=i),e.global.require=n):module.exports=n}n.config=o,n.getConfig=function(){return r.getConfig().getOptionsLiteral()},n.reset=function(){r=r.reset()},n.getBuildInfo=function(){return r.getBuildInfo()},n.getStats=function(){return r.getLoaderEvents()},n.define=i,e.init=s,("function"!=typeof e.global.define||!e.global.define.amd)&&(r=new e.ModuleManager(t,e.createScriptLoader(t),i,n,e.Utilities.getHighPerformanceTimestamp()),typeof e.global.require<"u"&&"function"!=typeof e.global.require&&n.config(e.global.require),define=function(){return i.apply(null,arguments)},define.amd=i.amd,typeof doNotInitLoader>"u"&&s())}(AMDLoader||(AMDLoader={}));
1
+ "use strict";/*!-----------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------*/const _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{};var AMDLoader;(function(u){u.global=_amdLoaderGlobal;class y{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=y._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof u.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")}static _isWindows(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1}}u.Environment=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(r,c,a){this.type=r,this.detail=c,this.timestamp=a}}u.LoaderEvent=y;class m{constructor(r){this._events=[new y(1,"",r)]}record(r,c){this._events.push(new y(r,c,u.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}u.LoaderEventRecorder=m;class p{record(r,c){}getEvents(){return[]}}p.INSTANCE=new p,u.NullLoaderEventRecorder=p})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{static fileUriToFilePath(p,h){if(h=decodeURI(h).replace(/%23/g,"#"),p){if(/^file:\/\/\//.test(h))return h.substr(8);if(/^file:\/\//.test(h))return h.substr(5)}else if(/^file:\/\//.test(h))return h.substr(7);return h}static startsWith(p,h){return p.length>=h.length&&p.substr(0,h.length)===h}static endsWith(p,h){return p.length>=h.length&&p.substr(p.length-h.length)===h}static containsQueryString(p){return/^[^\#]*\?/gi.test(p)}static isAbsolutePath(p){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(p)}static forEachProperty(p,h){if(p){let r;for(r in p)p.hasOwnProperty(r)&&h(r,p[r])}}static isEmpty(p){let h=!0;return y.forEachProperty(p,()=>{h=!1}),h}static recursiveClone(p){if(!p||typeof p!="object"||p instanceof RegExp||!Array.isArray(p)&&Object.getPrototypeOf(p)!==Object.prototype)return p;let h=Array.isArray(p)?[]:{};return y.forEachProperty(p,(r,c)=>{c&&typeof c=="object"?h[r]=y.recursiveClone(c):h[r]=c}),h}static generateAnonymousModule(){return"===anonymous"+y.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(p){return y.startsWith(p,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=u.global.performance&&typeof u.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?u.global.performance.now():Date.now()}}y.NEXT_ANONYMOUS_ID=1,y.PERFORMANCE_NOW_PROBED=!1,y.HAS_PERFORMANCE_NOW=!1,u.Utilities=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){function y(h){if(h instanceof Error)return h;const r=new Error(h.message||String(h)||"Unknown Error");return h.stack&&(r.stack=h.stack),r}u.ensureError=y;class m{static validateConfigurationOptions(r){function c(a){if(a.phase==="loading"){console.error('Loading "'+a.moduleId+'" failed'),console.error(a),console.error("Here are the modules that depend on it:"),console.error(a.neededBy);return}if(a.phase==="factory"){console.error('The factory function of "'+a.moduleId+'" has thrown an exception'),console.error(a),console.error("Here are the modules that depend on it:"),console.error(a.neededBy);return}}if(r=r||{},typeof r.baseUrl!="string"&&(r.baseUrl=""),typeof r.isBuild!="boolean"&&(r.isBuild=!1),typeof r.paths!="object"&&(r.paths={}),typeof r.config!="object"&&(r.config={}),typeof r.catchError>"u"&&(r.catchError=!1),typeof r.recordStats>"u"&&(r.recordStats=!1),typeof r.urlArgs!="string"&&(r.urlArgs=""),typeof r.onError!="function"&&(r.onError=c),Array.isArray(r.ignoreDuplicateModules)||(r.ignoreDuplicateModules=[]),r.baseUrl.length>0&&(u.Utilities.endsWith(r.baseUrl,"/")||(r.baseUrl+="/")),typeof r.cspNonce!="string"&&(r.cspNonce=""),typeof r.preferScriptTags>"u"&&(r.preferScriptTags=!1),r.nodeCachedData&&typeof r.nodeCachedData=="object"&&(typeof r.nodeCachedData.seed!="string"&&(r.nodeCachedData.seed="seed"),(typeof r.nodeCachedData.writeDelay!="number"||r.nodeCachedData.writeDelay<0)&&(r.nodeCachedData.writeDelay=1e3*7),!r.nodeCachedData.path||typeof r.nodeCachedData.path!="string")){const a=y(new Error("INVALID cached data configuration, 'path' MUST be set"));a.phase="configuration",r.onError(a),r.nodeCachedData=void 0}return r}static mergeConfigurationOptions(r=null,c=null){let a=u.Utilities.recursiveClone(c||{});return u.Utilities.forEachProperty(r,(t,e)=>{t==="ignoreDuplicateModules"&&typeof a.ignoreDuplicateModules<"u"?a.ignoreDuplicateModules=a.ignoreDuplicateModules.concat(e):t==="paths"&&typeof a.paths<"u"?u.Utilities.forEachProperty(e,(i,s)=>a.paths[i]=s):t==="config"&&typeof a.config<"u"?u.Utilities.forEachProperty(e,(i,s)=>a.config[i]=s):a[t]=u.Utilities.recursiveClone(e)}),m.validateConfigurationOptions(a)}}u.ConfigurationOptionsUtil=m;class p{constructor(r,c){if(this._env=r,this.options=m.mergeConfigurationOptions(c),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let a=this.options.nodeRequire.main.filename,t=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let r=0;r<this.options.ignoreDuplicateModules.length;r++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[r]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],u.Utilities.forEachProperty(this.options.paths,(r,c)=>{Array.isArray(c)?this.sortedPathsRules.push({from:r,to:c}):this.sortedPathsRules.push({from:r,to:[c]})}),this.sortedPathsRules.sort((r,c)=>c.from.length-r.from.length)}cloneAndMerge(r){return new p(this._env,m.mergeConfigurationOptions(r,this.options))}getOptionsLiteral(){return this.options}_applyPaths(r){let c;for(let a=0,t=this.sortedPathsRules.length;a<t;a++)if(c=this.sortedPathsRules[a],u.Utilities.startsWith(r,c.from)){let e=[];for(let i=0,s=c.to.length;i<s;i++)e.push(c.to[i]+r.substr(c.from.length));return e}return[r]}_addUrlArgsToUrl(r){return u.Utilities.containsQueryString(r)?r+"&"+this.options.urlArgs:r+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(r){return this.options.urlArgs?this._addUrlArgsToUrl(r):r}_addUrlArgsIfNecessaryToUrls(r){if(this.options.urlArgs)for(let c=0,a=r.length;c<a;c++)r[c]=this._addUrlArgsToUrl(r[c]);return r}moduleIdToPaths(r){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(r))return this.isBuild()?["empty:"]:["node|"+r];let c=r,a;if(!u.Utilities.endsWith(c,".js")&&!u.Utilities.isAbsolutePath(c)){a=this._applyPaths(c);for(let t=0,e=a.length;t<e;t++)this.isBuild()&&a[t]==="empty:"||(u.Utilities.isAbsolutePath(a[t])||(a[t]=this.options.baseUrl+a[t]),!u.Utilities.endsWith(a[t],".js")&&!u.Utilities.containsQueryString(a[t])&&(a[t]=a[t]+".js"))}else!u.Utilities.endsWith(c,".js")&&!u.Utilities.containsQueryString(c)&&(c=c+".js"),a=[c];return this._addUrlArgsIfNecessaryToUrls(a)}requireToUrl(r){let c=r;return u.Utilities.isAbsolutePath(c)||(c=this._applyPaths(c)[0],u.Utilities.isAbsolutePath(c)||(c=this.options.baseUrl+c)),this._addUrlArgsIfNecessaryToUrl(c)}isBuild(){return this.options.isBuild}shouldInvokeFactory(r){return!!(!this.options.isBuild||u.Utilities.isAnonymousModule(r)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[r])}isDuplicateMessageIgnoredFor(r){return this.ignoreDuplicateModulesMap.hasOwnProperty(r)}getConfigForModule(r){if(this.options.config)return this.options.config[r]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(r){this.options.onError(r)}}u.Configuration=p})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,i,s,n){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new h;else if(this._env.isElectronRenderer){const{preferScriptTags:d}=e.getConfig().getOptionsLiteral();d?this._scriptLoader=new m:this._scriptLoader=new r(this._env)}else this._env.isNode?this._scriptLoader=new r(this._env):this._scriptLoader=new m;let l={callback:s,errorback:n};if(this._callbackMap.hasOwnProperty(i)){this._callbackMap[i].push(l);return}this._callbackMap[i]=[l],this._scriptLoader.load(e,i,()=>this.triggerCallback(i),d=>this.triggerErrorback(i,d))}triggerCallback(e){let i=this._callbackMap[e];delete this._callbackMap[e];for(let s=0;s<i.length;s++)i[s].callback()}triggerErrorback(e,i){let s=this._callbackMap[e];delete this._callbackMap[e];for(let n=0;n<s.length;n++)s[n].errorback(i)}}class m{attachListeners(e,i,s){let n=()=>{e.removeEventListener("load",l),e.removeEventListener("error",d)},l=o=>{n(),i()},d=o=>{n(),s(o)};e.addEventListener("load",l),e.addEventListener("error",d)}load(e,i,s,n){if(/^node\|/.test(i)){let l=e.getConfig().getOptionsLiteral(),d=c(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),o=i.split("|"),_=null;try{_=d(o[1])}catch(f){n(f);return}e.enqueueDefineAnonymousModule([],()=>_),s()}else{let l=document.createElement("script");l.setAttribute("async","async"),l.setAttribute("type","text/javascript"),this.attachListeners(l,s,n);const{trustedTypesPolicy:d}=e.getConfig().getOptionsLiteral();d&&(i=d.createScriptURL(i)),l.setAttribute("src",i);const{cspNonce:o}=e.getConfig().getOptionsLiteral();o&&l.setAttribute("nonce",o),document.getElementsByTagName("head")[0].appendChild(l)}}}function p(t){const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();try{return(e?self.eval(e.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class h{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=p(e)),this._cachedCanUseEval}load(e,i,s,n){if(/^node\|/.test(i)){const l=e.getConfig().getOptionsLiteral(),d=c(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),o=i.split("|");let _=null;try{_=d(o[1])}catch(f){n(f);return}e.enqueueDefineAnonymousModule([],function(){return _}),s()}else{const{trustedTypesPolicy:l}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(i)&&i.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(i).then(o=>{if(o.status!==200)throw new Error(o.statusText);return o.text()}).then(o=>{o=`${o}
7
+ //# sourceURL=${i}`,(l?self.eval(l.createScript("",o)):new Function(o)).call(self),s()}).then(void 0,n);return}try{l&&(i=l.createScriptURL(i)),importScripts(i),s()}catch(o){n(o)}}}}class r{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,i){const{nodeCachedData:s}=i.getConfig().getOptionsLiteral();if(!s||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const n=this,l=e("module");function d(o){const _=o.constructor;let f=function(v){try{return o.require(v)}finally{}};return f.resolve=function(v,E){return _._resolveFilename(v,o,!1,E)},f.resolve.paths=function(v){return _._resolveLookupPaths(v,o)},f.main=process.mainModule,f.extensions=_._extensions,f.cache=_._cache,f}l.prototype._compile=function(o,_){const f=l.wrap(o.replace(/^#!.*/,"")),g=i.getRecorder(),v=n._getCachedDataPath(s,_),E={filename:_};let I;try{const D=n._fs.readFileSync(v);I=D.slice(0,16),E.cachedData=D.slice(16),g.record(60,v)}catch{g.record(61,v)}const C=new n._vm.Script(f,E),P=C.runInThisContext(E),w=n._path.dirname(_),R=d(this),U=[this.exports,R,this,_,w,process,_commonjsGlobal,Buffer],b=P.apply(this.exports,U);return n._handleCachedData(C,f,v,!E.cachedData,i),n._verifyCachedData(C,f,v,I,i),b}}load(e,i,s,n){const l=e.getConfig().getOptionsLiteral(),d=c(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),o=l.nodeInstrumenter||function(f){return f};this._init(d),this._initNodeRequire(d,e);let _=e.getRecorder();if(/^node\|/.test(i)){let f=i.split("|"),g=null;try{g=d(f[1])}catch(v){n(v);return}e.enqueueDefineAnonymousModule([],()=>g),s()}else{i=u.Utilities.fileUriToFilePath(this._env.isWindows,i);const f=this._path.normalize(i),g=this._getElectronRendererScriptPathOrUri(f),v=!!l.nodeCachedData,E=v?this._getCachedDataPath(l.nodeCachedData,i):void 0;this._readSourceAndCachedData(f,E,_,(I,C,P,w)=>{if(I){n(I);return}let R;C.charCodeAt(0)===r._BOM?R=r._PREFIX+C.substring(1)+r._SUFFIX:R=r._PREFIX+C+r._SUFFIX,R=o(R,f);const U={filename:g,cachedData:P},b=this._createAndEvalScript(e,R,U,s,n);this._handleCachedData(b,R,E,v&&!P,e),this._verifyCachedData(b,R,E,w,e)})}}_createAndEvalScript(e,i,s,n,l){const d=e.getRecorder();d.record(31,s.filename);const o=new this._vm.Script(i,s),_=o.runInThisContext(s),f=e.getGlobalAMDDefineFunc();let g=!1;const v=function(){return g=!0,f.apply(null,arguments)};return v.amd=f.amd,_.call(u.global,e.getGlobalAMDRequireFunc(),v,s.filename,this._path.dirname(s.filename)),d.record(32,s.filename),g?n():l(new Error(`Didn't receive define call in ${s.filename}!`)),o}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let i=e.match(/^([a-z])\:(.*)/i);return i?`file:///${(i[1].toUpperCase()+":"+i[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,i){const s=this._crypto.createHash("md5").update(i,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),n=this._path.basename(i).replace(/\.js$/,"");return this._path.join(e.path,`${n}-${s}.code`)}_handleCachedData(e,i,s,n,l){e.cachedDataRejected?this._fs.unlink(s,d=>{l.getRecorder().record(62,s),this._createAndWriteCachedData(e,i,s,l),d&&l.getConfig().onError(d)}):n&&this._createAndWriteCachedData(e,i,s,l)}_createAndWriteCachedData(e,i,s,n){let l=Math.ceil(n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),d=-1,o=0,_;const f=()=>{setTimeout(()=>{_||(_=this._crypto.createHash("md5").update(i,"utf8").digest());const g=e.createCachedData();if(!(g.length===0||g.length===d||o>=5)){if(g.length<d){f();return}d=g.length,this._fs.writeFile(s,Buffer.concat([_,g]),v=>{v&&n.getConfig().onError(v),n.getRecorder().record(63,s),f()})}},l*Math.pow(4,o++))};f()}_readSourceAndCachedData(e,i,s,n){if(!i)this._fs.readFile(e,{encoding:"utf8"},n);else{let l,d,o,_=2;const f=g=>{g?n(g):--_===0&&n(void 0,l,d,o)};this._fs.readFile(e,{encoding:"utf8"},(g,v)=>{l=v,f(g)}),this._fs.readFile(i,(g,v)=>{!g&&v&&v.length>0?(o=v.slice(0,16),d=v.slice(16),s.record(60,i)):s.record(61,i),f()})}}_verifyCachedData(e,i,s,n,l){n&&(e.cachedDataRejected||setTimeout(()=>{const d=this._crypto.createHash("md5").update(i,"utf8").digest();n.equals(d)||(l.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${s}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(s,o=>{o&&l.getConfig().onError(o)}))},Math.ceil(5e3*(1+Math.random()))))}}r._BOM=65279,r._PREFIX="(function (require, define, __filename, __dirname) { ",r._SUFFIX=`
8
+ });`;function c(t,e){if(e.__$__isRecorded)return e;const i=function(n){t.record(33,n);try{return e(n)}finally{t.record(34,n)}};return i.__$__isRecorded=!0,i}u.ensureRecordedNodeRequire=c;function a(t){return new y(t)}u.createScriptLoader=a})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(u){class y{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let e=t,i;for(i=/\/\.\//;i.test(e);)e=e.replace(i,"/");for(e=e.replace(/^\.\//g,""),i=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;i.test(e);)e=e.replace(i,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e}resolveModule(t){let e=t;return u.Utilities.isAbsolutePath(e)||(u.Utilities.startsWith(e,"./")||u.Utilities.startsWith(e,"../"))&&(e=y._normalizeModuleId(this.fromModulePath+e)),e}}y.ROOT=new y(""),u.ModuleIdResolver=y;class m{constructor(t,e,i,s,n,l){this.id=t,this.strId=e,this.dependencies=i,this._callback=s,this._errorback=n,this.moduleIdResolver=l,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,e){try{return{returnedValue:t.apply(u.global,e),producedError:null}}catch(i){return{returnedValue:null,producedError:i}}}static _invokeFactory(t,e,i,s){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(i,s):{returnedValue:i.apply(u.global,s),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,i,s){this._isComplete=!0;let n=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let l=m._invokeFactory(e,this.strId,this._callback,i);n=l.producedError,t.record(22,this.strId),!n&&typeof l.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=l.returnedValue)}else this.exports=this._callback;if(n){let l=u.ensureError(n);l.phase="factory",l.moduleId=this.strId,l.neededBy=s(this.id),this.error=l,e.onError(l)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1}isComplete(){return this._isComplete}}u.Module=m;class p{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(t){let e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e}getStrModuleId(t){return this._intModuleIdToStrModuleId[t]}}class h{constructor(t){this.id=t}}h.EXPORTS=new h(0),h.MODULE=new h(1),h.REQUIRE=new h(2),u.RegularDependency=h;class r{constructor(t,e,i){this.id=t,this.pluginId=e,this.pluginParam=i}}u.PluginDependency=r;class c{constructor(t,e,i,s,n=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=n,this._defineFunc=i,this._requireFunc=s,this._moduleIdProvider=new p,this._config=new u.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=[],this._requireFunc.moduleManager=this}reset(){return new c(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let i=l=>l.replace(/\\/g,"/"),s=i(t),n=e.split(/\n/);for(let l=0;l<n.length;l++){let d=n[l].match(/(.*):(\d+):(\d+)\)?$/);if(d){let o=d[1],_=d[2],f=d[3],g=Math.max(o.lastIndexOf(" ")+1,o.lastIndexOf("(")+1);if(o=o.substr(g),o=i(o),o===s){let v={line:parseInt(_,10),col:parseInt(f,10)};return v.line===1&&(v.col-=53),v}}}throw new Error("Could not correlate define call site for needle "+t)}getBuildInfo(){if(!this._config.isBuild())return null;let t=[],e=0;for(let i=0,s=this._modules2.length;i<s;i++){let n=this._modules2[i];if(!n)continue;let l=this._buildInfoPath[n.id]||null,d=this._buildInfoDefineStack[n.id]||null,o=this._buildInfoDependencies[n.id];t[e++]={id:n.strId,path:l,defineLocation:l&&d?c._findRelevantLocationInStack(l,d):null,dependencies:o,shim:null,exports:n.exports}}return t}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");let i=null;this._config.isBuild()&&(i=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:i,dependencies:t,callback:e}}defineModule(t,e,i,s,n,l=new y(t)){let d=this._moduleIdProvider.getModuleId(t);if(this._modules2[d]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}let o=new m(d,t,this._normalizeDependencies(e,l),i,s,l);this._modules2[d]=o,this._config.isBuild()&&(this._buildInfoDefineStack[d]=n,this._buildInfoDependencies[d]=(o.dependencies||[]).map(_=>this._moduleIdProvider.getStrModuleId(_.id))),this._resolve(o)}_normalizeDependency(t,e){if(t==="exports")return h.EXPORTS;if(t==="module")return h.MODULE;if(t==="require")return h.REQUIRE;let i=t.indexOf("!");if(i>=0){let s=e.resolveModule(t.substr(0,i)),n=e.resolveModule(t.substr(i+1)),l=this._moduleIdProvider.getModuleId(s+"!"+n),d=this._moduleIdProvider.getModuleId(s);return new r(l,d,n)}return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let i=[],s=0;for(let n=0,l=t.length;n<l;n++)i[s++]=this._normalizeDependency(t[n],e);return i}_relativeRequire(t,e,i,s){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(u.Utilities.generateAnonymousModule(),e,i,s,null,t)}synchronousRequire(t,e=new y(t)){let i=this._normalizeDependency(t,e),s=this._modules2[i.id];if(!s)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!s.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(s.error)throw s.error;return s.exports}configure(t,e){let i=this._config.shouldRecordStats();e?this._config=new u.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!i&&(this._recorder=null)}getConfig(){return this._config}_onLoad(t){if(this._currentAnonymousDefineCall!==null){let e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}}_createLoadError(t,e){let i=this._moduleIdProvider.getStrModuleId(t),s=(this._inverseDependencies2[t]||[]).map(l=>this._moduleIdProvider.getStrModuleId(l));const n=u.ensureError(e);return n.phase="loading",n.moduleId=i,n.neededBy=s,n}_onLoadError(t,e){const i=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new m(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let s=[];for(let d=0,o=this._moduleIdProvider.getMaxModuleId();d<o;d++)s[d]=!1;let n=!1,l=[];for(l.push(t),s[t]=!0;l.length>0;){let d=l.shift(),o=this._modules2[d];o&&(n=o.onDependencyError(i)||n);let _=this._inverseDependencies2[d];if(_)for(let f=0,g=_.length;f<g;f++){let v=_[f];s[v]||(l.push(v),s[v]=!0)}}n||this._config.onError(i)}_hasDependencyPath(t,e){let i=this._modules2[t];if(!i)return!1;let s=[];for(let l=0,d=this._moduleIdProvider.getMaxModuleId();l<d;l++)s[l]=!1;let n=[];for(n.push(i),s[t]=!0;n.length>0;){let d=n.shift().dependencies;if(d)for(let o=0,_=d.length;o<_;o++){let f=d[o];if(f.id===e)return!0;let g=this._modules2[f.id];g&&!s[f.id]&&(s[f.id]=!0,n.push(g))}}return!1}_findCyclePath(t,e,i){if(t===e||i===50)return[t];let s=this._modules2[t];if(!s)return null;let n=s.dependencies;if(n)for(let l=0,d=n.length;l<d;l++){let o=this._findCyclePath(n[l].id,e,i+1);if(o!==null)return o.push(t),o}return null}_createRequire(t){let e=(i,s,n)=>this._relativeRequire(t,i,s,n);return e.toUrl=i=>this._config.requireToUrl(t.resolveModule(i)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(i,s=!1)=>{this.configure(i,s)},e.__$__nodeRequire=u.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),i=this._config.moduleIdToPaths(e),s=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||s.test(e))&&i.push("node|"+e);let n=-1,l=d=>{if(n++,n>=i.length)this._onLoadError(t,d);else{let o=i[n],_=this.getRecorder();if(this._config.isBuild()&&o==="empty:"){this._buildInfoPath[t]=o,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}_.record(10,o),this._scriptLoader.load(this,o,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=o),_.record(11,o),this._onLoad(t)},f=>{_.record(12,o),l(f)})}};l(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let i=s=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],s,null,null)};i.error=s=>{this._config.onError(this._createLoadError(e.id,s))},t.load(e.pluginParam,this._createRequire(y.ROOT),i,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let i=0,s=e.length;i<s;i++){let n=e[i];if(n===h.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(n===h.MODULE){t.unresolvedDependenciesCount--;continue}if(n===h.REQUIRE){t.unresolvedDependenciesCount--;continue}let l=this._modules2[n.id];if(l&&l.isComplete()){if(l.error){t.onDependencyError(l.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(n.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(n.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");let d=this._findCyclePath(n.id,t.id,0)||[];d.reverse(),d.push(n.id),console.warn(d.map(o=>this._moduleIdProvider.getStrModuleId(o)).join(` =>
9
+ `)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[n.id]=this._inverseDependencies2[n.id]||[],this._inverseDependencies2[n.id].push(t.id),n instanceof r){let d=this._modules2[n.pluginId];if(d&&d.isComplete()){this._loadPluginDependency(d.exports,n);continue}let o=this._inversePluginDependencies2.get(n.pluginId);o||(o=[],this._inversePluginDependencies2.set(n.pluginId,o)),o.push(n),this._loadModule(n.pluginId);continue}this._loadModule(n.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)}_onModuleComplete(t){let e=this.getRecorder();if(t.isComplete())return;let i=t.dependencies,s=[];if(i)for(let o=0,_=i.length;o<_;o++){let f=i[o];if(f===h.EXPORTS){s[o]=t.exports;continue}if(f===h.MODULE){s[o]={id:t.strId,config:()=>this._config.getConfigForModule(t.strId)};continue}if(f===h.REQUIRE){s[o]=this._createRequire(t.moduleIdResolver);continue}let g=this._modules2[f.id];if(g){s[o]=g.exports;continue}s[o]=null}const n=o=>(this._inverseDependencies2[o]||[]).map(_=>this._moduleIdProvider.getStrModuleId(_));t.complete(e,this._config,s,n);let l=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,l)for(let o=0,_=l.length;o<_;o++){let f=l[o],g=this._modules2[f];g.unresolvedDependenciesCount--,g.unresolvedDependenciesCount===0&&this._onModuleComplete(g)}let d=this._inversePluginDependencies2.get(t.id);if(d){this._inversePluginDependencies2.delete(t.id);for(let o=0,_=d.length;o<_;o++)this._loadPluginDependency(t.exports,d[o])}}}u.ModuleManager=c})(AMDLoader||(AMDLoader={}));var define,AMDLoader;(function(u){const y=new u.Environment;let m=null;const p=function(a,t,e){typeof a!="string"&&(e=t,t=a,a=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),a?m.defineModule(a,t,e,null,null):m.enqueueDefineAnonymousModule(t,e)};p.amd={jQuery:!0};const h=function(a,t=!1){m.configure(a,t)},r=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){h(arguments[0]);return}if(typeof arguments[0]=="string")return m.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){m.defineModule(u.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};r.config=h,r.getConfig=function(){return m.getConfig().getOptionsLiteral()},r.reset=function(){m=m.reset()},r.getBuildInfo=function(){return m.getBuildInfo()},r.getStats=function(){return m.getLoaderEvents()},r.define=p;function c(){if(typeof u.global.require<"u"||typeof require<"u"){const a=u.global.require||require;if(typeof a=="function"&&typeof a.resolve=="function"){const t=u.ensureRecordedNodeRequire(m.getRecorder(),a);u.global.nodeRequire=t,r.nodeRequire=t,r.__$__nodeRequire=t}}y.isNode&&!y.isElectronRenderer&&!y.isElectronNodeIntegrationWebWorker?module.exports=r:(y.isElectronRenderer||(u.global.define=p),u.global.require=r)}u.init=c,(typeof u.global.define!="function"||!u.global.define.amd)&&(m=new u.ModuleManager(y,u.createScriptLoader(y),p,r,u.Utilities.getHighPerformanceTimestamp()),typeof u.global.require<"u"&&typeof u.global.require!="function"&&r.config(u.global.require),define=function(){return p.apply(null,arguments)},define.amd=p.amd,typeof doNotInitLoader>"u"&&c())})(AMDLoader||(AMDLoader={}));
10
+
11
+ //# sourceMappingURL=../../min-maps/vs/loader.js.map
package/dist/index.html CHANGED
@@ -1,14 +1,18 @@
1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
  <html>
3
3
 
4
4
  <head>
5
5
  <meta charset="utf-8">
6
- <link rel="icon" href="assets/favicon.ico">
7
- <link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
8
- <meta name="viewport" content="width=device-width,initial-scale=1">
9
- <meta name="description" content="QuestDB live demo. Query three large datasets and more than 2 billion rows in milliseconds with SQL">
6
+ <link rel="icon" href="/assets/favicon.ico">
7
+ <link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ <meta name="description"
10
+ content="QuestDB live demo. Query three large datasets and more than 2 billion rows in milliseconds with SQL" />
10
11
  <title>QuestDB · Console</title>
11
- <script defer="defer" src="vendor.7241c.js"></script><script defer="defer" src="qdb.e248c.js"></script><link href="vendor.7241c.css" rel="stylesheet"><link href="qdb.e248c.css" rel="stylesheet"></head>
12
+ <script type="module" crossorigin src="/assets/index-BDByQptw.js"></script>
13
+ <link rel="modulepreload" crossorigin href="/assets/vendor-C-4C_esR.js">
14
+ <link rel="stylesheet" crossorigin href="/assets/index-DxP8ECWL.css">
15
+ </head>
12
16
 
13
17
  <body class="mini-navbar pace-done">
14
18
  <div id="root"></div>
package/package.json CHANGED
@@ -1,25 +1,34 @@
1
1
  {
2
2
  "name": "@questdb/web-console",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
+ "packageManager": "yarn@4.1.1",
4
5
  "license": "Apache-2.0",
5
- "description": "QuestDB Console",
6
- "files": [
7
- "dist"
8
- ],
6
+ "description": "QuestDB Web Console",
7
+ "author": {
8
+ "name": "QuestDB"
9
+ },
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "https://github.com/questdb/ui.git"
12
13
  },
14
+ "files": [
15
+ "dist"
16
+ ],
13
17
  "engines": {
14
- "node": ">=16.13.1"
18
+ "node": ">=18.18.0"
15
19
  },
16
20
  "scripts": {
17
- "build": "cross-env NODE_ENV=production COMMIT_HASH=$(git rev-parse --short HEAD) webpack",
18
- "postbuild": "node post-build.js",
19
- "start": "COMMIT_HASH=$(git rev-parse --short HEAD) webpack-dev-server --progress",
20
- "start:prod": "cross-env NODE_ENV=production COMMIT_HASH=$(git rev-parse --short HEAD) webpack-dev-server --progress",
21
- "test": "TZ=UTC && jest --watch --runInBand",
22
- "test:prod": "TZ=UTC && jest --ci --runInBand"
21
+ "build": "cross-env COMMIT_HASH=$(git rev-parse --short HEAD) vite build",
22
+ "start": "COMMIT_HASH=$(git rev-parse --short HEAD) vite",
23
+ "preview": "vite preview",
24
+ "test:unit": "TZ=UTC vitest run",
25
+ "test:e2e": "cypress run --spec 'e2e/tests/console/*.spec.js'",
26
+ "test:e2e:auth": "cypress run --spec 'e2e/tests/auth/*.spec.js'",
27
+ "test:e2e:enterprise": "cypress run --spec 'e2e/tests/enterprise/*.spec.js'",
28
+ "typecheck": "tsc --noEmit",
29
+ "lint": "eslint src/ e2e/tests/",
30
+ "lint:fix": "eslint src/ e2e/tests/ --fix",
31
+ "prepare": "husky"
23
32
  },
24
33
  "dependencies": {
25
34
  "@date-fns/tz": "^1.2.0",
@@ -28,11 +37,13 @@
28
37
  "@hookform/resolvers": "2.8.5",
29
38
  "@monaco-editor/react": "^4.6.0",
30
39
  "@popperjs/core": "2.4.2",
31
- "@questdb/react-components": "workspace:^",
32
- "@questdb/sql-grammar": "1.3.0",
33
- "@radix-ui/react-context-menu": "2.1.5",
34
- "@radix-ui/react-dialog": "^1.0.3",
35
- "@radix-ui/react-dropdown-menu": "^2.1.15",
40
+ "@questdb/sql-grammar": "1.4.1",
41
+ "@radix-ui/react-alert-dialog": "^1.1.15",
42
+ "@radix-ui/react-context-menu": "^2.2.16",
43
+ "@radix-ui/react-dialog": "^1.1.15",
44
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
45
+ "@radix-ui/react-popover": "^1.1.0",
46
+ "@radix-ui/react-switch": "^1.2.6",
36
47
  "@styled-icons/bootstrap": "10.47.0",
37
48
  "@styled-icons/boxicons-logos": "10.47.0",
38
49
  "@styled-icons/boxicons-regular": "10.47.0",
@@ -48,7 +59,6 @@
48
59
  "@styled-icons/remix-line": "10.46.0",
49
60
  "allotment": "^1.19.3",
50
61
  "animate.css": "3.7.2",
51
- "clipboard": "2.0.6",
52
62
  "compare-versions": "^5.0.1",
53
63
  "core-js": "^3.22.8",
54
64
  "date-fns": "4.1.0",
@@ -67,7 +77,6 @@
67
77
  "lodash.merge": "^4.6.2",
68
78
  "monaco-editor": "^0.44.0",
69
79
  "posthog-js": "^1.131.2",
70
- "prop-types": "^15.8.1",
71
80
  "ramda": "0.27.1",
72
81
  "react": "17.0.2",
73
82
  "react-calendar": "^4.0.0",
@@ -93,101 +102,86 @@
93
102
  "uplot-react": "^1.2.2"
94
103
  },
95
104
  "devDependencies": {
96
- "@babel/cli": "^7.17.10",
97
- "@babel/core": "^7.20.12",
105
+ "@4tw/cypress-drag-drop": "^2.2.5",
106
+ "@babel/core": "^7.28.5",
98
107
  "@babel/preset-env": "^7.20.2",
99
108
  "@babel/preset-react": "^7.17.12",
100
109
  "@babel/preset-typescript": "^7.18.6",
101
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
110
+ "@eslint/js": "^9.13.0",
102
111
  "@styled-icons/styled-icon": "^10.7.0",
112
+ "@types/babel__core": "^7",
103
113
  "@types/draggabilly": "^2.1.6",
104
114
  "@types/echarts": "^4.9.22",
105
- "@types/jest": "^29.5.14",
106
115
  "@types/jquery": "3.5.1",
107
116
  "@types/lodash.merge": "^4.6.9",
108
- "@types/node": "^17.0.41",
117
+ "@types/node": "^18.0.0",
109
118
  "@types/ramda": "0.27.40",
110
- "@types/react": "16.9.35",
111
- "@types/react-dom": "16.9.8",
119
+ "@types/react": "17.0.2",
120
+ "@types/react-dom": "17.0.2",
112
121
  "@types/react-highlight-words": "^0.16.7",
113
122
  "@types/react-redux": "7.1.9",
114
123
  "@types/react-transition-group": "4.4.0",
115
124
  "@types/styled-components": "5.1.7",
116
125
  "@types/throttle-debounce": "2.1.0",
117
- "@typescript-eslint/eslint-plugin": "^7.7.0",
118
- "@typescript-eslint/parser": "^7.7.0",
119
- "babel-jest": "^29.4.2",
120
- "babel-loader": "^8.2.5",
126
+ "@vitejs/plugin-react": "^5.1.0",
121
127
  "babel-plugin-import": "^1.13.8",
122
128
  "babel-plugin-styled-components": "^2.0.7",
123
- "bundle-stats-webpack-plugin": "^4.7.6",
124
129
  "bundlewatch": "^0.3.3",
125
- "clean-webpack-plugin": "3.0.0",
126
- "copy-webpack-plugin": "^11.0.0",
127
130
  "cross-env": "7.0.2",
128
- "css-loader": "3.5.3",
129
- "eslint": "^8.56.0",
130
- "eslint-config-love": "47.0.0",
131
- "eslint-config-prettier": "^8.5.0",
132
- "eslint-plugin-babel": "5.3.1",
133
- "eslint-plugin-import": "2.25.2",
134
- "eslint-plugin-n": "16.6.2",
135
- "eslint-plugin-node": "11.1.0",
136
- "eslint-plugin-prettier": "^4.0.0",
137
- "eslint-plugin-promise": "6.0.0",
138
- "eslint-plugin-react": "7.34.1",
139
- "eslint-plugin-react-hooks": "4.6.0",
140
- "eslint-plugin-standard": "5.0.0",
141
- "file-loader": "6.0.0",
142
- "fork-ts-checker-webpack-plugin": "6.1.0",
143
- "html-webpack-plugin": "^5.5.0",
144
- "jest": "^29.7.0",
145
- "mini-css-extract-plugin": "^2.6.0",
146
- "prettier": "^2.5.1",
147
- "react-refresh": "^0.14.0",
148
- "rimraf": "3.0.2",
149
- "sass": "1.26.8",
150
- "sass-loader": "8.0.2",
151
- "style-loader": "1.2.1",
131
+ "cypress": "^10.11.0",
132
+ "cypress-real-events": "^1.13.0",
133
+ "eslint": "^9.13.0",
134
+ "eslint-config-prettier": "^10.1.8",
135
+ "eslint-plugin-jsx-a11y": "^6.10.2",
136
+ "eslint-plugin-prettier": "^5.2.3",
137
+ "eslint-plugin-react": "^7.37.5",
138
+ "eslint-plugin-react-hooks": "^5.1.0",
139
+ "globals": "^15.0.0",
140
+ "husky": "^9.1.7",
141
+ "jiti": "^2.6.1",
142
+ "lint-staged": "^16.2.6",
143
+ "prettier": "^3.3.0",
144
+ "sass": "^1.93.2",
152
145
  "stylelint": "^13.13.1",
153
146
  "stylelint-config-prettier": "8.0.1",
154
147
  "stylelint-config-recommended": "3.0.0",
155
148
  "stylelint-config-styled-components": "0.1.1",
156
- "stylelint-custom-processor-loader": "0.6.0",
157
149
  "stylelint-processor-styled-components": "1.10.0",
158
- "svg-react-loader": "0.4.6",
159
- "ts-jest": "^29.2.5",
160
- "typescript": "^4.6.2",
161
- "webpack": "^5",
162
- "webpack-bundle-analyzer": "^4.9.1",
163
- "webpack-cli": "^4.9.2",
164
- "webpack-dev-server": "^4.15.1"
150
+ "typescript": "^5.7.0",
151
+ "typescript-eslint": "^8.46.0",
152
+ "vite": "^7.1.12",
153
+ "vite-plugin-checker": "^0.11.0",
154
+ "vite-plugin-static-copy": "^3.1.4",
155
+ "vitest": "^1.6.0"
165
156
  },
166
- "author": {
167
- "name": "QuestDB"
157
+ "resolutions": {
158
+ "@types/react": "17.0.2",
159
+ "react": "17.0.2",
160
+ "react-dom": "17.0.2",
161
+ "@monaco-editor/loader": "1.4.0"
168
162
  },
169
163
  "bundlewatch": {
170
164
  "files": [
171
165
  {
172
- "path": "dist/vendor.*.js",
173
- "maxSize": "3MB",
174
- "compression": "none"
175
- },
176
- {
177
- "path": "dist/qdb.*.js",
166
+ "path": "dist/assets/vendor-*.js",
178
167
  "maxSize": "500KB",
179
168
  "compression": "none"
180
169
  },
181
170
  {
182
- "path": "dist/qdb.*.css",
183
- "maxSize": "100KB",
171
+ "path": "dist/assets/index-*.js",
172
+ "maxSize": "2.5MB",
184
173
  "compression": "none"
185
174
  },
186
175
  {
187
- "path": "dist/vendor.*.css",
176
+ "path": "dist/assets/index-*.css",
188
177
  "maxSize": "100KB",
189
178
  "compression": "none"
190
179
  }
191
180
  ]
181
+ },
182
+ "lint-staged": {
183
+ "*.{ts,tsx}": [
184
+ "eslint --max-warnings=0"
185
+ ]
192
186
  }
193
187
  }
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,15 +0,0 @@
1
- /*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
2
-
3
- /*!-----------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
- * Released under the MIT license
7
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
8
- *-----------------------------------------------------------*/
9
-
10
- /*!-----------------------------------------------------------------------------
11
- * Copyright (c) Microsoft Corporation. All rights reserved.
12
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
13
- * Released under the MIT license
14
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
15
- *-----------------------------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------*/