storybook 10.1.0-alpha.0 → 10.1.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/_browser-chunks/{Color-7ZNS6F6B.js → Color-FQNEU7YS.js} +79 -60
  2. package/dist/_browser-chunks/{chunk-BOOOPFZF.js → WithTooltip-6NHN2GXF.js} +25 -17
  3. package/dist/_browser-chunks/{chunk-RNE2IUTB.js → chunk-AW46NMGV.js} +9 -1
  4. package/dist/_browser-chunks/{chunk-C4XOKMDU.js → chunk-QMY4G4R2.js} +49 -49
  5. package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-RJZASWHL.js} +5 -5
  6. package/dist/_node-chunks/{builder-manager-OTO33TIA.js → builder-manager-HA7CYFCK.js} +32 -12
  7. package/dist/_node-chunks/camelcase-QALD4XFE.js +18 -0
  8. package/dist/_node-chunks/{chunk-O4KUWXD6.js → chunk-2XY53ALL.js} +8 -8
  9. package/dist/_node-chunks/{chunk-Q4CZSEBO.js → chunk-3CBQMG2A.js} +7 -7
  10. package/dist/_node-chunks/{chunk-L5WAZZY3.js → chunk-3WDAPZYQ.js} +7 -7
  11. package/dist/_node-chunks/{chunk-6C7OBGYG.js → chunk-4ZB555EJ.js} +7 -7
  12. package/dist/_node-chunks/{chunk-RKANIOER.js → chunk-52DXKXY3.js} +8 -8
  13. package/dist/_node-chunks/{chunk-HYNQ2IX4.js → chunk-5OVB4A6F.js} +7 -7
  14. package/dist/_node-chunks/chunk-AGHGNXGH.js +18 -0
  15. package/dist/_node-chunks/{chunk-OYGAWJQE.js → chunk-B23X5ZCK.js} +7 -7
  16. package/dist/_node-chunks/{chunk-HHTKRAIE.js → chunk-B2DAHWJK.js} +25 -7
  17. package/dist/_node-chunks/{chunk-FDDQACQD.js → chunk-CC4PW5MJ.js} +7 -7
  18. package/dist/_node-chunks/{chunk-Q6QFW2Y7.js → chunk-D7NIZELR.js} +67 -59
  19. package/dist/_node-chunks/{chunk-EFJRT54D.js → chunk-DO5Q3H4L.js} +7 -7
  20. package/dist/_node-chunks/{chunk-VW3GGAQI.js → chunk-ECK7WVFX.js} +12 -12
  21. package/dist/_node-chunks/{chunk-XI2VU32X.js → chunk-EUH3NHXA.js} +7 -7
  22. package/dist/_node-chunks/{chunk-YS6OLN4N.js → chunk-F3XOPI6H.js} +7 -7
  23. package/dist/_node-chunks/{chunk-NTB3C5XQ.js → chunk-FOQHPHCV.js} +7 -7
  24. package/dist/_node-chunks/{chunk-HIGKW2KB.js → chunk-G6EL47NS.js} +7 -7
  25. package/dist/_node-chunks/{chunk-QOI32MCO.js → chunk-GFLS4TJB.js} +7 -7
  26. package/dist/_node-chunks/{chunk-2WZNP46P.js → chunk-J3XZKWHE.js} +8 -8
  27. package/dist/_node-chunks/{chunk-LOF6SIRE.js → chunk-LE63EHJ5.js} +12 -12
  28. package/dist/_node-chunks/{chunk-RR6Q3657.js → chunk-M47XA42S.js} +9 -9
  29. package/dist/_node-chunks/{chunk-VL6WDGIU.js → chunk-OOI74AL3.js} +6 -6
  30. package/dist/_node-chunks/{chunk-AITYHU22.js → chunk-OVXB5GGT.js} +7 -7
  31. package/dist/_node-chunks/chunk-PRJHT3GJ.js +61 -0
  32. package/dist/_node-chunks/{chunk-SV7ZHC5Z.js → chunk-Q52PVUSU.js} +7 -7
  33. package/dist/_node-chunks/{chunk-NTAOH664.js → chunk-RMHAL25C.js} +9 -9
  34. package/dist/_node-chunks/{chunk-A6T2YN75.js → chunk-SDCF5RNN.js} +15 -15
  35. package/dist/_node-chunks/{chunk-3ICYWJ3N.js → chunk-UJ5SJ23M.js} +7 -7
  36. package/dist/_node-chunks/{chunk-FWW4IJCM.js → chunk-UPHK4ETU.js} +19 -17
  37. package/dist/_node-chunks/{chunk-O3OJUFKU.js → chunk-V7VURIPB.js} +8 -8
  38. package/dist/_node-chunks/{chunk-6M2IPO4E.js → chunk-VPR5IBMG.js} +6 -6
  39. package/dist/_node-chunks/{chunk-27W6KHQ2.js → chunk-X4XU27M6.js} +7 -7
  40. package/dist/_node-chunks/{chunk-ZFRTME73.js → chunk-ZHSCUGNP.js} +1467 -148
  41. package/dist/_node-chunks/{dist-BA2GAJJB.js → dist-6TXHNR5C.js} +9 -9
  42. package/dist/_node-chunks/{globby-4HAI4KJH.js → globby-PBTV6PX6.js} +9 -9
  43. package/dist/_node-chunks/{lib-ITRY6RT7.js → lib-4RTDZVGX.js} +7 -7
  44. package/dist/_node-chunks/{mdx-N42X6CFJ-7PULFTZI.js → mdx-N42X6CFJ-COWEH7KR.js} +8 -8
  45. package/dist/_node-chunks/{p-limit-63FY4KTG.js → p-limit-PBVZQOFY.js} +7 -7
  46. package/dist/_node-chunks/{plugin-2BSKCSMA.js → plugin-6ZPCS4LI.js} +10 -10
  47. package/dist/_node-chunks/{plugin-JEBMTDIB.js → plugin-EOZKYZAG.js} +10 -10
  48. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-AZ7YPMMD.js → webpack-inject-mocker-runtime-plugin-35HMSMR5.js} +10 -10
  49. package/dist/_node-chunks/{webpack-mock-plugin-7IF6PA2O.js → webpack-mock-plugin-GT3MA5E2.js} +9 -9
  50. package/dist/babel/index.js +11 -11
  51. package/dist/bin/core.js +11 -11
  52. package/dist/bin/dispatcher.js +11 -11
  53. package/dist/bin/loader.js +9 -9
  54. package/dist/cli/index.js +50 -74
  55. package/dist/common/index.d.ts +210 -3
  56. package/dist/common/index.js +28 -20
  57. package/dist/components/index.d.ts +472 -280
  58. package/dist/components/index.js +20367 -75
  59. package/dist/core-server/index.js +1128 -247
  60. package/dist/core-server/presets/common-manager.js +1143 -2230
  61. package/dist/core-server/presets/common-override-preset.js +9 -9
  62. package/dist/core-server/presets/common-preset.js +27 -27
  63. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  64. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  65. package/dist/csf/index.js +13 -6
  66. package/dist/csf-tools/index.d.ts +15 -4
  67. package/dist/csf-tools/index.js +9 -9
  68. package/dist/manager/globals-runtime.js +40951 -26253
  69. package/dist/manager/runtime.js +1688 -2693
  70. package/dist/manager-api/index.d.ts +11 -3
  71. package/dist/manager-api/index.js +53 -6
  72. package/dist/node-logger/index.d.ts +1 -1
  73. package/dist/node-logger/index.js +473 -448
  74. package/dist/preview/runtime.js +903 -896
  75. package/dist/preview-api/index.d.ts +68 -67
  76. package/dist/preview-api/index.js +5 -5
  77. package/dist/server-errors.js +10 -10
  78. package/dist/telemetry/index.js +24 -24
  79. package/dist/test/index.js +547 -547
  80. package/dist/theming/create.d.ts +4 -2
  81. package/dist/theming/create.js +1 -1
  82. package/dist/theming/index.d.ts +9 -6
  83. package/dist/theming/index.js +13 -6
  84. package/dist/types/index.d.ts +50 -5
  85. package/package.json +14 -6
  86. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  87. package/dist/_browser-chunks/chunk-I74EUU5O.js +0 -5809
  88. package/dist/_node-chunks/camelcase-HURSU73A.js +0 -18
  89. package/dist/_node-chunks/chunk-P7ZABCRS.js +0 -18
  90. package/dist/_node-chunks/chunk-QWBT2XCX.js +0 -61
  91. package/dist/_browser-chunks/{chunk-W4QKLQSC.js → chunk-RW5PKMWM.js} +5 -5
@@ -1,43 +1,43 @@
1
- import CJS_COMPAT_NODE_URL_viqf41uklqm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_viqf41uklqm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_viqf41uklqm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_8vqew0zn9si from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_8vqew0zn9si from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_8vqew0zn9si from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_viqf41uklqm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_viqf41uklqm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_viqf41uklqm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_8vqew0zn9si.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_8vqew0zn9si.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_8vqew0zn9si.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_pretty_hrtime
14
- } from "../_node-chunks/chunk-QOI32MCO.js";
14
+ } from "../_node-chunks/chunk-GFLS4TJB.js";
15
15
  import {
16
16
  ansi_styles_default,
17
17
  boxen,
18
18
  require_string_width,
19
19
  stripAnsi
20
- } from "../_node-chunks/chunk-2WZNP46P.js";
21
- import "../_node-chunks/chunk-SV7ZHC5Z.js";
20
+ } from "../_node-chunks/chunk-J3XZKWHE.js";
21
+ import "../_node-chunks/chunk-Q52PVUSU.js";
22
22
  import {
23
23
  execaSync,
24
24
  optionalEnvToBoolean
25
- } from "../_node-chunks/chunk-RR6Q3657.js";
26
- import "../_node-chunks/chunk-XI2VU32X.js";
25
+ } from "../_node-chunks/chunk-M47XA42S.js";
26
+ import "../_node-chunks/chunk-EUH3NHXA.js";
27
27
  import {
28
28
  require_prompts,
29
29
  require_src
30
- } from "../_node-chunks/chunk-3ICYWJ3N.js";
30
+ } from "../_node-chunks/chunk-UJ5SJ23M.js";
31
31
  import {
32
32
  require_picocolors
33
- } from "../_node-chunks/chunk-27W6KHQ2.js";
33
+ } from "../_node-chunks/chunk-X4XU27M6.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __export,
37
37
  __name,
38
38
  __require,
39
39
  __toESM
40
- } from "../_node-chunks/chunk-VL6WDGIU.js";
40
+ } from "../_node-chunks/chunk-OOI74AL3.js";
41
41
 
42
42
  // ../node_modules/are-we-there-yet/lib/tracker-base.js
