codecharta-visualization 1.89.0 → 1.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/app/app.module.ts +16 -2
  2. package/app/codeCharta/assets/gameObjectsFile.json +75 -0
  3. package/app/codeCharta/codeCharta.model.ts +1 -10
  4. package/app/codeCharta/services/idToBuilding/idToBuilding.service.ts +17 -0
  5. package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.component.spec.ts +14 -23
  6. package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.component.ts +7 -5
  7. package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.component.spec.ts +3 -1
  8. package/app/codeCharta/state/effects/nodeContextMenu/rightClickedCodeMapNode.selector.ts +1 -1
  9. package/app/codeCharta/state/effects/trackEventUsageData/trackEventUsageData.effect.spec.ts +56 -0
  10. package/app/codeCharta/state/effects/trackEventUsageData/trackEventUsageData.effect.ts +49 -0
  11. package/app/codeCharta/state/effects/unfocusNodesOnLoadingMap.effect.ts +2 -1
  12. package/app/codeCharta/state/injector.service.ts +0 -4
  13. package/app/codeCharta/state/selectors/accumulatedData/idToNode.selector.spec.ts +15 -0
  14. package/app/codeCharta/state/selectors/accumulatedData/idToNode.selector.ts +16 -0
  15. package/app/codeCharta/state/selectors/selectedNode.selector.ts +5 -2
  16. package/app/codeCharta/state/state.module.ts +0 -4
  17. package/app/codeCharta/state/store/appSettings/isLoadingMap/isLoadingMap.reducer.ts +1 -5
  18. package/app/codeCharta/state/store/state.actions.ts +0 -2
  19. package/app/codeCharta/state/store/state.reducer.ts +0 -2
  20. package/app/codeCharta/state/store/state.splitter.ts +0 -10
  21. package/app/codeCharta/state/store.service.ts +0 -16
  22. package/app/codeCharta/ui/attributeSideBar/attributeSideBar.component.spec.ts +5 -1
  23. package/app/codeCharta/ui/attributeSideBar/attributeSideBar.component.ts +2 -2
  24. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/attributeSideBarHeaderSection.component.html +0 -1
  25. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/attributeSideBarHeaderSection.component.spec.ts +3 -45
  26. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/attributeSideBarHeaderSection.component.ts +2 -8
  27. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/nodePath/nodePath.component.html +1 -1
  28. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/nodePath/nodePath.component.spec.ts +3 -2
  29. package/app/codeCharta/ui/attributeSideBar/attributeSideBarHeaderSection/nodePath/nodePath.component.ts +2 -2
  30. package/app/codeCharta/ui/attributeSideBar/attributeSideBarSecondaryMetrics/secondaryMetrics.selector.ts +2 -2
  31. package/app/codeCharta/ui/attributeSideBar/metricDeltaSelected/metricDeltaSelected.component.spec.ts +26 -23
  32. package/app/codeCharta/ui/attributeSideBar/metricDeltaSelected/metricDeltaSelected.component.ts +2 -2
  33. package/app/codeCharta/ui/attributeSideBar/util/showAttributeTypeSelector.selector.spec.ts +2 -2
  34. package/app/codeCharta/ui/attributeSideBar/util/showAttributeTypeSelector.selector.ts +2 -2
  35. package/app/codeCharta/ui/codeMap/codeMap.mouseEvent.service.spec.ts +28 -45
  36. package/app/codeCharta/ui/codeMap/codeMap.mouseEvent.service.ts +7 -11
  37. package/app/codeCharta/ui/codeMap/codeMap.preRender.service.ts +4 -46
  38. package/app/codeCharta/ui/codeMap/threeViewer/threeSceneService.spec.ts +26 -19
  39. package/app/codeCharta/ui/codeMap/threeViewer/threeSceneService.ts +13 -25
  40. package/app/codeCharta/ui/codeMap/threeViewer/threeViewer.module.ts +3 -0
  41. package/app/codeCharta/ui/dialog/dialog.globalSettings.component.ts +3 -5
  42. package/app/codeCharta/ui/dialog/dialog.globalSettings.e2e.ts +1 -1
  43. package/app/codeCharta/ui/fileChooser/fileChooser.component.spec.ts +1 -0
  44. package/app/codeCharta/ui/fileChooser/fileChooser.component.ts +6 -1
  45. package/app/codeCharta/ui/fileChooser/fileChooser.e2e.ts +5 -0
  46. package/app/codeCharta/ui/filePanel/filePanel.component.html +1 -0
  47. package/app/codeCharta/ui/filePanel/filePanel.component.spec.ts +7 -0
  48. package/app/codeCharta/ui/filePanel/filePanel.component.ts +1 -2
  49. package/app/codeCharta/ui/filePanel/filePanel.module.ts +2 -0
  50. package/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.html +7 -1
  51. package/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.scss +6 -0
  52. package/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.ts +2 -1
  53. package/app/codeCharta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.html +3 -0
  54. package/app/codeCharta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.scss +9 -0
  55. package/app/codeCharta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.ts +11 -0
  56. package/app/codeCharta/ui/rangeSlider/rangeSlider.component.ts +9 -33
  57. package/app/codeCharta/util/__snapshots__/usageDataTracker.spec.ts.snap +1 -16
  58. package/app/codeCharta/util/codeMapHelper.ts +3 -2
  59. package/app/codeCharta/util/customConfigHelper.ts +4 -16
  60. package/app/codeCharta/util/dataMocks.ts +0 -8
  61. package/app/codeCharta/util/envDetector.ts +0 -4
  62. package/app/codeCharta/util/gameObjectsParser/__snapshots__/gameObjectsImporter.spec.ts.snap +121 -0
  63. package/app/codeCharta/util/gameObjectsParser/gameObjectsImporter.spec.ts +11 -0
  64. package/app/codeCharta/util/gameObjectsParser/gameObjectsImporter.ts +170 -0
  65. package/app/codeCharta/util/gameObjectsParser/gameObjectsMocks.ts +75 -0
  66. package/app/codeCharta/util/gameObjectsParser/gameObjectsSchema.json +271 -0
  67. package/app/codeCharta/util/gameObjectsParser/gameObjectsValidator.spec.ts +18 -0
  68. package/app/codeCharta/util/gameObjectsParser/gameObjectsValidator.ts +7 -0
  69. package/app/codeCharta/util/nodeDecorator.ts +1 -0
  70. package/app/codeCharta/util/usageDataTracker.spec.ts +36 -76
  71. package/app/codeCharta/util/usageDataTracker.ts +20 -31
  72. package/conf/webpack.config.js +7 -7
  73. package/dist/webpack/bundle.js +871 -1260
  74. package/dist/webpack/bundle.js.map +1 -1
  75. package/package.json +10 -11
  76. package/app/codeCharta/state/selectors/selectedBuilding.selector.ts +0 -8
  77. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.actions.ts +0 -22
  78. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.reducer.spec.ts +0 -33
  79. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.reducer.ts +0 -14
  80. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.selector.ts +0 -3
  81. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.service.spec.ts +0 -40
  82. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.service.ts +0 -23
  83. package/app/codeCharta/state/store/lookUp/idToBuilding/idToBuilding.splitter.ts +0 -6
  84. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.actions.ts +0 -22
  85. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.reducer.spec.ts +0 -39
  86. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.reducer.ts +0 -11
  87. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.selector.ts +0 -4
  88. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.service.spec.ts +0 -57
  89. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.service.ts +0 -23
  90. package/app/codeCharta/state/store/lookUp/idToNode/idToNode.splitter.ts +0 -6
  91. package/app/codeCharta/state/store/lookUp/lookUp.actions.ts +0 -27
  92. package/app/codeCharta/state/store/lookUp/lookUp.reducer.ts +0 -10
  93. package/app/codeCharta/state/store/lookUp/lookUp.selector.ts +0 -3
  94. package/app/codeCharta/state/store/lookUp/lookUp.splitter.ts +0 -19
  95. package/app/codeCharta/ui/removeFileButton/removeFileButton.component.html +0 -5
  96. package/app/codeCharta/ui/removeFileButton/removeFileButton.component.scss +0 -41
  97. package/app/codeCharta/ui/removeFileButton/removeFileButton.component.ts +0 -18
  98. package/app/codeCharta/ui/removeFileButton/removeFileButton.module.ts +0 -7
  99. package/app/codeCharta/util/codeChartaFileStorage.spec.ts +0 -73
  100. package/app/codeCharta/util/codeChartaStorage.ts +0 -62
  101. package/app/codeCharta/util/lazyLoader.spec.ts +0 -33
  102. package/app/codeCharta/util/lazyLoader.ts +0 -50
  103. package/dist/webpack/vendors-node_modules_open_index_js.bundle.js +0 -1036
  104. package/dist/webpack/vendors-node_modules_open_index_js.bundle.js.map +0 -1
