@maria_rcks/t1code 0.0.4 → 0.0.6

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 (40) hide show
  1. package/README.md +24 -0
  2. package/bin/t1code.js +38 -4
  3. package/dist/index.mjs +879 -29527
  4. package/dist/server/{BunPTY-BulfMn1P.cjs → BunPTY-3FAOkA1C.cjs} +4 -5
  5. package/dist/server/BunPTY-3FAOkA1C.cjs.map +1 -0
  6. package/dist/server/{BunPTY-Cueq2gzZ.mjs → BunPTY-B9Pc7ndx.mjs} +5 -6
  7. package/dist/server/BunPTY-B9Pc7ndx.mjs.map +1 -0
  8. package/dist/server/{NodePTY-AdcStdsu.mjs → NodePTY-CZNVLBpq.mjs} +15 -16
  9. package/dist/server/NodePTY-CZNVLBpq.mjs.map +1 -0
  10. package/dist/server/{NodePTY-DmqnQV86.cjs → NodePTY-CbnaoLlj.cjs} +14 -15
  11. package/dist/server/NodePTY-CbnaoLlj.cjs.map +1 -0
  12. package/dist/server/NodeSqliteClient-C5fYhtpO.cjs +147 -0
  13. package/dist/server/NodeSqliteClient-C5fYhtpO.cjs.map +1 -0
  14. package/dist/server/NodeSqliteClient-COEUidVC.mjs +143 -0
  15. package/dist/server/NodeSqliteClient-COEUidVC.mjs.map +1 -0
  16. package/dist/server/SqlError-7DUB2NkG.mjs +43 -0
  17. package/dist/server/SqlError-7DUB2NkG.mjs.map +1 -0
  18. package/dist/server/SqlError-CAzXmpza.cjs +48 -0
  19. package/dist/server/SqlError-CAzXmpza.cjs.map +1 -0
  20. package/dist/server/SqliteClient-BMlcF9O1.cjs +133 -0
  21. package/dist/server/SqliteClient-BMlcF9O1.cjs.map +1 -0
  22. package/dist/server/SqliteClient-MZci3yRi.mjs +129 -0
  23. package/dist/server/SqliteClient-MZci3yRi.mjs.map +1 -0
  24. package/dist/server/index.cjs +96505 -14779
  25. package/dist/server/index.cjs.map +1 -1
  26. package/dist/server/index.mjs +96491 -14777
  27. package/dist/server/index.mjs.map +1 -1
  28. package/dist/server/open-BGXDmMPQ.cjs +501 -0
  29. package/dist/server/open-BGXDmMPQ.cjs.map +1 -0
  30. package/dist/server/open-BvXvp1QV.mjs +492 -0
  31. package/dist/server/open-BvXvp1QV.mjs.map +1 -0
  32. package/package.json +9 -2
  33. package/dist/server/BunPTY-BulfMn1P.cjs.map +0 -1
  34. package/dist/server/BunPTY-Cueq2gzZ.mjs.map +0 -1
  35. package/dist/server/NodePTY-AdcStdsu.mjs.map +0 -1
  36. package/dist/server/NodePTY-DmqnQV86.cjs.map +0 -1
  37. package/dist/server/NodeSqliteClient-BTK-dUey.mjs +0 -156
  38. package/dist/server/NodeSqliteClient-BTK-dUey.mjs.map +0 -1
  39. package/dist/server/NodeSqliteClient-ViK8pcdH.cjs +0 -174
  40. package/dist/server/NodeSqliteClient-ViK8pcdH.cjs.map +0 -1
