storybook 10.0.0-beta.3 → 10.0.0-beta.5

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 (100) hide show
  1. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  2. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  3. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
  4. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  5. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  6. package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
  7. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  8. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  9. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  10. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  11. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  12. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  13. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
  14. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
  15. package/dist/_node-chunks/{builder-manager-DXAEQZJB.js → builder-manager-ZTS4EIKQ.js} +18 -13
  16. package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
  17. package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-2VMDKLSW.js} +6 -6
  18. package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-3VVGIILJ.js} +8 -8
  19. package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-4KRR46V2.js} +50 -89
  20. package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VDRH7SM.js} +7 -7
  21. package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
  22. package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-ACUNHBEO.js} +552 -717
  23. package/dist/_node-chunks/{camelcase-CMMT6PHY.js → chunk-AK5PHLUA.js} +9 -8
  24. package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-D7SDB4XE.js} +223 -243
  25. package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
  26. package/dist/_node-chunks/chunk-DZJNLBBL.js +79 -0
  27. package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-EIHJ5J3O.js} +8 -8
  28. package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-F3WE3456.js} +7 -7
  29. package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-F7YW5W6B.js} +12 -12
  30. package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-H52PBBSK.js} +7 -7
  31. package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-J3DQMIO4.js} +7 -7
  32. package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-K4YETNYJ.js} +30 -21
  33. package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-KU3JBNPY.js} +8 -8
  34. package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-KZB7ELL6.js} +162 -103
  35. package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-OC3TVLYU.js} +7 -7
  36. package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-P3TWEOO5.js} +7 -7
  37. package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-P7YMEOXF.js} +7 -7
  38. package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-PIKDGR3O.js} +7 -7
  39. package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-QHIU5I7C.js} +6 -6
  40. package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-SW3VZAH7.js} +9 -9
  41. package/dist/_node-chunks/chunk-TBWOUVTA.js +4967 -0
  42. package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-TKN5TEZV.js} +583 -180
  43. package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-TVKUJ3SE.js} +623 -750
  44. package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-UTCFHTQH.js} +8 -8
  45. package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-VQN4WAIA.js} +7 -7
  46. package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-VWSUFVUF.js} +7 -7
  47. package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-VX5P3IYA.js} +7 -7
  48. package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-WCSHG2QT.js} +7 -7
  49. package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-4RZZMHJE.js} +7 -7
  50. package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-OGRBL76N.js} +9 -9
  51. package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-65LOULA6.js} +9 -9
  52. package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-TF7JCT3A.js} +36 -12
  53. package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
  54. package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-PF7JSPDT.js} +76 -10
  55. package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-A6XAWMXN.js} +10 -10
  56. package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-LGHGAC6J.js} +10 -10
  57. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
  58. package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.js → webpack-mock-plugin-ZJJVMJUS.js} +9 -9
  59. package/dist/babel/index.d.ts +1 -1
  60. package/dist/babel/index.js +11 -11
  61. package/dist/bin/core.js +638 -187
  62. package/dist/bin/dispatcher.js +11 -11
  63. package/dist/bin/loader.js +8 -8
  64. package/dist/cli/index.d.ts +62 -75
  65. package/dist/cli/index.js +60 -54
  66. package/dist/common/index.d.ts +3 -1
  67. package/dist/common/index.js +23 -22
  68. package/dist/components/index.js +24 -20
  69. package/dist/core-server/index.js +3544 -3220
  70. package/dist/core-server/presets/common-manager.js +440 -720
  71. package/dist/core-server/presets/common-override-preset.js +9 -9
  72. package/dist/core-server/presets/common-preset.js +22 -22
  73. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  74. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  75. package/dist/csf/index.js +6 -6
  76. package/dist/csf-tools/index.js +9 -9
  77. package/dist/docs-tools/index.js +4 -4
  78. package/dist/instrumenter/index.js +1 -1
  79. package/dist/manager/globals-runtime.js +8910 -18107
  80. package/dist/manager/runtime.js +3256 -2945
  81. package/dist/manager-api/index.js +23 -20
  82. package/dist/node-logger/index.d.ts +1 -1
  83. package/dist/node-logger/index.js +1136 -662
  84. package/dist/preview/runtime.js +12061 -21584
  85. package/dist/preview-api/index.js +6 -6
  86. package/dist/router/index.js +2 -2
  87. package/dist/server-errors.js +10 -10
  88. package/dist/telemetry/index.js +24 -25
  89. package/dist/test/index.js +1872 -4023
  90. package/dist/theming/index.d.ts +2 -2
  91. package/dist/theming/index.js +6 -6
  92. package/package.json +4 -8
  93. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  94. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  95. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  96. package/dist/_node-chunks/chunk-ALWVSNSK.js +0 -62
  97. package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
  98. package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
  99. package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
  100. package/dist/_node-chunks/chunk-YRXKNGPR.js +0 -18
@@ -1,42 +1,43 @@
1
- import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-3SUJKLRV.js";
14
+ } from "../_node-chunks/chunk-F3WE3456.js";
15
15
  import {
16
+ ansi_styles_default,
16
17
  boxen,
17
18
  require_string_width,
18
- wrapAnsi
19
- } from "../_node-chunks/chunk-SHXAIHPO.js";
19
+ stripAnsi
20
+ } from "../_node-chunks/chunk-TVKUJ3SE.js";
21
+ import "../_node-chunks/chunk-AK5PHLUA.js";
20
22
  import {
21
23
  execaSync,
22
24
  optionalEnvToBoolean
23
- } from "../_node-chunks/chunk-WELIADWR.js";
24
- import "../_node-chunks/chunk-VDFQYNPZ.js";
25
- import "../_node-chunks/chunk-MHNUEOON.js";
25
+ } from "../_node-chunks/chunk-TBWOUVTA.js";
26
+ import "../_node-chunks/chunk-DZJNLBBL.js";
26
27
  import {
27
28
  require_prompts,
28
29
  require_src
29
- } from "../_node-chunks/chunk-ICETGZAR.js";
30
+ } from "../_node-chunks/chunk-VX5P3IYA.js";
30
31
  import {
31
32
  require_picocolors
32
- } from "../_node-chunks/chunk-7EGB7ALG.js";
33
+ } from "../_node-chunks/chunk-P3TWEOO5.js";
33
34
  import {
34
35
  __commonJS,
35
36
  __export,
36
37
  __name,
37
38
  __require,
38
39
  __toESM
39
- } from "../_node-chunks/chunk-XRAB2RZN.js";
40
+ } from "../_node-chunks/chunk-2VMDKLSW.js";
40
41
 
41
42
  // ../node_modules/are-we-there-yet/lib/tracker-base.js
