"use strict";(function(m,a){typeof exports=="object"?module.exports=a():m.MonacoBootstrapWindow=a()})(this,function(){const m=L(),a=g(),_=a.webFrame,t=a.process,r=x(),v=t.sandboxed||typeof t.env.ENABLE_VSCODE_BROWSER_CODE_LOADING=="string",y=t.resolveEnv(r.userEnv);function E(i,o,e){var h;const l=r.zoomLevel;typeof l=="number"&&l!==0&&_.setZoomLevel(l),t.on("uncaughtException",function(d){b(d,f)});const f=(t.env.VSCODE_DEV||!!r.extensionDevelopmentPath)&&!r.extensionTestsPath;let u;(f||e&&e.forceEnableDeveloperKeybindings)&&(u=D(e&&e.disallowReloadKeybinding)),globalThis.MonacoBootstrap.enableASARSupport(r.appRoot),e&&typeof e.canModifyDOM=="function"&&e.canModifyDOM(r);const s=globalThis.MonacoBootstrap.setupNLS();let n=s.availableLanguages["*"]||"en";n==="zh-tw"?n="zh-Hant":n==="zh-cn"&&(n="zh-Hans"),window.document.documentElement.setAttribute("lang",n),v||(window.define=void 0),t.sandboxed||require.define("fs",[],function(){return require.__$__nodeRequire("original-fs")}),window.MonacoEnvironment={};const c={baseUrl:v?`${m.fileUriFromPath(r.appRoot,{isWindows:t.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out`:`${m.fileUriFromPath(r.appRoot,{isWindows:t.platform==="win32"})}/out`,"vs/nls":s,preferScriptTags:v};c.preferScriptTags&&(c.trustedTypesPolicy=(h=window.trustedTypes)==null?void 0:h.createPolicy("amdLoader",{createScriptURL(d){if(d.startsWith(window.location.origin))return d;throw new Error(`Invalid script url: ${d}`)}})),t.sandboxed?c.paths={"vscode-textmate":"../node_modules/vscode-textmate/release/main","vscode-oniguruma":"../node_modules/vscode-oniguruma/release/main",xterm:"../node_modules/xterm/lib/xterm.js","xterm-addon-search":"../node_modules/xterm-addon-search/lib/xterm-addon-search.js","xterm-addon-unicode11":"../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js","xterm-addon-webgl":"../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js","iconv-lite-umd":"../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js",jschardet:"../node_modules/jschardet/dist/jschardet.min.js"}:c.amdModulesPattern=/^vs\//,r.nodeCachedDataDir&&(c.nodeCachedData={path:r.nodeCachedDataDir,seed:i.join("")}),e&&typeof e.beforeLoaderConfig=="function"&&e.beforeLoaderConfig(r,c),require.config(c),s.pseudo&&require(["vs/nls"],function(d){d.setPseudoTranslation(s.pseudo)}),e&&typeof e.beforeRequire=="function"&&e.beforeRequire(),require(i,async d=>{try{performance.mark("code/willWaitForShellEnv"),t.env.VSCODE_SKIP_PROCESS_ENV_PATCHING||await y,performance.mark("code/didWaitForShellEnv");const w=o(d,r);w instanceof Promise&&(await w,u&&e&&e.removeDeveloperKeybindingsAfterLoad&&u())}catch(w){b(w,f)}},b)}function x(){const i=(window.location.search||"").split(/[?&]/).filter(function(o){return!!o}).map(function(o){return o.split("=")}).filter(function(o){return o.length===2}).reduce(function(o,e){return o[e[0]]=decodeURIComponent(e[1]),o},{});return JSON.parse(i.config||"{}")||{}}function D(i){const o=a.ipcRenderer,e=function(n){return[n.ctrlKey?"ctrl-":"",n.metaKey?"meta-":"",n.altKey?"alt-":"",n.shiftKey?"shift-":"",n.keyCode].join("")},l=t.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",f="123",u=t.platform==="darwin"?"meta-82":"ctrl-82";let s=function(n){const p=e(n);p===l||p===f?o.send("vscode:toggleDevTools"):p===u&&!i&&o.send("vscode:reloadWindow")};return window.addEventListener("keydown",s),function(){s&&(window.removeEventListener("keydown",s),s=void 0)}}function b(i,o){o&&a.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${i}`),i&&typeof i!="string"&&i.stack&&console.error(i.stack)}function L(){return window.MonacoBootstrap}function g(){return window.vscode}return{load:E,globals:g}});

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/3c4e3df9e89829dce27b7b5c24508306b151f30d/core/bootstrap-window.js.map
