@bamboocss/dev 1.11.3 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-default.cjs +745 -136
- package/dist/cli-default.mjs +633 -4
- package/dist/cli-main.cjs +141 -7
- package/dist/cli-main.mjs +493 -1
- package/dist/errors.cjs +119 -2
- package/dist/errors.mjs +118 -1
- package/dist/index.cjs +0 -1
- package/dist/interactive.cjs +137 -2
- package/dist/interactive.mjs +113 -1
- package/dist/presets.cjs +23 -2
- package/package.json +13 -13
- package/dist/chunk-C2EiDwsr.cjs +0 -35
- package/dist/cli-main-DdGGICwA.mjs +0 -404
- package/dist/errors-BhazEH_W.cjs +0 -125
- package/dist/errors-DyRfueHt.mjs +0 -119
- package/dist/interactive-BD639MCr.cjs +0 -134
- package/dist/interactive-D22006je.mjs +0 -115
package/dist/cli-default.cjs
CHANGED
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
//#endregion
|
|
6
25
|
let node_process = require("node:process");
|
|
7
|
-
node_process =
|
|
26
|
+
node_process = __toESM(node_process, 1);
|
|
8
27
|
let node_child_process = require("node:child_process");
|
|
9
28
|
let node_url = require("node:url");
|
|
10
29
|
let node_path = require("node:path");
|
|
11
|
-
node_path =
|
|
30
|
+
node_path = __toESM(node_path, 1);
|
|
12
31
|
let node_util = require("node:util");
|
|
13
32
|
let node_os = require("node:os");
|
|
14
|
-
node_os =
|
|
33
|
+
node_os = __toESM(node_os, 1);
|
|
15
34
|
let os = require("os");
|
|
16
|
-
os =
|
|
35
|
+
os = __toESM(os, 1);
|
|
17
36
|
let path = require("path");
|
|
18
|
-
path =
|
|
37
|
+
path = __toESM(path, 1);
|
|
19
38
|
let node_fs = require("node:fs");
|
|
20
|
-
node_fs =
|
|
39
|
+
node_fs = __toESM(node_fs, 1);
|
|
21
40
|
let node_tty = require("node:tty");
|
|
22
|
-
node_tty =
|
|
41
|
+
node_tty = __toESM(node_tty, 1);
|
|
42
|
+
let worker_threads = require("worker_threads");
|
|
43
|
+
let _bamboocss_shared = require("@bamboocss/shared");
|
|
44
|
+
let _bamboocss_config = require("@bamboocss/config");
|
|
45
|
+
let _bamboocss_logger = require("@bamboocss/logger");
|
|
46
|
+
let _bamboocss_node = require("@bamboocss/node");
|
|
47
|
+
let cac = require("cac");
|
|
48
|
+
let _clack_prompts = require("@clack/prompts");
|
|
49
|
+
_clack_prompts = __toESM(_clack_prompts);
|
|
23
50
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
24
|
-
var require_polyfills$1 = /* @__PURE__ */
|
|
51
|
+
var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25
52
|
var constants$1 = require("constants");
|
|
26
53
|
var origCwd = process.cwd;
|
|
27
54
|
var cwd = null;
|
|
@@ -273,7 +300,7 @@ var require_polyfills$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
273
300
|
}));
|
|
274
301
|
//#endregion
|
|
275
302
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
276
|
-
var require_legacy_streams$1 = /* @__PURE__ */
|
|
303
|
+
var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
277
304
|
var Stream$2 = require("stream").Stream;
|
|
278
305
|
module.exports = legacy;
|
|
279
306
|
function legacy(fs) {
|
|
@@ -362,7 +389,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
|
|
|
362
389
|
}));
|
|
363
390
|
//#endregion
|
|
364
391
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
365
|
-
var require_clone$1 = /* @__PURE__ */
|
|
392
|
+
var require_clone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
366
393
|
module.exports = clone;
|
|
367
394
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
368
395
|
return obj.__proto__;
|
|
@@ -378,8 +405,8 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
378
405
|
}
|
|
379
406
|
}));
|
|
380
407
|
//#endregion
|
|
381
|
-
//#region ../../node_modules/.pnpm/
|
|
382
|
-
var
|
|
408
|
+
//#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
|
|
409
|
+
var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
383
410
|
var fs$9 = require("fs");
|
|
384
411
|
var polyfills = require_polyfills$1();
|
|
385
412
|
var legacy = require_legacy_streams$1();
|
|
@@ -732,10 +759,7 @@ var require_graceful_fs$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
732
759
|
}
|
|
733
760
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
734
761
|
}
|
|
735
|
-
}));
|
|
736
|
-
//#endregion
|
|
737
|
-
//#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
|
|
738
|
-
var import_graceful_fs = /* @__PURE__ */ require_chunk.__toESM(require_graceful_fs$1(), 1);
|
|
762
|
+
})))(), 1);
|
|
739
763
|
const homeDirectory = os.default.homedir();
|
|
740
764
|
const { env: env$2 } = process;
|
|
741
765
|
const xdgData = env$2.XDG_DATA_HOME || (homeDirectory ? path.default.join(homeDirectory, ".local", "share") : void 0);
|
|
@@ -1665,12 +1689,12 @@ const chalk = createChalk();
|
|
|
1665
1689
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1666
1690
|
//#endregion
|
|
1667
1691
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
1668
|
-
var require_debug = /* @__PURE__ */
|
|
1692
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1669
1693
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
1670
1694
|
}));
|
|
1671
1695
|
//#endregion
|
|
1672
1696
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
1673
|
-
var require_constants = /* @__PURE__ */
|
|
1697
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1674
1698
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
1675
1699
|
const MAX_LENGTH = 256;
|
|
1676
1700
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -1695,7 +1719,7 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
1695
1719
|
}));
|
|
1696
1720
|
//#endregion
|
|
1697
1721
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
|
|
1698
|
-
var require_re = /* @__PURE__ */
|
|
1722
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1699
1723
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
1700
1724
|
const debug = require_debug();
|
|
1701
1725
|
exports = module.exports = {};
|
|
@@ -1774,7 +1798,7 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
1774
1798
|
}));
|
|
1775
1799
|
//#endregion
|
|
1776
1800
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
1777
|
-
var require_parse_options = /* @__PURE__ */
|
|
1801
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1778
1802
|
const looseOption = Object.freeze({ loose: true });
|
|
1779
1803
|
const emptyOpts = Object.freeze({});
|
|
1780
1804
|
const parseOptions = (options) => {
|
|
@@ -1786,7 +1810,7 @@ var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
1786
1810
|
}));
|
|
1787
1811
|
//#endregion
|
|
1788
1812
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
1789
|
-
var require_identifiers = /* @__PURE__ */
|
|
1813
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1790
1814
|
const numeric = /^[0-9]+$/;
|
|
1791
1815
|
const compareIdentifiers = (a, b) => {
|
|
1792
1816
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -1806,7 +1830,7 @@ var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1806
1830
|
}));
|
|
1807
1831
|
//#endregion
|
|
1808
1832
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
1809
|
-
var require_semver$1 = /* @__PURE__ */
|
|
1833
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1810
1834
|
const debug = require_debug();
|
|
1811
1835
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
1812
1836
|
const { safeRe: re, t } = require_re();
|
|
@@ -1984,7 +2008,7 @@ var require_semver$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
1984
2008
|
}));
|
|
1985
2009
|
//#endregion
|
|
1986
2010
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
1987
|
-
var require_parse = /* @__PURE__ */
|
|
2011
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1988
2012
|
const SemVer = require_semver$1();
|
|
1989
2013
|
const parse = (version, options, throwErrors = false) => {
|
|
1990
2014
|
if (version instanceof SemVer) return version;
|
|
@@ -1999,7 +2023,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
1999
2023
|
}));
|
|
2000
2024
|
//#endregion
|
|
2001
2025
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
2002
|
-
var require_diff = /* @__PURE__ */
|
|
2026
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2003
2027
|
const parse = require_parse();
|
|
2004
2028
|
const diff = (version1, version2) => {
|
|
2005
2029
|
const v1 = parse(version1, null, true);
|
|
@@ -2027,22 +2051,22 @@ var require_diff = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
2027
2051
|
}));
|
|
2028
2052
|
//#endregion
|
|
2029
2053
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
2030
|
-
var require_compare = /* @__PURE__ */
|
|
2054
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2031
2055
|
const SemVer = require_semver$1();
|
|
2032
2056
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2033
2057
|
module.exports = compare;
|
|
2034
2058
|
}));
|
|
2035
2059
|
//#endregion
|
|
2036
2060
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
2037
|
-
var require_gt = /* @__PURE__ */
|
|
2061
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2038
2062
|
const compare = require_compare();
|
|
2039
2063
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2040
2064
|
module.exports = gt;
|
|
2041
2065
|
}));
|
|
2042
2066
|
//#endregion
|
|
2043
2067
|
//#region ../../node_modules/.pnpm/ky@1.14.0/node_modules/ky/distribution/errors/HTTPError.js
|
|
2044
|
-
var import_diff = /* @__PURE__ */
|
|
2045
|
-
var import_gt = /* @__PURE__ */
|
|
2068
|
+
var import_diff = /* @__PURE__ */ __toESM(require_diff(), 1);
|
|
2069
|
+
var import_gt = /* @__PURE__ */ __toESM(require_gt(), 1);
|
|
2046
2070
|
var HTTPError = class extends Error {
|
|
2047
2071
|
response;
|
|
2048
2072
|
request;
|
|
@@ -2830,7 +2854,7 @@ const createInstance = (defaults) => {
|
|
|
2830
2854
|
const ky = createInstance();
|
|
2831
2855
|
//#endregion
|
|
2832
2856
|
//#region ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
|
|
2833
|
-
var require_ini$1 = /* @__PURE__ */
|
|
2857
|
+
var require_ini$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2834
2858
|
exports.parse = exports.decode = decode;
|
|
2835
2859
|
exports.stringify = exports.encode = encode;
|
|
2836
2860
|
exports.safe = safe;
|
|
@@ -2962,7 +2986,7 @@ var require_ini$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
2962
2986
|
}));
|
|
2963
2987
|
//#endregion
|
|
2964
2988
|
//#region ../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js
|
|
2965
|
-
var require_strip_json_comments = /* @__PURE__ */
|
|
2989
|
+
var require_strip_json_comments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2966
2990
|
var singleComment = 1;
|
|
2967
2991
|
var multiComment = 2;
|
|
2968
2992
|
function stripWithoutWhitespace() {
|
|
@@ -3021,7 +3045,7 @@ var require_strip_json_comments = /* @__PURE__ */ require_chunk.__commonJSMin(((
|
|
|
3021
3045
|
}));
|
|
3022
3046
|
//#endregion
|
|
3023
3047
|
//#region ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
|
|
3024
|
-
var require_utils = /* @__PURE__ */
|
|
3048
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3025
3049
|
var fs$6 = require("fs");
|
|
3026
3050
|
var ini = require_ini$1();
|
|
3027
3051
|
var path$11 = require("path");
|
|
@@ -3106,7 +3130,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
3106
3130
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
3107
3131
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3108
3132
|
*/
|
|
3109
|
-
var require_deep_extend = /* @__PURE__ */
|
|
3133
|
+
var require_deep_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3110
3134
|
function isSpecificValue(val) {
|
|
3111
3135
|
return val instanceof Buffer || val instanceof Date || val instanceof RegExp ? true : false;
|
|
3112
3136
|
}
|
|
@@ -3178,7 +3202,7 @@ var require_deep_extend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
3178
3202
|
}));
|
|
3179
3203
|
//#endregion
|
|
3180
3204
|
//#region ../../node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js
|
|
3181
|
-
var require_minimist = /* @__PURE__ */
|
|
3205
|
+
var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3182
3206
|
function hasKey(obj, keys) {
|
|
3183
3207
|
var o = obj;
|
|
3184
3208
|
keys.slice(0, -1).forEach(function(key) {
|
|
@@ -3347,10 +3371,10 @@ var require_minimist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
3347
3371
|
};
|
|
3348
3372
|
}));
|
|
3349
3373
|
//#endregion
|
|
3350
|
-
//#region ../../node_modules/.pnpm/
|
|
3351
|
-
var
|
|
3374
|
+
//#region ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
|
|
3375
|
+
var import_rc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3352
3376
|
var cc = require_utils();
|
|
3353
|
-
var join = require("path").join;
|
|
3377
|
+
var join$1 = require("path").join;
|
|
3354
3378
|
var deepExtend = require_deep_extend();
|
|
3355
3379
|
var etc = "/etc";
|
|
3356
3380
|
var win = process.platform === "win32";
|
|
@@ -3371,12 +3395,12 @@ var require_rc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
3371
3395
|
configFiles.push(file);
|
|
3372
3396
|
}
|
|
3373
3397
|
}
|
|
3374
|
-
if (!win) [join(etc, name, "config"), join(etc, name + "rc")].forEach(addConfigFile);
|
|
3398
|
+
if (!win) [join$1(etc, name, "config"), join$1(etc, name + "rc")].forEach(addConfigFile);
|
|
3375
3399
|
if (home) [
|
|
3376
|
-
join(home, ".config", name, "config"),
|
|
3377
|
-
join(home, ".config", name),
|
|
3378
|
-
join(home, "." + name, "config"),
|
|
3379
|
-
join(home, "." + name + "rc")
|
|
3400
|
+
join$1(home, ".config", name, "config"),
|
|
3401
|
+
join$1(home, ".config", name),
|
|
3402
|
+
join$1(home, "." + name, "config"),
|
|
3403
|
+
join$1(home, "." + name + "rc")
|
|
3380
3404
|
].forEach(addConfigFile);
|
|
3381
3405
|
addConfigFile(cc.find("." + name + "rc"));
|
|
3382
3406
|
if (env.config) addConfigFile(env.config);
|
|
@@ -3390,10 +3414,7 @@ var require_rc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
3390
3414
|
} : void 0
|
|
3391
3415
|
]));
|
|
3392
3416
|
};
|
|
3393
|
-
}));
|
|
3394
|
-
//#endregion
|
|
3395
|
-
//#region ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
|
|
3396
|
-
var import_rc = /* @__PURE__ */ require_chunk.__toESM(require_rc(), 1);
|
|
3417
|
+
})))(), 1);
|
|
3397
3418
|
function registryUrl(scope) {
|
|
3398
3419
|
const result = (0, import_rc.default)("npm", { registry: "https://registry.npmjs.org/" });
|
|
3399
3420
|
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
|
|
@@ -3401,7 +3422,7 @@ function registryUrl(scope) {
|
|
|
3401
3422
|
}
|
|
3402
3423
|
//#endregion
|
|
3403
3424
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
3404
|
-
var require_polyfills = /* @__PURE__ */
|
|
3425
|
+
var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3405
3426
|
var constants = require("constants");
|
|
3406
3427
|
var origCwd = process.cwd;
|
|
3407
3428
|
var cwd = null;
|
|
@@ -3653,7 +3674,7 @@ var require_polyfills = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
3653
3674
|
}));
|
|
3654
3675
|
//#endregion
|
|
3655
3676
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
3656
|
-
var require_legacy_streams = /* @__PURE__ */
|
|
3677
|
+
var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3657
3678
|
var Stream$1 = require("stream").Stream;
|
|
3658
3679
|
module.exports = legacy;
|
|
3659
3680
|
function legacy(fs) {
|
|
@@ -3742,7 +3763,7 @@ var require_legacy_streams = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
3742
3763
|
}));
|
|
3743
3764
|
//#endregion
|
|
3744
3765
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
3745
|
-
var require_clone = /* @__PURE__ */
|
|
3766
|
+
var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3746
3767
|
module.exports = clone;
|
|
3747
3768
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
3748
3769
|
return obj.__proto__;
|
|
@@ -3759,7 +3780,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
3759
3780
|
}));
|
|
3760
3781
|
//#endregion
|
|
3761
3782
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
3762
|
-
var require_graceful_fs = /* @__PURE__ */
|
|
3783
|
+
var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3763
3784
|
var fs$5 = require("fs");
|
|
3764
3785
|
var polyfills = require_polyfills();
|
|
3765
3786
|
var legacy = require_legacy_streams();
|
|
@@ -4115,7 +4136,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
4115
4136
|
}));
|
|
4116
4137
|
//#endregion
|
|
4117
4138
|
//#region ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/ca-file.js
|
|
4118
|
-
var require_ca_file = /* @__PURE__ */
|
|
4139
|
+
var require_ca_file = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4119
4140
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
4120
4141
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4121
4142
|
};
|
|
@@ -4136,7 +4157,7 @@ var require_ca_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
4136
4157
|
}));
|
|
4137
4158
|
//#endregion
|
|
4138
4159
|
//#region ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/index.js
|
|
4139
|
-
var require_dist$1 = /* @__PURE__ */
|
|
4160
|
+
var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4140
4161
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
4141
4162
|
if (k2 === void 0) k2 = k;
|
|
4142
4163
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -4159,7 +4180,7 @@ var require_dist$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4159
4180
|
}));
|
|
4160
4181
|
//#endregion
|
|
4161
4182
|
//#region ../../node_modules/.pnpm/proto-list@1.2.4/node_modules/proto-list/proto-list.js
|
|
4162
|
-
var require_proto_list = /* @__PURE__ */
|
|
4183
|
+
var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4163
4184
|
module.exports = ProtoList;
|
|
4164
4185
|
function setProto(obj, proto) {
|
|
4165
4186
|
if (typeof Object.setPrototypeOf === "function") return Object.setPrototypeOf(obj, proto);
|
|
@@ -4240,7 +4261,7 @@ var require_proto_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
4240
4261
|
}));
|
|
4241
4262
|
//#endregion
|
|
4242
4263
|
//#region ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
4243
|
-
var require_config_chain = /* @__PURE__ */
|
|
4264
|
+
var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4244
4265
|
var ProtoList = require_proto_list(), path$10 = require("path"), fs$4 = require("fs"), ini$1 = require_ini$1(), EE = require("events").EventEmitter, url$1 = require("url"), http = require("http");
|
|
4245
4266
|
var exports = module.exports = function() {
|
|
4246
4267
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
@@ -4453,7 +4474,7 @@ var require_config_chain = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
4453
4474
|
}));
|
|
4454
4475
|
//#endregion
|
|
4455
4476
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
4456
|
-
var require_envKeyToSetting = /* @__PURE__ */
|
|
4477
|
+
var require_envKeyToSetting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4457
4478
|
module.exports = function(x) {
|
|
4458
4479
|
const colonIndex = x.indexOf(":");
|
|
4459
4480
|
if (colonIndex === -1) return normalize(x);
|
|
@@ -4471,7 +4492,7 @@ var require_envKeyToSetting = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
4471
4492
|
}));
|
|
4472
4493
|
//#endregion
|
|
4473
4494
|
//#region ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/env-replace.js
|
|
4474
|
-
var require_env_replace = /* @__PURE__ */
|
|
4495
|
+
var require_env_replace = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4475
4496
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4476
4497
|
exports.envReplace = void 0;
|
|
4477
4498
|
const ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
@@ -4496,7 +4517,7 @@ var require_env_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
4496
4517
|
}));
|
|
4497
4518
|
//#endregion
|
|
4498
4519
|
//#region ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/index.js
|
|
4499
|
-
var require_dist = /* @__PURE__ */
|
|
4520
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4500
4521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4501
4522
|
exports.envReplace = void 0;
|
|
4502
4523
|
var env_replace_1 = require_env_replace();
|
|
@@ -4509,7 +4530,7 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4509
4530
|
}));
|
|
4510
4531
|
//#endregion
|
|
4511
4532
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js
|
|
4512
|
-
var require_util = /* @__PURE__ */
|
|
4533
|
+
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4513
4534
|
const fs$3 = require("fs");
|
|
4514
4535
|
const path$9 = require("path");
|
|
4515
4536
|
const { envReplace } = require_dist();
|
|
@@ -4578,7 +4599,7 @@ var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4578
4599
|
}));
|
|
4579
4600
|
//#endregion
|
|
4580
4601
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js
|
|
4581
|
-
var require_types = /* @__PURE__ */
|
|
4602
|
+
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4582
4603
|
const path$8 = require("path");
|
|
4583
4604
|
const Stream = require("stream").Stream;
|
|
4584
4605
|
const url = require("url");
|
|
@@ -4763,7 +4784,7 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4763
4784
|
}));
|
|
4764
4785
|
//#endregion
|
|
4765
4786
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
4766
|
-
var require_conf = /* @__PURE__ */
|
|
4787
|
+
var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4767
4788
|
const { readCAFileSync } = require_dist$1();
|
|
4768
4789
|
const fs$2 = require("fs");
|
|
4769
4790
|
const path$7 = require("path");
|
|
@@ -4892,7 +4913,7 @@ var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
4892
4913
|
}));
|
|
4893
4914
|
//#endregion
|
|
4894
4915
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
4895
|
-
var require_defaults = /* @__PURE__ */
|
|
4916
|
+
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4896
4917
|
const os$2 = require("os");
|
|
4897
4918
|
const path$6 = require("path");
|
|
4898
4919
|
const temp = os$2.tmpdir();
|
|
@@ -5045,7 +5066,7 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
5045
5066
|
}));
|
|
5046
5067
|
//#endregion
|
|
5047
5068
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js
|
|
5048
|
-
var require_npm_conf = /* @__PURE__ */
|
|
5069
|
+
var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5049
5070
|
const path$5 = require("path");
|
|
5050
5071
|
const Conf = require_conf();
|
|
5051
5072
|
const _defaults = require_defaults();
|
|
@@ -5104,7 +5125,7 @@ var require_npm_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
5104
5125
|
}));
|
|
5105
5126
|
//#endregion
|
|
5106
5127
|
//#region ../../node_modules/.pnpm/registry-auth-token@5.1.0/node_modules/registry-auth-token/index.js
|
|
5107
|
-
var require_registry_auth_token = /* @__PURE__ */
|
|
5128
|
+
var require_registry_auth_token = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5108
5129
|
const npmConf = require_npm_conf();
|
|
5109
5130
|
const tokenKey = ":_authToken";
|
|
5110
5131
|
const legacyTokenKey = ":_auth";
|
|
@@ -5193,7 +5214,7 @@ var require_registry_auth_token = /* @__PURE__ */ require_chunk.__commonJSMin(((
|
|
|
5193
5214
|
}));
|
|
5194
5215
|
//#endregion
|
|
5195
5216
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
5196
|
-
var require_valid$1 = /* @__PURE__ */
|
|
5217
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5197
5218
|
const parse = require_parse();
|
|
5198
5219
|
const valid = (version, options) => {
|
|
5199
5220
|
const v = parse(version, options);
|
|
@@ -5203,7 +5224,7 @@ var require_valid$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
5203
5224
|
}));
|
|
5204
5225
|
//#endregion
|
|
5205
5226
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
5206
|
-
var require_clean = /* @__PURE__ */
|
|
5227
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5207
5228
|
const parse = require_parse();
|
|
5208
5229
|
const clean = (version, options) => {
|
|
5209
5230
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -5213,7 +5234,7 @@ var require_clean = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
5213
5234
|
}));
|
|
5214
5235
|
//#endregion
|
|
5215
5236
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
5216
|
-
var require_inc = /* @__PURE__ */
|
|
5237
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5217
5238
|
const SemVer = require_semver$1();
|
|
5218
5239
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
5219
5240
|
if (typeof options === "string") {
|
|
@@ -5231,28 +5252,28 @@ var require_inc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
5231
5252
|
}));
|
|
5232
5253
|
//#endregion
|
|
5233
5254
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
|
|
5234
|
-
var require_major = /* @__PURE__ */
|
|
5255
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5235
5256
|
const SemVer = require_semver$1();
|
|
5236
5257
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
5237
5258
|
module.exports = major;
|
|
5238
5259
|
}));
|
|
5239
5260
|
//#endregion
|
|
5240
5261
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
5241
|
-
var require_minor = /* @__PURE__ */
|
|
5262
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5242
5263
|
const SemVer = require_semver$1();
|
|
5243
5264
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
5244
5265
|
module.exports = minor;
|
|
5245
5266
|
}));
|
|
5246
5267
|
//#endregion
|
|
5247
5268
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
5248
|
-
var require_patch = /* @__PURE__ */
|
|
5269
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5249
5270
|
const SemVer = require_semver$1();
|
|
5250
5271
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
5251
5272
|
module.exports = patch;
|
|
5252
5273
|
}));
|
|
5253
5274
|
//#endregion
|
|
5254
5275
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
5255
|
-
var require_prerelease = /* @__PURE__ */
|
|
5276
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5256
5277
|
const parse = require_parse();
|
|
5257
5278
|
const prerelease = (version, options) => {
|
|
5258
5279
|
const parsed = parse(version, options);
|
|
@@ -5262,21 +5283,21 @@ var require_prerelease = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
5262
5283
|
}));
|
|
5263
5284
|
//#endregion
|
|
5264
5285
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
5265
|
-
var require_rcompare = /* @__PURE__ */
|
|
5286
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5266
5287
|
const compare = require_compare();
|
|
5267
5288
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
5268
5289
|
module.exports = rcompare;
|
|
5269
5290
|
}));
|
|
5270
5291
|
//#endregion
|
|
5271
5292
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
5272
|
-
var require_compare_loose = /* @__PURE__ */
|
|
5293
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5273
5294
|
const compare = require_compare();
|
|
5274
5295
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
5275
5296
|
module.exports = compareLoose;
|
|
5276
5297
|
}));
|
|
5277
5298
|
//#endregion
|
|
5278
5299
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
5279
|
-
var require_compare_build = /* @__PURE__ */
|
|
5300
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5280
5301
|
const SemVer = require_semver$1();
|
|
5281
5302
|
const compareBuild = (a, b, loose) => {
|
|
5282
5303
|
const versionA = new SemVer(a, loose);
|
|
@@ -5287,56 +5308,56 @@ var require_compare_build = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
5287
5308
|
}));
|
|
5288
5309
|
//#endregion
|
|
5289
5310
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
5290
|
-
var require_sort = /* @__PURE__ */
|
|
5311
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5291
5312
|
const compareBuild = require_compare_build();
|
|
5292
5313
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
5293
5314
|
module.exports = sort;
|
|
5294
5315
|
}));
|
|
5295
5316
|
//#endregion
|
|
5296
5317
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
5297
|
-
var require_rsort = /* @__PURE__ */
|
|
5318
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5298
5319
|
const compareBuild = require_compare_build();
|
|
5299
5320
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
5300
5321
|
module.exports = rsort;
|
|
5301
5322
|
}));
|
|
5302
5323
|
//#endregion
|
|
5303
5324
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
5304
|
-
var require_lt = /* @__PURE__ */
|
|
5325
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5305
5326
|
const compare = require_compare();
|
|
5306
5327
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
5307
5328
|
module.exports = lt;
|
|
5308
5329
|
}));
|
|
5309
5330
|
//#endregion
|
|
5310
5331
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
5311
|
-
var require_eq = /* @__PURE__ */
|
|
5332
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5312
5333
|
const compare = require_compare();
|
|
5313
5334
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
5314
5335
|
module.exports = eq;
|
|
5315
5336
|
}));
|
|
5316
5337
|
//#endregion
|
|
5317
5338
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
5318
|
-
var require_neq = /* @__PURE__ */
|
|
5339
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5319
5340
|
const compare = require_compare();
|
|
5320
5341
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
5321
5342
|
module.exports = neq;
|
|
5322
5343
|
}));
|
|
5323
5344
|
//#endregion
|
|
5324
5345
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
5325
|
-
var require_gte = /* @__PURE__ */
|
|
5346
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5326
5347
|
const compare = require_compare();
|
|
5327
5348
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
5328
5349
|
module.exports = gte;
|
|
5329
5350
|
}));
|
|
5330
5351
|
//#endregion
|
|
5331
5352
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
5332
|
-
var require_lte = /* @__PURE__ */
|
|
5353
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5333
5354
|
const compare = require_compare();
|
|
5334
5355
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
5335
5356
|
module.exports = lte;
|
|
5336
5357
|
}));
|
|
5337
5358
|
//#endregion
|
|
5338
5359
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
5339
|
-
var require_cmp = /* @__PURE__ */
|
|
5360
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5340
5361
|
const eq = require_eq();
|
|
5341
5362
|
const neq = require_neq();
|
|
5342
5363
|
const gt = require_gt();
|
|
@@ -5368,7 +5389,7 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
5368
5389
|
}));
|
|
5369
5390
|
//#endregion
|
|
5370
5391
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
5371
|
-
var require_coerce = /* @__PURE__ */
|
|
5392
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5372
5393
|
const SemVer = require_semver$1();
|
|
5373
5394
|
const parse = require_parse();
|
|
5374
5395
|
const { safeRe: re, t } = require_re();
|
|
@@ -5396,7 +5417,7 @@ var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
5396
5417
|
}));
|
|
5397
5418
|
//#endregion
|
|
5398
5419
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js
|
|
5399
|
-
var require_lrucache = /* @__PURE__ */
|
|
5420
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5400
5421
|
var LRUCache = class {
|
|
5401
5422
|
constructor() {
|
|
5402
5423
|
this.max = 1e3;
|
|
@@ -5429,7 +5450,7 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
5429
5450
|
}));
|
|
5430
5451
|
//#endregion
|
|
5431
5452
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
|
|
5432
|
-
var require_range = /* @__PURE__ */
|
|
5453
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5433
5454
|
const SPACE_CHARACTERS = /\s+/g;
|
|
5434
5455
|
module.exports = class Range {
|
|
5435
5456
|
constructor(range, options) {
|
|
@@ -5701,7 +5722,7 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
5701
5722
|
}));
|
|
5702
5723
|
//#endregion
|
|
5703
5724
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
5704
|
-
var require_comparator = /* @__PURE__ */
|
|
5725
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5705
5726
|
const ANY = Symbol("SemVer ANY");
|
|
5706
5727
|
module.exports = class Comparator {
|
|
5707
5728
|
static get ANY() {
|
|
@@ -5771,7 +5792,7 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
5771
5792
|
}));
|
|
5772
5793
|
//#endregion
|
|
5773
5794
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
5774
|
-
var require_satisfies = /* @__PURE__ */
|
|
5795
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5775
5796
|
const Range = require_range();
|
|
5776
5797
|
const satisfies = (version, range, options) => {
|
|
5777
5798
|
try {
|
|
@@ -5785,14 +5806,14 @@ var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
5785
5806
|
}));
|
|
5786
5807
|
//#endregion
|
|
5787
5808
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
5788
|
-
var require_to_comparators = /* @__PURE__ */
|
|
5809
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5789
5810
|
const Range = require_range();
|
|
5790
5811
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
5791
5812
|
module.exports = toComparators;
|
|
5792
5813
|
}));
|
|
5793
5814
|
//#endregion
|
|
5794
5815
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
5795
|
-
var require_max_satisfying = /* @__PURE__ */
|
|
5816
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5796
5817
|
const SemVer = require_semver$1();
|
|
5797
5818
|
const Range = require_range();
|
|
5798
5819
|
const maxSatisfying = (versions, range, options) => {
|
|
@@ -5818,7 +5839,7 @@ var require_max_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
5818
5839
|
}));
|
|
5819
5840
|
//#endregion
|
|
5820
5841
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
5821
|
-
var require_min_satisfying = /* @__PURE__ */
|
|
5842
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5822
5843
|
const SemVer = require_semver$1();
|
|
5823
5844
|
const Range = require_range();
|
|
5824
5845
|
const minSatisfying = (versions, range, options) => {
|
|
@@ -5844,7 +5865,7 @@ var require_min_satisfying = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
5844
5865
|
}));
|
|
5845
5866
|
//#endregion
|
|
5846
5867
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
5847
|
-
var require_min_version = /* @__PURE__ */
|
|
5868
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5848
5869
|
const SemVer = require_semver$1();
|
|
5849
5870
|
const Range = require_range();
|
|
5850
5871
|
const gt = require_gt();
|
|
@@ -5884,7 +5905,7 @@ var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
5884
5905
|
}));
|
|
5885
5906
|
//#endregion
|
|
5886
5907
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
5887
|
-
var require_valid = /* @__PURE__ */
|
|
5908
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5888
5909
|
const Range = require_range();
|
|
5889
5910
|
const validRange = (range, options) => {
|
|
5890
5911
|
try {
|
|
@@ -5897,7 +5918,7 @@ var require_valid = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
5897
5918
|
}));
|
|
5898
5919
|
//#endregion
|
|
5899
5920
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
5900
|
-
var require_outside = /* @__PURE__ */
|
|
5921
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5901
5922
|
const SemVer = require_semver$1();
|
|
5902
5923
|
const Comparator = require_comparator();
|
|
5903
5924
|
const { ANY } = Comparator;
|
|
@@ -5950,21 +5971,21 @@ var require_outside = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
5950
5971
|
}));
|
|
5951
5972
|
//#endregion
|
|
5952
5973
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
5953
|
-
var require_gtr = /* @__PURE__ */
|
|
5974
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5954
5975
|
const outside = require_outside();
|
|
5955
5976
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
5956
5977
|
module.exports = gtr;
|
|
5957
5978
|
}));
|
|
5958
5979
|
//#endregion
|
|
5959
5980
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
5960
|
-
var require_ltr = /* @__PURE__ */
|
|
5981
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5961
5982
|
const outside = require_outside();
|
|
5962
5983
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
5963
5984
|
module.exports = ltr;
|
|
5964
5985
|
}));
|
|
5965
5986
|
//#endregion
|
|
5966
5987
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
5967
|
-
var require_intersects = /* @__PURE__ */
|
|
5988
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5968
5989
|
const Range = require_range();
|
|
5969
5990
|
const intersects = (r1, r2, options) => {
|
|
5970
5991
|
r1 = new Range(r1, options);
|
|
@@ -5975,7 +5996,7 @@ var require_intersects = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
5975
5996
|
}));
|
|
5976
5997
|
//#endregion
|
|
5977
5998
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
5978
|
-
var require_simplify = /* @__PURE__ */
|
|
5999
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5979
6000
|
const satisfies = require_satisfies();
|
|
5980
6001
|
const compare = require_compare();
|
|
5981
6002
|
module.exports = (versions, range, options) => {
|
|
@@ -6005,7 +6026,7 @@ var require_simplify = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
6005
6026
|
}));
|
|
6006
6027
|
//#endregion
|
|
6007
6028
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
6008
|
-
var require_subset = /* @__PURE__ */
|
|
6029
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6009
6030
|
const Range = require_range();
|
|
6010
6031
|
const Comparator = require_comparator();
|
|
6011
6032
|
const { ANY } = Comparator;
|
|
@@ -6100,7 +6121,7 @@ var require_subset = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
6100
6121
|
}));
|
|
6101
6122
|
//#endregion
|
|
6102
6123
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js
|
|
6103
|
-
var require_semver = /* @__PURE__ */
|
|
6124
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6104
6125
|
const internalRe = require_re();
|
|
6105
6126
|
const constants = require_constants();
|
|
6106
6127
|
const SemVer = require_semver$1();
|
|
@@ -6155,8 +6176,8 @@ var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
6155
6176
|
}));
|
|
6156
6177
|
//#endregion
|
|
6157
6178
|
//#region ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
|
|
6158
|
-
var import_registry_auth_token = /* @__PURE__ */
|
|
6159
|
-
var import_semver = /* @__PURE__ */
|
|
6179
|
+
var import_registry_auth_token = /* @__PURE__ */ __toESM(require_registry_auth_token(), 1);
|
|
6180
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
6160
6181
|
var PackageNotFoundError = class extends Error {
|
|
6161
6182
|
constructor(packageName) {
|
|
6162
6183
|
super(`Package \`${packageName}\` could not be found`);
|
|
@@ -6228,8 +6249,8 @@ Boolean(userAgent?.startsWith("pnpm"));
|
|
|
6228
6249
|
Boolean(userAgent?.startsWith("bun"));
|
|
6229
6250
|
const isNpmOrYarn = isNpm || isYarn;
|
|
6230
6251
|
//#endregion
|
|
6231
|
-
//#region ../../node_modules/.pnpm/
|
|
6232
|
-
var
|
|
6252
|
+
//#region ../../node_modules/.pnpm/global-directory@4.0.1/node_modules/global-directory/index.js
|
|
6253
|
+
var import_ini = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6233
6254
|
const { hasOwnProperty } = Object.prototype;
|
|
6234
6255
|
const encode = (obj, opt = {}) => {
|
|
6235
6256
|
if (typeof opt === "string") opt = { section: opt };
|
|
@@ -6383,10 +6404,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
6383
6404
|
safe,
|
|
6384
6405
|
unsafe
|
|
6385
6406
|
};
|
|
6386
|
-
}));
|
|
6387
|
-
//#endregion
|
|
6388
|
-
//#region ../../node_modules/.pnpm/global-directory@4.0.1/node_modules/global-directory/index.js
|
|
6389
|
-
var import_ini = /* @__PURE__ */ require_chunk.__toESM(require_ini(), 1);
|
|
6407
|
+
})))(), 1);
|
|
6390
6408
|
const isWindows = node_process.default.platform === "win32";
|
|
6391
6409
|
const readRc = (filePath) => {
|
|
6392
6410
|
try {
|
|
@@ -6500,15 +6518,12 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
|
6500
6518
|
return 1;
|
|
6501
6519
|
}
|
|
6502
6520
|
//#endregion
|
|
6503
|
-
//#region ../../node_modules/.pnpm/
|
|
6504
|
-
var
|
|
6521
|
+
//#region ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
|
|
6522
|
+
var import_emoji_regex = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6505
6523
|
module.exports = () => {
|
|
6506
6524
|
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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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;
|
|
6507
6525
|
};
|
|
6508
|
-
}));
|
|
6509
|
-
//#endregion
|
|
6510
|
-
//#region ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
|
|
6511
|
-
var import_emoji_regex = /* @__PURE__ */ require_chunk.__toESM(require_emoji_regex$1(), 1);
|
|
6526
|
+
})))(), 1);
|
|
6512
6527
|
const segmenter = new Intl.Segmenter();
|
|
6513
6528
|
const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
6514
6529
|
function stringWidth(string, options = {}) {
|
|
@@ -6543,7 +6558,7 @@ function widestLine(string) {
|
|
|
6543
6558
|
}
|
|
6544
6559
|
//#endregion
|
|
6545
6560
|
//#region ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
|
|
6546
|
-
var require_boxes = /* @__PURE__ */
|
|
6561
|
+
var require_boxes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6547
6562
|
module.exports = {
|
|
6548
6563
|
"single": {
|
|
6549
6564
|
"topLeft": "┌",
|
|
@@ -6628,15 +6643,12 @@ var require_boxes = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
6628
6643
|
};
|
|
6629
6644
|
}));
|
|
6630
6645
|
//#endregion
|
|
6631
|
-
//#region ../../node_modules/.pnpm/
|
|
6632
|
-
var
|
|
6646
|
+
//#region ../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
|
|
6647
|
+
var import_cli_boxes = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6633
6648
|
const cliBoxes = require_boxes();
|
|
6634
6649
|
module.exports = cliBoxes;
|
|
6635
6650
|
module.exports.default = cliBoxes;
|
|
6636
|
-
}));
|
|
6637
|
-
//#endregion
|
|
6638
|
-
//#region ../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
|
|
6639
|
-
var import_cli_boxes = /* @__PURE__ */ require_chunk.__toESM(require_cli_boxes(), 1);
|
|
6651
|
+
})))(), 1);
|
|
6640
6652
|
const UPPERCASE = /[\p{Lu}]/u;
|
|
6641
6653
|
const LOWERCASE = /[\p{Ll}]/u;
|
|
6642
6654
|
const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
@@ -6705,7 +6717,7 @@ function camelCase(input, options) {
|
|
|
6705
6717
|
}
|
|
6706
6718
|
//#endregion
|
|
6707
6719
|
//#region ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
6708
|
-
var require_ansi_regex = /* @__PURE__ */
|
|
6720
|
+
var require_ansi_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6709
6721
|
module.exports = ({ onlyFirst = false } = {}) => {
|
|
6710
6722
|
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
6711
6723
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -6713,13 +6725,13 @@ var require_ansi_regex = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
6713
6725
|
}));
|
|
6714
6726
|
//#endregion
|
|
6715
6727
|
//#region ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
|
|
6716
|
-
var require_strip_ansi = /* @__PURE__ */
|
|
6728
|
+
var require_strip_ansi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6717
6729
|
const ansiRegex = require_ansi_regex();
|
|
6718
6730
|
module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
|
|
6719
6731
|
}));
|
|
6720
6732
|
//#endregion
|
|
6721
6733
|
//#region ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
|
|
6722
|
-
var require_is_fullwidth_code_point = /* @__PURE__ */
|
|
6734
|
+
var require_is_fullwidth_code_point = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6723
6735
|
const isFullwidthCodePoint = (codePoint) => {
|
|
6724
6736
|
if (Number.isNaN(codePoint)) return false;
|
|
6725
6737
|
if (codePoint >= 4352 && (codePoint <= 4447 || codePoint === 9001 || codePoint === 9002 || 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || 12880 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65131 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 262141)) return true;
|
|
@@ -6730,14 +6742,14 @@ var require_is_fullwidth_code_point = /* @__PURE__ */ require_chunk.__commonJSMi
|
|
|
6730
6742
|
}));
|
|
6731
6743
|
//#endregion
|
|
6732
6744
|
//#region ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
|
|
6733
|
-
var require_emoji_regex = /* @__PURE__ */
|
|
6745
|
+
var require_emoji_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6734
6746
|
module.exports = function() {
|
|
6735
6747
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\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[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
6736
6748
|
};
|
|
6737
6749
|
}));
|
|
6738
6750
|
//#endregion
|
|
6739
6751
|
//#region ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
|
|
6740
|
-
var require_string_width = /* @__PURE__ */
|
|
6752
|
+
var require_string_width = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6741
6753
|
const stripAnsi = require_strip_ansi();
|
|
6742
6754
|
const isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
6743
6755
|
const emojiRegex = require_emoji_regex();
|
|
@@ -6760,8 +6772,8 @@ var require_string_width = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
6760
6772
|
module.exports.default = stringWidth;
|
|
6761
6773
|
}));
|
|
6762
6774
|
//#endregion
|
|
6763
|
-
//#region ../../node_modules/.pnpm/ansi-
|
|
6764
|
-
var
|
|
6775
|
+
//#region ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
|
|
6776
|
+
var import_ansi_align = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6765
6777
|
const stringWidth = require_string_width();
|
|
6766
6778
|
function ansiAlign(text, opts) {
|
|
6767
6779
|
if (!text) return text;
|
|
@@ -6807,10 +6819,7 @@ var require_ansi_align = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
6807
6819
|
function fullDiff(maxWidth, curWidth) {
|
|
6808
6820
|
return maxWidth - curWidth;
|
|
6809
6821
|
}
|
|
6810
|
-
}));
|
|
6811
|
-
//#endregion
|
|
6812
|
-
//#region ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
|
|
6813
|
-
var import_ansi_align = /* @__PURE__ */ require_chunk.__toESM(require_ansi_align(), 1);
|
|
6822
|
+
})))(), 1);
|
|
6814
6823
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
6815
6824
|
const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
|
|
6816
6825
|
const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
|
|
@@ -7500,13 +7509,613 @@ function updateNotifier(options) {
|
|
|
7500
7509
|
return updateNotifier;
|
|
7501
7510
|
}
|
|
7502
7511
|
//#endregion
|
|
7512
|
+
//#region ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/index.mjs
|
|
7513
|
+
let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY = true;
|
|
7514
|
+
if (typeof process !== "undefined") {
|
|
7515
|
+
({FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM} = process.env || {});
|
|
7516
|
+
isTTY = process.stdout && process.stdout.isTTY;
|
|
7517
|
+
}
|
|
7518
|
+
const $ = {
|
|
7519
|
+
enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),
|
|
7520
|
+
reset: init(0, 0),
|
|
7521
|
+
bold: init(1, 22),
|
|
7522
|
+
dim: init(2, 22),
|
|
7523
|
+
italic: init(3, 23),
|
|
7524
|
+
underline: init(4, 24),
|
|
7525
|
+
inverse: init(7, 27),
|
|
7526
|
+
hidden: init(8, 28),
|
|
7527
|
+
strikethrough: init(9, 29),
|
|
7528
|
+
black: init(30, 39),
|
|
7529
|
+
red: init(31, 39),
|
|
7530
|
+
green: init(32, 39),
|
|
7531
|
+
yellow: init(33, 39),
|
|
7532
|
+
blue: init(34, 39),
|
|
7533
|
+
magenta: init(35, 39),
|
|
7534
|
+
cyan: init(36, 39),
|
|
7535
|
+
white: init(37, 39),
|
|
7536
|
+
gray: init(90, 39),
|
|
7537
|
+
grey: init(90, 39),
|
|
7538
|
+
bgBlack: init(40, 49),
|
|
7539
|
+
bgRed: init(41, 49),
|
|
7540
|
+
bgGreen: init(42, 49),
|
|
7541
|
+
bgYellow: init(43, 49),
|
|
7542
|
+
bgBlue: init(44, 49),
|
|
7543
|
+
bgMagenta: init(45, 49),
|
|
7544
|
+
bgCyan: init(46, 49),
|
|
7545
|
+
bgWhite: init(47, 49)
|
|
7546
|
+
};
|
|
7547
|
+
function run(arr, str) {
|
|
7548
|
+
let i = 0, tmp, beg = "", end = "";
|
|
7549
|
+
for (; i < arr.length; i++) {
|
|
7550
|
+
tmp = arr[i];
|
|
7551
|
+
beg += tmp.open;
|
|
7552
|
+
end += tmp.close;
|
|
7553
|
+
if (!!~str.indexOf(tmp.close)) str = str.replace(tmp.rgx, tmp.close + tmp.open);
|
|
7554
|
+
}
|
|
7555
|
+
return beg + str + end;
|
|
7556
|
+
}
|
|
7557
|
+
function chain(has, keys) {
|
|
7558
|
+
let ctx = {
|
|
7559
|
+
has,
|
|
7560
|
+
keys
|
|
7561
|
+
};
|
|
7562
|
+
ctx.reset = $.reset.bind(ctx);
|
|
7563
|
+
ctx.bold = $.bold.bind(ctx);
|
|
7564
|
+
ctx.dim = $.dim.bind(ctx);
|
|
7565
|
+
ctx.italic = $.italic.bind(ctx);
|
|
7566
|
+
ctx.underline = $.underline.bind(ctx);
|
|
7567
|
+
ctx.inverse = $.inverse.bind(ctx);
|
|
7568
|
+
ctx.hidden = $.hidden.bind(ctx);
|
|
7569
|
+
ctx.strikethrough = $.strikethrough.bind(ctx);
|
|
7570
|
+
ctx.black = $.black.bind(ctx);
|
|
7571
|
+
ctx.red = $.red.bind(ctx);
|
|
7572
|
+
ctx.green = $.green.bind(ctx);
|
|
7573
|
+
ctx.yellow = $.yellow.bind(ctx);
|
|
7574
|
+
ctx.blue = $.blue.bind(ctx);
|
|
7575
|
+
ctx.magenta = $.magenta.bind(ctx);
|
|
7576
|
+
ctx.cyan = $.cyan.bind(ctx);
|
|
7577
|
+
ctx.white = $.white.bind(ctx);
|
|
7578
|
+
ctx.gray = $.gray.bind(ctx);
|
|
7579
|
+
ctx.grey = $.grey.bind(ctx);
|
|
7580
|
+
ctx.bgBlack = $.bgBlack.bind(ctx);
|
|
7581
|
+
ctx.bgRed = $.bgRed.bind(ctx);
|
|
7582
|
+
ctx.bgGreen = $.bgGreen.bind(ctx);
|
|
7583
|
+
ctx.bgYellow = $.bgYellow.bind(ctx);
|
|
7584
|
+
ctx.bgBlue = $.bgBlue.bind(ctx);
|
|
7585
|
+
ctx.bgMagenta = $.bgMagenta.bind(ctx);
|
|
7586
|
+
ctx.bgCyan = $.bgCyan.bind(ctx);
|
|
7587
|
+
ctx.bgWhite = $.bgWhite.bind(ctx);
|
|
7588
|
+
return ctx;
|
|
7589
|
+
}
|
|
7590
|
+
function init(open, close) {
|
|
7591
|
+
let blk = {
|
|
7592
|
+
open: `\x1b[${open}m`,
|
|
7593
|
+
close: `\x1b[${close}m`,
|
|
7594
|
+
rgx: new RegExp(`\\x1b\\[${close}m`, "g")
|
|
7595
|
+
};
|
|
7596
|
+
return function(txt) {
|
|
7597
|
+
if (this !== void 0 && this.has !== void 0) {
|
|
7598
|
+
~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));
|
|
7599
|
+
return txt === void 0 ? this : $.enabled ? run(this.keys, txt + "") : txt + "";
|
|
7600
|
+
}
|
|
7601
|
+
return txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt + "") : txt + "";
|
|
7602
|
+
};
|
|
7603
|
+
}
|
|
7604
|
+
//#endregion
|
|
7605
|
+
//#region src/errors.ts
|
|
7606
|
+
function handleError(error) {
|
|
7607
|
+
if (error instanceof _bamboocss_shared.BambooError) {
|
|
7608
|
+
console.error($.red(`${error.code}: ${error.message}`));
|
|
7609
|
+
if (error.hint) console.error($.dim(error.hint));
|
|
7610
|
+
if (error.cause instanceof Error) console.error($.dim(`Caused by: ${error.cause.message}`));
|
|
7611
|
+
} else if (isLocError(error)) {
|
|
7612
|
+
console.error($.bold($.red(`Error parsing: ${error.loc.file}:${error.loc.line}:${error.loc.column}`)));
|
|
7613
|
+
if (error.frame) {
|
|
7614
|
+
console.error($.red(error.message));
|
|
7615
|
+
console.error($.dim(error.frame));
|
|
7616
|
+
} else console.error($.red(error.message));
|
|
7617
|
+
} else {
|
|
7618
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
7619
|
+
console.error($.red(message));
|
|
7620
|
+
}
|
|
7621
|
+
process.exitCode = 1;
|
|
7622
|
+
if (!worker_threads.isMainThread && worker_threads.parentPort) worker_threads.parentPort.postMessage("error");
|
|
7623
|
+
}
|
|
7624
|
+
function isLocError(error) {
|
|
7625
|
+
return typeof error === "object" && error !== null && "loc" in error && typeof error.loc === "object" && "message" in error;
|
|
7626
|
+
}
|
|
7627
|
+
//#endregion
|
|
7628
|
+
//#region package.json
|
|
7629
|
+
var name = "@bamboocss/dev";
|
|
7630
|
+
var version = "1.12.0";
|
|
7631
|
+
//#endregion
|
|
7632
|
+
//#region src/interactive.ts
|
|
7633
|
+
const interactive = async () => {
|
|
7634
|
+
_clack_prompts.intro(`bamboo v${version}`);
|
|
7635
|
+
const initFlags = await _clack_prompts.group({
|
|
7636
|
+
usePostcss: () => _clack_prompts.select({
|
|
7637
|
+
message: "Would you like to use PostCSS ?",
|
|
7638
|
+
initialValue: "yes",
|
|
7639
|
+
options: [{
|
|
7640
|
+
value: "yes",
|
|
7641
|
+
label: "Yes"
|
|
7642
|
+
}, {
|
|
7643
|
+
value: "no",
|
|
7644
|
+
label: "No"
|
|
7645
|
+
}]
|
|
7646
|
+
}),
|
|
7647
|
+
useMjsExtension: () => _clack_prompts.select({
|
|
7648
|
+
message: "Use the mjs extension ?",
|
|
7649
|
+
initialValue: "yes",
|
|
7650
|
+
options: [{
|
|
7651
|
+
value: "yes",
|
|
7652
|
+
label: "Yes"
|
|
7653
|
+
}, {
|
|
7654
|
+
value: "no",
|
|
7655
|
+
label: "No"
|
|
7656
|
+
}]
|
|
7657
|
+
}),
|
|
7658
|
+
jsxOptions: () => _clack_prompts.group({
|
|
7659
|
+
styleProps: () => _clack_prompts.select({
|
|
7660
|
+
message: "Would you like to use JSX Style Props ?",
|
|
7661
|
+
initialValue: "yes",
|
|
7662
|
+
options: [{
|
|
7663
|
+
value: "yes",
|
|
7664
|
+
label: "Yes"
|
|
7665
|
+
}, {
|
|
7666
|
+
value: "no",
|
|
7667
|
+
label: "No"
|
|
7668
|
+
}]
|
|
7669
|
+
}),
|
|
7670
|
+
jsxFramework: () => _clack_prompts.select({
|
|
7671
|
+
message: "What JSX framework?",
|
|
7672
|
+
initialValue: "react",
|
|
7673
|
+
options: [
|
|
7674
|
+
{
|
|
7675
|
+
value: "react",
|
|
7676
|
+
label: "React"
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
value: "vue",
|
|
7680
|
+
label: "Vue"
|
|
7681
|
+
},
|
|
7682
|
+
{
|
|
7683
|
+
value: "solid",
|
|
7684
|
+
label: "Solid"
|
|
7685
|
+
},
|
|
7686
|
+
{
|
|
7687
|
+
value: "qwik",
|
|
7688
|
+
label: "Qwik"
|
|
7689
|
+
}
|
|
7690
|
+
]
|
|
7691
|
+
})
|
|
7692
|
+
}),
|
|
7693
|
+
whatSyntax: () => _clack_prompts.select({
|
|
7694
|
+
message: "What css syntax would you like to use?",
|
|
7695
|
+
initialValue: "object",
|
|
7696
|
+
options: [{
|
|
7697
|
+
value: "object-literal",
|
|
7698
|
+
label: "Object"
|
|
7699
|
+
}, {
|
|
7700
|
+
value: "template-literal",
|
|
7701
|
+
label: "Template literal"
|
|
7702
|
+
}]
|
|
7703
|
+
}),
|
|
7704
|
+
withStrictTokens: () => _clack_prompts.select({
|
|
7705
|
+
message: "Use strict tokens to enforce full type-safety?",
|
|
7706
|
+
initialValue: "no",
|
|
7707
|
+
options: [{
|
|
7708
|
+
value: "yes",
|
|
7709
|
+
label: "Yes"
|
|
7710
|
+
}, {
|
|
7711
|
+
value: "no",
|
|
7712
|
+
label: "No"
|
|
7713
|
+
}]
|
|
7714
|
+
}),
|
|
7715
|
+
shouldUpdateGitignore: () => _clack_prompts.select({
|
|
7716
|
+
message: "Update gitignore?",
|
|
7717
|
+
initialValue: "yes",
|
|
7718
|
+
options: [{
|
|
7719
|
+
value: "yes",
|
|
7720
|
+
label: "Yes"
|
|
7721
|
+
}, {
|
|
7722
|
+
value: "no",
|
|
7723
|
+
label: "No"
|
|
7724
|
+
}]
|
|
7725
|
+
})
|
|
7726
|
+
}, { onCancel: () => {
|
|
7727
|
+
_clack_prompts.cancel("Operation cancelled.");
|
|
7728
|
+
process.exit(0);
|
|
7729
|
+
} });
|
|
7730
|
+
_clack_prompts.outro("Let's get started! 🐼");
|
|
7731
|
+
return {
|
|
7732
|
+
postcss: initFlags.usePostcss === "yes",
|
|
7733
|
+
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
7734
|
+
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
7735
|
+
syntax: initFlags.whatSyntax,
|
|
7736
|
+
strictTokens: initFlags.withStrictTokens === "yes",
|
|
7737
|
+
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
7738
|
+
};
|
|
7739
|
+
};
|
|
7740
|
+
//#endregion
|
|
7741
|
+
//#region src/cli-main.ts
|
|
7742
|
+
async function main() {
|
|
7743
|
+
const cli = (0, cac.cac)("bamboo");
|
|
7744
|
+
const cwd = process.cwd();
|
|
7745
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--jsx-framework <framework>", "The jsx framework to use").option("--syntax <syntax>", "The css syntax preference").option("--strict-tokens", "Using strictTokens: true").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
7746
|
+
let options = {};
|
|
7747
|
+
if (initFlags.interactive) options = await interactive();
|
|
7748
|
+
const flags = {
|
|
7749
|
+
...initFlags,
|
|
7750
|
+
...options
|
|
7751
|
+
};
|
|
7752
|
+
const { force, postcss, silent, gitignore, outExtension, jsxFramework, config: configPath, syntax } = flags;
|
|
7753
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7754
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7755
|
+
const stream = (0, _bamboocss_node.setLogStream)({
|
|
7756
|
+
cwd,
|
|
7757
|
+
logfile: flags.logfile
|
|
7758
|
+
});
|
|
7759
|
+
_bamboocss_logger.logger.info("cli", `Bamboo v${version}\n`);
|
|
7760
|
+
const done = _bamboocss_logger.logger.time.info("✨ Bamboo initialized");
|
|
7761
|
+
if (postcss) await (0, _bamboocss_node.setupPostcss)(cwd);
|
|
7762
|
+
await (0, _bamboocss_node.setupConfig)(cwd, (0, _bamboocss_shared.compact)({
|
|
7763
|
+
force,
|
|
7764
|
+
outExtension,
|
|
7765
|
+
jsxFramework,
|
|
7766
|
+
syntax,
|
|
7767
|
+
outdir: flags.outdir
|
|
7768
|
+
}));
|
|
7769
|
+
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7770
|
+
cwd,
|
|
7771
|
+
configPath,
|
|
7772
|
+
config: (0, _bamboocss_shared.compact)({
|
|
7773
|
+
gitignore,
|
|
7774
|
+
outdir: flags.outdir
|
|
7775
|
+
})
|
|
7776
|
+
});
|
|
7777
|
+
if (gitignore) (0, _bamboocss_node.setupGitIgnore)(ctx);
|
|
7778
|
+
if (flags.codegen) {
|
|
7779
|
+
const { msg, box } = await (0, _bamboocss_node.codegen)(ctx);
|
|
7780
|
+
_bamboocss_logger.logger.log(msg + box);
|
|
7781
|
+
} else _bamboocss_logger.logger.log(ctx.initMessage());
|
|
7782
|
+
done();
|
|
7783
|
+
stream.end();
|
|
7784
|
+
});
|
|
7785
|
+
cli.command("codegen", "Generate the bamboo system").option("--silent", "Don't print any logs").option("--clean", "Clean the output directory before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (flags) => {
|
|
7786
|
+
const { silent, clean, config: configPath, watch, poll } = flags;
|
|
7787
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7788
|
+
const stream = (0, _bamboocss_node.setLogStream)({
|
|
7789
|
+
cwd,
|
|
7790
|
+
logfile: flags.logfile
|
|
7791
|
+
});
|
|
7792
|
+
let stopProfiling = () => void 0;
|
|
7793
|
+
if (flags.cpuProf) stopProfiling = await (0, _bamboocss_node.startProfiling)(cwd, "codegen", flags.watch);
|
|
7794
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7795
|
+
let ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7796
|
+
cwd,
|
|
7797
|
+
config: { clean },
|
|
7798
|
+
configPath
|
|
7799
|
+
});
|
|
7800
|
+
const { msg } = await (0, _bamboocss_node.codegen)(ctx);
|
|
7801
|
+
_bamboocss_logger.logger.log(msg);
|
|
7802
|
+
if (watch) ctx.watchConfig(async () => {
|
|
7803
|
+
const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
|
|
7804
|
+
ctx = new _bamboocss_node.BambooContext(conf);
|
|
7805
|
+
});
|
|
7806
|
+
await ctx.hooks["config:change"]?.({
|
|
7807
|
+
config: ctx.config,
|
|
7808
|
+
changes: affecteds
|
|
7809
|
+
});
|
|
7810
|
+
await (0, _bamboocss_node.codegen)(ctx, Array.from(affecteds.artifacts));
|
|
7811
|
+
_bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
|
|
7812
|
+
}, {
|
|
7813
|
+
cwd,
|
|
7814
|
+
poll
|
|
7815
|
+
});
|
|
7816
|
+
else stream.end();
|
|
7817
|
+
stopProfiling();
|
|
7818
|
+
});
|
|
7819
|
+
cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
|
|
7820
|
+
const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
|
|
7821
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7822
|
+
const stream = (0, _bamboocss_node.setLogStream)({
|
|
7823
|
+
cwd,
|
|
7824
|
+
logfile: flags.logfile
|
|
7825
|
+
});
|
|
7826
|
+
let stopProfiling = () => void 0;
|
|
7827
|
+
if (flags.cpuProf) stopProfiling = await (0, _bamboocss_node.startProfiling)(cwd, "cssgen", flags.watch);
|
|
7828
|
+
const cssArtifact = [
|
|
7829
|
+
"preflight",
|
|
7830
|
+
"tokens",
|
|
7831
|
+
"static",
|
|
7832
|
+
"global",
|
|
7833
|
+
"keyframes"
|
|
7834
|
+
].find((type) => type === maybeGlob);
|
|
7835
|
+
const glob = cssArtifact ? void 0 : maybeGlob;
|
|
7836
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7837
|
+
let ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7838
|
+
cwd,
|
|
7839
|
+
config: {
|
|
7840
|
+
...rest,
|
|
7841
|
+
...glob ? { include: [glob] } : void 0
|
|
7842
|
+
},
|
|
7843
|
+
configPath
|
|
7844
|
+
});
|
|
7845
|
+
const options = {
|
|
7846
|
+
cwd,
|
|
7847
|
+
outfile,
|
|
7848
|
+
type: cssArtifact,
|
|
7849
|
+
minimal,
|
|
7850
|
+
splitting
|
|
7851
|
+
};
|
|
7852
|
+
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
7853
|
+
if (watch) {
|
|
7854
|
+
ctx.watchConfig(async () => {
|
|
7855
|
+
const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
|
|
7856
|
+
ctx = new _bamboocss_node.BambooContext(conf);
|
|
7857
|
+
});
|
|
7858
|
+
await ctx.hooks["config:change"]?.({
|
|
7859
|
+
config: ctx.config,
|
|
7860
|
+
changes: affecteds
|
|
7861
|
+
});
|
|
7862
|
+
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
7863
|
+
_bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
|
|
7864
|
+
}, {
|
|
7865
|
+
cwd,
|
|
7866
|
+
poll
|
|
7867
|
+
});
|
|
7868
|
+
ctx.watchFiles(async (event, file) => {
|
|
7869
|
+
if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
7870
|
+
else if (event === "change") {
|
|
7871
|
+
ctx.project.reloadSourceFile(file);
|
|
7872
|
+
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
7873
|
+
} else if (event === "add") {
|
|
7874
|
+
ctx.project.createSourceFile(file);
|
|
7875
|
+
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
7876
|
+
}
|
|
7877
|
+
});
|
|
7878
|
+
} else {
|
|
7879
|
+
stream.end();
|
|
7880
|
+
stopProfiling();
|
|
7881
|
+
}
|
|
7882
|
+
});
|
|
7883
|
+
cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
|
|
7884
|
+
const { config: configPath, silent, ...rest } = flags;
|
|
7885
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7886
|
+
const stream = (0, _bamboocss_node.setLogStream)({
|
|
7887
|
+
cwd,
|
|
7888
|
+
logfile: flags.logfile
|
|
7889
|
+
});
|
|
7890
|
+
let stopProfiling = () => void 0;
|
|
7891
|
+
if (flags.cpuProf) stopProfiling = await (0, _bamboocss_node.startProfiling)(cwd, "cli", flags.watch);
|
|
7892
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7893
|
+
await (0, _bamboocss_node.generate)((0, _bamboocss_shared.compact)({
|
|
7894
|
+
include: files,
|
|
7895
|
+
...rest,
|
|
7896
|
+
cwd
|
|
7897
|
+
}), configPath);
|
|
7898
|
+
stopProfiling();
|
|
7899
|
+
if (!flags.watch) stream.end();
|
|
7900
|
+
});
|
|
7901
|
+
cli.command("spec", "Generate spec files for your theme (useful for documentation)").option("--silent", "Don't print any logs").option("--outdir <dir>", "Output directory for spec files").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).action(async (flags) => {
|
|
7902
|
+
const { silent, config: configPath, outdir } = flags;
|
|
7903
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7904
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7905
|
+
await (0, _bamboocss_node.spec)(await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7906
|
+
cwd,
|
|
7907
|
+
configPath,
|
|
7908
|
+
config: { cwd }
|
|
7909
|
+
}), { outdir });
|
|
7910
|
+
});
|
|
7911
|
+
cli.command("studio", "Realtime documentation for your design tokens").option("--build", "Build").option("--preview", "Preview").option("--port <port>", "Port").option("--host", "Host").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--outdir <dir>", "Output directory for static files").option("--base <path>", "Base path of project").action(async (flags) => {
|
|
7912
|
+
const { build, preview, port, host, outdir, config, base } = flags;
|
|
7913
|
+
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7914
|
+
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7915
|
+
cwd,
|
|
7916
|
+
configPath: config
|
|
7917
|
+
});
|
|
7918
|
+
const buildOpts = {
|
|
7919
|
+
configPath: (0, _bamboocss_config.findConfig)({
|
|
7920
|
+
cwd,
|
|
7921
|
+
file: config
|
|
7922
|
+
}),
|
|
7923
|
+
outDir: (0, path.resolve)(outdir || ctx.studio.outdir),
|
|
7924
|
+
port,
|
|
7925
|
+
host,
|
|
7926
|
+
base
|
|
7927
|
+
};
|
|
7928
|
+
let studio;
|
|
7929
|
+
try {
|
|
7930
|
+
const studioPath = require.resolve("@bamboocss/studio", { paths: [cwd] });
|
|
7931
|
+
studio = require(studioPath);
|
|
7932
|
+
} catch (error) {
|
|
7933
|
+
throw new _bamboocss_shared.BambooError("MISSING_STUDIO", "You need to install '@bamboocss/studio' to use this command", { cause: error });
|
|
7934
|
+
}
|
|
7935
|
+
if (preview) await studio.previewStudio(buildOpts);
|
|
7936
|
+
else if (build) await studio.buildStudio(buildOpts);
|
|
7937
|
+
else {
|
|
7938
|
+
await studio.serveStudio(buildOpts);
|
|
7939
|
+
const note = `use ${_bamboocss_logger.colors.reset(_bamboocss_logger.colors.bold("--build"))} to build`;
|
|
7940
|
+
const port = `use ${_bamboocss_logger.colors.reset(_bamboocss_logger.colors.bold("--port"))} for a different port`;
|
|
7941
|
+
_bamboocss_logger.logger.log(_bamboocss_logger.colors.dim(` ${_bamboocss_logger.colors.green("➜")} ${_bamboocss_logger.colors.bold("Build")}: ${note}`));
|
|
7942
|
+
_bamboocss_logger.logger.log(_bamboocss_logger.colors.dim(` ${_bamboocss_logger.colors.green("➜")} ${_bamboocss_logger.colors.bold("Port")}: ${port}`));
|
|
7943
|
+
}
|
|
7944
|
+
});
|
|
7945
|
+
cli.command("analyze [glob]", "Analyze design token usage in glob").option("--outfile [filepath]", "Output analyze report in JSON").option("--silent", "Don't print any logs").option("--scope <type>", "Select analysis scope (token or recipe)").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).action(async (maybeGlob, flags = {}) => {
|
|
7946
|
+
const { silent, config: configPath, scope } = flags;
|
|
7947
|
+
const tokenScope = scope == null || scope === "token";
|
|
7948
|
+
const recipeScope = scope == null || scope === "recipe";
|
|
7949
|
+
const cwd = (0, path.resolve)(flags.cwd);
|
|
7950
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7951
|
+
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7952
|
+
cwd,
|
|
7953
|
+
config: maybeGlob ? { include: [maybeGlob] } : void 0,
|
|
7954
|
+
configPath
|
|
7955
|
+
});
|
|
7956
|
+
const result = (0, _bamboocss_node.analyze)(ctx);
|
|
7957
|
+
if (flags?.outfile && typeof flags.outfile === "string") {
|
|
7958
|
+
await result.writeReport(flags.outfile);
|
|
7959
|
+
_bamboocss_logger.logger.info("cli", `JSON report saved to ${(0, path.resolve)(flags.outfile)}`);
|
|
7960
|
+
return;
|
|
7961
|
+
}
|
|
7962
|
+
if (tokenScope) if (!ctx.tokens.isEmpty) {
|
|
7963
|
+
const tokenAnalysis = result.getTokenReport();
|
|
7964
|
+
_bamboocss_logger.logger.info("analyze:tokens", `Token usage report 🎨 \n${tokenAnalysis.formatted}`);
|
|
7965
|
+
} else _bamboocss_logger.logger.info("analyze:tokens", "No tokens found");
|
|
7966
|
+
if (recipeScope) if (!ctx.recipes.isEmpty()) {
|
|
7967
|
+
const recipeAnalysis = result.getRecipeReport();
|
|
7968
|
+
_bamboocss_logger.logger.info("analyze:recipes", `Config recipes usage report 🎛️ \n${recipeAnalysis.formatted}`);
|
|
7969
|
+
} else _bamboocss_logger.logger.info("analyze:recipes", "No config recipes found");
|
|
7970
|
+
});
|
|
7971
|
+
cli.command("debug [glob]", "Debug design token extraction & css generated from files in glob").option("--silent", "Don't print any logs").option("--dry", "Output debug files in stdout without writing to disk").option("--outdir [dir]", "Output directory for debug files, default to './styled-system/debug'").option("--only-config", "Should only output the config file, default to 'false'").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
|
|
7972
|
+
const { silent, dry = false, outdir: outdirFlag, config: configPath } = flags ?? {};
|
|
7973
|
+
const cwd = (0, path.resolve)(flags.cwd);
|
|
7974
|
+
const stream = (0, _bamboocss_node.setLogStream)({
|
|
7975
|
+
cwd,
|
|
7976
|
+
logfile: flags.logfile
|
|
7977
|
+
});
|
|
7978
|
+
let stopProfiling = () => void 0;
|
|
7979
|
+
if (flags.cpuProf) stopProfiling = await (0, _bamboocss_node.startProfiling)(cwd, "debug");
|
|
7980
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7981
|
+
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7982
|
+
cwd,
|
|
7983
|
+
config: maybeGlob ? { include: [maybeGlob] } : void 0,
|
|
7984
|
+
configPath
|
|
7985
|
+
});
|
|
7986
|
+
await (0, _bamboocss_node.debug)(ctx, {
|
|
7987
|
+
outdir: outdirFlag ?? (0, path.join)(...ctx.paths.root, "debug"),
|
|
7988
|
+
dry,
|
|
7989
|
+
onlyConfig: flags.onlyConfig
|
|
7990
|
+
});
|
|
7991
|
+
stopProfiling();
|
|
7992
|
+
stream.end();
|
|
7993
|
+
});
|
|
7994
|
+
cli.command("ship [glob]", "Ship extract result from files in glob").option("--silent", "Don't print any logs").option("--o, --outfile [file]", "Output path for the build info file, default to './styled-system/bamboo.buildinfo.json'").option("-m, --minify", "Minify generated JSON file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").action(async (maybeGlob, flags = {}) => {
|
|
7995
|
+
const { silent, outfile: outfileFlag, minify, config: configPath, watch, poll } = flags;
|
|
7996
|
+
const cwd = (0, path.resolve)(flags.cwd);
|
|
7997
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7998
|
+
let ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
7999
|
+
cwd,
|
|
8000
|
+
config: maybeGlob ? { include: [maybeGlob] } : void 0,
|
|
8001
|
+
configPath
|
|
8002
|
+
});
|
|
8003
|
+
const outfile = outfileFlag ?? (0, path.join)(...ctx.paths.root, "bamboo.buildinfo.json");
|
|
8004
|
+
if (minify) ctx.config.minify = true;
|
|
8005
|
+
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
8006
|
+
if (watch) {
|
|
8007
|
+
ctx.watchConfig(async () => {
|
|
8008
|
+
const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
|
|
8009
|
+
ctx = new _bamboocss_node.BambooContext(conf);
|
|
8010
|
+
});
|
|
8011
|
+
await ctx.hooks["config:change"]?.({
|
|
8012
|
+
config: ctx.config,
|
|
8013
|
+
changes: affecteds
|
|
8014
|
+
});
|
|
8015
|
+
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
8016
|
+
_bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
|
|
8017
|
+
}, {
|
|
8018
|
+
cwd,
|
|
8019
|
+
poll
|
|
8020
|
+
});
|
|
8021
|
+
ctx.watchFiles(async (event, file) => {
|
|
8022
|
+
if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
8023
|
+
else if (event === "change") {
|
|
8024
|
+
ctx.project.reloadSourceFile(file);
|
|
8025
|
+
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
8026
|
+
} else if (event === "add") {
|
|
8027
|
+
ctx.project.createSourceFile(file);
|
|
8028
|
+
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
8029
|
+
}
|
|
8030
|
+
});
|
|
8031
|
+
}
|
|
8032
|
+
});
|
|
8033
|
+
cli.command("emit-pkg", "Emit package.json with entrypoints").option("--outdir <dir>", "Output directory", { default: "." }).option("--base <source>", "The base directory of the package.json entrypoints").option("--silent", "Don't print any logs").option("--cwd <cwd>", "Current working directory", { default: cwd }).action(async (flags) => {
|
|
8034
|
+
const { outdir, silent, base } = flags;
|
|
8035
|
+
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
8036
|
+
const cwd = (0, path.resolve)(flags.cwd);
|
|
8037
|
+
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
8038
|
+
cwd,
|
|
8039
|
+
config: { cwd }
|
|
8040
|
+
});
|
|
8041
|
+
const pkgPath = (0, path.resolve)(cwd, outdir, "package.json");
|
|
8042
|
+
const exists = ctx.runtime.fs.existsSync(pkgPath);
|
|
8043
|
+
const exports = [];
|
|
8044
|
+
const createDir = (...dir) => {
|
|
8045
|
+
return [
|
|
8046
|
+
".",
|
|
8047
|
+
base,
|
|
8048
|
+
...dir
|
|
8049
|
+
].filter(Boolean).join("/");
|
|
8050
|
+
};
|
|
8051
|
+
const createEntry = (dir) => ({
|
|
8052
|
+
types: ctx.file.extDts(createDir(dir, "index")),
|
|
8053
|
+
require: ctx.file.ext(createDir(dir, "index")),
|
|
8054
|
+
import: ctx.file.ext(createDir(dir, "index"))
|
|
8055
|
+
});
|
|
8056
|
+
exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
|
|
8057
|
+
if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
|
|
8058
|
+
if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
|
|
8059
|
+
if (!ctx.patterns.isEmpty()) exports.push(["./jsx", createEntry("jsx")]);
|
|
8060
|
+
if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
|
|
8061
|
+
const stylesDir = createDir("styles.css");
|
|
8062
|
+
if (!exists) {
|
|
8063
|
+
const content = {
|
|
8064
|
+
name: outdir,
|
|
8065
|
+
description: "This package is auto-generated by Bamboo CSS",
|
|
8066
|
+
version: "0.1.0",
|
|
8067
|
+
type: "module",
|
|
8068
|
+
keywords: [
|
|
8069
|
+
"bamboocss",
|
|
8070
|
+
"styled-system",
|
|
8071
|
+
"codegen"
|
|
8072
|
+
],
|
|
8073
|
+
license: "ISC",
|
|
8074
|
+
exports: {
|
|
8075
|
+
...Object.fromEntries(exports),
|
|
8076
|
+
"./styles.css": stylesDir
|
|
8077
|
+
},
|
|
8078
|
+
scripts: { prepare: "bamboo codegen --clean" }
|
|
8079
|
+
};
|
|
8080
|
+
await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2));
|
|
8081
|
+
} else {
|
|
8082
|
+
const content = JSON.parse(ctx.runtime.fs.readFileSync(pkgPath));
|
|
8083
|
+
content.exports = {
|
|
8084
|
+
...content.exports,
|
|
8085
|
+
...Object.fromEntries(exports),
|
|
8086
|
+
"./styles.css": stylesDir
|
|
8087
|
+
};
|
|
8088
|
+
await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2));
|
|
8089
|
+
}
|
|
8090
|
+
_bamboocss_logger.logger.info("cli", `Emit package.json to ${pkgPath}`);
|
|
8091
|
+
});
|
|
8092
|
+
cli.command("mcp", "Start MCP server for AI assistants").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).action(async (mcpFlags) => {
|
|
8093
|
+
const { startMcpServer } = await import("@bamboocss/mcp");
|
|
8094
|
+
await startMcpServer(mcpFlags);
|
|
8095
|
+
});
|
|
8096
|
+
cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
|
|
8097
|
+
const { initMcpConfig } = await import("@bamboocss/mcp");
|
|
8098
|
+
const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
|
|
8099
|
+
let clients;
|
|
8100
|
+
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
|
8101
|
+
await initMcpConfig({
|
|
8102
|
+
cwd: resolvedCwd,
|
|
8103
|
+
clients
|
|
8104
|
+
});
|
|
8105
|
+
});
|
|
8106
|
+
cli.help();
|
|
8107
|
+
cli.version(version);
|
|
8108
|
+
cli.parse(process.argv, { run: false });
|
|
8109
|
+
await cli.runMatchedCommand();
|
|
8110
|
+
}
|
|
8111
|
+
//#endregion
|
|
7503
8112
|
//#region src/cli-default.ts
|
|
7504
8113
|
updateNotifier({
|
|
7505
8114
|
pkg: {
|
|
7506
|
-
name
|
|
7507
|
-
version
|
|
8115
|
+
name,
|
|
8116
|
+
version
|
|
7508
8117
|
},
|
|
7509
8118
|
distTag: "latest"
|
|
7510
8119
|
}).notify();
|
|
7511
|
-
|
|
8120
|
+
main().catch(handleError);
|
|
7512
8121
|
//#endregion
|