@nocoo/bat 3.0.1 → 3.1.2
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.
- package/dist/bat.js +475 -485
- package/package.json +1 -1
package/dist/bat.js
CHANGED
|
@@ -19,32 +19,31 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
19
19
|
return cached;
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
|
+
for (let key of __getOwnPropNames(mod))
|
|
25
|
+
if (!__hasOwnProp.call(to, key))
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
28
|
+
enumerable: true
|
|
29
|
+
});
|
|
30
|
+
}
|
|
29
31
|
if (canCache)
|
|
30
32
|
cache.set(mod, to);
|
|
31
33
|
return to;
|
|
32
34
|
};
|
|
33
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
set: __exportSetter.bind(all, name)
|
|
45
|
-
});
|
|
36
|
+
var __esm = (fn, res, err) => () => {
|
|
37
|
+
if (fn)
|
|
38
|
+
try {
|
|
39
|
+
res = fn(fn = 0);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
err = [e];
|
|
42
|
+
}
|
|
43
|
+
if (err)
|
|
44
|
+
throw err[0];
|
|
45
|
+
return res;
|
|
46
46
|
};
|
|
47
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
48
47
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
49
48
|
|
|
50
49
|
// ../../node_modules/.bun/citty@0.2.2/node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
@@ -596,7 +595,7 @@ var init_dist = __esm(() => {
|
|
|
596
595
|
});
|
|
597
596
|
|
|
598
597
|
// ../../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
599
|
-
var require_picocolors = __commonJS((exports, module)
|
|
598
|
+
var require_picocolors = __commonJS(function(exports, module) {
|
|
600
599
|
var p = process || {};
|
|
601
600
|
var argv = p.argv || [];
|
|
602
601
|
var env = p.env || {};
|
|
@@ -1499,11 +1498,6 @@ var init_consola_DXBYu_KD = __esm(() => {
|
|
|
1499
1498
|
});
|
|
1500
1499
|
|
|
1501
1500
|
// ../../node_modules/.bun/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
1502
|
-
var exports_prompt = {};
|
|
1503
|
-
__export(exports_prompt, {
|
|
1504
|
-
prompt: () => prompt,
|
|
1505
|
-
kCancel: () => kCancel
|
|
1506
|
-
});
|
|
1507
1501
|
import g, { stdin, stdout } from "node:process";
|
|
1508
1502
|
import f from "node:readline";
|
|
1509
1503
|
import { WriteStream } from "node:tty";
|
|
@@ -1574,13 +1568,13 @@ function requirePicocolors() {
|
|
|
1574
1568
|
if (hasRequiredPicocolors)
|
|
1575
1569
|
return picocolors.exports;
|
|
1576
1570
|
hasRequiredPicocolors = 1;
|
|
1577
|
-
let p = process || {},
|
|
1578
|
-
let
|
|
1571
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
1572
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
1579
1573
|
let formatter = (open, close, replace = open) => (input) => {
|
|
1580
1574
|
let string = "" + input, index = string.indexOf(close, open.length);
|
|
1581
|
-
return ~index ? open +
|
|
1575
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
1582
1576
|
};
|
|
1583
|
-
let
|
|
1577
|
+
let replaceClose = (string, close, replace, index) => {
|
|
1584
1578
|
let result = "", cursor = 0;
|
|
1585
1579
|
do {
|
|
1586
1580
|
result += string.substring(cursor, index) + replace;
|
|
@@ -1589,7 +1583,7 @@ function requirePicocolors() {
|
|
|
1589
1583
|
} while (~index);
|
|
1590
1584
|
return result + string.substring(cursor);
|
|
1591
1585
|
};
|
|
1592
|
-
let
|
|
1586
|
+
let createColors = (enabled = isColorSupported) => {
|
|
1593
1587
|
let f2 = enabled ? formatter : () => String;
|
|
1594
1588
|
return {
|
|
1595
1589
|
isColorSupported: enabled,
|
|
@@ -1636,8 +1630,8 @@ function requirePicocolors() {
|
|
|
1636
1630
|
bgWhiteBright: f2("\x1B[107m", "\x1B[49m")
|
|
1637
1631
|
};
|
|
1638
1632
|
};
|
|
1639
|
-
picocolors.exports =
|
|
1640
|
-
picocolors.exports.createColors =
|
|
1633
|
+
picocolors.exports = createColors();
|
|
1634
|
+
picocolors.exports.createColors = createColors;
|
|
1641
1635
|
return picocolors.exports;
|
|
1642
1636
|
}
|
|
1643
1637
|
function J({ onlyFirst: t = false } = {}) {
|
|
@@ -1657,7 +1651,7 @@ function A$1(t, u = {}) {
|
|
|
1657
1651
|
return 0;
|
|
1658
1652
|
t = t.replace(FD(), " ");
|
|
1659
1653
|
const F = u.ambiguousIsNarrow ? 1 : 2;
|
|
1660
|
-
let
|
|
1654
|
+
let e = 0;
|
|
1661
1655
|
for (const s of t) {
|
|
1662
1656
|
const i = s.codePointAt(0);
|
|
1663
1657
|
if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879)
|
|
@@ -1665,56 +1659,56 @@ function A$1(t, u = {}) {
|
|
|
1665
1659
|
switch (DD.eastAsianWidth(s)) {
|
|
1666
1660
|
case "F":
|
|
1667
1661
|
case "W":
|
|
1668
|
-
|
|
1662
|
+
e += 2;
|
|
1669
1663
|
break;
|
|
1670
1664
|
case "A":
|
|
1671
|
-
|
|
1665
|
+
e += F;
|
|
1672
1666
|
break;
|
|
1673
1667
|
default:
|
|
1674
|
-
|
|
1668
|
+
e += 1;
|
|
1675
1669
|
}
|
|
1676
1670
|
}
|
|
1677
|
-
return
|
|
1671
|
+
return e;
|
|
1678
1672
|
}
|
|
1679
1673
|
function sD() {
|
|
1680
1674
|
const t = new Map;
|
|
1681
1675
|
for (const [u, F] of Object.entries(r)) {
|
|
1682
|
-
for (const [
|
|
1683
|
-
r[
|
|
1676
|
+
for (const [e, s] of Object.entries(F))
|
|
1677
|
+
r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
|
|
1684
1678
|
Object.defineProperty(r, u, { value: F, enumerable: false });
|
|
1685
1679
|
}
|
|
1686
|
-
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L$1(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F,
|
|
1680
|
+
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L$1(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
|
|
1687
1681
|
const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
|
|
1688
1682
|
if (!F)
|
|
1689
1683
|
return [0, 0, 0];
|
|
1690
|
-
let [
|
|
1691
|
-
|
|
1692
|
-
const s = Number.parseInt(
|
|
1684
|
+
let [e] = F;
|
|
1685
|
+
e.length === 3 && (e = [...e].map((i) => i + i).join(""));
|
|
1686
|
+
const s = Number.parseInt(e, 16);
|
|
1693
1687
|
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
1694
1688
|
}, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
|
|
1695
1689
|
if (u < 8)
|
|
1696
1690
|
return 30 + u;
|
|
1697
1691
|
if (u < 16)
|
|
1698
1692
|
return 90 + (u - 8);
|
|
1699
|
-
let F,
|
|
1693
|
+
let F, e, s;
|
|
1700
1694
|
if (u >= 232)
|
|
1701
|
-
F = ((u - 232) * 10 + 8) / 255,
|
|
1695
|
+
F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
|
|
1702
1696
|
else {
|
|
1703
1697
|
u -= 16;
|
|
1704
1698
|
const C = u % 36;
|
|
1705
|
-
F = Math.floor(u / 36) / 5,
|
|
1699
|
+
F = Math.floor(u / 36) / 5, e = Math.floor(C / 6) / 5, s = C % 6 / 5;
|
|
1706
1700
|
}
|
|
1707
|
-
const i = Math.max(F,
|
|
1701
|
+
const i = Math.max(F, e, s) * 2;
|
|
1708
1702
|
if (i === 0)
|
|
1709
1703
|
return 30;
|
|
1710
|
-
let D = 30 + (Math.round(s) << 2 | Math.round(
|
|
1704
|
+
let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
|
|
1711
1705
|
return i === 2 && (D += 60), D;
|
|
1712
|
-
}, enumerable: false }, rgbToAnsi: { value: (u, F,
|
|
1706
|
+
}, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
|
|
1713
1707
|
}
|
|
1714
1708
|
function G(t, u, F) {
|
|
1715
1709
|
return String(t).normalize().replace(/\r\n/g, `
|
|
1716
1710
|
`).split(`
|
|
1717
|
-
`).map((
|
|
1711
|
+
`).map((e) => oD(e, u, F)).join(`
|
|
1718
1712
|
`);
|
|
1719
1713
|
}
|
|
1720
1714
|
function k$1(t, u) {
|
|
@@ -1729,10 +1723,10 @@ function lD(t, u) {
|
|
|
1729
1723
|
if (t === u)
|
|
1730
1724
|
return;
|
|
1731
1725
|
const F = t.split(`
|
|
1732
|
-
`),
|
|
1726
|
+
`), e = u.split(`
|
|
1733
1727
|
`), s = [];
|
|
1734
|
-
for (let i = 0;i < Math.max(F.length,
|
|
1735
|
-
F[i] !==
|
|
1728
|
+
for (let i = 0;i < Math.max(F.length, e.length); i++)
|
|
1729
|
+
F[i] !== e[i] && s.push(i);
|
|
1736
1730
|
return s;
|
|
1737
1731
|
}
|
|
1738
1732
|
function d$1(t, u) {
|
|
@@ -1743,15 +1737,15 @@ function d$1(t, u) {
|
|
|
1743
1737
|
class x {
|
|
1744
1738
|
constructor(u, F = true) {
|
|
1745
1739
|
h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", new Map), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
|
|
1746
|
-
const { input:
|
|
1747
|
-
this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input =
|
|
1740
|
+
const { input: e = stdin, output: s = stdout, render: i, signal: D, ...C } = u;
|
|
1741
|
+
this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input = e, this.output = s;
|
|
1748
1742
|
}
|
|
1749
1743
|
unsubscribe() {
|
|
1750
1744
|
this._subscribers.clear();
|
|
1751
1745
|
}
|
|
1752
1746
|
setSubscriber(u, F) {
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1747
|
+
const e = this._subscribers.get(u) ?? [];
|
|
1748
|
+
e.push(F), this._subscribers.set(u, e);
|
|
1755
1749
|
}
|
|
1756
1750
|
on(u, F) {
|
|
1757
1751
|
this.setSubscriber(u, { cb: F });
|
|
@@ -1760,9 +1754,9 @@ class x {
|
|
|
1760
1754
|
this.setSubscriber(u, { cb: F, once: true });
|
|
1761
1755
|
}
|
|
1762
1756
|
emit(u, ...F) {
|
|
1763
|
-
const
|
|
1764
|
-
for (const i of
|
|
1765
|
-
i.cb(...F), i.once && s.push(() =>
|
|
1757
|
+
const e = this._subscribers.get(u) ?? [], s = [];
|
|
1758
|
+
for (const i of e)
|
|
1759
|
+
i.cb(...F), i.once && s.push(() => e.splice(e.indexOf(i), 1));
|
|
1766
1760
|
for (const i of s)
|
|
1767
1761
|
i();
|
|
1768
1762
|
}
|
|
@@ -1775,10 +1769,10 @@ class x {
|
|
|
1775
1769
|
this.state = "cancel", this.close();
|
|
1776
1770
|
}, { once: true });
|
|
1777
1771
|
}
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1772
|
+
const e = new WriteStream(0);
|
|
1773
|
+
e._write = (s, i, D) => {
|
|
1780
1774
|
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
|
|
1781
|
-
}, this.input.pipe(
|
|
1775
|
+
}, this.input.pipe(e), this.rl = f.createInterface({ input: this.input, output: e, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
1782
1776
|
this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u(this.value);
|
|
1783
1777
|
}), this.once("cancel", () => {
|
|
1784
1778
|
this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u(S);
|
|
@@ -1788,8 +1782,8 @@ class x {
|
|
|
1788
1782
|
onKeypress(u, F) {
|
|
1789
1783
|
if (this.state === "error" && (this.state = "active"), F?.name && (!this._track && c.aliases.has(F.name) && this.emit("cursor", c.aliases.get(F.name)), c.actions.has(F.name) && this.emit("cursor", F.name)), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u === "\t" && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
|
|
1790
1784
|
if (this.opts.validate) {
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1785
|
+
const e = this.opts.validate(this.value);
|
|
1786
|
+
e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.value));
|
|
1793
1787
|
}
|
|
1794
1788
|
this.state !== "error" && (this.state = "submit");
|
|
1795
1789
|
}
|
|
@@ -1812,18 +1806,18 @@ class x {
|
|
|
1812
1806
|
else {
|
|
1813
1807
|
const F = lD(this._prevFrame, u);
|
|
1814
1808
|
if (this.restoreCursor(), F && F?.length === 1) {
|
|
1815
|
-
const
|
|
1816
|
-
this.output.write(srcExports.cursor.move(0,
|
|
1809
|
+
const e = F[0];
|
|
1810
|
+
this.output.write(srcExports.cursor.move(0, e)), this.output.write(srcExports.erase.lines(1));
|
|
1817
1811
|
const s = u.split(`
|
|
1818
1812
|
`);
|
|
1819
|
-
this.output.write(s[
|
|
1813
|
+
this.output.write(s[e]), this._prevFrame = u, this.output.write(srcExports.cursor.move(0, s.length - e - 1));
|
|
1820
1814
|
return;
|
|
1821
1815
|
}
|
|
1822
1816
|
if (F && F?.length > 1) {
|
|
1823
|
-
const
|
|
1824
|
-
this.output.write(srcExports.cursor.move(0,
|
|
1817
|
+
const e = F[0];
|
|
1818
|
+
this.output.write(srcExports.cursor.move(0, e)), this.output.write(srcExports.erase.down());
|
|
1825
1819
|
const s = u.split(`
|
|
1826
|
-
`).slice(
|
|
1820
|
+
`).slice(e);
|
|
1827
1821
|
this.output.write(s.join(`
|
|
1828
1822
|
`)), this._prevFrame = u;
|
|
1829
1823
|
return;
|
|
@@ -1883,14 +1877,14 @@ async function prompt(message, opts = {}) {
|
|
|
1883
1877
|
if (opts.type === "select") {
|
|
1884
1878
|
return await ve({
|
|
1885
1879
|
message,
|
|
1886
|
-
options: opts.options.map((
|
|
1880
|
+
options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o),
|
|
1887
1881
|
initialValue: opts.initial
|
|
1888
1882
|
}).then(handleCancel);
|
|
1889
1883
|
}
|
|
1890
1884
|
if (opts.type === "multiselect") {
|
|
1891
1885
|
return await fe({
|
|
1892
1886
|
message,
|
|
1893
|
-
options: opts.options.map((
|
|
1887
|
+
options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o),
|
|
1894
1888
|
required: opts.required,
|
|
1895
1889
|
initialValues: opts.initial
|
|
1896
1890
|
}).then(handleCancel);
|
|
@@ -1899,16 +1893,16 @@ async function prompt(message, opts = {}) {
|
|
|
1899
1893
|
}
|
|
1900
1894
|
var src, hasRequiredSrc, srcExports, picocolors, hasRequiredPicocolors, picocolorsExports, e, Q, P$1, X, DD, uD = function() {
|
|
1901
1895
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
1902
|
-
}, FD, m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, I = (t = 0) => (u, F,
|
|
1903
|
-
const
|
|
1896
|
+
}, FD, m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`, r, tD, eD, iD, v, CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
|
|
1897
|
+
const e = [...u];
|
|
1904
1898
|
let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
|
|
1905
|
-
for (const [C, o] of
|
|
1899
|
+
for (const [C, o] of e.entries()) {
|
|
1906
1900
|
const E = A$1(o);
|
|
1907
|
-
if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i =
|
|
1901
|
+
if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i = e.slice(C + 1).join("").startsWith(y)), s) {
|
|
1908
1902
|
i ? o === w$1 && (s = false, i = false) : o === R && (s = false);
|
|
1909
1903
|
continue;
|
|
1910
1904
|
}
|
|
1911
|
-
D += E, D === F && C <
|
|
1905
|
+
D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
|
|
1912
1906
|
}
|
|
1913
1907
|
!D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
1914
1908
|
}, nD = (t) => {
|
|
@@ -1920,7 +1914,7 @@ var src, hasRequiredSrc, srcExports, picocolors, hasRequiredPicocolors, picocolo
|
|
|
1920
1914
|
}, oD = (t, u, F = {}) => {
|
|
1921
1915
|
if (F.trim !== false && t.trim() === "")
|
|
1922
1916
|
return "";
|
|
1923
|
-
let
|
|
1917
|
+
let e = "", s, i;
|
|
1924
1918
|
const D = ED(t);
|
|
1925
1919
|
let C = [""];
|
|
1926
1920
|
for (const [E, a] of t.split(" ").entries()) {
|
|
@@ -1948,7 +1942,7 @@ var src, hasRequiredSrc, srcExports, picocolors, hasRequiredPicocolors, picocolo
|
|
|
1948
1942
|
const o = [...C.join(`
|
|
1949
1943
|
`)];
|
|
1950
1944
|
for (const [E, a] of o.entries()) {
|
|
1951
|
-
if (
|
|
1945
|
+
if (e += a, v.has(a)) {
|
|
1952
1946
|
const { groups: B } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o.slice(E).join("")) || { groups: {} };
|
|
1953
1947
|
if (B.code !== undefined) {
|
|
1954
1948
|
const p = Number.parseFloat(B.code);
|
|
@@ -1958,10 +1952,10 @@ var src, hasRequiredSrc, srcExports, picocolors, hasRequiredPicocolors, picocolo
|
|
|
1958
1952
|
}
|
|
1959
1953
|
const n = iD.codes.get(Number(s));
|
|
1960
1954
|
o[E + 1] === `
|
|
1961
|
-
` ? (i && (
|
|
1962
|
-
` && (s && n && (
|
|
1955
|
+
` ? (i && (e += z("")), s && n && (e += V$1(n))) : a === `
|
|
1956
|
+
` && (s && n && (e += V$1(s)), i && (e += z(i)));
|
|
1963
1957
|
}
|
|
1964
|
-
return
|
|
1958
|
+
return e;
|
|
1965
1959
|
}, aD, c, S, AD, pD = (t, u, F) => (u in t) ? AD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F), fD, bD, mD = (t, u, F) => (u in t) ? bD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F, Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F), wD, SD, $D = (t, u, F) => (u in t) ? SD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F, q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F), jD, PD, V, u = (t, n) => V ? t : n, le, L, W, C, o, d, k, P, A, T, F, w = (t) => {
|
|
1966
1960
|
switch (t) {
|
|
1967
1961
|
case "initial":
|
|
@@ -1975,22 +1969,22 @@ var src, hasRequiredSrc, srcExports, picocolors, hasRequiredPicocolors, picocolo
|
|
|
1975
1969
|
return e.green(C);
|
|
1976
1970
|
}
|
|
1977
1971
|
}, B = (t) => {
|
|
1978
|
-
const { cursor: n, options: s, style:
|
|
1972
|
+
const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
|
|
1979
1973
|
let l = 0;
|
|
1980
|
-
n >= l +
|
|
1981
|
-
const $ =
|
|
1982
|
-
return s.slice(l, l +
|
|
1983
|
-
const j =
|
|
1984
|
-
return j || E ? e.dim("...") :
|
|
1974
|
+
n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
|
|
1975
|
+
const $ = c < s.length && l > 0, p = c < s.length && l + c < s.length;
|
|
1976
|
+
return s.slice(l, l + c).map((M, v, x) => {
|
|
1977
|
+
const j = v === 0 && $, E = v === x.length - 1 && p;
|
|
1978
|
+
return j || E ? e.dim("...") : r(M, v + l === n);
|
|
1985
1979
|
});
|
|
1986
1980
|
}, he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
|
|
1987
1981
|
const n = `${e.gray(o)}
|
|
1988
1982
|
${w(this.state)} ${t.message}
|
|
1989
|
-
`, s = t.placeholder ? e.inverse(t.placeholder[0]) + e.dim(t.placeholder.slice(1)) : e.inverse(e.hidden("_")),
|
|
1983
|
+
`, s = t.placeholder ? e.inverse(t.placeholder[0]) + e.dim(t.placeholder.slice(1)) : e.inverse(e.hidden("_")), r = this.value ? this.valueWithCursor : s;
|
|
1990
1984
|
switch (this.state) {
|
|
1991
1985
|
case "error":
|
|
1992
1986
|
return `${n.trim()}
|
|
1993
|
-
${e.yellow(o)} ${
|
|
1987
|
+
${e.yellow(o)} ${r}
|
|
1994
1988
|
${e.yellow(d)} ${e.yellow(this.error)}
|
|
1995
1989
|
`;
|
|
1996
1990
|
case "submit":
|
|
@@ -1999,32 +1993,32 @@ ${e.yellow(d)} ${e.yellow(this.error)}
|
|
|
1999
1993
|
return `${n}${e.gray(o)} ${e.strikethrough(e.dim(this.value ?? ""))}${this.value?.trim() ? `
|
|
2000
1994
|
${e.gray(o)}` : ""}`;
|
|
2001
1995
|
default:
|
|
2002
|
-
return `${n}${e.cyan(o)} ${
|
|
1996
|
+
return `${n}${e.cyan(o)} ${r}
|
|
2003
1997
|
${e.cyan(d)}
|
|
2004
1998
|
`;
|
|
2005
1999
|
}
|
|
2006
2000
|
} }).prompt(), ye = (t) => {
|
|
2007
2001
|
const n = t.active ?? "Yes", s = t.inactive ?? "No";
|
|
2008
2002
|
return new fD({ active: n, inactive: s, initialValue: t.initialValue ?? true, render() {
|
|
2009
|
-
const
|
|
2003
|
+
const r = `${e.gray(o)}
|
|
2010
2004
|
${w(this.state)} ${t.message}
|
|
2011
2005
|
`, i = this.value ? n : s;
|
|
2012
2006
|
switch (this.state) {
|
|
2013
2007
|
case "submit":
|
|
2014
|
-
return `${
|
|
2008
|
+
return `${r}${e.gray(o)} ${e.dim(i)}`;
|
|
2015
2009
|
case "cancel":
|
|
2016
|
-
return `${
|
|
2010
|
+
return `${r}${e.gray(o)} ${e.strikethrough(e.dim(i))}
|
|
2017
2011
|
${e.gray(o)}`;
|
|
2018
2012
|
default:
|
|
2019
|
-
return `${
|
|
2013
|
+
return `${r}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
|
|
2020
2014
|
${e.cyan(d)}
|
|
2021
2015
|
`;
|
|
2022
2016
|
}
|
|
2023
2017
|
} }).prompt();
|
|
2024
2018
|
}, ve = (t) => {
|
|
2025
|
-
const n = (s,
|
|
2019
|
+
const n = (s, r) => {
|
|
2026
2020
|
const i = s.label ?? String(s.value);
|
|
2027
|
-
switch (
|
|
2021
|
+
switch (r) {
|
|
2028
2022
|
case "selected":
|
|
2029
2023
|
return `${e.dim(i)}`;
|
|
2030
2024
|
case "active":
|
|
@@ -2046,16 +2040,16 @@ ${w(this.state)} ${t.message}
|
|
|
2046
2040
|
return `${s}${e.gray(o)} ${n(this.options[this.cursor], "cancelled")}
|
|
2047
2041
|
${e.gray(o)}`;
|
|
2048
2042
|
default:
|
|
2049
|
-
return `${s}${e.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (
|
|
2043
|
+
return `${s}${e.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r, i) => n(r, i ? "active" : "inactive") }).join(`
|
|
2050
2044
|
${e.cyan(o)} `)}
|
|
2051
2045
|
${e.cyan(d)}
|
|
2052
2046
|
`;
|
|
2053
2047
|
}
|
|
2054
2048
|
} }).prompt();
|
|
2055
2049
|
}, fe = (t) => {
|
|
2056
|
-
const n = (s,
|
|
2050
|
+
const n = (s, r) => {
|
|
2057
2051
|
const i = s.label ?? String(s.value);
|
|
2058
|
-
return
|
|
2052
|
+
return r === "active" ? `${e.cyan(A)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "selected" ? `${e.green(T)} ${e.dim(i)}` : r === "cancelled" ? `${e.strikethrough(e.dim(i))}` : r === "active-selected" ? `${e.green(T)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "submitted" ? `${e.dim(i)}` : `${e.dim(F)} ${e.dim(i)}`;
|
|
2059
2053
|
};
|
|
2060
2054
|
return new wD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(s) {
|
|
2061
2055
|
if (this.required && s.length === 0)
|
|
@@ -2064,9 +2058,9 @@ ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e
|
|
|
2064
2058
|
}, render() {
|
|
2065
2059
|
const s = `${e.gray(o)}
|
|
2066
2060
|
${w(this.state)} ${t.message}
|
|
2067
|
-
`,
|
|
2068
|
-
const
|
|
2069
|
-
return a &&
|
|
2061
|
+
`, r = (i, a) => {
|
|
2062
|
+
const c = this.value.includes(i.value);
|
|
2063
|
+
return a && c ? n(i, "active-selected") : c ? n(i, "selected") : n(i, a ? "active" : "inactive");
|
|
2070
2064
|
};
|
|
2071
2065
|
switch (this.state) {
|
|
2072
2066
|
case "submit":
|
|
@@ -2078,15 +2072,15 @@ ${e.gray(o)}` : ""}`;
|
|
|
2078
2072
|
}
|
|
2079
2073
|
case "error": {
|
|
2080
2074
|
const i = this.error.split(`
|
|
2081
|
-
`).map((a,
|
|
2075
|
+
`).map((a, c) => c === 0 ? `${e.yellow(d)} ${e.yellow(a)}` : ` ${a}`).join(`
|
|
2082
2076
|
`);
|
|
2083
|
-
return `${s + e.yellow(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style:
|
|
2077
|
+
return `${s + e.yellow(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r }).join(`
|
|
2084
2078
|
${e.yellow(o)} `)}
|
|
2085
2079
|
${i}
|
|
2086
2080
|
`;
|
|
2087
2081
|
}
|
|
2088
2082
|
default:
|
|
2089
|
-
return `${s}${e.cyan(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style:
|
|
2083
|
+
return `${s}${e.cyan(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r }).join(`
|
|
2090
2084
|
${e.cyan(o)} `)}
|
|
2091
2085
|
${e.cyan(d)}
|
|
2092
2086
|
`;
|
|
@@ -2102,23 +2096,23 @@ var init_prompt = __esm(() => {
|
|
|
2102
2096
|
P$1 = { exports: {} };
|
|
2103
2097
|
(function(t) {
|
|
2104
2098
|
var u = {};
|
|
2105
|
-
t.exports = u, u.eastAsianWidth = function(
|
|
2106
|
-
var s =
|
|
2099
|
+
t.exports = u, u.eastAsianWidth = function(e) {
|
|
2100
|
+
var s = e.charCodeAt(0), i = e.length == 2 ? e.charCodeAt(1) : 0, D = s;
|
|
2107
2101
|
return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
|
|
2108
|
-
}, u.characterLength = function(
|
|
2109
|
-
var s = this.eastAsianWidth(
|
|
2102
|
+
}, u.characterLength = function(e) {
|
|
2103
|
+
var s = this.eastAsianWidth(e);
|
|
2110
2104
|
return s == "F" || s == "W" || s == "A" ? 2 : 1;
|
|
2111
2105
|
};
|
|
2112
|
-
function F(
|
|
2113
|
-
return
|
|
2106
|
+
function F(e) {
|
|
2107
|
+
return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
2114
2108
|
}
|
|
2115
|
-
u.length = function(
|
|
2116
|
-
for (var s = F(
|
|
2109
|
+
u.length = function(e) {
|
|
2110
|
+
for (var s = F(e), i = 0, D = 0;D < s.length; D++)
|
|
2117
2111
|
i = i + this.characterLength(s[D]);
|
|
2118
2112
|
return i;
|
|
2119
|
-
}, u.slice = function(
|
|
2120
|
-
textLen = u.length(
|
|
2121
|
-
for (var D = "", C = 0, o = F(
|
|
2113
|
+
}, u.slice = function(e, s, i) {
|
|
2114
|
+
textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
|
|
2115
|
+
for (var D = "", C = 0, o = F(e), E = 0;E < o.length; E++) {
|
|
2122
2116
|
var a = o[E], n = u.length(a);
|
|
2123
2117
|
if (C >= s - (n == 2 ? 1 : 0))
|
|
2124
2118
|
if (C + n <= i)
|
|
@@ -2258,20 +2252,20 @@ var init_prompt = __esm(() => {
|
|
|
2258
2252
|
import g$1 from "node:process";
|
|
2259
2253
|
function b() {
|
|
2260
2254
|
if (globalThis.process?.env)
|
|
2261
|
-
for (const
|
|
2262
|
-
const s =
|
|
2255
|
+
for (const e of f2) {
|
|
2256
|
+
const s = e[1] || e[0];
|
|
2263
2257
|
if (globalThis.process?.env[s])
|
|
2264
|
-
return { name:
|
|
2258
|
+
return { name: e[0].toLowerCase(), ...e[2] };
|
|
2265
2259
|
}
|
|
2266
2260
|
return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
|
|
2267
2261
|
}
|
|
2268
|
-
function n(
|
|
2269
|
-
return
|
|
2262
|
+
function n(e) {
|
|
2263
|
+
return e ? e !== "false" : false;
|
|
2270
2264
|
}
|
|
2271
2265
|
function G2() {
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2274
|
-
return { name:
|
|
2266
|
+
const e = F2.find((s) => s[0]);
|
|
2267
|
+
if (e)
|
|
2268
|
+
return { name: e[1] };
|
|
2275
2269
|
}
|
|
2276
2270
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
2277
2271
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
@@ -2287,14 +2281,14 @@ function stripAnsi2(string) {
|
|
|
2287
2281
|
}
|
|
2288
2282
|
return string.replace(regex, "");
|
|
2289
2283
|
}
|
|
2290
|
-
function isAmbiguous(
|
|
2291
|
-
return
|
|
2284
|
+
function isAmbiguous(x) {
|
|
2285
|
+
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
2292
2286
|
}
|
|
2293
|
-
function isFullWidth(
|
|
2294
|
-
return
|
|
2287
|
+
function isFullWidth(x) {
|
|
2288
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
2295
2289
|
}
|
|
2296
|
-
function isWide(
|
|
2297
|
-
return
|
|
2290
|
+
function isWide(x) {
|
|
2291
|
+
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
2298
2292
|
}
|
|
2299
2293
|
function validate(codePoint) {
|
|
2300
2294
|
if (!Number.isSafeInteger(codePoint)) {
|
|
@@ -2353,12 +2347,12 @@ function stringWidth$1(string, options = {}) {
|
|
|
2353
2347
|
return width;
|
|
2354
2348
|
}
|
|
2355
2349
|
function isUnicodeSupported() {
|
|
2356
|
-
const { env
|
|
2357
|
-
const { TERM, TERM_PROGRAM } =
|
|
2350
|
+
const { env } = g$1;
|
|
2351
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
2358
2352
|
if (g$1.platform !== "win32") {
|
|
2359
2353
|
return TERM !== "linux";
|
|
2360
2354
|
}
|
|
2361
|
-
return Boolean(
|
|
2355
|
+
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2362
2356
|
}
|
|
2363
2357
|
function stringWidth(str) {
|
|
2364
2358
|
const hasICU = typeof Intl === "object";
|
|
@@ -2368,7 +2362,7 @@ function stringWidth(str) {
|
|
|
2368
2362
|
return stringWidth$1(str);
|
|
2369
2363
|
}
|
|
2370
2364
|
function characterFormat(str) {
|
|
2371
|
-
return str.replace(/`([^`]+)`/gm, (
|
|
2365
|
+
return str.replace(/`([^`]+)`/gm, (_, m) => colors.cyan(m)).replace(/\s+_([^_]+)_\s+/gm, (_, m) => ` ${colors.underline(m)} `);
|
|
2372
2366
|
}
|
|
2373
2367
|
function getColor2(color = "white") {
|
|
2374
2368
|
return colors[color] || colors.white;
|
|
@@ -2386,7 +2380,7 @@ function createConsola2(options = {}) {
|
|
|
2386
2380
|
defaults: { level },
|
|
2387
2381
|
stdout: process.stdout,
|
|
2388
2382
|
stderr: process.stderr,
|
|
2389
|
-
prompt: (...args) => Promise.resolve().then(() => (init_prompt(),
|
|
2383
|
+
prompt: (...args) => Promise.resolve().then(() => (init_prompt(), {})).then((m) => prompt(...args)),
|
|
2390
2384
|
reporters: options.reporters || [
|
|
2391
2385
|
options.fancy ?? !(T2 || R2) ? new FancyReporter : new BasicReporter
|
|
2392
2386
|
],
|
|
@@ -2403,31 +2397,31 @@ function _getDefaultLogLevel() {
|
|
|
2403
2397
|
}
|
|
2404
2398
|
return LogLevels.info;
|
|
2405
2399
|
}
|
|
2406
|
-
var r2, i = (
|
|
2400
|
+
var r2, i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r2 : globalThis), o2, t, f2, l, I2, T2, a, g2, R2, A2, C2, y2, _2, c2, O2, D, L2, S2, u2, N2, F2, P2, regex, emojiRegex = () => {
|
|
2407
2401
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2408
|
-
}, segmenter, defaultIgnorableCodePointRegex, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode, s = (
|
|
2402
|
+
}, segmenter, defaultIgnorableCodePointRegex, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode, s = (c, fallback) => unicode ? c : fallback, TYPE_ICONS, FancyReporter, consola;
|
|
2409
2403
|
var init_dist2 = __esm(() => {
|
|
2410
2404
|
init_core();
|
|
2411
2405
|
init_core();
|
|
2412
2406
|
init_consola_DRwqZj3T();
|
|
2413
2407
|
init_consola_DXBYu_KD();
|
|
2414
2408
|
r2 = Object.create(null);
|
|
2415
|
-
o2 = new Proxy(r2, { get(
|
|
2409
|
+
o2 = new Proxy(r2, { get(e, s) {
|
|
2416
2410
|
return i()[s] ?? r2[s];
|
|
2417
|
-
}, has(
|
|
2411
|
+
}, has(e, s) {
|
|
2418
2412
|
const E = i();
|
|
2419
2413
|
return s in E || s in r2;
|
|
2420
|
-
}, set(
|
|
2421
|
-
const
|
|
2422
|
-
return
|
|
2423
|
-
}, deleteProperty(
|
|
2414
|
+
}, set(e, s, E) {
|
|
2415
|
+
const B = i(true);
|
|
2416
|
+
return B[s] = E, true;
|
|
2417
|
+
}, deleteProperty(e, s) {
|
|
2424
2418
|
if (!s)
|
|
2425
2419
|
return false;
|
|
2426
2420
|
const E = i(true);
|
|
2427
2421
|
return delete E[s], true;
|
|
2428
2422
|
}, ownKeys() {
|
|
2429
|
-
const
|
|
2430
|
-
return Object.keys(
|
|
2423
|
+
const e = i(true);
|
|
2424
|
+
return Object.keys(e);
|
|
2431
2425
|
} });
|
|
2432
2426
|
t = typeof process < "u" && process.env && "development" || "";
|
|
2433
2427
|
f2 = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
|
|
@@ -2445,11 +2439,11 @@ var init_dist2 = __esm(() => {
|
|
|
2445
2439
|
Number(C2?.split(".")[0]);
|
|
2446
2440
|
y2 = globalThis.process || Object.create(null);
|
|
2447
2441
|
_2 = { versions: {} };
|
|
2448
|
-
new Proxy(y2, { get(
|
|
2442
|
+
new Proxy(y2, { get(e, s) {
|
|
2449
2443
|
if (s === "env")
|
|
2450
2444
|
return o2;
|
|
2451
|
-
if (s in
|
|
2452
|
-
return
|
|
2445
|
+
if (s in e)
|
|
2446
|
+
return e[s];
|
|
2453
2447
|
if (s in _2)
|
|
2454
2448
|
return _2[s];
|
|
2455
2449
|
} });
|
|
@@ -2495,7 +2489,7 @@ var init_dist2 = __esm(() => {
|
|
|
2495
2489
|
formatStack(stack, message, opts) {
|
|
2496
2490
|
const indent = " ".repeat((opts?.errorLevel || 0) + 1);
|
|
2497
2491
|
return `
|
|
2498
|
-
${indent}` + parseStack(stack, message).map((line) => " " + line.replace(/^at +/, (
|
|
2492
|
+
${indent}` + parseStack(stack, message).map((line) => " " + line.replace(/^at +/, (m) => colors.gray(m)).replace(/\((.+)\)/, (_, m) => `(${colors.cyan(m)})`)).join(`
|
|
2499
2493
|
${indent}`);
|
|
2500
2494
|
}
|
|
2501
2495
|
formatType(logObj, isBadge, opts) {
|
|
@@ -2559,7 +2553,7 @@ function defaultGenerateNonce() {
|
|
|
2559
2553
|
}
|
|
2560
2554
|
function performLogin(deps) {
|
|
2561
2555
|
return new Promise((resolve) => {
|
|
2562
|
-
const { openBrowser
|
|
2556
|
+
const { openBrowser, onSaveToken, apiUrl, timeoutMs, log, tokenParam = "api_key", loginPath = "/api/auth/cli", generateNonce = defaultGenerateNonce, accentColor = "#c9a227", extraParams = {} } = deps;
|
|
2563
2557
|
const expectedState = generateNonce();
|
|
2564
2558
|
const server = http.createServer((req, res) => {
|
|
2565
2559
|
const url = new URL(req.url ?? "/", "http://localhost");
|
|
@@ -2636,7 +2630,7 @@ function performLogin(deps) {
|
|
|
2636
2630
|
loginUrlObj.searchParams.set(key, value);
|
|
2637
2631
|
}
|
|
2638
2632
|
const loginUrl = loginUrlObj.toString();
|
|
2639
|
-
|
|
2633
|
+
openBrowser(loginUrl).catch(() => {
|
|
2640
2634
|
if (log) {
|
|
2641
2635
|
log(`Could not open browser. Open this URL manually:
|
|
2642
2636
|
${loginUrl}`);
|
|
@@ -3099,7 +3093,7 @@ var init_connect = () => {};
|
|
|
3099
3093
|
var init_settings = () => {};
|
|
3100
3094
|
|
|
3101
3095
|
// ../shared/dist/version.js
|
|
3102
|
-
var BAT_VERSION = "3.
|
|
3096
|
+
var BAT_VERSION = "3.1.2";
|
|
3103
3097
|
|
|
3104
3098
|
// ../shared/dist/workstations.js
|
|
3105
3099
|
function fail(error) {
|
|
@@ -3812,15 +3806,15 @@ class HttpClient {
|
|
|
3812
3806
|
controller.abort();
|
|
3813
3807
|
}, this.timeoutMs);
|
|
3814
3808
|
try {
|
|
3815
|
-
const
|
|
3809
|
+
const init = {
|
|
3816
3810
|
method,
|
|
3817
3811
|
headers,
|
|
3818
3812
|
signal: controller.signal
|
|
3819
3813
|
};
|
|
3820
3814
|
if (body !== undefined) {
|
|
3821
|
-
|
|
3815
|
+
init.body = JSON.stringify(body);
|
|
3822
3816
|
}
|
|
3823
|
-
const res = await fetch(url,
|
|
3817
|
+
const res = await fetch(url, init);
|
|
3824
3818
|
if (!res.ok) {
|
|
3825
3819
|
let message = `HTTP ${res.status}`;
|
|
3826
3820
|
try {
|
|
@@ -4029,7 +4023,7 @@ function isRetryable(err) {
|
|
|
4029
4023
|
}
|
|
4030
4024
|
async function uploadReport(workerUrl, token, report, deps = {}) {
|
|
4031
4025
|
const attempts = deps.attempts ?? UPLOAD_ATTEMPTS;
|
|
4032
|
-
const sleep = deps.sleep ?? ((ms) => new Promise((
|
|
4026
|
+
const sleep = deps.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
4033
4027
|
const body = JSON.stringify(report);
|
|
4034
4028
|
const client = new HttpClient(workerUrl, token, deps.timeoutMs ?? REQUEST_TIMEOUT_MS, deps.signal);
|
|
4035
4029
|
let lastError;
|
|
@@ -4267,33 +4261,33 @@ function buildPlan(context, backend) {
|
|
|
4267
4261
|
return { backend, files: [], register: [], unregister: [], finalize: [] };
|
|
4268
4262
|
}
|
|
4269
4263
|
}
|
|
4270
|
-
function resolveBackend(requested,
|
|
4264
|
+
function resolveBackend(requested, platform, hasSystemd) {
|
|
4271
4265
|
if (requested !== undefined) {
|
|
4272
4266
|
if (!SCHEDULER_BACKENDS.includes(requested)) {
|
|
4273
4267
|
throw new Error(`unknown --backend "${requested}" — use one of: ${SCHEDULER_BACKENDS.join(", ")}`);
|
|
4274
4268
|
}
|
|
4275
4269
|
const backend = requested;
|
|
4276
|
-
if (backend === "launchd" &&
|
|
4270
|
+
if (backend === "launchd" && platform !== "darwin") {
|
|
4277
4271
|
throw new Error("--backend launchd is only available on macOS");
|
|
4278
4272
|
}
|
|
4279
|
-
if (backend === "windows" &&
|
|
4273
|
+
if (backend === "windows" && platform !== "win32") {
|
|
4280
4274
|
throw new Error("--backend windows is only available on Windows");
|
|
4281
4275
|
}
|
|
4282
|
-
if (backend === "systemd" &&
|
|
4276
|
+
if (backend === "systemd" && platform !== "linux") {
|
|
4283
4277
|
throw new Error("--backend systemd is only available on Linux");
|
|
4284
4278
|
}
|
|
4285
|
-
if (backend === "cron" &&
|
|
4279
|
+
if (backend === "cron" && platform === "win32") {
|
|
4286
4280
|
throw new Error("--backend cron is not available on Windows");
|
|
4287
4281
|
}
|
|
4288
4282
|
return backend;
|
|
4289
4283
|
}
|
|
4290
|
-
if (
|
|
4284
|
+
if (platform === "darwin") {
|
|
4291
4285
|
return "launchd";
|
|
4292
4286
|
}
|
|
4293
|
-
if (
|
|
4287
|
+
if (platform === "win32") {
|
|
4294
4288
|
return "windows";
|
|
4295
4289
|
}
|
|
4296
|
-
if (
|
|
4290
|
+
if (platform === "linux") {
|
|
4297
4291
|
if (!hasSystemd) {
|
|
4298
4292
|
throw new Error("systemd --user was not found; pass --backend cron to schedule with crontab");
|
|
4299
4293
|
}
|
|
@@ -4346,14 +4340,14 @@ function getWorkstationPaths(home = homedir4()) {
|
|
|
4346
4340
|
logPath: join5(dir, "probe.log")
|
|
4347
4341
|
};
|
|
4348
4342
|
}
|
|
4349
|
-
function ensureDirectory(paths,
|
|
4343
|
+
function ensureDirectory(paths, platform) {
|
|
4350
4344
|
mkdirSync3(paths.dir, { recursive: true, mode: 448 });
|
|
4351
|
-
if (
|
|
4345
|
+
if (platform !== "win32") {
|
|
4352
4346
|
chmodSync(paths.dir, 448);
|
|
4353
4347
|
}
|
|
4354
4348
|
}
|
|
4355
|
-
function enforcePrivateFile(path,
|
|
4356
|
-
if (
|
|
4349
|
+
function enforcePrivateFile(path, platform = process.platform) {
|
|
4350
|
+
if (platform === "win32") {
|
|
4357
4351
|
return;
|
|
4358
4352
|
}
|
|
4359
4353
|
chmodSync(path, 384);
|
|
@@ -4400,19 +4394,19 @@ async function ensureInstallationId(paths, deps = {}) {
|
|
|
4400
4394
|
if (existing) {
|
|
4401
4395
|
return existing;
|
|
4402
4396
|
}
|
|
4403
|
-
const
|
|
4404
|
-
ensureDirectory(paths,
|
|
4397
|
+
const platform = deps.platform ?? process.platform;
|
|
4398
|
+
ensureDirectory(paths, platform);
|
|
4405
4399
|
if (deps.acl) {
|
|
4406
4400
|
await deps.acl(paths.dir);
|
|
4407
4401
|
}
|
|
4408
4402
|
const id = randomUUID3();
|
|
4409
4403
|
writeAtomic(paths.installationPath, `${JSON.stringify({ installation_id: id }, null, 2)}
|
|
4410
4404
|
`);
|
|
4411
|
-
enforcePrivateFile(paths.installationPath,
|
|
4405
|
+
enforcePrivateFile(paths.installationPath, platform);
|
|
4412
4406
|
return id;
|
|
4413
4407
|
}
|
|
4414
|
-
function isLoopbackHost(
|
|
4415
|
-
return ["127.0.0.1", "localhost", "[::1]", "::1"].includes(
|
|
4408
|
+
function isLoopbackHost(hostname) {
|
|
4409
|
+
return ["127.0.0.1", "localhost", "[::1]", "::1"].includes(hostname);
|
|
4416
4410
|
}
|
|
4417
4411
|
function isAcceptableWorkerUrl(input) {
|
|
4418
4412
|
let url;
|
|
@@ -4461,14 +4455,14 @@ function readCredential(paths, deps = {}) {
|
|
|
4461
4455
|
return { workstation_id: workstationId, worker_url: workerUrl, token };
|
|
4462
4456
|
}
|
|
4463
4457
|
async function writeCredential(paths, credential, deps = {}) {
|
|
4464
|
-
const
|
|
4465
|
-
ensureDirectory(paths,
|
|
4458
|
+
const platform = deps.platform ?? process.platform;
|
|
4459
|
+
ensureDirectory(paths, platform);
|
|
4466
4460
|
if (deps.acl) {
|
|
4467
4461
|
await deps.acl(paths.dir);
|
|
4468
4462
|
}
|
|
4469
4463
|
writeAtomic(paths.credentialPath, `${JSON.stringify(credential, null, 2)}
|
|
4470
4464
|
`);
|
|
4471
|
-
enforcePrivateFile(paths.credentialPath,
|
|
4465
|
+
enforcePrivateFile(paths.credentialPath, platform);
|
|
4472
4466
|
}
|
|
4473
4467
|
function deleteCredential(paths) {
|
|
4474
4468
|
if (!existsSync6(paths.credentialPath)) {
|
|
@@ -4624,7 +4618,7 @@ var MAX_CAPTURE_BYTES, runCommand2 = (command, args, options) => new Promise((re
|
|
|
4624
4618
|
});
|
|
4625
4619
|
return;
|
|
4626
4620
|
}
|
|
4627
|
-
let
|
|
4621
|
+
let stdout = "";
|
|
4628
4622
|
let stderr = "";
|
|
4629
4623
|
let settled = false;
|
|
4630
4624
|
let timedOut = false;
|
|
@@ -4666,7 +4660,7 @@ var MAX_CAPTURE_BYTES, runCommand2 = (command, args, options) => new Promise((re
|
|
|
4666
4660
|
finish({
|
|
4667
4661
|
code: null,
|
|
4668
4662
|
signal: null,
|
|
4669
|
-
stdout
|
|
4663
|
+
stdout,
|
|
4670
4664
|
stderr,
|
|
4671
4665
|
timedOut,
|
|
4672
4666
|
aborted,
|
|
@@ -4674,8 +4668,8 @@ var MAX_CAPTURE_BYTES, runCommand2 = (command, args, options) => new Promise((re
|
|
|
4674
4668
|
});
|
|
4675
4669
|
});
|
|
4676
4670
|
child.stdout?.on("data", (chunk) => {
|
|
4677
|
-
if (
|
|
4678
|
-
|
|
4671
|
+
if (stdout.length < MAX_CAPTURE_BYTES) {
|
|
4672
|
+
stdout += chunk.toString("utf-8");
|
|
4679
4673
|
}
|
|
4680
4674
|
});
|
|
4681
4675
|
child.stderr?.on("data", (chunk) => {
|
|
@@ -4684,7 +4678,7 @@ var MAX_CAPTURE_BYTES, runCommand2 = (command, args, options) => new Promise((re
|
|
|
4684
4678
|
}
|
|
4685
4679
|
});
|
|
4686
4680
|
child.on("close", (code, signal) => {
|
|
4687
|
-
finish({ code, signal, stdout
|
|
4681
|
+
finish({ code, signal, stdout, stderr, timedOut, aborted });
|
|
4688
4682
|
});
|
|
4689
4683
|
if (options.input !== undefined) {
|
|
4690
4684
|
child.stdin?.on("error", () => {});
|
|
@@ -4698,8 +4692,8 @@ var init_exec = __esm(() => {
|
|
|
4698
4692
|
});
|
|
4699
4693
|
|
|
4700
4694
|
// src/commands/workstation/login.ts
|
|
4701
|
-
function storeDepsFor(
|
|
4702
|
-
if (
|
|
4695
|
+
function storeDepsFor(platform, exec = runCommand2) {
|
|
4696
|
+
if (platform !== "win32") {
|
|
4703
4697
|
return;
|
|
4704
4698
|
}
|
|
4705
4699
|
return { acl: (dir) => restrictWindowsAcl(dir, exec) };
|
|
@@ -4842,11 +4836,11 @@ function createDeadline(totalMs, now = monotonicNow) {
|
|
|
4842
4836
|
}
|
|
4843
4837
|
|
|
4844
4838
|
// ../../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
4845
|
-
var require_polyfills = __commonJS((exports, module)
|
|
4839
|
+
var require_polyfills = __commonJS(function(exports, module) {
|
|
4846
4840
|
var constants = __require("constants");
|
|
4847
4841
|
var origCwd = process.cwd;
|
|
4848
4842
|
var cwd = null;
|
|
4849
|
-
var
|
|
4843
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
4850
4844
|
process.cwd = function() {
|
|
4851
4845
|
if (!cwd)
|
|
4852
4846
|
cwd = origCwd.call(process);
|
|
@@ -4857,9 +4851,9 @@ var require_polyfills = __commonJS((exports, module) => {
|
|
|
4857
4851
|
} catch (er) {}
|
|
4858
4852
|
if (typeof process.chdir === "function") {
|
|
4859
4853
|
chdir = process.chdir;
|
|
4860
|
-
process.chdir = function(
|
|
4854
|
+
process.chdir = function(d) {
|
|
4861
4855
|
cwd = null;
|
|
4862
|
-
chdir.call(process,
|
|
4856
|
+
chdir.call(process, d);
|
|
4863
4857
|
};
|
|
4864
4858
|
if (Object.setPrototypeOf)
|
|
4865
4859
|
Object.setPrototypeOf(process.chdir, chdir);
|
|
@@ -4905,7 +4899,7 @@ var require_polyfills = __commonJS((exports, module) => {
|
|
|
4905
4899
|
};
|
|
4906
4900
|
fs.lchownSync = function() {};
|
|
4907
4901
|
}
|
|
4908
|
-
if (
|
|
4902
|
+
if (platform === "win32") {
|
|
4909
4903
|
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
4910
4904
|
function rename(from, to, cb) {
|
|
4911
4905
|
var start = Date.now();
|
|
@@ -4938,7 +4932,7 @@ var require_polyfills = __commonJS((exports, module) => {
|
|
|
4938
4932
|
var callback;
|
|
4939
4933
|
if (callback_ && typeof callback_ === "function") {
|
|
4940
4934
|
var eagCounter = 0;
|
|
4941
|
-
callback = function(er,
|
|
4935
|
+
callback = function(er, _, __) {
|
|
4942
4936
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
4943
4937
|
eagCounter++;
|
|
4944
4938
|
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
@@ -4968,82 +4962,82 @@ var require_polyfills = __commonJS((exports, module) => {
|
|
|
4968
4962
|
}
|
|
4969
4963
|
};
|
|
4970
4964
|
}(fs.readSync);
|
|
4971
|
-
function patchLchmod(
|
|
4972
|
-
|
|
4973
|
-
|
|
4965
|
+
function patchLchmod(fs) {
|
|
4966
|
+
fs.lchmod = function(path, mode, callback) {
|
|
4967
|
+
fs.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
4974
4968
|
if (err) {
|
|
4975
4969
|
if (callback)
|
|
4976
4970
|
callback(err);
|
|
4977
4971
|
return;
|
|
4978
4972
|
}
|
|
4979
|
-
|
|
4980
|
-
|
|
4973
|
+
fs.fchmod(fd, mode, function(err) {
|
|
4974
|
+
fs.close(fd, function(err2) {
|
|
4981
4975
|
if (callback)
|
|
4982
|
-
callback(
|
|
4976
|
+
callback(err || err2);
|
|
4983
4977
|
});
|
|
4984
4978
|
});
|
|
4985
4979
|
});
|
|
4986
4980
|
};
|
|
4987
|
-
|
|
4988
|
-
var fd =
|
|
4981
|
+
fs.lchmodSync = function(path, mode) {
|
|
4982
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
4989
4983
|
var threw = true;
|
|
4990
4984
|
var ret;
|
|
4991
4985
|
try {
|
|
4992
|
-
ret =
|
|
4986
|
+
ret = fs.fchmodSync(fd, mode);
|
|
4993
4987
|
threw = false;
|
|
4994
4988
|
} finally {
|
|
4995
4989
|
if (threw) {
|
|
4996
4990
|
try {
|
|
4997
|
-
|
|
4991
|
+
fs.closeSync(fd);
|
|
4998
4992
|
} catch (er) {}
|
|
4999
4993
|
} else {
|
|
5000
|
-
|
|
4994
|
+
fs.closeSync(fd);
|
|
5001
4995
|
}
|
|
5002
4996
|
}
|
|
5003
4997
|
return ret;
|
|
5004
4998
|
};
|
|
5005
4999
|
}
|
|
5006
|
-
function patchLutimes(
|
|
5007
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
5008
|
-
|
|
5009
|
-
|
|
5000
|
+
function patchLutimes(fs) {
|
|
5001
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
5002
|
+
fs.lutimes = function(path, at, mt, cb) {
|
|
5003
|
+
fs.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
5010
5004
|
if (er) {
|
|
5011
5005
|
if (cb)
|
|
5012
5006
|
cb(er);
|
|
5013
5007
|
return;
|
|
5014
5008
|
}
|
|
5015
|
-
|
|
5016
|
-
|
|
5009
|
+
fs.futimes(fd, at, mt, function(er) {
|
|
5010
|
+
fs.close(fd, function(er2) {
|
|
5017
5011
|
if (cb)
|
|
5018
|
-
cb(
|
|
5012
|
+
cb(er || er2);
|
|
5019
5013
|
});
|
|
5020
5014
|
});
|
|
5021
5015
|
});
|
|
5022
5016
|
};
|
|
5023
|
-
|
|
5024
|
-
var fd =
|
|
5017
|
+
fs.lutimesSync = function(path, at, mt) {
|
|
5018
|
+
var fd = fs.openSync(path, constants.O_SYMLINK);
|
|
5025
5019
|
var ret;
|
|
5026
5020
|
var threw = true;
|
|
5027
5021
|
try {
|
|
5028
|
-
ret =
|
|
5022
|
+
ret = fs.futimesSync(fd, at, mt);
|
|
5029
5023
|
threw = false;
|
|
5030
5024
|
} finally {
|
|
5031
5025
|
if (threw) {
|
|
5032
5026
|
try {
|
|
5033
|
-
|
|
5027
|
+
fs.closeSync(fd);
|
|
5034
5028
|
} catch (er) {}
|
|
5035
5029
|
} else {
|
|
5036
|
-
|
|
5030
|
+
fs.closeSync(fd);
|
|
5037
5031
|
}
|
|
5038
5032
|
}
|
|
5039
5033
|
return ret;
|
|
5040
5034
|
};
|
|
5041
|
-
} else if (
|
|
5042
|
-
|
|
5035
|
+
} else if (fs.futimes) {
|
|
5036
|
+
fs.lutimes = function(_a, _b, _c, cb) {
|
|
5043
5037
|
if (cb)
|
|
5044
5038
|
process.nextTick(cb);
|
|
5045
5039
|
};
|
|
5046
|
-
|
|
5040
|
+
fs.lutimesSync = function() {};
|
|
5047
5041
|
}
|
|
5048
5042
|
}
|
|
5049
5043
|
function chmodFix(orig) {
|
|
@@ -5145,13 +5139,13 @@ var require_polyfills = __commonJS((exports, module) => {
|
|
|
5145
5139
|
});
|
|
5146
5140
|
|
|
5147
5141
|
// ../../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
5148
|
-
var require_legacy_streams = __commonJS((exports, module)
|
|
5142
|
+
var require_legacy_streams = __commonJS(function(exports, module) {
|
|
5149
5143
|
var Stream = __require("stream").Stream;
|
|
5150
5144
|
module.exports = legacy;
|
|
5151
5145
|
function legacy(fs) {
|
|
5152
5146
|
return {
|
|
5153
5147
|
ReadStream,
|
|
5154
|
-
WriteStream
|
|
5148
|
+
WriteStream
|
|
5155
5149
|
};
|
|
5156
5150
|
function ReadStream(path, options) {
|
|
5157
5151
|
if (!(this instanceof ReadStream))
|
|
@@ -5204,9 +5198,9 @@ var require_legacy_streams = __commonJS((exports, module) => {
|
|
|
5204
5198
|
self._read();
|
|
5205
5199
|
});
|
|
5206
5200
|
}
|
|
5207
|
-
function
|
|
5208
|
-
if (!(this instanceof
|
|
5209
|
-
return new
|
|
5201
|
+
function WriteStream(path, options) {
|
|
5202
|
+
if (!(this instanceof WriteStream))
|
|
5203
|
+
return new WriteStream(path, options);
|
|
5210
5204
|
Stream.call(this);
|
|
5211
5205
|
this.path = path;
|
|
5212
5206
|
this.fd = null;
|
|
@@ -5242,7 +5236,7 @@ var require_legacy_streams = __commonJS((exports, module) => {
|
|
|
5242
5236
|
});
|
|
5243
5237
|
|
|
5244
5238
|
// ../../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
5245
|
-
var require_clone = __commonJS((exports, module)
|
|
5239
|
+
var require_clone = __commonJS(function(exports, module) {
|
|
5246
5240
|
module.exports = clone;
|
|
5247
5241
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
5248
5242
|
return obj.__proto__;
|
|
@@ -5262,7 +5256,7 @@ var require_clone = __commonJS((exports, module) => {
|
|
|
5262
5256
|
});
|
|
5263
5257
|
|
|
5264
5258
|
// ../../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
5265
|
-
var require_graceful_fs = __commonJS((exports, module)
|
|
5259
|
+
var require_graceful_fs = __commonJS(function(exports, module) {
|
|
5266
5260
|
var fs = __require("fs");
|
|
5267
5261
|
var polyfills = require_polyfills();
|
|
5268
5262
|
var legacy = require_legacy_streams();
|
|
@@ -5278,10 +5272,10 @@ var require_graceful_fs = __commonJS((exports, module) => {
|
|
|
5278
5272
|
previousSymbol = "___graceful-fs.previous";
|
|
5279
5273
|
}
|
|
5280
5274
|
function noop() {}
|
|
5281
|
-
function publishQueue(context,
|
|
5275
|
+
function publishQueue(context, queue) {
|
|
5282
5276
|
Object.defineProperty(context, gracefulQueue, {
|
|
5283
5277
|
get: function() {
|
|
5284
|
-
return
|
|
5278
|
+
return queue;
|
|
5285
5279
|
}
|
|
5286
5280
|
});
|
|
5287
5281
|
}
|
|
@@ -5290,14 +5284,14 @@ var require_graceful_fs = __commonJS((exports, module) => {
|
|
|
5290
5284
|
debug = util.debuglog("gfs4");
|
|
5291
5285
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
5292
5286
|
debug = function() {
|
|
5293
|
-
var
|
|
5294
|
-
|
|
5287
|
+
var m = util.format.apply(util, arguments);
|
|
5288
|
+
m = "GFS4: " + m.split(/\n/).join(`
|
|
5295
5289
|
GFS4: `);
|
|
5296
|
-
console.error(
|
|
5290
|
+
console.error(m);
|
|
5297
5291
|
};
|
|
5298
5292
|
if (!fs[gracefulQueue]) {
|
|
5299
|
-
|
|
5300
|
-
publishQueue(fs,
|
|
5293
|
+
queue = global[gracefulQueue] || [];
|
|
5294
|
+
publishQueue(fs, queue);
|
|
5301
5295
|
fs.close = function(fs$close) {
|
|
5302
5296
|
function close(fd, cb) {
|
|
5303
5297
|
return fs$close.call(fs, fd, function(err) {
|
|
@@ -5330,7 +5324,7 @@ GFS4: `);
|
|
|
5330
5324
|
});
|
|
5331
5325
|
}
|
|
5332
5326
|
}
|
|
5333
|
-
var
|
|
5327
|
+
var queue;
|
|
5334
5328
|
if (!global[gracefulQueue]) {
|
|
5335
5329
|
publishQueue(global, fs[gracefulQueue]);
|
|
5336
5330
|
}
|
|
@@ -5339,101 +5333,101 @@ GFS4: `);
|
|
|
5339
5333
|
module.exports = patch(fs);
|
|
5340
5334
|
fs.__patched = true;
|
|
5341
5335
|
}
|
|
5342
|
-
function patch(
|
|
5343
|
-
polyfills(
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
var fs$readFile =
|
|
5348
|
-
|
|
5349
|
-
function
|
|
5336
|
+
function patch(fs) {
|
|
5337
|
+
polyfills(fs);
|
|
5338
|
+
fs.gracefulify = patch;
|
|
5339
|
+
fs.createReadStream = createReadStream;
|
|
5340
|
+
fs.createWriteStream = createWriteStream;
|
|
5341
|
+
var fs$readFile = fs.readFile;
|
|
5342
|
+
fs.readFile = readFile;
|
|
5343
|
+
function readFile(path, options, cb) {
|
|
5350
5344
|
if (typeof options === "function")
|
|
5351
5345
|
cb = options, options = null;
|
|
5352
5346
|
return go$readFile(path, options, cb);
|
|
5353
|
-
function go$readFile(
|
|
5354
|
-
return fs$readFile(
|
|
5347
|
+
function go$readFile(path, options, cb, startTime) {
|
|
5348
|
+
return fs$readFile(path, options, function(err) {
|
|
5355
5349
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5356
|
-
enqueue([go$readFile, [
|
|
5350
|
+
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
5357
5351
|
else {
|
|
5358
|
-
if (typeof
|
|
5359
|
-
|
|
5352
|
+
if (typeof cb === "function")
|
|
5353
|
+
cb.apply(this, arguments);
|
|
5360
5354
|
}
|
|
5361
5355
|
});
|
|
5362
5356
|
}
|
|
5363
5357
|
}
|
|
5364
|
-
var fs$writeFile =
|
|
5365
|
-
|
|
5366
|
-
function
|
|
5358
|
+
var fs$writeFile = fs.writeFile;
|
|
5359
|
+
fs.writeFile = writeFile;
|
|
5360
|
+
function writeFile(path, data, options, cb) {
|
|
5367
5361
|
if (typeof options === "function")
|
|
5368
5362
|
cb = options, options = null;
|
|
5369
5363
|
return go$writeFile(path, data, options, cb);
|
|
5370
|
-
function go$writeFile(
|
|
5371
|
-
return fs$writeFile(
|
|
5364
|
+
function go$writeFile(path, data, options, cb, startTime) {
|
|
5365
|
+
return fs$writeFile(path, data, options, function(err) {
|
|
5372
5366
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5373
|
-
enqueue([go$writeFile, [
|
|
5367
|
+
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
5374
5368
|
else {
|
|
5375
|
-
if (typeof
|
|
5376
|
-
|
|
5369
|
+
if (typeof cb === "function")
|
|
5370
|
+
cb.apply(this, arguments);
|
|
5377
5371
|
}
|
|
5378
5372
|
});
|
|
5379
5373
|
}
|
|
5380
5374
|
}
|
|
5381
|
-
var fs$appendFile =
|
|
5375
|
+
var fs$appendFile = fs.appendFile;
|
|
5382
5376
|
if (fs$appendFile)
|
|
5383
|
-
|
|
5377
|
+
fs.appendFile = appendFile;
|
|
5384
5378
|
function appendFile(path, data, options, cb) {
|
|
5385
5379
|
if (typeof options === "function")
|
|
5386
5380
|
cb = options, options = null;
|
|
5387
5381
|
return go$appendFile(path, data, options, cb);
|
|
5388
|
-
function go$appendFile(
|
|
5389
|
-
return fs$appendFile(
|
|
5382
|
+
function go$appendFile(path, data, options, cb, startTime) {
|
|
5383
|
+
return fs$appendFile(path, data, options, function(err) {
|
|
5390
5384
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5391
|
-
enqueue([go$appendFile, [
|
|
5385
|
+
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);
|
|
5392
5386
|
else {
|
|
5393
|
-
if (typeof
|
|
5394
|
-
|
|
5387
|
+
if (typeof cb === "function")
|
|
5388
|
+
cb.apply(this, arguments);
|
|
5395
5389
|
}
|
|
5396
5390
|
});
|
|
5397
5391
|
}
|
|
5398
5392
|
}
|
|
5399
|
-
var fs$copyFile =
|
|
5393
|
+
var fs$copyFile = fs.copyFile;
|
|
5400
5394
|
if (fs$copyFile)
|
|
5401
|
-
|
|
5402
|
-
function copyFile(
|
|
5395
|
+
fs.copyFile = copyFile;
|
|
5396
|
+
function copyFile(src, dest, flags, cb) {
|
|
5403
5397
|
if (typeof flags === "function") {
|
|
5404
5398
|
cb = flags;
|
|
5405
5399
|
flags = 0;
|
|
5406
5400
|
}
|
|
5407
|
-
return go$copyFile(
|
|
5408
|
-
function go$copyFile(
|
|
5409
|
-
return fs$copyFile(
|
|
5401
|
+
return go$copyFile(src, dest, flags, cb);
|
|
5402
|
+
function go$copyFile(src, dest, flags, cb, startTime) {
|
|
5403
|
+
return fs$copyFile(src, dest, flags, function(err) {
|
|
5410
5404
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5411
|
-
enqueue([go$copyFile, [
|
|
5405
|
+
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]);
|
|
5412
5406
|
else {
|
|
5413
|
-
if (typeof
|
|
5414
|
-
|
|
5407
|
+
if (typeof cb === "function")
|
|
5408
|
+
cb.apply(this, arguments);
|
|
5415
5409
|
}
|
|
5416
5410
|
});
|
|
5417
5411
|
}
|
|
5418
5412
|
}
|
|
5419
|
-
var fs$readdir =
|
|
5420
|
-
|
|
5413
|
+
var fs$readdir = fs.readdir;
|
|
5414
|
+
fs.readdir = readdir;
|
|
5421
5415
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
5422
5416
|
function readdir(path, options, cb) {
|
|
5423
5417
|
if (typeof options === "function")
|
|
5424
5418
|
cb = options, options = null;
|
|
5425
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
5426
|
-
return fs$readdir(
|
|
5427
|
-
} : function go$
|
|
5428
|
-
return fs$readdir(
|
|
5419
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path, options, cb, startTime) {
|
|
5420
|
+
return fs$readdir(path, fs$readdirCallback(path, options, cb, startTime));
|
|
5421
|
+
} : function go$readdir(path, options, cb, startTime) {
|
|
5422
|
+
return fs$readdir(path, options, fs$readdirCallback(path, options, cb, startTime));
|
|
5429
5423
|
};
|
|
5430
5424
|
return go$readdir(path, options, cb);
|
|
5431
|
-
function fs$readdirCallback(
|
|
5425
|
+
function fs$readdirCallback(path, options, cb, startTime) {
|
|
5432
5426
|
return function(err, files) {
|
|
5433
5427
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5434
5428
|
enqueue([
|
|
5435
5429
|
go$readdir,
|
|
5436
|
-
[
|
|
5430
|
+
[path, options, cb],
|
|
5437
5431
|
err,
|
|
5438
5432
|
startTime || Date.now(),
|
|
5439
5433
|
Date.now()
|
|
@@ -5441,28 +5435,28 @@ GFS4: `);
|
|
|
5441
5435
|
else {
|
|
5442
5436
|
if (files && files.sort)
|
|
5443
5437
|
files.sort();
|
|
5444
|
-
if (typeof
|
|
5445
|
-
|
|
5438
|
+
if (typeof cb === "function")
|
|
5439
|
+
cb.call(this, err, files);
|
|
5446
5440
|
}
|
|
5447
5441
|
};
|
|
5448
5442
|
}
|
|
5449
5443
|
}
|
|
5450
5444
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
5451
|
-
var legStreams = legacy(
|
|
5445
|
+
var legStreams = legacy(fs);
|
|
5452
5446
|
ReadStream = legStreams.ReadStream;
|
|
5453
|
-
|
|
5447
|
+
WriteStream = legStreams.WriteStream;
|
|
5454
5448
|
}
|
|
5455
|
-
var fs$ReadStream =
|
|
5449
|
+
var fs$ReadStream = fs.ReadStream;
|
|
5456
5450
|
if (fs$ReadStream) {
|
|
5457
5451
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
5458
5452
|
ReadStream.prototype.open = ReadStream$open;
|
|
5459
5453
|
}
|
|
5460
|
-
var fs$WriteStream =
|
|
5454
|
+
var fs$WriteStream = fs.WriteStream;
|
|
5461
5455
|
if (fs$WriteStream) {
|
|
5462
|
-
|
|
5463
|
-
|
|
5456
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
5457
|
+
WriteStream.prototype.open = WriteStream$open;
|
|
5464
5458
|
}
|
|
5465
|
-
Object.defineProperty(
|
|
5459
|
+
Object.defineProperty(fs, "ReadStream", {
|
|
5466
5460
|
get: function() {
|
|
5467
5461
|
return ReadStream;
|
|
5468
5462
|
},
|
|
@@ -5472,18 +5466,18 @@ GFS4: `);
|
|
|
5472
5466
|
enumerable: true,
|
|
5473
5467
|
configurable: true
|
|
5474
5468
|
});
|
|
5475
|
-
Object.defineProperty(
|
|
5469
|
+
Object.defineProperty(fs, "WriteStream", {
|
|
5476
5470
|
get: function() {
|
|
5477
|
-
return
|
|
5471
|
+
return WriteStream;
|
|
5478
5472
|
},
|
|
5479
5473
|
set: function(val) {
|
|
5480
|
-
|
|
5474
|
+
WriteStream = val;
|
|
5481
5475
|
},
|
|
5482
5476
|
enumerable: true,
|
|
5483
5477
|
configurable: true
|
|
5484
5478
|
});
|
|
5485
5479
|
var FileReadStream = ReadStream;
|
|
5486
|
-
Object.defineProperty(
|
|
5480
|
+
Object.defineProperty(fs, "FileReadStream", {
|
|
5487
5481
|
get: function() {
|
|
5488
5482
|
return FileReadStream;
|
|
5489
5483
|
},
|
|
@@ -5493,8 +5487,8 @@ GFS4: `);
|
|
|
5493
5487
|
enumerable: true,
|
|
5494
5488
|
configurable: true
|
|
5495
5489
|
});
|
|
5496
|
-
var FileWriteStream =
|
|
5497
|
-
Object.defineProperty(
|
|
5490
|
+
var FileWriteStream = WriteStream;
|
|
5491
|
+
Object.defineProperty(fs, "FileWriteStream", {
|
|
5498
5492
|
get: function() {
|
|
5499
5493
|
return FileWriteStream;
|
|
5500
5494
|
},
|
|
@@ -5524,11 +5518,11 @@ GFS4: `);
|
|
|
5524
5518
|
}
|
|
5525
5519
|
});
|
|
5526
5520
|
}
|
|
5527
|
-
function
|
|
5528
|
-
if (this instanceof
|
|
5521
|
+
function WriteStream(path, options) {
|
|
5522
|
+
if (this instanceof WriteStream)
|
|
5529
5523
|
return fs$WriteStream.apply(this, arguments), this;
|
|
5530
5524
|
else
|
|
5531
|
-
return
|
|
5525
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
5532
5526
|
}
|
|
5533
5527
|
function WriteStream$open() {
|
|
5534
5528
|
var that = this;
|
|
@@ -5543,29 +5537,29 @@ GFS4: `);
|
|
|
5543
5537
|
});
|
|
5544
5538
|
}
|
|
5545
5539
|
function createReadStream(path, options) {
|
|
5546
|
-
return new
|
|
5540
|
+
return new fs.ReadStream(path, options);
|
|
5547
5541
|
}
|
|
5548
5542
|
function createWriteStream(path, options) {
|
|
5549
|
-
return new
|
|
5543
|
+
return new fs.WriteStream(path, options);
|
|
5550
5544
|
}
|
|
5551
|
-
var fs$open =
|
|
5552
|
-
|
|
5545
|
+
var fs$open = fs.open;
|
|
5546
|
+
fs.open = open;
|
|
5553
5547
|
function open(path, flags, mode, cb) {
|
|
5554
5548
|
if (typeof mode === "function")
|
|
5555
5549
|
cb = mode, mode = null;
|
|
5556
5550
|
return go$open(path, flags, mode, cb);
|
|
5557
|
-
function go$open(
|
|
5558
|
-
return fs$open(
|
|
5551
|
+
function go$open(path, flags, mode, cb, startTime) {
|
|
5552
|
+
return fs$open(path, flags, mode, function(err, fd) {
|
|
5559
5553
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5560
|
-
enqueue([go$open, [
|
|
5554
|
+
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]);
|
|
5561
5555
|
else {
|
|
5562
|
-
if (typeof
|
|
5563
|
-
|
|
5556
|
+
if (typeof cb === "function")
|
|
5557
|
+
cb.apply(this, arguments);
|
|
5564
5558
|
}
|
|
5565
5559
|
});
|
|
5566
5560
|
}
|
|
5567
5561
|
}
|
|
5568
|
-
return
|
|
5562
|
+
return fs;
|
|
5569
5563
|
}
|
|
5570
5564
|
function enqueue(elem) {
|
|
5571
5565
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
@@ -5575,10 +5569,10 @@ GFS4: `);
|
|
|
5575
5569
|
var retryTimer;
|
|
5576
5570
|
function resetQueue() {
|
|
5577
5571
|
var now = Date.now();
|
|
5578
|
-
for (var
|
|
5579
|
-
if (fs[gracefulQueue][
|
|
5580
|
-
fs[gracefulQueue][
|
|
5581
|
-
fs[gracefulQueue][
|
|
5572
|
+
for (var i = 0;i < fs[gracefulQueue].length; ++i) {
|
|
5573
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
5574
|
+
fs[gracefulQueue][i][3] = now;
|
|
5575
|
+
fs[gracefulQueue][i][4] = now;
|
|
5582
5576
|
}
|
|
5583
5577
|
}
|
|
5584
5578
|
retry();
|
|
@@ -5620,7 +5614,7 @@ GFS4: `);
|
|
|
5620
5614
|
});
|
|
5621
5615
|
|
|
5622
5616
|
// ../../node_modules/.bun/retry@0.12.0/node_modules/retry/lib/retry_operation.js
|
|
5623
|
-
var require_retry_operation = __commonJS((exports, module)
|
|
5617
|
+
var require_retry_operation = __commonJS(function(exports, module) {
|
|
5624
5618
|
function RetryOperation(timeouts, options) {
|
|
5625
5619
|
if (typeof options === "boolean") {
|
|
5626
5620
|
options = { forever: options };
|
|
@@ -5734,13 +5728,13 @@ var require_retry_operation = __commonJS((exports, module) => {
|
|
|
5734
5728
|
var counts = {};
|
|
5735
5729
|
var mainError = null;
|
|
5736
5730
|
var mainErrorCount = 0;
|
|
5737
|
-
for (var
|
|
5738
|
-
var
|
|
5739
|
-
var message =
|
|
5731
|
+
for (var i = 0;i < this._errors.length; i++) {
|
|
5732
|
+
var error = this._errors[i];
|
|
5733
|
+
var message = error.message;
|
|
5740
5734
|
var count = (counts[message] || 0) + 1;
|
|
5741
5735
|
counts[message] = count;
|
|
5742
5736
|
if (count >= mainErrorCount) {
|
|
5743
|
-
mainError =
|
|
5737
|
+
mainError = error;
|
|
5744
5738
|
mainErrorCount = count;
|
|
5745
5739
|
}
|
|
5746
5740
|
}
|
|
@@ -5749,7 +5743,7 @@ var require_retry_operation = __commonJS((exports, module) => {
|
|
|
5749
5743
|
});
|
|
5750
5744
|
|
|
5751
5745
|
// ../../node_modules/.bun/retry@0.12.0/node_modules/retry/lib/retry.js
|
|
5752
|
-
var require_retry = __commonJS((exports)
|
|
5746
|
+
var require_retry = __commonJS(function(exports) {
|
|
5753
5747
|
var RetryOperation = require_retry_operation();
|
|
5754
5748
|
exports.operation = function(options) {
|
|
5755
5749
|
var timeouts = exports.timeouts(options);
|
|
@@ -5777,14 +5771,14 @@ var require_retry = __commonJS((exports) => {
|
|
|
5777
5771
|
throw new Error("minTimeout is greater than maxTimeout");
|
|
5778
5772
|
}
|
|
5779
5773
|
var timeouts = [];
|
|
5780
|
-
for (var
|
|
5781
|
-
timeouts.push(this.createTimeout(
|
|
5774
|
+
for (var i = 0;i < opts.retries; i++) {
|
|
5775
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
5782
5776
|
}
|
|
5783
5777
|
if (options && options.forever && !timeouts.length) {
|
|
5784
|
-
timeouts.push(this.createTimeout(
|
|
5778
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
5785
5779
|
}
|
|
5786
|
-
timeouts.sort(function(
|
|
5787
|
-
return
|
|
5780
|
+
timeouts.sort(function(a, b) {
|
|
5781
|
+
return a - b;
|
|
5788
5782
|
});
|
|
5789
5783
|
return timeouts;
|
|
5790
5784
|
};
|
|
@@ -5807,10 +5801,10 @@ var require_retry = __commonJS((exports) => {
|
|
|
5807
5801
|
}
|
|
5808
5802
|
}
|
|
5809
5803
|
}
|
|
5810
|
-
for (var
|
|
5811
|
-
var method = methods[
|
|
5804
|
+
for (var i = 0;i < methods.length; i++) {
|
|
5805
|
+
var method = methods[i];
|
|
5812
5806
|
var original = obj[method];
|
|
5813
|
-
obj[method] = function retryWrapper(
|
|
5807
|
+
obj[method] = function retryWrapper(original) {
|
|
5814
5808
|
var op = exports.operation(options);
|
|
5815
5809
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
5816
5810
|
var callback = args.pop();
|
|
@@ -5824,7 +5818,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
5824
5818
|
callback.apply(this, arguments);
|
|
5825
5819
|
});
|
|
5826
5820
|
op.attempt(function() {
|
|
5827
|
-
|
|
5821
|
+
original.apply(obj, args);
|
|
5828
5822
|
});
|
|
5829
5823
|
}.bind(obj, original);
|
|
5830
5824
|
obj[method].options = options;
|
|
@@ -5833,7 +5827,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
5833
5827
|
});
|
|
5834
5828
|
|
|
5835
5829
|
// ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
5836
|
-
var require_signals = __commonJS((exports, module)
|
|
5830
|
+
var require_signals = __commonJS(function(exports, module) {
|
|
5837
5831
|
module.exports = [
|
|
5838
5832
|
"SIGABRT",
|
|
5839
5833
|
"SIGALRM",
|
|
@@ -5850,10 +5844,10 @@ var require_signals = __commonJS((exports, module) => {
|
|
|
5850
5844
|
});
|
|
5851
5845
|
|
|
5852
5846
|
// ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
5853
|
-
var require_signal_exit = __commonJS((exports, module)
|
|
5847
|
+
var require_signal_exit = __commonJS(function(exports, module) {
|
|
5854
5848
|
var process2 = global.process;
|
|
5855
|
-
var processOk = function(
|
|
5856
|
-
return
|
|
5849
|
+
var processOk = function(process2) {
|
|
5850
|
+
return process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
|
|
5857
5851
|
};
|
|
5858
5852
|
if (!processOk(process2)) {
|
|
5859
5853
|
module.exports = function() {
|
|
@@ -5899,7 +5893,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
5899
5893
|
emitter.on(ev, cb);
|
|
5900
5894
|
return remove;
|
|
5901
5895
|
};
|
|
5902
|
-
unload = function
|
|
5896
|
+
unload = function unload() {
|
|
5903
5897
|
if (!loaded || !processOk(global.process)) {
|
|
5904
5898
|
return;
|
|
5905
5899
|
}
|
|
@@ -5914,7 +5908,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
5914
5908
|
emitter.count -= 1;
|
|
5915
5909
|
};
|
|
5916
5910
|
module.exports.unload = unload;
|
|
5917
|
-
emit = function
|
|
5911
|
+
emit = function emit(event, code, signal) {
|
|
5918
5912
|
if (emitter.emitted[event]) {
|
|
5919
5913
|
return;
|
|
5920
5914
|
}
|
|
@@ -5943,7 +5937,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
5943
5937
|
return signals;
|
|
5944
5938
|
};
|
|
5945
5939
|
loaded = false;
|
|
5946
|
-
load = function
|
|
5940
|
+
load = function load() {
|
|
5947
5941
|
if (loaded || !processOk(global.process)) {
|
|
5948
5942
|
return;
|
|
5949
5943
|
}
|
|
@@ -5962,7 +5956,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
5962
5956
|
};
|
|
5963
5957
|
module.exports.load = load;
|
|
5964
5958
|
originalProcessReallyExit = process2.reallyExit;
|
|
5965
|
-
processReallyExit = function
|
|
5959
|
+
processReallyExit = function processReallyExit(code) {
|
|
5966
5960
|
if (!processOk(global.process)) {
|
|
5967
5961
|
return;
|
|
5968
5962
|
}
|
|
@@ -5972,7 +5966,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
5972
5966
|
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
5973
5967
|
};
|
|
5974
5968
|
originalProcessEmit = process2.emit;
|
|
5975
|
-
processEmit = function
|
|
5969
|
+
processEmit = function processEmit(ev, arg) {
|
|
5976
5970
|
if (ev === "exit" && processOk(global.process)) {
|
|
5977
5971
|
if (arg !== undefined) {
|
|
5978
5972
|
process2.exitCode = arg;
|
|
@@ -6003,7 +5997,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
6003
5997
|
});
|
|
6004
5998
|
|
|
6005
5999
|
// ../../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/mtime-precision.js
|
|
6006
|
-
var require_mtime_precision = __commonJS((exports, module)
|
|
6000
|
+
var require_mtime_precision = __commonJS(function(exports, module) {
|
|
6007
6001
|
var cacheSymbol = Symbol();
|
|
6008
6002
|
function probe(file, fs, callback) {
|
|
6009
6003
|
const cachedPrecision = fs[cacheSymbol];
|
|
@@ -6020,9 +6014,9 @@ var require_mtime_precision = __commonJS((exports, module) => {
|
|
|
6020
6014
|
if (err) {
|
|
6021
6015
|
return callback(err);
|
|
6022
6016
|
}
|
|
6023
|
-
fs.stat(file, (
|
|
6024
|
-
if (
|
|
6025
|
-
return callback(
|
|
6017
|
+
fs.stat(file, (err, stat) => {
|
|
6018
|
+
if (err) {
|
|
6019
|
+
return callback(err);
|
|
6026
6020
|
}
|
|
6027
6021
|
const precision = stat.mtime.getTime() % 1000 === 0 ? "s" : "ms";
|
|
6028
6022
|
Object.defineProperty(fs, cacheSymbol, { value: precision });
|
|
@@ -6042,7 +6036,7 @@ var require_mtime_precision = __commonJS((exports, module) => {
|
|
|
6042
6036
|
});
|
|
6043
6037
|
|
|
6044
6038
|
// ../../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/lockfile.js
|
|
6045
|
-
var require_lockfile = __commonJS((exports, module)
|
|
6039
|
+
var require_lockfile = __commonJS(function(exports, module) {
|
|
6046
6040
|
var path = __require("path");
|
|
6047
6041
|
var fs = require_graceful_fs();
|
|
6048
6042
|
var retry = require_retry();
|
|
@@ -6062,12 +6056,12 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6062
6056
|
const lockfilePath = getLockFile(file, options);
|
|
6063
6057
|
options.fs.mkdir(lockfilePath, (err) => {
|
|
6064
6058
|
if (!err) {
|
|
6065
|
-
return mtimePrecision.probe(lockfilePath, options.fs, (
|
|
6066
|
-
if (
|
|
6059
|
+
return mtimePrecision.probe(lockfilePath, options.fs, (err, mtime, mtimePrecision) => {
|
|
6060
|
+
if (err) {
|
|
6067
6061
|
options.fs.rmdir(lockfilePath, () => {});
|
|
6068
|
-
return callback(
|
|
6062
|
+
return callback(err);
|
|
6069
6063
|
}
|
|
6070
|
-
callback(null, mtime,
|
|
6064
|
+
callback(null, mtime, mtimePrecision);
|
|
6071
6065
|
});
|
|
6072
6066
|
}
|
|
6073
6067
|
if (err.code !== "EEXIST") {
|
|
@@ -6076,19 +6070,19 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6076
6070
|
if (options.stale <= 0) {
|
|
6077
6071
|
return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
|
|
6078
6072
|
}
|
|
6079
|
-
options.fs.stat(lockfilePath, (
|
|
6080
|
-
if (
|
|
6081
|
-
if (
|
|
6073
|
+
options.fs.stat(lockfilePath, (err, stat) => {
|
|
6074
|
+
if (err) {
|
|
6075
|
+
if (err.code === "ENOENT") {
|
|
6082
6076
|
return acquireLock(file, { ...options, stale: 0 }, callback);
|
|
6083
6077
|
}
|
|
6084
|
-
return callback(
|
|
6078
|
+
return callback(err);
|
|
6085
6079
|
}
|
|
6086
6080
|
if (!isLockStale(stat, options)) {
|
|
6087
6081
|
return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
|
|
6088
6082
|
}
|
|
6089
|
-
removeLock(file, options, (
|
|
6090
|
-
if (
|
|
6091
|
-
return callback(
|
|
6083
|
+
removeLock(file, options, (err) => {
|
|
6084
|
+
if (err) {
|
|
6085
|
+
return callback(err);
|
|
6092
6086
|
}
|
|
6093
6087
|
acquireLock(file, { ...options, stale: 0 }, callback);
|
|
6094
6088
|
});
|
|
@@ -6107,59 +6101,59 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6107
6101
|
});
|
|
6108
6102
|
}
|
|
6109
6103
|
function updateLock(file, options) {
|
|
6110
|
-
const
|
|
6111
|
-
if (
|
|
6104
|
+
const lock = locks[file];
|
|
6105
|
+
if (lock.updateTimeout) {
|
|
6112
6106
|
return;
|
|
6113
6107
|
}
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
options.fs.stat(
|
|
6118
|
-
const isOverThreshold =
|
|
6108
|
+
lock.updateDelay = lock.updateDelay || options.update;
|
|
6109
|
+
lock.updateTimeout = setTimeout(() => {
|
|
6110
|
+
lock.updateTimeout = null;
|
|
6111
|
+
options.fs.stat(lock.lockfilePath, (err, stat) => {
|
|
6112
|
+
const isOverThreshold = lock.lastUpdate + options.stale < Date.now();
|
|
6119
6113
|
if (err) {
|
|
6120
6114
|
if (err.code === "ENOENT" || isOverThreshold) {
|
|
6121
|
-
return setLockAsCompromised(file,
|
|
6115
|
+
return setLockAsCompromised(file, lock, Object.assign(err, { code: "ECOMPROMISED" }));
|
|
6122
6116
|
}
|
|
6123
|
-
|
|
6117
|
+
lock.updateDelay = 1000;
|
|
6124
6118
|
return updateLock(file, options);
|
|
6125
6119
|
}
|
|
6126
|
-
const isMtimeOurs =
|
|
6120
|
+
const isMtimeOurs = lock.mtime.getTime() === stat.mtime.getTime();
|
|
6127
6121
|
if (!isMtimeOurs) {
|
|
6128
|
-
return setLockAsCompromised(file,
|
|
6122
|
+
return setLockAsCompromised(file, lock, Object.assign(new Error("Unable to update lock within the stale threshold"), { code: "ECOMPROMISED" }));
|
|
6129
6123
|
}
|
|
6130
|
-
const mtime = mtimePrecision.getMtime(
|
|
6131
|
-
options.fs.utimes(
|
|
6132
|
-
const
|
|
6133
|
-
if (
|
|
6124
|
+
const mtime = mtimePrecision.getMtime(lock.mtimePrecision);
|
|
6125
|
+
options.fs.utimes(lock.lockfilePath, mtime, mtime, (err) => {
|
|
6126
|
+
const isOverThreshold = lock.lastUpdate + options.stale < Date.now();
|
|
6127
|
+
if (lock.released) {
|
|
6134
6128
|
return;
|
|
6135
6129
|
}
|
|
6136
|
-
if (
|
|
6137
|
-
if (
|
|
6138
|
-
return setLockAsCompromised(file,
|
|
6130
|
+
if (err) {
|
|
6131
|
+
if (err.code === "ENOENT" || isOverThreshold) {
|
|
6132
|
+
return setLockAsCompromised(file, lock, Object.assign(err, { code: "ECOMPROMISED" }));
|
|
6139
6133
|
}
|
|
6140
|
-
|
|
6134
|
+
lock.updateDelay = 1000;
|
|
6141
6135
|
return updateLock(file, options);
|
|
6142
6136
|
}
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6137
|
+
lock.mtime = mtime;
|
|
6138
|
+
lock.lastUpdate = Date.now();
|
|
6139
|
+
lock.updateDelay = null;
|
|
6146
6140
|
updateLock(file, options);
|
|
6147
6141
|
});
|
|
6148
6142
|
});
|
|
6149
|
-
},
|
|
6150
|
-
if (
|
|
6151
|
-
|
|
6143
|
+
}, lock.updateDelay);
|
|
6144
|
+
if (lock.updateTimeout.unref) {
|
|
6145
|
+
lock.updateTimeout.unref();
|
|
6152
6146
|
}
|
|
6153
6147
|
}
|
|
6154
|
-
function setLockAsCompromised(file,
|
|
6155
|
-
|
|
6156
|
-
if (
|
|
6157
|
-
clearTimeout(
|
|
6148
|
+
function setLockAsCompromised(file, lock, err) {
|
|
6149
|
+
lock.released = true;
|
|
6150
|
+
if (lock.updateTimeout) {
|
|
6151
|
+
clearTimeout(lock.updateTimeout);
|
|
6158
6152
|
}
|
|
6159
|
-
if (locks[file] ===
|
|
6153
|
+
if (locks[file] === lock) {
|
|
6160
6154
|
delete locks[file];
|
|
6161
6155
|
}
|
|
6162
|
-
|
|
6156
|
+
lock.options.onCompromised(err);
|
|
6163
6157
|
}
|
|
6164
6158
|
function lock(file, options, callback) {
|
|
6165
6159
|
options = {
|
|
@@ -6178,32 +6172,32 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6178
6172
|
options.stale = Math.max(options.stale || 0, 2000);
|
|
6179
6173
|
options.update = options.update == null ? options.stale / 2 : options.update || 0;
|
|
6180
6174
|
options.update = Math.max(Math.min(options.update, options.stale / 2), 1000);
|
|
6181
|
-
resolveCanonicalPath(file, options, (err,
|
|
6175
|
+
resolveCanonicalPath(file, options, (err, file) => {
|
|
6182
6176
|
if (err) {
|
|
6183
6177
|
return callback(err);
|
|
6184
6178
|
}
|
|
6185
|
-
const
|
|
6186
|
-
|
|
6187
|
-
acquireLock(
|
|
6188
|
-
if (
|
|
6179
|
+
const operation2 = retry.operation(options.retries);
|
|
6180
|
+
operation2.attempt(() => {
|
|
6181
|
+
acquireLock(file, options, (err, mtime, mtimePrecision) => {
|
|
6182
|
+
if (operation2.retry(err)) {
|
|
6189
6183
|
return;
|
|
6190
6184
|
}
|
|
6191
|
-
if (
|
|
6192
|
-
return callback(
|
|
6185
|
+
if (err) {
|
|
6186
|
+
return callback(operation2.mainError());
|
|
6193
6187
|
}
|
|
6194
|
-
const
|
|
6195
|
-
lockfilePath: getLockFile(
|
|
6188
|
+
const lock = locks[file] = {
|
|
6189
|
+
lockfilePath: getLockFile(file, options),
|
|
6196
6190
|
mtime,
|
|
6197
|
-
mtimePrecision
|
|
6191
|
+
mtimePrecision,
|
|
6198
6192
|
options,
|
|
6199
6193
|
lastUpdate: Date.now()
|
|
6200
6194
|
};
|
|
6201
|
-
updateLock(
|
|
6195
|
+
updateLock(file, options);
|
|
6202
6196
|
callback(null, (releasedCallback) => {
|
|
6203
|
-
if (
|
|
6197
|
+
if (lock.released) {
|
|
6204
6198
|
return releasedCallback && releasedCallback(Object.assign(new Error("Lock is already released"), { code: "ERELEASED" }));
|
|
6205
6199
|
}
|
|
6206
|
-
unlock(
|
|
6200
|
+
unlock(file, { ...options, realpath: false }, releasedCallback);
|
|
6207
6201
|
});
|
|
6208
6202
|
});
|
|
6209
6203
|
});
|
|
@@ -6215,18 +6209,18 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6215
6209
|
realpath: true,
|
|
6216
6210
|
...options
|
|
6217
6211
|
};
|
|
6218
|
-
resolveCanonicalPath(file, options, (err,
|
|
6212
|
+
resolveCanonicalPath(file, options, (err, file) => {
|
|
6219
6213
|
if (err) {
|
|
6220
6214
|
return callback(err);
|
|
6221
6215
|
}
|
|
6222
|
-
const
|
|
6223
|
-
if (!
|
|
6216
|
+
const lock = locks[file];
|
|
6217
|
+
if (!lock) {
|
|
6224
6218
|
return callback(Object.assign(new Error("Lock is not acquired/owned by you"), { code: "ENOTACQUIRED" }));
|
|
6225
6219
|
}
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
delete locks[
|
|
6229
|
-
removeLock(
|
|
6220
|
+
lock.updateTimeout && clearTimeout(lock.updateTimeout);
|
|
6221
|
+
lock.released = true;
|
|
6222
|
+
delete locks[file];
|
|
6223
|
+
removeLock(file, options, callback);
|
|
6230
6224
|
});
|
|
6231
6225
|
}
|
|
6232
6226
|
function check(file, options, callback) {
|
|
@@ -6237,13 +6231,13 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6237
6231
|
...options
|
|
6238
6232
|
};
|
|
6239
6233
|
options.stale = Math.max(options.stale || 0, 2000);
|
|
6240
|
-
resolveCanonicalPath(file, options, (err,
|
|
6234
|
+
resolveCanonicalPath(file, options, (err, file) => {
|
|
6241
6235
|
if (err) {
|
|
6242
6236
|
return callback(err);
|
|
6243
6237
|
}
|
|
6244
|
-
options.fs.stat(getLockFile(
|
|
6245
|
-
if (
|
|
6246
|
-
return
|
|
6238
|
+
options.fs.stat(getLockFile(file, options), (err, stat) => {
|
|
6239
|
+
if (err) {
|
|
6240
|
+
return err.code === "ENOENT" ? callback(null, false) : callback(err);
|
|
6247
6241
|
}
|
|
6248
6242
|
return callback(null, !isLockStale(stat, options));
|
|
6249
6243
|
});
|
|
@@ -6257,7 +6251,7 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6257
6251
|
const options = locks[file].options;
|
|
6258
6252
|
try {
|
|
6259
6253
|
options.fs.rmdirSync(getLockFile(file, options));
|
|
6260
|
-
} catch (
|
|
6254
|
+
} catch (e) {}
|
|
6261
6255
|
}
|
|
6262
6256
|
});
|
|
6263
6257
|
exports.lock = lock;
|
|
@@ -6267,17 +6261,17 @@ var require_lockfile = __commonJS((exports, module) => {
|
|
|
6267
6261
|
});
|
|
6268
6262
|
|
|
6269
6263
|
// ../../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/adapter.js
|
|
6270
|
-
var require_adapter = __commonJS((exports, module)
|
|
6264
|
+
var require_adapter = __commonJS(function(exports, module) {
|
|
6271
6265
|
var fs = require_graceful_fs();
|
|
6272
|
-
function createSyncFs(
|
|
6266
|
+
function createSyncFs(fs) {
|
|
6273
6267
|
const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
|
|
6274
|
-
const newFs = { ...
|
|
6268
|
+
const newFs = { ...fs };
|
|
6275
6269
|
methods.forEach((method) => {
|
|
6276
6270
|
newFs[method] = (...args) => {
|
|
6277
6271
|
const callback = args.pop();
|
|
6278
6272
|
let ret;
|
|
6279
6273
|
try {
|
|
6280
|
-
ret =
|
|
6274
|
+
ret = fs[`${method}Sync`](...args);
|
|
6281
6275
|
} catch (err) {
|
|
6282
6276
|
return callback(err);
|
|
6283
6277
|
}
|
|
@@ -6329,7 +6323,7 @@ var require_adapter = __commonJS((exports, module) => {
|
|
|
6329
6323
|
});
|
|
6330
6324
|
|
|
6331
6325
|
// ../../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/index.js
|
|
6332
|
-
var require_proper_lockfile = __commonJS((exports, module)
|
|
6326
|
+
var require_proper_lockfile = __commonJS(function(exports, module) {
|
|
6333
6327
|
var lockfile = require_lockfile();
|
|
6334
6328
|
var { toPromise, toSync, toSyncOptions } = require_adapter();
|
|
6335
6329
|
async function lock(file, options) {
|
|
@@ -6397,9 +6391,9 @@ var init_lock = __esm(() => {
|
|
|
6397
6391
|
});
|
|
6398
6392
|
|
|
6399
6393
|
// src/workstation/probe/ping.ts
|
|
6400
|
-
function buildUnixPingPlan(
|
|
6394
|
+
function buildUnixPingPlan(platform, family, address, timeoutMs = PING_TIMEOUT_MS) {
|
|
6401
6395
|
if (family === 6) {
|
|
6402
|
-
if (
|
|
6396
|
+
if (platform === "darwin") {
|
|
6403
6397
|
return {
|
|
6404
6398
|
command: "ping6",
|
|
6405
6399
|
args: ["-n", "-c", "3", address],
|
|
@@ -6420,7 +6414,7 @@ function buildUnixPingPlan(platform2, family, address, timeoutMs = PING_TIMEOUT_
|
|
|
6420
6414
|
env: BASE_ENV
|
|
6421
6415
|
};
|
|
6422
6416
|
}
|
|
6423
|
-
if (
|
|
6417
|
+
if (platform === "darwin") {
|
|
6424
6418
|
return {
|
|
6425
6419
|
command: "ping",
|
|
6426
6420
|
args: ["-n", "-c", "3", "-W", String(timeoutMs), address],
|
|
@@ -6440,8 +6434,8 @@ function buildWindowsPingPlan(address) {
|
|
|
6440
6434
|
env: { BAT_PING_ADDRESS: address }
|
|
6441
6435
|
};
|
|
6442
6436
|
}
|
|
6443
|
-
function sequenceBase(
|
|
6444
|
-
return
|
|
6437
|
+
function sequenceBase(platform) {
|
|
6438
|
+
return platform === "darwin" ? 0 : 1;
|
|
6445
6439
|
}
|
|
6446
6440
|
function parseUnixPingOutput(output, base = sequenceBase("linux")) {
|
|
6447
6441
|
const slots = [null, null, null];
|
|
@@ -6484,10 +6478,10 @@ function parseWindowsPingOutput(output) {
|
|
|
6484
6478
|
}
|
|
6485
6479
|
const record = parsed;
|
|
6486
6480
|
const rawError = record.error;
|
|
6487
|
-
const
|
|
6481
|
+
const error = typeof rawError === "string" && rawError.length > 0 ? rawError : null;
|
|
6488
6482
|
const rtts = record.rtts;
|
|
6489
6483
|
if (!Array.isArray(rtts) || rtts.length !== WORKSTATION_PING_COUNT) {
|
|
6490
|
-
return { rtts: [], error
|
|
6484
|
+
return { rtts: [], error };
|
|
6491
6485
|
}
|
|
6492
6486
|
return {
|
|
6493
6487
|
rtts: rtts.map((entry) => {
|
|
@@ -6496,7 +6490,7 @@ function parseWindowsPingOutput(output) {
|
|
|
6496
6490
|
}
|
|
6497
6491
|
return typeof entry === "number" && Number.isFinite(entry) && entry >= 0 ? entry : null;
|
|
6498
6492
|
}),
|
|
6499
|
-
error
|
|
6493
|
+
error
|
|
6500
6494
|
};
|
|
6501
6495
|
}
|
|
6502
6496
|
function classifyConnectivity(received, output, localFailure) {
|
|
@@ -6523,9 +6517,9 @@ function firstLineMatching(output, pattern) {
|
|
|
6523
6517
|
return line ?? output.trim();
|
|
6524
6518
|
}
|
|
6525
6519
|
async function pingTarget(target, deps) {
|
|
6526
|
-
const
|
|
6520
|
+
const platform = deps.platform ?? process.platform;
|
|
6527
6521
|
const timeoutMs = deps.timeoutMs ?? PING_TIMEOUT_MS;
|
|
6528
|
-
const plan =
|
|
6522
|
+
const plan = platform === "win32" ? buildWindowsPingPlan(target.address) : buildUnixPingPlan(platform, target.family, target.address, timeoutMs);
|
|
6529
6523
|
const childTimeout = deps.childTimeoutMs ?? Math.min(CHILD_TIMEOUT_MS, Math.max(2000, timeoutMs * WORKSTATION_PING_COUNT + 2000));
|
|
6530
6524
|
const result = await deps.exec(plan.command, plan.args, {
|
|
6531
6525
|
timeoutMs: childTimeout,
|
|
@@ -6535,7 +6529,7 @@ async function pingTarget(target, deps) {
|
|
|
6535
6529
|
let rtts;
|
|
6536
6530
|
let localFailure = false;
|
|
6537
6531
|
let failureDetail;
|
|
6538
|
-
if (
|
|
6532
|
+
if (platform === "win32") {
|
|
6539
6533
|
const parsed = parseWindowsPingOutput(result.stdout);
|
|
6540
6534
|
rtts = parsed.rtts;
|
|
6541
6535
|
if (parsed.error) {
|
|
@@ -6546,7 +6540,7 @@ async function pingTarget(target, deps) {
|
|
|
6546
6540
|
failureDetail = "unreadable ping result";
|
|
6547
6541
|
}
|
|
6548
6542
|
} else {
|
|
6549
|
-
rtts = parseUnixPingOutput(result.stdout, sequenceBase(
|
|
6543
|
+
rtts = parseUnixPingOutput(result.stdout, sequenceBase(platform));
|
|
6550
6544
|
}
|
|
6551
6545
|
const combined = `${result.stdout}${result.stderr}`;
|
|
6552
6546
|
const permissionFailure = /operation not permitted|permission denied|not permitted|must be root|socket:/i.test(combined);
|
|
@@ -6563,7 +6557,7 @@ async function pingTarget(target, deps) {
|
|
|
6563
6557
|
const answered = countAnswered(rtts);
|
|
6564
6558
|
const unreachable = /unreachable|no route to host/i.test(combined);
|
|
6565
6559
|
if (answered === 0 && !unreachable && !result.timedOut) {
|
|
6566
|
-
localFailure =
|
|
6560
|
+
localFailure = platform === "darwin" ? !(result.code === 2 && /packet loss/i.test(combined)) : result.code !== null && result.code >= 2;
|
|
6567
6561
|
}
|
|
6568
6562
|
}
|
|
6569
6563
|
const received = countAnswered(rtts);
|
|
@@ -6711,14 +6705,14 @@ function parseMemAvailableKb(text) {
|
|
|
6711
6705
|
async function collectMemory(deps = {}) {
|
|
6712
6706
|
const total = Math.max(1, Math.floor(deps.total ?? totalmem()));
|
|
6713
6707
|
let available = deps.free ? deps.free() : freemem();
|
|
6714
|
-
const
|
|
6715
|
-
if (
|
|
6708
|
+
const platform = deps.platform ?? osPlatform();
|
|
6709
|
+
if (platform === "linux") {
|
|
6716
6710
|
try {
|
|
6717
|
-
const
|
|
6711
|
+
const readFile = deps.readFile ?? ((path, options) => fsp.readFile(path, {
|
|
6718
6712
|
encoding: "utf-8",
|
|
6719
6713
|
...options?.signal ? { signal: options.signal } : {}
|
|
6720
6714
|
}));
|
|
6721
|
-
const text = await
|
|
6715
|
+
const text = await readFile("/proc/meminfo", deps.signal ? { signal: deps.signal } : undefined);
|
|
6722
6716
|
const parsed = parseMemAvailableKb(text);
|
|
6723
6717
|
if (parsed !== null) {
|
|
6724
6718
|
available = parsed;
|
|
@@ -6733,9 +6727,9 @@ async function collectMemory(deps = {}) {
|
|
|
6733
6727
|
used_pct: Math.min(100, Math.max(0, usedPct))
|
|
6734
6728
|
};
|
|
6735
6729
|
}
|
|
6736
|
-
function diskMounts(
|
|
6737
|
-
if (
|
|
6738
|
-
return [`${
|
|
6730
|
+
function diskMounts(platform, env) {
|
|
6731
|
+
if (platform === "win32") {
|
|
6732
|
+
return [`${env.SystemDrive ?? "C:"}\\`];
|
|
6739
6733
|
}
|
|
6740
6734
|
return ["/"];
|
|
6741
6735
|
}
|
|
@@ -6755,7 +6749,7 @@ function diskFromStats(mount, stats) {
|
|
|
6755
6749
|
};
|
|
6756
6750
|
}
|
|
6757
6751
|
async function collectDisks(deps = {}) {
|
|
6758
|
-
const
|
|
6752
|
+
const platform = deps.platform ?? osPlatform();
|
|
6759
6753
|
const statfs = deps.statfs ?? ((path) => statfsInChild(path, {
|
|
6760
6754
|
exec: deps.exec ?? runCommand2,
|
|
6761
6755
|
...deps.nodePath ? { nodePath: deps.nodePath } : {},
|
|
@@ -6764,7 +6758,7 @@ async function collectDisks(deps = {}) {
|
|
|
6764
6758
|
}));
|
|
6765
6759
|
const disk = [];
|
|
6766
6760
|
const errors = [];
|
|
6767
|
-
for (const mount of diskMounts(
|
|
6761
|
+
for (const mount of diskMounts(platform, deps.env ?? process.env)) {
|
|
6768
6762
|
try {
|
|
6769
6763
|
const stats = await statfs(mount, deps.signal ? { signal: deps.signal } : undefined);
|
|
6770
6764
|
const entry = diskFromStats(mount, stats);
|
|
@@ -6779,11 +6773,11 @@ async function collectDisks(deps = {}) {
|
|
|
6779
6773
|
}
|
|
6780
6774
|
return { disk, errors: errors.map((line) => truncateText(line, WORKSTATION_LIMITS.errorText)) };
|
|
6781
6775
|
}
|
|
6782
|
-
function familyOf(
|
|
6783
|
-
if (
|
|
6776
|
+
function familyOf(info) {
|
|
6777
|
+
if (info.family === "IPv4" || info.family === 4) {
|
|
6784
6778
|
return 4;
|
|
6785
6779
|
}
|
|
6786
|
-
if (
|
|
6780
|
+
if (info.family === "IPv6" || info.family === 6) {
|
|
6787
6781
|
return 6;
|
|
6788
6782
|
}
|
|
6789
6783
|
return null;
|
|
@@ -6794,17 +6788,17 @@ function collectNetwork(interfaces = networkInterfaces()) {
|
|
|
6794
6788
|
const entries = interfaces[name] ?? [];
|
|
6795
6789
|
const addresses = [];
|
|
6796
6790
|
const seen = new Set;
|
|
6797
|
-
for (const
|
|
6798
|
-
const family = familyOf(
|
|
6791
|
+
for (const info of entries) {
|
|
6792
|
+
const family = familyOf(info);
|
|
6799
6793
|
if (!family) {
|
|
6800
6794
|
continue;
|
|
6801
6795
|
}
|
|
6802
|
-
const address =
|
|
6796
|
+
const address = info.address.split("%")[0] ?? "";
|
|
6803
6797
|
if (ipFamily(address) !== family || seen.has(address)) {
|
|
6804
6798
|
continue;
|
|
6805
6799
|
}
|
|
6806
6800
|
seen.add(address);
|
|
6807
|
-
addresses.push({ address, family, internal:
|
|
6801
|
+
addresses.push({ address, family, internal: info.internal });
|
|
6808
6802
|
if (addresses.length >= WORKSTATION_LIMITS.addressesPerInterface) {
|
|
6809
6803
|
break;
|
|
6810
6804
|
}
|
|
@@ -7000,8 +6994,8 @@ async function runWorkstationProbe(deps) {
|
|
|
7000
6994
|
const collector = deps.collector ?? defaultCollector();
|
|
7001
6995
|
const exec = deps.exec ?? runCommand2;
|
|
7002
6996
|
const functions = resolveProbeFunctions(deps);
|
|
7003
|
-
const
|
|
7004
|
-
const credential = deps.credential === undefined ? readCredential(deps.paths, { platform
|
|
6997
|
+
const platform = deps.platform ?? process.platform;
|
|
6998
|
+
const credential = deps.credential === undefined ? readCredential(deps.paths, { platform }) : deps.credential;
|
|
7005
6999
|
if (!credential) {
|
|
7006
7000
|
output.error("Not logged in — run 'bat workstation login' first.");
|
|
7007
7001
|
return { exitCode: 1 };
|
|
@@ -7045,7 +7039,7 @@ async function runWorkstationProbe(deps) {
|
|
|
7045
7039
|
deadline,
|
|
7046
7040
|
signal,
|
|
7047
7041
|
exec,
|
|
7048
|
-
platform
|
|
7042
|
+
platform,
|
|
7049
7043
|
ping: functions.ping,
|
|
7050
7044
|
errors
|
|
7051
7045
|
});
|
|
@@ -7307,10 +7301,10 @@ function restoreFiles(files) {
|
|
|
7307
7301
|
writeFileSync5(file.path, file.content, { mode: 420 });
|
|
7308
7302
|
}
|
|
7309
7303
|
}
|
|
7310
|
-
function parseWindowsTaskSnapshot(
|
|
7304
|
+
function parseWindowsTaskSnapshot(stdout) {
|
|
7311
7305
|
let parsed;
|
|
7312
7306
|
try {
|
|
7313
|
-
parsed = JSON.parse(
|
|
7307
|
+
parsed = JSON.parse(stdout.trim());
|
|
7314
7308
|
} catch {
|
|
7315
7309
|
throw new Error("task query returned invalid JSON");
|
|
7316
7310
|
}
|
|
@@ -7430,18 +7424,18 @@ async function installSchedule(context, options) {
|
|
|
7430
7424
|
}
|
|
7431
7425
|
async function removeSchedule(context, backend, exec) {
|
|
7432
7426
|
if (backend === "cron") {
|
|
7433
|
-
const
|
|
7427
|
+
const removed = await removeCron(exec);
|
|
7434
7428
|
return {
|
|
7435
7429
|
backend,
|
|
7436
7430
|
removed: [],
|
|
7437
|
-
warnings:
|
|
7431
|
+
warnings: removed ? [] : ["no workstation cron block found"]
|
|
7438
7432
|
};
|
|
7439
7433
|
}
|
|
7440
7434
|
if (backend === "windows") {
|
|
7441
|
-
const
|
|
7435
|
+
const warnings = [];
|
|
7442
7436
|
const existing = await snapshotWindowsTask(exec);
|
|
7443
7437
|
if (existing === null) {
|
|
7444
|
-
|
|
7438
|
+
warnings.push("no workstation task found");
|
|
7445
7439
|
} else {
|
|
7446
7440
|
const result = await exec("schtasks", ["/Delete", "/TN", WINDOWS_TASK, "/F"], {
|
|
7447
7441
|
timeoutMs: 15000
|
|
@@ -7453,7 +7447,7 @@ async function removeSchedule(context, backend, exec) {
|
|
|
7453
7447
|
throw new Error(`schtasks /Delete failed: ${failureDetail(result)}`);
|
|
7454
7448
|
}
|
|
7455
7449
|
}
|
|
7456
|
-
return { backend, removed: [], warnings
|
|
7450
|
+
return { backend, removed: [], warnings };
|
|
7457
7451
|
}
|
|
7458
7452
|
const plan = buildPlan(context, backend);
|
|
7459
7453
|
const warnings = [];
|
|
@@ -7525,13 +7519,13 @@ async function runSetupCommand(deps = {}) {
|
|
|
7525
7519
|
warn("No workstation schedule is recorded for this machine.");
|
|
7526
7520
|
return 0;
|
|
7527
7521
|
}
|
|
7528
|
-
const
|
|
7522
|
+
const result = await removeSchedule(context, backendOf(record.backend), exec);
|
|
7529
7523
|
deleteScheduleRecord(paths);
|
|
7530
|
-
for (const warning of
|
|
7524
|
+
for (const warning of result.warnings) {
|
|
7531
7525
|
warn(warning);
|
|
7532
7526
|
}
|
|
7533
|
-
success(`Workstation schedule removed (${
|
|
7534
|
-
for (const path of
|
|
7527
|
+
success(`Workstation schedule removed (${result.backend}).`);
|
|
7528
|
+
for (const path of result.removed) {
|
|
7535
7529
|
info(` removed: ${path}`);
|
|
7536
7530
|
}
|
|
7537
7531
|
return 0;
|
|
@@ -7680,10 +7674,6 @@ var init_status = __esm(() => {
|
|
|
7680
7674
|
});
|
|
7681
7675
|
|
|
7682
7676
|
// src/commands/workstation/index.ts
|
|
7683
|
-
var exports_workstation = {};
|
|
7684
|
-
__export(exports_workstation, {
|
|
7685
|
-
default: () => workstation_default
|
|
7686
|
-
});
|
|
7687
7677
|
var workstation_default;
|
|
7688
7678
|
var init_workstation = __esm(() => {
|
|
7689
7679
|
init_dist3();
|
|
@@ -7913,7 +7903,7 @@ init_http();
|
|
|
7913
7903
|
init_output();
|
|
7914
7904
|
var HEARTBEAT_STATUSES = new Set(["running", "stopped"]);
|
|
7915
7905
|
function parseAgents(raw) {
|
|
7916
|
-
const entries = raw.split(",").map((
|
|
7906
|
+
const entries = raw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
7917
7907
|
if (entries.length === 0) {
|
|
7918
7908
|
return { ok: false, error: "No agents specified" };
|
|
7919
7909
|
}
|
|
@@ -8032,13 +8022,13 @@ async function runAgentList(manager) {
|
|
|
8032
8022
|
return 0;
|
|
8033
8023
|
}
|
|
8034
8024
|
info(`${agents.length} agent(s):`);
|
|
8035
|
-
table(["ID", "MATCH_KEY", "NICKNAME", "STATUS", "LAST SEEN", "SRC_KEY"], agents.map((
|
|
8036
|
-
|
|
8037
|
-
truncate(
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
formatTime(
|
|
8041
|
-
|
|
8025
|
+
table(["ID", "MATCH_KEY", "NICKNAME", "STATUS", "LAST SEEN", "SRC_KEY"], agents.map((a) => [
|
|
8026
|
+
a.id,
|
|
8027
|
+
truncate(a.match_key, 30),
|
|
8028
|
+
a.nickname ?? "—",
|
|
8029
|
+
a.status,
|
|
8030
|
+
formatTime(a.last_seen_at),
|
|
8031
|
+
a.source_key_short
|
|
8042
8032
|
]));
|
|
8043
8033
|
return 0;
|
|
8044
8034
|
} catch (err) {
|
|
@@ -8075,7 +8065,7 @@ function parseTagIds(raw) {
|
|
|
8075
8065
|
if (raw.trim() === "") {
|
|
8076
8066
|
return { ok: true, ids: [] };
|
|
8077
8067
|
}
|
|
8078
|
-
const parts = raw.split(",").map((
|
|
8068
|
+
const parts = raw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
8079
8069
|
const ids = [];
|
|
8080
8070
|
const seen = new Set;
|
|
8081
8071
|
for (const part of parts) {
|
|
@@ -8131,7 +8121,7 @@ async function runAgentTags(manager, agentId, opts) {
|
|
|
8131
8121
|
success(`Tags set on ${agent.id}: [${ids.join(", ")}]`);
|
|
8132
8122
|
}
|
|
8133
8123
|
if (agent.tags.length > 0) {
|
|
8134
|
-
info(` tags: ${agent.tags.map((
|
|
8124
|
+
info(` tags: ${agent.tags.map((t) => t.name).join(", ")}`);
|
|
8135
8125
|
}
|
|
8136
8126
|
return 0;
|
|
8137
8127
|
} catch (err) {
|
|
@@ -8605,13 +8595,13 @@ async function runAssetList(manager) {
|
|
|
8605
8595
|
return 0;
|
|
8606
8596
|
}
|
|
8607
8597
|
info(`${assets.length} asset(s):`);
|
|
8608
|
-
table(["ID", "TYPE", "NAME", "PROVIDER", "STATUS", "HOST"], assets.map((
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
truncate(
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8598
|
+
table(["ID", "TYPE", "NAME", "PROVIDER", "STATUS", "HOST"], assets.map((a) => [
|
|
8599
|
+
a.id,
|
|
8600
|
+
a.type,
|
|
8601
|
+
truncate(a.name, 30),
|
|
8602
|
+
a.provider ?? "—",
|
|
8603
|
+
a.status,
|
|
8604
|
+
a.hostname ?? "—"
|
|
8615
8605
|
]));
|
|
8616
8606
|
return 0;
|
|
8617
8607
|
} catch (err) {
|
|
@@ -8648,7 +8638,7 @@ function parseTagIds2(raw) {
|
|
|
8648
8638
|
if (raw.trim() === "") {
|
|
8649
8639
|
return { ok: true, ids: [] };
|
|
8650
8640
|
}
|
|
8651
|
-
const parts = raw.split(",").map((
|
|
8641
|
+
const parts = raw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
8652
8642
|
const ids = [];
|
|
8653
8643
|
const seen = new Set;
|
|
8654
8644
|
for (const part of parts) {
|
|
@@ -8704,7 +8694,7 @@ async function runAssetTags(manager, assetId, opts) {
|
|
|
8704
8694
|
success(`Tags set on ${asset.id}: [${ids.join(", ")}]`);
|
|
8705
8695
|
}
|
|
8706
8696
|
if (asset.tags.length > 0) {
|
|
8707
|
-
info(` tags: ${asset.tags.map((
|
|
8697
|
+
info(` tags: ${asset.tags.map((t) => t.name).join(", ")}`);
|
|
8708
8698
|
}
|
|
8709
8699
|
return 0;
|
|
8710
8700
|
} catch (err) {
|
|
@@ -9134,12 +9124,12 @@ async function runBindingList(manager) {
|
|
|
9134
9124
|
return 0;
|
|
9135
9125
|
}
|
|
9136
9126
|
info(`${bindings.length} binding(s):`);
|
|
9137
|
-
table(["AGENT_ID", "AGENT", "ASSET_ID", "ASSET", "TYPE"], bindings.map((
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9127
|
+
table(["AGENT_ID", "AGENT", "ASSET_ID", "ASSET", "TYPE"], bindings.map((b) => [
|
|
9128
|
+
b.agent_id,
|
|
9129
|
+
b.agent_nickname ?? "—",
|
|
9130
|
+
b.asset_id,
|
|
9131
|
+
b.asset_name,
|
|
9132
|
+
b.asset_type
|
|
9143
9133
|
]));
|
|
9144
9134
|
return 0;
|
|
9145
9135
|
} catch (err) {
|
|
@@ -9311,7 +9301,7 @@ function isProcessRunning(pid) {
|
|
|
9311
9301
|
// src/commands/service/run.ts
|
|
9312
9302
|
var HEARTBEAT_STATUSES2 = new Set(["running", "stopped"]);
|
|
9313
9303
|
function parseAgentsArg(raw) {
|
|
9314
|
-
const entries = raw.split(",").map((
|
|
9304
|
+
const entries = raw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
9315
9305
|
if (entries.length === 0) {
|
|
9316
9306
|
return { ok: false, error: "No agents specified" };
|
|
9317
9307
|
}
|
|
@@ -9724,7 +9714,7 @@ var main = defineCommand({
|
|
|
9724
9714
|
asset: asset_default,
|
|
9725
9715
|
binding: binding_default,
|
|
9726
9716
|
service: service_default,
|
|
9727
|
-
workstation: () => Promise.resolve().then(() => (init_workstation(),
|
|
9717
|
+
workstation: () => Promise.resolve().then(() => (init_workstation(), {})).then((module) => workstation_default)
|
|
9728
9718
|
}
|
|
9729
9719
|
});
|
|
9730
9720
|
|