@@ -1,1036 +0,0 @@
1
- (self["webpackChunkcodecharta_visualization"] = self["webpackChunkcodecharta_visualization"] || []).push([["vendors-node_modules_open_index_js"],{
2
-
3
- /***/ "./node_modules/define-lazy-prop/index.js":
4
- /*!************************************************!*\
5
- !*** ./node_modules/define-lazy-prop/index.js ***!
6
- \************************************************/
7
- /***/ ((module) => {
8
-
9
- "use strict";
10
-
11
- module.exports = (object, propertyName, fn) => {
12
- const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true});
13
-
14
- Object.defineProperty(object, propertyName, {
15
- configurable: true,
16
- enumerable: true,
17
- get() {
18
- const result = fn();
19
- define(result);
20
- return result;
21
- },
22
- set(value) {
23
- define(value);
24
- }
25
- });
26
-
27
- return object;
28
- };
29
-
30
-
31
- /***/ }),
32
-
33
- /***/ "./node_modules/is-docker/index.js":
34
- /*!*****************************************!*\
35
- !*** ./node_modules/is-docker/index.js ***!
36
- \*****************************************/
37
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
38
-
39
- "use strict";
40
-
41
- const fs = __webpack_require__(/*! fs */ "./node_modules/fs/index.js");
42
-
43
- let isDocker;
44
-
45
- function hasDockerEnv() {
46
- try {
47
- fs.statSync('/.dockerenv');
48
- return true;
49
- } catch (_) {
50
- return false;
51
- }
52
- }
53
-
54
- function hasDockerCGroup() {
55
- try {
56
- return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');
57
- } catch (_) {
58
- return false;
59
- }
60
- }
61
-
62
- module.exports = () => {
63
- if (isDocker === undefined) {
64
- isDocker = hasDockerEnv() || hasDockerCGroup();
65
- }
66
-
67
- return isDocker;
68
- };
69
-
70
-
71
- /***/ }),
72
-
73
- /***/ "./node_modules/is-wsl/index.js":
74
- /*!**************************************!*\
75
- !*** ./node_modules/is-wsl/index.js ***!
76
- \**************************************/
77
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
78
-
79
- "use strict";
80
- /* provided dependency */ var process = __webpack_require__(/*! ./node_modules/process/browser.js */ "./node_modules/process/browser.js");
81
-
82
- const os = __webpack_require__(/*! os */ "./node_modules/os-browserify/browser.js");
83
- const fs = __webpack_require__(/*! fs */ "./node_modules/fs/index.js");
84
- const isDocker = __webpack_require__(/*! is-docker */ "./node_modules/is-docker/index.js");
85
-
86
- const isWsl = () => {
87
- if (process.platform !== 'linux') {
88
- return false;
89
- }
90
-
91
- if (os.release().toLowerCase().includes('microsoft')) {
92
- if (isDocker()) {
93
- return false;
94
- }
95
-
96
- return true;
97
- }
98
-
99
- try {
100
- return fs.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') ?
101
- !isDocker() : false;
102
- } catch (_) {
103
- return false;
104
- }
105
- };
106
-
107
- if (process.env.__IS_WSL_TEST__) {
108
- module.exports = isWsl;
109
- } else {
110
- module.exports = isWsl();
111
- }
112
-
113
-
114
- /***/ }),
115
-
116
- /***/ "./node_modules/open/index.js":
117
- /*!************************************!*\
118
- !*** ./node_modules/open/index.js ***!
119
- \************************************/
120
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
121
-
122
- var __dirname = "/";
123
- /* provided dependency */ var process = __webpack_require__(/*! ./node_modules/process/browser.js */ "./node_modules/process/browser.js");
124
- /* provided dependency */ var Buffer = __webpack_require__(/*! ./node_modules/buffer/index.js */ "./node_modules/buffer/index.js")["Buffer"];
125
- const path = __webpack_require__(/*! path */ "./node_modules/path/path.js");
126
- const childProcess = __webpack_require__(/*! child_process */ "child_process");
127
- const {promises: fs, constants: fsConstants} = __webpack_require__(/*! fs */ "./node_modules/fs/index.js");
128
- const isWsl = __webpack_require__(/*! is-wsl */ "./node_modules/is-wsl/index.js");
129
- const isDocker = __webpack_require__(/*! is-docker */ "./node_modules/is-docker/index.js");
130
- const defineLazyProperty = __webpack_require__(/*! define-lazy-prop */ "./node_modules/define-lazy-prop/index.js");
131
-
132
- // Path to included `xdg-open`.
133
- const localXdgOpenPath = path.join(__dirname, 'xdg-open');
134
-
135
- const {platform, arch} = process;
136
-
137
- /**
138
- Get the mount point for fixed drives in WSL.
139
-
140
- @inner
141
- @returns {string} The mount point.
142
- */
143
- const getWslDrivesMountPoint = (() => {
144
- // Default value for "root" param
145
- // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config
146
- const defaultMountPoint = '/mnt/';
147
-
148
- let mountPoint;
149
-
150
- return async function () {
151
- if (mountPoint) {
152
- // Return memoized mount point value
153
- return mountPoint;
154
- }
155
-
156
- const configFilePath = '/etc/wsl.conf';
157
-
158
- let isConfigFileExists = false;
159
- try {
160
- await fs.access(configFilePath, fsConstants.F_OK);
161
- isConfigFileExists = true;
162
- } catch {}
163
-
164
- if (!isConfigFileExists) {
165
- return defaultMountPoint;
166
- }
167
-
168
- const configContent = await fs.readFile(configFilePath, {encoding: 'utf8'});
169
- const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
170
-
171
- if (!configMountPoint) {
172
- return defaultMountPoint;
173
- }
174
-
175
- mountPoint = configMountPoint.groups.mountPoint.trim();
176
- mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`;
177
-
178
- return mountPoint;
179
- };
180
- })();
181
-
182
- const pTryEach = async (array, mapper) => {
183
- let latestError;
184
-
185
- for (const item of array) {
186
- try {
187
- return await mapper(item); // eslint-disable-line no-await-in-loop
188
- } catch (error) {
189
- latestError = error;
190
- }
191
- }
192
-
193
- throw latestError;
194
- };
195
-
196
- const baseOpen = async options => {
197
- options = {
198
- wait: false,
199
- background: false,
200
- newInstance: false,
201
- allowNonzeroExitCode: false,
202
- ...options
203
- };
204
-
205
- if (Array.isArray(options.app)) {
206
- return pTryEach(options.app, singleApp => baseOpen({
207
- ...options,
208
- app: singleApp
209
- }));
210
- }
211
-
212
- let {name: app, arguments: appArguments = []} = options.app || {};
213
- appArguments = [...appArguments];
214
-
215
- if (Array.isArray(app)) {
216
- return pTryEach(app, appName => baseOpen({
217
- ...options,
218
- app: {
219
- name: appName,
220
- arguments: appArguments
221
- }
222
- }));
223
- }
224
-
225
- let command;
226
- const cliArguments = [];
227
- const childProcessOptions = {};
228
-
229
- if (platform === 'darwin') {
230
- command = 'open';
231
-
232
- if (options.wait) {
233
- cliArguments.push('--wait-apps');
234
- }
235
-
236
- if (options.background) {
237
- cliArguments.push('--background');
238
- }
239
-
240
- if (options.newInstance) {
241
- cliArguments.push('--new');
242
- }
243
-
244
- if (app) {
245
- cliArguments.push('-a', app);
246
- }
247
- } else if (platform === 'win32' || (isWsl && !isDocker())) {
248
- const mountPoint = await getWslDrivesMountPoint();
249
-
250
- command = isWsl ?
251
- `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` :
252
- `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
253
-
254
- cliArguments.push(
255
- '-NoProfile',
256
- '-NonInteractive',
257
- '–ExecutionPolicy',
258
- 'Bypass',
259
- '-EncodedCommand'
260
- );
261
-
262
- if (!isWsl) {
263
- childProcessOptions.windowsVerbatimArguments = true;
264
- }
265
-
266
- const encodedArguments = ['Start'];
267
-
268
- if (options.wait) {
269
- encodedArguments.push('-Wait');
270
- }
271
-
272
- if (app) {
273
- // Double quote with double quotes to ensure the inner quotes are passed through.
274
- // Inner quotes are delimited for PowerShell interpretation with backticks.
275
- encodedArguments.push(`"\`"${app}\`""`, '-ArgumentList');
276
- if (options.target) {
277
- appArguments.unshift(options.target);
278
- }
279
- } else if (options.target) {
280
- encodedArguments.push(`"${options.target}"`);
281
- }
282
-
283
- if (appArguments.length > 0) {
284
- appArguments = appArguments.map(arg => `"\`"${arg}\`""`);
285
- encodedArguments.push(appArguments.join(','));
286
- }
287
-
288
- // Using Base64-encoded command, accepted by PowerShell, to allow special characters.
289
- options.target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
290
- } else {
291
- if (app) {
292
- command = app;
293
- } else {
294
- // When bundled by Webpack, there's no actual package file path and no local `xdg-open`.
295
- const isBundled = false || __dirname === '/';
296
-
297
- // Check if local `xdg-open` exists and is executable.
298
- let exeLocalXdgOpen = false;
299
- try {
300
- await fs.access(localXdgOpenPath, fsConstants.X_OK);
301
- exeLocalXdgOpen = true;
302
- } catch {}
303
-
304
- const useSystemXdgOpen = process.versions.electron ||
305
- platform === 'android' || isBundled || !exeLocalXdgOpen;
306
- command = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath;
307
- }
308
-
309
- if (appArguments.length > 0) {
310
- cliArguments.push(...appArguments);
311
- }
312
-
313
- if (!options.wait) {
314
- // `xdg-open` will block the process unless stdio is ignored
315
- // and it's detached from the parent even if it's unref'd.
316
- childProcessOptions.stdio = 'ignore';
317
- childProcessOptions.detached = true;
318
- }
319
- }
320
-
321
- if (options.target) {
322
- cliArguments.push(options.target);
323
- }
324
-
325
- if (platform === 'darwin' && appArguments.length > 0) {
326
- cliArguments.push('--args', ...appArguments);
327
- }
328
-
329
- const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
330
-
331
- if (options.wait) {
332
- return new Promise((resolve, reject) => {
333
- subprocess.once('error', reject);
334
-
335
- subprocess.once('close', exitCode => {
336
- if (options.allowNonzeroExitCode && exitCode > 0) {
337
- reject(new Error(`Exited with code ${exitCode}`));
338
- return;
339
- }
340
-
341
- resolve(subprocess);
342
- });
343
- });
344
- }
345
-
346
- subprocess.unref();
347
-
348
- return subprocess;
349
- };
350
-
351
- const open = (target, options) => {
352
- if (typeof target !== 'string') {
353
- throw new TypeError('Expected a `target`');
354
- }
355
-
356
- return baseOpen({
357
- ...options,
358
- target
359
- });
360
- };
361
-
362
- const openApp = (name, options) => {
363
- if (typeof name !== 'string') {
364
- throw new TypeError('Expected a `name`');
365
- }
366
-
367
- const {arguments: appArguments = []} = options || {};
368
- if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
369
- throw new TypeError('Expected `appArguments` as Array type');
370
- }
371
-
372
- return baseOpen({
373
- ...options,
374
- app: {
375
- name,
376
- arguments: appArguments
377
- }
378
- });
379
- };
380
-
381
- function detectArchBinary(binary) {
382
- if (typeof binary === 'string' || Array.isArray(binary)) {
383
- return binary;
384
- }
385
-
386
- const {[arch]: archBinary} = binary;
387
-
388
- if (!archBinary) {
389
- throw new Error(`${arch} is not supported`);
390
- }
391
-
392
- return archBinary;
393
- }
394
-
395
- function detectPlatformBinary({[platform]: platformBinary}, {wsl}) {
396
- if (wsl && isWsl) {
397
- return detectArchBinary(wsl);
398
- }
399
-
400
- if (!platformBinary) {
401
- throw new Error(`${platform} is not supported`);
402
- }
403
-
404
- return detectArchBinary(platformBinary);
405
- }
406
-
407
- const apps = {};
408
-
409
- defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({
410
- darwin: 'google chrome',
411
- win32: 'chrome',
412
- linux: ['google-chrome', 'google-chrome-stable', 'chromium']
413
- }, {
414
- wsl: {
415
- ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',
416
- x64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe']
417
- }
418
- }));
419
-
420
- defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({
421
- darwin: 'firefox',
422
- win32: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe',
423
- linux: 'firefox'
424
- }, {
425
- wsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe'
426
- }));
427
-
428
- defineLazyProperty(apps, 'edge', () => detectPlatformBinary({
429
- darwin: 'microsoft edge',
430
- win32: 'msedge',
431
- linux: ['microsoft-edge', 'microsoft-edge-dev']
432
- }, {
433
- wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'
434
- }));
435
-
436
- open.apps = apps;
437
- open.openApp = openApp;
438
-
439
- module.exports = open;
440
-
441
-
442
- /***/ }),
443
-
444
- /***/ "./node_modules/os-browserify/browser.js":
445
- /*!***********************************************!*\
446
- !*** ./node_modules/os-browserify/browser.js ***!
447
- \***********************************************/
448
- /***/ ((__unused_webpack_module, exports) => {
449
-
450
- exports.endianness = function () { return 'LE' };
451
-
452
- exports.hostname = function () {
453
- if (typeof location !== 'undefined') {
454
- return location.hostname
455
- }
456
- else return '';
457
- };
458
-
459
- exports.loadavg = function () { return [] };
460
-
461
- exports.uptime = function () { return 0 };
462
-
463
- exports.freemem = function () {
464
- return Number.MAX_VALUE;
465
- };
466
-
467
- exports.totalmem = function () {
468
- return Number.MAX_VALUE;
469
- };
470
-
471
- exports.cpus = function () { return [] };
472
-
473
- exports.type = function () { return 'Browser' };
474
-
475
- exports.release = function () {
476
- if (typeof navigator !== 'undefined') {
477
- return navigator.appVersion;
478
- }
479
- return '';
480
- };
481
-
482
- exports.networkInterfaces
483
- = exports.getNetworkInterfaces
484
- = function () { return {} };
485
-
486
- exports.arch = function () { return 'javascript' };
487
-
488
- exports.platform = function () { return 'browser' };
489
-
490
- exports.tmpdir = exports.tmpDir = function () {
491
- return '/tmp';
492
- };
493
-
494
- exports.EOL = '\n';
495
-
496
- exports.homedir = function () {
497
- return '/'
498
- };
499
-
500
-
501
- /***/ }),
502
-
503
- /***/ "./node_modules/path/path.js":
504
- /*!***********************************!*\
505
- !*** ./node_modules/path/path.js ***!
506
- \***********************************/
507
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
508
-
509
- var process = process || {};
510
- (function () {
511
- "use strict";
512
-
513
- // Copyright Joyent, Inc. and other Node contributors.
514
- //
515
- // Permission is hereby granted, free of charge, to any person obtaining a
516
- // copy of this software and associated documentation files (the
517
- // "Software"), to deal in the Software without restriction, including
518
- // without limitation the rights to use, copy, modify, merge, publish,
519
- // distribute, sublicense, and/or sell copies of the Software, and to permit
520
- // persons to whom the Software is furnished to do so, subject to the
521
- // following conditions:
522
- //
523
- // The above copyright notice and this permission notice shall be included
524
- // in all copies or substantial portions of the Software.
525
- //
526
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
527
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
528
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
529
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
530
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
531
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
532
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
533
-
534
-
535
- var isWindows = process.platform === 'win32';
536
- var util = __webpack_require__(/*! util */ "./node_modules/util/util.js");
537
-
538
-
539
- // resolves . and .. elements in a path array with directory names there
540
- // must be no slashes, empty elements, or device names (c:\) in the array
541
- // (so also no leading and trailing slashes - it does not distinguish
542
- // relative and absolute paths)
543
- function normalizeArray(parts, allowAboveRoot) {
544
- // if the path tries to go above the root, `up` ends up > 0
545
- var up = 0;
546
- for (var i = parts.length - 1; i >= 0; i--) {
547
- var last = parts[i];
548
- if (last === '.') {
549
- parts.splice(i, 1);
550
- } else if (last === '..') {
551
- parts.splice(i, 1);
552
- up++;
553
- } else if (up) {
554
- parts.splice(i, 1);
555
- up--;
556
- }
557
- }
558
-
559
- // if the path is allowed to go above the root, restore leading ..s
560
- if (allowAboveRoot) {
561
- for (; up--; up) {
562
- parts.unshift('..');
563
- }
564
- }
565
-
566
- return parts;
567
- }
568
-
569
-
570
- if (isWindows) {
571
- // Regex to split a windows path into three parts: [*, device, slash,
572
- // tail] windows-only
573
- var splitDeviceRe =
574
- /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
575
-
576
- // Regex to split the tail part of the above into [*, dir, basename, ext]
577
- var splitTailRe =
578
- /^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;
579
-
580
- // Function to split a filename into [root, dir, basename, ext]
581
- // windows version
582
- var splitPath = function(filename) {
583
- // Separate device+slash from tail
584
- var result = splitDeviceRe.exec(filename),
585
- device = (result[1] || '') + (result[2] || ''),
586
- tail = result[3] || '';
587
- // Split the tail into dir, basename and extension
588
- var result2 = splitTailRe.exec(tail),
589
- dir = result2[1],
590
- basename = result2[2],
591
- ext = result2[3];
592
- return [device, dir, basename, ext];
593
- };
594
-
595
- var normalizeUNCRoot = function(device) {
596
- return '\\\\' + device.replace(/^[\\\/]+/, '').replace(/[\\\/]+/g, '\\');
597
- };
598
-
599
- // path.resolve([from ...], to)
600
- // windows version
601
- exports.resolve = function() {
602
- var resolvedDevice = '',
603
- resolvedTail = '',
604
- resolvedAbsolute = false;
605
-
606
- for (var i = arguments.length - 1; i >= -1; i--) {
607
- var path;
608
- if (i >= 0) {
609
- path = arguments[i];
610
- } else if (!resolvedDevice) {
611
- path = process.cwd();
612
- } else {
613
- // Windows has the concept of drive-specific current working
614
- // directories. If we've resolved a drive letter but not yet an
615
- // absolute path, get cwd for that drive. We're sure the device is not
616
- // an unc path at this points, because unc paths are always absolute.
617
- path = process.env['=' + resolvedDevice];
618
- // Verify that a drive-local cwd was found and that it actually points
619
- // to our drive. If not, default to the drive's root.
620
- if (!path || path.substr(0, 3).toLowerCase() !==
621
- resolvedDevice.toLowerCase() + '\\') {
622
- path = resolvedDevice + '\\';
623
- }
624
- }
625
-
626
- // Skip empty and invalid entries
627
- if (!util.isString(path)) {
628
- throw new TypeError('Arguments to path.resolve must be strings');
629
- } else if (!path) {
630
- continue;
631
- }
632
-
633
- var result = splitDeviceRe.exec(path),
634
- device = result[1] || '',
635
- isUnc = device && device.charAt(1) !== ':',
636
- isAbsolute = exports.isAbsolute(path),
637
- tail = result[3];
638
-
639
- if (device &&
640
- resolvedDevice &&
641
- device.toLowerCase() !== resolvedDevice.toLowerCase()) {
642
- // This path points to another device so it is not applicable
643
- continue;
644
- }
645
-
646
- if (!resolvedDevice) {
647
- resolvedDevice = device;
648
- }
649
- if (!resolvedAbsolute) {
650
- resolvedTail = tail + '\\' + resolvedTail;
651
- resolvedAbsolute = isAbsolute;
652
- }
653
-
654
- if (resolvedDevice && resolvedAbsolute) {
655
- break;
656
- }
657
- }
658
-
659
- // Convert slashes to backslashes when `resolvedDevice` points to an UNC
660
- // root. Also squash multiple slashes into a single one where appropriate.
661
- if (isUnc) {
662
- resolvedDevice = normalizeUNCRoot(resolvedDevice);
663
- }
664
-
665
- // At this point the path should be resolved to a full absolute path,
666
- // but handle relative paths to be safe (might happen when process.cwd()
667
- // fails)
668
-
669
- // Normalize the tail path
670
-
671
- function f(p) {
672
- return !!p;
673
- }
674
-
675
- resolvedTail = normalizeArray(resolvedTail.split(/[\\\/]+/).filter(f),
676
- !resolvedAbsolute).join('\\');
677
-
678
- return (resolvedDevice + (resolvedAbsolute ? '\\' : '') + resolvedTail) ||
679
- '.';
680
- };
681
-
682
- // windows version
683
- exports.normalize = function(path) {
684
- var result = splitDeviceRe.exec(path),
685
- device = result[1] || '',
686
- isUnc = device && device.charAt(1) !== ':',
687
- isAbsolute = exports.isAbsolute(path),
688
- tail = result[3],
689
- trailingSlash = /[\\\/]$/.test(tail);
690
-
691
- // If device is a drive letter, we'll normalize to lower case.
692
- if (device && device.charAt(1) === ':') {
693
- device = device[0].toLowerCase() + device.substr(1);
694
- }
695
-
696
- // Normalize the tail path
697
- tail = normalizeArray(tail.split(/[\\\/]+/).filter(function(p) {
698
- return !!p;
699
- }), !isAbsolute).join('\\');
700
-
701
- if (!tail && !isAbsolute) {
702
- tail = '.';
703
- }
704
- if (tail && trailingSlash) {
705
- tail += '\\';
706
- }
707
-
708
- // Convert slashes to backslashes when `device` points to an UNC root.
709
- // Also squash multiple slashes into a single one where appropriate.
710
- if (isUnc) {
711
- device = normalizeUNCRoot(device);
712
- }
713
-
714
- return device + (isAbsolute ? '\\' : '') + tail;
715
- };
716
-
717
- // windows version
718
- exports.isAbsolute = function(path) {
719
- var result = splitDeviceRe.exec(path),
720
- device = result[1] || '',
721
- isUnc = !!device && device.charAt(1) !== ':';
722
- // UNC paths are always absolute
723
- return !!result[2] || isUnc;
724
- };
725
-
726
- // windows version
727
- exports.join = function() {
728
- function f(p) {
729
- if (!util.isString(p)) {
730
- throw new TypeError('Arguments to path.join must be strings');
731
- }
732
- return p;
733
- }
734
-
735
- var paths = Array.prototype.filter.call(arguments, f);
736
- var joined = paths.join('\\');
737
-
738
- // Make sure that the joined path doesn't start with two slashes, because
739
- // normalize() will mistake it for an UNC path then.
740
- //
741
- // This step is skipped when it is very clear that the user actually
742
- // intended to point at an UNC path. This is assumed when the first
743
- // non-empty string arguments starts with exactly two slashes followed by
744
- // at least one more non-slash character.
745
- //
746
- // Note that for normalize() to treat a path as an UNC path it needs to
747
- // have at least 2 components, so we don't filter for that here.
748
- // This means that the user can use join to construct UNC paths from
749
- // a server name and a share name; for example:
750
- // path.join('//server', 'share') -> '\\\\server\\share\')
751
- if (!/^[\\\/]{2}[^\\\/]/.test(paths[0])) {
752
- joined = joined.replace(/^[\\\/]{2,}/, '\\');
753
- }
754
-
755
- return exports.normalize(joined);
756
- };
757
-
758
- // path.relative(from, to)
759
- // it will solve the relative path from 'from' to 'to', for instance:
760
- // from = 'C:\\orandea\\test\\aaa'
761
- // to = 'C:\\orandea\\impl\\bbb'
762
- // The output of the function should be: '..\\..\\impl\\bbb'
763
- // windows version
764
- exports.relative = function(from, to) {
765
- from = exports.resolve(from);
766
- to = exports.resolve(to);
767
-
768
- // windows is not case sensitive
769
- var lowerFrom = from.toLowerCase();
770
- var lowerTo = to.toLowerCase();
771
-
772
- function trim(arr) {
773
- var start = 0;
774
- for (; start < arr.length; start++) {
775
- if (arr[start] !== '') break;
776
- }
777
-
778
- var end = arr.length - 1;
779
- for (; end >= 0; end--) {
780
- if (arr[end] !== '') break;
781
- }
782
-
783
- if (start > end) return [];
784
- return arr.slice(start, end + 1);
785
- }
786
-
787
- var toParts = trim(to.split('\\'));
788
-
789
- var lowerFromParts = trim(lowerFrom.split('\\'));
790
- var lowerToParts = trim(lowerTo.split('\\'));
791
-
792
- var length = Math.min(lowerFromParts.length, lowerToParts.length);
793
- var samePartsLength = length;
794
- for (var i = 0; i < length; i++) {
795
- if (lowerFromParts[i] !== lowerToParts[i]) {
796
- samePartsLength = i;
797
- break;
798
- }
799
- }
800
-
801
- if (samePartsLength == 0) {
802
- return to;
803
- }
804
-
805
- var outputParts = [];
806
- for (var i = samePartsLength; i < lowerFromParts.length; i++) {
807
- outputParts.push('..');
808
- }
809
-
810
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
811
-
812
- return outputParts.join('\\');
813
- };
814
-
815
- exports.sep = '\\';
816
- exports.delimiter = ';';
817
-
818
- } else /* posix */ {
819
-
820
- // Split a filename into [root, dir, basename, ext], unix version
821
- // 'root' is just a slash, or nothing.
822
- var splitPathRe =
823
- /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
824
- var splitPath = function(filename) {
825
- return splitPathRe.exec(filename).slice(1);
826
- };
827
-
828
- // path.resolve([from ...], to)
829
- // posix version
830
- exports.resolve = function() {
831
- var resolvedPath = '',
832
- resolvedAbsolute = false;
833
-
834
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
835
- var path = (i >= 0) ? arguments[i] : process.cwd();
836
-
837
- // Skip empty and invalid entries
838
- if (!util.isString(path)) {
839
- throw new TypeError('Arguments to path.resolve must be strings');
840
- } else if (!path) {
841
- continue;
842
- }
843
-
844
- resolvedPath = path + '/' + resolvedPath;
845
- resolvedAbsolute = path.charAt(0) === '/';
846
- }
847
-
848
- // At this point the path should be resolved to a full absolute path, but
849
- // handle relative paths to be safe (might happen when process.cwd() fails)
850
-
851
- // Normalize the path
852
- resolvedPath = normalizeArray(resolvedPath.split('/').filter(function(p) {
853
- return !!p;
854
- }), !resolvedAbsolute).join('/');
855
-
856
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
857
- };
858
-
859
- // path.normalize(path)
860
- // posix version
861
- exports.normalize = function(path) {
862
- var isAbsolute = exports.isAbsolute(path),
863
- trailingSlash = path[path.length - 1] === '/',
864
- segments = path.split('/'),
865
- nonEmptySegments = [];
866
-
867
- // Normalize the path
868
- for (var i = 0; i < segments.length; i++) {
869
- if (segments[i]) {
870
- nonEmptySegments.push(segments[i]);
871
- }
872
- }
873
- path = normalizeArray(nonEmptySegments, !isAbsolute).join('/');
874
-
875
- if (!path && !isAbsolute) {
876
- path = '.';
877
- }
878
- if (path && trailingSlash) {
879
- path += '/';
880
- }
881
-
882
- return (isAbsolute ? '/' : '') + path;
883
- };
884
-
885
- // posix version
886
- exports.isAbsolute = function(path) {
887
- return path.charAt(0) === '/';
888
- };
889
-
890
- // posix version
891
- exports.join = function() {
892
- var path = '';
893
- for (var i = 0; i < arguments.length; i++) {
894
- var segment = arguments[i];
895
- if (!util.isString(segment)) {
896
- throw new TypeError('Arguments to path.join must be strings');
897
- }
898
- if (segment) {
899
- if (!path) {
900
- path += segment;
901
- } else {
902
- path += '/' + segment;
903
- }
904
- }
905
- }
906
- return exports.normalize(path);
907
- };
908
-
909
-
910
- // path.relative(from, to)
911
- // posix version
912
- exports.relative = function(from, to) {
913
- from = exports.resolve(from).substr(1);
914
- to = exports.resolve(to).substr(1);
915
-
916
- function trim(arr) {
917
- var start = 0;
918
- for (; start < arr.length; start++) {
919
- if (arr[start] !== '') break;
920
- }
921
-
922
- var end = arr.length - 1;
923
- for (; end >= 0; end--) {
924
- if (arr[end] !== '') break;
925
- }
926
-
927
- if (start > end) return [];
928
- return arr.slice(start, end + 1);
929
- }
930
-
931
- var fromParts = trim(from.split('/'));
932
- var toParts = trim(to.split('/'));
933
-
934
- var length = Math.min(fromParts.length, toParts.length);
935
- var samePartsLength = length;
936
- for (var i = 0; i < length; i++) {
937
- if (fromParts[i] !== toParts[i]) {
938
- samePartsLength = i;
939
- break;
940
- }
941
- }
942
-
943
- var outputParts = [];
944
- for (var i = samePartsLength; i < fromParts.length; i++) {
945
- outputParts.push('..');
946
- }
947
-
948
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
949
-
950
- return outputParts.join('/');
951
- };
952
-
953
- exports.sep = '/';
954
- exports.delimiter = ':';
955
- }
956
-
957
- exports.dirname = function(path) {
958
- var result = splitPath(path),
959
- root = result[0],
960
- dir = result[1];
961
-
962
- if (!root && !dir) {
963
- // No dirname whatsoever
964
- return '.';
965
- }
966
-
967
- if (dir) {
968
- // It has a dirname, strip trailing slash
969
- dir = dir.substr(0, dir.length - 1);
970
- }
971
-
972
- return root + dir;
973
- };
974
-
975
-
976
- exports.basename = function(path, ext) {
977
- var f = splitPath(path)[2];
978
- // TODO: make this comparison case-insensitive on windows?
979
- if (ext && f.substr(-1 * ext.length) === ext) {
980
- f = f.substr(0, f.length - ext.length);
981
- }
982
- return f;
983
- };
984
-
985
-
986
- exports.extname = function(path) {
987
- return splitPath(path)[3];
988
- };
989
-
990
-
991
- exports.exists = util.deprecate(function(path, callback) {
992
- __webpack_require__(/*! fs */ "./node_modules/fs/index.js").exists(path, callback);
993
- }, 'path.exists is now called `fs.exists`.');
994
-
995
-
996
- exports.existsSync = util.deprecate(function(path) {
997
- return __webpack_require__(/*! fs */ "./node_modules/fs/index.js").existsSync(path);
998
- }, 'path.existsSync is now called `fs.existsSync`.');
999
-
1000
-
1001
- if (isWindows) {
1002
- exports._makeLong = function(path) {
1003
- // Note: this will *probably* throw somewhere.
1004
- if (!util.isString(path))
1005
- return path;
1006
-
1007
- if (!path) {
1008
- return '';
1009
- }
1010
-
1011
- var resolvedPath = exports.resolve(path);
1012
-
1013
- if (/^[a-zA-Z]\:\\/.test(resolvedPath)) {
1014
- // path is local filesystem path, which needs to be converted
1015
- // to long UNC path.
1016
- return '\\\\?\\' + resolvedPath;
1017
- } else if (/^\\\\[^?.]/.test(resolvedPath)) {
1018
- // path is network UNC path, which needs to be converted
1019
- // to long UNC path.
1020
- return '\\\\?\\UNC\\' + resolvedPath.substring(2);
1021
- }
1022
-
1023
- return path;
1024
- };
1025
- } else {
1026
- exports._makeLong = function(path) {
1027
- return path;
1028
- };
1029
- }
1030
- }());
1031
-
1032
-
1033
- /***/ })
1034
-
1035
- }]);
1036
- //# sourceMappingURL=vendors-node_modules_open_index_js.bundle.js.map