Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/out/cli.js
T

7 lines
42 KiB
JavaScript
Raw Normal View History

2025-05-09 16:55:09 +08:00
"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(D,O)=>function(){return O||(0,D[__getOwnPropNames(D)[0]])((O={exports:{}}).exports,O),O.exports},require_bootstrap=__commonJS({"out-build/bootstrap.js"(D,O){"use strict";(function(C,P){typeof D=="object"?O.exports=P():C.MonacoBootstrap=P()})(D,function(){const C=typeof require=="function"?require("module"):void 0,P=typeof require=="function"?require("path"):void 0,I=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 u;a.toLowerCase()!==a?u=a.toLowerCase():u=a.toUpperCase(),t=u+e.substr(1)}else t=void 0;const r=`${e}.asar`,o=t?`${t}.asar`:void 0,s=C._resolveLookupPaths;C._resolveLookupPaths=function(a,u){const c=s(a,u);if(Array.isArray(c)){let h=!1;for(let v=0,m=c.length;v<m;v++)if(c[v]===e){h=!0,c.splice(v,0,r);break}else if(c[v]===t){h=!0,c.splice(v,0,o);break}!h&&n&&c.push(r)}return c}}function l(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 g(){const n=y();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,o,s){const a=t[r];if(a){s(void 0,a);return}i(e._resolvedLanguagePackCoreLocation,`${r.replace(/\//g,"!")}.nls.json`).then(function(u){const c=JSON.parse(u);t[r]=c,s(void 0,c)}).catch(u=>{try{e._corruptedFile&&p(e._corruptedFile,"corrupted").catch(function(c){console.error(c)})}finally{s(u,void 0)}})}}return e}function d(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function y(){const n=d();if(n)return n.process;if(typeof process<"u")return process}function f(){const n=d();if(n)return n.ipcRenderer}async function i(...n){const e=f();if(e)return e.invoke("vscode:readNlsFile",...n);if(I&&P)return(await I.promises.readFile(P.join(...n))).toString();throw new Error("Unsupported operation (read NLS files)")}function p(n,e){const t=f();if(t)return t.invoke("vscode:writeNlsFile",n,e);if(I)return I.promises.writeFile(n,e);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:E,setupNLS:g,fileUriFromPath:l}})}}),require_bootstrap_node=__commonJS({"out-build/bootstrap-node.js"(D){"use strict";function O(){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)}}O(),D.injectNodeModuleLookupPath=function(C){if(!C)throw new Error("Missing injectPath");const P=require("module"),E=require("path").join(__dirname,"../node_modules"),l=P._resolveLookupPaths;P._resolveLookupPaths=function(g,d){const y=l(g,d);if(Array.isArray(y)){for(let f=0,i=y.length;f<i;f++)if(y[f]===E){y.splice(f,0,C);break}}return y}},D.removeGlobalNodeModuleLookupPaths=function(){const C=require("module"),P=C.globalPaths,I=C._resolveLookupPaths;C._resolveLookupPaths=function(E,l){const g=I(E,l);if(Array.isArray(g)){let d=0;for(;d<g.length&&g[g.length-1-d]===P[P.length-1-d];)d++;return g.slice(0,g.length-d)}return g}},D.configurePortable=function(C){const P=require("fs"),I=require("path"),E=I.dirname(__dirname);function l(p){return process.env.VSCODE_DEV?E:process.platform==="darwin"?p.dirname(p.dirname(p.dirname(E))):p.dirname(p.dirname(E))}function g(p){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return p.join(l(p),"data");const n=C.po
//# sourceURL=`+r;var b=v?self.eval(v.createScript("",_)):new Function(_);b.call(self),o()}).then(void 0,s);return}try{v&&(r=v.createScriptURL(r)),importScripts(r),o()}catch(_){s(_)}}},e}(),i=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 o=r.getConfig().getOptionsLiteral().nodeCachedData;if(!o||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var s=this,a=t("module");function u(c){var h=c.constructor,v=function(_){try{return c.require(_)}finally{}};return v.resolve=function(_,b){return h._resolveFilename(_,c,!1,b)},v.resolve.paths=function(_){return h._resolveLookupPaths(_,c)},v.main=process.mainModule,v.extensions=h._extensions,v.cache=h._cache,v}a.prototype._compile=function(c,h){var v=a.wrap(c.replace(/^#!.*/,"")),m=r.getRecorder(),_=s._getCachedDataPath(o,h),b={filename:h},S;try{var w=s._fs.readFileSync(_);S=w.slice(0,16),b.cachedData=w.slice(16),m.record(60,_)}catch{m.record(61,_)}var R=new s._vm.Script(v,b),U=R.runInThisContext(b),T=s._path.dirname(h),L=u(this),q=[this.exports,L,this,h,T,process,P,Buffer],N=U.apply(this.exports,q);return s._handleCachedData(R,v,_,!b.cachedData,r),s._verifyCachedData(R,v,_,S,r),N}},e.prototype.load=function(t,r,o,s){var a=this,u=t.getConfig().getOptionsLiteral(),c=p(t.getRecorder(),u.nodeRequire||l.global.nodeRequire),h=u.nodeInstrumenter||function(U){return U};this._init(c),this._initNodeRequire(c,t);var v=t.getRecorder();if(/^node\|/.test(r)){var m=r.split("|"),_=null;try{_=c(m[1])}catch(U){s(U);return}t.enqueueDefineAnonymousModule([],function(){return _}),o()}else{r=l.Utilities.fileUriToFilePath(this._env.isWindows,r);var b=this._path.normalize(r),S=this._getElectronRendererScriptPathOrUri(b),w=Boolean(u.nodeCachedData),R=w?this._getCachedDataPath(u.nodeCachedData,r):void 0;this._readSourceAndCachedData(b,R,v,function(U,T,L,q){if(U){s(U);return}var N;T.charCodeAt(0)===e._BOM?N=e._PREFIX+T.substring(1)+e._SUFFIX:N=e._PREFIX+T+e._SUFFIX,N=h(N,b);var M={filename:S,cachedData:L},k=a._createAndEvalScript(t,N,M,o,s);a._handleCachedData(k,N,R,w&&!L,t),a._verifyCachedData(k,N,R,q,t)})}},e.prototype._createAndEvalScript=function(t,r,o,s,a){var u=t.getRecorder();u.record(31,o.filename);var c=new this._vm.Script(r,o),h=c.runInThisContext(o),v=t.getGlobalAMDDefineFunc(),m=!1,_=function(){return m=!0,v.apply(null,arguments)};return _.amd=v.amd,h.call(l.global,t.getGlobalAMDRequireFunc(),_,o.filename,this._path.dirname(o.filename)),u.record(32,o.filename),m?s():a(new Error("Didn't receive define call in "+o.filename+"!")),c},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 o=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+"-"+o+".code")},e.prototype._handleCachedData=function(t,r,o,s,a){var u=this;t.cachedDataRejected?this._fs.unlink(o,function(c){a.getRecorder().record(62,o),u._createAndWriteCachedData(t,r,o,a),c&&a.getConfig().onError(c)}):s&&this._createAndWriteCachedData(t,r,o,a)},e.prototype._createAndWriteCachedData=function(t,r,o,s){var a=this,u=Math.ceil(s.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),c=-1,h=0,v=void 0,m=function(){setTimeout(function(){v||(v=a._crypto.createHash("md5").update(r,"utf8").digest());var _=t.createCachedData();if(!(_.length===0||_.length===c||h>=5)){if(_.length<c){m();return}c=_.length,a._fs.writeFile(o,Buffer.concat([v,_]),function(b){b&&s.getConfig().onError(b),s.getRecorder().record(63,o),m()})}},u*Math.pow(4,h++))};m()},e.prototype._readSourceAndCachedData=function(t,r,o,s){if(!r)this._fs.readFile(t,{encoding:"
});`,e}();function p(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}l.ensureRecordedNodeRequire=p;function n(e){return new g(e)}l.createScriptLoader=n})(E||(E={}));var E;(function(l){var g=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 l.Utilities.isAbsolutePath(t)||(l.Utilities.startsWith(t,"./")||l.Utilities.startsWith(t,"../"))&&(t=n._normalizeModuleId(this.fromModulePath+t)),t},n.ROOT=new n(""),n}();l.ModuleIdResolver=g;var d=function(){function n(e,t,r,o,s,a){this.id=e,this.strId=t,this.dependencies=r,this._callback=o,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(l.global,t),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},n._invokeFactory=function(e,t,r,o){return e.shouldInvokeFactory(t)?e.shouldCatchError()?this._safeInvokeFunction(r,o):{returnedValue:r.apply(l.global,o),producedError:null}:{returnedValue:null,producedError:null}},n.prototype.complete=function(e,t,r,o){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||l.Utilities.isEmpty(this.exports))&&(this.exports=a.returnedValue)}else this.exports=this._callback;if(s){var u=l.ensureError(s);u.phase="factory",u.moduleId=this.strId,u.neededBy=o(this.id),this.error=u,t.onError(u)}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}();l.Module=d;var y=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}(),f=function(){function n(e){this.id=e}return n.EXPORTS=new n(0),n.MODULE=new n(1),n.REQUIRE=new n(2),n}();l.RegularDependency=f;var i=function(){function n(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}return n}();l.PluginDependency=i;var p=function(){function n(e,t,r,o,s){s===void 0&&(s=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=s,this._defineFunc=r,this._requireFunc=o,this._moduleIdProvider=new y,this._config=new l.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(b)
`)),e.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(e.id),a instanceof i){var h=this._modules2[a.pluginId];if(h&&h.isComplete()){this._loadPluginDependency(h.exports,a);continue}var v=this._inversePluginDependencies2.get(a.pluginId);v||(v=[],this._inversePluginDependencies2.set(a.pluginId,v)),v.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 o=e.dependencies,s=[];if(o)for(var a=0,u=o.length;a<u;a++){var c=o[a];if(c===f.EXPORTS){s[a]=e.exports;continue}if(c===f.MODULE){s[a]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}};continue}if(c===f.REQUIRE){s[a]=this._createRequire(e.moduleIdResolver);continue}var h=this._modules2[c.id];if(h){s[a]=h.exports;continue}s[a]=null}var v=function(w){return(t._inverseDependencies2[w]||[]).map(function(R){return t._moduleIdProvider.getStrModuleId(R)})};e.complete(r,this._config,s,v);var m=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,m)for(var a=0,u=m.length;a<u;a++){var _=m[a],b=this._modules2[_];b.unresolvedDependenciesCount--,b.unresolvedDependenciesCount===0&&this._onModuleComplete(b)}var S=this._inversePluginDependencies2.get(e.id);if(S){this._inversePluginDependencies2.delete(e.id);for(var a=0,u=S.length;a<u;a++)this._loadPluginDependency(e.exports,S[a])}}},n}();l.ModuleManager=p})(E||(E={}));var I,E;(function(l){var g=new l.Environment,d=null,y=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)};y.amd={jQuery:!0};var f=function(n,e){e===void 0&&(e=!1),d.configure(n,e)},i=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){f(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(l.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};i.config=f,i.getConfig=function(){return d.getConfig().getOptionsLiteral()},i.reset=function(){d=d.reset()},i.getBuildInfo=function(){return d.getBuildInfo()},i.getStats=function(){return d.getLoaderEvents()},i.define=y;function p(){if(typeof l.global.require<"u"||typeof require<"u"){var n=l.global.require||require;if(typeof n=="function"&&typeof n.resolve=="function"){var e=l.ensureRecordedNodeRequire(d.getRecorder(),n);l.global.nodeRequire=e,i.nodeRequire=e,i.__$__nodeRequire=e}}g.isNode&&!g.isElectronRenderer&&!g.isElectronNodeIntegrationWebWorker?O.exports=i:(g.isElectronRenderer||(l.global.define=y),l.global.require=i)}l.init=p,(typeof l.global.define!="function"||!l.global.define.amd)&&(d=new l.ModuleManager(g,l.createScriptLoader(g),y,i,l.Utilities.getHighPerformanceTimestamp()),typeof l.global.require<"u"&&typeof l.global.require!="function"&&i.config(l.global.require),I=function(){return y.apply(null,arguments)},I.amd=y.amd,typeof doNotInitLoader>"u"&&p())})(E||(E={})),I("vs/css",["require","exports"],function(l,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.load=void 0;function d(n,e,t,r){if(r=r||{},(r["vs/css"]||{}).disabled){t({});return}const s=e.toUrl(n+".css");y(n,s,()=>{t({})},a=>{typeof t.error=="function"&&t.error("Could not find "+s+".")})}g.load=d;function y(n,e,t,r){if(f(n,e)){t();return}i(n,e,t,r)}function f(n,e){const t=document.getElementsByTagName("link");for(let r=0,o=t.length;r<o;r++){const s=t[r].getAttribute("data-name"),a=t[r].getAttribute("href");if(s===n||a===e)return!0}return!1}function i(n,e,t,r){const o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("data-name",n),p(n,o,t,r),o.se
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5235c6bb189b60b01b1f49062f4ffa42384f8c91/core/cli.js.map