@rstest/core 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE.md +2 -2
  2. package/dist/{0~89.js → 0~8843.js} +49 -33
  3. package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
  4. package/dist/{0~7882.js → 0~browser~1.js} +46 -47
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
  6. package/dist/{0~130.js → 0~console.js} +15 -17
  7. package/dist/0~dist.js +1014 -0
  8. package/dist/{0~7583.js → 0~esm.js} +68 -70
  9. package/dist/{0~4403.js → 0~generate.js} +5 -6
  10. package/dist/{0~4809.js → 0~happyDom.js} +2 -2
  11. package/dist/{0~3346.js → 0~interop.js} +0 -1
  12. package/dist/{0~62.js → 0~jsdom.js} +2 -2
  13. package/dist/{0~262.js → 0~lib.js} +4 -1
  14. package/dist/{0~9634.js → 0~listTests.js} +14 -23
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +16 -8
  16. package/dist/{0~5835.js → 0~loadModule.js} +27 -14
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  19. package/dist/{0~6588.js → 0~restart.js} +7 -11
  20. package/dist/{0~2173.js → 0~runTests.js} +27 -19
  21. package/dist/{487.js → 1255.js} +22 -15
  22. package/dist/{6151.js → 1949.js} +3027 -36
  23. package/dist/{6973.js → 255.js} +7 -8
  24. package/dist/{9131.js → 3145.js} +220 -486
  25. package/dist/{1157.js → 4411.js} +35 -35
  26. package/dist/{4484.js → 5040.js} +1 -2
  27. package/dist/{3160.js → 6830.js} +396 -93
  28. package/dist/7011.js +1 -1
  29. package/dist/{1294.js → 7552.js} +28 -22
  30. package/dist/{5734.js → 7704.js} +6 -5
  31. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  32. package/dist/browser-runtime/{389.js → 723.js} +3059 -80
  33. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  34. package/dist/browser-runtime/index.js +1 -1
  35. package/dist/browser-runtime/rslib-runtime.js +11 -3
  36. package/dist/browser.js +9 -7
  37. package/dist/globalSetupWorker.js +4 -13
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +2 -2
  40. package/dist/mockRuntimeCode.js +15 -9
  41. package/dist/rslib-runtime.js +5 -8
  42. package/dist/worker.js +23 -46
  43. package/package.json +12 -10
  44. package/dist/0~1240.js +0 -951
  45. package/dist/0~1981.js +0 -2
  46. package/dist/3160.js.LICENSE.txt +0 -21
  47. package/dist/4881.js +0 -2
  48. package/dist/6198.js +0 -2
  49. package/dist/721.js +0 -8
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~esm.js.LICENSE.txt} +0 -0
  51. /package/dist/{0~3062.js → 0~utils.js} +0 -0
  52. /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
  53. /package/dist/{4597.js → 1983.js} +0 -0
  54. /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