42
43
  var require_tracker_base = __commonJS({
@@ -289,8 +290,8 @@ var require_console_control_strings = __commonJS({
289
290
  exports.eraseLine = /* @__PURE__ */ __name(function eraseLine() {
290
291
  return prefix + "K";
291
292
  }, "eraseLine");
292
- exports.goto = function(x2, y2) {
293
- return prefix + y2 + ";" + x2 + "H";
293
+ exports.goto = function(x, y2) {
294
+ return prefix + y2 + ";" + x + "H";
294
295
  };
295
296
  exports.gotoSOL = function() {
296
297
  return "\r";
@@ -370,7 +371,7 @@ var require_console_control_strings = __commonJS({
370
371
  var require_align = __commonJS({
371
372
  "../node_modules/wide-align/align.js"(exports) {
372
373
  "use strict";
373
- var stringWidth = require_string_width();
374
+ var stringWidth2 = require_string_width();
374
375
  exports.center = alignCenter;
375
376
  exports.left = alignLeft;
376
377
  exports.right = alignRight;
@@ -392,7 +393,7 @@ var require_align = __commonJS({
392
393
  var trimmed = str.trimRight();
393
394
  if (trimmed.length === 0 && str.length >= width) return str;
394
395
  var padding = "";
395
- var strWidth = stringWidth(trimmed);
396
+ var strWidth = stringWidth2(trimmed);
396
397
  if (strWidth < width) {
397
398
  padding = createPadding(width - strWidth);
398
399
  }
@@ -403,7 +404,7 @@ var require_align = __commonJS({
403
404
  var trimmed = str.trimLeft();
404
405
  if (trimmed.length === 0 && str.length >= width) return str;
405
406
  var padding = "";
406
- var strWidth = stringWidth(trimmed);
407
+ var strWidth = stringWidth2(trimmed);
407
408
  if (strWidth < width) {
408
409
  padding = createPadding(width - strWidth);
409
410
  }
@@ -415,7 +416,7 @@ var require_align = __commonJS({
415
416
  if (trimmed.length === 0 && str.length >= width) return str;
416
417
  var padLeft = "";
417
418
  var padRight = "";
418
- var strWidth = stringWidth(trimmed);
419
+ var strWidth = stringWidth2(trimmed);
419
420
  if (strWidth < width) {
420
421
  var padLeftBy = parseInt((width - strWidth) / 2, 10);
421
422
  padLeft = createPadding(padLeftBy);
@@ -438,14 +439,14 @@ var require_aproba = __commonJS({
438
439
  __name(isArguments, "isArguments");
439
440
  var types = {
440
441
  "*": { label: "any", check: /* @__PURE__ */ __name(() => true, "check") },
441
- A: { label: "array", check: /* @__PURE__ */ __name((_3) => Array.isArray(_3) || isArguments(_3), "check") },
442
- S: { label: "string", check: /* @__PURE__ */ __name((_3) => typeof _3 === "string", "check") },
443
- N: { label: "number", check: /* @__PURE__ */ __name((_3) => typeof _3 === "number", "check") },
444
- F: { label: "function", check: /* @__PURE__ */ __name((_3) => typeof _3 === "function", "check") },
445
- O: { label: "object", check: /* @__PURE__ */ __name((_3) => typeof _3 === "object" && _3 != null && !types.A.check(_3) && !types.E.check(_3), "check") },
446
- B: { label: "boolean", check: /* @__PURE__ */ __name((_3) => typeof _3 === "boolean", "check") },
447
- E: { label: "error", check: /* @__PURE__ */ __name((_3) => _3 instanceof Error, "check") },
448
- Z: { label: "null", check: /* @__PURE__ */ __name((_3) => _3 == null, "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") }
449
450
  };
450
451
  function addSchema(schema, arity) {
451
452
  const group = arity[schema.length] = arity[schema.length] || [];
@@ -484,7 +485,7 @@ var require_aproba = __commonJS({
484
485
  return typeCheck(args[ii]);
485
486
  });
486
487
  if (!newMatching.length) {
487
- const labels = matching.map((_3) => types[_3[ii]].label).filter((_3) => _3 != null);
488
+ const labels = matching.map((_2) => types[_2[ii]].label).filter((_2) => _2 != null);
488
489
  throw invalidType(ii, labels, args[ii]);
489
490
  }
490
491
  matching = newMatching;
@@ -525,7 +526,7 @@ var require_aproba = __commonJS({
525
526
  }
526
527
  __name(moreThanOneError, "moreThanOneError");
527
528
  function newException(code, msg) {
528
- const err = new Error(msg);
529
+ const err = new TypeError(msg);
529
530
  err.code = code;
530
531
  if (Error.captureStackTrace) Error.captureStackTrace(err, validate);
531
532
  return err;
@@ -561,23 +562,23 @@ var require_strip_ansi = __commonJS({
561
562
  var require_wide_truncate = __commonJS({
562
563
  "../node_modules/gauge/lib/wide-truncate.js"(exports, module) {
563
564
  "use strict";
564
- var stringWidth = require_string_width();
565
- var stripAnsi2 = require_strip_ansi();
565
+ var stringWidth2 = require_string_width();
566
+ var stripAnsi3 = require_strip_ansi();
566
567
  module.exports = wideTruncate;
567
568
  function wideTruncate(str, target) {
568
- if (stringWidth(str) === 0) {
569
+ if (stringWidth2(str) === 0) {
569
570
  return str;
570
571
  }
571
572
  if (target <= 0) {
572
573
  return "";
573
574
  }
574
- if (stringWidth(str) <= target) {
575
+ if (stringWidth2(str) <= target) {
575
576
  return str;
576
577
  }
577
- var noAnsi = stripAnsi2(str);
578
+ var noAnsi = stripAnsi3(str);
578
579
  var ansiSize = str.length + noAnsi.length;
579
580
  var truncated = str.slice(0, target + ansiSize);
580
- while (stringWidth(truncated) > target) {
581
+ while (stringWidth2(truncated) > target) {
581
582
  truncated = truncated.slice(0, -1);
582
583
  }
583
584
  return truncated;
@@ -617,7 +618,7 @@ var require_error = __commonJS({
617
618
  var require_template_item = __commonJS({
618
619
  "../node_modules/gauge/lib/template-item.js"(exports, module) {
619
620
  "use strict";
620
- var stringWidth = require_string_width();
621
+ var stringWidth2 = require_string_width();
621
622
  module.exports = TemplateItem;
622
623
  function isPercent(num) {
623
624
  if (typeof num !== "string") {
@@ -668,7 +669,7 @@ var require_template_item = __commonJS({
668
669
  TemplateItem.prototype.getBaseLength = function() {
669
670
  var length = this.length;
670
671
  if (length == null && typeof this.value === "string" && this.maxLength == null && this.minLength == null) {
671
- length = stringWidth(this.value);
672
+ length = stringWidth2(this.value);
672
673
  }
673
674
  return length;
674
675
  };
@@ -1253,9 +1254,9 @@ var require_cjs = __commonJS({
1253
1254
  this.#sigListeners[sig] = () => {
1254
1255
  const listeners = this.#process.listeners(sig);
1255
1256
  let { count } = this.#emitter;
1256
- const p2 = process3;
1257
- if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
1258
- count += p2.__signal_exit_emitter__.count;
1257
+ const p = process3;
1258
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
1259
+ count += p.__signal_exit_emitter__.count;
1259
1260
  }
1260
1261
  if (listeners.length === count) {
1261
1262
  this.unload();
@@ -1297,7 +1298,7 @@ var require_cjs = __commonJS({
1297
1298
  const fn = this.#sigListeners[sig];
1298
1299
  if (fn)
1299
1300
  this.#process.on(sig, fn);
1300
- } catch (_3) {
1301
+ } catch (_2) {
1301
1302
  }
1302
1303
  }
1303
1304
  this.#process.emit = (ev, ...a) => {
@@ -1319,7 +1320,7 @@ var require_cjs = __commonJS({
1319
1320
  }
1320
1321
  try {
1321
1322
  this.#process.removeListener(sig, listener);
1322
- } catch (_3) {
1323
+ } catch (_2) {
1323
1324
  }
1324
1325
  });
1325
1326
  this.#process.emit = this.#originalProcessEmit;
@@ -1393,7 +1394,7 @@ var require_progress_bar = __commonJS({
1393
1394
  var validate = require_aproba();
1394
1395
  var renderTemplate = require_render_template();
1395
1396
  var wideTruncate = require_wide_truncate();
1396
- var stringWidth = require_string_width();
1397
+ var stringWidth2 = require_string_width();
1397
1398
  module.exports = function(theme, width, completed) {
1398
1399
  validate("ONN", [theme, width, completed]);
1399
1400
  if (completed < 0) {
@@ -1422,7 +1423,7 @@ var require_progress_bar = __commonJS({
1422
1423
  }
1423
1424
  n = Math.floor(n / 2);
1424
1425
  string += string;
1425
- } while (n && stringWidth(result) < width);
1426
+ } while (n && stringWidth2(result) < width);
1426
1427
  return wideTruncate(result, width);
1427
1428
  }
1428
1429
  __name(repeat, "repeat");
@@ -2011,23 +2012,23 @@ var require_log = __commonJS({
2011
2012
  };
2012
2013
  var trackerConstructors = ["newGroup", "newItem", "newStream"];
2013
2014
  var mixinLog = /* @__PURE__ */ __name(function(tracker) {
2014
- Object.keys(log2).forEach(function(P3) {
2015
- if (P3[0] === "_") {
2015
+ Object.keys(log2).forEach(function(P2) {
2016
+ if (P2[0] === "_") {
2016
2017
  return;
2017
2018
  }
2018
2019
  if (trackerConstructors.filter(function(C2) {
2019
- return C2 === P3;
2020
+ return C2 === P2;
2020
2021
  }).length) {
2021
2022
  return;
2022
2023
  }
2023
- if (tracker[P3]) {
2024
+ if (tracker[P2]) {
2024
2025
  return;
2025
2026
  }
2026
- if (typeof log2[P3] !== "function") {
2027
+ if (typeof log2[P2] !== "function") {
2027
2028
  return;
2028
2029
  }
2029
- var func = log2[P3];
2030
- tracker[P3] = function() {
2030
+ var func = log2[P2];
2031
+ tracker[P2] = function() {
2031
2032
  return func.apply(log2, arguments);
2032
2033
  };
2033
2034
  });
@@ -2087,8 +2088,8 @@ var require_log = __commonJS({
2087
2088
  this._paused = false;
2088
2089
  var b2 = this._buffer;
2089
2090
  this._buffer = [];
2090
- b2.forEach(function(m2) {
2091
- this.emitLog(m2);
2091
+ b2.forEach(function(m) {
2092
+ this.emitLog(m);
2092
2093
  }, this);
2093
2094
  if (this.progressEnabled) {
2094
2095
  this.gauge.enable();
@@ -2122,36 +2123,36 @@ var require_log = __commonJS({
2122
2123
  a.unshift(stack + "\n");
2123
2124
  }
2124
2125
  message = util.format.apply(util, a);
2125
- var m2 = {
2126
+ var m = {
2126
2127
  id: id++,
2127
2128
  level: lvl,
2128
2129
  prefix: String(prefix || ""),
2129
2130
  message,
2130
2131
  messageRaw: a
2131
2132
  };
2132
- this.emit("log", m2);
2133
- this.emit("log." + lvl, m2);
2134
- if (m2.prefix) {
2135
- this.emit(m2.prefix, m2);
2133
+ this.emit("log", m);
2134
+ this.emit("log." + lvl, m);
2135
+ if (m.prefix) {
2136
+ this.emit(m.prefix, m);
2136
2137
  }
2137
- this.record.push(m2);
2138
+ this.record.push(m);
2138
2139
  var mrs = this.maxRecordSize;
2139
2140
  var n = this.record.length - mrs;
2140
2141
  if (n > mrs / 10) {
2141
2142
  var newSize = Math.floor(mrs * 0.9);
2142
2143
  this.record = this.record.slice(-1 * newSize);
2143
2144
  }
2144
- this.emitLog(m2);
2145
+ this.emitLog(m);
2145
2146
  }.bind(log2);
2146
- log2.emitLog = function(m2) {
2147
+ log2.emitLog = function(m) {
2147
2148
  if (this._paused) {
2148
- this._buffer.push(m2);
2149
+ this._buffer.push(m);
2149
2150
  return;
2150
2151
  }
2151
2152
  if (this.progressEnabled) {
2152
- this.gauge.pulse(m2.prefix);
2153
+ this.gauge.pulse(m.prefix);
2153
2154
  }
2154
- var l = this.levels[m2.level];
2155
+ var l = this.levels[m.level];
2155
2156
  if (l === void 0) {
2156
2157
  return;
2157
2158
  }
@@ -2161,20 +2162,20 @@ var require_log = __commonJS({
2161
2162
  if (l > 0 && !isFinite(l)) {
2162
2163
  return;
2163
2164
  }
2164
- var disp = log2.disp[m2.level] != null ? log2.disp[m2.level] : m2.level;
2165
+ var disp = log2.disp[m.level] != null ? log2.disp[m.level] : m.level;
2165
2166
  this.clearProgress();
2166
- m2.message.split(/\r?\n/).forEach(function(line) {
2167
+ m.message.split(/\r?\n/).forEach(function(line) {
2167
2168
  var heading = this.heading;
2168
2169
  if (heading) {
2169
2170
  this.write(heading, this.headingStyle);
2170
2171
  this.write(" ");
2171
2172
  }
2172
- this.write(disp, log2.style[m2.level]);
2173
- var p2 = m2.prefix || "";
2174
- if (p2) {
2173
+ this.write(disp, log2.style[m.level]);
2174
+ var p = m.prefix || "";
2175
+ if (p) {
2175
2176
  this.write(" ");
2176
2177
  }
2177
- this.write(p2, this.prefixStyle);
2178
+ this.write(p, this.prefixStyle);
2178
2179
  this.write(" " + line + "\n");
2179
2180
  }, this);
2180
2181
  this.showProgress();
@@ -2258,6 +2259,102 @@ var require_log = __commonJS({
2258
2259
  }
2259
2260
  });
2260
2261
 
2262
+ // ../node_modules/eastasianwidth/eastasianwidth.js
2263
+ var require_eastasianwidth = __commonJS({
2264
+ "../node_modules/eastasianwidth/eastasianwidth.js"(exports, module) {
2265
+ var eaw = {};
2266
+ if ("undefined" == typeof module) {
2267
+ window.eastasianwidth = eaw;
2268
+ } else {
2269
+ module.exports = eaw;
2270
+ }
2271
+ eaw.eastAsianWidth = function(character) {
2272
+ var x = character.charCodeAt(0);
2273
+ var y2 = character.length == 2 ? character.charCodeAt(1) : 0;
2274
+ var codePoint = x;
2275
+ if (55296 <= x && x <= 56319 && (56320 <= y2 && y2 <= 57343)) {
2276
+ x &= 1023;
2277
+ y2 &= 1023;
2278
+ codePoint = x << 10 | y2;
2279
+ codePoint += 65536;
2280
+ }
2281
+ if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
2282
+ return "F";
2283
+ }
2284
+ if (8361 == codePoint || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
2285
+ return "H";
2286
+ }
2287
+ if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
2288
+ return "W";
2289
+ }
2290
+ if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || 172 == codePoint || 175 == codePoint || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
2291
+ return "Na";
2292
+ }
2293
+ if (161 == codePoint || 164 == codePoint || 167 <= codePoint && codePoint <= 168 || 170 == codePoint || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || 198 == codePoint || 208 == codePoint || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || 230 == codePoint || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || 240 == codePoint || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || 252 == codePoint || 254 == codePoint || 257 == codePoint || 273 == codePoint || 275 == codePoint || 283 == codePoint || 294 <= codePoint && codePoint <= 295 || 299 == codePoint || 305 <= codePoint && codePoint <= 307 || 312 == codePoint || 319 <= codePoint && codePoint <= 322 || 324 == codePoint || 328 <= codePoint && codePoint <= 331 || 333 == codePoint || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || 363 == codePoint || 462 == codePoint || 464 == codePoint || 466 == codePoint || 468 == codePoint || 470 == codePoint || 472 == codePoint || 474 == codePoint || 476 == codePoint || 593 == codePoint || 609 == codePoint || 708 == codePoint || 711 == codePoint || 713 <= codePoint && codePoint <= 715 || 717 == codePoint || 720 == codePoint || 728 <= codePoint && codePoint <= 731 || 733 == codePoint || 735 == codePoint || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || 1025 == codePoint || 1040 <= codePoint && codePoint <= 1103 || 1105 == codePoint || 8208 == codePoint || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || 8240 == codePoint || 8242 <= codePoint && codePoint <= 8243 || 8245 == codePoint || 8251 == codePoint || 8254 == codePoint || 8308 == codePoint || 8319 == codePoint || 8321 <= codePoint && codePoint <= 8324 || 8364 == codePoint || 8451 == codePoint || 8453 == codePoint || 8457 == codePoint || 8467 == codePoint || 8470 == codePoint || 8481 <= codePoint && codePoint <= 8482 || 8486 == codePoint || 8491 == codePoint || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || 8585 == codePoint || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || 8658 == codePoint || 8660 == codePoint || 8679 == codePoint || 8704 == codePoint || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || 8715 == codePoint || 8719 == codePoint || 8721 == codePoint || 8725 == codePoint || 8730 == codePoint || 8733 <= codePoint && codePoint <= 8736 || 8739 == codePoint || 8741 == codePoint || 8743 <= codePoint && codePoint <= 8748 || 8750 == codePoint || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || 8776 == codePoint || 8780 == codePoint || 8786 == codePoint || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || 8853 == codePoint || 8857 == codePoint || 8869 == codePoint || 8895 == codePoint || 8978 == codePoint || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || 9675 == codePoint || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || 9711 == codePoint || 9733 <= codePoint && codePoint <= 9734 || 9737 == codePoint || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || 9756 == codePoint || 9758 == codePoint || 9792 == codePoint || 9794 == codePoint || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || 9839 == codePoint || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || 9955 == codePoint || 9960 <= codePoint && codePoint <= 9983 || 10045 == codePoint || 10071 == codePoint || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || 65533 == codePoint || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
2294
+ return "A";
2295
+ }
2296
+ return "N";
2297
+ };
2298
+ eaw.characterLength = function(character) {
2299
+ var code = this.eastAsianWidth(character);
2300
+ if (code == "F" || code == "W" || code == "A") {
2301
+ return 2;
2302
+ } else {
2303
+ return 1;
2304
+ }
2305
+ };
2306
+ function stringToArray(string) {
2307
+ return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
2308
+ }
2309
+ __name(stringToArray, "stringToArray");
2310
+ eaw.length = function(string) {
2311
+ var characters = stringToArray(string);
2312
+ var len = 0;
2313
+ for (var i = 0; i < characters.length; i++) {
2314
+ len = len + this.characterLength(characters[i]);
2315
+ }
2316
+ return len;
2317
+ };
2318
+ eaw.slice = function(text2, start, end) {
2319
+ textLen = eaw.length(text2);
2320
+ start = start ? start : 0;
2321
+ end = end ? end : 1;
2322
+ if (start < 0) {
2323
+ start = textLen + start;
2324
+ }
2325
+ if (end < 0) {
2326
+ end = textLen + end;
2327
+ }
2328
+ var result = "";
2329
+ var eawLen = 0;
2330
+ var chars = stringToArray(text2);
2331
+ for (var i = 0; i < chars.length; i++) {
2332
+ var char = chars[i];
2333
+ var charLen = eaw.length(char);
2334
+ if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
2335
+ if (eawLen + charLen <= end) {
2336
+ result += char;
2337
+ } else {
2338
+ break;
2339
+ }
2340
+ }
2341
+ eawLen += charLen;
2342
+ }
2343
+ return result;
2344
+ };
2345
+ }
2346
+ });
2347
+
2348
+ // ../node_modules/emoji-regex/index.js
2349
+ var require_emoji_regex = __commonJS({
2350
+ "../node_modules/emoji-regex/index.js"(exports, module) {
2351
+ "use strict";
2352
+ module.exports = function() {
2353
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
2354
+ };
2355
+ }
2356
+ });
2357
+
2261
2358
  // src/node-logger/index.ts
2262
2359
  var import_npmlog = __toESM(require_log(), 1);
2263
2360
  var import_pretty_hrtime = __toESM(require_pretty_hrtime(), 1);
@@ -2282,357 +2379,348 @@ __export(logger_exports, {
2282
2379
  });
2283
2380
 
2284
2381
  // ../node_modules/@clack/core/dist/index.mjs
2285
- var import_sisteransi = __toESM(require_src(), 1);
2286
2382
  var import_picocolors = __toESM(require_picocolors(), 1);
2287
- import { stdin as K, stdout as G } from "node:process";
2288
- import * as y from "node:readline";
2289
- import Eu from "node:readline";
2290
- import { ReadStream as z, WriteStream as lu } from "node:tty";
2291
- function hu({ onlyFirst: e2 = false } = {}) {
2292
- const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
2293
- return new RegExp(t, e2 ? void 0 : "g");
2294
- }
2295
- __name(hu, "hu");
2296
- var cu = hu();
2297
- function Y(e2) {
2298
- if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
2299
- return e2.replace(cu, "");
2300
- }
2301
- __name(Y, "Y");
2302
- function Z(e2) {
2303
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
2304
- }
2305
- __name(Z, "Z");
2306
- var q = { exports: {} };
2307
- (function(e2) {
2308
- var D2 = {};
2309
- e2.exports = D2, D2.eastAsianWidth = function(s) {
2310
- var i = s.charCodeAt(0), F2 = s.length == 2 ? s.charCodeAt(1) : 0, u = i;
2311
- return 55296 <= i && i <= 56319 && 56320 <= F2 && F2 <= 57343 && (i &= 1023, F2 &= 1023, u = i << 10 | F2, u += 65536), u == 12288 || 65281 <= u && u <= 65376 || 65504 <= u && u <= 65510 ? "F" : u == 8361 || 65377 <= u && u <= 65470 || 65474 <= u && u <= 65479 || 65482 <= u && u <= 65487 || 65490 <= u && u <= 65495 || 65498 <= u && u <= 65500 || 65512 <= u && u <= 65518 ? "H" : 4352 <= u && u <= 4447 || 4515 <= u && u <= 4519 || 4602 <= u && u <= 4607 || 9001 <= u && u <= 9002 || 11904 <= u && u <= 11929 || 11931 <= u && u <= 12019 || 12032 <= u && u <= 12245 || 12272 <= u && u <= 12283 || 12289 <= u && u <= 12350 || 12353 <= u && u <= 12438 || 12441 <= u && u <= 12543 || 12549 <= u && u <= 12589 || 12593 <= u && u <= 12686 || 12688 <= u && u <= 12730 || 12736 <= u && u <= 12771 || 12784 <= u && u <= 12830 || 12832 <= u && u <= 12871 || 12880 <= u && u <= 13054 || 13056 <= u && u <= 19903 || 19968 <= u && u <= 42124 || 42128 <= u && u <= 42182 || 43360 <= u && u <= 43388 || 44032 <= u && u <= 55203 || 55216 <= u && u <= 55238 || 55243 <= u && u <= 55291 || 63744 <= u && u <= 64255 || 65040 <= u && u <= 65049 || 65072 <= u && u <= 65106 || 65108 <= u && u <= 65126 || 65128 <= u && u <= 65131 || 110592 <= u && u <= 110593 || 127488 <= u && u <= 127490 || 127504 <= u && u <= 127546 || 127552 <= u && u <= 127560 || 127568 <= u && u <= 127569 || 131072 <= u && u <= 194367 || 177984 <= u && u <= 196605 || 196608 <= u && u <= 262141 ? "W" : 32 <= u && u <= 126 || 162 <= u && u <= 163 || 165 <= u && u <= 166 || u == 172 || u == 175 || 10214 <= u && u <= 10221 || 10629 <= u && u <= 10630 ? "Na" : u == 161 || u == 164 || 167 <= u && u <= 168 || u == 170 || 173 <= u && u <= 174 || 176 <= u && u <= 180 || 182 <= u && u <= 186 || 188 <= u && u <= 191 || u == 198 || u == 208 || 215 <= u && u <= 216 || 222 <= u && u <= 225 || u == 230 || 232 <= u && u <= 234 || 236 <= u && u <= 237 || u == 240 || 242 <= u && u <= 243 || 247 <= u && u <= 250 || u == 252 || u == 254 || u == 257 || u == 273 || u == 275 || u == 283 || 294 <= u && u <= 295 || u == 299 || 305 <= u && u <= 307 || u == 312 || 319 <= u && u <= 322 || u == 324 || 328 <= u && u <= 331 || u == 333 || 338 <= u && u <= 339 || 358 <= u && u <= 359 || u == 363 || u == 462 || u == 464 || u == 466 || u == 468 || u == 470 || u == 472 || u == 474 || u == 476 || u == 593 || u == 609 || u == 708 || u == 711 || 713 <= u && u <= 715 || u == 717 || u == 720 || 728 <= u && u <= 731 || u == 733 || u == 735 || 768 <= u && u <= 879 || 913 <= u && u <= 929 || 931 <= u && u <= 937 || 945 <= u && u <= 961 || 963 <= u && u <= 969 || u == 1025 || 1040 <= u && u <= 1103 || u == 1105 || u == 8208 || 8211 <= u && u <= 8214 || 8216 <= u && u <= 8217 || 8220 <= u && u <= 8221 || 8224 <= u && u <= 8226 || 8228 <= u && u <= 8231 || u == 8240 || 8242 <= u && u <= 8243 || u == 8245 || u == 8251 || u == 8254 || u == 8308 || u == 8319 || 8321 <= u && u <= 8324 || u == 8364 || u == 8451 || u == 8453 || u == 8457 || u == 8467 || u == 8470 || 8481 <= u && u <= 8482 || u == 8486 || u == 8491 || 8531 <= u && u <= 8532 || 8539 <= u && u <= 8542 || 8544 <= u && u <= 8555 || 8560 <= u && u <= 8569 || u == 8585 || 8592 <= u && u <= 8601 || 8632 <= u && u <= 8633 || u == 8658 || u == 8660 || u == 8679 || u == 8704 || 8706 <= u && u <= 8707 || 8711 <= u && u <= 8712 || u == 8715 || u == 8719 || u == 8721 || u == 8725 || u == 8730 || 8733 <= u && u <= 8736 || u == 8739 || u == 8741 || 8743 <= u && u <= 8748 || u == 8750 || 8756 <= u && u <= 8759 || 8764 <= u && u <= 8765 || u == 8776 || u == 8780 || u == 8786 || 8800 <= u && u <= 8801 || 8804 <= u && u <= 8807 || 8810 <= u && u <= 8811 || 8814 <= u && u <= 8815 || 8834 <= u && u <= 8835 || 8838 <= u && u <= 8839 || u == 8853 || u == 8857 || u == 8869 || u == 8895 || u == 8978 || 9312 <= u && u <= 9449 || 9451 <= u && u <= 9547 || 9552 <= u && u <= 9587 || 9600 <= u && u <= 9615 || 9618 <= u && u <= 9621 || 9632 <= u && u <= 9633 || 9635 <= u && u <= 9641 || 9650 <= u && u <= 9651 || 9654 <= u && u <= 9655 || 9660 <= u && u <= 9661 || 9664 <= u && u <= 9665 || 9670 <= u && u <= 9672 || u == 9675 || 9678 <= u && u <= 9681 || 9698 <= u && u <= 9701 || u == 9711 || 9733 <= u && u <= 9734 || u == 9737 || 9742 <= u && u <= 9743 || 9748 <= u && u <= 9749 || u == 9756 || u == 9758 || u == 9792 || u == 9794 || 9824 <= u && u <= 9825 || 9827 <= u && u <= 9829 || 9831 <= u && u <= 9834 || 9836 <= u && u <= 9837 || u == 9839 || 9886 <= u && u <= 9887 || 9918 <= u && u <= 9919 || 9924 <= u && u <= 9933 || 9935 <= u && u <= 9953 || u == 9955 || 9960 <= u && u <= 9983 || u == 10045 || u == 10071 || 10102 <= u && u <= 10111 || 11093 <= u && u <= 11097 || 12872 <= u && u <= 12879 || 57344 <= u && u <= 63743 || 65024 <= u && u <= 65039 || u == 65533 || 127232 <= u && u <= 127242 || 127248 <= u && u <= 127277 || 127280 <= u && u <= 127337 || 127344 <= u && u <= 127386 || 917760 <= u && u <= 917999 || 983040 <= u && u <= 1048573 || 1048576 <= u && u <= 1114109 ? "A" : "N";
2312
- }, D2.characterLength = function(s) {
2313
- var i = this.eastAsianWidth(s);
2314
- return i == "F" || i == "W" || i == "A" ? 2 : 1;
2315
- };
2316
- function t(s) {
2317
- return s.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
2318
- }
2319
- __name(t, "t");
2320
- D2.length = function(s) {
2321
- for (var i = t(s), F2 = 0, u = 0; u < i.length; u++) F2 = F2 + this.characterLength(i[u]);
2322
- return F2;
2323
- }, D2.slice = function(s, i, F2) {
2324
- textLen = D2.length(s), i = i || 0, F2 = F2 || 1, i < 0 && (i = textLen + i), F2 < 0 && (F2 = textLen + F2);
2325
- for (var u = "", r = 0, a = t(s), n = 0; n < a.length; n++) {
2326
- var l = a[n], o2 = D2.length(l);
2327
- if (r >= i - (o2 == 2 ? 1 : 0)) if (r + o2 <= F2) u += l;
2328
- else break;
2329
- r += o2;
2330
- }
2331
- return u;
2332
- };
2333
- })(q);
2334
- var xu = q.exports;
2335
- var Bu = Z(xu);
2336
- var Au = /* @__PURE__ */ __name(function() {
2337
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
2338
- }, "Au");
2339
- var pu = Z(Au);
2340
- function m(e2, D2 = {}) {
2341
- if (typeof e2 != "string" || e2.length === 0 || (D2 = { ambiguousIsNarrow: true, ...D2 }, e2 = Y(e2), e2.length === 0)) return 0;
2342
- e2 = e2.replace(pu(), " ");
2343
- const t = D2.ambiguousIsNarrow ? 1 : 2;
2344
- let s = 0;
2345
- for (const i of e2) {
2346
- const F2 = i.codePointAt(0);
2347
- if (F2 <= 31 || F2 >= 127 && F2 <= 159 || F2 >= 768 && F2 <= 879) continue;
2348
- switch (Bu.eastAsianWidth(i)) {
2349
- case "F":
2350
- case "W":
2351
- s += 2;
2383
+ var import_sisteransi = __toESM(require_src(), 1);
2384
+ import { stdout as H, stdin as z } from "node:process";
2385
+ import * as V from "node:readline";
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;
2392
+ var k = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2393
+ var y = /\t{1,1000}/y;
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
+ var M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2396
+ var lt = /\p{M}+/gu;
2397
+ var ht = { limit: 1 / 0, ellipsis: "" };
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;
2401
+ t: for (; ; ) {
2402
+ if (x > b2 || u2 >= p && u2 > o) {
2403
+ const it = t2.slice(b2, x) || t2.slice(o, u2);
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) {
2408
+ f = true;
2409
+ break t;
2410
+ }
2411
+ E += K.length, h += c;
2412
+ }
2413
+ b2 = x = 0;
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) {
2418
+ f = true;
2352
2419
  break;
2353
- case "A":
2354
- s += t;
2420
+ }
2421
+ h += c, b2 = o, x = u2, u2 = o = M.lastIndex;
2422
+ continue;
2423
+ }
2424
+ if (R.lastIndex = u2, R.test(t2)) {
2425
+ if (h + F > _2 && (d = Math.min(d, u2)), h + F > i) {
2426
+ f = true;
2355
2427
  break;
2356
- default:
2357
- s += 1;
2428
+ }
2429
+ h += F, b2 = o, x = u2, u2 = o = R.lastIndex;
2430
+ continue;
2358
2431
  }
2359
- }
2360
- return s;
2361
- }
2362
- __name(m, "m");
2363
- var O = 10;
2364
- var H = /* @__PURE__ */ __name((e2 = 0) => (D2) => `\x1B[${D2 + e2}m`, "H");
2365
- var U = /* @__PURE__ */ __name((e2 = 0) => (D2) => `\x1B[${38 + e2};5;${D2}m`, "U");
2366
- var J = /* @__PURE__ */ __name((e2 = 0) => (D2, t, s) => `\x1B[${38 + e2};2;${D2};${t};${s}m`, "J");
2367
- var C = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
2368
- Object.keys(C.modifier);
2369
- var fu = Object.keys(C.color);
2370
- var du = Object.keys(C.bgColor);
2371
- [...fu, ...du];
2372
- function gu() {
2373
- const e2 = /* @__PURE__ */ new Map();
2374
- for (const [D2, t] of Object.entries(C)) {
2375
- for (const [s, i] of Object.entries(t)) C[s] = { open: `\x1B[${i[0]}m`, close: `\x1B[${i[1]}m` }, t[s] = C[s], e2.set(i[0], i[1]);
2376
- Object.defineProperty(C, D2, { value: t, enumerable: false });
2377
- }
2378
- return Object.defineProperty(C, "codes", { value: e2, enumerable: false }), C.color.close = "\x1B[39m", C.bgColor.close = "\x1B[49m", C.color.ansi = H(), C.color.ansi256 = U(), C.color.ansi16m = J(), C.bgColor.ansi = H(O), C.bgColor.ansi256 = U(O), C.bgColor.ansi16m = J(O), Object.defineProperties(C, { rgbToAnsi256: { value: /* @__PURE__ */ __name((D2, t, s) => D2 === t && t === s ? D2 < 8 ? 16 : D2 > 248 ? 231 : Math.round((D2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(D2 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(s / 255 * 5), "value"), enumerable: false }, hexToRgb: { value: /* @__PURE__ */ __name((D2) => {
2379
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(D2.toString(16));
2380
- if (!t) return [0, 0, 0];
2381
- let [s] = t;
2382
- s.length === 3 && (s = [...s].map((F2) => F2 + F2).join(""));
2383
- const i = Number.parseInt(s, 16);
2384
- return [i >> 16 & 255, i >> 8 & 255, i & 255];
2385
- }, "value"), enumerable: false }, hexToAnsi256: { value: /* @__PURE__ */ __name((D2) => C.rgbToAnsi256(...C.hexToRgb(D2)), "value"), enumerable: false }, ansi256ToAnsi: { value: /* @__PURE__ */ __name((D2) => {
2386
- if (D2 < 8) return 30 + D2;
2387
- if (D2 < 16) return 90 + (D2 - 8);
2388
- let t, s, i;
2389
- if (D2 >= 232) t = ((D2 - 232) * 10 + 8) / 255, s = t, i = t;
2390
- else {
2391
- D2 -= 16;
2392
- const r = D2 % 36;
2393
- t = Math.floor(D2 / 36) / 5, s = Math.floor(r / 6) / 5, i = r % 6 / 5;
2394
- }
2395
- const F2 = Math.max(t, s, i) * 2;
2396
- if (F2 === 0) return 30;
2397
- let u = 30 + (Math.round(i) << 2 | Math.round(s) << 1 | Math.round(t));
2398
- return F2 === 2 && (u += 60), u;
2399
- }, "value"), enumerable: false }, rgbToAnsi: { value: /* @__PURE__ */ __name((D2, t, s) => C.ansi256ToAnsi(C.rgbToAnsi256(D2, t, s)), "value"), enumerable: false }, hexToAnsi: { value: /* @__PURE__ */ __name((D2) => C.ansi256ToAnsi(C.hexToAnsi256(D2)), "value"), enumerable: false } }), C;
2400
- }
2401
- __name(gu, "gu");
2402
- var mu = gu();
2403
- var _ = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
2404
- var vu = 39;
2405
- var M = "\x07";
2406
- var Q = "[";
2407
- var bu = "]";
2408
- var X = "m";
2409
- var T = `${bu}8;;`;
2410
- var uu = /* @__PURE__ */ __name((e2) => `${_.values().next().value}${Q}${e2}${X}`, "uu");
2411
- var Du = /* @__PURE__ */ __name((e2) => `${_.values().next().value}${T}${e2}${M}`, "Du");
2412
- var wu = /* @__PURE__ */ __name((e2) => e2.split(" ").map((D2) => m(D2)), "wu");
2413
- var j = /* @__PURE__ */ __name((e2, D2, t) => {
2414
- const s = [...D2];
2415
- let i = false, F2 = false, u = m(Y(e2[e2.length - 1]));
2416
- for (const [r, a] of s.entries()) {
2417
- const n = m(a);
2418
- if (u + n <= t ? e2[e2.length - 1] += a : (e2.push(a), u = 0), _.has(a) && (i = true, F2 = s.slice(r + 1).join("").startsWith(T)), i) {
2419
- F2 ? a === M && (i = false, F2 = false) : a === X && (i = false);
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) {
2434
+ f = true;
2435
+ break;
2436
+ }
2437
+ h += c, b2 = o, x = u2, u2 = o = k.lastIndex;
2420
2438
  continue;
2421
2439
  }
2422
- u += n, u === t && r < s.length - 1 && (e2.push(""), u = 0);
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) {
2442
+ f = true;
2443
+ break;
2444
+ }
2445
+ h += c, b2 = o, x = u2, u2 = o = y.lastIndex;
2446
+ continue;
2447
+ }
2448
+ if (N.lastIndex = u2, N.test(t2)) {
2449
+ if (h + g > _2 && (d = Math.min(d, u2)), h + g > i) {
2450
+ f = true;
2451
+ break;
2452
+ }
2453
+ h += g, b2 = o, x = u2, u2 = o = N.lastIndex;
2454
+ continue;
2455
+ }
2456
+ u2 += 1;
2457
+ }
2458
+ return { width: f ? _2 : h, index: f ? d : p, truncated: f, ellipsed: f && i >= n };
2459
+ }, "q");
2460
+ var ct = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2461
+ var w = /* @__PURE__ */ __name((t2, s = {}) => q(t2, ct, s).width, "w");
2462
+ var L = "\x1B";
2463
+ var J = "\x9B";
2464
+ var Ft = 39;
2465
+ var P = "\x07";
2466
+ var X = "[";
2467
+ var pt = "]";
2468
+ var Z = "m";
2469
+ var O = `${pt}8;;`;
2470
+ var Q = new RegExp(`(?:\\${X}(?<code>\\d+)m|\\${O}(?<uri>.*)${P})`, "y");
2471
+ var ft = /* @__PURE__ */ __name((t2) => {
2472
+ if (t2 >= 30 && t2 <= 37 || t2 >= 90 && t2 <= 97) return 39;
2473
+ if (t2 >= 40 && t2 <= 47 || t2 >= 100 && t2 <= 107) return 49;
2474
+ if (t2 === 1 || t2 === 2) return 22;
2475
+ if (t2 === 3) return 23;
2476
+ if (t2 === 4) return 24;
2477
+ if (t2 === 7) return 27;
2478
+ if (t2 === 8) return 28;
2479
+ if (t2 === 9) return 29;
2480
+ if (t2 === 0) return 0;
2481
+ }, "ft");
2482
+ var tt = /* @__PURE__ */ __name((t2) => `${L}${X}${t2}${Z}`, "tt");
2483
+ var st = /* @__PURE__ */ __name((t2) => `${L}${O}${t2}${P}`, "st");
2484
+ var dt = /* @__PURE__ */ __name((t2) => t2.map((s) => w(s)), "dt");
2485
+ var j = /* @__PURE__ */ __name((t2, s, e) => {
2486
+ const i = s[Symbol.iterator]();
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;
2488
+ for (; !a.done; ) {
2489
+ const m = a.value, A = w(m);
2490
+ l + A <= e ? t2[t2.length - 1] += m : (t2.push(m), l = 0), (m === L || m === J) && (r = true, n = s.startsWith(O, g + 1)), r ? n ? m === P && (r = false, n = false) : m === Z && (r = false) : (l += A, l === e && !v.done && (t2.push(""), l = 0)), a = v, v = i.next(), g += m.length;
2423
2491
  }
2424
- !u && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
2492
+ F = t2.at(-1), !l && F !== void 0 && F.length > 0 && t2.length > 1 && (t2[t2.length - 2] += t2.pop());
2425
2493
  }, "j");
2426
- var yu = /* @__PURE__ */ __name((e2) => {
2427
- const D2 = e2.split(" ");
2428
- let t = D2.length;
2429
- for (; t > 0 && !(m(D2[t - 1]) > 0); ) t--;
2430
- return t === D2.length ? e2 : D2.slice(0, t).join(" ") + D2.slice(t).join("");
2431
- }, "yu");
2432
- var _u = /* @__PURE__ */ __name((e2, D2, t = {}) => {
2433
- if (t.trim !== false && e2.trim() === "") return "";
2434
- let s = "", i, F2;
2435
- const u = wu(e2);
2436
- let r = [""];
2437
- for (const [n, l] of e2.split(" ").entries()) {
2438
- t.trim !== false && (r[r.length - 1] = r[r.length - 1].trimStart());
2439
- let o2 = m(r[r.length - 1]);
2440
- if (n !== 0 && (o2 >= D2 && (t.wordWrap === false || t.trim === false) && (r.push(""), o2 = 0), (o2 > 0 || t.trim === false) && (r[r.length - 1] += " ", o2++)), t.hard && u[n] > D2) {
2441
- const A2 = D2 - o2, w = 1 + Math.floor((u[n] - A2 - 1) / D2);
2442
- Math.floor((u[n] - 1) / D2) < w && r.push(""), j(r, l, D2);
2494
+ var mt = /* @__PURE__ */ __name((t2) => {
2495
+ const s = t2.split(" ");
2496
+ let e = s.length;
2497
+ for (; e > 0 && !(w(s[e - 1]) > 0); ) e--;
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 = {}) => {
2501
+ if (e.trim !== false && t2.trim() === "") return "";
2502
+ let i = "", r, n;
2503
+ const F = t2.split(" "), l = dt(F);
2504
+ let a = [""];
2505
+ for (const [o, u2] of F.entries()) {
2506
+ e.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
2507
+ let p = w(a.at(-1) ?? "");
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
+ 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);
2443
2511
  continue;
2444
2512
  }
2445
- if (o2 + u[n] > D2 && o2 > 0 && u[n] > 0) {
2446
- if (t.wordWrap === false && o2 < D2) {
2447
- j(r, l, D2);
2513
+ if (p + l[o] > s && p > 0 && l[o] > 0) {
2514
+ if (e.wordWrap === false && p < s) {
2515
+ j(a, u2, s);
2448
2516
  continue;
2449
2517
  }
2450
- r.push("");
2518
+ a.push("");
2451
2519
  }
2452
- if (o2 + u[n] > D2 && t.wordWrap === false) {
2453
- j(r, l, D2);
2520
+ if (p + l[o] > s && e.wordWrap === false) {
2521
+ j(a, u2, s);
2454
2522
  continue;
2455
2523
  }
2456
- r[r.length - 1] += l;
2457
- }
2458
- t.trim !== false && (r = r.map((n) => yu(n)));
2459
- const a = [...r.join(`
2460
- `)];
2461
- for (const [n, l] of a.entries()) {
2462
- if (s += l, _.has(l)) {
2463
- const { groups: A2 } = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${T}(?<uri>.*)${M})`).exec(a.slice(n).join("")) || { groups: {} };
2464
- if (A2.code !== void 0) {
2465
- const w = Number.parseFloat(A2.code);
2466
- i = w === vu ? void 0 : w;
2467
- } else A2.uri !== void 0 && (F2 = A2.uri.length === 0 ? void 0 : A2.uri);
2468
- }
2469
- const o2 = mu.codes.get(Number(i));
2470
- a[n + 1] === `
2471
- ` ? (F2 && (s += Du("")), i && o2 && (s += uu(o2))) : l === `
2472
- ` && (i && o2 && (s += uu(i)), F2 && (s += Du(F2)));
2473
- }
2474
- return s;
2475
- }, "_u");
2476
- function tu(e2, D2, t) {
2477
- return String(e2).normalize().replace(/\r\n/g, `
2524
+ a[a.length - 1] += u2;
2525
+ }
2526
+ e.trim !== false && (a = a.map((o) => mt(o)));
2527
+ const v = a.join(`
2528
+ `), g = v[Symbol.iterator]();
2529
+ let m = g.next(), A = g.next(), S = 0;
2530
+ for (; !m.done; ) {
2531
+ const o = m.value, u2 = A.value;
2532
+ if (i += o, o === L || o === J) {
2533
+ Q.lastIndex = S + 1;
2534
+ const f = Q.exec(v)?.groups;
2535
+ if (f?.code !== void 0) {
2536
+ const d = Number.parseFloat(f.code);
2537
+ r = d === Ft ? void 0 : d;
2538
+ } else f?.uri !== void 0 && (n = f.uri.length === 0 ? void 0 : f.uri);
2539
+ }
2540
+ const p = r ? ft(r) : void 0;
2541
+ u2 === `
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();
2544
+ }
2545
+ return i;
2546
+ }, "gt");
2547
+ function et(t2, s, e) {
2548
+ return String(t2).normalize().replaceAll(`\r
2549
+ `, `
2478
2550
  `).split(`
2479
- `).map((s) => _u(s, D2, t)).join(`
2551
+ `).map((i) => gt(i, s, e)).join(`
2480
2552
  `);
2481
2553
  }
2482
- __name(tu, "tu");
2483
- var $u = ["up", "down", "left", "right", "space", "enter", "cancel"];
2484
- var c = { actions: new Set($u), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" } };
2485
- function P(e2, D2) {
2486
- if (typeof e2 == "string") return c.aliases.get(e2) === D2;
2487
- for (const t of e2) if (t !== void 0 && P(t, D2)) return true;
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" } };
2557
+ function U(t2, s) {
2558
+ if (typeof t2 == "string") return C.aliases.get(t2) === s;
2559
+ for (const e of t2) if (e !== void 0 && U(e, s)) return true;
2488
2560
  return false;
2489
2561
  }
2490
- __name(P, "P");
2491
- function Su(e2, D2) {
2492
- if (e2 === D2) return;
2493
- const t = e2.split(`
2494
- `), s = D2.split(`
2495
- `), i = [];
2496
- for (let F2 = 0; F2 < Math.max(t.length, s.length); F2++) t[F2] !== s[F2] && i.push(F2);
2497
- return i;
2562
+ __name(U, "U");
2563
+ function At(t2, s) {
2564
+ if (t2 === s) return;
2565
+ const e = t2.split(`
2566
+ `), i = s.split(`
2567
+ `), r = [];
2568
+ for (let n = 0; n < Math.max(e.length, i.length); n++) e[n] !== i[n] && r.push(n);
2569
+ return r;
2498
2570
  }
2499
- __name(Su, "Su");
2500
- var Vu = globalThis.process.platform.startsWith("win");
2501
- var N = Symbol("clack:cancel");
2502
- function Ou(e2) {
2503
- return e2 === N;
2571
+ __name(At, "At");
2572
+ var It = globalThis.process.platform.startsWith("win");
2573
+ var G = Symbol("clack:cancel");
2574
+ function _t(t2) {
2575
+ return t2 === G;
2504
2576
  }
2505
- __name(Ou, "Ou");
2506
- function $(e2, D2) {
2507
- const t = e2;
2508
- t.isTTY && t.setRawMode(D2);
2577
+ __name(_t, "_t");
2578
+ function W(t2, s) {
2579
+ const e = t2;
2580
+ e.isTTY && e.setRawMode(s);
2509
2581
  }
2510
- __name($, "$");
2511
- function Mu({ input: e2 = K, output: D2 = G, overwrite: t = true, hideCursor: s = true } = {}) {
2512
- const i = y.createInterface({ input: e2, output: D2, prompt: "", tabSize: 1 });
2513
- y.emitKeypressEvents(e2, i), e2 instanceof z && e2.isTTY && e2.setRawMode(true);
2514
- const F2 = /* @__PURE__ */ __name((u, { name: r, sequence: a }) => {
2515
- const n = String(u);
2516
- if (P([n, r, a], "cancel")) {
2517
- s && D2.write(import_sisteransi.cursor.show), process.exit(0);
2582
+ __name(W, "W");
2583
+ function Ct({ input: t2 = z, output: s = H, overwrite: e = true, hideCursor: i = true } = {}) {
2584
+ const r = V.createInterface({ input: t2, output: s, prompt: "", tabSize: 1 });
2585
+ V.emitKeypressEvents(t2, r), t2 instanceof Y && t2.isTTY && t2.setRawMode(true);
2586
+ const n = /* @__PURE__ */ __name((F, { name: l, sequence: a }) => {
2587
+ const v = String(F);
2588
+ if (U([v, l, a], "cancel")) {
2589
+ i && s.write(import_sisteransi.cursor.show), process.exit(0);
2518
2590
  return;
2519
2591
  }
2520
- if (!t) return;
2521
- const l = r === "return" ? 0 : -1, o2 = r === "return" ? -1 : 0;
2522
- y.moveCursor(D2, l, o2, () => {
2523
- y.clearLine(D2, 1, () => {
2524
- e2.once("keypress", F2);
2592
+ if (!e) return;
2593
+ const g = l === "return" ? 0 : -1, m = l === "return" ? -1 : 0;
2594
+ V.moveCursor(s, g, m, () => {
2595
+ V.clearLine(s, 1, () => {
2596
+ t2.once("keypress", n);
2525
2597
  });
2526
2598
  });
2527
- }, "F");
2528
- return s && D2.write(import_sisteransi.cursor.hide), e2.once("keypress", F2), () => {
2529
- e2.off("keypress", F2), s && D2.write(import_sisteransi.cursor.show), e2 instanceof z && e2.isTTY && !Vu && e2.setRawMode(false), i.terminal = false, i.close();
2599
+ }, "n");
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();
2530
2602
  };
2531
2603
  }
2532
- __name(Mu, "Mu");
2533
- var Tu = /* @__PURE__ */ __name((e2) => e2 instanceof lu && e2.columns ? e2.columns : 80, "Tu");
2534
- var ju = Object.defineProperty;
2535
- var Pu = /* @__PURE__ */ __name((e2, D2, t) => D2 in e2 ? ju(e2, D2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[D2] = t, "Pu");
2536
- var E = /* @__PURE__ */ __name((e2, D2, t) => (Pu(e2, typeof D2 != "symbol" ? D2 + "" : D2, t), t), "E");
2604
+ __name(Ct, "Ct");
2605
+ var bt = /* @__PURE__ */ __name((t2) => t2 instanceof nt && t2.columns ? t2.columns : 80, "bt");
2537
2606
  var B = class {
2538
2607
  static {
2539
2608
  __name(this, "B");
2540
2609
  }
2541
- constructor(D2, t = true) {
2542
- E(this, "input"), E(this, "output"), E(this, "_abortSignal"), E(this, "rl"), E(this, "opts"), E(this, "_render"), E(this, "_track", false), E(this, "_prevFrame", ""), E(this, "_subscribers", /* @__PURE__ */ new Map()), E(this, "_cursor", 0), E(this, "_usePlaceholderAsValue", true), E(this, "state", "initial"), E(this, "error", ""), E(this, "value");
2543
- const { input: s = K, output: i = G, render: F2, signal: u, ...r } = D2;
2544
- this.opts = r, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = F2.bind(this), this._track = t, this._abortSignal = u, this.input = s, this.output = i;
2610
+ input;
2611
+ output;
2612
+ _abortSignal;
2613
+ rl;
2614
+ opts;
2615
+ _render;
2616
+ _track = false;
2617
+ _prevFrame = "";
2618
+ _subscribers = /* @__PURE__ */ new Map();
2619
+ _cursor = 0;
2620
+ state = "initial";
2621
+ error = "";
2622
+ value;
2623
+ userInput = "";
2624
+ constructor(s, e = true) {
2625
+ const { input: i = z, output: r = H, render: n, signal: F, ...l } = s;
2626
+ this.opts = l, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = e, this._abortSignal = F, this.input = i, this.output = r;
2545
2627
  }
2546
2628
  unsubscribe() {
2547
2629
  this._subscribers.clear();
2548
2630
  }
2549
- setSubscriber(D2, t) {
2550
- const s = this._subscribers.get(D2) ?? [];
2551
- s.push(t), this._subscribers.set(D2, s);
2631
+ setSubscriber(s, e) {
2632
+ const i = this._subscribers.get(s) ?? [];
2633
+ i.push(e), this._subscribers.set(s, i);
2552
2634
  }
2553
- on(D2, t) {
2554
- this.setSubscriber(D2, { cb: t });
2635
+ on(s, e) {
2636
+ this.setSubscriber(s, { cb: e });
2555
2637
  }
2556
- once(D2, t) {
2557
- this.setSubscriber(D2, { cb: t, once: true });
2638
+ once(s, e) {
2639
+ this.setSubscriber(s, { cb: e, once: true });
2558
2640
  }
2559
- emit(D2, ...t) {
2560
- const s = this._subscribers.get(D2) ?? [], i = [];
2561
- for (const F2 of s) F2.cb(...t), F2.once && i.push(() => s.splice(s.indexOf(F2), 1));
2562
- for (const F2 of i) F2();
2641
+ emit(s, ...e) {
2642
+ const i = this._subscribers.get(s) ?? [], r = [];
2643
+ for (const n of i) n.cb(...e), n.once && r.push(() => i.splice(i.indexOf(n), 1));
2644
+ for (const n of r) n();
2563
2645
  }
2564
2646
  prompt() {
2565
- return new Promise((D2, t) => {
2647
+ return new Promise((s) => {
2566
2648
  if (this._abortSignal) {
2567
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), D2(N);
2649
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), s(G);
2568
2650
  this._abortSignal.addEventListener("abort", () => {
2569
2651
  this.state = "cancel", this.close();
2570
2652
  }, { once: true });
2571
2653
  }
2572
- this.rl = Eu.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialValue !== void 0 && (this._track && this.rl.write(this.opts.initialValue), this._setValue(this.opts.initialValue)), this.input.on("keypress", this.onKeypress), $(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
2573
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), $(this.input, false), D2(this.value);
2654
+ this.rl = rt.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), W(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
2655
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), W(this.input, false), s(this.value);
2574
2656
  }), this.once("cancel", () => {
2575
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), $(this.input, false), D2(N);
2657
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), W(this.input, false), s(G);
2576
2658
  });
2577
2659
  });
2578
2660
  }
2579
- _isActionKey(D2, t) {
2580
- return D2 === " ";
2661
+ _isActionKey(s, e) {
2662
+ return s === " ";
2663
+ }
2664
+ _setValue(s) {
2665
+ this.value = s, this.emit("value", this.value);
2666
+ }
2667
+ _setUserInput(s, e) {
2668
+ this.userInput = s ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
2581
2669
  }
2582
- _setValue(D2) {
2583
- this.value = D2, this.emit("value", this.value);
2670
+ _clearUserInput() {
2671
+ this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
2584
2672
  }
2585
- onKeypress(D2, t) {
2586
- if (this._track && t.name !== "return" && (t.name && this._isActionKey(D2, t) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setValue(this.rl?.line)), this.state === "error" && (this.state = "active"), t?.name && (!this._track && c.aliases.has(t.name) && this.emit("cursor", c.aliases.get(t.name)), c.actions.has(t.name) && this.emit("cursor", t.name)), D2 && (D2.toLowerCase() === "y" || D2.toLowerCase() === "n") && this.emit("confirm", D2.toLowerCase() === "y"), this._usePlaceholderAsValue && D2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this._setValue(this.opts.placeholder))), this.emit("key", D2?.toLowerCase(), t), t?.name === "return") {
2587
- if (!this.value && this.opts.placeholder && (this.rl?.write(this.opts.placeholder), this._setValue(this.opts.placeholder)), this.opts.validate) {
2588
- const s = this.opts.validate(this.value);
2589
- s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.value));
2673
+ onKeypress(s, e) {
2674
+ if (this._track && e.name !== "return" && (e.name && this._isActionKey(s, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && C.aliases.has(e.name) && this.emit("cursor", C.aliases.get(e.name)), C.actions.has(e.name) && this.emit("cursor", e.name)), s && (s.toLowerCase() === "y" || s.toLowerCase() === "n") && this.emit("confirm", s.toLowerCase() === "y"), this.emit("key", s?.toLowerCase(), e), e?.name === "return") {
2675
+ if (this.opts.validate) {
2676
+ const i = this.opts.validate(this.value);
2677
+ i && (this.error = i instanceof Error ? i.message : i, this.state = "error", this.rl?.write(this.userInput));
2590
2678
  }
2591
2679
  this.state !== "error" && (this.state = "submit");
2592
2680
  }
2593
- P([D2, t?.name, t?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
2681
+ U([s, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
2594
2682
  }
2595
2683
  close() {
2596
2684
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
2597
- `), $(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
2685
+ `), W(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
2598
2686
  }
2599
2687
  restoreCursor() {
2600
- const D2 = tu(this._prevFrame, process.stdout.columns, { hard: true }).split(`
2688
+ const s = et(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
2601
2689
  `).length - 1;
2602
- this.output.write(import_sisteransi.cursor.move(-999, D2 * -1));
2690
+ this.output.write(import_sisteransi.cursor.move(-999, s * -1));
2603
2691
  }
2604
2692
  render() {
2605
- const D2 = tu(this._render(this) ?? "", process.stdout.columns, { hard: true });
2606
- if (D2 !== this._prevFrame) {
2693
+ const s = et(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
2694
+ if (s !== this._prevFrame) {
2607
2695
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
2608
2696
  else {
2609
- const t = Su(this._prevFrame, D2);
2610
- if (this.restoreCursor(), t && t?.length === 1) {
2611
- const s = t[0];
2612
- this.output.write(import_sisteransi.cursor.move(0, s)), this.output.write(import_sisteransi.erase.lines(1));
2613
- const i = D2.split(`
2697
+ const e = At(this._prevFrame, s);
2698
+ if (this.restoreCursor(), e && e?.length === 1) {
2699
+ const i = e[0];
2700
+ this.output.write(import_sisteransi.cursor.move(0, i)), this.output.write(import_sisteransi.erase.lines(1));
2701
+ const r = s.split(`
2614
2702
  `);
2615
- this.output.write(i[s]), this._prevFrame = D2, this.output.write(import_sisteransi.cursor.move(0, i.length - s - 1));
2703
+ this.output.write(r[i]), this._prevFrame = s, this.output.write(import_sisteransi.cursor.move(0, r.length - i - 1));
2616
2704
  return;
2617
2705
  }
2618
- if (t && t?.length > 1) {
2619
- const s = t[0];
2620
- this.output.write(import_sisteransi.cursor.move(0, s)), this.output.write(import_sisteransi.erase.down());
2621
- const i = D2.split(`
2622
- `).slice(s);
2623
- this.output.write(i.join(`
2624
- `)), this._prevFrame = D2;
2706
+ if (e && e?.length > 1) {
2707
+ const i = e[0];
2708
+ this.output.write(import_sisteransi.cursor.move(0, i)), this.output.write(import_sisteransi.erase.down());
2709
+ const r = s.split(`
2710
+ `).slice(i);
2711
+ this.output.write(r.join(`
2712
+ `)), this._prevFrame = s;
2625
2713
  return;
2626
2714
  }
2627
2715
  this.output.write(import_sisteransi.erase.down());
2628
2716
  }
2629
- this.output.write(D2), this.state === "initial" && (this.state = "active"), this._prevFrame = D2;
2717
+ this.output.write(s), this.state === "initial" && (this.state = "active"), this._prevFrame = s;
2630
2718
  }
2631
2719
  }
2632
2720
  };
2633
- var Nu = class extends B {
2721
+ var St = class extends B {
2634
2722
  static {
2635
- __name(this, "Nu");
2723
+ __name(this, "St");
2636
2724
  }
2637
2725
  get cursor() {
2638
2726
  return this.value ? 0 : 1;
@@ -2640,30 +2728,43 @@ var Nu = class extends B {
2640
2728
  get _value() {
2641
2729
  return this.cursor === 0;
2642
2730
  }
2643
- constructor(D2) {
2644
- super(D2, false), this.value = !!D2.initialValue, this.on("value", () => {
2731
+ constructor(s) {
2732
+ super(s, false), this.value = !!s.initialValue, this.on("userInput", () => {
2645
2733
  this.value = this._value;
2646
- }), this.on("confirm", (t) => {
2647
- this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
2734
+ }), this.on("confirm", (e) => {
2735
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = e, this.state = "submit", this.close();
2648
2736
  }), this.on("cursor", () => {
2649
2737
  this.value = !this.value;
2650
2738
  });
2651
2739
  }
2652
2740
  };
2653
- var d;
2654
- d = /* @__PURE__ */ new WeakMap();
2655
- var Gu = Object.defineProperty;
2656
- var zu = /* @__PURE__ */ __name((e2, D2, t) => D2 in e2 ? Gu(e2, D2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[D2] = t, "zu");
2657
- var iu = /* @__PURE__ */ __name((e2, D2, t) => (zu(e2, typeof D2 != "symbol" ? D2 + "" : D2, t), t), "iu");
2658
- var Yu = class extends B {
2741
+ var kt = class extends B {
2659
2742
  static {
2660
- __name(this, "Yu");
2743
+ __name(this, "kt");
2744
+ }
2745
+ options;
2746
+ cursor = 0;
2747
+ get _value() {
2748
+ return this.options[this.cursor].value;
2749
+ }
2750
+ toggleAll() {
2751
+ const s = this.value !== void 0 && this.value.length === this.options.length;
2752
+ this.value = s ? [] : this.options.map((e) => e.value);
2753
+ }
2754
+ toggleInvert() {
2755
+ const s = this.options.filter((e) => !this.value.includes(e.value));
2756
+ this.value = s.map((e) => e.value);
2661
2757
  }
2662
- constructor(D2) {
2663
- super(D2, false), iu(this, "options"), iu(this, "cursor", 0), this.options = D2.options, this.value = [...D2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: t }) => t === D2.cursorAt), 0), this.on("key", (t) => {
2664
- t === "a" && this.toggleAll();
2665
- }), this.on("cursor", (t) => {
2666
- switch (t) {
2758
+ toggleValue() {
2759
+ this.value === void 0 && (this.value = []);
2760
+ const s = this.value.includes(this._value);
2761
+ this.value = s ? this.value.filter((e) => e !== this._value) : [...this.value, this._value];
2762
+ }
2763
+ constructor(s) {
2764
+ super(s, false), this.options = s.options, this.value = [...s.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e }) => e === s.cursorAt), 0), this.on("key", (e) => {
2765
+ e === "a" && this.toggleAll(), e === "i" && this.toggleInvert();
2766
+ }), this.on("cursor", (e) => {
2767
+ switch (e) {
2667
2768
  case "left":
2668
2769
  case "up":
2669
2770
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
@@ -2678,28 +2779,22 @@ var Yu = class extends B {
2678
2779
  }
2679
2780
  });
2680
2781
  }
2681
- get _value() {
2682
- return this.options[this.cursor].value;
2683
- }
2684
- toggleAll() {
2685
- const D2 = this.value.length === this.options.length;
2686
- this.value = D2 ? [] : this.options.map((t) => t.value);
2687
- }
2688
- toggleValue() {
2689
- const D2 = this.value.includes(this._value);
2690
- this.value = D2 ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
2691
- }
2692
2782
  };
2693
- var Ju = Object.defineProperty;
2694
- var Qu = /* @__PURE__ */ __name((e2, D2, t) => D2 in e2 ? Ju(e2, D2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[D2] = t, "Qu");
2695
- var Fu = /* @__PURE__ */ __name((e2, D2, t) => (Qu(e2, typeof D2 != "symbol" ? D2 + "" : D2, t), t), "Fu");
2696
- var Xu = class extends B {
2783
+ var Mt = class extends B {
2697
2784
  static {
2698
- __name(this, "Xu");
2785
+ __name(this, "Mt");
2786
+ }
2787
+ options;
2788
+ cursor = 0;
2789
+ get _selectedValue() {
2790
+ return this.options[this.cursor];
2791
+ }
2792
+ changeValue() {
2793
+ this.value = this._selectedValue.value;
2699
2794
  }
2700
- constructor(D2) {
2701
- super(D2, false), Fu(this, "options"), Fu(this, "cursor", 0), this.options = D2.options, this.cursor = this.options.findIndex(({ value: t }) => t === D2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
2702
- switch (t) {
2795
+ constructor(s) {
2796
+ super(s, false), this.options = s.options, this.cursor = this.options.findIndex(({ value: e }) => e === s.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (e) => {
2797
+ switch (e) {
2703
2798
  case "left":
2704
2799
  case "up":
2705
2800
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
@@ -2712,360 +2807,542 @@ var Xu = class extends B {
2712
2807
  this.changeValue();
2713
2808
  });
2714
2809
  }
2715
- get _value() {
2716
- return this.options[this.cursor];
2717
- }
2718
- changeValue() {
2719
- this.value = this._value.value;
2720
- }
2721
2810
  };
2722
- var eD = class extends B {
2811
+ var Wt = class extends B {
2723
2812
  static {
2724
- __name(this, "eD");
2813
+ __name(this, "Wt");
2725
2814
  }
2726
- get valueWithCursor() {
2727
- if (this.state === "submit") return this.value;
2728
- const D2 = this.value ?? "";
2729
- if (this.cursor >= D2.length) return `${this.value}\u2588`;
2730
- const t = D2.slice(0, this.cursor), [s, ...i] = D2.slice(this.cursor);
2731
- return `${t}${import_picocolors.default.inverse(s)}${i.join("")}`;
2815
+ get userInputWithCursor() {
2816
+ if (this.state === "submit") return this.userInput;
2817
+ const s = this.userInput;
2818
+ if (this.cursor >= s.length) return `${this.userInput}\u2588`;
2819
+ const e = s.slice(0, this.cursor), [i, ...r] = s.slice(this.cursor);
2820
+ return `${e}${import_picocolors.default.inverse(i)}${r.join("")}`;
2732
2821
  }
2733
2822
  get cursor() {
2734
2823
  return this._cursor;
2735
2824
  }
2736
- constructor(D2) {
2737
- super(D2), this.on("finalize", () => {
2738
- this.value || (this.value = D2.defaultValue);
2825
+ constructor(s) {
2826
+ super({ ...s, initialUserInput: s.initialUserInput ?? s.initialValue }), this.on("userInput", (e) => {
2827
+ this._setValue(e);
2828
+ }), this.on("finalize", () => {
2829
+ this.value || (this.value = s.defaultValue), this.value === void 0 && (this.value = "");
2739
2830
  });
2740
2831
  }
2741
2832
  };
2742
- var L = /* @__PURE__ */ __name((e2, D2, t) => {
2743
- if (!D2.has(e2)) throw TypeError("Cannot " + t);
2744
- }, "L");
2745
- var f = /* @__PURE__ */ __name((e2, D2, t) => (L(e2, D2, "read from private field"), t ? t.call(e2) : D2.get(e2)), "f");
2746
- var b = /* @__PURE__ */ __name((e2, D2, t, s) => (L(e2, D2, "write to private field"), s ? s.call(e2, t) : D2.set(e2, t), t), "b");
2747
- var x;
2748
- var k;
2749
- var S;
2750
- var I;
2751
- var nu;
2752
- var R;
2753
- var ou;
2754
- function FD(e2, D2) {
2755
- if (e2 === void 0 || D2.length === 0) return 0;
2756
- const t = D2.findIndex((s) => s.value === e2);
2757
- return t !== -1 ? t : 0;
2758
- }
2759
- __name(FD, "FD");
2760
- x = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), nu = /* @__PURE__ */ __name(function(e2, D2) {
2761
- const t = D2.name === "up", s = D2.name === "down";
2762
- t || s ? (b(this, x, Math.max(0, Math.min(f(this, x) + (t ? -1 : 1), this.filteredOptions.length - 1))), this.focusedValue = this.filteredOptions[f(this, x)]?.value, this.multiple || (this.selectedValues = [this.focusedValue]), this.isNavigating = true) : this.multiple && this.focusedValue !== void 0 && (D2.name === "tab" || this.isNavigating && D2.name === "space") ? this.toggleSelected(this.focusedValue) : this.isNavigating = false;
2763
- }, "nu"), R = /* @__PURE__ */ new WeakSet(), ou = /* @__PURE__ */ __name(function(e2) {
2764
- e2 !== f(this, k) && (b(this, k, e2), e2 ? this.filteredOptions = this.options.filter((D2) => f(this, S).call(this, e2, D2)) : this.filteredOptions = [...this.options], b(this, x, FD(this.focusedValue, this.filteredOptions)), this.focusedValue = this.filteredOptions[f(this, x)]?.value);
2765
- }, "ou");
2766
2833
 
2767
2834
  // ../node_modules/@clack/prompts/dist/index.mjs
2768
- var G2 = __toESM(require_picocolors(), 1);
2769
2835
  var import_picocolors2 = __toESM(require_picocolors(), 1);
2770
- import _2 from "node:process";
2771
- import { WriteStream as Te } from "node:tty";
2836
+ import T from "node:process";
2837
+ import { WriteStream as rt2 } from "node:tty";
2772
2838
  var import_sisteransi2 = __toESM(require_src(), 1);
2773
- function Me() {
2774
- return _2.platform !== "win32" ? _2.env.TERM !== "linux" : !!_2.env.CI || !!_2.env.WT_SESSION || !!_2.env.TERMINUS_SUBLIME || _2.env.ConEmuTask === "{cmd::Cmder}" || _2.env.TERM_PROGRAM === "Terminus-Sublime" || _2.env.TERM_PROGRAM === "vscode" || _2.env.TERM === "xterm-256color" || _2.env.TERM === "alacritty" || _2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2839
+ 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";
2775
2841
  }
2776
- __name(Me, "Me");
2777
- var P2 = Me();
2778
- var W = /* @__PURE__ */ __name(() => process.env.CI === "true", "W");
2779
- var h2 = /* @__PURE__ */ __name((t, r) => P2 ? t : r, "h");
2780
- var re = h2("\u25C6", "*");
2781
- var D = h2("\u25A0", "x");
2782
- var F = h2("\u25B2", "x");
2783
- var M2 = h2("\u25C7", "o");
2784
- var ie = h2("\u250C", "T");
2785
- var o = h2("\u2502", "|");
2786
- var f2 = h2("\u2514", "\u2014");
2787
- var j2 = h2("\u25CF", ">");
2788
- var N2 = h2("\u25CB", " ");
2789
- var L2 = h2("\u25FB", "[\u2022]");
2790
- var O2 = h2("\u25FC", "[+]");
2791
- var k2 = h2("\u25FB", "[ ]");
2792
- var ne = h2("\u25AA", "\u2022");
2793
- var q2 = h2("\u2500", "-");
2794
- var oe = h2("\u256E", "+");
2795
- var ae = h2("\u251C", "+");
2796
- var ue = h2("\u256F", "+");
2797
- var H2 = h2("\u25CF", "\u2022");
2798
- var K2 = h2("\u25C6", "*");
2799
- var U2 = h2("\u25B2", "!");
2800
- var X2 = h2("\u25A0", "x");
2801
- var T2 = /* @__PURE__ */ __name((t) => {
2802
- switch (t) {
2842
+ __name(ot2, "ot");
2843
+ var q2 = ot2();
2844
+ var se = /* @__PURE__ */ __name(() => process.env.CI === "true", "se");
2845
+ 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) => {
2873
+ switch (e) {
2803
2874
  case "initial":
2804
2875
  case "active":
2805
- return import_picocolors2.default.cyan(re);
2876
+ return import_picocolors2.default.cyan(we);
2806
2877
  case "cancel":
2807
- return import_picocolors2.default.red(D);
2878
+ return import_picocolors2.default.red(re);
2808
2879
  case "error":
2809
- return import_picocolors2.default.yellow(F);
2880
+ return import_picocolors2.default.yellow(ie);
2810
2881
  case "submit":
2811
- return import_picocolors2.default.green(M2);
2812
- }
2813
- }, "T");
2814
- var A = /* @__PURE__ */ __name((t) => {
2815
- const { cursor: r, options: s, style: i } = t, n = t.output ?? process.stdout, a = n instanceof Te && n.rows !== void 0 ? n.rows : 10, u = import_picocolors2.default.dim("..."), l = t.maxItems ?? Number.POSITIVE_INFINITY, c2 = Math.max(a - 4, 0), $2 = Math.min(c2, Math.max(l, 5));
2816
- let p2 = 0;
2817
- r >= p2 + $2 - 3 ? p2 = Math.max(Math.min(r - $2 + 3, s.length - $2), 0) : r < p2 + 2 && (p2 = Math.max(r - 2, 0));
2818
- const g = $2 < s.length && p2 > 0, m2 = $2 < s.length && p2 + $2 < s.length;
2819
- return s.slice(p2, p2 + $2).map((y2, d2, v) => {
2820
- const S2 = d2 === 0 && g, b2 = d2 === v.length - 1 && m2;
2821
- return S2 || b2 ? u : i(y2, d2 + p2 === r);
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);
2822
2893
  });
2823
- }, "A");
2824
- var Ve = /* @__PURE__ */ __name((t) => {
2825
- const r = t.active ?? "Yes", s = t.inactive ?? "No";
2826
- return new Nu({ active: r, inactive: s, input: t.input, output: t.output, initialValue: t.initialValue ?? true, render() {
2827
- const i = `${import_picocolors2.default.gray(o)}
2828
- ${T2(this.state)} ${t.message}
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;
2908
+ 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;
2916
+ break e;
2917
+ }
2918
+ f += N2.length, A += C2;
2919
+ }
2920
+ B2 = x = 0;
2921
+ }
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;
2926
+ break;
2927
+ }
2928
+ A += C2, B2 = p, x = $2, $2 = p = Q2.lastIndex;
2929
+ continue;
2930
+ }
2931
+ if (de.lastIndex = $2, de.test(e)) {
2932
+ if (A + c > w2 && (v = Math.min(v, $2)), A + c > i) {
2933
+ E = true;
2934
+ break;
2935
+ }
2936
+ A += c, B2 = p, x = $2, $2 = p = de.lastIndex;
2937
+ continue;
2938
+ }
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;
2942
+ break;
2943
+ }
2944
+ A += C2, B2 = p, x = $2, $2 = p = z2.lastIndex;
2945
+ continue;
2946
+ }
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;
2950
+ break;
2951
+ }
2952
+ A += C2, B2 = p, x = $2, $2 = p = Z2.lastIndex;
2953
+ continue;
2954
+ }
2955
+ if (he.lastIndex = $2, he.test(e)) {
2956
+ if (A + g > w2 && (v = Math.min(v, $2)), A + g > i) {
2957
+ E = true;
2958
+ break;
2959
+ }
2960
+ A += g, B2 = p, x = $2, $2 = p = he.lastIndex;
2961
+ continue;
2962
+ }
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) => {
2979
+ if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
2980
+ if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
2981
+ if (e === 1 || e === 2) return 22;
2982
+ if (e === 3) return 23;
2983
+ if (e === 4) return 24;
2984
+ if (e === 7) return 27;
2985
+ if (e === 8) return 28;
2986
+ if (e === 9) return 29;
2987
+ 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) => {
2993
+ 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;
2995
+ 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;
2998
+ }
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) => {
3002
+ const r = e.split(" ");
3003
+ let s = r.length;
3004
+ for (; s > 0 && !(U2(r[s - 1]) > 0); ) s--;
3005
+ return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
3006
+ }, "Et");
3007
+ var vt2 = /* @__PURE__ */ __name((e, r, s = {}) => {
3008
+ if (s.trim !== false && e.trim() === "") return "";
3009
+ let i = "", n, o;
3010
+ const c = e.split(" "), l = yt2(c);
3011
+ let a = [""];
3012
+ for (const [p, $2] of c.entries()) {
3013
+ 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);
3018
+ continue;
3019
+ }
3020
+ if (d + l[p] > r && d > 0 && l[p] > 0) {
3021
+ if (s.wordWrap === false && d < r) {
3022
+ ge(a, $2, r);
3023
+ continue;
3024
+ }
3025
+ a.push("");
3026
+ }
3027
+ if (d + l[p] > r && s.wordWrap === false) {
3028
+ ge(a, $2, r);
3029
+ continue;
3030
+ }
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);
3046
+ }
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();
3051
+ }
3052
+ return i;
3053
+ }, "vt");
3054
+ function Fe(e, r, s) {
3055
+ return String(e).normalize().replaceAll(`\r
3056
+ `, `
3057
+ `).split(`
3058
+ `).map((i) => vt2(i, r, s)).join(`
3059
+ `);
3060
+ }
3061
+ __name(Fe, "Fe");
3062
+ var wt2 = /* @__PURE__ */ __name((e) => {
3063
+ const r = e.active ?? "Yes", s = e.inactive ?? "No";
3064
+ 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}
2829
3067
  `, n = this.value ? r : s;
2830
3068
  switch (this.state) {
2831
3069
  case "submit":
2832
- return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(n)}`;
3070
+ return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.dim(n)}`;
2833
3071
  case "cancel":
2834
- return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
2835
- ${import_picocolors2.default.gray(o)}`;
3072
+ return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
3073
+ ${import_picocolors2.default.gray(u)}`;
2836
3074
  default:
2837
- return `${i}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(j2)} ${r}` : `${import_picocolors2.default.dim(N2)} ${import_picocolors2.default.dim(r)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(N2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(j2)} ${s}`}
2838
- ${import_picocolors2.default.cyan(f2)}
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(_)}
2839
3077
  `;
2840
3078
  }
2841
3079
  } }).prompt();
2842
- }, "Ve");
2843
- var E2 = { message: /* @__PURE__ */ __name((t = [], { symbol: r = import_picocolors2.default.gray(o), secondarySymbol: s = import_picocolors2.default.gray(o), output: i = process.stdout, spacing: n = 1 } = {}) => {
2844
- const a = [];
2845
- for (let l = 0; l < n; l++) a.push(`${s}`);
2846
- const u = Array.isArray(t) ? t : t.split(`
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 } = {}) => {
3082
+ const o = [];
3083
+ for (let l = 0; l < n; l++) o.push(`${s}`);
3084
+ const c = Array.isArray(e) ? e : e.split(`
2847
3085
  `);
2848
- if (u.length > 0) {
2849
- const [l, ...c2] = u;
2850
- l.length > 0 ? a.push(`${r} ${l}`) : a.push(r);
2851
- for (const $2 of c2) $2.length > 0 ? a.push(`${s} ${$2}`) : a.push(s);
3086
+ if (c.length > 0) {
3087
+ const [l, ...a] = c;
3088
+ 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);
2852
3090
  }
2853
- i.write(`${a.join(`
3091
+ i.write(`${o.join(`
2854
3092
  `)}
2855
3093
  `);
2856
- }, "message"), info: /* @__PURE__ */ __name((t, r) => {
2857
- E2.message(t, { ...r, symbol: import_picocolors2.default.blue(H2) });
2858
- }, "info"), success: /* @__PURE__ */ __name((t, r) => {
2859
- E2.message(t, { ...r, symbol: import_picocolors2.default.green(K2) });
2860
- }, "success"), step: /* @__PURE__ */ __name((t, r) => {
2861
- E2.message(t, { ...r, symbol: import_picocolors2.default.green(M2) });
2862
- }, "step"), warn: /* @__PURE__ */ __name((t, r) => {
2863
- E2.message(t, { ...r, symbol: import_picocolors2.default.yellow(U2) });
2864
- }, "warn"), warning: /* @__PURE__ */ __name((t, r) => {
2865
- E2.warn(t, r);
2866
- }, "warning"), error: /* @__PURE__ */ __name((t, r) => {
2867
- E2.message(t, { ...r, symbol: import_picocolors2.default.red(X2) });
3094
+ }, "message"), info: /* @__PURE__ */ __name((e, r) => {
3095
+ b.message(e, { ...r, symbol: import_picocolors2.default.blue(le) });
3096
+ }, "info"), success: /* @__PURE__ */ __name((e, r) => {
3097
+ b.message(e, { ...r, symbol: import_picocolors2.default.green(ue) });
3098
+ }, "success"), step: /* @__PURE__ */ __name((e, r) => {
3099
+ b.message(e, { ...r, symbol: import_picocolors2.default.green(L2) });
3100
+ }, "step"), warn: /* @__PURE__ */ __name((e, r) => {
3101
+ b.message(e, { ...r, symbol: import_picocolors2.default.yellow(ce) });
3102
+ }, "warn"), warning: /* @__PURE__ */ __name((e, r) => {
3103
+ b.warn(e, r);
3104
+ }, "warning"), error: /* @__PURE__ */ __name((e, r) => {
3105
+ b.message(e, { ...r, symbol: import_picocolors2.default.red($e) });
2868
3106
  }, "error") };
2869
- var Ne = /* @__PURE__ */ __name((t = "", r) => {
2870
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(f2)} ${import_picocolors2.default.red(t)}
3107
+ var xt = /* @__PURE__ */ __name((e = "", r) => {
3108
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(_)} ${import_picocolors2.default.red(e)}
2871
3109
 
2872
3110
  `);
2873
- }, "Ne");
2874
- var Pe = /* @__PURE__ */ __name((t = "", r) => {
2875
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(ie)} ${t}
3111
+ }, "xt");
3112
+ var bt2 = /* @__PURE__ */ __name((e = "", r) => {
3113
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(ne)} ${e}
2876
3114
  `);
2877
- }, "Pe");
2878
- var Le = /* @__PURE__ */ __name((t = "", r) => {
2879
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(o)}
2880
- ${import_picocolors2.default.gray(f2)} ${t}
3115
+ }, "bt");
3116
+ var Dt = /* @__PURE__ */ __name((e = "", r) => {
3117
+ (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(u)}
3118
+ ${import_picocolors2.default.gray(_)} ${e}
2881
3119
 
2882
3120
  `);
2883
- }, "Le");
2884
- var ke = /* @__PURE__ */ __name((t) => {
2885
- const r = /* @__PURE__ */ __name((s, i) => {
2886
- const n = s.label ?? String(s.value);
2887
- return i === "active" ? `${import_picocolors2.default.cyan(L2)} ${n} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : i === "selected" ? `${import_picocolors2.default.green(O2)} ${import_picocolors2.default.dim(n)} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : i === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}` : i === "active-selected" ? `${import_picocolors2.default.green(O2)} ${n} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : i === "submitted" ? `${import_picocolors2.default.dim(n)}` : `${import_picocolors2.default.dim(k2)} ${import_picocolors2.default.dim(n)}`;
2888
- }, "r");
2889
- return new Yu({ options: t.options, input: t.input, output: t.output, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(s) {
2890
- if (this.required && s.length === 0) return `Please select at least one option.
3121
+ }, "Dt");
3122
+ var Tt = /* @__PURE__ */ __name((e) => {
3123
+ const r = /* @__PURE__ */ __name((i, n) => {
3124
+ 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)}`;
3126
+ }, "r"), s = e.required ?? true;
3127
+ 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
+ if (s && (i === void 0 || i.length === 0)) return `Please select at least one option.
2891
3129
  ${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`))}`;
2892
3130
  }, render() {
2893
- const s = `${import_picocolors2.default.gray(o)}
2894
- ${T2(this.state)} ${t.message}
2895
- `, i = /* @__PURE__ */ __name((n, a) => {
2896
- const u = this.value.includes(n.value);
2897
- return a && u ? r(n, "active-selected") : u ? r(n, "selected") : r(n, a ? "active" : "inactive");
2898
- }, "i");
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");
3136
+ }, "o");
2899
3137
  switch (this.state) {
2900
3138
  case "submit":
2901
- return `${s}${import_picocolors2.default.gray(o)} ${this.options.filter(({ value: n }) => this.value.includes(n)).map((n) => r(n, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
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")}`;
2902
3140
  case "cancel": {
2903
- const n = this.options.filter(({ value: a }) => this.value.includes(a)).map((a) => r(a, "cancelled")).join(import_picocolors2.default.dim(", "));
2904
- return `${s}${import_picocolors2.default.gray(o)} ${n.trim() ? `${n}
2905
- ${import_picocolors2.default.gray(o)}` : ""}`;
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)}` : ""}`;
2906
3144
  }
2907
3145
  case "error": {
2908
- const n = this.error.split(`
2909
- `).map((a, u) => u === 0 ? `${import_picocolors2.default.yellow(f2)} ${import_picocolors2.default.yellow(a)}` : ` ${a}`).join(`
3146
+ const c = this.error.split(`
3147
+ `).map((l, a) => a === 0 ? `${import_picocolors2.default.yellow(_)} ${import_picocolors2.default.yellow(l)}` : ` ${l}`).join(`
2910
3148
  `);
2911
- return `${s + import_picocolors2.default.yellow(o)} ${A({ output: t.output, options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: i }).join(`
2912
- ${import_picocolors2.default.yellow(o)} `)}
2913
- ${n}
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}
2914
3152
  `;
2915
3153
  }
2916
3154
  default:
2917
- return `${s}${import_picocolors2.default.cyan(o)} ${A({ output: t.output, options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: i }).join(`
2918
- ${import_picocolors2.default.cyan(o)} `)}
2919
- ${import_picocolors2.default.cyan(f2)}
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(_)}
2920
3158
  `;
2921
3159
  }
2922
3160
  } }).prompt();
2923
- }, "ke");
2924
- var J2 = /* @__PURE__ */ __name(({ indicator: t = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: a = P2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: u = P2 ? 80 : 120 } = {}) => {
2925
- const l = W();
2926
- let c2, $2, p2 = false, g = false, m2 = "", y2, d2 = performance.now();
2927
- const v = /* @__PURE__ */ __name((w) => {
2928
- const C2 = w > 1 ? n ?? c.messages.error : i ?? c.messages.cancel;
2929
- g = w === 1, p2 && (Z2(C2, w), g && typeof r == "function" && r());
2930
- }, "v"), S2 = /* @__PURE__ */ __name(() => v(2), "S"), b2 = /* @__PURE__ */ __name(() => v(1), "b"), B2 = /* @__PURE__ */ __name(() => {
2931
- process.on("uncaughtExceptionMonitor", S2), process.on("unhandledRejection", S2), process.on("SIGINT", b2), process.on("SIGTERM", b2), process.on("exit", v);
2932
- }, "B"), me = /* @__PURE__ */ __name(() => {
2933
- process.removeListener("uncaughtExceptionMonitor", S2), process.removeListener("unhandledRejection", S2), process.removeListener("SIGINT", b2), process.removeListener("SIGTERM", b2), process.removeListener("exit", v);
2934
- }, "me"), Y2 = /* @__PURE__ */ __name(() => {
2935
- if (y2 === void 0) return;
2936
- l && s.write(`
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);
3170
+ }, "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);
3172
+ }, "B"), x = /* @__PURE__ */ __name(() => {
3173
+ if (p === void 0) return;
3174
+ a && s.write(`
2937
3175
  `);
2938
- const w = y2.split(`
3176
+ const S = Fe(p, d, { hard: true, trim: false }).split(`
2939
3177
  `);
2940
- s.write(import_sisteransi2.cursor.move(-999, w.length - 1)), s.write(import_sisteransi2.erase.down(w.length));
2941
- }, "Y"), z2 = /* @__PURE__ */ __name((w) => w.replace(/\.+$/, ""), "z"), Q2 = /* @__PURE__ */ __name((w) => {
2942
- const C2 = (performance.now() - w) / 1e3, I2 = Math.floor(C2 / 60), x2 = Math.floor(C2 % 60);
2943
- return I2 > 0 ? `[${I2}m ${x2}s]` : `[${x2}s]`;
2944
- }, "Q"), de = /* @__PURE__ */ __name((w = "") => {
2945
- p2 = true, c2 = Mu({ output: s }), m2 = z2(w), d2 = performance.now(), s.write(`${import_picocolors2.default.gray(o)}
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)}
2946
3184
  `);
2947
- let C2 = 0, I2 = 0;
2948
- B2(), $2 = setInterval(() => {
2949
- if (l && m2 === y2) return;
2950
- Y2(), y2 = m2;
2951
- const x2 = import_picocolors2.default.magenta(a[C2]);
2952
- if (l) s.write(`${x2} ${m2}...`);
2953
- else if (t === "timer") s.write(`${x2} ${m2} ${Q2(d2)}`);
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)}`;
2954
3193
  else {
2955
- const he = ".".repeat(Math.floor(I2)).slice(0, 3);
2956
- s.write(`${x2} ${m2}${he}`);
2957
- }
2958
- C2 = C2 + 1 < a.length ? C2 + 1 : 0, I2 = I2 < 4 ? I2 + 0.125 : 0;
2959
- }, u);
2960
- }, "de"), Z2 = /* @__PURE__ */ __name((w = "", C2 = 0) => {
2961
- p2 = false, clearInterval($2), Y2();
2962
- const I2 = C2 === 0 ? import_picocolors2.default.green(M2) : C2 === 1 ? import_picocolors2.default.red(D) : import_picocolors2.default.red(F);
2963
- m2 = w ?? m2, t === "timer" ? s.write(`${I2} ${m2} ${Q2(d2)}
2964
- `) : s.write(`${I2} ${m2}
2965
- `), me(), c2();
2966
- }, "Z");
2967
- return { start: de, stop: Z2, message: /* @__PURE__ */ __name((w = "") => {
2968
- m2 = z2(w ?? m2);
3194
+ 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);
2969
3209
  }, "message"), get isCancelled() {
2970
- return g;
3210
+ return y2;
2971
3211
  } };
2972
- }, "J");
2973
- var $e = { light: h2("\u2500", "-"), heavy: h2("\u2501", "="), block: h2("\u2588", "#") };
2974
- var qe = /* @__PURE__ */ __name((t) => {
3212
+ }, "fe");
3213
+ var He = { light: I2("\u2500", "-"), heavy: I2("\u2501", "="), block: I2("\u2588", "#") };
3214
+ var Wt2 = /* @__PURE__ */ __name((e) => {
2975
3215
  const r = /* @__PURE__ */ __name((s, i) => {
2976
3216
  const n = s.label ?? String(s.value);
2977
3217
  switch (i) {
2978
3218
  case "selected":
2979
3219
  return `${import_picocolors2.default.dim(n)}`;
2980
3220
  case "active":
2981
- return `${import_picocolors2.default.green(j2)} ${n} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;
3221
+ return `${import_picocolors2.default.green(G2)} ${n}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint})`)}` : ""}`;
2982
3222
  case "cancelled":
2983
3223
  return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}`;
2984
3224
  default:
2985
- return `${import_picocolors2.default.dim(N2)} ${import_picocolors2.default.dim(n)}`;
3225
+ return `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(n)}`;
2986
3226
  }
2987
3227
  }, "r");
2988
- return new Xu({ options: t.options, input: t.input, output: t.output, initialValue: t.initialValue, render() {
2989
- const s = `${import_picocolors2.default.gray(o)}
2990
- ${T2(this.state)} ${t.message}
3228
+ 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}
2991
3231
  `;
2992
3232
  switch (this.state) {
2993
3233
  case "submit":
2994
- return `${s}${import_picocolors2.default.gray(o)} ${r(this.options[this.cursor], "selected")}`;
3234
+ return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "selected")}`;
2995
3235
  case "cancel":
2996
- return `${s}${import_picocolors2.default.gray(o)} ${r(this.options[this.cursor], "cancelled")}
2997
- ${import_picocolors2.default.gray(o)}`;
3236
+ return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "cancelled")}
3237
+ ${import_picocolors2.default.gray(u)}`;
2998
3238
  default:
2999
- return `${s}${import_picocolors2.default.cyan(o)} ${A({ output: t.output, cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: /* @__PURE__ */ __name((i, n) => r(i, n ? "active" : "inactive"), "style") }).join(`
3000
- ${import_picocolors2.default.cyan(o)} `)}
3001
- ${import_picocolors2.default.cyan(f2)}
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(_)}
3002
3242
  `;
3003
3243
  }
3004
3244
  } }).prompt();
3005
- }, "qe");
3006
- var pe = `${import_picocolors2.default.gray(o)} `;
3007
- var Ke = /* @__PURE__ */ __name((t) => {
3008
- const r = t.output ?? process.stdout, s = Tu(r), i = G2.gray(o), n = t.spacing ?? 1, a = 3, u = t.retainLog === true, l = W();
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);
3009
3249
  r.write(`${i}
3010
- `), r.write(`${G2.green(M2)} ${t.title}
3250
+ `), r.write(`${import_picocolors2.default.green(L2)} ${e.title}
3011
3251
  `);
3012
- for (let d2 = 0; d2 < n; d2++) r.write(`${i}
3252
+ for (let d = 0; d < n; d++) r.write(`${i}
3013
3253
  `);
3014
- let c2 = "", $2 = "", p2 = false;
3015
- const g = /* @__PURE__ */ __name((d2) => {
3016
- if (c2.length === 0) return;
3017
- const v = c2.split(`
3018
- `).reduce((S2, b2) => b2 === "" ? S2 + 1 : S2 + Math.ceil((b2.length + a) / s), 0) + 1 + (d2 ? n + 2 : 0);
3019
- r.write(import_sisteransi2.erase.lines(v));
3020
- }, "g"), m2 = /* @__PURE__ */ __name((d2, v) => {
3021
- E2.message(d2.split(`
3022
- `).map(G2.dim), { output: r, secondarySymbol: i, symbol: i, spacing: v ?? n });
3023
- }, "m"), y2 = /* @__PURE__ */ __name(() => {
3024
- u === true && $2.length > 0 ? m2(`${$2}
3025
- ${c2}`) : m2(c2);
3026
- }, "y");
3027
- return { message(d2, v) {
3028
- if (g(false), (v?.raw !== true || !p2) && c2 !== "" && (c2 += `
3029
- `), c2 += d2, p2 = v?.raw === true, t.limit !== void 0) {
3030
- const S2 = c2.split(`
3031
- `), b2 = S2.length - t.limit;
3032
- if (b2 > 0) {
3033
- const B2 = S2.splice(0, b2);
3034
- u && ($2 += ($2 === "" ? "" : `
3254
+ const a = [{ value: "", full: "" }];
3255
+ let h = false;
3256
+ const g = /* @__PURE__ */ __name((d) => {
3257
+ 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;
3262
+ let B2 = w2?.message ?? v;
3263
+ if (B2.length === 0) continue;
3264
+ w2 === void 0 && E.header !== void 0 && E.header !== "" && (B2 += `
3265
+ ${E.header}`);
3266
+ const x = B2.split(`
3267
+ `).reduce((A, C2) => C2 === "" ? A + 1 : A + Math.ceil((C2.length + o) / s), 0);
3268
+ f += x;
3269
+ }
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);
3281
+ }
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(`
3286
+ `), w2 = v.length - e.limit;
3287
+ if (w2 > 0) {
3288
+ const B2 = v.splice(0, w2);
3289
+ c && (d.full += (d.full === "" ? "" : `
3035
3290
  `) + B2.join(`
3036
3291
  `));
3037
3292
  }
3038
- c2 = S2.join(`
3293
+ d.value = v.join(`
3039
3294
  `);
3040
3295
  }
3041
- l || m2(c2, 0);
3042
- }, error(d2, v) {
3043
- g(true), E2.error(d2, { output: r, secondarySymbol: i, spacing: 1 }), v?.showLog !== false && y2(), c2 = $2 = "";
3044
- }, success(d2, v) {
3045
- g(true), E2.success(d2, { output: r, secondarySymbol: i, spacing: 1 }), v?.showLog === true && y2(), c2 = $2 = "";
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 });
3312
+ } };
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 = "";
3046
3317
  } };
3047
- }, "Ke");
3048
- var Ue = /* @__PURE__ */ __name((t) => new eD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, output: t.output, input: t.input, render() {
3049
- const r = `${import_picocolors2.default.gray(o)}
3050
- ${T2(this.state)} ${t.message}
3051
- `, s = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.value ? this.valueWithCursor : s;
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}
3322
+ `, 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 ?? "";
3052
3323
  switch (this.state) {
3053
- case "error":
3324
+ case "error": {
3325
+ const o = this.error ? ` ${import_picocolors2.default.yellow(this.error)}` : "";
3054
3326
  return `${r.trim()}
3055
- ${import_picocolors2.default.yellow(o)} ${i}
3056
- ${import_picocolors2.default.yellow(f2)} ${import_picocolors2.default.yellow(this.error)}
3327
+ ${import_picocolors2.default.yellow(u)} ${i}
3328
+ ${import_picocolors2.default.yellow(_)}${o}
3057
3329
  `;
3058
- case "submit":
3059
- return `${r}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
3060
- case "cancel":
3061
- return `${r}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
3062
- ${import_picocolors2.default.gray(o)}` : ""}`;
3330
+ }
3331
+ case "submit": {
3332
+ const o = n ? ` ${import_picocolors2.default.dim(n)}` : "";
3333
+ return `${r}${import_picocolors2.default.gray(u)}${o}`;
3334
+ }
3335
+ case "cancel": {
3336
+ 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)}` : ""}`;
3339
+ }
3063
3340
  default:
3064
- return `${r}${import_picocolors2.default.cyan(o)} ${i}
3065
- ${import_picocolors2.default.cyan(f2)}
3341
+ return `${r}${import_picocolors2.default.cyan(u)} ${i}
3342
+ ${import_picocolors2.default.cyan(_)}
3066
3343
  `;
3067
3344
  }
3068
- } }).prompt(), "Ue");
3345
+ } }).prompt(), "kt");
3069
3346
 
3070
3347
  // src/node-logger/prompts/prompt-config.ts
3071
3348
  var prompt_config_exports = {};
@@ -3182,41 +3459,41 @@ var ClackPromptProvider = class extends PromptProvider {
3182
3459
  __name(this, "ClackPromptProvider");
3183
3460
  }
3184
3461
  handleCancel(result, promptOptions) {
3185
- if (Ou(result)) {
3462
+ if (_t(result)) {
3186
3463
  if (promptOptions?.onCancel) {
3187
3464
  promptOptions.onCancel();
3188
3465
  } else {
3189
- Ne("Operation canceled.");
3466
+ xt("Operation canceled.");
3190
3467
  process.exit(0);
3191
3468
  }
3192
3469
  }
3193
3470
  }
3194
3471
  async text(options, promptOptions) {
3195
- const result = await Ue(options);
3472
+ const result = await kt2(options);
3196
3473
  this.handleCancel(result, promptOptions);
3197
3474
  logTracker.addLog("prompt", options.message, { choice: result });
3198
3475
  return result.toString();
3199
3476
  }
3200
3477
  async confirm(options, promptOptions) {
3201
- const result = await Ve(options);
3478
+ const result = await wt2(options);
3202
3479
  this.handleCancel(result, promptOptions);
3203
3480
  logTracker.addLog("prompt", options.message, { choice: result });
3204
3481
  return Boolean(result);
3205
3482
  }
3206
3483
  async select(options, promptOptions) {
3207
- const result = await qe(options);
3484
+ const result = await Wt2(options);
3208
3485
  this.handleCancel(result, promptOptions);
3209
3486
  logTracker.addLog("prompt", options.message, { choice: result });
3210
3487
  return result;
3211
3488
  }
3212
3489
  async multiselect(options, promptOptions) {
3213
- const result = await ke(options);
3490
+ const result = await Tt(options);
3214
3491
  this.handleCancel(result, promptOptions);
3215
3492
  logTracker.addLog("prompt", options.message, { choice: result });
3216
3493
  return result;
3217
3494
  }
3218
3495
  spinner(options) {
3219
- const task = J2();
3496
+ const task = fe();
3220
3497
  const spinnerId = `${options.id}-spinner`;
3221
3498
  return {
3222
3499
  start: /* @__PURE__ */ __name((message) => {
@@ -3234,7 +3511,7 @@ var ClackPromptProvider = class extends PromptProvider {
3234
3511
  };
3235
3512
  }
3236
3513
  taskLog(options) {
3237
- const task = Ke(options);
3514
+ const task = Vt2(options);
3238
3515
  const taskId = `${options.id}-task`;
3239
3516
  logTracker.addLog("info", `${taskId}-start: ${options.title}`);
3240
3517
  currentTaskLog = task;
@@ -3431,6 +3708,203 @@ var getPreferredStdio = /* @__PURE__ */ __name(() => {
3431
3708
 
3432
3709
  // src/node-logger/wrap-utils.ts
3433
3710
  var import_picocolors3 = __toESM(require_picocolors(), 1);
3711
+
3712
+ // ../node_modules/wrap-ansi/node_modules/string-width/index.js
3713
+ var import_eastasianwidth = __toESM(require_eastasianwidth(), 1);
3714
+ var import_emoji_regex = __toESM(require_emoji_regex(), 1);
3715
+ function stringWidth(string, options = {}) {
3716
+ if (typeof string !== "string" || string.length === 0) {
3717
+ return 0;
3718
+ }
3719
+ options = {
3720
+ ambiguousIsNarrow: true,
3721
+ ...options
3722
+ };
3723
+ string = stripAnsi(string);
3724
+ if (string.length === 0) {
3725
+ return 0;
3726
+ }
3727
+ string = string.replace((0, import_emoji_regex.default)(), " ");
3728
+ const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
3729
+ let width = 0;
3730
+ for (const character of string) {
3731
+ const codePoint = character.codePointAt(0);
3732
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
3733
+ continue;
3734
+ }
3735
+ if (codePoint >= 768 && codePoint <= 879) {
3736
+ continue;
3737
+ }
3738
+ const code = import_eastasianwidth.default.eastAsianWidth(character);
3739
+ switch (code) {
3740
+ case "F":
3741
+ case "W":
3742
+ width += 2;
3743
+ break;
3744
+ case "A":
3745
+ width += ambiguousCharacterWidth;
3746
+ break;
3747
+ default:
3748
+ width += 1;
3749
+ }
3750
+ }
3751
+ return width;
3752
+ }
3753
+ __name(stringWidth, "stringWidth");
3754
+
3755
+ // ../node_modules/wrap-ansi/index.js
3756
+ var ESCAPES = /* @__PURE__ */ new Set([
3757
+ "\x1B",
3758
+ "\x9B"
3759
+ ]);
3760
+ var END_CODE = 39;
3761
+ var ANSI_ESCAPE_BELL = "\x07";
3762
+ var ANSI_CSI = "[";
3763
+ var ANSI_OSC = "]";
3764
+ var ANSI_SGR_TERMINATOR = "m";
3765
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
3766
+ var wrapAnsiCode = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, "wrapAnsiCode");
3767
+ var wrapAnsiHyperlink = /* @__PURE__ */ __name((uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`, "wrapAnsiHyperlink");
3768
+ var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
3769
+ var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
3770
+ const characters = [...word];
3771
+ let isInsideEscape = false;
3772
+ let isInsideLinkEscape = false;
3773
+ let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
3774
+ for (const [index, character] of characters.entries()) {
3775
+ const characterLength = stringWidth(character);
3776
+ if (visible + characterLength <= columns) {
3777
+ rows[rows.length - 1] += character;
3778
+ } else {
3779
+ rows.push(character);
3780
+ visible = 0;
3781
+ }
3782
+ if (ESCAPES.has(character)) {
3783
+ isInsideEscape = true;
3784
+ isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
3785
+ }
3786
+ if (isInsideEscape) {
3787
+ if (isInsideLinkEscape) {
3788
+ if (character === ANSI_ESCAPE_BELL) {
3789
+ isInsideEscape = false;
3790
+ isInsideLinkEscape = false;
3791
+ }
3792
+ } else if (character === ANSI_SGR_TERMINATOR) {
3793
+ isInsideEscape = false;
3794
+ }
3795
+ continue;
3796
+ }
3797
+ visible += characterLength;
3798
+ if (visible === columns && index < characters.length - 1) {
3799
+ rows.push("");
3800
+ visible = 0;
3801
+ }
3802
+ }
3803
+ if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
3804
+ rows[rows.length - 2] += rows.pop();
3805
+ }
3806
+ }, "wrapWord");
3807
+ var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((string) => {
3808
+ const words = string.split(" ");
3809
+ let last = words.length;
3810
+ while (last > 0) {
3811
+ if (stringWidth(words[last - 1]) > 0) {
3812
+ break;
3813
+ }
3814
+ last--;
3815
+ }
3816
+ if (last === words.length) {
3817
+ return string;
3818
+ }
3819
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
3820
+ }, "stringVisibleTrimSpacesRight");
3821
+ var exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
3822
+ if (options.trim !== false && string.trim() === "") {
3823
+ return "";
3824
+ }
3825
+ let returnValue = "";
3826
+ let escapeCode;
3827
+ let escapeUrl;
3828
+ const lengths = wordLengths(string);
3829
+ let rows = [""];
3830
+ for (const [index, word] of string.split(" ").entries()) {
3831
+ if (options.trim !== false) {
3832
+ rows[rows.length - 1] = rows[rows.length - 1].trimStart();
3833
+ }
3834
+ let rowLength = stringWidth(rows[rows.length - 1]);
3835
+ if (index !== 0) {
3836
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
3837
+ rows.push("");
3838
+ rowLength = 0;
3839
+ }
3840
+ if (rowLength > 0 || options.trim === false) {
3841
+ rows[rows.length - 1] += " ";
3842
+ rowLength++;
3843
+ }
3844
+ }
3845
+ if (options.hard && lengths[index] > columns) {
3846
+ const remainingColumns = columns - rowLength;
3847
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
3848
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
3849
+ if (breaksStartingNextLine < breaksStartingThisLine) {
3850
+ rows.push("");
3851
+ }
3852
+ wrapWord(rows, word, columns);
3853
+ continue;
3854
+ }
3855
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
3856
+ if (options.wordWrap === false && rowLength < columns) {
3857
+ wrapWord(rows, word, columns);
3858
+ continue;
3859
+ }
3860
+ rows.push("");
3861
+ }
3862
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
3863
+ wrapWord(rows, word, columns);
3864
+ continue;
3865
+ }
3866
+ rows[rows.length - 1] += word;
3867
+ }
3868
+ if (options.trim !== false) {
3869
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
3870
+ }
3871
+ const pre = [...rows.join("\n")];
3872
+ for (const [index, character] of pre.entries()) {
3873
+ returnValue += character;
3874
+ if (ESCAPES.has(character)) {
3875
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
3876
+ if (groups.code !== void 0) {
3877
+ const code2 = Number.parseFloat(groups.code);
3878
+ escapeCode = code2 === END_CODE ? void 0 : code2;
3879
+ } else if (groups.uri !== void 0) {
3880
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
3881
+ }
3882
+ }
3883
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
3884
+ if (pre[index + 1] === "\n") {
3885
+ if (escapeUrl) {
3886
+ returnValue += wrapAnsiHyperlink("");
3887
+ }
3888
+ if (escapeCode && code) {
3889
+ returnValue += wrapAnsiCode(code);
3890
+ }
3891
+ } else if (character === "\n") {
3892
+ if (escapeCode && code) {
3893
+ returnValue += wrapAnsiCode(escapeCode);
3894
+ }
3895
+ if (escapeUrl) {
3896
+ returnValue += wrapAnsiHyperlink(escapeUrl);
3897
+ }
3898
+ }
3899
+ }
3900
+ return returnValue;
3901
+ }, "exec");
3902
+ function wrapAnsi(string, columns, options) {
3903
+ return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
3904
+ }
3905
+ __name(wrapAnsi, "wrapAnsi");
3906
+
3907
+ // src/node-logger/wrap-utils.ts
3434
3908
  function getTerminalWidth() {
3435
3909
  const defaultWidth = 80;
3436
3910
  try {
@@ -3442,12 +3916,12 @@ function getTerminalWidth() {
3442
3916
  __name(getTerminalWidth, "getTerminalWidth");
3443
3917
  var ANSI_REGEX = /\u001b\[[0-9;]*m|\u001b\]8;;[^\u0007]*\u0007|\u001b\]8;;\u0007/g;
3444
3918
  var URL_REGEX = /(https?:\/\/[^\s\u0000-\u001F\u007F]+)/g;
3445
- function stripAnsi(str) {
3919
+ function stripAnsi2(str) {
3446
3920
  return str.replace(ANSI_REGEX, "");
3447
3921
  }
3448
- __name(stripAnsi, "stripAnsi");
3922
+ __name(stripAnsi2, "stripAnsi");
3449
3923
  function getVisibleLength(str) {
3450
- return stripAnsi(str).length;
3924
+ return stripAnsi2(str).length;
3451
3925
  }
3452
3926
  __name(getVisibleLength, "getVisibleLength");
3453
3927
  function getEnvFromTerminal(key) {
@@ -3602,7 +4076,7 @@ function wrapTextForClackHint(text2, width, label) {
3602
4076
  if (finalLines.length <= 1) {
3603
4077
  return finalLines[0] || "";
3604
4078
  }
3605
- const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(o)) + " ".repeat(indentSpaces);
4079
+ const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
3606
4080
  return finalLines.map((line, index) => {
3607
4081
  if (index === 0) {
3608
4082
  return line;
@@ -3613,7 +4087,7 @@ function wrapTextForClackHint(text2, width, label) {
3613
4087
  if (lines.length <= 1) {
3614
4088
  return initialWrap;
3615
4089
  }
3616
- const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(o)) + " ".repeat(indentSpaces);
4090
+ const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
3617
4091
  return lines.map((line, index) => {
3618
4092
  if (index === 0) {
3619
4093
  return line;
@@ -3644,13 +4118,13 @@ var createLogFunction = /* @__PURE__ */ __name((clackFn, consoleFn) => () => isC
3644
4118
  }
3645
4119
  } : consoleFn, "createLogFunction");
3646
4120
  var LOG_FUNCTIONS = {
3647
- log: createLogFunction(E2.message, console.log),
3648
- info: createLogFunction(E2.info, console.log),
3649
- warn: createLogFunction(E2.warn, console.warn),
3650
- error: createLogFunction(E2.error, console.error),
3651
- intro: createLogFunction(Pe, console.log),
3652
- outro: createLogFunction(Le, console.log),
3653
- step: createLogFunction(E2.step, console.log)
4121
+ log: createLogFunction(b.message, console.log),
4122
+ info: createLogFunction(b.info, console.log),
4123
+ warn: createLogFunction(b.warn, console.warn),
4124
+ error: createLogFunction(b.error, console.error),
4125
+ intro: createLogFunction(bt2, console.log),
4126
+ outro: createLogFunction(Dt, console.log),
4127
+ step: createLogFunction(b.step, console.log)
3654
4128
  };
3655
4129
  var LOG_LEVELS = {
3656
4130
  trace: 1,