/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
"use strict";function parseURLQueryArgs(){return(window.location.search||"").split(/[?&]/).filter(function(e){return!!e}).map(function(e){return e.split("=")}).filter(function(e){return 2===e.length}).reduce(function(e,n){return e[n[0]]=decodeURIComponent(n[1]),e},{})}function registerDeveloperKeybindings(){const e=require("electron").ipcRenderer,n="darwin"===process.platform?"meta-alt-73":"ctrl-shift-73",o="darwin"===process.platform?"meta-82":"ctrl-82";let t=function(t){const r=function(e){return[e.ctrlKey?"ctrl-":"",e.metaKey?"meta-":"",e.altKey?"alt-":"",e.shiftKey?"shift-":"",e.keyCode].join("")}(t);r===n||"123"===r?e.send("vscode:toggleDevTools"):r===o&&e.send("vscode:reloadWindow")};return window.addEventListener("keydown",t),function(){t&&(window.removeEventListener("keydown",t),t=void 0)}}function onUnexpectedError(e,n){const o=require("electron").ipcRenderer;n&&o.send("vscode:openDevTools"),console.error("[uncaught exception]: "+e),e.stack&&console.error(e.stack)}
const bootstrap=require("./bootstrap");exports.assign=function(e,n){return Object.keys(n).reduce(function(e,o){return e[o]=n[o],e},e)},exports.load=function(e,n,o){const t=require("electron").webFrame,r=require("path"),s=parseURLQueryArgs(),i=JSON.parse(s.config||"{}")||{};process.on("uncaughtException",function(e){onUnexpectedError(e,a)});const a=(process.env.VSCODE_DEV||!!i.extensionDevelopmentPath)&&!i.extensionTestsPath;let c;(a||o&&o.forceEnableDeveloperKeybindings)&&(c=registerDeveloperKeybindings()),exports.assign(process.env,i.userEnv),bootstrap.enableASARSupport(r.join(i.appRoot,"node_modules"));const d=i.zoomLevel;"number"==typeof d&&0!==d&&t.setZoomLevel(d),o&&"function"==typeof o.canModifyDOM&&o.canModifyDOM(i);const p=bootstrap.setupNLS();let l=p.availableLanguages["*"]||"en";"zh-tw"===l?l="zh-Hant":"zh-cn"===l&&(l="zh-Hans"),window.document.documentElement.setAttribute("lang",l);const u=require(i.appRoot+"/out/vs/loader.js"),f=u.require,m=u.require.define,g=u.require.nodeRequire
;window.nodeRequire=g,window.require=f,m("fs",["original-fs"],function(e){return e}),window.MonacoEnvironment={};const b={baseUrl:bootstrap.uriFromPath(i.appRoot)+"/out","vs/nls":p,
nodeModules:["electron","original-fs","agent-base","nan","readable-stream","strip-ansi","applicationinsights","diagnostic-channel","diagnostic-channel-publishers","zone.js","fast-plist","gc-signals","getmac","graceful-fs","http-proxy-agent","debug","https-proxy-agent","iconv-lite","jschardet","keytar","minimist","native-is-elevated","native-keymap","native-watchdog","node-pty","semver","spdlog","sudo-prompt","v8-inspect-profiler","chrome-remote-interface","vscode-chokidar","vscode-anymatch","vscode-fsevents","vscode-debugprotocol","vscode-nsfw","vscode-proxy-agent","socks-proxy-agent","vscode-ripgrep","vscode-sqlite3","vscode-textmate","vscode-xterm","winreg","yauzl","yazl","windows-foreground-love","windows-mutex","windows-process-tree","ansi-regex","async-each","bindings","buffer-crc32","core-util-is","ms","editions","es6-promisify","extract-opts","fd-slicer","fs-extra","glob-parent","inherits","is-binary-path","is-glob","isarray","lodash.isinteger","lodash.isundefined","mkdirp","oniguruma","path-is-absolute","prebuild-install","github-from-package","process-nextick-args","readdirp","string_decoder","safe-buffer","safer-buffer","util-deprecate","binary-extensions","commander","detect-libc","eachr","es6-promise","expand-template","is-extglob","jsonfile","micromatch","normalize-path","minimatch","node-abi","noop-logger","npmlog","os-homedir","pend","pump","rc","set-immediate-shim","simple-get","socks","tar-fs","tunnel-agent","typechecker","universalify","which-pm-runs","ws","are-we-there-yet","arr-diff","array-unique","async-limiter","brace-expansion","concat-map","braces","chownr","console-control-strings","decompress-response","deep-extend","end-of-stream","expand-brackets","extglob","filename-regex","gauge","ini","ip","kind-of","object.omit","once","parse-glob","regex-cache","remove-trailing-separator","set-blocking","simple-concat","smart-buffer","strip-json-comments","tar-stream","ultron","aproba","arr-flatten","balanced-match","bl","buffer-alloc","delegates","expand-range","for-own","fs-constants","glob-base","has-unicode","is-buffer","is-dotfile","is-equal-shallow","is-extendable","is-posix-bracket","is-primitive","mimic-response","object-assign","preserve","repeat-element","signal-exit","string-width","to-buffer","wide-align","is-fullwidth-code-point","wrappy","xtend","buffer-alloc-unsafe","buffer-fill","code-point-at","fill-range","for-in","is-number","isobject","number-is-nan","randomatic","repeat-string","async_hooks","assert","buffer","child_process","console","constants","crypto","cluster","dgram","dns","domain","events","fs","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","v8","vm","zlib"]
};i.nodeCachedDataDir&&(b.nodeCachedData={path:i.nodeCachedDataDir,seed:e.join("")}),o&&"function"==typeof o.beforeLoaderConfig&&o.beforeLoaderConfig(i,b),f.config(b),p.pseudo&&f(["vs/nls"],function(e){e.setPseudoTranslation(p.pseudo)}),o&&"function"==typeof o.beforeRequire&&o.beforeRequire(),f(e,e=>{try{const t=n(e,i);t&&"function"==typeof t.then&&t.then(()=>{c&&o&&o.removeDeveloperKeybindingsAfterLoad&&c()},e=>{onUnexpectedError(e,a)})}catch(e){onUnexpectedError(e,a)}})};
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/bb1e228e30ce43ebb361c84fdf2f0d4fb7fda6ce/core/bootstrap-window.js.map
