MOON
Server: Apache
System: Linux server1.quantilytics.org 3.10.0-1160.119.1.el7.tuxcare.els21.x86_64 #1 SMP Tue Jun 17 03:11:12 UTC 2025 x86_64
User: hnhtennm (1016)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/hnhtennm/.vscode-server/bin/1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a/out/server-main.js
"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(R,b)=>function(){return b||(0,R[__getOwnPropNames(R)[0]])((b={exports:{}}).exports,b),b.exports},require_performance=__commonJS({"out-build/vs/base/common/performance.js"(R,b){"use strict";(function(){function C(u){const v=[];typeof u=="number"&&v.push("code/timeOrigin",u);function d(c){v.push(c,Date.now())}function _(){const c=[];for(let o=0;o<v.length;o+=2)c.push({name:v[o],startTime:v[o+1]});return c}return{mark:d,getMarks:_}}function P(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?C():{mark(u){performance.mark(u)},getMarks(){let u=performance.timeOrigin;typeof u!="number"&&(u=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const v=[{name:"code/timeOrigin",startTime:Math.round(u)}];for(const d of performance.getEntriesByType("mark"))v.push({name:d.name,startTime:Math.round(u+d.startTime)});return v}};if(typeof process=="object"){const u=Math.round((require.__$__nodeRequire||require)("perf_hooks").performance.timeOrigin);return C(u)}else return console.trace("perf-util loaded in UNKNOWN environment"),C()}function S(u){return u.MonacoPerformanceMarks||(u.MonacoPerformanceMarks=P()),u.MonacoPerformanceMarks}var E;typeof global=="object"?E=global:typeof self=="object"?E=self:E={},typeof define=="function"?define([],function(){return S(E)}):typeof b=="object"&&typeof b.exports=="object"?b.exports=S(E):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),E.perf=S(E))})()}}),require_bootstrap_node=__commonJS({"out-build/bootstrap-node.js"(R){"use strict";function b(){const C=require("path");try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(C.dirname(process.execPath))}catch(P){console.error(P)}}b(),R.injectNodeModuleLookupPath=function(C){if(!C)throw new Error("Missing injectPath");const P=require("module"),E=require("path").join(__dirname,"../node_modules"),u=P._resolveLookupPaths;P._resolveLookupPaths=function(v,d){const _=u(v,d);if(Array.isArray(_)){for(let c=0,o=_.length;c<o;c++)if(_[c]===E){_.splice(c,0,C);break}}return _}},R.removeGlobalNodeModuleLookupPaths=function(){const C=require("module"),P=C.globalPaths,S=C._resolveLookupPaths;C._resolveLookupPaths=function(E,u){const v=S(E,u);if(Array.isArray(v)){let d=0;for(;d<v.length&&v[v.length-1-d]===P[P.length-1-d];)d++;return v.slice(0,v.length-d)}return v}},R.configurePortable=function(C){const P=require("fs"),S=require("path"),E=S.dirname(__dirname);function u(h){return process.env.VSCODE_DEV?E:process.platform==="darwin"?h.dirname(h.dirname(h.dirname(E))):h.dirname(h.dirname(E))}function v(h){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return h.join(u(h),"data");const n=C.portable||`${C.applicationName}-portable-data`;return h.join(h.dirname(u(h)),n)}const d=v(S),_=!("target"in C)&&P.existsSync(d),c=S.join(d,"tmp"),o=_&&P.existsSync(c);return _?process.env.VSCODE_PORTABLE=d:delete process.env.VSCODE_PORTABLE,o&&(process.platform==="win32"?(process.env.TMP=c,process.env.TEMP=c):process.env.TMPDIR=c),{portableDataPath:d,isPortable:_}}}}),require_loader=__commonJS({"out-build/vs/loader.js"(R,b){"use strict";var C=R,P=typeof global=="object"?global:{},E;(function(u){u.global=C;var v=function(){function d(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(d.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),d.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=d._isWindows(),this._isNode=typeof b<"u"&&!!b.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")},d._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},d}();u.Environment=v})(E||(E={}));var E;(function(u){var v=function(){function c(o,h,n){this.type=o,this.detail=h,this.timestamp=n}return c}();u.LoaderEvent=v;var d=function(){function c(o){this._events=[new v(1,"",o)]}return c.prototype.record=function(o,h){this._events.push(new v(o,h,u.Utilities.getHighPerformanceTimestamp()))},c.prototype.getEvents=function(){return this._events},c}();u.LoaderEventRecorder=d;var _=function(){function c(){}return c.prototype.record=function(o,h){},c.prototype.getEvents=function(){return[]},c.INSTANCE=new c,c}();u.NullLoaderEventRecorder=_})(E||(E={}));var E;(function(u){var v=function(){function d(){}return d.fileUriToFilePath=function(_,c){if(c=decodeURI(c).replace(/%23/g,"#"),_){if(/^file:\/\/\//.test(c))return c.substr(8);if(/^file:\/\//.test(c))return c.substr(5)}else if(/^file:\/\//.test(c))return c.substr(7);return c},d.startsWith=function(_,c){return _.length>=c.length&&_.substr(0,c.length)===c},d.endsWith=function(_,c){return _.length>=c.length&&_.substr(_.length-c.length)===c},d.containsQueryString=function(_){return/^[^\#]*\?/gi.test(_)},d.isAbsolutePath=function(_){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(_)},d.forEachProperty=function(_,c){if(_){var o=void 0;for(o in _)_.hasOwnProperty(o)&&c(o,_[o])}},d.isEmpty=function(_){var c=!0;return d.forEachProperty(_,function(){c=!1}),c},d.recursiveClone=function(_){if(!_||typeof _!="object"||_ instanceof RegExp||!Array.isArray(_)&&Object.getPrototypeOf(_)!==Object.prototype)return _;var c=Array.isArray(_)?[]:{};return d.forEachProperty(_,function(o,h){h&&typeof h=="object"?c[o]=d.recursiveClone(h):c[o]=h}),c},d.generateAnonymousModule=function(){return"===anonymous"+d.NEXT_ANONYMOUS_ID+++"==="},d.isAnonymousModule=function(_){return d.startsWith(_,"===anonymous")},d.getHighPerformanceTimestamp=function(){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()},d.NEXT_ANONYMOUS_ID=1,d.PERFORMANCE_NOW_PROBED=!1,d.HAS_PERFORMANCE_NOW=!1,d}();u.Utilities=v})(E||(E={}));var E;(function(u){function v(c){if(c instanceof Error)return c;var o=new Error(c.message||String(c)||"Unknown Error");return c.stack&&(o.stack=c.stack),o}u.ensureError=v;var d=function(){function c(){}return c.validateConfigurationOptions=function(o){function h(e){if(e.phase==="loading"){console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),console.error(e.neededBy);return}if(e.phase==="factory"){console.error('The factory function of "'+e.moduleId+'" has thrown an exception'),console.error(e),console.error("Here are the modules that depend on it:"),console.error(e.neededBy);return}}if(o=o||{},typeof o.baseUrl!="string"&&(o.baseUrl=""),typeof o.isBuild!="boolean"&&(o.isBuild=!1),typeof o.paths!="object"&&(o.paths={}),typeof o.config!="object"&&(o.config={}),typeof o.catchError>"u"&&(o.catchError=!1),typeof o.recordStats>"u"&&(o.recordStats=!1),typeof o.urlArgs!="string"&&(o.urlArgs=""),typeof o.onError!="function"&&(o.onError=h),Array.isArray(o.ignoreDuplicateModules)||(o.ignoreDuplicateModules=[]),o.baseUrl.length>0&&(u.Utilities.endsWith(o.baseUrl,"/")||(o.baseUrl+="/")),typeof o.cspNonce!="string"&&(o.cspNonce=""),typeof o.preferScriptTags>"u"&&(o.preferScriptTags=!1),o.nodeCachedData&&typeof o.nodeCachedData=="object"&&(typeof o.nodeCachedData.seed!="string"&&(o.nodeCachedData.seed="seed"),(typeof o.nodeCachedData.writeDelay!="number"||o.nodeCachedData.writeDelay<0)&&(o.nodeCachedData.writeDelay=1e3*7),!o.nodeCachedData.path||typeof o.nodeCachedData.path!="string")){var n=v(new Error("INVALID cached data configuration, 'path' MUST be set"));n.phase="configuration",o.onError(n),o.nodeCachedData=void 0}return o},c.mergeConfigurationOptions=function(o,h){o===void 0&&(o=null),h===void 0&&(h=null);var n=u.Utilities.recursiveClone(h||{});return u.Utilities.forEachProperty(o,function(e,t){e==="ignoreDuplicateModules"&&typeof n.ignoreDuplicateModules<"u"?n.ignoreDuplicateModules=n.ignoreDuplicateModules.concat(t):e==="paths"&&typeof n.paths<"u"?u.Utilities.forEachProperty(t,function(r,i){return n.paths[r]=i}):e==="config"&&typeof n.config<"u"?u.Utilities.forEachProperty(t,function(r,i){return n.config[r]=i}):n[e]=u.Utilities.recursiveClone(t)}),c.validateConfigurationOptions(n)},c}();u.ConfigurationOptionsUtil=d;var _=function(){function c(o,h){if(this._env=o,this.options=d.mergeConfigurationOptions(h),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var n=this.options.nodeRequire.main.filename,e=Math.max(n.lastIndexOf("/"),n.lastIndexOf("\\"));this.options.baseUrl=n.substring(0,e+1)}}return c.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var o=0;o<this.options.ignoreDuplicateModules.length;o++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[o]]=!0},c.prototype._createSortedPathsRules=function(){var o=this;this.sortedPathsRules=[],u.Utilities.forEachProperty(this.options.paths,function(h,n){Array.isArray(n)?o.sortedPathsRules.push({from:h,to:n}):o.sortedPathsRules.push({from:h,to:[n]})}),this.sortedPathsRules.sort(function(h,n){return n.from.length-h.from.length})},c.prototype.cloneAndMerge=function(o){return new c(this._env,d.mergeConfigurationOptions(o,this.options))},c.prototype.getOptionsLiteral=function(){return this.options},c.prototype._applyPaths=function(o){for(var h,n=0,e=this.sortedPathsRules.length;n<e;n++)if(h=this.sortedPathsRules[n],u.Utilities.startsWith(o,h.from)){for(var t=[],r=0,i=h.to.length;r<i;r++)t.push(h.to[r]+o.substr(h.from.length));return t}return[o]},c.prototype._addUrlArgsToUrl=function(o){return u.Utilities.containsQueryString(o)?o+"&"+this.options.urlArgs:o+"?"+this.options.urlArgs},c.prototype._addUrlArgsIfNecessaryToUrl=function(o){return this.options.urlArgs?this._addUrlArgsToUrl(o):o},c.prototype._addUrlArgsIfNecessaryToUrls=function(o){if(this.options.urlArgs)for(var h=0,n=o.length;h<n;h++)o[h]=this._addUrlArgsToUrl(o[h]);return o},c.prototype.moduleIdToPaths=function(o){if(this._env.isNode){var h=this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(o);if(h)return this.isBuild()?["empty:"]:["node|"+o]}var n=o,e;if(!u.Utilities.endsWith(n,".js")&&!u.Utilities.isAbsolutePath(n)){e=this._applyPaths(n);for(var t=0,r=e.length;t<r;t++)this.isBuild()&&e[t]==="empty:"||(u.Utilities.isAbsolutePath(e[t])||(e[t]=this.options.baseUrl+e[t]),!u.Utilities.endsWith(e[t],".js")&&!u.Utilities.containsQueryString(e[t])&&(e[t]=e[t]+".js"))}else!u.Utilities.endsWith(n,".js")&&!u.Utilities.containsQueryString(n)&&(n=n+".js"),e=[n];return this._addUrlArgsIfNecessaryToUrls(e)},c.prototype.requireToUrl=function(o){var h=o;return u.Utilities.isAbsolutePath(h)||(h=this._applyPaths(h)[0],u.Utilities.isAbsolutePath(h)||(h=this.options.baseUrl+h)),this._addUrlArgsIfNecessaryToUrl(h)},c.prototype.isBuild=function(){return this.options.isBuild},c.prototype.shouldInvokeFactory=function(o){return!!(!this.options.isBuild||u.Utilities.isAnonymousModule(o)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[o])},c.prototype.isDuplicateMessageIgnoredFor=function(o){return this.ignoreDuplicateModulesMap.hasOwnProperty(o)},c.prototype.getConfigForModule=function(o){if(this.options.config)return this.options.config[o]},c.prototype.shouldCatchError=function(){return this.options.catchError},c.prototype.shouldRecordStats=function(){return this.options.recordStats},c.prototype.onError=function(o){this.options.onError(o)},c}();u.Configuration=_})(E||(E={}));var E;(function(u){var v=function(){function e(t){this._env=t,this._scriptLoader=null,this._callbackMap={}}return e.prototype.load=function(t,r,i,s){var a=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new c;else if(this._env.isElectronRenderer){var l=t.getConfig().getOptionsLiteral().preferScriptTags;l?this._scriptLoader=new d:this._scriptLoader=new o(this._env)}else this._env.isNode?this._scriptLoader=new o(this._env):this._scriptLoader=new d;var f={callback:i,errorback:s};if(this._callbackMap.hasOwnProperty(r)){this._callbackMap[r].push(f);return}this._callbackMap[r]=[f],this._scriptLoader.load(t,r,function(){return a.triggerCallback(r)},function(p){return a.triggerErrorback(r,p)})},e.prototype.triggerCallback=function(t){var r=this._callbackMap[t];delete this._callbackMap[t];for(var i=0;i<r.length;i++)r[i].callback()},e.prototype.triggerErrorback=function(t,r){var i=this._callbackMap[t];delete this._callbackMap[t];for(var s=0;s<i.length;s++)i[s].errorback(r)},e}(),d=function(){function e(){}return e.prototype.attachListeners=function(t,r,i){var s=function(){t.removeEventListener("load",a),t.removeEventListener("error",l)},a=function(f){s(),r()},l=function(f){s(),i(f)};t.addEventListener("load",a),t.addEventListener("error",l)},e.prototype.load=function(t,r,i,s){if(/^node\|/.test(r)){var a=t.getConfig().getOptionsLiteral(),l=h(t.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=l(f[1])}catch(O){s(O);return}t.enqueueDefineAnonymousModule([],function(){return p}),i()}else{var g=document.createElement("script");g.setAttribute("async","async"),g.setAttribute("type","text/javascript"),this.attachListeners(g,i,s);var m=t.getConfig().getOptionsLiteral().trustedTypesPolicy;m&&(r=m.createScriptURL(r)),g.setAttribute("src",r);var y=t.getConfig().getOptionsLiteral().cspNonce;y&&g.setAttribute("nonce",y),document.getElementsByTagName("head")[0].appendChild(g)}},e}();function _(e){var t=e.getConfig().getOptionsLiteral().trustedTypesPolicy;try{var r=t?self.eval(t.createScript("","true")):new Function("true");return r.call(self),!0}catch{return!1}}var c=function(){function e(){this._cachedCanUseEval=null}return e.prototype._canUseEval=function(t){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=_(t)),this._cachedCanUseEval},e.prototype.load=function(t,r,i,s){if(/^node\|/.test(r)){var a=t.getConfig().getOptionsLiteral(),l=h(t.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=l(f[1])}catch(y){s(y);return}t.enqueueDefineAnonymousModule([],function(){return p}),i()}else{var g=t.getConfig().getOptionsLiteral().trustedTypesPolicy,m=/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin;if(!m&&this._canUseEval(t)){fetch(r).then(function(y){if(y.status!==200)throw new Error(y.statusText);return y.text()}).then(function(y){y=y+`
//# sourceURL=`+r;var O=g?self.eval(g.createScript("",y)):new Function(y);O.call(self),i()}).then(void 0,s);return}try{g&&(r=g.createScriptURL(r)),importScripts(r),i()}catch(y){s(y)}}},e}(),o=function(){function e(t){this._env=t,this._didInitialize=!1,this._didPatchNodeRequire=!1}return e.prototype._init=function(t){this._didInitialize||(this._didInitialize=!0,this._fs=t("fs"),this._vm=t("vm"),this._path=t("path"),this._crypto=t("crypto"))},e.prototype._initNodeRequire=function(t,r){var i=r.getConfig().getOptionsLiteral().nodeCachedData;if(!i||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var s=this,a=t("module");function l(f){var p=f.constructor,g=function(y){try{return f.require(y)}finally{}};return g.resolve=function(y,O){return p._resolveFilename(y,f,!1,O)},g.resolve.paths=function(y){return p._resolveLookupPaths(y,f)},g.main=process.mainModule,g.extensions=p._extensions,g.cache=p._cache,g}a.prototype._compile=function(f,p){var g=a.wrap(f.replace(/^#!.*/,"")),m=r.getRecorder(),y=s._getCachedDataPath(i,p),O={filename:p},I;try{var D=s._fs.readFileSync(y);I=D.slice(0,16),O.cachedData=D.slice(16),m.record(60,y)}catch{m.record(61,y)}var w=new s._vm.Script(g,O),U=w.runInThisContext(O),L=s._path.dirname(p),T=l(this),A=[this.exports,T,this,p,L,process,P,Buffer],N=U.apply(this.exports,A);return s._handleCachedData(w,g,y,!O.cachedData,r),s._verifyCachedData(w,g,y,I,r),N}},e.prototype.load=function(t,r,i,s){var a=this,l=t.getConfig().getOptionsLiteral(),f=h(t.getRecorder(),l.nodeRequire||u.global.nodeRequire),p=l.nodeInstrumenter||function(U){return U};this._init(f),this._initNodeRequire(f,t);var g=t.getRecorder();if(/^node\|/.test(r)){var m=r.split("|"),y=null;try{y=f(m[1])}catch(U){s(U);return}t.enqueueDefineAnonymousModule([],function(){return y}),i()}else{r=u.Utilities.fileUriToFilePath(this._env.isWindows,r);var O=this._path.normalize(r),I=this._getElectronRendererScriptPathOrUri(O),D=Boolean(l.nodeCachedData),w=D?this._getCachedDataPath(l.nodeCachedData,r):void 0;this._readSourceAndCachedData(O,w,g,function(U,L,T,A){if(U){s(U);return}var N;L.charCodeAt(0)===e._BOM?N=e._PREFIX+L.substring(1)+e._SUFFIX:N=e._PREFIX+L+e._SUFFIX,N=p(N,O);var k={filename:I,cachedData:T},q=a._createAndEvalScript(t,N,k,i,s);a._handleCachedData(q,N,w,D&&!T,t),a._verifyCachedData(q,N,w,A,t)})}},e.prototype._createAndEvalScript=function(t,r,i,s,a){var l=t.getRecorder();l.record(31,i.filename);var f=new this._vm.Script(r,i),p=f.runInThisContext(i),g=t.getGlobalAMDDefineFunc(),m=!1,y=function(){return m=!0,g.apply(null,arguments)};return y.amd=g.amd,p.call(u.global,t.getGlobalAMDRequireFunc(),y,i.filename,this._path.dirname(i.filename)),l.record(32,i.filename),m?s():a(new Error("Didn't receive define call in "+i.filename+"!")),f},e.prototype._getElectronRendererScriptPathOrUri=function(t){if(!this._env.isElectronRenderer)return t;var r=t.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+t},e.prototype._getCachedDataPath=function(t,r){var i=this._crypto.createHash("md5").update(r,"utf8").update(t.seed,"utf8").update(process.arch,"").digest("hex"),s=this._path.basename(r).replace(/\.js$/,"");return this._path.join(t.path,s+"-"+i+".code")},e.prototype._handleCachedData=function(t,r,i,s,a){var l=this;t.cachedDataRejected?this._fs.unlink(i,function(f){a.getRecorder().record(62,i),l._createAndWriteCachedData(t,r,i,a),f&&a.getConfig().onError(f)}):s&&this._createAndWriteCachedData(t,r,i,a)},e.prototype._createAndWriteCachedData=function(t,r,i,s){var a=this,l=Math.ceil(s.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),f=-1,p=0,g=void 0,m=function(){setTimeout(function(){g||(g=a._crypto.createHash("md5").update(r,"utf8").digest());var y=t.createCachedData();if(!(y.length===0||y.length===f||p>=5)){if(y.length<f){m();return}f=y.length,a._fs.writeFile(i,Buffer.concat([g,y]),function(O){O&&s.getConfig().onError(O),s.getRecorder().record(63,i),m()})}},l*Math.pow(4,p++))};m()},e.prototype._readSourceAndCachedData=function(t,r,i,s){if(!r)this._fs.readFile(t,{encoding:"utf8"},s);else{var a=void 0,l=void 0,f=void 0,p=2,g=function(m){m?s(m):--p===0&&s(void 0,a,l,f)};this._fs.readFile(t,{encoding:"utf8"},function(m,y){a=y,g(m)}),this._fs.readFile(r,function(m,y){!m&&y&&y.length>0?(f=y.slice(0,16),l=y.slice(16),i.record(60,r)):i.record(61,r),g()})}},e.prototype._verifyCachedData=function(t,r,i,s,a){var l=this;!s||t.cachedDataRejected||setTimeout(function(){var f=l._crypto.createHash("md5").update(r,"utf8").digest();s.equals(f)||(a.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+i+"' now, but a RESTART IS REQUIRED")),l._fs.unlink(i,function(p){p&&a.getConfig().onError(p)}))},Math.ceil(5e3*(1+Math.random())))},e._BOM=65279,e._PREFIX="(function (require, define, __filename, __dirname) { ",e._SUFFIX=`
});`,e}();function h(e,t){if(t.__$__isRecorded)return t;var r=function(s){e.record(33,s);try{return t(s)}finally{e.record(34,s)}};return r.__$__isRecorded=!0,r}u.ensureRecordedNodeRequire=h;function n(e){return new v(e)}u.createScriptLoader=n})(E||(E={}));var E;(function(u){var v=function(){function n(e){var t=e.lastIndexOf("/");t!==-1?this.fromModulePath=e.substr(0,t+1):this.fromModulePath=""}return n._normalizeModuleId=function(e){var t=e,r;for(r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),t},n.prototype.resolveModule=function(e){var t=e;return u.Utilities.isAbsolutePath(t)||(u.Utilities.startsWith(t,"./")||u.Utilities.startsWith(t,"../"))&&(t=n._normalizeModuleId(this.fromModulePath+t)),t},n.ROOT=new n(""),n}();u.ModuleIdResolver=v;var d=function(){function n(e,t,r,i,s,a){this.id=e,this.strId=t,this.dependencies=r,this._callback=i,this._errorback=s,this.moduleIdResolver=a,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return n._safeInvokeFunction=function(e,t){try{return{returnedValue:e.apply(u.global,t),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},n._invokeFactory=function(e,t,r,i){return e.shouldInvokeFactory(t)?e.shouldCatchError()?this._safeInvokeFunction(r,i):{returnedValue:r.apply(u.global,i),producedError:null}:{returnedValue:null,producedError:null}},n.prototype.complete=function(e,t,r,i){this._isComplete=!0;var s=null;if(this._callback)if(typeof this._callback=="function"){e.record(21,this.strId);var a=n._invokeFactory(t,this.strId,this._callback,r);s=a.producedError,e.record(22,this.strId),!s&&typeof a.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=a.returnedValue)}else this.exports=this._callback;if(s){var l=u.ensureError(s);l.phase="factory",l.moduleId=this.strId,l.neededBy=i(this.id),this.error=l,t.onError(l)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},n.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,this._errorback?(this._errorback(e),!0):!1},n.prototype.isComplete=function(){return this._isComplete},n}();u.Module=d;var _=function(){function n(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return n.prototype.getMaxModuleId=function(){return this._nextId},n.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return typeof t>"u"&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},n.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},n}(),c=function(){function n(e){this.id=e}return n.EXPORTS=new n(0),n.MODULE=new n(1),n.REQUIRE=new n(2),n}();u.RegularDependency=c;var o=function(){function n(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}return n}();u.PluginDependency=o;var h=function(){function n(e,t,r,i,s){s===void 0&&(s=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=s,this._defineFunc=r,this._requireFunc=i,this._moduleIdProvider=new _,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=[]}return n.prototype.reset=function(){return new n(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},n.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},n.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},n._findRelevantLocationInStack=function(e,t){for(var r=function(O){return O.replace(/\\/g,"/")},i=r(e),s=t.split(/\n/),a=0;a<s.length;a++){var l=s[a].match(/(.*):(\d+):(\d+)\)?$/);if(l){var f=l[1],p=l[2],g=l[3],m=Math.max(f.lastIndexOf(" ")+1,f.lastIndexOf("(")+1);if(f=f.substr(m),f=r(f),f===i){var y={line:parseInt(p,10),col:parseInt(g,10)};return y.line===1&&(y.col-=53),y}}}throw new Error("Could not correlate define call site for needle "+e)},n.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var e=[],t=0,r=0,i=this._modules2.length;r<i;r++){var s=this._modules2[r];if(!!s){var a=this._buildInfoPath[s.id]||null,l=this._buildInfoDefineStack[s.id]||null,f=this._buildInfoDependencies[s.id];e[t++]={id:s.strId,path:a,defineLocation:a&&l?n._findRelevantLocationInStack(a,l):null,dependencies:f,shim:null,exports:s.exports}}}return e},n.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder},n.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},n.prototype.enqueueDefineAnonymousModule=function(e,t){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:e,callback:t}},n.prototype.defineModule=function(e,t,r,i,s,a){var l=this;a===void 0&&(a=new v(e));var f=this._moduleIdProvider.getModuleId(e);if(this._modules2[f]){this._config.isDuplicateMessageIgnoredFor(e)||console.warn("Duplicate definition of module '"+e+"'");return}var p=new d(f,e,this._normalizeDependencies(t,a),r,i,a);this._modules2[f]=p,this._config.isBuild()&&(this._buildInfoDefineStack[f]=s,this._buildInfoDependencies[f]=(p.dependencies||[]).map(function(g){return l._moduleIdProvider.getStrModuleId(g.id)})),this._resolve(p)},n.prototype._normalizeDependency=function(e,t){if(e==="exports")return c.EXPORTS;if(e==="module")return c.MODULE;if(e==="require")return c.REQUIRE;var r=e.indexOf("!");if(r>=0){var i=t.resolveModule(e.substr(0,r)),s=t.resolveModule(e.substr(r+1)),a=this._moduleIdProvider.getModuleId(i+"!"+s),l=this._moduleIdProvider.getModuleId(i);return new o(a,l,s)}return new c(this._moduleIdProvider.getModuleId(t.resolveModule(e)))},n.prototype._normalizeDependencies=function(e,t){for(var r=[],i=0,s=0,a=e.length;s<a;s++)r[i++]=this._normalizeDependency(e[s],t);return r},n.prototype._relativeRequire=function(e,t,r,i){if(typeof t=="string")return this.synchronousRequire(t,e);this.defineModule(u.Utilities.generateAnonymousModule(),t,r,i,null,e)},n.prototype.synchronousRequire=function(e,t){t===void 0&&(t=new v(e));var r=this._normalizeDependency(e,t),i=this._modules2[r.id];if(!i)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This is the first mention of this module!");if(!i.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This module has not been resolved completely yet.");if(i.error)throw i.error;return i.exports},n.prototype.configure=function(e,t){var r=this._config.shouldRecordStats();t?this._config=new u.Configuration(this._env,e):this._config=this._config.cloneAndMerge(e),this._config.shouldRecordStats()&&!r&&(this._recorder=null)},n.prototype.getConfig=function(){return this._config},n.prototype._onLoad=function(e){if(this._currentAnonymousDefineCall!==null){var t=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(e),t.dependencies,t.callback,null,t.stack)}},n.prototype._createLoadError=function(e,t){var r=this,i=this._moduleIdProvider.getStrModuleId(e),s=(this._inverseDependencies2[e]||[]).map(function(l){return r._moduleIdProvider.getStrModuleId(l)}),a=u.ensureError(t);return a.phase="loading",a.moduleId=i,a.neededBy=s,a},n.prototype._onLoadError=function(e,t){var r=this._createLoadError(e,t);this._modules2[e]||(this._modules2[e]=new d(e,this._moduleIdProvider.getStrModuleId(e),[],function(){},null,null));for(var i=[],s=0,a=this._moduleIdProvider.getMaxModuleId();s<a;s++)i[s]=!1;var l=!1,f=[];for(f.push(e),i[e]=!0;f.length>0;){var p=f.shift(),g=this._modules2[p];g&&(l=g.onDependencyError(r)||l);var m=this._inverseDependencies2[p];if(m)for(var s=0,a=m.length;s<a;s++){var y=m[s];i[y]||(f.push(y),i[y]=!0)}}l||this._config.onError(r)},n.prototype._hasDependencyPath=function(e,t){var r=this._modules2[e];if(!r)return!1;for(var i=[],s=0,a=this._moduleIdProvider.getMaxModuleId();s<a;s++)i[s]=!1;var l=[];for(l.push(r),i[e]=!0;l.length>0;){var f=l.shift(),p=f.dependencies;if(p)for(var s=0,a=p.length;s<a;s++){var g=p[s];if(g.id===t)return!0;var m=this._modules2[g.id];m&&!i[g.id]&&(i[g.id]=!0,l.push(m))}}return!1},n.prototype._findCyclePath=function(e,t,r){if(e===t||r===50)return[e];var i=this._modules2[e];if(!i)return null;var s=i.dependencies;if(s)for(var a=0,l=s.length;a<l;a++){var f=this._findCyclePath(s[a].id,t,r+1);if(f!==null)return f.push(e),f}return null},n.prototype._createRequire=function(e){var t=this,r=function(i,s,a){return t._relativeRequire(e,i,s,a)};return r.toUrl=function(i){return t._config.requireToUrl(e.resolveModule(i))},r.getStats=function(){return t.getLoaderEvents()},r.hasDependencyCycle=function(){return t._hasDependencyCycle},r.config=function(i,s){s===void 0&&(s=!1),t.configure(i,s)},r.__$__nodeRequire=u.global.nodeRequire,r},n.prototype._loadModule=function(e){var t=this;if(!(this._modules2[e]||this._knownModules2[e])){this._knownModules2[e]=!0;var r=this._moduleIdProvider.getStrModuleId(e),i=this._config.moduleIdToPaths(r),s=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(r.indexOf("/")===-1||s.test(r))&&i.push("node|"+r);var a=-1,l=function(f){if(a++,a>=i.length)t._onLoadError(e,f);else{var p=i[a],g=t.getRecorder();if(t._config.isBuild()&&p==="empty:"){t._buildInfoPath[e]=p,t.defineModule(t._moduleIdProvider.getStrModuleId(e),[],null,null,null),t._onLoad(e);return}g.record(10,p),t._scriptLoader.load(t,p,function(){t._config.isBuild()&&(t._buildInfoPath[e]=p),g.record(11,p),t._onLoad(e)},function(m){g.record(12,p),l(m)})}};l(null)}},n.prototype._loadPluginDependency=function(e,t){var r=this;if(!(this._modules2[t.id]||this._knownModules2[t.id])){this._knownModules2[t.id]=!0;var i=function(s){r.defineModule(r._moduleIdProvider.getStrModuleId(t.id),[],s,null,null)};i.error=function(s){r._config.onError(r._createLoadError(t.id,s))},e.load(t.pluginParam,this._createRequire(v.ROOT),i,this._config.getOptionsLiteral())}},n.prototype._resolve=function(e){var t=this,r=e.dependencies;if(r)for(var i=0,s=r.length;i<s;i++){var a=r[i];if(a===c.EXPORTS){e.exportsPassedIn=!0,e.unresolvedDependenciesCount--;continue}if(a===c.MODULE){e.unresolvedDependenciesCount--;continue}if(a===c.REQUIRE){e.unresolvedDependenciesCount--;continue}var l=this._modules2[a.id];if(l&&l.isComplete()){if(l.error){e.onDependencyError(l.error);return}e.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(a.id,e.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(a.id)+"' and '"+this._moduleIdProvider.getStrModuleId(e.id)+"'. The cyclic path follows:");var f=this._findCyclePath(a.id,e.id,0)||[];f.reverse(),f.push(a.id),console.warn(f.map(function(m){return t._moduleIdProvider.getStrModuleId(m)}).join(` => 
`)),e.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(e.id),a instanceof o){var p=this._modules2[a.pluginId];if(p&&p.isComplete()){this._loadPluginDependency(p.exports,a);continue}var g=this._inversePluginDependencies2.get(a.pluginId);g||(g=[],this._inversePluginDependencies2.set(a.pluginId,g)),g.push(a),this._loadModule(a.pluginId);continue}this._loadModule(a.id)}e.unresolvedDependenciesCount===0&&this._onModuleComplete(e)},n.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var i=e.dependencies,s=[];if(i)for(var a=0,l=i.length;a<l;a++){var f=i[a];if(f===c.EXPORTS){s[a]=e.exports;continue}if(f===c.MODULE){s[a]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}};continue}if(f===c.REQUIRE){s[a]=this._createRequire(e.moduleIdResolver);continue}var p=this._modules2[f.id];if(p){s[a]=p.exports;continue}s[a]=null}var g=function(D){return(t._inverseDependencies2[D]||[]).map(function(w){return t._moduleIdProvider.getStrModuleId(w)})};e.complete(r,this._config,s,g);var m=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,m)for(var a=0,l=m.length;a<l;a++){var y=m[a],O=this._modules2[y];O.unresolvedDependenciesCount--,O.unresolvedDependenciesCount===0&&this._onModuleComplete(O)}var I=this._inversePluginDependencies2.get(e.id);if(I){this._inversePluginDependencies2.delete(e.id);for(var a=0,l=I.length;a<l;a++)this._loadPluginDependency(e.exports,I[a])}}},n}();u.ModuleManager=h})(E||(E={}));var S,E;(function(u){var v=new u.Environment,d=null,_=function(n,e,t){typeof n!="string"&&(t=e,e=n,n=null),(typeof e!="object"||!Array.isArray(e))&&(t=e,e=null),e||(e=["require","exports","module"]),n?d.defineModule(n,e,t,null,null):d.enqueueDefineAnonymousModule(e,t)};_.amd={jQuery:!0};var c=function(n,e){e===void 0&&(e=!1),d.configure(n,e)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){c(arguments[0]);return}if(typeof arguments[0]=="string")return d.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){d.defineModule(u.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=c,o.getConfig=function(){return d.getConfig().getOptionsLiteral()},o.reset=function(){d=d.reset()},o.getBuildInfo=function(){return d.getBuildInfo()},o.getStats=function(){return d.getLoaderEvents()},o.define=_;function h(){if(typeof u.global.require<"u"||typeof require<"u"){var n=u.global.require||require;if(typeof n=="function"&&typeof n.resolve=="function"){var e=u.ensureRecordedNodeRequire(d.getRecorder(),n);u.global.nodeRequire=e,o.nodeRequire=e,o.__$__nodeRequire=e}}v.isNode&&!v.isElectronRenderer&&!v.isElectronNodeIntegrationWebWorker?b.exports=o:(v.isElectronRenderer||(u.global.define=_),u.global.require=o)}u.init=h,(typeof u.global.define!="function"||!u.global.define.amd)&&(d=new u.ModuleManager(v,u.createScriptLoader(v),_,o,u.Utilities.getHighPerformanceTimestamp()),typeof u.global.require<"u"&&typeof u.global.require!="function"&&o.config(u.global.require),S=function(){return _.apply(null,arguments)},S.amd=_.amd,typeof doNotInitLoader>"u"&&h())})(E||(E={})),S("vs/css",["require","exports"],function(u,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=void 0;function d(n,e,t,r){if(r=r||{},(r["vs/css"]||{}).disabled){t({});return}const s=e.toUrl(n+".css");_(n,s,()=>{t({})},a=>{typeof t.error=="function"&&t.error("Could not find "+s+".")})}v.load=d;function _(n,e,t,r){if(c(n,e)){t();return}o(n,e,t,r)}function c(n,e){const t=document.getElementsByTagName("link");for(let r=0,i=t.length;r<i;r++){const s=t[r].getAttribute("data-name"),a=t[r].getAttribute("href");if(s===n||a===e)return!0}return!1}function o(n,e,t,r){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("data-name",n),h(n,i,t,r),i.setAttribute("href",e),(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}function h(n,e,t,r){const i=()=>{e.removeEventListener("load",s),e.removeEventListener("error",a)},s=l=>{i(),t()},a=l=>{i(),r(l)};e.addEventListener("load",s),e.addEventListener("error",a)}}),S("vs/nls",["require","exports"],function(u,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=v.create=v.setPseudoTranslation=v.getConfiguredDefaultLocale=v.localize=void 0;let d=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const _="i-default";function c(l,f){let p;return f.length===0?p=l:p=l.replace(/\{(\d+)\}/g,(g,m)=>{const y=m[0],O=f[y];let I=g;return typeof O=="string"?I=O:(typeof O=="number"||typeof O=="boolean"||O===void 0||O===null)&&(I=String(O)),I}),d&&(p="\uFF3B"+p.replace(/[aouei]/g,"$&$&")+"\uFF3D"),p}function o(l,f){let p=l[f];return p||(p=l["*"],p)?p:null}function h(l){return l.charAt(l.length-1)==="/"?l:l+"/"}async function n(l,f,p){const g=h(l)+h(f)+"vscode/"+h(p),m=await fetch(g);if(m.ok)return await m.json();throw new Error(`${m.status} - ${m.statusText}`)}function e(l){return function(f,p){const g=Array.prototype.slice.call(arguments,2);return c(l[f],g)}}function t(l,f,...p){return c(f,p)}v.localize=t;function r(l){}v.getConfiguredDefaultLocale=r;function i(l){d=l}v.setPseudoTranslation=i;function s(l,f){return{localize:e(f[l]),getConfiguredDefaultLocale:f.getConfiguredDefaultLocale??(p=>{})}}v.create=s;function a(l,f,p,g){const m=g["vs/nls"]??{};if(!l||l.length===0)return p({localize:t,getConfiguredDefaultLocale:()=>m.availableLanguages?.["*"]});const y=m.availableLanguages?o(m.availableLanguages,l):null,O=y===null||y===_;let I=".nls";O||(I=I+"."+y);const D=w=>{Array.isArray(w)?w.localize=e(w):w.localize=e(w[l]),w.getConfiguredDefaultLocale=()=>m.availableLanguages?.["*"],p(w)};typeof m.loadBundle=="function"?m.loadBundle(l,y,(w,U)=>{w?f([l+".nls"],D):D(U)}):m.translationServiceUrl&&!O?(async()=>{try{const w=await n(m.translationServiceUrl,y,l);return D(w)}catch(w){if(!y.includes("-"))return console.error(w),f([l+".nls"],D);try{const U=y.split("-")[0],L=await n(m.translationServiceUrl,U,l);return m.availableLanguages??={},m.availableLanguages["*"]=U,D(L)}catch(U){return console.error(U),f([l+".nls"],D)}}})():f([l+I],D,w=>{if(I===".nls"){console.error("Failed trying to load default language strings",w);return}console.error(`Failed to load message bundle for language ${y}. Falling back to the default language:`,w),f([l+".nls"],D)})}v.load=a})}}),require_bootstrap=__commonJS({"out-build/bootstrap.js"(R,b){"use strict";(function(C,P){typeof R=="object"?b.exports=P():C.MonacoBootstrap=P()})(R,function(){const C=typeof require=="function"?require("module"):void 0,P=typeof require=="function"?require("path"):void 0,S=typeof require=="function"?require("fs"):void 0;Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE&&process.on("SIGPIPE",()=>{console.error(new Error("Unexpected SIGPIPE"))});function E(n){if(!P||!C||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const e=n?P.join(n,"node_modules"):P.join(__dirname,"../node_modules");let t;if(n&&process.platform==="win32"){const a=n.substr(0,1);let l;a.toLowerCase()!==a?l=a.toLowerCase():l=a.toUpperCase(),t=l+e.substr(1)}else t=void 0;const r=`${e}.asar`,i=t?`${t}.asar`:void 0,s=C._resolveLookupPaths;C._resolveLookupPaths=function(a,l){const f=s(a,l);if(Array.isArray(f)){let p=!1;for(let g=0,m=f.length;g<m;g++)if(f[g]===e){p=!0,f.splice(g,0,r);break}else if(f[g]===t){p=!0,f.splice(g,0,i);break}!p&&n&&f.push(r)}return f}}function u(n,e){let t=n.replace(/\\/g,"/");t.length>0&&t.charAt(0)!=="/"&&(t=`/${t}`);let r;return e.isWindows&&t.startsWith("//")?r=encodeURI(`${e.scheme||"file"}:${t}`):r=encodeURI(`${e.scheme||"file"}://${e.fallbackAuthority||""}${t}`),r.replace(/#/g,"%23")}function v(){const n=_();let e={availableLanguages:{}};if(n&&n.env.VSCODE_NLS_CONFIG)try{e=JSON.parse(n.env.VSCODE_NLS_CONFIG)}catch{}if(e._resolvedLanguagePackCoreLocation){const t=Object.create(null);e.loadBundle=function(r,i,s){const a=t[r];if(a){s(void 0,a);return}o(e._resolvedLanguagePackCoreLocation,`${r.replace(/\//g,"!")}.nls.json`).then(function(l){const f=JSON.parse(l);t[r]=f,s(void 0,f)}).catch(l=>{try{e._corruptedFile&&h(e._corruptedFile,"corrupted").catch(function(f){console.error(f)})}finally{s(l,void 0)}})}}return e}function d(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function _(){const n=d();if(n)return n.process;if(typeof process<"u")return process}function c(){const n=d();if(n)return n.ipcRenderer}async function o(...n){const e=c();if(e)return e.invoke("vscode:readNlsFile",...n);if(S&&P)return(await S.promises.readFile(P.join(...n))).toString();throw new Error("Unsupported operation (read NLS files)")}function h(n,e){const t=c();if(t)return t.invoke("vscode:writeNlsFile",n,e);if(S)return S.promises.writeFile(n,e);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:E,setupNLS:v,fileUriFromPath:u}})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(R){"use strict";var b=require;globalThis._VSCODE_NODE_MODULES=new Proxy(Object.create(null),{get:(u,v)=>b(String(v))}),globalThis._VSCODE_PRODUCT_JSON=require("../product.json"),globalThis._VSCODE_PACKAGE_JSON=require("../package.json");var C=require_loader(),P=require_bootstrap(),S=require_performance(),E=P.setupNLS();C.config({baseUrl:P.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:b,"vs/nls":E,amdModulesPattern:/^vs\//,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&C.define("fs",["original-fs"],function(u){return u}),E&&E.pseudo&&C(["vs/nls"],function(u){u.setPseudoTranslation(E.pseudo)}),R.load=function(u,v,d){!u||(process.env.VSCODE_CODE_CACHE_PATH&&C.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:u}}),v=v||function(){},d=d||function(_){console.error(_)},S.mark("code/fork/willLoadCode"),C([u],v,d))}}}),perf=require_performance(),performance2=require("perf_hooks").performance,product=require("../product.json"),readline=require("readline"),http=require("http");perf.mark("code/server/start"),global.vscodeServerStartTime=performance2.now();async function start(){const b=require("minimist")(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(r=>{if(!b[r]){const i=process.env[`VSCODE_SERVER_${r.toUpperCase().replace("-","_")}`];i&&(b[r]=i)}});const C=["list-extensions","locate-extension"],P=["install-extension","install-builtin-extension","uninstall-extension"];if(b.help||b.version||C.some(r=>!!b[r])||P.some(r=>!!b[r])&&!b["start-server"]){loadCode().then(r=>{r.spawnCli()});return}b.compatibility==="1.63"&&(console.warn(`server.sh is being replaced by 'bin/${product.serverApplicationName}'. Please migrate to the new command and adopt the following new default behaviors:`),console.warn("* connection token is mandatory unless --without-connection-token is used"),console.warn("* host defaults to `localhost`"));let E=null,u=null;const v=()=>(u||(u=loadCode().then(async r=>{const i=await r.createServer(h);return E=i,i})),u),d=require("http"),_=require("os");if(Array.isArray(product.serverLicense)&&product.serverLicense.length&&(console.log(product.serverLicense.join(`
`)),product.serverLicensePrompt&&b["accept-server-license-terms"]!==!0)){hasStdinWithoutTty()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await prompt(product.serverLicensePrompt)||process.exit(1)}catch(r){console.log(r),process.exit(1)}}let c=!0,o=!0,h=null;const n=d.createServer(async(r,i)=>(c&&(c=!1,perf.mark("code/server/firstRequest")),(await v()).handleRequest(r,i)));n.on("upgrade",async(r,i)=>(o&&(o=!1,perf.mark("code/server/firstWebSocket")),(await v()).handleUpgrade(r,i))),n.on("error",async r=>(await v()).handleServerError(r));const e=sanitizeStringArg(b.host)||(b.compatibility!=="1.63"?"localhost":void 0),t=b["socket-path"]?{path:sanitizeStringArg(b["socket-path"])}:{host:e,port:await parsePort(e,sanitizeStringArg(b.port))};n.listen(t,async()=>{let r=Array.isArray(product.serverGreeting)&&product.serverGreeting.length?`

${product.serverGreeting.join(`
`)}

`:"";if(typeof t.port=="number"&&b["print-ip-address"]){const i=_.networkInterfaces();Object.keys(i).forEach(function(s){i[s]?.forEach(function(a){!a.internal&&a.family==="IPv4"&&(r+=`IP Address: ${a.address}
`)})})}if(h=n.address(),h===null)throw new Error("Unexpected server address");r+=`Server bound to ${typeof h=="string"?h:`${h.address}:${h.port} (${h.family})`}
`,r+=`Extension host agent listening on ${typeof h=="string"?h:h.port}
`,console.log(r),perf.mark("code/server/started"),global.vscodeServerListenTime=performance2.now(),await v()}),process.on("exit",()=>{n.close(),E&&E.dispose()})}function sanitizeStringArg(R){return Array.isArray(R)&&(R=R.pop()),typeof R=="string"?R:void 0}async function parsePort(R,b){if(b){let C;if(b.match(/^\d+$/))return parseInt(b,10);if(C=parseRange(b)){const P=await findFreePort(R,C.start,C.end);if(P!==void 0)return P;console.warn(`--port: Could not find free port in range: ${C.start} - ${C.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${b}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function parseRange(R){const b=R.match(/^(\d+)-(\d+)$/);if(b){const C=parseInt(b[1],10),P=parseInt(b[2],10);if(C>0&&C<=P&&P<=65535)return{start:C,end:P}}}async function findFreePort(R,b,C){const P=S=>new Promise(E=>{const u=http.createServer();u.listen(S,R,()=>{u.close(),E(!0)}).on("error",()=>{E(!1)})});for(let S=b;S<=C;S++)if(await P(S))return S}function loadCode(){return new Promise((R,b)=>{const C=require("path");delete process.env.ELECTRON_RUN_AS_NODE,process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH||C.join(__dirname,"..","remote","node_modules"),require_bootstrap_node().injectNodeModuleLookupPath(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH,require_bootstrap_amd().load("vs/server/node/server.main",R,b)})}function hasStdinWithoutTty(){try{return!process.stdin.isTTY}catch{}return!1}function prompt(R){const b=readline.createInterface({input:process.stdin,output:process.stdout});return new Promise((C,P)=>{b.question(R+" ",async function(S){b.close();const E=S.toString().trim().toLowerCase();E===""||E==="y"||E==="yes"?C(!0):E==="n"||E==="no"?C(!1):(process.stdout.write(`
Invalid Response. Answer either yes (y, yes) or no (n, no)
`),C(await prompt(R)))})})}start();

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a/core/server-main.js.map