package/dist/0~1240.js DELETED
@@ -1,951 +0,0 @@
1
- import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import node_readline, { clearLine, createInterface, emitKeypressEvents, moveCursor } from "node:readline";
4
- import { stdout, node_process, stdin } from "./3160.js";
5
- import "./721.js";
6
- import { Writable } from "./0~1981.js";
7
- __webpack_require__.add({
8
- "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js" (module) {
9
- const ESC = '\x1B';
10
- const CSI = `${ESC}[`;
11
- const beep = '\u0007';
12
- const cursor = {
13
- to (x, y) {
14
- if (!y) return `${CSI}${x + 1}G`;
15
- return `${CSI}${y + 1};${x + 1}H`;
16
- },
17
- move (x, y) {
18
- let ret = '';
19
- if (x < 0) ret += `${CSI}${-x}D`;
20
- else if (x > 0) ret += `${CSI}${x}C`;
21
- if (y < 0) ret += `${CSI}${-y}A`;
22
- else if (y > 0) ret += `${CSI}${y}B`;
23
- return ret;
24
- },
25
- up: (count = 1)=>`${CSI}${count}A`,
26
- down: (count = 1)=>`${CSI}${count}B`,
27
- forward: (count = 1)=>`${CSI}${count}C`,
28
- backward: (count = 1)=>`${CSI}${count}D`,
29
- nextLine: (count = 1)=>`${CSI}E`.repeat(count),
30
- prevLine: (count = 1)=>`${CSI}F`.repeat(count),
31
- left: `${CSI}G`,
32
- hide: `${CSI}?25l`,
33
- show: `${CSI}?25h`,
34
- save: `${ESC}7`,
35
- restore: `${ESC}8`
36
- };
37
- const scroll = {
38
- up: (count = 1)=>`${CSI}S`.repeat(count),
39
- down: (count = 1)=>`${CSI}T`.repeat(count)
40
- };
41
- const erase = {
42
- screen: `${CSI}2J`,
43
- up: (count = 1)=>`${CSI}1J`.repeat(count),
44
- down: (count = 1)=>`${CSI}J`.repeat(count),
45
- line: `${CSI}2K`,
46
- lineEnd: `${CSI}K`,
47
- lineStart: `${CSI}1K`,
48
- lines (count) {
49
- let clear = '';
50
- for(let i = 0; i < count; i++)clear += this.line + (i < count - 1 ? cursor.up() : '');
51
- if (count) clear += cursor.left;
52
- return clear;
53
- }
54
- };
55
- module.exports = {
56
- cursor,
57
- scroll,
58
- erase,
59
- beep
60
- };
61
- }
62
- });
63
- const src = __webpack_require__("../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
64
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
65
- function DD({ onlyFirst: e = !1 } = {}) {
66
- 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=><~]))";
67
- return new RegExp(t, e ? void 0 : "g");
68
- }
69
- const uD = DD();
70
- function P(e) {
71
- if ("string" != typeof e) throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
72
- return e.replace(uD, "");
73
- }
74
- function L(e) {
75
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
76
- }
77
- var W = {
78
- exports: {}
79
- };
80
- (function(e) {
81
- var u = {};
82
- e.exports = u, u.eastAsianWidth = function(F) {
83
- var s = F.charCodeAt(0), i = 2 == F.length ? F.charCodeAt(1) : 0, D = s;
84
- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), 12288 == D || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : 8361 == D || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || 172 == D || 175 == D || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : 161 == D || 164 == D || 167 <= D && D <= 168 || 170 == D || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || 198 == D || 208 == D || 215 <= D && D <= 216 || 222 <= D && D <= 225 || 230 == D || 232 <= D && D <= 234 || 236 <= D && D <= 237 || 240 == D || 242 <= D && D <= 243 || 247 <= D && D <= 250 || 252 == D || 254 == D || 257 == D || 273 == D || 275 == D || 283 == D || 294 <= D && D <= 295 || 299 == D || 305 <= D && D <= 307 || 312 == D || 319 <= D && D <= 322 || 324 == D || 328 <= D && D <= 331 || 333 == D || 338 <= D && D <= 339 || 358 <= D && D <= 359 || 363 == D || 462 == D || 464 == D || 466 == D || 468 == D || 470 == D || 472 == D || 474 == D || 476 == D || 593 == D || 609 == D || 708 == D || 711 == D || 713 <= D && D <= 715 || 717 == D || 720 == D || 728 <= D && D <= 731 || 733 == D || 735 == D || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || 1025 == D || 1040 <= D && D <= 1103 || 1105 == D || 8208 == D || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || 8240 == D || 8242 <= D && D <= 8243 || 8245 == D || 8251 == D || 8254 == D || 8308 == D || 8319 == D || 8321 <= D && D <= 8324 || 8364 == D || 8451 == D || 8453 == D || 8457 == D || 8467 == D || 8470 == D || 8481 <= D && D <= 8482 || 8486 == D || 8491 == D || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || 8585 == D || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || 8658 == D || 8660 == D || 8679 == D || 8704 == D || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || 8715 == D || 8719 == D || 8721 == D || 8725 == D || 8730 == D || 8733 <= D && D <= 8736 || 8739 == D || 8741 == D || 8743 <= D && D <= 8748 || 8750 == D || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || 8776 == D || 8780 == D || 8786 == D || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || 8853 == D || 8857 == D || 8869 == D || 8895 == D || 8978 == D || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || 9675 == D || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || 9711 == D || 9733 <= D && D <= 9734 || 9737 == D || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || 9756 == D || 9758 == D || 9792 == D || 9794 == D || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || 9839 == D || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || 9955 == D || 9960 <= D && D <= 9983 || 10045 == D || 10071 == D || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || 65533 == D || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
85
- }, u.characterLength = function(F) {
86
- var s = this.eastAsianWidth(F);
87
- return "F" == s || "W" == s || "A" == s ? 2 : 1;
88
- };
89
- function t(F) {
90
- return F.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
91
- }
92
- u.length = function(F) {
93
- for(var s = t(F), i = 0, D = 0; D < s.length; D++)i += this.characterLength(s[D]);
94
- return i;
95
- }, u.slice = function(F, s, i) {
96
- textLen = u.length(F), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
97
- for(var D = "", C = 0, n = t(F), E = 0; E < n.length; E++){
98
- var a = n[E], o = u.length(a);
99
- if (C >= s - (2 == o ? 1 : 0)) if (C + o <= i) D += a;
100
- else break;
101
- C += o;
102
- }
103
- return D;
104
- };
105
- })(W);
106
- var tD = W.exports;
107
- const eD = L(tD);
108
- var FD = function() {
109
- 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-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C\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[\uDD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F\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\u3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DCD-\uDDCF\uDDD1-\uDDDD])/g;
110
- };
111
- const sD = L(FD);
112
- function dist_p(e, u = {}) {
113
- if ("string" != typeof e || 0 === e.length || (u = {
114
- ambiguousIsNarrow: !0,
115
- ...u
116
- }, e = P(e), 0 === e.length)) return 0;
117
- e = e.replace(sD(), " ");
118
- const t = u.ambiguousIsNarrow ? 1 : 2;
119
- let F = 0;
120
- for (const s of e){
121
- const i = s.codePointAt(0);
122
- if (!(i <= 31) && (!(i >= 127) || !(i <= 159)) && (!(i >= 768) || !(i <= 879))) switch(eD.eastAsianWidth(s)){
123
- case "F":
124
- case "W":
125
- F += 2;
126
- break;
127
- case "A":
128
- F += t;
129
- break;
130
- default:
131
- F += 1;
132
- }
133
- }
134
- return F;
135
- }
136
- const dist_w = 10, dist_N = (e = 0)=>(u)=>`\x1B[${u + e}m`, dist_I = (e = 0)=>(u)=>`\x1B[${38 + e};5;${u}m`, dist_R = (e = 0)=>(u, t, F)=>`\x1B[${38 + e};2;${u};${t};${F}m`, dist_r = {
137
- modifier: {
138
- reset: [
139
- 0,
140
- 0
141
- ],
142
- bold: [
143
- 1,
144
- 22
145
- ],
146
- dim: [
147
- 2,
148
- 22
149
- ],
150
- italic: [
151
- 3,
152
- 23
153
- ],
154
- underline: [
155
- 4,
156
- 24
157
- ],
158
- overline: [
159
- 53,
160
- 55
161
- ],
162
- inverse: [
163
- 7,
164
- 27
165
- ],
166
- hidden: [
167
- 8,
168
- 28
169
- ],
170
- strikethrough: [
171
- 9,
172
- 29
173
- ]
174
- },
175
- color: {
176
- black: [
177
- 30,
178
- 39
179
- ],
180
- red: [
181
- 31,
182
- 39
183
- ],
184
- green: [
185
- 32,
186
- 39
187
- ],
188
- yellow: [
189
- 33,
190
- 39
191
- ],
192
- blue: [
193
- 34,
194
- 39
195
- ],
196
- magenta: [
197
- 35,
198
- 39
199
- ],
200
- cyan: [
201
- 36,
202
- 39
203
- ],
204
- white: [
205
- 37,
206
- 39
207
- ],
208
- blackBright: [
209
- 90,
210
- 39
211
- ],
212
- gray: [
213
- 90,
214
- 39
215
- ],
216
- grey: [
217
- 90,
218
- 39
219
- ],
220
- redBright: [
221
- 91,
222
- 39
223
- ],
224
- greenBright: [
225
- 92,
226
- 39
227
- ],
228
- yellowBright: [
229
- 93,
230
- 39
231
- ],
232
- blueBright: [
233
- 94,
234
- 39
235
- ],
236
- magentaBright: [
237
- 95,
238
- 39
239
- ],
240
- cyanBright: [
241
- 96,
242
- 39
243
- ],
244
- whiteBright: [
245
- 97,
246
- 39
247
- ]
248
- },
249
- bgColor: {
250
- bgBlack: [
251
- 40,
252
- 49
253
- ],
254
- bgRed: [
255
- 41,
256
- 49
257
- ],
258
- bgGreen: [
259
- 42,
260
- 49
261
- ],
262
- bgYellow: [
263
- 43,
264
- 49
265
- ],
266
- bgBlue: [
267
- 44,
268
- 49
269
- ],
270
- bgMagenta: [
271
- 45,
272
- 49
273
- ],
274
- bgCyan: [
275
- 46,
276
- 49
277
- ],
278
- bgWhite: [
279
- 47,
280
- 49
281
- ],
282
- bgBlackBright: [
283
- 100,
284
- 49
285
- ],
286
- bgGray: [
287
- 100,
288
- 49
289
- ],
290
- bgGrey: [
291
- 100,
292
- 49
293
- ],
294
- bgRedBright: [
295
- 101,
296
- 49
297
- ],
298
- bgGreenBright: [
299
- 102,
300
- 49
301
- ],
302
- bgYellowBright: [
303
- 103,
304
- 49
305
- ],
306
- bgBlueBright: [
307
- 104,
308
- 49
309
- ],
310
- bgMagentaBright: [
311
- 105,
312
- 49
313
- ],
314
- bgCyanBright: [
315
- 106,
316
- 49
317
- ],
318
- bgWhiteBright: [
319
- 107,
320
- 49
321
- ]
322
- }
323
- };
324
- Object.keys(dist_r.modifier);
325
- const iD = Object.keys(dist_r.color), CD = Object.keys(dist_r.bgColor);
326
- [
327
- ...iD,
328
- ...CD
329
- ];
330
- function rD() {
331
- const e = new Map;
332
- for (const [u, t] of Object.entries(dist_r)){
333
- for (const [F, s] of Object.entries(t))dist_r[F] = {
334
- open: `\x1B[${s[0]}m`,
335
- close: `\x1B[${s[1]}m`
336
- }, t[F] = dist_r[F], e.set(s[0], s[1]);
337
- Object.defineProperty(dist_r, u, {
338
- value: t,
339
- enumerable: !1
340
- });
341
- }
342
- return Object.defineProperty(dist_r, "codes", {
343
- value: e,
344
- enumerable: !1
345
- }), dist_r.color.close = "\x1B[39m", dist_r.bgColor.close = "\x1B[49m", dist_r.color.ansi = dist_N(), dist_r.color.ansi256 = dist_I(), dist_r.color.ansi16m = dist_R(), dist_r.bgColor.ansi = dist_N(dist_w), dist_r.bgColor.ansi256 = dist_I(dist_w), dist_r.bgColor.ansi16m = dist_R(dist_w), Object.defineProperties(dist_r, {
346
- rgbToAnsi256: {
347
- value: (u, t, F)=>u === t && t === F ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F / 255 * 5),
348
- enumerable: !1
349
- },
350
- hexToRgb: {
351
- value: (u)=>{
352
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
353
- if (!t) return [
354
- 0,
355
- 0,
356
- 0
357
- ];
358
- let [F] = t;
359
- 3 === F.length && (F = [
360
- ...F
361
- ].map((i)=>i + i).join(""));
362
- const s = Number.parseInt(F, 16);
363
- return [
364
- s >> 16 & 255,
365
- s >> 8 & 255,
366
- 255 & s
367
- ];
368
- },
369
- enumerable: !1
370
- },
371
- hexToAnsi256: {
372
- value: (u)=>dist_r.rgbToAnsi256(...dist_r.hexToRgb(u)),
373
- enumerable: !1
374
- },
375
- ansi256ToAnsi: {
376
- value: (u)=>{
377
- if (u < 8) return 30 + u;
378
- if (u < 16) return 90 + (u - 8);
379
- let t, F, s;
380
- if (u >= 232) t = ((u - 232) * 10 + 8) / 255, F = t, s = t;
381
- else {
382
- u -= 16;
383
- const C = u % 36;
384
- t = Math.floor(u / 36) / 5, F = Math.floor(C / 6) / 5, s = C % 6 / 5;
385
- }
386
- const i = 2 * Math.max(t, F, s);
387
- if (0 === i) return 30;
388
- let D = 30 + (Math.round(s) << 2 | Math.round(F) << 1 | Math.round(t));
389
- return 2 === i && (D += 60), D;
390
- },
391
- enumerable: !1
392
- },
393
- rgbToAnsi: {
394
- value: (u, t, F)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u, t, F)),
395
- enumerable: !1
396
- },
397
- hexToAnsi: {
398
- value: (u)=>dist_r.ansi256ToAnsi(dist_r.hexToAnsi256(u)),
399
- enumerable: !1
400
- }
401
- }), dist_r;
402
- }
403
- const ED = rD(), d = new Set([
404
- "\x1B",
405
- "\x9B"
406
- ]), oD = 39, y = "\x07", V = "[", nD = "]", G = "m", _ = `${nD}8;;`, dist_z = (e)=>`${d.values().next().value}${V}${e}${G}`, K = (e)=>`${d.values().next().value}${_}${e}${y}`, aD = (e)=>e.split(" ").map((u)=>dist_p(u)), k = (e, u, t)=>{
407
- const F = [
408
- ...u
409
- ];
410
- let s = !1, i = !1, D = dist_p(P(e[e.length - 1]));
411
- for (const [C, n] of F.entries()){
412
- const E = dist_p(n);
413
- if (D + E <= t ? e[e.length - 1] += n : (e.push(n), D = 0), d.has(n) && (s = !0, i = F.slice(C + 1).join("").startsWith(_)), s) {
414
- i ? n === y && (s = !1, i = !1) : n === G && (s = !1);
415
- continue;
416
- }
417
- D += E, D === t && C < F.length - 1 && (e.push(""), D = 0);
418
- }
419
- !D && e[e.length - 1].length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
420
- }, hD = (e)=>{
421
- const u = e.split(" ");
422
- let t = u.length;
423
- for(; t > 0 && !(dist_p(u[t - 1]) > 0);)t--;
424
- return t === u.length ? e : u.slice(0, t).join(" ") + u.slice(t).join("");
425
- }, lD = (e, u, t = {})=>{
426
- if (!1 !== t.trim && "" === e.trim()) return "";
427
- let F = "", s, i;
428
- const D = aD(e);
429
- let C = [
430
- ""
431
- ];
432
- for (const [E, a] of e.split(" ").entries()){
433
- !1 !== t.trim && (C[C.length - 1] = C[C.length - 1].trimStart());
434
- let o = dist_p(C[C.length - 1]);
435
- if (0 !== E && (o >= u && (!1 === t.wordWrap || !1 === t.trim) && (C.push(""), o = 0), (o > 0 || !1 === t.trim) && (C[C.length - 1] += " ", o++)), t.hard && D[E] > u) {
436
- const c = u - o, f = 1 + Math.floor((D[E] - c - 1) / u);
437
- Math.floor((D[E] - 1) / u) < f && C.push(""), k(C, a, u);
438
- continue;
439
- }
440
- if (o + D[E] > u && o > 0 && D[E] > 0) {
441
- if (!1 === t.wordWrap && o < u) {
442
- k(C, a, u);
443
- continue;
444
- }
445
- C.push("");
446
- }
447
- if (o + D[E] > u && !1 === t.wordWrap) {
448
- k(C, a, u);
449
- continue;
450
- }
451
- C[C.length - 1] += a;
452
- }
453
- !1 !== t.trim && (C = C.map((E)=>hD(E)));
454
- const n = [
455
- ...C.join(`
456
- `)
457
- ];
458
- for (const [E, a] of n.entries()){
459
- if (F += a, d.has(a)) {
460
- const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || {
461
- groups: {}
462
- };
463
- if (void 0 !== c.code) {
464
- const f = Number.parseFloat(c.code);
465
- s = f === oD ? void 0 : f;
466
- } else void 0 !== c.uri && (i = 0 === c.uri.length ? void 0 : c.uri);
467
- }
468
- const o = ED.codes.get(Number(s));
469
- n[E + 1] === `
470
- ` ? (i && (F += K("")), s && o && (F += dist_z(o))) : a === `
471
- ` && (s && o && (F += dist_z(s)), i && (F += K(i)));
472
- }
473
- return F;
474
- };
475
- function Y(e, u, t) {
476
- return String(e).normalize().replace(/\r\n/g, `
477
- `).split(`
478
- `).map((F)=>lD(F, u, t)).join(`
479
- `);
480
- }
481
- const xD = [
482
- "up",
483
- "down",
484
- "left",
485
- "right",
486
- "space",
487
- "enter",
488
- "cancel"
489
- ], dist_B = {
490
- actions: new Set(xD),
491
- aliases: new Map([
492
- [
493
- "k",
494
- "up"
495
- ],
496
- [
497
- "j",
498
- "down"
499
- ],
500
- [
501
- "h",
502
- "left"
503
- ],
504
- [
505
- "l",
506
- "right"
507
- ],
508
- [
509
- "",
510
- "cancel"
511
- ],
512
- [
513
- "escape",
514
- "cancel"
515
- ]
516
- ])
517
- };
518
- function dist_$(e, u) {
519
- if ("string" == typeof e) return dist_B.aliases.get(e) === u;
520
- for (const t of e)if (void 0 !== t && dist_$(t, u)) return !0;
521
- return !1;
522
- }
523
- function BD(e, u) {
524
- if (e === u) return;
525
- const t = e.split(`
526
- `), F = u.split(`
527
- `), s = [];
528
- for(let i = 0; i < Math.max(t.length, F.length); i++)t[i] !== F[i] && s.push(i);
529
- return s;
530
- }
531
- const AD = globalThis.process.platform.startsWith("win"), dist_S = Symbol("clack:cancel");
532
- function pD(e) {
533
- return e === dist_S;
534
- }
535
- function dist_m(e, u) {
536
- const t = e;
537
- t.isTTY && t.setRawMode(u);
538
- }
539
- function fD({ input: e = stdin, output: u = stdout, overwrite: t = !0, hideCursor: F = !0 } = {}) {
540
- const s = createInterface({
541
- input: e,
542
- output: u,
543
- prompt: "",
544
- tabSize: 1
545
- });
546
- emitKeypressEvents(e, s), e.isTTY && e.setRawMode(!0);
547
- const i = (D, { name: C, sequence: n })=>{
548
- const E = String(D);
549
- if (dist_$([
550
- E,
551
- C,
552
- n
553
- ], "cancel")) {
554
- F && u.write(src.cursor.show), process.exit(0);
555
- return;
556
- }
557
- if (!t) return;
558
- const a = "return" === C ? 0 : -1, o = "return" === C ? -1 : 0;
559
- moveCursor(u, a, o, ()=>{
560
- clearLine(u, 1, ()=>{
561
- e.once("keypress", i);
562
- });
563
- });
564
- };
565
- return F && u.write(src.cursor.hide), e.once("keypress", i), ()=>{
566
- e.off("keypress", i), F && u.write(src.cursor.show), e.isTTY && !AD && e.setRawMode(!1), s.terminal = !1, s.close();
567
- };
568
- }
569
- var gD = Object.defineProperty, vD = (e, u, t)=>u in e ? gD(e, u, {
570
- enumerable: !0,
571
- configurable: !0,
572
- writable: !0,
573
- value: t
574
- }) : e[u] = t, dist_h = (e, u, t)=>(vD(e, "symbol" != typeof u ? u + "" : u, t), t);
575
- class x {
576
- constructor(u, t = !0){
577
- dist_h(this, "input"), dist_h(this, "output"), dist_h(this, "_abortSignal"), dist_h(this, "rl"), dist_h(this, "opts"), dist_h(this, "_render"), dist_h(this, "_track", !1), dist_h(this, "_prevFrame", ""), dist_h(this, "_subscribers", new Map), dist_h(this, "_cursor", 0), dist_h(this, "state", "initial"), dist_h(this, "error", ""), dist_h(this, "value");
578
- const { input: F = stdin, output: s = stdout, render: i, signal: D, ...C } = u;
579
- this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D, this.input = F, this.output = s;
580
- }
581
- unsubscribe() {
582
- this._subscribers.clear();
583
- }
584
- setSubscriber(u, t) {
585
- const F = this._subscribers.get(u) ?? [];
586
- F.push(t), this._subscribers.set(u, F);
587
- }
588
- on(u, t) {
589
- this.setSubscriber(u, {
590
- cb: t
591
- });
592
- }
593
- once(u, t) {
594
- this.setSubscriber(u, {
595
- cb: t,
596
- once: !0
597
- });
598
- }
599
- emit(u, ...t) {
600
- const F = this._subscribers.get(u) ?? [], s = [];
601
- for (const i of F)i.cb(...t), i.once && s.push(()=>F.splice(F.indexOf(i), 1));
602
- for (const i of s)i();
603
- }
604
- prompt() {
605
- return new Promise((u, t)=>{
606
- if (this._abortSignal) {
607
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u(dist_S);
608
- this._abortSignal.addEventListener("abort", ()=>{
609
- this.state = "cancel", this.close();
610
- }, {
611
- once: !0
612
- });
613
- }
614
- const F = new Writable;
615
- F._write = (s, i, D)=>{
616
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
617
- }, this.input.pipe(F), this.rl = node_readline.createInterface({
618
- input: this.input,
619
- output: F,
620
- tabSize: 2,
621
- prompt: "",
622
- escapeCodeTimeout: 50,
623
- terminal: !0
624
- }), node_readline.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), void 0 !== this.opts.initialValue && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), dist_m(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", ()=>{
625
- this.output.write(src.cursor.show), this.output.off("resize", this.render), dist_m(this.input, !1), u(this.value);
626
- }), this.once("cancel", ()=>{
627
- this.output.write(src.cursor.show), this.output.off("resize", this.render), dist_m(this.input, !1), u(dist_S);
628
- });
629
- });
630
- }
631
- onKeypress(u, t) {
632
- if ("error" === this.state && (this.state = "active"), t?.name && (!this._track && dist_B.aliases.has(t.name) && this.emit("cursor", dist_B.aliases.get(t.name)), dist_B.actions.has(t.name) && this.emit("cursor", t.name)), u && ("y" === u.toLowerCase() || "n" === u.toLowerCase()) && this.emit("confirm", "y" === u.toLowerCase()), " " === u && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), t?.name === "return") {
633
- if (this.opts.validate) {
634
- const F = this.opts.validate(this.value);
635
- F && (this.error = F instanceof Error ? F.message : F, this.state = "error", this.rl?.write(this.value));
636
- }
637
- "error" !== this.state && (this.state = "submit");
638
- }
639
- dist_$([
640
- u,
641
- t?.name,
642
- t?.sequence
643
- ], "cancel") && (this.state = "cancel"), ("submit" === this.state || "cancel" === this.state) && this.emit("finalize"), this.render(), ("submit" === this.state || "cancel" === this.state) && this.close();
644
- }
645
- close() {
646
- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
647
- `), dist_m(this.input, !1), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
648
- }
649
- restoreCursor() {
650
- const u = Y(this._prevFrame, process.stdout.columns, {
651
- hard: !0
652
- }).split(`
653
- `).length - 1;
654
- this.output.write(src.cursor.move(-999, -1 * u));
655
- }
656
- render() {
657
- const u = Y(this._render(this) ?? "", process.stdout.columns, {
658
- hard: !0
659
- });
660
- if (u !== this._prevFrame) {
661
- if ("initial" === this.state) this.output.write(src.cursor.hide);
662
- else {
663
- const t = BD(this._prevFrame, u);
664
- if (this.restoreCursor(), t && t?.length === 1) {
665
- const F = t[0];
666
- this.output.write(src.cursor.move(0, F)), this.output.write(src.erase.lines(1));
667
- const s = u.split(`
668
- `);
669
- this.output.write(s[F]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - F - 1));
670
- return;
671
- }
672
- if (t && t?.length > 1) {
673
- const F = t[0];
674
- this.output.write(src.cursor.move(0, F)), this.output.write(src.erase.down());
675
- const s = u.split(`
676
- `).slice(F);
677
- this.output.write(s.join(`
678
- `)), this._prevFrame = u;
679
- return;
680
- }
681
- this.output.write(src.erase.down());
682
- }
683
- this.output.write(u), "initial" === this.state && (this.state = "active"), this._prevFrame = u;
684
- }
685
- }
686
- }
687
- class dD extends x {
688
- get cursor() {
689
- return this.value ? 0 : 1;
690
- }
691
- get _value() {
692
- return 0 === this.cursor;
693
- }
694
- constructor(u){
695
- super(u, !1), this.value = !!u.initialValue, this.on("value", ()=>{
696
- this.value = this._value;
697
- }), this.on("confirm", (t)=>{
698
- this.output.write(src.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
699
- }), this.on("cursor", ()=>{
700
- this.value = !this.value;
701
- });
702
- }
703
- }
704
- new WeakMap;
705
- var OD = Object.defineProperty, PD = (e, u, t)=>u in e ? OD(e, u, {
706
- enumerable: !0,
707
- configurable: !0,
708
- writable: !0,
709
- value: t
710
- }) : e[u] = t, J = (e, u, t)=>(PD(e, "symbol" != typeof u ? u + "" : u, t), t);
711
- class LD extends x {
712
- constructor(u){
713
- super(u, !1), J(this, "options"), J(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: t })=>t === u.initialValue), -1 === this.cursor && (this.cursor = 0), this.changeValue(), this.on("cursor", (t)=>{
714
- switch(t){
715
- case "left":
716
- case "up":
717
- this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
718
- break;
719
- case "down":
720
- case "right":
721
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
722
- break;
723
- }
724
- this.changeValue();
725
- });
726
- }
727
- get _value() {
728
- return this.options[this.cursor];
729
- }
730
- changeValue() {
731
- this.value = this._value.value;
732
- }
733
- }
734
- const external_node_util_ = __webpack_require__("node:util");
735
- function ce() {
736
- return "win32" !== node_process.platform ? "linux" !== node_process.env.TERM : !!node_process.env.CI || !!node_process.env.WT_SESSION || !!node_process.env.TERMINUS_SUBLIME || "{cmd::Cmder}" === node_process.env.ConEmuTask || "Terminus-Sublime" === node_process.env.TERM_PROGRAM || "vscode" === node_process.env.TERM_PROGRAM || "xterm-256color" === node_process.env.TERM || "alacritty" === node_process.env.TERM || "JetBrains-JediTerm" === node_process.env.TERMINAL_EMULATOR;
737
- }
738
- const dist_V = ce(), dist_u = (t, n)=>dist_V ? t : n, le = dist_u("\u25C6", "*"), dist_L = dist_u("\u25A0", "x"), dist_W = dist_u("\u25B2", "x"), dist_C = dist_u("\u25C7", "o"), ue = dist_u("\u250C", "T"), dist_o = dist_u("\u2502", "|"), dist_d = dist_u("\u2514", "\u2014"), dist_k = dist_u("\u25CF", ">"), dist_P = dist_u("\u25CB", " "), dist_ = (dist_u("\u25FB", "[\u2022]"), dist_u("\u25FC", "[+]"), dist_u("\u25FB", "[ ]"), dist_u("\u25AA", "\u2022"), dist_u("\u2500", "-")), me = dist_u("\u256E", "+"), de = dist_u("\u251C", "+"), pe = dist_u("\u256F", "+"), dist_q = dist_u("\u25CF", "\u2022"), dist_D = dist_u("\u25C6", "*"), dist_U = dist_u("\u25B2", "!"), dist_K = dist_u("\u25A0", "x"), b = (t)=>{
739
- switch(t){
740
- case "initial":
741
- case "active":
742
- return picocolors.cyan(le);
743
- case "cancel":
744
- return picocolors.red(dist_L);
745
- case "error":
746
- return picocolors.yellow(dist_W);
747
- case "submit":
748
- return picocolors.green(dist_C);
749
- }
750
- }, dist_G = (t)=>{
751
- const { cursor: n, options: r, style: i } = t, s = t.maxItems ?? 1 / 0, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
752
- let l = 0;
753
- n >= l + a - 3 ? l = Math.max(Math.min(n - a + 3, r.length - a), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
754
- const $ = a < r.length && l > 0, g = a < r.length && l + a < r.length;
755
- return r.slice(l, l + a).map((p, v, f)=>{
756
- const j = 0 === v && $, E = v === f.length - 1 && g;
757
- return j || E ? picocolors.dim("...") : i(p, v + l === n);
758
- });
759
- }, ye = (t)=>{
760
- const n = t.active ?? "Yes", r = t.inactive ?? "No";
761
- return new dD({
762
- active: n,
763
- inactive: r,
764
- initialValue: t.initialValue ?? !0,
765
- render () {
766
- const i = `${picocolors.gray(dist_o)}
767
- ${b(this.state)} ${t.message}
768
- `, s = this.value ? n : r;
769
- switch(this.state){
770
- case "submit":
771
- return `${i}${picocolors.gray(dist_o)} ${picocolors.dim(s)}`;
772
- case "cancel":
773
- return `${i}${picocolors.gray(dist_o)} ${picocolors.strikethrough(picocolors.dim(s))}
774
- ${picocolors.gray(dist_o)}`;
775
- default:
776
- return `${i}${picocolors.cyan(dist_o)} ${this.value ? `${picocolors.green(dist_k)} ${n}` : `${picocolors.dim(dist_P)} ${picocolors.dim(n)}`} ${picocolors.dim("/")} ${this.value ? `${picocolors.dim(dist_P)} ${picocolors.dim(r)}` : `${picocolors.green(dist_k)} ${r}`}
777
- ${picocolors.cyan(dist_d)}
778
- `;
779
- }
780
- }
781
- }).prompt();
782
- }, ve = (t)=>{
783
- const n = (r, i)=>{
784
- const s = r.label ?? String(r.value);
785
- switch(i){
786
- case "selected":
787
- return `${picocolors.dim(s)}`;
788
- case "active":
789
- return `${picocolors.green(dist_k)} ${s} ${r.hint ? picocolors.dim(`(${r.hint})`) : ""}`;
790
- case "cancelled":
791
- return `${picocolors.strikethrough(picocolors.dim(s))}`;
792
- default:
793
- return `${picocolors.dim(dist_P)} ${picocolors.dim(s)}`;
794
- }
795
- };
796
- return new LD({
797
- options: t.options,
798
- initialValue: t.initialValue,
799
- render () {
800
- const r = `${picocolors.gray(dist_o)}
801
- ${b(this.state)} ${t.message}
802
- `;
803
- switch(this.state){
804
- case "submit":
805
- return `${r}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "selected")}`;
806
- case "cancel":
807
- return `${r}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "cancelled")}
808
- ${picocolors.gray(dist_o)}`;
809
- default:
810
- return `${r}${picocolors.cyan(dist_o)} ${dist_G({
811
- cursor: this.cursor,
812
- options: this.options,
813
- maxItems: t.maxItems,
814
- style: (i, s)=>n(i, s ? "active" : "inactive")
815
- }).join(`
816
- ${picocolors.cyan(dist_o)} `)}
817
- ${picocolors.cyan(dist_d)}
818
- `;
819
- }
820
- }
821
- }).prompt();
822
- }, Me = (t = "", n = "")=>{
823
- const r = `
824
- ${t}
825
- `.split(`
826
- `), i = (0, external_node_util_.stripVTControlCharacters)(n).length, s = Math.max(r.reduce((a, l)=>{
827
- const $ = (0, external_node_util_.stripVTControlCharacters)(l);
828
- return $.length > a ? $.length : a;
829
- }, 0), i) + 2, c = r.map((a)=>`${picocolors.gray(dist_o)} ${picocolors.dim(a)}${" ".repeat(s - (0, external_node_util_.stripVTControlCharacters)(a).length)}${picocolors.gray(dist_o)}`).join(`
830
- `);
831
- process.stdout.write(`${picocolors.gray(dist_o)}
832
- ${picocolors.green(dist_C)} ${picocolors.reset(n)} ${picocolors.gray(dist_.repeat(Math.max(s - i - 1, 1)) + me)}
833
- ${c}
834
- ${picocolors.gray(de + dist_.repeat(s + 2) + pe)}
835
- `);
836
- }, xe = (t = "")=>{
837
- process.stdout.write(`${picocolors.gray(dist_d)} ${picocolors.red(t)}
838
-
839
- `);
840
- }, Ie = (t = "")=>{
841
- process.stdout.write(`${picocolors.gray(ue)} ${t}
842
- `);
843
- }, Se = (t = "")=>{
844
- process.stdout.write(`${picocolors.gray(dist_o)}
845
- ${picocolors.gray(dist_d)} ${t}
846
-
847
- `);
848
- }, M = {
849
- message: (t = "", { symbol: n = picocolors.gray(dist_o) } = {})=>{
850
- const r = [
851
- `${picocolors.gray(dist_o)}`
852
- ];
853
- if (t) {
854
- const [i, ...s] = t.split(`
855
- `);
856
- r.push(`${n} ${i}`, ...s.map((c)=>`${picocolors.gray(dist_o)} ${c}`));
857
- }
858
- process.stdout.write(`${r.join(`
859
- `)}
860
- `);
861
- },
862
- info: (t)=>{
863
- M.message(t, {
864
- symbol: picocolors.blue(dist_q)
865
- });
866
- },
867
- success: (t)=>{
868
- M.message(t, {
869
- symbol: picocolors.green(dist_D)
870
- });
871
- },
872
- step: (t)=>{
873
- M.message(t, {
874
- symbol: picocolors.green(dist_C)
875
- });
876
- },
877
- warn: (t)=>{
878
- M.message(t, {
879
- symbol: picocolors.yellow(dist_U)
880
- });
881
- },
882
- warning: (t)=>{
883
- M.warn(t);
884
- },
885
- error: (t)=>{
886
- M.message(t, {
887
- symbol: picocolors.red(dist_K)
888
- });
889
- }
890
- }, dist_Y = (picocolors.gray(dist_o), ({ indicator: t = "dots" } = {})=>{
891
- const n = dist_V ? [
892
- "\u25D2",
893
- "\u25D0",
894
- "\u25D3",
895
- "\u25D1"
896
- ] : [
897
- "\u2022",
898
- "o",
899
- "O",
900
- "0"
901
- ], r = dist_V ? 80 : 120, i = "true" === process.env.CI;
902
- let s, c, a = !1, l = "", $, g = performance.now();
903
- const p = (m)=>{
904
- const h = m > 1 ? "Something went wrong" : "Canceled";
905
- a && N(h, m);
906
- }, v = ()=>p(2), f = ()=>p(1), j = ()=>{
907
- process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p);
908
- }, E = ()=>{
909
- process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p);
910
- }, B = ()=>{
911
- if (void 0 === $) return;
912
- i && process.stdout.write(`
913
- `);
914
- const m = $.split(`
915
- `);
916
- process.stdout.write(src.cursor.move(-999, m.length - 1)), process.stdout.write(src.erase.down(m.length));
917
- }, R = (m)=>m.replace(/\.+$/, ""), O = (m)=>{
918
- const h = (performance.now() - m) / 1e3, w = Math.floor(h / 60), I = Math.floor(h % 60);
919
- return w > 0 ? `[${w}m ${I}s]` : `[${I}s]`;
920
- }, H = (m = "")=>{
921
- a = !0, s = fD(), l = R(m), g = performance.now(), process.stdout.write(`${picocolors.gray(dist_o)}
922
- `);
923
- let h = 0, w = 0;
924
- j(), c = setInterval(()=>{
925
- if (i && l === $) return;
926
- B(), $ = l;
927
- const I = picocolors.magenta(n[h]);
928
- if (i) process.stdout.write(`${I} ${l}...`);
929
- else if ("timer" === t) process.stdout.write(`${I} ${l} ${O(g)}`);
930
- else {
931
- const z = ".".repeat(Math.floor(w)).slice(0, 3);
932
- process.stdout.write(`${I} ${l}${z}`);
933
- }
934
- h = h + 1 < n.length ? h + 1 : 0, w = w < n.length ? w + .125 : 0;
935
- }, r);
936
- }, N = (m = "", h = 0)=>{
937
- a = !1, clearInterval(c), B();
938
- const w = 0 === h ? picocolors.green(dist_C) : 1 === h ? picocolors.red(dist_L) : picocolors.red(dist_W);
939
- l = R(m ?? l), "timer" === t ? process.stdout.write(`${w} ${l} ${O(g)}
940
- `) : process.stdout.write(`${w} ${l}
941
- `), E(), s();
942
- };
943
- return {
944
- start: H,
945
- stop: N,
946
- message: (m = "")=>{
947
- l = R(m ?? l);
948
- }
949
- };
950
- });
951
- export { Ie, M, Me, Se, dist_Y, pD, ve, xe, ye };