@@ -0,0 +1,501 @@
1
+ #!/usr/bin/env node
2
+
3
+ const require_index = require('./index.cjs');
4
+ let node_child_process = require("node:child_process");
5
+ node_child_process = require_index.__toESM(node_child_process);
6
+ let node_fs = require("node:fs");
7
+ node_fs = require_index.__toESM(node_fs);
8
+ let node_os = require("node:os");
9
+ node_os = require_index.__toESM(node_os);
10
+ let node_path = require("node:path");
11
+ node_path = require_index.__toESM(node_path);
12
+ let node_url = require("node:url");
13
+ let node_fs_promises = require("node:fs/promises");
14
+ node_fs_promises = require_index.__toESM(node_fs_promises);
15
+ let node_util = require("node:util");
16
+ let node_process = require("node:process");
17
+ node_process = require_index.__toESM(node_process);
18
+ let node_buffer = require("node:buffer");
19
+
20
+ //#region ../../node_modules/.bun/is-docker@3.0.0/node_modules/is-docker/index.js
21
+ let isDockerCached;
22
+ function hasDockerEnv() {
23
+ try {
24
+ node_fs.default.statSync("/.dockerenv");
25
+ return true;
26
+ } catch {
27
+ return false;
28
+ }
29
+ }
30
+ function hasDockerCGroup() {
31
+ try {
32
+ return node_fs.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
33
+ } catch {
34
+ return false;
35
+ }
36
+ }
37
+ function isDocker() {
38
+ if (isDockerCached === void 0) isDockerCached = hasDockerEnv() || hasDockerCGroup();
39
+ return isDockerCached;
40
+ }
41
+
42
+ //#endregion
43
+ //#region ../../node_modules/.bun/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
44
+ let cachedResult;
45
+ const hasContainerEnv = () => {
46
+ try {
47
+ node_fs.default.statSync("/run/.containerenv");
48
+ return true;
49
+ } catch {
50
+ return false;
51
+ }
52
+ };
53
+ function isInsideContainer() {
54
+ if (cachedResult === void 0) cachedResult = hasContainerEnv() || isDocker();
55
+ return cachedResult;
56
+ }
57
+
58
+ //#endregion
59
+ //#region ../../node_modules/.bun/is-wsl@3.1.1/node_modules/is-wsl/index.js
60
+ const isWsl = () => {
61
+ if (node_process.default.platform !== "linux") return false;
62
+ if (node_os.default.release().toLowerCase().includes("microsoft")) {
63
+ if (isInsideContainer()) return false;
64
+ return true;
65
+ }
66
+ try {
67
+ if (node_fs.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft")) return !isInsideContainer();
68
+ } catch {}
69
+ if (node_fs.default.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop") || node_fs.default.existsSync("/run/WSL")) return !isInsideContainer();
70
+ return false;
71
+ };
72
+ var is_wsl_default = node_process.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
73
+
74
+ //#endregion
75
+ //#region ../../node_modules/.bun/wsl-utils@0.1.0/node_modules/wsl-utils/index.js
76
+ const wslDrivesMountPoint = (() => {
77
+ const defaultMountPoint = "/mnt/";
78
+ let mountPoint;
79
+ return async function() {
80
+ if (mountPoint) return mountPoint;
81
+ const configFilePath = "/etc/wsl.conf";
82
+ let isConfigFileExists = false;
83
+ try {
84
+ await node_fs_promises.default.access(configFilePath, node_fs_promises.constants.F_OK);
85
+ isConfigFileExists = true;
86
+ } catch {}
87
+ if (!isConfigFileExists) return defaultMountPoint;
88
+ const configContent = await node_fs_promises.default.readFile(configFilePath, { encoding: "utf8" });
89
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
90
+ if (!configMountPoint) return defaultMountPoint;
91
+ mountPoint = configMountPoint.groups.mountPoint.trim();
92
+ mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
93
+ return mountPoint;
94
+ };
95
+ })();
96
+ const powerShellPathFromWsl = async () => {
97
+ return `${await wslDrivesMountPoint()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
98
+ };
99
+ const powerShellPath = async () => {
100
+ if (is_wsl_default) return powerShellPathFromWsl();
101
+ return `${node_process.default.env.SYSTEMROOT || node_process.default.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
102
+ };
103
+
104
+ //#endregion
105
+ //#region ../../node_modules/.bun/define-lazy-prop@3.0.0/node_modules/define-lazy-prop/index.js
106
+ function defineLazyProperty(object, propertyName, valueGetter) {
107
+ const define = (value) => Object.defineProperty(object, propertyName, {
108
+ value,
109
+ enumerable: true,
110
+ writable: true
111
+ });
112
+ Object.defineProperty(object, propertyName, {
113
+ configurable: true,
114
+ enumerable: true,
115
+ get() {
116
+ const result = valueGetter();
117
+ define(result);
118
+ return result;
119
+ },
120
+ set(value) {
121
+ define(value);
122
+ }
123
+ });
124
+ return object;
125
+ }
126
+
127
+ //#endregion
128
+ //#region ../../node_modules/.bun/default-browser-id@5.0.1/node_modules/default-browser-id/index.js
129
+ const execFileAsync$3 = (0, node_util.promisify)(node_child_process.execFile);
130
+ async function defaultBrowserId() {
131
+ if (node_process.default.platform !== "darwin") throw new Error("macOS only");
132
+ const { stdout } = await execFileAsync$3("defaults", [
133
+ "read",
134
+ "com.apple.LaunchServices/com.apple.launchservices.secure",
135
+ "LSHandlers"
136
+ ]);
137
+ const browserId = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout)?.groups.id ?? "com.apple.Safari";
138
+ if (browserId === "com.apple.safari") return "com.apple.Safari";
139
+ return browserId;
140
+ }
141
+
142
+ //#endregion
143
+ //#region ../../node_modules/.bun/run-applescript@7.1.0/node_modules/run-applescript/index.js
144
+ const execFileAsync$2 = (0, node_util.promisify)(node_child_process.execFile);
145
+ async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
146
+ if (node_process.default.platform !== "darwin") throw new Error("macOS only");
147
+ const outputArguments = humanReadableOutput ? [] : ["-ss"];
148
+ const execOptions = {};
149
+ if (signal) execOptions.signal = signal;
150
+ const { stdout } = await execFileAsync$2("osascript", [
151
+ "-e",
152
+ script,
153
+ outputArguments
154
+ ], execOptions);
155
+ return stdout.trim();
156
+ }
157
+
158
+ //#endregion
159
+ //#region ../../node_modules/.bun/bundle-name@4.1.0/node_modules/bundle-name/index.js
160
+ async function bundleName(bundleId) {
161
+ return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
162
+ }
163
+
164
+ //#endregion
165
+ //#region ../../node_modules/.bun/default-browser@5.5.0/node_modules/default-browser/windows.js
166
+ const execFileAsync$1 = (0, node_util.promisify)(node_child_process.execFile);
167
+ const windowsBrowserProgIds = {
168
+ MSEdgeHTM: {
169
+ name: "Edge",
170
+ id: "com.microsoft.edge"
171
+ },
172
+ MSEdgeBHTML: {
173
+ name: "Edge Beta",
174
+ id: "com.microsoft.edge.beta"
175
+ },
176
+ MSEdgeDHTML: {
177
+ name: "Edge Dev",
178
+ id: "com.microsoft.edge.dev"
179
+ },
180
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {
181
+ name: "Edge",
182
+ id: "com.microsoft.edge.old"
183
+ },
184
+ ChromeHTML: {
185
+ name: "Chrome",
186
+ id: "com.google.chrome"
187
+ },
188
+ ChromeBHTML: {
189
+ name: "Chrome Beta",
190
+ id: "com.google.chrome.beta"
191
+ },
192
+ ChromeDHTML: {
193
+ name: "Chrome Dev",
194
+ id: "com.google.chrome.dev"
195
+ },
196
+ ChromiumHTM: {
197
+ name: "Chromium",
198
+ id: "org.chromium.Chromium"
199
+ },
200
+ BraveHTML: {
201
+ name: "Brave",
202
+ id: "com.brave.Browser"
203
+ },
204
+ BraveBHTML: {
205
+ name: "Brave Beta",
206
+ id: "com.brave.Browser.beta"
207
+ },
208
+ BraveDHTML: {
209
+ name: "Brave Dev",
210
+ id: "com.brave.Browser.dev"
211
+ },
212
+ BraveSSHTM: {
213
+ name: "Brave Nightly",
214
+ id: "com.brave.Browser.nightly"
215
+ },
216
+ FirefoxURL: {
217
+ name: "Firefox",
218
+ id: "org.mozilla.firefox"
219
+ },
220
+ OperaStable: {
221
+ name: "Opera",
222
+ id: "com.operasoftware.Opera"
223
+ },
224
+ VivaldiHTM: {
225
+ name: "Vivaldi",
226
+ id: "com.vivaldi.Vivaldi"
227
+ },
228
+ "IE.HTTP": {
229
+ name: "Internet Explorer",
230
+ id: "com.microsoft.ie"
231
+ }
232
+ };
233
+ const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
234
+ var UnknownBrowserError = class extends Error {};
235
+ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
236
+ const { stdout } = await _execFileAsync("reg", [
237
+ "QUERY",
238
+ " HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
239
+ "/v",
240
+ "ProgId"
241
+ ]);
242
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
243
+ if (!match) throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
244
+ const { id } = match.groups;
245
+ const dotIndex = id.lastIndexOf(".");
246
+ const hyphenIndex = id.lastIndexOf("-");
247
+ const baseIdByDot = dotIndex === -1 ? void 0 : id.slice(0, dotIndex);
248
+ const baseIdByHyphen = hyphenIndex === -1 ? void 0 : id.slice(0, hyphenIndex);
249
+ return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {
250
+ name: id,
251
+ id
252
+ };
253
+ }
254
+
255
+ //#endregion
256
+ //#region ../../node_modules/.bun/default-browser@5.5.0/node_modules/default-browser/index.js
257
+ const execFileAsync = (0, node_util.promisify)(node_child_process.execFile);
258
+ const titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
259
+ async function defaultBrowser() {
260
+ if (node_process.default.platform === "darwin") {
261
+ const id = await defaultBrowserId();
262
+ return {
263
+ name: await bundleName(id),
264
+ id
265
+ };
266
+ }
267
+ if (node_process.default.platform === "linux") {
268
+ const { stdout } = await execFileAsync("xdg-mime", [
269
+ "query",
270
+ "default",
271
+ "x-scheme-handler/http"
272
+ ]);
273
+ const id = stdout.trim();
274
+ return {
275
+ name: titleize(id.replace(/.desktop$/, "").replace("-", " ")),
276
+ id
277
+ };
278
+ }
279
+ if (node_process.default.platform === "win32") return defaultBrowser$1();
280
+ throw new Error("Only macOS, Linux, and Windows are supported");
281
+ }
282
+
283
+ //#endregion
284
+ //#region ../../node_modules/.bun/open@10.2.0/node_modules/open/index.js
285
+ const execFile = (0, node_util.promisify)(node_child_process.default.execFile);
286
+ const __dirname$1 = node_path.default.dirname((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
287
+ const localXdgOpenPath = node_path.default.join(__dirname$1, "xdg-open");
288
+ const { platform, arch } = node_process.default;
289
+ /**
290
+ Get the default browser name in Windows from WSL.
291
+
292
+ @returns {Promise<string>} Browser name.
293
+ */
294
+ async function getWindowsDefaultBrowserFromWsl() {
295
+ const powershellPath = await powerShellPath();
296
+ const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
297
+ const { stdout } = await execFile(powershellPath, [
298
+ "-NoProfile",
299
+ "-NonInteractive",
300
+ "-ExecutionPolicy",
301
+ "Bypass",
302
+ "-EncodedCommand",
303
+ node_buffer.Buffer.from(rawCommand, "utf16le").toString("base64")
304
+ ], { encoding: "utf8" });
305
+ const progId = stdout.trim();
306
+ const browserMap = {
307
+ ChromeHTML: "com.google.chrome",
308
+ BraveHTML: "com.brave.Browser",
309
+ MSEdgeHTM: "com.microsoft.edge",
310
+ FirefoxURL: "org.mozilla.firefox"
311
+ };
312
+ return browserMap[progId] ? { id: browserMap[progId] } : {};
313
+ }
314
+ const pTryEach = async (array, mapper) => {
315
+ let latestError;
316
+ for (const item of array) try {
317
+ return await mapper(item);
318
+ } catch (error) {
319
+ latestError = error;
320
+ }
321
+ throw latestError;
322
+ };
323
+ const baseOpen = async (options) => {
324
+ options = {
325
+ wait: false,
326
+ background: false,
327
+ newInstance: false,
328
+ allowNonzeroExitCode: false,
329
+ ...options
330
+ };
331
+ if (Array.isArray(options.app)) return pTryEach(options.app, (singleApp) => baseOpen({
332
+ ...options,
333
+ app: singleApp
334
+ }));
335
+ let { name: app, arguments: appArguments = [] } = options.app ?? {};
336
+ appArguments = [...appArguments];
337
+ if (Array.isArray(app)) return pTryEach(app, (appName) => baseOpen({
338
+ ...options,
339
+ app: {
340
+ name: appName,
341
+ arguments: appArguments
342
+ }
343
+ }));
344
+ if (app === "browser" || app === "browserPrivate") {
345
+ const ids = {
346
+ "com.google.chrome": "chrome",
347
+ "google-chrome.desktop": "chrome",
348
+ "com.brave.Browser": "brave",
349
+ "org.mozilla.firefox": "firefox",
350
+ "firefox.desktop": "firefox",
351
+ "com.microsoft.msedge": "edge",
352
+ "com.microsoft.edge": "edge",
353
+ "com.microsoft.edgemac": "edge",
354
+ "microsoft-edge.desktop": "edge"
355
+ };
356
+ const flags = {
357
+ chrome: "--incognito",
358
+ brave: "--incognito",
359
+ firefox: "--private-window",
360
+ edge: "--inPrivate"
361
+ };
362
+ const browser = is_wsl_default ? await getWindowsDefaultBrowserFromWsl() : await defaultBrowser();
363
+ if (browser.id in ids) {
364
+ const browserName = ids[browser.id];
365
+ if (app === "browserPrivate") appArguments.push(flags[browserName]);
366
+ return baseOpen({
367
+ ...options,
368
+ app: {
369
+ name: apps[browserName],
370
+ arguments: appArguments
371
+ }
372
+ });
373
+ }
374
+ throw new Error(`${browser.name} is not supported as a default browser`);
375
+ }
376
+ let command;
377
+ const cliArguments = [];
378
+ const childProcessOptions = {};
379
+ if (platform === "darwin") {
380
+ command = "open";
381
+ if (options.wait) cliArguments.push("--wait-apps");
382
+ if (options.background) cliArguments.push("--background");
383
+ if (options.newInstance) cliArguments.push("--new");
384
+ if (app) cliArguments.push("-a", app);
385
+ } else if (platform === "win32" || is_wsl_default && !isInsideContainer() && !app) {
386
+ command = await powerShellPath();
387
+ cliArguments.push("-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-EncodedCommand");
388
+ if (!is_wsl_default) childProcessOptions.windowsVerbatimArguments = true;
389
+ const encodedArguments = ["Start"];
390
+ if (options.wait) encodedArguments.push("-Wait");
391
+ if (app) {
392
+ encodedArguments.push(`"\`"${app}\`""`);
393
+ if (options.target) appArguments.push(options.target);
394
+ } else if (options.target) encodedArguments.push(`"${options.target}"`);
395
+ if (appArguments.length > 0) {
396
+ appArguments = appArguments.map((argument) => `"\`"${argument}\`""`);
397
+ encodedArguments.push("-ArgumentList", appArguments.join(","));
398
+ }
399
+ options.target = node_buffer.Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
400
+ } else {
401
+ if (app) command = app;
402
+ else {
403
+ const isBundled = !__dirname$1 || __dirname$1 === "/";
404
+ let exeLocalXdgOpen = false;
405
+ try {
406
+ await node_fs_promises.default.access(localXdgOpenPath, node_fs_promises.constants.X_OK);
407
+ exeLocalXdgOpen = true;
408
+ } catch {}
409
+ command = node_process.default.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
410
+ }
411
+ if (appArguments.length > 0) cliArguments.push(...appArguments);
412
+ if (!options.wait) {
413
+ childProcessOptions.stdio = "ignore";
414
+ childProcessOptions.detached = true;
415
+ }
416
+ }
417
+ if (platform === "darwin" && appArguments.length > 0) cliArguments.push("--args", ...appArguments);
418
+ if (options.target) cliArguments.push(options.target);
419
+ const subprocess = node_child_process.default.spawn(command, cliArguments, childProcessOptions);
420
+ if (options.wait) return new Promise((resolve, reject) => {
421
+ subprocess.once("error", reject);
422
+ subprocess.once("close", (exitCode) => {
423
+ if (!options.allowNonzeroExitCode && exitCode > 0) {
424
+ reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
425
+ return;
426
+ }
427
+ resolve(subprocess);
428
+ });
429
+ });
430
+ subprocess.unref();
431
+ return subprocess;
432
+ };
433
+ const open = (target, options) => {
434
+ if (typeof target !== "string") throw new TypeError("Expected a `target`");
435
+ return baseOpen({
436
+ ...options,
437
+ target
438
+ });
439
+ };
440
+ const openApp = (name, options) => {
441
+ if (typeof name !== "string" && !Array.isArray(name)) throw new TypeError("Expected a valid `name`");
442
+ const { arguments: appArguments = [] } = options ?? {};
443
+ if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) throw new TypeError("Expected `appArguments` as Array type");
444
+ return baseOpen({
445
+ ...options,
446
+ app: {
447
+ name,
448
+ arguments: appArguments
449
+ }
450
+ });
451
+ };
452
+ function detectArchBinary(binary) {
453
+ if (typeof binary === "string" || Array.isArray(binary)) return binary;
454
+ const { [arch]: archBinary } = binary;
455
+ if (!archBinary) throw new Error(`${arch} is not supported`);
456
+ return archBinary;
457
+ }
458
+ function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
459
+ if (wsl && is_wsl_default) return detectArchBinary(wsl);
460
+ if (!platformBinary) throw new Error(`${platform} is not supported`);
461
+ return detectArchBinary(platformBinary);
462
+ }
463
+ const apps = {};
464
+ defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
465
+ darwin: "google chrome",
466
+ win32: "chrome",
467
+ linux: [
468
+ "google-chrome",
469
+ "google-chrome-stable",
470
+ "chromium"
471
+ ]
472
+ }, { wsl: {
473
+ ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
474
+ x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
475
+ } }));
476
+ defineLazyProperty(apps, "brave", () => detectPlatformBinary({
477
+ darwin: "brave browser",
478
+ win32: "brave",
479
+ linux: ["brave-browser", "brave"]
480
+ }, { wsl: {
481
+ ia32: "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",
482
+ x64: ["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe", "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]
483
+ } }));
484
+ defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
485
+ darwin: "firefox",
486
+ win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
487
+ linux: "firefox"
488
+ }, { wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" }));
489
+ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
490
+ darwin: "microsoft edge",
491
+ win32: "msedge",
492
+ linux: ["microsoft-edge", "microsoft-edge-dev"]
493
+ }, { wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" }));
494
+ defineLazyProperty(apps, "browser", () => "browser");
495
+ defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
496
+
497
+ //#endregion
498
+ exports.apps = apps;
499
+ exports.default = open;
500
+ exports.openApp = openApp;
501
+ //# sourceMappingURL=open-BGXDmMPQ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-BGXDmMPQ.cjs","names":["fs","process","os","fs","fs","fsConstants","isWsl","process","execFileAsync","execFile","process","execFileAsync","execFile","process","execFileAsync","execFile","defaultBrowser","execFile","process","windows","childProcess","__dirname","path","process","Buffer","isWsl","fs","fsConstants"],"sources":["../../../node_modules/.bun/is-docker@3.0.0/node_modules/is-docker/index.js","../../../node_modules/.bun/is-inside-container@1.0.0/node_modules/is-inside-container/index.js","../../../node_modules/.bun/is-wsl@3.1.1/node_modules/is-wsl/index.js","../../../node_modules/.bun/wsl-utils@0.1.0/node_modules/wsl-utils/index.js","../../../node_modules/.bun/define-lazy-prop@3.0.0/node_modules/define-lazy-prop/index.js","../../../node_modules/.bun/default-browser-id@5.0.1/node_modules/default-browser-id/index.js","../../../node_modules/.bun/run-applescript@7.1.0/node_modules/run-applescript/index.js","../../../node_modules/.bun/bundle-name@4.1.0/node_modules/bundle-name/index.js","../../../node_modules/.bun/default-browser@5.5.0/node_modules/default-browser/windows.js","../../../node_modules/.bun/default-browser@5.5.0/node_modules/default-browser/index.js","../../../node_modules/.bun/open@10.2.0/node_modules/open/index.js"],"sourcesContent":["import fs from 'node:fs';\n\nlet isDockerCached;\n\nfunction hasDockerEnv() {\n\ttry {\n\t\tfs.statSync('/.dockerenv');\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nfunction hasDockerCGroup() {\n\ttry {\n\t\treturn fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport default function isDocker() {\n\t// TODO: Use `??=` when targeting Node.js 16.\n\tif (isDockerCached === undefined) {\n\t\tisDockerCached = hasDockerEnv() || hasDockerCGroup();\n\t}\n\n\treturn isDockerCached;\n}\n","import fs from 'node:fs';\nimport isDocker from 'is-docker';\n\nlet cachedResult;\n\n// Podman detection\nconst hasContainerEnv = () => {\n\ttry {\n\t\tfs.statSync('/run/.containerenv');\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nexport default function isInsideContainer() {\n\t// TODO: Use `??=` when targeting Node.js 16.\n\tif (cachedResult === undefined) {\n\t\tcachedResult = hasContainerEnv() || isDocker();\n\t}\n\n\treturn cachedResult;\n}\n","import process from 'node:process';\nimport os from 'node:os';\nimport fs from 'node:fs';\nimport isInsideContainer from 'is-inside-container';\n\nconst isWsl = () => {\n\tif (process.platform !== 'linux') {\n\t\treturn false;\n\t}\n\n\tif (os.release().toLowerCase().includes('microsoft')) {\n\t\tif (isInsideContainer()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\ttry {\n\t\tif (fs.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) {\n\t\t\treturn !isInsideContainer();\n\t\t}\n\t} catch {}\n\n\t// Fallback for custom kernels: check WSL-specific paths.\n\tif (\n\t\tfs.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop')\n\t\t|| fs.existsSync('/run/WSL')\n\t) {\n\t\treturn !isInsideContainer();\n\t}\n\n\treturn false;\n};\n\nexport default process.env.__IS_WSL_TEST__ ? isWsl : isWsl();\n","import process from 'node:process';\nimport fs, {constants as fsConstants} from 'node:fs/promises';\nimport isWsl from 'is-wsl';\n\nexport const wslDrivesMountPoint = (() => {\n\t// Default value for \"root\" param\n\t// according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config\n\tconst defaultMountPoint = '/mnt/';\n\n\tlet mountPoint;\n\n\treturn async function () {\n\t\tif (mountPoint) {\n\t\t\t// Return memoized mount point value\n\t\t\treturn mountPoint;\n\t\t}\n\n\t\tconst configFilePath = '/etc/wsl.conf';\n\n\t\tlet isConfigFileExists = false;\n\t\ttry {\n\t\t\tawait fs.access(configFilePath, fsConstants.F_OK);\n\t\t\tisConfigFileExists = true;\n\t\t} catch {}\n\n\t\tif (!isConfigFileExists) {\n\t\t\treturn defaultMountPoint;\n\t\t}\n\n\t\tconst configContent = await fs.readFile(configFilePath, {encoding: 'utf8'});\n\t\tconst configMountPoint = /(?<!#.*)root\\s*=\\s*(?<mountPoint>.*)/g.exec(configContent);\n\n\t\tif (!configMountPoint) {\n\t\t\treturn defaultMountPoint;\n\t\t}\n\n\t\tmountPoint = configMountPoint.groups.mountPoint.trim();\n\t\tmountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`;\n\n\t\treturn mountPoint;\n\t};\n})();\n\nexport const powerShellPathFromWsl = async () => {\n\tconst mountPoint = await wslDrivesMountPoint();\n\treturn `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;\n};\n\nexport const powerShellPath = async () => {\n\tif (isWsl) {\n\t\treturn powerShellPathFromWsl();\n\t}\n\n\treturn `${process.env.SYSTEMROOT || process.env.windir || String.raw`C:\\Windows`}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`;\n};\n\nexport {default as isWsl} from 'is-wsl';\n","export default function defineLazyProperty(object, propertyName, valueGetter) {\n\tconst define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true});\n\n\tObject.defineProperty(object, propertyName, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\tget() {\n\t\t\tconst result = valueGetter();\n\t\t\tdefine(result);\n\t\t\treturn result;\n\t\t},\n\t\tset(value) {\n\t\t\tdefine(value);\n\t\t}\n\t});\n\n\treturn object;\n}\n","import {promisify} from 'node:util';\nimport process from 'node:process';\nimport {execFile} from 'node:child_process';\n\nconst execFileAsync = promisify(execFile);\n\nexport default async function defaultBrowserId() {\n\tif (process.platform !== 'darwin') {\n\t\tthrow new Error('macOS only');\n\t}\n\n\tconst {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']);\n\n\t// `(?!-)` is to prevent matching `LSHandlerRoleAll = \"-\";`.\n\tconst match = /LSHandlerRoleAll = \"(?!-)(?<id>[^\"]+?)\";\\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);\n\n\tconst browserId = match?.groups.id ?? 'com.apple.Safari';\n\n\t// Correct the case for Safari's bundle identifier\n\tif (browserId === 'com.apple.safari') {\n\t\treturn 'com.apple.Safari';\n\t}\n\n\treturn browserId;\n}\n","import process from 'node:process';\nimport {promisify} from 'node:util';\nimport {execFile, execFileSync} from 'node:child_process';\n\nconst execFileAsync = promisify(execFile);\n\nexport async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) {\n\tif (process.platform !== 'darwin') {\n\t\tthrow new Error('macOS only');\n\t}\n\n\tconst outputArguments = humanReadableOutput ? [] : ['-ss'];\n\n\tconst execOptions = {};\n\tif (signal) {\n\t\texecOptions.signal = signal;\n\t}\n\n\tconst {stdout} = await execFileAsync('osascript', ['-e', script, outputArguments], execOptions);\n\treturn stdout.trim();\n}\n\nexport function runAppleScriptSync(script, {humanReadableOutput = true} = {}) {\n\tif (process.platform !== 'darwin') {\n\t\tthrow new Error('macOS only');\n\t}\n\n\tconst outputArguments = humanReadableOutput ? [] : ['-ss'];\n\n\tconst stdout = execFileSync('osascript', ['-e', script, ...outputArguments], {\n\t\tencoding: 'utf8',\n\t\tstdio: ['ignore', 'pipe', 'ignore'],\n\t\ttimeout: 500,\n\t});\n\n\treturn stdout.trim();\n}\n","import {runAppleScript} from 'run-applescript';\n\nexport default async function bundleName(bundleId) {\n\treturn runAppleScript(`tell application \"Finder\" to set app_path to application file id \"${bundleId}\" as string\\ntell application \"System Events\" to get value of property list item \"CFBundleName\" of property list file (app_path & \":Contents:Info.plist\")`);\n}\n","import {promisify} from 'node:util';\nimport {execFile} from 'node:child_process';\n\nconst execFileAsync = promisify(execFile);\n\n// TODO: Fix the casing of bundle identifiers in the next major version.\n\n// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake\n// ones that look real and match the macOS/Linux versions for cross-platform apps.\nconst windowsBrowserProgIds = {\n\tMSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct.\n\tMSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'},\n\tMSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'},\n\tAppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'},\n\tChromeHTML: {name: 'Chrome', id: 'com.google.chrome'},\n\tChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'},\n\tChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'},\n\tChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'},\n\tBraveHTML: {name: 'Brave', id: 'com.brave.Browser'},\n\tBraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'},\n\tBraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'},\n\tBraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'},\n\tFirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'},\n\tOperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'},\n\tVivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'},\n\t'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'},\n};\n\nexport const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));\n\nexport class UnknownBrowserError extends Error {}\n\nexport default async function defaultBrowser(_execFileAsync = execFileAsync) {\n\tconst {stdout} = await _execFileAsync('reg', [\n\t\t'QUERY',\n\t\t' HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\Shell\\\\Associations\\\\UrlAssociations\\\\http\\\\UserChoice',\n\t\t'/v',\n\t\t'ProgId',\n\t]);\n\n\tconst match = /ProgId\\s*REG_SZ\\s*(?<id>\\S+)/.exec(stdout);\n\tif (!match) {\n\t\tthrow new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);\n\t}\n\n\tconst {id} = match.groups;\n\n\t// Windows can append a hash suffix to ProgIds using a dot or hyphen\n\t// (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`).\n\t// Try exact match first, then try without the suffix.\n\tconst dotIndex = id.lastIndexOf('.');\n\tconst hyphenIndex = id.lastIndexOf('-');\n\tconst baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex);\n\tconst baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex);\n\n\treturn windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id};\n}\n","import {promisify} from 'node:util';\nimport process from 'node:process';\nimport {execFile} from 'node:child_process';\nimport defaultBrowserId from 'default-browser-id';\nimport bundleName from 'bundle-name';\nimport windows from './windows.js';\n\nexport {_windowsBrowserProgIdMap} from './windows.js';\n\nconst execFileAsync = promisify(execFile);\n\n// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js\nconst titleize = string => string.toLowerCase().replaceAll(/(?:^|\\s|-)\\S/g, x => x.toUpperCase());\n\nexport default async function defaultBrowser() {\n\tif (process.platform === 'darwin') {\n\t\tconst id = await defaultBrowserId();\n\t\tconst name = await bundleName(id);\n\t\treturn {name, id};\n\t}\n\n\tif (process.platform === 'linux') {\n\t\tconst {stdout} = await execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']);\n\t\tconst id = stdout.trim();\n\t\tconst name = titleize(id.replace(/.desktop$/, '').replace('-', ' '));\n\t\treturn {name, id};\n\t}\n\n\tif (process.platform === 'win32') {\n\t\treturn windows();\n\t}\n\n\tthrow new Error('Only macOS, Linux, and Windows are supported');\n}\n","import process from 'node:process';\nimport {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport {fileURLToPath} from 'node:url';\nimport {promisify} from 'node:util';\nimport childProcess from 'node:child_process';\nimport fs, {constants as fsConstants} from 'node:fs/promises';\nimport {isWsl, powerShellPath} from 'wsl-utils';\nimport defineLazyProperty from 'define-lazy-prop';\nimport defaultBrowser from 'default-browser';\nimport isInsideContainer from 'is-inside-container';\n\nconst execFile = promisify(childProcess.execFile);\n\n// Path to included `xdg-open`.\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nconst localXdgOpenPath = path.join(__dirname, 'xdg-open');\n\nconst {platform, arch} = process;\n\n/**\nGet the default browser name in Windows from WSL.\n\n@returns {Promise<string>} Browser name.\n*/\nasync function getWindowsDefaultBrowserFromWsl() {\n\tconst powershellPath = await powerShellPath();\n\tconst rawCommand = String.raw`(Get-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice\").ProgId`;\n\tconst encodedCommand = Buffer.from(rawCommand, 'utf16le').toString('base64');\n\n\tconst {stdout} = await execFile(\n\t\tpowershellPath,\n\t\t[\n\t\t\t'-NoProfile',\n\t\t\t'-NonInteractive',\n\t\t\t'-ExecutionPolicy',\n\t\t\t'Bypass',\n\t\t\t'-EncodedCommand',\n\t\t\tencodedCommand,\n\t\t],\n\t\t{encoding: 'utf8'},\n\t);\n\n\tconst progId = stdout.trim();\n\n\t// Map ProgId to browser IDs\n\tconst browserMap = {\n\t\tChromeHTML: 'com.google.chrome',\n\t\tBraveHTML: 'com.brave.Browser',\n\t\tMSEdgeHTM: 'com.microsoft.edge',\n\t\tFirefoxURL: 'org.mozilla.firefox',\n\t};\n\n\treturn browserMap[progId] ? {id: browserMap[progId]} : {};\n}\n\nconst pTryEach = async (array, mapper) => {\n\tlet latestError;\n\n\tfor (const item of array) {\n\t\ttry {\n\t\t\treturn await mapper(item); // eslint-disable-line no-await-in-loop\n\t\t} catch (error) {\n\t\t\tlatestError = error;\n\t\t}\n\t}\n\n\tthrow latestError;\n};\n\n// eslint-disable-next-line complexity\nconst baseOpen = async options => {\n\toptions = {\n\t\twait: false,\n\t\tbackground: false,\n\t\tnewInstance: false,\n\t\tallowNonzeroExitCode: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(options.app)) {\n\t\treturn pTryEach(options.app, singleApp => baseOpen({\n\t\t\t...options,\n\t\t\tapp: singleApp,\n\t\t}));\n\t}\n\n\tlet {name: app, arguments: appArguments = []} = options.app ?? {};\n\tappArguments = [...appArguments];\n\n\tif (Array.isArray(app)) {\n\t\treturn pTryEach(app, appName => baseOpen({\n\t\t\t...options,\n\t\t\tapp: {\n\t\t\t\tname: appName,\n\t\t\t\targuments: appArguments,\n\t\t\t},\n\t\t}));\n\t}\n\n\tif (app === 'browser' || app === 'browserPrivate') {\n\t\t// IDs from default-browser for macOS and windows are the same\n\t\tconst ids = {\n\t\t\t'com.google.chrome': 'chrome',\n\t\t\t'google-chrome.desktop': 'chrome',\n\t\t\t'com.brave.Browser': 'brave',\n\t\t\t'org.mozilla.firefox': 'firefox',\n\t\t\t'firefox.desktop': 'firefox',\n\t\t\t'com.microsoft.msedge': 'edge',\n\t\t\t'com.microsoft.edge': 'edge',\n\t\t\t'com.microsoft.edgemac': 'edge',\n\t\t\t'microsoft-edge.desktop': 'edge',\n\t\t};\n\n\t\t// Incognito flags for each browser in `apps`.\n\t\tconst flags = {\n\t\t\tchrome: '--incognito',\n\t\t\tbrave: '--incognito',\n\t\t\tfirefox: '--private-window',\n\t\t\tedge: '--inPrivate',\n\t\t};\n\n\t\tconst browser = isWsl ? await getWindowsDefaultBrowserFromWsl() : await defaultBrowser();\n\t\tif (browser.id in ids) {\n\t\t\tconst browserName = ids[browser.id];\n\n\t\t\tif (app === 'browserPrivate') {\n\t\t\t\tappArguments.push(flags[browserName]);\n\t\t\t}\n\n\t\t\treturn baseOpen({\n\t\t\t\t...options,\n\t\t\t\tapp: {\n\t\t\t\t\tname: apps[browserName],\n\t\t\t\t\targuments: appArguments,\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\n\t\tthrow new Error(`${browser.name} is not supported as a default browser`);\n\t}\n\n\tlet command;\n\tconst cliArguments = [];\n\tconst childProcessOptions = {};\n\n\tif (platform === 'darwin') {\n\t\tcommand = 'open';\n\n\t\tif (options.wait) {\n\t\t\tcliArguments.push('--wait-apps');\n\t\t}\n\n\t\tif (options.background) {\n\t\t\tcliArguments.push('--background');\n\t\t}\n\n\t\tif (options.newInstance) {\n\t\t\tcliArguments.push('--new');\n\t\t}\n\n\t\tif (app) {\n\t\t\tcliArguments.push('-a', app);\n\t\t}\n\t} else if (platform === 'win32' || (isWsl && !isInsideContainer() && !app)) {\n\t\tcommand = await powerShellPath();\n\n\t\tcliArguments.push(\n\t\t\t'-NoProfile',\n\t\t\t'-NonInteractive',\n\t\t\t'-ExecutionPolicy',\n\t\t\t'Bypass',\n\t\t\t'-EncodedCommand',\n\t\t);\n\n\t\tif (!isWsl) {\n\t\t\tchildProcessOptions.windowsVerbatimArguments = true;\n\t\t}\n\n\t\tconst encodedArguments = ['Start'];\n\n\t\tif (options.wait) {\n\t\t\tencodedArguments.push('-Wait');\n\t\t}\n\n\t\tif (app) {\n\t\t\t// Double quote with double quotes to ensure the inner quotes are passed through.\n\t\t\t// Inner quotes are delimited for PowerShell interpretation with backticks.\n\t\t\tencodedArguments.push(`\"\\`\"${app}\\`\"\"`);\n\t\t\tif (options.target) {\n\t\t\t\tappArguments.push(options.target);\n\t\t\t}\n\t\t} else if (options.target) {\n\t\t\tencodedArguments.push(`\"${options.target}\"`);\n\t\t}\n\n\t\tif (appArguments.length > 0) {\n\t\t\tappArguments = appArguments.map(argument => `\"\\`\"${argument}\\`\"\"`);\n\t\t\tencodedArguments.push('-ArgumentList', appArguments.join(','));\n\t\t}\n\n\t\t// Using Base64-encoded command, accepted by PowerShell, to allow special characters.\n\t\toptions.target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');\n\t} else {\n\t\tif (app) {\n\t\t\tcommand = app;\n\t\t} else {\n\t\t\t// When bundled by Webpack, there's no actual package file path and no local `xdg-open`.\n\t\t\tconst isBundled = !__dirname || __dirname === '/';\n\n\t\t\t// Check if local `xdg-open` exists and is executable.\n\t\t\tlet exeLocalXdgOpen = false;\n\t\t\ttry {\n\t\t\t\tawait fs.access(localXdgOpenPath, fsConstants.X_OK);\n\t\t\t\texeLocalXdgOpen = true;\n\t\t\t} catch {}\n\n\t\t\tconst useSystemXdgOpen = process.versions.electron\n\t\t\t\t?? (platform === 'android' || isBundled || !exeLocalXdgOpen);\n\t\t\tcommand = useSystemXdgOpen ? 'xdg-open' : localXdgOpenPath;\n\t\t}\n\n\t\tif (appArguments.length > 0) {\n\t\t\tcliArguments.push(...appArguments);\n\t\t}\n\n\t\tif (!options.wait) {\n\t\t\t// `xdg-open` will block the process unless stdio is ignored\n\t\t\t// and it's detached from the parent even if it's unref'd.\n\t\t\tchildProcessOptions.stdio = 'ignore';\n\t\t\tchildProcessOptions.detached = true;\n\t\t}\n\t}\n\n\tif (platform === 'darwin' && appArguments.length > 0) {\n\t\tcliArguments.push('--args', ...appArguments);\n\t}\n\n\t// This has to come after `--args`.\n\tif (options.target) {\n\t\tcliArguments.push(options.target);\n\t}\n\n\tconst subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);\n\n\tif (options.wait) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tsubprocess.once('error', reject);\n\n\t\t\tsubprocess.once('close', exitCode => {\n\t\t\t\tif (!options.allowNonzeroExitCode && exitCode > 0) {\n\t\t\t\t\treject(new Error(`Exited with code ${exitCode}`));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresolve(subprocess);\n\t\t\t});\n\t\t});\n\t}\n\n\tsubprocess.unref();\n\n\treturn subprocess;\n};\n\nconst open = (target, options) => {\n\tif (typeof target !== 'string') {\n\t\tthrow new TypeError('Expected a `target`');\n\t}\n\n\treturn baseOpen({\n\t\t...options,\n\t\ttarget,\n\t});\n};\n\nexport const openApp = (name, options) => {\n\tif (typeof name !== 'string' && !Array.isArray(name)) {\n\t\tthrow new TypeError('Expected a valid `name`');\n\t}\n\n\tconst {arguments: appArguments = []} = options ?? {};\n\tif (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {\n\t\tthrow new TypeError('Expected `appArguments` as Array type');\n\t}\n\n\treturn baseOpen({\n\t\t...options,\n\t\tapp: {\n\t\t\tname,\n\t\t\targuments: appArguments,\n\t\t},\n\t});\n};\n\nfunction detectArchBinary(binary) {\n\tif (typeof binary === 'string' || Array.isArray(binary)) {\n\t\treturn binary;\n\t}\n\n\tconst {[arch]: archBinary} = binary;\n\n\tif (!archBinary) {\n\t\tthrow new Error(`${arch} is not supported`);\n\t}\n\n\treturn archBinary;\n}\n\nfunction detectPlatformBinary({[platform]: platformBinary}, {wsl}) {\n\tif (wsl && isWsl) {\n\t\treturn detectArchBinary(wsl);\n\t}\n\n\tif (!platformBinary) {\n\t\tthrow new Error(`${platform} is not supported`);\n\t}\n\n\treturn detectArchBinary(platformBinary);\n}\n\nexport const apps = {};\n\ndefineLazyProperty(apps, 'chrome', () => detectPlatformBinary({\n\tdarwin: 'google chrome',\n\twin32: 'chrome',\n\tlinux: ['google-chrome', 'google-chrome-stable', 'chromium'],\n}, {\n\twsl: {\n\t\tia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',\n\t\tx64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'],\n\t},\n}));\n\ndefineLazyProperty(apps, 'brave', () => detectPlatformBinary({\n\tdarwin: 'brave browser',\n\twin32: 'brave',\n\tlinux: ['brave-browser', 'brave'],\n}, {\n\twsl: {\n\t\tia32: '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe',\n\t\tx64: ['/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe', '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe'],\n\t},\n}));\n\ndefineLazyProperty(apps, 'firefox', () => detectPlatformBinary({\n\tdarwin: 'firefox',\n\twin32: String.raw`C:\\Program Files\\Mozilla Firefox\\firefox.exe`,\n\tlinux: 'firefox',\n}, {\n\twsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe',\n}));\n\ndefineLazyProperty(apps, 'edge', () => detectPlatformBinary({\n\tdarwin: 'microsoft edge',\n\twin32: 'msedge',\n\tlinux: ['microsoft-edge', 'microsoft-edge-dev'],\n}, {\n\twsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe',\n}));\n\ndefineLazyProperty(apps, 'browser', () => 'browser');\n\ndefineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate');\n\nexport default open;\n"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