43
43
  var require_tracker_base = __commonJS({
@@ -439,14 +439,14 @@ var require_aproba = __commonJS({
439
439
  __name(isArguments, "isArguments");
440
440
  var types = {
441
441
  "*": { label: "any", check: /* @__PURE__ */ __name(() => true, "check") },
442
- A: { label: "array", check: /* @__PURE__ */ __name((_2) => Array.isArray(_2) || isArguments(_2), "check") },
443
- S: { label: "string", check: /* @__PURE__ */ __name((_2) => typeof _2 === "string", "check") },
444
- N: { label: "number", check: /* @__PURE__ */ __name((_2) => typeof _2 === "number", "check") },
445
- F: { label: "function", check: /* @__PURE__ */ __name((_2) => typeof _2 === "function", "check") },
446
- O: { label: "object", check: /* @__PURE__ */ __name((_2) => typeof _2 === "object" && _2 != null && !types.A.check(_2) && !types.E.check(_2), "check") },
447
- B: { label: "boolean", check: /* @__PURE__ */ __name((_2) => typeof _2 === "boolean", "check") },
448
- E: { label: "error", check: /* @__PURE__ */ __name((_2) => _2 instanceof Error, "check") },
449
- Z: { label: "null", check: /* @__PURE__ */ __name((_2) => _2 == null, "check") }
442
+ A: { label: "array", check: /* @__PURE__ */ __name((_) => Array.isArray(_) || isArguments(_), "check") },
443
+ S: { label: "string", check: /* @__PURE__ */ __name((_) => typeof _ === "string", "check") },
444
+ N: { label: "number", check: /* @__PURE__ */ __name((_) => typeof _ === "number", "check") },
445
+ F: { label: "function", check: /* @__PURE__ */ __name((_) => typeof _ === "function", "check") },
446
+ O: { label: "object", check: /* @__PURE__ */ __name((_) => typeof _ === "object" && _ != null && !types.A.check(_) && !types.E.check(_), "check") },
447
+ B: { label: "boolean", check: /* @__PURE__ */ __name((_) => typeof _ === "boolean", "check") },
448
+ E: { label: "error", check: /* @__PURE__ */ __name((_) => _ instanceof Error, "check") },
449
+ Z: { label: "null", check: /* @__PURE__ */ __name((_) => _ == null, "check") }
450
450
  };
451
451
  function addSchema(schema, arity) {
452
452
  const group = arity[schema.length] = arity[schema.length] || [];
@@ -485,7 +485,7 @@ var require_aproba = __commonJS({
485
485
  return typeCheck(args[ii]);
486
486
  });
487
487
  if (!newMatching.length) {
488
- const labels = matching.map((_2) => types[_2[ii]].label).filter((_2) => _2 != null);
488
+ const labels = matching.map((_) => types[_[ii]].label).filter((_) => _ != null);
489
489
  throw invalidType(ii, labels, args[ii]);
490
490
  }
491
491
  matching = newMatching;
@@ -1298,7 +1298,7 @@ var require_cjs = __commonJS({
1298
1298
  const fn = this.#sigListeners[sig];
1299
1299
  if (fn)
1300
1300
  this.#process.on(sig, fn);
1301
- } catch (_2) {
1301
+ } catch (_) {
1302
1302
  }
1303
1303
  }
1304
1304
  this.#process.emit = (ev, ...a) => {
@@ -1320,7 +1320,7 @@ var require_cjs = __commonJS({
1320
1320
  }
1321
1321
  try {
1322
1322
  this.#process.removeListener(sig, listener);
1323
- } catch (_2) {
1323
+ } catch (_) {
1324
1324
  }
1325
1325
  });
1326
1326
  this.#process.emit = this.#originalProcessEmit;
@@ -2012,23 +2012,23 @@ var require_log = __commonJS({
2012
2012
  };
2013
2013
  var trackerConstructors = ["newGroup", "newItem", "newStream"];
2014
2014
  var mixinLog = /* @__PURE__ */ __name(function(tracker) {
2015
- Object.keys(log2).forEach(function(P2) {
2016
- if (P2[0] === "_") {
2015
+ Object.keys(log2).forEach(function(P3) {
2016
+ if (P3[0] === "_") {
2017
2017
  return;
2018
2018
  }
2019
2019
  if (trackerConstructors.filter(function(C2) {
2020
- return C2 === P2;
2020
+ return C2 === P3;
2021
2021
  }).length) {
2022
2022
  return;
2023
2023
  }
2024
- if (tracker[P2]) {
2024
+ if (tracker[P3]) {
2025
2025
  return;
2026
2026
  }
2027
- if (typeof log2[P2] !== "function") {
2027
+ if (typeof log2[P3] !== "function") {
2028
2028
  return;
2029
2029
  }
2030
- var func = log2[P2];
2031
- tracker[P2] = function() {
2030
+ var func = log2[P3];
2031
+ tracker[P3] = function() {
2032
2032
  return func.apply(log2, arguments);
2033
2033
  };
2034
2034
  });
@@ -2384,91 +2384,91 @@ var import_sisteransi = __toESM(require_src(), 1);
2384
2384
  import { stdout as H, stdin as z } from "node:process";
2385
2385
  import * as V from "node:readline";
2386
2386
  import rt from "node:readline";
2387
- import { ReadStream as Y, WriteStream as nt } from "node:tty";
2388
- var ut = /* @__PURE__ */ __name((t2) => t2 === 161 || t2 === 164 || t2 === 167 || t2 === 168 || t2 === 170 || t2 === 173 || t2 === 174 || t2 >= 176 && t2 <= 180 || t2 >= 182 && t2 <= 186 || t2 >= 188 && t2 <= 191 || t2 === 198 || t2 === 208 || t2 === 215 || t2 === 216 || t2 >= 222 && t2 <= 225 || t2 === 230 || t2 >= 232 && t2 <= 234 || t2 === 236 || t2 === 237 || t2 === 240 || t2 === 242 || t2 === 243 || t2 >= 247 && t2 <= 250 || t2 === 252 || t2 === 254 || t2 === 257 || t2 === 273 || t2 === 275 || t2 === 283 || t2 === 294 || t2 === 295 || t2 === 299 || t2 >= 305 && t2 <= 307 || t2 === 312 || t2 >= 319 && t2 <= 322 || t2 === 324 || t2 >= 328 && t2 <= 331 || t2 === 333 || t2 === 338 || t2 === 339 || t2 === 358 || t2 === 359 || t2 === 363 || t2 === 462 || t2 === 464 || t2 === 466 || t2 === 468 || t2 === 470 || t2 === 472 || t2 === 474 || t2 === 476 || t2 === 593 || t2 === 609 || t2 === 708 || t2 === 711 || t2 >= 713 && t2 <= 715 || t2 === 717 || t2 === 720 || t2 >= 728 && t2 <= 731 || t2 === 733 || t2 === 735 || t2 >= 768 && t2 <= 879 || t2 >= 913 && t2 <= 929 || t2 >= 931 && t2 <= 937 || t2 >= 945 && t2 <= 961 || t2 >= 963 && t2 <= 969 || t2 === 1025 || t2 >= 1040 && t2 <= 1103 || t2 === 1105 || t2 === 8208 || t2 >= 8211 && t2 <= 8214 || t2 === 8216 || t2 === 8217 || t2 === 8220 || t2 === 8221 || t2 >= 8224 && t2 <= 8226 || t2 >= 8228 && t2 <= 8231 || t2 === 8240 || t2 === 8242 || t2 === 8243 || t2 === 8245 || t2 === 8251 || t2 === 8254 || t2 === 8308 || t2 === 8319 || t2 >= 8321 && t2 <= 8324 || t2 === 8364 || t2 === 8451 || t2 === 8453 || t2 === 8457 || t2 === 8467 || t2 === 8470 || t2 === 8481 || t2 === 8482 || t2 === 8486 || t2 === 8491 || t2 === 8531 || t2 === 8532 || t2 >= 8539 && t2 <= 8542 || t2 >= 8544 && t2 <= 8555 || t2 >= 8560 && t2 <= 8569 || t2 === 8585 || t2 >= 8592 && t2 <= 8601 || t2 === 8632 || t2 === 8633 || t2 === 8658 || t2 === 8660 || t2 === 8679 || t2 === 8704 || t2 === 8706 || t2 === 8707 || t2 === 8711 || t2 === 8712 || t2 === 8715 || t2 === 8719 || t2 === 8721 || t2 === 8725 || t2 === 8730 || t2 >= 8733 && t2 <= 8736 || t2 === 8739 || t2 === 8741 || t2 >= 8743 && t2 <= 8748 || t2 === 8750 || t2 >= 8756 && t2 <= 8759 || t2 === 8764 || t2 === 8765 || t2 === 8776 || t2 === 8780 || t2 === 8786 || t2 === 8800 || t2 === 8801 || t2 >= 8804 && t2 <= 8807 || t2 === 8810 || t2 === 8811 || t2 === 8814 || t2 === 8815 || t2 === 8834 || t2 === 8835 || t2 === 8838 || t2 === 8839 || t2 === 8853 || t2 === 8857 || t2 === 8869 || t2 === 8895 || t2 === 8978 || t2 >= 9312 && t2 <= 9449 || t2 >= 9451 && t2 <= 9547 || t2 >= 9552 && t2 <= 9587 || t2 >= 9600 && t2 <= 9615 || t2 >= 9618 && t2 <= 9621 || t2 === 9632 || t2 === 9633 || t2 >= 9635 && t2 <= 9641 || t2 === 9650 || t2 === 9651 || t2 === 9654 || t2 === 9655 || t2 === 9660 || t2 === 9661 || t2 === 9664 || t2 === 9665 || t2 >= 9670 && t2 <= 9672 || t2 === 9675 || t2 >= 9678 && t2 <= 9681 || t2 >= 9698 && t2 <= 9701 || t2 === 9711 || t2 === 9733 || t2 === 9734 || t2 === 9737 || t2 === 9742 || t2 === 9743 || t2 === 9756 || t2 === 9758 || t2 === 9792 || t2 === 9794 || t2 === 9824 || t2 === 9825 || t2 >= 9827 && t2 <= 9829 || t2 >= 9831 && t2 <= 9834 || t2 === 9836 || t2 === 9837 || t2 === 9839 || t2 === 9886 || t2 === 9887 || t2 === 9919 || t2 >= 9926 && t2 <= 9933 || t2 >= 9935 && t2 <= 9939 || t2 >= 9941 && t2 <= 9953 || t2 === 9955 || t2 === 9960 || t2 === 9961 || t2 >= 9963 && t2 <= 9969 || t2 === 9972 || t2 >= 9974 && t2 <= 9977 || t2 === 9979 || t2 === 9980 || t2 === 9982 || t2 === 9983 || t2 === 10045 || t2 >= 10102 && t2 <= 10111 || t2 >= 11094 && t2 <= 11097 || t2 >= 12872 && t2 <= 12879 || t2 >= 57344 && t2 <= 63743 || t2 >= 65024 && t2 <= 65039 || t2 === 65533 || t2 >= 127232 && t2 <= 127242 || t2 >= 127248 && t2 <= 127277 || t2 >= 127280 && t2 <= 127337 || t2 >= 127344 && t2 <= 127373 || t2 === 127375 || t2 === 127376 || t2 >= 127387 && t2 <= 127404 || t2 >= 917760 && t2 <= 917999 || t2 >= 983040 && t2 <= 1048573 || t2 >= 1048576 && t2 <= 1114109, "ut");
2389
- var ot = /* @__PURE__ */ __name((t2) => t2 === 12288 || t2 >= 65281 && t2 <= 65376 || t2 >= 65504 && t2 <= 65510, "ot");
2390
- var at = /* @__PURE__ */ __name((t2) => t2 >= 4352 && t2 <= 4447 || t2 === 8986 || t2 === 8987 || t2 === 9001 || t2 === 9002 || t2 >= 9193 && t2 <= 9196 || t2 === 9200 || t2 === 9203 || t2 === 9725 || t2 === 9726 || t2 === 9748 || t2 === 9749 || t2 >= 9800 && t2 <= 9811 || t2 === 9855 || t2 === 9875 || t2 === 9889 || t2 === 9898 || t2 === 9899 || t2 === 9917 || t2 === 9918 || t2 === 9924 || t2 === 9925 || t2 === 9934 || t2 === 9940 || t2 === 9962 || t2 === 9970 || t2 === 9971 || t2 === 9973 || t2 === 9978 || t2 === 9981 || t2 === 9989 || t2 === 9994 || t2 === 9995 || t2 === 10024 || t2 === 10060 || t2 === 10062 || t2 >= 10067 && t2 <= 10069 || t2 === 10071 || t2 >= 10133 && t2 <= 10135 || t2 === 10160 || t2 === 10175 || t2 === 11035 || t2 === 11036 || t2 === 11088 || t2 === 11093 || t2 >= 11904 && t2 <= 11929 || t2 >= 11931 && t2 <= 12019 || t2 >= 12032 && t2 <= 12245 || t2 >= 12272 && t2 <= 12287 || t2 >= 12289 && t2 <= 12350 || t2 >= 12353 && t2 <= 12438 || t2 >= 12441 && t2 <= 12543 || t2 >= 12549 && t2 <= 12591 || t2 >= 12593 && t2 <= 12686 || t2 >= 12688 && t2 <= 12771 || t2 >= 12783 && t2 <= 12830 || t2 >= 12832 && t2 <= 12871 || t2 >= 12880 && t2 <= 19903 || t2 >= 19968 && t2 <= 42124 || t2 >= 42128 && t2 <= 42182 || t2 >= 43360 && t2 <= 43388 || t2 >= 44032 && t2 <= 55203 || t2 >= 63744 && t2 <= 64255 || t2 >= 65040 && t2 <= 65049 || t2 >= 65072 && t2 <= 65106 || t2 >= 65108 && t2 <= 65126 || t2 >= 65128 && t2 <= 65131 || t2 >= 94176 && t2 <= 94180 || t2 === 94192 || t2 === 94193 || t2 >= 94208 && t2 <= 100343 || t2 >= 100352 && t2 <= 101589 || t2 >= 101632 && t2 <= 101640 || t2 >= 110576 && t2 <= 110579 || t2 >= 110581 && t2 <= 110587 || t2 === 110589 || t2 === 110590 || t2 >= 110592 && t2 <= 110882 || t2 === 110898 || t2 >= 110928 && t2 <= 110930 || t2 === 110933 || t2 >= 110948 && t2 <= 110951 || t2 >= 110960 && t2 <= 111355 || t2 === 126980 || t2 === 127183 || t2 === 127374 || t2 >= 127377 && t2 <= 127386 || t2 >= 127488 && t2 <= 127490 || t2 >= 127504 && t2 <= 127547 || t2 >= 127552 && t2 <= 127560 || t2 === 127568 || t2 === 127569 || t2 >= 127584 && t2 <= 127589 || t2 >= 127744 && t2 <= 127776 || t2 >= 127789 && t2 <= 127797 || t2 >= 127799 && t2 <= 127868 || t2 >= 127870 && t2 <= 127891 || t2 >= 127904 && t2 <= 127946 || t2 >= 127951 && t2 <= 127955 || t2 >= 127968 && t2 <= 127984 || t2 === 127988 || t2 >= 127992 && t2 <= 128062 || t2 === 128064 || t2 >= 128066 && t2 <= 128252 || t2 >= 128255 && t2 <= 128317 || t2 >= 128331 && t2 <= 128334 || t2 >= 128336 && t2 <= 128359 || t2 === 128378 || t2 === 128405 || t2 === 128406 || t2 === 128420 || t2 >= 128507 && t2 <= 128591 || t2 >= 128640 && t2 <= 128709 || t2 === 128716 || t2 >= 128720 && t2 <= 128722 || t2 >= 128725 && t2 <= 128727 || t2 >= 128732 && t2 <= 128735 || t2 === 128747 || t2 === 128748 || t2 >= 128756 && t2 <= 128764 || t2 >= 128992 && t2 <= 129003 || t2 === 129008 || t2 >= 129292 && t2 <= 129338 || t2 >= 129340 && t2 <= 129349 || t2 >= 129351 && t2 <= 129535 || t2 >= 129648 && t2 <= 129660 || t2 >= 129664 && t2 <= 129672 || t2 >= 129680 && t2 <= 129725 || t2 >= 129727 && t2 <= 129733 || t2 >= 129742 && t2 <= 129755 || t2 >= 129760 && t2 <= 129768 || t2 >= 129776 && t2 <= 129784 || t2 >= 131072 && t2 <= 196605 || t2 >= 196608 && t2 <= 262141, "at");
2391
- var R = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2387
+ import { ReadStream as Y } from "node:tty";
2388
+ var nt = /* @__PURE__ */ __name((t2) => t2 === 161 || t2 === 164 || t2 === 167 || t2 === 168 || t2 === 170 || t2 === 173 || t2 === 174 || t2 >= 176 && t2 <= 180 || t2 >= 182 && t2 <= 186 || t2 >= 188 && t2 <= 191 || t2 === 198 || t2 === 208 || t2 === 215 || t2 === 216 || t2 >= 222 && t2 <= 225 || t2 === 230 || t2 >= 232 && t2 <= 234 || t2 === 236 || t2 === 237 || t2 === 240 || t2 === 242 || t2 === 243 || t2 >= 247 && t2 <= 250 || t2 === 252 || t2 === 254 || t2 === 257 || t2 === 273 || t2 === 275 || t2 === 283 || t2 === 294 || t2 === 295 || t2 === 299 || t2 >= 305 && t2 <= 307 || t2 === 312 || t2 >= 319 && t2 <= 322 || t2 === 324 || t2 >= 328 && t2 <= 331 || t2 === 333 || t2 === 338 || t2 === 339 || t2 === 358 || t2 === 359 || t2 === 363 || t2 === 462 || t2 === 464 || t2 === 466 || t2 === 468 || t2 === 470 || t2 === 472 || t2 === 474 || t2 === 476 || t2 === 593 || t2 === 609 || t2 === 708 || t2 === 711 || t2 >= 713 && t2 <= 715 || t2 === 717 || t2 === 720 || t2 >= 728 && t2 <= 731 || t2 === 733 || t2 === 735 || t2 >= 768 && t2 <= 879 || t2 >= 913 && t2 <= 929 || t2 >= 931 && t2 <= 937 || t2 >= 945 && t2 <= 961 || t2 >= 963 && t2 <= 969 || t2 === 1025 || t2 >= 1040 && t2 <= 1103 || t2 === 1105 || t2 === 8208 || t2 >= 8211 && t2 <= 8214 || t2 === 8216 || t2 === 8217 || t2 === 8220 || t2 === 8221 || t2 >= 8224 && t2 <= 8226 || t2 >= 8228 && t2 <= 8231 || t2 === 8240 || t2 === 8242 || t2 === 8243 || t2 === 8245 || t2 === 8251 || t2 === 8254 || t2 === 8308 || t2 === 8319 || t2 >= 8321 && t2 <= 8324 || t2 === 8364 || t2 === 8451 || t2 === 8453 || t2 === 8457 || t2 === 8467 || t2 === 8470 || t2 === 8481 || t2 === 8482 || t2 === 8486 || t2 === 8491 || t2 === 8531 || t2 === 8532 || t2 >= 8539 && t2 <= 8542 || t2 >= 8544 && t2 <= 8555 || t2 >= 8560 && t2 <= 8569 || t2 === 8585 || t2 >= 8592 && t2 <= 8601 || t2 === 8632 || t2 === 8633 || t2 === 8658 || t2 === 8660 || t2 === 8679 || t2 === 8704 || t2 === 8706 || t2 === 8707 || t2 === 8711 || t2 === 8712 || t2 === 8715 || t2 === 8719 || t2 === 8721 || t2 === 8725 || t2 === 8730 || t2 >= 8733 && t2 <= 8736 || t2 === 8739 || t2 === 8741 || t2 >= 8743 && t2 <= 8748 || t2 === 8750 || t2 >= 8756 && t2 <= 8759 || t2 === 8764 || t2 === 8765 || t2 === 8776 || t2 === 8780 || t2 === 8786 || t2 === 8800 || t2 === 8801 || t2 >= 8804 && t2 <= 8807 || t2 === 8810 || t2 === 8811 || t2 === 8814 || t2 === 8815 || t2 === 8834 || t2 === 8835 || t2 === 8838 || t2 === 8839 || t2 === 8853 || t2 === 8857 || t2 === 8869 || t2 === 8895 || t2 === 8978 || t2 >= 9312 && t2 <= 9449 || t2 >= 9451 && t2 <= 9547 || t2 >= 9552 && t2 <= 9587 || t2 >= 9600 && t2 <= 9615 || t2 >= 9618 && t2 <= 9621 || t2 === 9632 || t2 === 9633 || t2 >= 9635 && t2 <= 9641 || t2 === 9650 || t2 === 9651 || t2 === 9654 || t2 === 9655 || t2 === 9660 || t2 === 9661 || t2 === 9664 || t2 === 9665 || t2 >= 9670 && t2 <= 9672 || t2 === 9675 || t2 >= 9678 && t2 <= 9681 || t2 >= 9698 && t2 <= 9701 || t2 === 9711 || t2 === 9733 || t2 === 9734 || t2 === 9737 || t2 === 9742 || t2 === 9743 || t2 === 9756 || t2 === 9758 || t2 === 9792 || t2 === 9794 || t2 === 9824 || t2 === 9825 || t2 >= 9827 && t2 <= 9829 || t2 >= 9831 && t2 <= 9834 || t2 === 9836 || t2 === 9837 || t2 === 9839 || t2 === 9886 || t2 === 9887 || t2 === 9919 || t2 >= 9926 && t2 <= 9933 || t2 >= 9935 && t2 <= 9939 || t2 >= 9941 && t2 <= 9953 || t2 === 9955 || t2 === 9960 || t2 === 9961 || t2 >= 9963 && t2 <= 9969 || t2 === 9972 || t2 >= 9974 && t2 <= 9977 || t2 === 9979 || t2 === 9980 || t2 === 9982 || t2 === 9983 || t2 === 10045 || t2 >= 10102 && t2 <= 10111 || t2 >= 11094 && t2 <= 11097 || t2 >= 12872 && t2 <= 12879 || t2 >= 57344 && t2 <= 63743 || t2 >= 65024 && t2 <= 65039 || t2 === 65533 || t2 >= 127232 && t2 <= 127242 || t2 >= 127248 && t2 <= 127277 || t2 >= 127280 && t2 <= 127337 || t2 >= 127344 && t2 <= 127373 || t2 === 127375 || t2 === 127376 || t2 >= 127387 && t2 <= 127404 || t2 >= 917760 && t2 <= 917999 || t2 >= 983040 && t2 <= 1048573 || t2 >= 1048576 && t2 <= 1114109, "nt");
2389
+ var ut = /* @__PURE__ */ __name((t2) => t2 === 12288 || t2 >= 65281 && t2 <= 65376 || t2 >= 65504 && t2 <= 65510, "ut");
2390
+ var ot = /* @__PURE__ */ __name((t2) => t2 >= 4352 && t2 <= 4447 || t2 === 8986 || t2 === 8987 || t2 === 9001 || t2 === 9002 || t2 >= 9193 && t2 <= 9196 || t2 === 9200 || t2 === 9203 || t2 === 9725 || t2 === 9726 || t2 === 9748 || t2 === 9749 || t2 >= 9800 && t2 <= 9811 || t2 === 9855 || t2 === 9875 || t2 === 9889 || t2 === 9898 || t2 === 9899 || t2 === 9917 || t2 === 9918 || t2 === 9924 || t2 === 9925 || t2 === 9934 || t2 === 9940 || t2 === 9962 || t2 === 9970 || t2 === 9971 || t2 === 9973 || t2 === 9978 || t2 === 9981 || t2 === 9989 || t2 === 9994 || t2 === 9995 || t2 === 10024 || t2 === 10060 || t2 === 10062 || t2 >= 10067 && t2 <= 10069 || t2 === 10071 || t2 >= 10133 && t2 <= 10135 || t2 === 10160 || t2 === 10175 || t2 === 11035 || t2 === 11036 || t2 === 11088 || t2 === 11093 || t2 >= 11904 && t2 <= 11929 || t2 >= 11931 && t2 <= 12019 || t2 >= 12032 && t2 <= 12245 || t2 >= 12272 && t2 <= 12287 || t2 >= 12289 && t2 <= 12350 || t2 >= 12353 && t2 <= 12438 || t2 >= 12441 && t2 <= 12543 || t2 >= 12549 && t2 <= 12591 || t2 >= 12593 && t2 <= 12686 || t2 >= 12688 && t2 <= 12771 || t2 >= 12783 && t2 <= 12830 || t2 >= 12832 && t2 <= 12871 || t2 >= 12880 && t2 <= 19903 || t2 >= 19968 && t2 <= 42124 || t2 >= 42128 && t2 <= 42182 || t2 >= 43360 && t2 <= 43388 || t2 >= 44032 && t2 <= 55203 || t2 >= 63744 && t2 <= 64255 || t2 >= 65040 && t2 <= 65049 || t2 >= 65072 && t2 <= 65106 || t2 >= 65108 && t2 <= 65126 || t2 >= 65128 && t2 <= 65131 || t2 >= 94176 && t2 <= 94180 || t2 === 94192 || t2 === 94193 || t2 >= 94208 && t2 <= 100343 || t2 >= 100352 && t2 <= 101589 || t2 >= 101632 && t2 <= 101640 || t2 >= 110576 && t2 <= 110579 || t2 >= 110581 && t2 <= 110587 || t2 === 110589 || t2 === 110590 || t2 >= 110592 && t2 <= 110882 || t2 === 110898 || t2 >= 110928 && t2 <= 110930 || t2 === 110933 || t2 >= 110948 && t2 <= 110951 || t2 >= 110960 && t2 <= 111355 || t2 === 126980 || t2 === 127183 || t2 === 127374 || t2 >= 127377 && t2 <= 127386 || t2 >= 127488 && t2 <= 127490 || t2 >= 127504 && t2 <= 127547 || t2 >= 127552 && t2 <= 127560 || t2 === 127568 || t2 === 127569 || t2 >= 127584 && t2 <= 127589 || t2 >= 127744 && t2 <= 127776 || t2 >= 127789 && t2 <= 127797 || t2 >= 127799 && t2 <= 127868 || t2 >= 127870 && t2 <= 127891 || t2 >= 127904 && t2 <= 127946 || t2 >= 127951 && t2 <= 127955 || t2 >= 127968 && t2 <= 127984 || t2 === 127988 || t2 >= 127992 && t2 <= 128062 || t2 === 128064 || t2 >= 128066 && t2 <= 128252 || t2 >= 128255 && t2 <= 128317 || t2 >= 128331 && t2 <= 128334 || t2 >= 128336 && t2 <= 128359 || t2 === 128378 || t2 === 128405 || t2 === 128406 || t2 === 128420 || t2 >= 128507 && t2 <= 128591 || t2 >= 128640 && t2 <= 128709 || t2 === 128716 || t2 >= 128720 && t2 <= 128722 || t2 >= 128725 && t2 <= 128727 || t2 >= 128732 && t2 <= 128735 || t2 === 128747 || t2 === 128748 || t2 >= 128756 && t2 <= 128764 || t2 >= 128992 && t2 <= 129003 || t2 === 129008 || t2 >= 129292 && t2 <= 129338 || t2 >= 129340 && t2 <= 129349 || t2 >= 129351 && t2 <= 129535 || t2 >= 129648 && t2 <= 129660 || t2 >= 129664 && t2 <= 129672 || t2 >= 129680 && t2 <= 129725 || t2 >= 129727 && t2 <= 129733 || t2 >= 129742 && t2 <= 129755 || t2 >= 129760 && t2 <= 129768 || t2 >= 129776 && t2 <= 129784 || t2 >= 131072 && t2 <= 196605 || t2 >= 196608 && t2 <= 262141, "ot");
2391
+ var $ = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2392
2392
  var k = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2393
2393
  var y = /\t{1,1000}/y;
2394
2394
  var N = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2395
2395
  var M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2396
- var lt = /\p{M}+/gu;
2397
- var ht = { limit: 1 / 0, ellipsis: "" };
2396
+ var at = /\p{M}+/gu;
2397
+ var lt = { limit: 1 / 0, ellipsis: "" };
2398
2398
  var q = /* @__PURE__ */ __name((t2, s = {}, e = {}) => {
2399
- const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? q(r, ht, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, S = e.wideWidth ?? 2;
2400
- let o = 0, u2 = 0, p = t2.length, E = 0, f = false, d = p, _2 = Math.max(0, i - n), b2 = 0, x = 0, h = 0, c = 0;
2399
+ const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? q(r, lt, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, S2 = e.wideWidth ?? 2;
2400
+ let o = 0, u = 0, p = t2.length, E = 0, f = false, d = p, _ = Math.max(0, i - n), b2 = 0, x = 0, h = 0, c2 = 0;
2401
2401
  t: for (; ; ) {
2402
- if (x > b2 || u2 >= p && u2 > o) {
2403
- const it = t2.slice(b2, x) || t2.slice(o, u2);
2402
+ if (x > b2 || u >= p && u > o) {
2403
+ const it = t2.slice(b2, x) || t2.slice(o, u);
2404
2404
  E = 0;
2405
- for (const K of it.replaceAll(lt, "")) {
2406
- const T2 = K.codePointAt(0) || 0;
2407
- if (ot(T2) ? c = m : at(T2) ? c = S : v !== A && ut(T2) ? c = v : c = A, h + c > _2 && (d = Math.min(d, Math.max(b2, o) + E)), h + c > i) {
2405
+ for (const K2 of it.replaceAll(at, "")) {
2406
+ const T = K2.codePointAt(0) || 0;
2407
+ if (ut(T) ? c2 = m : ot(T) ? c2 = S2 : v !== A && nt(T) ? c2 = v : c2 = A, h + c2 > _ && (d = Math.min(d, Math.max(b2, o) + E)), h + c2 > i) {
2408
2408
  f = true;
2409
2409
  break t;
2410
2410
  }
2411
- E += K.length, h += c;
2411
+ E += K2.length, h += c2;
2412
2412
  }
2413
2413
  b2 = x = 0;
2414
2414
  }
2415
- if (u2 >= p) break;
2416
- if (M.lastIndex = u2, M.test(t2)) {
2417
- if (E = M.lastIndex - u2, c = E * A, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / A))), h + c > i) {
2415
+ if (u >= p) break;
2416
+ if (M.lastIndex = u, M.test(t2)) {
2417
+ if (E = M.lastIndex - u, c2 = E * A, h + c2 > _ && (d = Math.min(d, u + Math.floor((_ - h) / A))), h + c2 > i) {
2418
2418
  f = true;
2419
2419
  break;
2420
2420
  }
2421
- h += c, b2 = o, x = u2, u2 = o = M.lastIndex;
2421
+ h += c2, b2 = o, x = u, u = o = M.lastIndex;
2422
2422
  continue;
2423
2423
  }
2424
- if (R.lastIndex = u2, R.test(t2)) {
2425
- if (h + F > _2 && (d = Math.min(d, u2)), h + F > i) {
2424
+ if ($.lastIndex = u, $.test(t2)) {
2425
+ if (h + F > _ && (d = Math.min(d, u)), h + F > i) {
2426
2426
  f = true;
2427
2427
  break;
2428
2428
  }
2429
- h += F, b2 = o, x = u2, u2 = o = R.lastIndex;
2429
+ h += F, b2 = o, x = u, u = o = $.lastIndex;
2430
2430
  continue;
2431
2431
  }
2432
- if (k.lastIndex = u2, k.test(t2)) {
2433
- if (E = k.lastIndex - u2, c = E * l, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / l))), h + c > i) {
2432
+ if (k.lastIndex = u, k.test(t2)) {
2433
+ if (E = k.lastIndex - u, c2 = E * l, h + c2 > _ && (d = Math.min(d, u + Math.floor((_ - h) / l))), h + c2 > i) {
2434
2434
  f = true;
2435
2435
  break;
2436
2436
  }
2437
- h += c, b2 = o, x = u2, u2 = o = k.lastIndex;
2437
+ h += c2, b2 = o, x = u, u = o = k.lastIndex;
2438
2438
  continue;
2439
2439
  }
2440
- if (y.lastIndex = u2, y.test(t2)) {
2441
- if (E = y.lastIndex - u2, c = E * a, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / a))), h + c > i) {
2440
+ if (y.lastIndex = u, y.test(t2)) {
2441
+ if (E = y.lastIndex - u, c2 = E * a, h + c2 > _ && (d = Math.min(d, u + Math.floor((_ - h) / a))), h + c2 > i) {
2442
2442
  f = true;
2443
2443
  break;
2444
2444
  }
2445
- h += c, b2 = o, x = u2, u2 = o = y.lastIndex;
2445
+ h += c2, b2 = o, x = u, u = o = y.lastIndex;
2446
2446
  continue;
2447
2447
  }
2448
- if (N.lastIndex = u2, N.test(t2)) {
2449
- if (h + g > _2 && (d = Math.min(d, u2)), h + g > i) {
2448
+ if (N.lastIndex = u, N.test(t2)) {
2449
+ if (h + g > _ && (d = Math.min(d, u)), h + g > i) {
2450
2450
  f = true;
2451
2451
  break;
2452
2452
  }
2453
- h += g, b2 = o, x = u2, u2 = o = N.lastIndex;
2453
+ h += g, b2 = o, x = u, u = o = N.lastIndex;
2454
2454
  continue;
2455
2455
  }
2456
- u2 += 1;
2456
+ u += 1;
2457
2457
  }
2458
- return { width: f ? _2 : h, index: f ? d : p, truncated: f, ellipsed: f && i >= n };
2458
+ return { width: f ? _ : h, index: f ? d : p, truncated: f, ellipsed: f && i >= n };
2459
2459
  }, "q");
2460
- var ct = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2461
- var w = /* @__PURE__ */ __name((t2, s = {}) => q(t2, ct, s).width, "w");
2460
+ var ht = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2461
+ var w = /* @__PURE__ */ __name((t2, s = {}) => q(t2, ht, s).width, "w");
2462
2462
  var L = "\x1B";
2463
2463
  var J = "\x9B";
2464
- var Ft = 39;
2464
+ var ct = 39;
2465
2465
  var P = "\x07";
2466
2466
  var X = "[";
2467
- var pt = "]";
2467
+ var Ft = "]";
2468
2468
  var Z = "m";
2469
- var O = `${pt}8;;`;
2469
+ var O = `${Ft}8;;`;
2470
2470
  var Q = new RegExp(`(?:\\${X}(?<code>\\d+)m|\\${O}(?<uri>.*)${P})`, "y");
2471
- var ft = /* @__PURE__ */ __name((t2) => {
2471
+ var pt = /* @__PURE__ */ __name((t2) => {
2472
2472
  if (t2 >= 30 && t2 <= 37 || t2 >= 90 && t2 <= 97) return 39;
2473
2473
  if (t2 >= 40 && t2 <= 47 || t2 >= 100 && t2 <= 107) return 49;
2474
2474
  if (t2 === 1 || t2 === 2) return 22;
@@ -2478,10 +2478,10 @@ var ft = /* @__PURE__ */ __name((t2) => {
2478
2478
  if (t2 === 8) return 28;
2479
2479
  if (t2 === 9) return 29;
2480
2480
  if (t2 === 0) return 0;
2481
- }, "ft");
2481
+ }, "pt");
2482
2482
  var tt = /* @__PURE__ */ __name((t2) => `${L}${X}${t2}${Z}`, "tt");
2483
2483
  var st = /* @__PURE__ */ __name((t2) => `${L}${O}${t2}${P}`, "st");
2484
- var dt = /* @__PURE__ */ __name((t2) => t2.map((s) => w(s)), "dt");
2484
+ var ft = /* @__PURE__ */ __name((t2) => t2.map((s) => w(s)), "ft");
2485
2485
  var j = /* @__PURE__ */ __name((t2, s, e) => {
2486
2486
  const i = s[Symbol.iterator]();
2487
2487
  let r = false, n = false, F = t2.at(-1), l = F === void 0 ? 0 : w(F), a = i.next(), v = i.next(), g = 0;
@@ -2491,76 +2491,76 @@ var j = /* @__PURE__ */ __name((t2, s, e) => {
2491
2491
  }
2492
2492
  F = t2.at(-1), !l && F !== void 0 && F.length > 0 && t2.length > 1 && (t2[t2.length - 2] += t2.pop());
2493
2493
  }, "j");
2494
- var mt = /* @__PURE__ */ __name((t2) => {
2494
+ var dt = /* @__PURE__ */ __name((t2) => {
2495
2495
  const s = t2.split(" ");
2496
2496
  let e = s.length;
2497
2497
  for (; e > 0 && !(w(s[e - 1]) > 0); ) e--;
2498
2498
  return e === s.length ? t2 : s.slice(0, e).join(" ") + s.slice(e).join("");
2499
- }, "mt");
2500
- var gt = /* @__PURE__ */ __name((t2, s, e = {}) => {
2499
+ }, "dt");
2500
+ var mt = /* @__PURE__ */ __name((t2, s, e = {}) => {
2501
2501
  if (e.trim !== false && t2.trim() === "") return "";
2502
2502
  let i = "", r, n;
2503
- const F = t2.split(" "), l = dt(F);
2503
+ const F = t2.split(" "), l = ft(F);
2504
2504
  let a = [""];
2505
- for (const [o, u2] of F.entries()) {
2505
+ for (const [o, u] of F.entries()) {
2506
2506
  e.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
2507
2507
  let p = w(a.at(-1) ?? "");
2508
2508
  if (o !== 0 && (p >= s && (e.wordWrap === false || e.trim === false) && (a.push(""), p = 0), (p > 0 || e.trim === false) && (a[a.length - 1] += " ", p++)), e.hard && l[o] > s) {
2509
2509
  const E = s - p, f = 1 + Math.floor((l[o] - E - 1) / s);
2510
- Math.floor((l[o] - 1) / s) < f && a.push(""), j(a, u2, s);
2510
+ Math.floor((l[o] - 1) / s) < f && a.push(""), j(a, u, s);
2511
2511
  continue;
2512
2512
  }
2513
2513
  if (p + l[o] > s && p > 0 && l[o] > 0) {
2514
2514
  if (e.wordWrap === false && p < s) {
2515
- j(a, u2, s);
2515
+ j(a, u, s);
2516
2516
  continue;
2517
2517
  }
2518
2518
  a.push("");
2519
2519
  }
2520
2520
  if (p + l[o] > s && e.wordWrap === false) {
2521
- j(a, u2, s);
2521
+ j(a, u, s);
2522
2522
  continue;
2523
2523
  }
2524
- a[a.length - 1] += u2;
2524
+ a[a.length - 1] += u;
2525
2525
  }
2526
- e.trim !== false && (a = a.map((o) => mt(o)));
2526
+ e.trim !== false && (a = a.map((o) => dt(o)));
2527
2527
  const v = a.join(`
2528
2528
  `), g = v[Symbol.iterator]();
2529
- let m = g.next(), A = g.next(), S = 0;
2529
+ let m = g.next(), A = g.next(), S2 = 0;
2530
2530
  for (; !m.done; ) {
2531
- const o = m.value, u2 = A.value;
2531
+ const o = m.value, u = A.value;
2532
2532
  if (i += o, o === L || o === J) {
2533
- Q.lastIndex = S + 1;
2533
+ Q.lastIndex = S2 + 1;
2534
2534
  const f = Q.exec(v)?.groups;
2535
2535
  if (f?.code !== void 0) {
2536
2536
  const d = Number.parseFloat(f.code);
2537
- r = d === Ft ? void 0 : d;
2537
+ r = d === ct ? void 0 : d;
2538
2538
  } else f?.uri !== void 0 && (n = f.uri.length === 0 ? void 0 : f.uri);
2539
2539
  }
2540
- const p = r ? ft(r) : void 0;
2541
- u2 === `
2540
+ const p = r ? pt(r) : void 0;
2541
+ u === `
2542
2542
  ` ? (n && (i += st("")), r && p && (i += tt(p))) : o === `
2543
- ` && (r && p && (i += tt(r)), n && (i += st(n))), S += o.length, m = A, A = g.next();
2543
+ ` && (r && p && (i += tt(r)), n && (i += st(n))), S2 += o.length, m = A, A = g.next();
2544
2544
  }
2545
2545
  return i;
2546
- }, "gt");
2546
+ }, "mt");
2547
2547
  function et(t2, s, e) {
2548
2548
  return String(t2).normalize().replaceAll(`\r
2549
2549
  `, `
2550
2550
  `).split(`
2551
- `).map((i) => gt(i, s, e)).join(`
2551
+ `).map((i) => mt(i, s, e)).join(`
2552
2552
  `);
2553
2553
  }
2554
2554
  __name(et, "et");
2555
- var Et = ["up", "down", "left", "right", "space", "enter", "cancel"];
2556
- var C = { actions: new Set(Et), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" } };
2555
+ var gt = ["up", "down", "left", "right", "space", "enter", "cancel"];
2556
+ var C = { actions: new Set(gt), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" } };
2557
2557
  function U(t2, s) {
2558
2558
  if (typeof t2 == "string") return C.aliases.get(t2) === s;
2559
2559
  for (const e of t2) if (e !== void 0 && U(e, s)) return true;
2560
2560
  return false;
2561
2561
  }
2562
2562
  __name(U, "U");
2563
- function At(t2, s) {
2563
+ function vt(t2, s) {
2564
2564
  if (t2 === s) return;
2565
2565
  const e = t2.split(`
2566
2566
  `), i = s.split(`
@@ -2568,19 +2568,19 @@ function At(t2, s) {
2568
2568
  for (let n = 0; n < Math.max(e.length, i.length); n++) e[n] !== i[n] && r.push(n);
2569
2569
  return r;
2570
2570
  }
2571
- __name(At, "At");
2572
- var It = globalThis.process.platform.startsWith("win");
2571
+ __name(vt, "vt");
2572
+ var At = globalThis.process.platform.startsWith("win");
2573
2573
  var G = Symbol("clack:cancel");
2574
- function _t(t2) {
2574
+ function It(t2) {
2575
2575
  return t2 === G;
2576
2576
  }
2577
- __name(_t, "_t");
2577
+ __name(It, "It");
2578
2578
  function W(t2, s) {
2579
2579
  const e = t2;
2580
2580
  e.isTTY && e.setRawMode(s);
2581
2581
  }
2582
2582
  __name(W, "W");
2583
- function Ct({ input: t2 = z, output: s = H, overwrite: e = true, hideCursor: i = true } = {}) {
2583
+ function _t({ input: t2 = z, output: s = H, overwrite: e = true, hideCursor: i = true } = {}) {
2584
2584
  const r = V.createInterface({ input: t2, output: s, prompt: "", tabSize: 1 });
2585
2585
  V.emitKeypressEvents(t2, r), t2 instanceof Y && t2.isTTY && t2.setRawMode(true);
2586
2586
  const n = /* @__PURE__ */ __name((F, { name: l, sequence: a }) => {
@@ -2598,11 +2598,12 @@ function Ct({ input: t2 = z, output: s = H, overwrite: e = true, hideCursor: i =
2598
2598
  });
2599
2599
  }, "n");
2600
2600
  return i && s.write(import_sisteransi.cursor.hide), t2.once("keypress", n), () => {
2601
- t2.off("keypress", n), i && s.write(import_sisteransi.cursor.show), t2 instanceof Y && t2.isTTY && !It && t2.setRawMode(false), r.terminal = false, r.close();
2601
+ t2.off("keypress", n), i && s.write(import_sisteransi.cursor.show), t2 instanceof Y && t2.isTTY && !At && t2.setRawMode(false), r.terminal = false, r.close();
2602
2602
  };
2603
2603
  }
2604
- __name(Ct, "Ct");
2605
- var bt = /* @__PURE__ */ __name((t2) => t2 instanceof nt && t2.columns ? t2.columns : 80, "bt");
2604
+ __name(_t, "_t");
2605
+ var Ct = /* @__PURE__ */ __name((t2) => "columns" in t2 && typeof t2.columns == "number" ? t2.columns : 80, "Ct");
2606
+ var bt = /* @__PURE__ */ __name((t2) => "rows" in t2 && typeof t2.rows == "number" ? t2.rows : 20, "bt");
2606
2607
  var B = class {
2607
2608
  static {
2608
2609
  __name(this, "B");
@@ -2694,7 +2695,7 @@ var B = class {
2694
2695
  if (s !== this._prevFrame) {
2695
2696
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
2696
2697
  else {
2697
- const e = At(this._prevFrame, s);
2698
+ const e = vt(this._prevFrame, s);
2698
2699
  if (this.restoreCursor(), e && e?.length === 1) {
2699
2700
  const i = e[0];
2700
2701
  this.output.write(import_sisteransi.cursor.move(0, i)), this.output.write(import_sisteransi.erase.lines(1));
@@ -2752,8 +2753,10 @@ var kt = class extends B {
2752
2753
  this.value = s ? [] : this.options.map((e) => e.value);
2753
2754
  }
2754
2755
  toggleInvert() {
2755
- const s = this.options.filter((e) => !this.value.includes(e.value));
2756
- this.value = s.map((e) => e.value);
2756
+ const s = this.value;
2757
+ if (!s) return;
2758
+ const e = this.options.filter((i) => !s.includes(i.value));
2759
+ this.value = e.map((i) => i.value);
2757
2760
  }
2758
2761
  toggleValue() {
2759
2762
  this.value === void 0 && (this.value = []);
@@ -2833,149 +2836,138 @@ var Wt = class extends B {
2833
2836
 
2834
2837
  // ../node_modules/@clack/prompts/dist/index.mjs
2835
2838
  var import_picocolors2 = __toESM(require_picocolors(), 1);
2836
- import T from "node:process";
2837
- import { WriteStream as rt2 } from "node:tty";
2839
+ import N2 from "node:process";
2838
2840
  var import_sisteransi2 = __toESM(require_src(), 1);
2839
2841
  function ot2() {
2840
- return T.platform !== "win32" ? T.env.TERM !== "linux" : !!T.env.CI || !!T.env.WT_SESSION || !!T.env.TERMINUS_SUBLIME || T.env.ConEmuTask === "{cmd::Cmder}" || T.env.TERM_PROGRAM === "Terminus-Sublime" || T.env.TERM_PROGRAM === "vscode" || T.env.TERM === "xterm-256color" || T.env.TERM === "alacritty" || T.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2842
+ return N2.platform !== "win32" ? N2.env.TERM !== "linux" : !!N2.env.CI || !!N2.env.WT_SESSION || !!N2.env.TERMINUS_SUBLIME || N2.env.ConEmuTask === "{cmd::Cmder}" || N2.env.TERM_PROGRAM === "Terminus-Sublime" || N2.env.TERM_PROGRAM === "vscode" || N2.env.TERM === "xterm-256color" || N2.env.TERM === "alacritty" || N2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2841
2843
  }
2842
2844
  __name(ot2, "ot");
2843
- var q2 = ot2();
2844
- var se = /* @__PURE__ */ __name(() => process.env.CI === "true", "se");
2845
+ var J2 = ot2();
2846
+ var re = /* @__PURE__ */ __name(() => process.env.CI === "true", "re");
2845
2847
  var Se = /* @__PURE__ */ __name((e) => e.isTTY === true, "Se");
2846
- var I2 = /* @__PURE__ */ __name((e, r) => q2 ? e : r, "I");
2847
- var we = I2("\u25C6", "*");
2848
- var re = I2("\u25A0", "x");
2849
- var ie = I2("\u25B2", "x");
2850
- var L2 = I2("\u25C7", "o");
2851
- var ne = I2("\u250C", "T");
2852
- var u = I2("\u2502", "|");
2853
- var _ = I2("\u2514", "\u2014");
2854
- var Be = I2("\u2510", "T");
2855
- var _e = I2("\u2518", "\u2014");
2856
- var G2 = I2("\u25CF", ">");
2857
- var H2 = I2("\u25CB", " ");
2858
- var J2 = I2("\u25FB", "[\u2022]");
2859
- var W2 = I2("\u25FC", "[+]");
2860
- var X2 = I2("\u25FB", "[ ]");
2861
- var xe = I2("\u25AA", "\u2022");
2862
- var Y2 = I2("\u2500", "-");
2863
- var ae = I2("\u256E", "+");
2864
- var be = I2("\u251C", "+");
2865
- var oe = I2("\u256F", "+");
2866
- var De = I2("\u2570", "+");
2867
- var Te = I2("\u256D", "+");
2868
- var le = I2("\u25CF", "\u2022");
2869
- var ue = I2("\u25C6", "*");
2870
- var ce = I2("\u25B2", "!");
2871
- var $e = I2("\u25A0", "x");
2872
- var M2 = /* @__PURE__ */ __name((e) => {
2848
+ var S = /* @__PURE__ */ __name((e, r) => J2 ? e : r, "S");
2849
+ var we = S("\u25C6", "*");
2850
+ var ie = S("\u25A0", "x");
2851
+ var ne = S("\u25B2", "x");
2852
+ var W2 = S("\u25C7", "o");
2853
+ var ae = S("\u250C", "T");
2854
+ var c = S("\u2502", "|");
2855
+ var b = S("\u2514", "\u2014");
2856
+ var Be = S("\u2510", "T");
2857
+ var xe = S("\u2518", "\u2014");
2858
+ var U2 = S("\u25CF", ">");
2859
+ var K = S("\u25CB", " ");
2860
+ var X2 = S("\u25FB", "[\u2022]");
2861
+ var P2 = S("\u25FC", "[+]");
2862
+ var Y2 = S("\u25FB", "[ ]");
2863
+ var be = S("\u25AA", "\u2022");
2864
+ var z2 = S("\u2500", "-");
2865
+ var oe = S("\u256E", "+");
2866
+ var _e = S("\u251C", "+");
2867
+ var le = S("\u256F", "+");
2868
+ var De = S("\u2570", "+");
2869
+ var Te = S("\u256D", "+");
2870
+ var ue = S("\u25CF", "\u2022");
2871
+ var ce = S("\u25C6", "*");
2872
+ var $e = S("\u25B2", "!");
2873
+ var de = S("\u25A0", "x");
2874
+ var L2 = /* @__PURE__ */ __name((e) => {
2873
2875
  switch (e) {
2874
2876
  case "initial":
2875
2877
  case "active":
2876
2878
  return import_picocolors2.default.cyan(we);
2877
2879
  case "cancel":
2878
- return import_picocolors2.default.red(re);
2880
+ return import_picocolors2.default.red(ie);
2879
2881
  case "error":
2880
- return import_picocolors2.default.yellow(ie);
2882
+ return import_picocolors2.default.yellow(ne);
2881
2883
  case "submit":
2882
- return import_picocolors2.default.green(L2);
2883
- }
2884
- }, "M");
2885
- var k2 = /* @__PURE__ */ __name((e) => {
2886
- const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = n instanceof rt2 && n.rows !== void 0 ? n.rows : 10, c = import_picocolors2.default.dim("..."), l = e.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(o - 4, 0), h = Math.min(a, Math.max(l, 5));
2887
- let g = 0;
2888
- r >= g + h - 3 ? g = Math.max(Math.min(r - h + 3, s.length - h), 0) : r < g + 2 && (g = Math.max(r - 2, 0));
2889
- const F = h < s.length && g > 0, y2 = h < s.length && g + h < s.length;
2890
- return s.slice(g, g + h).map((m, p, $2) => {
2891
- const d = p === 0 && F, f = p === $2.length - 1 && y2;
2892
- return d || f ? c : i(m, p + g === r);
2893
- });
2894
- }, "k");
2895
- var ct2 = /* @__PURE__ */ __name((e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, "ct");
2896
- var $t = /* @__PURE__ */ __name((e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, "$t");
2897
- var dt2 = /* @__PURE__ */ __name((e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, "dt");
2898
- var de = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2899
- var z2 = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2900
- var Z2 = /\t{1,1000}/y;
2901
- var he = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2902
- var Q2 = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2903
- var ht2 = /\p{M}+/gu;
2904
- var mt2 = { limit: 1 / 0, ellipsis: "" };
2905
- var Ne = /* @__PURE__ */ __name((e, r = {}, s = {}) => {
2906
- const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Ne(n, mt2, s).width : 0), c = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, h = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, F = s.fullWidthWidth ?? 2, y2 = s.regularWidth ?? 1, m = s.wideWidth ?? 2;
2907
- let p = 0, $2 = 0, d = e.length, f = 0, E = false, v = d, w2 = Math.max(0, i - o), B2 = 0, x = 0, A = 0, C2 = 0;
2884
+ return import_picocolors2.default.green(W2);
2885
+ }
2886
+ }, "L");
2887
+ var lt2 = /* @__PURE__ */ __name((e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, "lt");
2888
+ var ut2 = /* @__PURE__ */ __name((e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, "ut");
2889
+ var ct2 = /* @__PURE__ */ __name((e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, "ct");
2890
+ var he = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2891
+ var Z2 = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2892
+ var Q2 = /\t{1,1000}/y;
2893
+ var me = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2894
+ var ee = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2895
+ var $t = /\p{M}+/gu;
2896
+ var dt2 = { limit: 1 / 0, ellipsis: "" };
2897
+ var Re = /* @__PURE__ */ __name((e, r = {}, s = {}) => {
2898
+ const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Re(n, dt2, s).width : 0), u = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, m = s.ambiguousWidth ?? 1, E = s.emojiWidth ?? 2, y2 = s.fullWidthWidth ?? 2, F = s.regularWidth ?? 1, p = s.wideWidth ?? 2;
2899
+ let h = 0, d = 0, $2 = e.length, g = 0, f = false, v = $2, w2 = Math.max(0, i - o), B2 = 0, x = 0, A = 0, C2 = 0;
2908
2900
  e: for (; ; ) {
2909
- if (x > B2 || $2 >= d && $2 > p) {
2910
- const O2 = e.slice(B2, x) || e.slice(p, $2);
2911
- f = 0;
2912
- for (const N2 of O2.replaceAll(ht2, "")) {
2913
- const S = N2.codePointAt(0) || 0;
2914
- if ($t(S) ? C2 = F : dt2(S) ? C2 = m : h !== y2 && ct2(S) ? C2 = h : C2 = y2, A + C2 > w2 && (v = Math.min(v, Math.max(B2, p) + f)), A + C2 > i) {
2915
- E = true;
2901
+ if (x > B2 || d >= $2 && d > h) {
2902
+ const _ = e.slice(B2, x) || e.slice(h, d);
2903
+ g = 0;
2904
+ for (const D2 of _.replaceAll($t, "")) {
2905
+ const I2 = D2.codePointAt(0) || 0;
2906
+ if (ut2(I2) ? C2 = y2 : ct2(I2) ? C2 = p : m !== F && lt2(I2) ? C2 = m : C2 = F, A + C2 > w2 && (v = Math.min(v, Math.max(B2, h) + g)), A + C2 > i) {
2907
+ f = true;
2916
2908
  break e;
2917
2909
  }
2918
- f += N2.length, A += C2;
2910
+ g += D2.length, A += C2;
2919
2911
  }
2920
2912
  B2 = x = 0;
2921
2913
  }
2922
- if ($2 >= d) break;
2923
- if (Q2.lastIndex = $2, Q2.test(e)) {
2924
- if (f = Q2.lastIndex - $2, C2 = f * y2, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / y2))), A + C2 > i) {
2925
- E = true;
2914
+ if (d >= $2) break;
2915
+ if (ee.lastIndex = d, ee.test(e)) {
2916
+ if (g = ee.lastIndex - d, C2 = g * F, A + C2 > w2 && (v = Math.min(v, d + Math.floor((w2 - A) / F))), A + C2 > i) {
2917
+ f = true;
2926
2918
  break;
2927
2919
  }
2928
- A += C2, B2 = p, x = $2, $2 = p = Q2.lastIndex;
2920
+ A += C2, B2 = h, x = d, d = h = ee.lastIndex;
2929
2921
  continue;
2930
2922
  }
2931
- if (de.lastIndex = $2, de.test(e)) {
2932
- if (A + c > w2 && (v = Math.min(v, $2)), A + c > i) {
2933
- E = true;
2923
+ if (he.lastIndex = d, he.test(e)) {
2924
+ if (A + u > w2 && (v = Math.min(v, d)), A + u > i) {
2925
+ f = true;
2934
2926
  break;
2935
2927
  }
2936
- A += c, B2 = p, x = $2, $2 = p = de.lastIndex;
2928
+ A += u, B2 = h, x = d, d = h = he.lastIndex;
2937
2929
  continue;
2938
2930
  }
2939
- if (z2.lastIndex = $2, z2.test(e)) {
2940
- if (f = z2.lastIndex - $2, C2 = f * l, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / l))), A + C2 > i) {
2941
- E = true;
2931
+ if (Z2.lastIndex = d, Z2.test(e)) {
2932
+ if (g = Z2.lastIndex - d, C2 = g * l, A + C2 > w2 && (v = Math.min(v, d + Math.floor((w2 - A) / l))), A + C2 > i) {
2933
+ f = true;
2942
2934
  break;
2943
2935
  }
2944
- A += C2, B2 = p, x = $2, $2 = p = z2.lastIndex;
2936
+ A += C2, B2 = h, x = d, d = h = Z2.lastIndex;
2945
2937
  continue;
2946
2938
  }
2947
- if (Z2.lastIndex = $2, Z2.test(e)) {
2948
- if (f = Z2.lastIndex - $2, C2 = f * a, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / a))), A + C2 > i) {
2949
- E = true;
2939
+ if (Q2.lastIndex = d, Q2.test(e)) {
2940
+ if (g = Q2.lastIndex - d, C2 = g * a, A + C2 > w2 && (v = Math.min(v, d + Math.floor((w2 - A) / a))), A + C2 > i) {
2941
+ f = true;
2950
2942
  break;
2951
2943
  }
2952
- A += C2, B2 = p, x = $2, $2 = p = Z2.lastIndex;
2944
+ A += C2, B2 = h, x = d, d = h = Q2.lastIndex;
2953
2945
  continue;
2954
2946
  }
2955
- if (he.lastIndex = $2, he.test(e)) {
2956
- if (A + g > w2 && (v = Math.min(v, $2)), A + g > i) {
2957
- E = true;
2947
+ if (me.lastIndex = d, me.test(e)) {
2948
+ if (A + E > w2 && (v = Math.min(v, d)), A + E > i) {
2949
+ f = true;
2958
2950
  break;
2959
2951
  }
2960
- A += g, B2 = p, x = $2, $2 = p = he.lastIndex;
2952
+ A += E, B2 = h, x = d, d = h = me.lastIndex;
2961
2953
  continue;
2962
2954
  }
2963
- $2 += 1;
2964
- }
2965
- return { width: E ? w2 : A, index: E ? v : d, truncated: E, ellipsed: E && i >= o };
2966
- }, "Ne");
2967
- var pt2 = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2968
- var U2 = /* @__PURE__ */ __name((e, r = {}) => Ne(e, pt2, r).width, "U");
2969
- var ee = "\x1B";
2970
- var Le = "\x9B";
2971
- var gt2 = 39;
2972
- var me = "\x07";
2973
- var We = "[";
2974
- var Ft2 = "]";
2975
- var Pe = "m";
2976
- var pe = `${Ft2}8;;`;
2977
- var je = new RegExp(`(?:\\${We}(?<code>\\d+)m|\\${pe}(?<uri>.*)${me})`, "y");
2978
- var ft2 = /* @__PURE__ */ __name((e) => {
2955
+ d += 1;
2956
+ }
2957
+ return { width: f ? w2 : A, index: f ? v : $2, truncated: f, ellipsed: f && i >= o };
2958
+ }, "Re");
2959
+ var ht2 = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2960
+ var M2 = /* @__PURE__ */ __name((e, r = {}) => Re(e, ht2, r).width, "M");
2961
+ var te = "\x1B";
2962
+ var Me = "\x9B";
2963
+ var mt2 = 39;
2964
+ var pe = "\x07";
2965
+ var Oe = "[";
2966
+ var pt2 = "]";
2967
+ var Ne = "m";
2968
+ var ge = `${pt2}8;;`;
2969
+ var Le = new RegExp(`(?:\\${Oe}(?<code>\\d+)m|\\${ge}(?<uri>.*)${pe})`, "y");
2970
+ var gt2 = /* @__PURE__ */ __name((e) => {
2979
2971
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
2980
2972
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
2981
2973
  if (e === 1 || e === 2) return 22;
@@ -2985,364 +2977,397 @@ var ft2 = /* @__PURE__ */ __name((e) => {
2985
2977
  if (e === 8) return 28;
2986
2978
  if (e === 9) return 29;
2987
2979
  if (e === 0) return 0;
2988
- }, "ft");
2989
- var Ve = /* @__PURE__ */ __name((e) => `${ee}${We}${e}${Pe}`, "Ve");
2990
- var ke = /* @__PURE__ */ __name((e) => `${ee}${pe}${e}${me}`, "ke");
2991
- var yt2 = /* @__PURE__ */ __name((e) => e.map((r) => U2(r)), "yt");
2992
- var ge = /* @__PURE__ */ __name((e, r, s) => {
2980
+ }, "gt");
2981
+ var We = /* @__PURE__ */ __name((e) => `${te}${Oe}${e}${Ne}`, "We");
2982
+ var Pe = /* @__PURE__ */ __name((e) => `${te}${ge}${e}${pe}`, "Pe");
2983
+ var ft2 = /* @__PURE__ */ __name((e) => e.map((r) => M2(r)), "ft");
2984
+ var fe = /* @__PURE__ */ __name((e, r, s) => {
2993
2985
  const i = r[Symbol.iterator]();
2994
- let n = false, o = false, c = e.at(-1), l = c === void 0 ? 0 : U2(c), a = i.next(), h = i.next(), g = 0;
2986
+ let n = false, o = false, u = e.at(-1), l = u === void 0 ? 0 : M2(u), a = i.next(), m = i.next(), E = 0;
2995
2987
  for (; !a.done; ) {
2996
- const F = a.value, y2 = U2(F);
2997
- l + y2 <= s ? e[e.length - 1] += F : (e.push(F), l = 0), (F === ee || F === Le) && (n = true, o = r.startsWith(pe, g + 1)), n ? o ? F === me && (n = false, o = false) : F === Pe && (n = false) : (l += y2, l === s && !h.done && (e.push(""), l = 0)), a = h, h = i.next(), g += F.length;
2988
+ const y2 = a.value, F = M2(y2);
2989
+ l + F <= s ? e[e.length - 1] += y2 : (e.push(y2), l = 0), (y2 === te || y2 === Me) && (n = true, o = r.startsWith(ge, E + 1)), n ? o ? y2 === pe && (n = false, o = false) : y2 === Ne && (n = false) : (l += F, l === s && !m.done && (e.push(""), l = 0)), a = m, m = i.next(), E += y2.length;
2998
2990
  }
2999
- c = e.at(-1), !l && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
3000
- }, "ge");
3001
- var Et2 = /* @__PURE__ */ __name((e) => {
2991
+ u = e.at(-1), !l && u !== void 0 && u.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
2992
+ }, "fe");
2993
+ var Ft2 = /* @__PURE__ */ __name((e) => {
3002
2994
  const r = e.split(" ");
3003
2995
  let s = r.length;
3004
- for (; s > 0 && !(U2(r[s - 1]) > 0); ) s--;
2996
+ for (; s > 0 && !(M2(r[s - 1]) > 0); ) s--;
3005
2997
  return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
3006
- }, "Et");
3007
- var vt2 = /* @__PURE__ */ __name((e, r, s = {}) => {
2998
+ }, "Ft");
2999
+ var yt2 = /* @__PURE__ */ __name((e, r, s = {}) => {
3008
3000
  if (s.trim !== false && e.trim() === "") return "";
3009
3001
  let i = "", n, o;
3010
- const c = e.split(" "), l = yt2(c);
3002
+ const u = e.split(" "), l = ft2(u);
3011
3003
  let a = [""];
3012
- for (const [p, $2] of c.entries()) {
3004
+ for (const [h, d] of u.entries()) {
3013
3005
  s.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
3014
- let d = U2(a.at(-1) ?? "");
3015
- if (p !== 0 && (d >= r && (s.wordWrap === false || s.trim === false) && (a.push(""), d = 0), (d > 0 || s.trim === false) && (a[a.length - 1] += " ", d++)), s.hard && l[p] > r) {
3016
- const f = r - d, E = 1 + Math.floor((l[p] - f - 1) / r);
3017
- Math.floor((l[p] - 1) / r) < E && a.push(""), ge(a, $2, r);
3006
+ let $2 = M2(a.at(-1) ?? "");
3007
+ if (h !== 0 && ($2 >= r && (s.wordWrap === false || s.trim === false) && (a.push(""), $2 = 0), ($2 > 0 || s.trim === false) && (a[a.length - 1] += " ", $2++)), s.hard && l[h] > r) {
3008
+ const g = r - $2, f = 1 + Math.floor((l[h] - g - 1) / r);
3009
+ Math.floor((l[h] - 1) / r) < f && a.push(""), fe(a, d, r);
3018
3010
  continue;
3019
3011
  }
3020
- if (d + l[p] > r && d > 0 && l[p] > 0) {
3021
- if (s.wordWrap === false && d < r) {
3022
- ge(a, $2, r);
3012
+ if ($2 + l[h] > r && $2 > 0 && l[h] > 0) {
3013
+ if (s.wordWrap === false && $2 < r) {
3014
+ fe(a, d, r);
3023
3015
  continue;
3024
3016
  }
3025
3017
  a.push("");
3026
3018
  }
3027
- if (d + l[p] > r && s.wordWrap === false) {
3028
- ge(a, $2, r);
3019
+ if ($2 + l[h] > r && s.wordWrap === false) {
3020
+ fe(a, d, r);
3029
3021
  continue;
3030
3022
  }
3031
- a[a.length - 1] += $2;
3032
- }
3033
- s.trim !== false && (a = a.map((p) => Et2(p)));
3034
- const h = a.join(`
3035
- `), g = h[Symbol.iterator]();
3036
- let F = g.next(), y2 = g.next(), m = 0;
3037
- for (; !F.done; ) {
3038
- const p = F.value, $2 = y2.value;
3039
- if (i += p, p === ee || p === Le) {
3040
- je.lastIndex = m + 1;
3041
- const E = je.exec(h)?.groups;
3042
- if (E?.code !== void 0) {
3043
- const v = Number.parseFloat(E.code);
3044
- n = v === gt2 ? void 0 : v;
3045
- } else E?.uri !== void 0 && (o = E.uri.length === 0 ? void 0 : E.uri);
3023
+ a[a.length - 1] += d;
3024
+ }
3025
+ s.trim !== false && (a = a.map((h) => Ft2(h)));
3026
+ const m = a.join(`
3027
+ `), E = m[Symbol.iterator]();
3028
+ let y2 = E.next(), F = E.next(), p = 0;
3029
+ for (; !y2.done; ) {
3030
+ const h = y2.value, d = F.value;
3031
+ if (i += h, h === te || h === Me) {
3032
+ Le.lastIndex = p + 1;
3033
+ const f = Le.exec(m)?.groups;
3034
+ if (f?.code !== void 0) {
3035
+ const v = Number.parseFloat(f.code);
3036
+ n = v === mt2 ? void 0 : v;
3037
+ } else f?.uri !== void 0 && (o = f.uri.length === 0 ? void 0 : f.uri);
3046
3038
  }
3047
- const d = n ? ft2(n) : void 0;
3048
- $2 === `
3049
- ` ? (o && (i += ke("")), n && d && (i += Ve(d))) : p === `
3050
- ` && (n && d && (i += Ve(n)), o && (i += ke(o))), m += p.length, F = y2, y2 = g.next();
3039
+ const $2 = n ? gt2(n) : void 0;
3040
+ d === `
3041
+ ` ? (o && (i += Pe("")), n && $2 && (i += We($2))) : h === `
3042
+ ` && (n && $2 && (i += We(n)), o && (i += Pe(o))), p += h.length, y2 = F, F = E.next();
3051
3043
  }
3052
3044
  return i;
3053
- }, "vt");
3054
- function Fe(e, r, s) {
3045
+ }, "yt");
3046
+ function k2(e, r, s) {
3055
3047
  return String(e).normalize().replaceAll(`\r
3056
3048
  `, `
3057
3049
  `).split(`
3058
- `).map((i) => vt2(i, r, s)).join(`
3050
+ `).map((i) => yt2(i, r, s)).join(`
3059
3051
  `);
3060
3052
  }
3061
- __name(Fe, "Fe");
3062
- var wt2 = /* @__PURE__ */ __name((e) => {
3053
+ __name(k2, "k");
3054
+ var Et2 = /* @__PURE__ */ __name((e, r, s, i, n) => {
3055
+ let o = r, u = 0;
3056
+ for (let l = s; l < i; l++) {
3057
+ const a = e[l];
3058
+ if (o = o - a.length, u++, o <= n) break;
3059
+ }
3060
+ return { lineCount: o, removals: u };
3061
+ }, "Et");
3062
+ var G2 = /* @__PURE__ */ __name((e) => {
3063
+ const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = Ct(n), u = e.columnPadding ?? 0, l = e.rowPadding ?? 4, a = o - u, m = bt(n), E = import_picocolors2.default.dim("..."), y2 = e.maxItems ?? Number.POSITIVE_INFINITY, F = Math.max(m - l, 0), p = Math.max(y2, 5);
3064
+ let h = 0;
3065
+ r >= p - 3 && (h = Math.max(Math.min(r - p + 3, s.length - p), 0));
3066
+ let d = p < s.length && h > 0, $2 = p < s.length && h + p < s.length;
3067
+ const g = Math.min(h + p, s.length), f = [];
3068
+ let v = 0;
3069
+ d && v++, $2 && v++;
3070
+ const w2 = h + (d ? 1 : 0), B2 = g - ($2 ? 1 : 0);
3071
+ for (let A = w2; A < B2; A++) {
3072
+ const C2 = k2(i(s[A], A === r), a).split(`
3073
+ `);
3074
+ f.push(C2), v += C2.length;
3075
+ }
3076
+ if (v > F) {
3077
+ let A = 0, C2 = 0, _ = v;
3078
+ const D2 = r - w2, I2 = /* @__PURE__ */ __name((T, R2) => Et2(f, _, T, R2, F), "I");
3079
+ d ? ({ lineCount: _, removals: A } = I2(0, D2), _ > F && ({ lineCount: _, removals: C2 } = I2(D2 + 1, f.length))) : ({ lineCount: _, removals: C2 } = I2(D2 + 1, f.length), _ > F && ({ lineCount: _, removals: A } = I2(0, D2))), A > 0 && (d = true, f.splice(0, A)), C2 > 0 && ($2 = true, f.splice(f.length - C2, C2));
3080
+ }
3081
+ const x = [];
3082
+ d && x.push(E);
3083
+ for (const A of f) for (const C2 of A) x.push(C2);
3084
+ return $2 && x.push(E), x;
3085
+ }, "G");
3086
+ var Bt = /* @__PURE__ */ __name((e) => {
3063
3087
  const r = e.active ?? "Yes", s = e.inactive ?? "No";
3064
3088
  return new St({ active: r, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
3065
- const i = `${import_picocolors2.default.gray(u)}
3066
- ${M2(this.state)} ${e.message}
3089
+ const i = `${import_picocolors2.default.gray(c)}
3090
+ ${L2(this.state)} ${e.message}
3067
3091
  `, n = this.value ? r : s;
3068
3092
  switch (this.state) {
3069
3093
  case "submit":
3070
- return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.dim(n)}`;
3094
+ return `${i}${import_picocolors2.default.gray(c)} ${import_picocolors2.default.dim(n)}`;
3071
3095
  case "cancel":
3072
- return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
3073
- ${import_picocolors2.default.gray(u)}`;
3096
+ return `${i}${import_picocolors2.default.gray(c)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
3097
+ ${import_picocolors2.default.gray(c)}`;
3074
3098
  default:
3075
- return `${i}${import_picocolors2.default.cyan(u)} ${this.value ? `${import_picocolors2.default.green(G2)} ${r}` : `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(r)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(G2)} ${s}`}
3076
- ${import_picocolors2.default.cyan(_)}
3099
+ return `${i}${import_picocolors2.default.cyan(c)} ${this.value ? `${import_picocolors2.default.green(U2)} ${r}` : `${import_picocolors2.default.dim(K)} ${import_picocolors2.default.dim(r)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(K)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(U2)} ${s}`}
3100
+ ${import_picocolors2.default.cyan(b)}
3077
3101
  `;
3078
3102
  }
3079
3103
  } }).prompt();
3080
- }, "wt");
3081
- var b = { message: /* @__PURE__ */ __name((e = [], { symbol: r = import_picocolors2.default.gray(u), secondarySymbol: s = import_picocolors2.default.gray(u), output: i = process.stdout, spacing: n = 1 } = {}) => {
3104
+ }, "Bt");
3105
+ var O2 = { message: /* @__PURE__ */ __name((e = [], { symbol: r = import_picocolors2.default.gray(c), secondarySymbol: s = import_picocolors2.default.gray(c), output: i = process.stdout, spacing: n = 1 } = {}) => {
3082
3106
  const o = [];
3083
3107
  for (let l = 0; l < n; l++) o.push(`${s}`);
3084
- const c = Array.isArray(e) ? e : e.split(`
3108
+ const u = Array.isArray(e) ? e : e.split(`
3085
3109
  `);
3086
- if (c.length > 0) {
3087
- const [l, ...a] = c;
3110
+ if (u.length > 0) {
3111
+ const [l, ...a] = u;
3088
3112
  l.length > 0 ? o.push(`${r} ${l}`) : o.push(r);
3089
- for (const h of a) h.length > 0 ? o.push(`${s} ${h}`) : o.push(s);
3113
+ for (const m of a) m.length > 0 ? o.push(`${s} ${m}`) : o.push(s);
3090
3114
  }
3091
3115
  i.write(`${o.join(`
3092
3116
  `)}
3093
3117
  `);
3094
3118
  }, "message"), info: /* @__PURE__ */ __name((e, r) => {
3095
- b.message(e, { ...r, symbol: import_picocolors2.default.blue(le) });
3119
+ O2.message(e, { ...r, symbol: import_picocolors2.default.blue(ue) });
3096
3120
  }, "info"), success: /* @__PURE__ */ __name((e, r) => {
3097
- b.message(e, { ...r, symbol: import_picocolors2.default.green(ue) });
3121
+ O2.message(e, { ...r, symbol: import_picocolors2.default.green(ce) });
3098
3122
  }, "success"), step: /* @__PURE__ */ __name((e, r) => {
3099
- b.message(e, { ...r, symbol: import_picocolors2.default.green(L2) });
3123
+ O2.message(e, { ...r, symbol: import_picocolors2.default.green(W2) });
3100
3124
  }, "step"), warn: /* @__PURE__ */ __name((e, r) => {
3101
- b.message(e, { ...r, symbol: import_picocolors2.default.yellow(ce) });
3125
+ O2.message(e, { ...r, symbol: import_picocolors2.default.yellow($e) });
3102
3126
  }, "warn"), warning: /* @__PURE__ */ __name((e, r) => {
3103
- b.warn(e, r);
3127
+ O2.warn(e, r);
3104
3128
  }, "warning"), error: /* @__PURE__ */ __name((e, r) => {
3105
- b.message(e, { ...r, symbol: import_picocolors2.default.red($e) });
3129
+ O2.message(e, { ...r, symbol: import_picocolors2.default.red(de) });
3106
3130
  }, "error") };
3107
- var xt = /* @__PURE__ */ __name((e = "", r) => {
3108
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(_)} ${import_picocolors2.default.red(e)}
3131
+ var _t2 = /* @__PURE__ */ __name((e = "", r) => {
3132
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(b)} ${import_picocolors2.default.red(e)}
3109
3133
 
3110
3134
  `);
3111
- }, "xt");
3112
- var bt2 = /* @__PURE__ */ __name((e = "", r) => {
3113
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(ne)} ${e}
3114
- `);
3115
- }, "bt");
3135
+ }, "_t");
3116
3136
  var Dt = /* @__PURE__ */ __name((e = "", r) => {
3117
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(u)}
3118
- ${import_picocolors2.default.gray(_)} ${e}
3119
-
3137
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(ae)} ${e}
3120
3138
  `);
3121
3139
  }, "Dt");
3122
- var Tt = /* @__PURE__ */ __name((e) => {
3140
+ var Tt = /* @__PURE__ */ __name((e = "", r) => {
3141
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(c)}
3142
+ ${import_picocolors2.default.gray(b)} ${e}
3143
+
3144
+ `);
3145
+ }, "Tt");
3146
+ var Rt = /* @__PURE__ */ __name((e) => {
3123
3147
  const r = /* @__PURE__ */ __name((i, n) => {
3124
3148
  const o = i.label ?? String(i.value);
3125
- return n === "active" ? `${import_picocolors2.default.cyan(J2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "selected" ? `${import_picocolors2.default.green(W2)} ${import_picocolors2.default.dim(o)}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o))}` : n === "active-selected" ? `${import_picocolors2.default.green(W2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "submitted" ? `${import_picocolors2.default.dim(o)}` : `${import_picocolors2.default.dim(X2)} ${import_picocolors2.default.dim(o)}`;
3149
+ return n === "active" ? `${import_picocolors2.default.cyan(X2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "selected" ? `${import_picocolors2.default.green(P2)} ${import_picocolors2.default.dim(o)}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o))}` : n === "active-selected" ? `${import_picocolors2.default.green(P2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "submitted" ? `${import_picocolors2.default.dim(o)}` : `${import_picocolors2.default.dim(Y2)} ${import_picocolors2.default.dim(o)}`;
3126
3150
  }, "r"), s = e.required ?? true;
3127
3151
  return new kt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValues: e.initialValues, required: s, cursorAt: e.cursorAt, validate(i) {
3128
3152
  if (s && (i === void 0 || i.length === 0)) return `Please select at least one option.
3129
3153
  ${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
3130
3154
  }, render() {
3131
- const i = `${import_picocolors2.default.gray(u)}
3132
- ${M2(this.state)} ${e.message}
3133
- `, n = this.value ?? [], o = /* @__PURE__ */ __name((c, l) => {
3134
- const a = n.includes(c.value);
3135
- return l && a ? r(c, "active-selected") : a ? r(c, "selected") : r(c, l ? "active" : "inactive");
3155
+ const i = `${import_picocolors2.default.gray(c)}
3156
+ ${L2(this.state)} ${e.message}
3157
+ `, n = this.value ?? [], o = /* @__PURE__ */ __name((u, l) => {
3158
+ const a = n.includes(u.value);
3159
+ return l && a ? r(u, "active-selected") : a ? r(u, "selected") : r(u, l ? "active" : "inactive");
3136
3160
  }, "o");
3137
3161
  switch (this.state) {
3138
3162
  case "submit":
3139
- return `${i}${import_picocolors2.default.gray(u)} ${this.options.filter(({ value: c }) => n.includes(c)).map((c) => r(c, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
3163
+ return `${i}${import_picocolors2.default.gray(c)} ${this.options.filter(({ value: u }) => n.includes(u)).map((u) => r(u, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
3140
3164
  case "cancel": {
3141
- const c = this.options.filter(({ value: l }) => n.includes(l)).map((l) => r(l, "cancelled")).join(import_picocolors2.default.dim(", "));
3142
- return `${i}${import_picocolors2.default.gray(u)}${c.trim() ? ` ${c}
3143
- ${import_picocolors2.default.gray(u)}` : ""}`;
3165
+ const u = this.options.filter(({ value: l }) => n.includes(l)).map((l) => r(l, "cancelled")).join(import_picocolors2.default.dim(", "));
3166
+ return `${i}${import_picocolors2.default.gray(c)}${u.trim() ? ` ${u}
3167
+ ${import_picocolors2.default.gray(c)}` : ""}`;
3144
3168
  }
3145
3169
  case "error": {
3146
- const c = this.error.split(`
3147
- `).map((l, a) => a === 0 ? `${import_picocolors2.default.yellow(_)} ${import_picocolors2.default.yellow(l)}` : ` ${l}`).join(`
3170
+ const u = this.error.split(`
3171
+ `).map((l, a) => a === 0 ? `${import_picocolors2.default.yellow(b)} ${import_picocolors2.default.yellow(l)}` : ` ${l}`).join(`
3148
3172
  `);
3149
- return `${i + import_picocolors2.default.yellow(u)} ${k2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3150
- ${import_picocolors2.default.yellow(u)} `)}
3151
- ${c}
3173
+ return `${i + import_picocolors2.default.yellow(c)} ${G2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3174
+ ${import_picocolors2.default.yellow(c)} `)}
3175
+ ${u}
3152
3176
  `;
3153
3177
  }
3154
3178
  default:
3155
- return `${i}${import_picocolors2.default.cyan(u)} ${k2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3156
- ${import_picocolors2.default.cyan(u)} `)}
3157
- ${import_picocolors2.default.cyan(_)}
3179
+ return `${i}${import_picocolors2.default.cyan(c)} ${G2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3180
+ ${import_picocolors2.default.cyan(c)} `)}
3181
+ ${import_picocolors2.default.cyan(b)}
3158
3182
  `;
3159
3183
  }
3160
3184
  } }).prompt();
3161
- }, "Tt");
3162
- var fe = /* @__PURE__ */ __name(({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: o = q2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: c = q2 ? 80 : 120, signal: l } = {}) => {
3163
- const a = se();
3164
- let h, g, F = false, y2 = false, m = "", p, $2 = performance.now();
3165
- const d = bt(s), f = /* @__PURE__ */ __name((S) => {
3166
- const D2 = S > 1 ? n ?? C.messages.error : i ?? C.messages.cancel;
3167
- y2 = S === 1, F && (N2(D2, S), y2 && typeof r == "function" && r());
3168
- }, "f"), E = /* @__PURE__ */ __name(() => f(2), "E"), v = /* @__PURE__ */ __name(() => f(1), "v"), w2 = /* @__PURE__ */ __name(() => {
3169
- process.on("uncaughtExceptionMonitor", E), process.on("unhandledRejection", E), process.on("SIGINT", v), process.on("SIGTERM", v), process.on("exit", f), l && l.addEventListener("abort", v);
3185
+ }, "Rt");
3186
+ var Fe = /* @__PURE__ */ __name(({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: o = J2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: u = J2 ? 80 : 120, signal: l } = {}) => {
3187
+ const a = re();
3188
+ let m, E, y2 = false, F = false, p = "", h, d = performance.now();
3189
+ const $2 = Ct(s), g = /* @__PURE__ */ __name((I2) => {
3190
+ const T = I2 > 1 ? n ?? C.messages.error : i ?? C.messages.cancel;
3191
+ F = I2 === 1, y2 && (D2(T, I2), F && typeof r == "function" && r());
3192
+ }, "g"), f = /* @__PURE__ */ __name(() => g(2), "f"), v = /* @__PURE__ */ __name(() => g(1), "v"), w2 = /* @__PURE__ */ __name(() => {
3193
+ process.on("uncaughtExceptionMonitor", f), process.on("unhandledRejection", f), process.on("SIGINT", v), process.on("SIGTERM", v), process.on("exit", g), l && l.addEventListener("abort", v);
3170
3194
  }, "w"), B2 = /* @__PURE__ */ __name(() => {
3171
- process.removeListener("uncaughtExceptionMonitor", E), process.removeListener("unhandledRejection", E), process.removeListener("SIGINT", v), process.removeListener("SIGTERM", v), process.removeListener("exit", f), l && l.removeEventListener("abort", v);
3195
+ process.removeListener("uncaughtExceptionMonitor", f), process.removeListener("unhandledRejection", f), process.removeListener("SIGINT", v), process.removeListener("SIGTERM", v), process.removeListener("exit", g), l && l.removeEventListener("abort", v);
3172
3196
  }, "B"), x = /* @__PURE__ */ __name(() => {
3173
- if (p === void 0) return;
3197
+ if (h === void 0) return;
3174
3198
  a && s.write(`
3175
3199
  `);
3176
- const S = Fe(p, d, { hard: true, trim: false }).split(`
3200
+ const I2 = k2(h, $2, { hard: true, trim: false }).split(`
3177
3201
  `);
3178
- S.length > 1 && s.write(import_sisteransi2.cursor.up(S.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
3179
- }, "x"), A = /* @__PURE__ */ __name((S) => S.replace(/\.+$/, ""), "A"), C2 = /* @__PURE__ */ __name((S) => {
3180
- const D2 = (performance.now() - S) / 1e3, R2 = Math.floor(D2 / 60), j2 = Math.floor(D2 % 60);
3181
- return R2 > 0 ? `[${R2}m ${j2}s]` : `[${j2}s]`;
3182
- }, "C"), O2 = /* @__PURE__ */ __name((S = "") => {
3183
- F = true, h = Ct({ output: s }), m = A(S), $2 = performance.now(), s.write(`${import_picocolors2.default.gray(u)}
3202
+ I2.length > 1 && s.write(import_sisteransi2.cursor.up(I2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
3203
+ }, "x"), A = /* @__PURE__ */ __name((I2) => I2.replace(/\.+$/, ""), "A"), C2 = /* @__PURE__ */ __name((I2) => {
3204
+ const T = (performance.now() - I2) / 1e3, R2 = Math.floor(T / 60), V2 = Math.floor(T % 60);
3205
+ return R2 > 0 ? `[${R2}m ${V2}s]` : `[${V2}s]`;
3206
+ }, "C"), _ = /* @__PURE__ */ __name((I2 = "") => {
3207
+ y2 = true, m = _t({ output: s }), p = A(I2), d = performance.now(), s.write(`${import_picocolors2.default.gray(c)}
3184
3208
  `);
3185
- let D2 = 0, R2 = 0;
3186
- w2(), g = setInterval(() => {
3187
- if (a && m === p) return;
3188
- x(), p = m;
3189
- const j2 = import_picocolors2.default.magenta(o[D2]);
3190
- let K;
3191
- if (a) K = `${j2} ${m}...`;
3192
- else if (e === "timer") K = `${j2} ${m} ${C2($2)}`;
3209
+ let T = 0, R2 = 0;
3210
+ w2(), E = setInterval(() => {
3211
+ if (a && p === h) return;
3212
+ x(), h = p;
3213
+ const V2 = import_picocolors2.default.magenta(o[T]);
3214
+ let q2;
3215
+ if (a) q2 = `${V2} ${p}...`;
3216
+ else if (e === "timer") q2 = `${V2} ${p} ${C2(d)}`;
3193
3217
  else {
3194
3218
  const qe = ".".repeat(Math.floor(R2)).slice(0, 3);
3195
- K = `${j2} ${m}${qe}`;
3196
- }
3197
- const Ke = Fe(K, d, { hard: true, trim: false });
3198
- s.write(Ke), D2 = D2 + 1 < o.length ? D2 + 1 : 0, R2 = R2 < 4 ? R2 + 0.125 : 0;
3199
- }, c);
3200
- }, "O"), N2 = /* @__PURE__ */ __name((S = "", D2 = 0) => {
3201
- F = false, clearInterval(g), x();
3202
- const R2 = D2 === 0 ? import_picocolors2.default.green(L2) : D2 === 1 ? import_picocolors2.default.red(re) : import_picocolors2.default.red(ie);
3203
- m = S ?? m, e === "timer" ? s.write(`${R2} ${m} ${C2($2)}
3204
- `) : s.write(`${R2} ${m}
3205
- `), B2(), h();
3206
- }, "N");
3207
- return { start: O2, stop: N2, message: /* @__PURE__ */ __name((S = "") => {
3208
- m = A(S ?? m);
3219
+ q2 = `${V2} ${p}${qe}`;
3220
+ }
3221
+ const Ke = k2(q2, $2, { hard: true, trim: false });
3222
+ s.write(Ke), T = T + 1 < o.length ? T + 1 : 0, R2 = R2 < 4 ? R2 + 0.125 : 0;
3223
+ }, u);
3224
+ }, "_"), D2 = /* @__PURE__ */ __name((I2 = "", T = 0) => {
3225
+ if (!y2) return;
3226
+ y2 = false, clearInterval(E), x();
3227
+ const R2 = T === 0 ? import_picocolors2.default.green(W2) : T === 1 ? import_picocolors2.default.red(ie) : import_picocolors2.default.red(ne);
3228
+ p = I2 ?? p, e === "timer" ? s.write(`${R2} ${p} ${C2(d)}
3229
+ `) : s.write(`${R2} ${p}
3230
+ `), B2(), m();
3231
+ }, "D");
3232
+ return { start: _, stop: D2, message: /* @__PURE__ */ __name((I2 = "") => {
3233
+ p = A(I2 ?? p);
3209
3234
  }, "message"), get isCancelled() {
3210
- return y2;
3235
+ return F;
3211
3236
  } };
3212
- }, "fe");
3213
- var He = { light: I2("\u2500", "-"), heavy: I2("\u2501", "="), block: I2("\u2588", "#") };
3214
- var Wt2 = /* @__PURE__ */ __name((e) => {
3237
+ }, "Fe");
3238
+ var He = { light: S("\u2500", "-"), heavy: S("\u2501", "="), block: S("\u2588", "#") };
3239
+ var jt = /* @__PURE__ */ __name((e) => {
3215
3240
  const r = /* @__PURE__ */ __name((s, i) => {
3216
3241
  const n = s.label ?? String(s.value);
3217
3242
  switch (i) {
3218
3243
  case "selected":
3219
3244
  return `${import_picocolors2.default.dim(n)}`;
3220
3245
  case "active":
3221
- return `${import_picocolors2.default.green(G2)} ${n}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint})`)}` : ""}`;
3246
+ return `${import_picocolors2.default.green(U2)} ${n}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint})`)}` : ""}`;
3222
3247
  case "cancelled":
3223
3248
  return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}`;
3224
3249
  default:
3225
- return `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(n)}`;
3250
+ return `${import_picocolors2.default.dim(K)} ${import_picocolors2.default.dim(n)}`;
3226
3251
  }
3227
3252
  }, "r");
3228
3253
  return new Mt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3229
- const s = `${import_picocolors2.default.gray(u)}
3230
- ${M2(this.state)} ${e.message}
3254
+ const s = `${import_picocolors2.default.gray(c)}
3255
+ ${L2(this.state)} ${e.message}
3231
3256
  `;
3232
3257
  switch (this.state) {
3233
3258
  case "submit":
3234
- return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "selected")}`;
3259
+ return `${s}${import_picocolors2.default.gray(c)} ${r(this.options[this.cursor], "selected")}`;
3235
3260
  case "cancel":
3236
- return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "cancelled")}
3237
- ${import_picocolors2.default.gray(u)}`;
3261
+ return `${s}${import_picocolors2.default.gray(c)} ${r(this.options[this.cursor], "cancelled")}
3262
+ ${import_picocolors2.default.gray(c)}`;
3238
3263
  default:
3239
- return `${s}${import_picocolors2.default.cyan(u)} ${k2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, style: /* @__PURE__ */ __name((i, n) => r(i, n ? "active" : "inactive"), "style") }).join(`
3240
- ${import_picocolors2.default.cyan(u)} `)}
3241
- ${import_picocolors2.default.cyan(_)}
3264
+ return `${s}${import_picocolors2.default.cyan(c)} ${G2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, style: /* @__PURE__ */ __name((i, n) => r(i, n ? "active" : "inactive"), "style") }).join(`
3265
+ ${import_picocolors2.default.cyan(c)} `)}
3266
+ ${import_picocolors2.default.cyan(b)}
3242
3267
  `;
3243
3268
  }
3244
3269
  } }).prompt();
3245
- }, "Wt");
3246
- var Ue = `${import_picocolors2.default.gray(u)} `;
3247
- var Vt2 = /* @__PURE__ */ __name((e) => {
3248
- const r = e.output ?? process.stdout, s = bt(r), i = import_picocolors2.default.gray(u), n = e.spacing ?? 1, o = 3, c = e.retainLog === true, l = !se() && Se(r);
3270
+ }, "jt");
3271
+ var Ue = `${import_picocolors2.default.gray(c)} `;
3272
+ var Gt = /* @__PURE__ */ __name((e) => {
3273
+ const r = e.output ?? process.stdout, s = Ct(r), i = import_picocolors2.default.gray(c), n = e.spacing ?? 1, o = 3, u = e.retainLog === true, l = !re() && Se(r);
3249
3274
  r.write(`${i}
3250
- `), r.write(`${import_picocolors2.default.green(L2)} ${e.title}
3275
+ `), r.write(`${import_picocolors2.default.green(W2)} ${e.title}
3251
3276
  `);
3252
- for (let d = 0; d < n; d++) r.write(`${i}
3277
+ for (let $2 = 0; $2 < n; $2++) r.write(`${i}
3253
3278
  `);
3254
3279
  const a = [{ value: "", full: "" }];
3255
- let h = false;
3256
- const g = /* @__PURE__ */ __name((d) => {
3280
+ let m = false;
3281
+ const E = /* @__PURE__ */ __name(($2) => {
3257
3282
  if (a.length === 0) return;
3258
- let f = 0;
3259
- d && (f += n + 2);
3260
- for (const E of a) {
3261
- const { value: v, result: w2 } = E;
3283
+ let g = 0;
3284
+ $2 && (g += n + 2);
3285
+ for (const f of a) {
3286
+ const { value: v, result: w2 } = f;
3262
3287
  let B2 = w2?.message ?? v;
3263
3288
  if (B2.length === 0) continue;
3264
- w2 === void 0 && E.header !== void 0 && E.header !== "" && (B2 += `
3265
- ${E.header}`);
3289
+ w2 === void 0 && f.header !== void 0 && f.header !== "" && (B2 += `
3290
+ ${f.header}`);
3266
3291
  const x = B2.split(`
3267
3292
  `).reduce((A, C2) => C2 === "" ? A + 1 : A + Math.ceil((C2.length + o) / s), 0);
3268
- f += x;
3293
+ g += x;
3269
3294
  }
3270
- f > 0 && (f += 1, r.write(import_sisteransi2.erase.lines(f)));
3271
- }, "g"), F = /* @__PURE__ */ __name((d, f, E) => {
3272
- const v = E ? `${d.full}
3273
- ${d.value}` : d.value;
3274
- d.header !== void 0 && d.header !== "" && b.message(d.header.split(`
3275
- `).map(import_picocolors2.default.bold), { output: r, secondarySymbol: i, symbol: i, spacing: 0 }), b.message(v.split(`
3276
- `).map(import_picocolors2.default.dim), { output: r, secondarySymbol: i, symbol: i, spacing: f ?? n });
3277
- }, "F"), y2 = /* @__PURE__ */ __name(() => {
3278
- for (const d of a) {
3279
- const { header: f, value: E, full: v } = d;
3280
- (f === void 0 || f.length === 0) && E.length === 0 || F(d, void 0, c === true && v.length > 0);
3295
+ g > 0 && (g += 1, r.write(import_sisteransi2.erase.lines(g)));
3296
+ }, "E"), y2 = /* @__PURE__ */ __name(($2, g, f) => {
3297
+ const v = f ? `${$2.full}
3298
+ ${$2.value}` : $2.value;
3299
+ $2.header !== void 0 && $2.header !== "" && O2.message($2.header.split(`
3300
+ `).map(import_picocolors2.default.bold), { output: r, secondarySymbol: i, symbol: i, spacing: 0 }), O2.message(v.split(`
3301
+ `).map(import_picocolors2.default.dim), { output: r, secondarySymbol: i, symbol: i, spacing: g ?? n });
3302
+ }, "y"), F = /* @__PURE__ */ __name(() => {
3303
+ for (const $2 of a) {
3304
+ const { header: g, value: f, full: v } = $2;
3305
+ (g === void 0 || g.length === 0) && f.length === 0 || y2($2, void 0, u === true && v.length > 0);
3281
3306
  }
3282
- }, "y"), m = /* @__PURE__ */ __name((d, f, E) => {
3283
- if (g(false), (E?.raw !== true || !h) && d.value !== "" && (d.value += `
3284
- `), d.value += f, h = E?.raw === true, e.limit !== void 0) {
3285
- const v = d.value.split(`
3307
+ }, "F"), p = /* @__PURE__ */ __name(($2, g, f) => {
3308
+ if (E(false), (f?.raw !== true || !m) && $2.value !== "" && ($2.value += `
3309
+ `), $2.value += g, m = f?.raw === true, e.limit !== void 0) {
3310
+ const v = $2.value.split(`
3286
3311
  `), w2 = v.length - e.limit;
3287
3312
  if (w2 > 0) {
3288
3313
  const B2 = v.splice(0, w2);
3289
- c && (d.full += (d.full === "" ? "" : `
3314
+ u && ($2.full += ($2.full === "" ? "" : `
3290
3315
  `) + B2.join(`
3291
3316
  `));
3292
3317
  }
3293
- d.value = v.join(`
3318
+ $2.value = v.join(`
3294
3319
  `);
3295
3320
  }
3296
- l && p();
3297
- }, "m"), p = /* @__PURE__ */ __name(() => {
3298
- for (const d of a) d.result ? d.result.status === "error" ? b.error(d.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : b.success(d.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : d.value !== "" && F(d, 0);
3299
- }, "p"), $2 = /* @__PURE__ */ __name((d, f) => {
3300
- g(false), d.result = f, l && p();
3301
- }, "$");
3302
- return { message(d, f) {
3303
- m(a[0], d, f);
3304
- }, group(d) {
3305
- const f = { header: d, value: "", full: "" };
3306
- return a.push(f), { message(E, v) {
3307
- m(f, E, v);
3308
- }, error(E) {
3309
- $2(f, { status: "error", message: E });
3310
- }, success(E) {
3311
- $2(f, { status: "success", message: E });
3321
+ l && h();
3322
+ }, "p"), h = /* @__PURE__ */ __name(() => {
3323
+ for (const $2 of a) $2.result ? $2.result.status === "error" ? O2.error($2.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : O2.success($2.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : $2.value !== "" && y2($2, 0);
3324
+ }, "h"), d = /* @__PURE__ */ __name(($2, g) => {
3325
+ E(false), $2.result = g, l && h();
3326
+ }, "d");
3327
+ return { message($2, g) {
3328
+ p(a[0], $2, g);
3329
+ }, group($2) {
3330
+ const g = { header: $2, value: "", full: "" };
3331
+ return a.push(g), { message(f, v) {
3332
+ p(g, f, v);
3333
+ }, error(f) {
3334
+ d(g, { status: "error", message: f });
3335
+ }, success(f) {
3336
+ d(g, { status: "success", message: f });
3312
3337
  } };
3313
- }, error(d, f) {
3314
- g(true), b.error(d, { output: r, secondarySymbol: i, spacing: 1 }), f?.showLog !== false && y2(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3315
- }, success(d, f) {
3316
- g(true), b.success(d, { output: r, secondarySymbol: i, spacing: 1 }), f?.showLog === true && y2(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3338
+ }, error($2, g) {
3339
+ E(true), O2.error($2, { output: r, secondarySymbol: i, spacing: 1 }), g?.showLog !== false && F(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3340
+ }, success($2, g) {
3341
+ E(true), O2.success($2, { output: r, secondarySymbol: i, spacing: 1 }), g?.showLog === true && F(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3317
3342
  } };
3318
- }, "Vt");
3319
- var kt2 = /* @__PURE__ */ __name((e) => new Wt({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3320
- const r = `${import_picocolors2.default.gray(u)}
3321
- ${M2(this.state)} ${e.message}
3343
+ }, "Gt");
3344
+ var Ht = /* @__PURE__ */ __name((e) => new Wt({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3345
+ const r = `${import_picocolors2.default.gray(c)}
3346
+ ${L2(this.state)} ${e.message}
3322
3347
  `, s = e.placeholder ? import_picocolors2.default.inverse(e.placeholder[0]) + import_picocolors2.default.dim(e.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.userInput ? this.userInputWithCursor : s, n = this.value ?? "";
3323
3348
  switch (this.state) {
3324
3349
  case "error": {
3325
3350
  const o = this.error ? ` ${import_picocolors2.default.yellow(this.error)}` : "";
3326
3351
  return `${r.trim()}
3327
- ${import_picocolors2.default.yellow(u)} ${i}
3328
- ${import_picocolors2.default.yellow(_)}${o}
3352
+ ${import_picocolors2.default.yellow(c)} ${i}
3353
+ ${import_picocolors2.default.yellow(b)}${o}
3329
3354
  `;
3330
3355
  }
3331
3356
  case "submit": {
3332
3357
  const o = n ? ` ${import_picocolors2.default.dim(n)}` : "";
3333
- return `${r}${import_picocolors2.default.gray(u)}${o}`;
3358
+ return `${r}${import_picocolors2.default.gray(c)}${o}`;
3334
3359
  }
3335
3360
  case "cancel": {
3336
3361
  const o = n ? ` ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}` : "";
3337
- return `${r}${import_picocolors2.default.gray(u)}${o}${n.trim() ? `
3338
- ${import_picocolors2.default.gray(u)}` : ""}`;
3362
+ return `${r}${import_picocolors2.default.gray(c)}${o}${n.trim() ? `
3363
+ ${import_picocolors2.default.gray(c)}` : ""}`;
3339
3364
  }
3340
3365
  default:
3341
- return `${r}${import_picocolors2.default.cyan(u)} ${i}
3342
- ${import_picocolors2.default.cyan(_)}
3366
+ return `${r}${import_picocolors2.default.cyan(c)} ${i}
3367
+ ${import_picocolors2.default.cyan(b)}
3343
3368
  `;
3344
3369
  }
3345
- } }).prompt(), "kt");
3370
+ } }).prompt(), "Ht");
3346
3371
 
3347
3372
  // src/node-logger/prompts/prompt-config.ts
3348
3373
  var prompt_config_exports = {};
@@ -3459,35 +3484,35 @@ var ClackPromptProvider = class extends PromptProvider {
3459
3484
  __name(this, "ClackPromptProvider");
3460
3485
  }
3461
3486
  handleCancel(result, promptOptions) {
3462
- if (_t(result)) {
3487
+ if (It(result)) {
3463
3488
  if (promptOptions?.onCancel) {
3464
3489
  promptOptions.onCancel();
3465
3490
  } else {
3466
- xt("Operation canceled.");
3491
+ _t2("Operation canceled.");
3467
3492
  process.exit(0);
3468
3493
  }
3469
3494
  }
3470
3495
  }
3471
3496
  async text(options, promptOptions) {
3472
- const result = await kt2(options);
3497
+ const result = await Ht(options);
3473
3498
  this.handleCancel(result, promptOptions);
3474
3499
  logTracker.addLog("prompt", options.message, { choice: result });
3475
3500
  return result.toString();
3476
3501
  }
3477
3502
  async confirm(options, promptOptions) {
3478
- const result = await wt2(options);
3503
+ const result = await Bt(options);
3479
3504
  this.handleCancel(result, promptOptions);
3480
3505
  logTracker.addLog("prompt", options.message, { choice: result });
3481
3506
  return Boolean(result);
3482
3507
  }
3483
3508
  async select(options, promptOptions) {
3484
- const result = await Wt2(options);
3509
+ const result = await jt(options);
3485
3510
  this.handleCancel(result, promptOptions);
3486
3511
  logTracker.addLog("prompt", options.message, { choice: result });
3487
3512
  return result;
3488
3513
  }
3489
3514
  async multiselect(options, promptOptions) {
3490
- const result = await Tt({
3515
+ const result = await Rt({
3491
3516
  ...options,
3492
3517
  required: options.required
3493
3518
  });
@@ -3496,7 +3521,7 @@ var ClackPromptProvider = class extends PromptProvider {
3496
3521
  return result;
3497
3522
  }
3498
3523
  spinner(options) {
3499
- const task = fe();
3524
+ const task = Fe();
3500
3525
  const spinnerId = `${options.id}-spinner`;
3501
3526
  return {
3502
3527
  start: /* @__PURE__ */ __name((message) => {
@@ -3514,7 +3539,7 @@ var ClackPromptProvider = class extends PromptProvider {
3514
3539
  };
3515
3540
  }
3516
3541
  taskLog(options) {
3517
- const task = Vt2(options);
3542
+ const task = Gt(options);
3518
3543
  const taskId = `${options.id}-task`;
3519
3544
  logTracker.addLog("info", `${taskId}-start: ${options.title}`);
3520
3545
  currentTaskLog = task;
@@ -4079,7 +4104,7 @@ function wrapTextForClackHint(text2, width, label) {
4079
4104
  if (finalLines.length <= 1) {
4080
4105
  return finalLines[0] || "";
4081
4106
  }
4082
- const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
4107
+ const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(c)) + " ".repeat(indentSpaces);
4083
4108
  return finalLines.map((line, index) => {
4084
4109
  if (index === 0) {
4085
4110
  return line;
@@ -4090,7 +4115,7 @@ function wrapTextForClackHint(text2, width, label) {
4090
4115
  if (lines.length <= 1) {
4091
4116
  return initialWrap;
4092
4117
  }
4093
- const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
4118
+ const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(c)) + " ".repeat(indentSpaces);
4094
4119
  return lines.map((line, index) => {
4095
4120
  if (index === 0) {
4096
4121
  return line;
@@ -4121,13 +4146,13 @@ var createLogFunction = /* @__PURE__ */ __name((clackFn, consoleFn) => () => isC
4121
4146
  }
4122
4147
  } : consoleFn, "createLogFunction");
4123
4148
  var LOG_FUNCTIONS = {
4124
- log: createLogFunction(b.message, console.log),
4125
- info: createLogFunction(b.info, console.log),
4126
- warn: createLogFunction(b.warn, console.warn),
4127
- error: createLogFunction(b.error, console.error),
4128
- intro: createLogFunction(bt2, console.log),
4129
- outro: createLogFunction(Dt, console.log),
4130
- step: createLogFunction(b.step, console.log)
4149
+ log: createLogFunction(O2.message, console.log),
4150
+ info: createLogFunction(O2.info, console.log),
4151
+ warn: createLogFunction(O2.warn, console.warn),
4152
+ error: createLogFunction(O2.error, console.error),
4153
+ intro: createLogFunction(Dt, console.log),
4154
+ outro: createLogFunction(Tt, console.log),
4155
+ step: createLogFunction(O2.step, console.log)
4131
4156
  };
4132
4157
  var LOG_LEVELS = {
4133
4158
  trace: 1,
@@ -4452,13 +4477,13 @@ var logger = {
4452
4477
  error: /* @__PURE__ */ __name((message) => {
4453
4478
  let msg;
4454
4479
  if (message instanceof Error && message.stack) {
4455
- msg = message.stack.toString();
4456
- } else {
4480
+ msg = message.stack.toString().replace(message.toString(), colors.red(message.toString()));
4481
+ } else if (typeof message === "string") {
4457
4482
  msg = message.toString();
4483
+ } else {
4484
+ msg = String(message);
4458
4485
  }
4459
- error(
4460
- msg.replace(message.toString(), colors.red(message.toString())).replaceAll(process.cwd(), ".")
4461
- );
4486
+ error(msg.replaceAll(process.cwd(), "."));
4462
4487
  }, "error")
4463
4488
  };
4464
4489
  var logged = /* @__PURE__ */ new Set();