/*---------------------------------------------------------------------------------------------
 *  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,o){return e[o[0]]=decodeURIComponent(o[1]),e},{})}function registerDeveloperKeybindings(){const e=require("electron").ipcRenderer,o="darwin"===process.platform?"meta-alt-73":"ctrl-shift-73",t="darwin"===process.platform?"meta-82":"ctrl-82";let n=function(n){const r=function(e){return[e.ctrlKey?"ctrl-":"",e.metaKey?"meta-":"",e.altKey?"alt-":"",e.shiftKey?"shift-":"",e.keyCode].join("")}(n);r===o||"123"===r?e.send("vscode:toggleDevTools"):r===t&&e.send("vscode:reloadWindow")};return window.addEventListener("keydown",n),function(){n&&(window.removeEventListener("keydown",n),n=void 0)}}function onUnexpectedError(e,o){const t=require("electron").ipcRenderer;o&&t.send("vscode:openDevTools"),console.error("[uncaught exception]: "+e),e.stack&&console.error(e.stack)}
const bootstrap=require("./bootstrap");exports.assign=function(e,o){return Object.keys(o).reduce(function(e,t){return e[t]=o[t],e},e)},exports.load=function(e,o,t){const n=require("electron").webFrame,r=require("path"),s=parseURLQueryArgs(),i=JSON.parse(s.config||"{}")||{},a=i.zoomLevel;"number"==typeof a&&0!==a&&n.setZoomLevel(a),process.on("uncaughtException",function(e){onUnexpectedError(e,c)});const c=(process.env.VSCODE_DEV||!!i.extensionDevelopmentPath)&&!i.extensionTestsPath;let d;(c||t&&t.forceEnableDeveloperKeybindings)&&(d=registerDeveloperKeybindings()),exports.assign(process.env,i.userEnv),bootstrap.enableASARSupport(r.join(i.appRoot,"node_modules")),t&&"function"==typeof t.canModifyDOM&&t.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 h={baseUrl:bootstrap.uriFromPath(i.appRoot)+"/out","vs/nls":p,
nodeModules:["electron","original-fs","agent-base","debug","ms","define-property","is-descriptor","is-accessor-descriptor","kind-of","is-data-descriptor","is-buffer","extend-shallow","is-extendable","isobject","nan","readable-stream","strip-ansi","applicationinsights","diagnostic-channel","diagnostic-channel-publishers","zone.js","graceful-fs","http-proxy-agent","https-proxy-agent","iconv-lite","jschardet","keytar","prebuild-install","minimist","native-is-elevated","native-keymap","native-watchdog","node-pty","nsfw","onigasm-umd","semver-umd","spdlog","bindings","file-uri-to-path","sudo-prompt","v8-inspect-profiler","chrome-remote-interface","vscode-chokidar","vscode-anymatch","vscode-fsevents","vscode-proxy-agent","socks-proxy-agent","vscode-ripgrep","vscode-sqlite3","vscode-textmate","vsda","xterm","xterm-addon-search","xterm-addon-web-links","yauzl","yazl","vscode-windows-ca-certs","node-addon-api","vscode-windows-registry","windows-foreground-love","windows-mutex","windows-process-tree","ansi-regex","async-each","braces","buffer-crc32","core-util-is","es6-promisify","fd-slicer","fs-extra","glob-parent","is-glob","inherits","is-binary-path","isarray","lodash.isinteger","lodash.isundefined","mkdirp","normalize-path","oniguruma","path-is-absolute","github-from-package","process-nextick-args","readdirp","string_decoder","safe-buffer","safer-buffer","upath","util-deprecate","arr-flatten","array-unique","binary-extensions","commander","detect-libc","es6-promise","expand-template","fill-range","is-extglob","jsonfile","micromatch","napi-build-utils","node-abi","semver","noop-logger","npmlog","os-homedir","path-dirname","pend","picomatch","pump","rc","repeat-element","simple-get","snapdragon-node","snapdragon","socks","split-string","tar-fs","to-regex","tunnel-agent","universalify","which-pm-runs","ws","are-we-there-yet","arr-diff","async-limiter","base","chownr","console-control-strings","decompress-response","deep-extend","end-of-stream","extglob","fragment-cache","gauge","ini","ip","is-number","map-cache","nanomatch","object.pick","once","regex-not","repeat-string","safe-regex","set-blocking","simple-concat","smart-buffer","snapdragon-util","source-map-resolve","source-map","strip-json-comments","tar-stream","to-regex-range","ultron","use","aproba","assign-symbols","atob","bl","buffer-alloc","cache-base","class-utils","component-emitter","decode-uri-component","delegates","expand-brackets","fs-constants","has-unicode","is-windows","mimic-response","mixin-deep","object-assign","pascalcase","resolve-url","ret","signal-exit","source-map-url","string-width","to-buffer","urix","wide-align","is-fullwidth-code-point","wrappy","xtend","arr-union","buffer-alloc-unsafe","buffer-fill","code-point-at","collection-visit","for-in","get-value","has-value","is-plain-object","posix-character-classes","set-value","static-extend","to-object-path","union-value","unset-value","has-values","map-visit","number-is-nan","object-copy","object-visit","copy-descriptor","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","trace_events","tty","url","util","v8","vm","worker_threads","zlib","config"]
};i.nodeCachedDataDir&&(h.nodeCachedData={path:i.nodeCachedDataDir,seed:e.join("")}),t&&"function"==typeof t.beforeLoaderConfig&&t.beforeLoaderConfig(i,h),f.config(h),p.pseudo&&f(["vs/nls"],function(e){e.setPseudoTranslation(p.pseudo)}),t&&"function"==typeof t.beforeRequire&&t.beforeRequire(),f(e,e=>{try{const n=o(e,i);n&&"function"==typeof n.then&&n.then(()=>{d&&t&&t.removeDeveloperKeybindingsAfterLoad&&d()},e=>{onUnexpectedError(e,c)})}catch(e){onUnexpectedError(e,c)}})};
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8/core/bootstrap-window.js.map
