@vltpkg/cli-js 0.0.0-7

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 (128) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +10 -0
  3. package/cache-unzip-src-unzip.js +7896 -0
  4. package/cache-unzip-src-unzip.js.map +7 -0
  5. package/chunk-36Z4IEW5.js +1010 -0
  6. package/chunk-36Z4IEW5.js.map +7 -0
  7. package/chunk-433RK6QP.js +72 -0
  8. package/chunk-433RK6QP.js.map +7 -0
  9. package/chunk-457WPPV5.js +969 -0
  10. package/chunk-457WPPV5.js.map +7 -0
  11. package/chunk-66GJ6BNX.js +2666 -0
  12. package/chunk-66GJ6BNX.js.map +7 -0
  13. package/chunk-AYOLWFFJ.js +10972 -0
  14. package/chunk-AYOLWFFJ.js.map +7 -0
  15. package/chunk-GQLKOYXI.js +1451 -0
  16. package/chunk-GQLKOYXI.js.map +7 -0
  17. package/chunk-GU2E2KHZ.js +152 -0
  18. package/chunk-GU2E2KHZ.js.map +7 -0
  19. package/chunk-H75RQSUK.js +5413 -0
  20. package/chunk-H75RQSUK.js.map +7 -0
  21. package/chunk-LJEVKV7R.js +36 -0
  22. package/chunk-LJEVKV7R.js.map +7 -0
  23. package/chunk-MF4RCNHU.js +71 -0
  24. package/chunk-MF4RCNHU.js.map +7 -0
  25. package/chunk-NM754OFF.js +1104 -0
  26. package/chunk-NM754OFF.js.map +7 -0
  27. package/chunk-OGUMFXHI.js +1136 -0
  28. package/chunk-OGUMFXHI.js.map +7 -0
  29. package/chunk-OKDQY2GQ.js +1866 -0
  30. package/chunk-OKDQY2GQ.js.map +7 -0
  31. package/chunk-OOZN2US4.js +61 -0
  32. package/chunk-OOZN2US4.js.map +7 -0
  33. package/chunk-OSVOPGNL.js +782 -0
  34. package/chunk-OSVOPGNL.js.map +7 -0
  35. package/chunk-PKKWJ5FM.js +11836 -0
  36. package/chunk-PKKWJ5FM.js.map +7 -0
  37. package/chunk-PPTEV6PS.js +27 -0
  38. package/chunk-PPTEV6PS.js.map +7 -0
  39. package/chunk-S7LRSSDW.js +40 -0
  40. package/chunk-S7LRSSDW.js.map +7 -0
  41. package/chunk-SJZXAMQQ.js +5233 -0
  42. package/chunk-SJZXAMQQ.js.map +7 -0
  43. package/chunk-TV2RDGWY.js +181 -0
  44. package/chunk-TV2RDGWY.js.map +7 -0
  45. package/chunk-V4TLWRQW.js +34 -0
  46. package/chunk-V4TLWRQW.js.map +7 -0
  47. package/chunk-VIE5PVDF.js +21788 -0
  48. package/chunk-VIE5PVDF.js.map +7 -0
  49. package/chunk-VO2MAWDF.js +53 -0
  50. package/chunk-VO2MAWDF.js.map +7 -0
  51. package/chunk-XCC42LF5.js +511 -0
  52. package/chunk-XCC42LF5.js.map +7 -0
  53. package/chunk-YS3ZYKCN.js +6499 -0
  54. package/chunk-YS3ZYKCN.js.map +7 -0
  55. package/chunk-ZLP22ACI.js +65 -0
  56. package/chunk-ZLP22ACI.js.map +7 -0
  57. package/chunk-ZSTAQQQN.js +2070 -0
  58. package/chunk-ZSTAQQQN.js.map +7 -0
  59. package/cli-package.json +104 -0
  60. package/config-M6ZTMEJC.js +184 -0
  61. package/config-M6ZTMEJC.js.map +7 -0
  62. package/devtools-PSS6DSS6.js +16681 -0
  63. package/devtools-PSS6DSS6.js.map +7 -0
  64. package/exec-5Q6ZP6JI.js +48 -0
  65. package/exec-5Q6ZP6JI.js.map +7 -0
  66. package/gui-667EH2M7.js +44 -0
  67. package/gui-667EH2M7.js.map +7 -0
  68. package/gui-assets/favicon.ico +0 -0
  69. package/gui-assets/fonts/courier-bold-italic.ttf +0 -0
  70. package/gui-assets/fonts/courier-bold.ttf +0 -0
  71. package/gui-assets/fonts/courier-italic.ttf +0 -0
  72. package/gui-assets/fonts/courier-regular.ttf +0 -0
  73. package/gui-assets/fonts/geist-mono.ttf +0 -0
  74. package/gui-assets/fonts/inter.ttf +0 -0
  75. package/gui-assets/images/folder.png +0 -0
  76. package/gui-assets/index.html +34 -0
  77. package/gui-assets/index.js +1573 -0
  78. package/gui-assets/index.js.map +7 -0
  79. package/gui-assets/main.css +1 -0
  80. package/help-JZ3VD6MH.js +24 -0
  81. package/help-JZ3VD6MH.js.map +7 -0
  82. package/init-4JOBGJ4C.js +24 -0
  83. package/init-4JOBGJ4C.js.map +7 -0
  84. package/install-I6UDMAKJ.js +53 -0
  85. package/install-I6UDMAKJ.js.map +7 -0
  86. package/install-exec-BGKORQDZ.js +27 -0
  87. package/install-exec-BGKORQDZ.js.map +7 -0
  88. package/list-NKJNNDAV.js +138 -0
  89. package/list-NKJNNDAV.js.map +7 -0
  90. package/login-5X5JKFYS.js +35 -0
  91. package/login-5X5JKFYS.js.map +7 -0
  92. package/logout-5NO6B4BW.js +35 -0
  93. package/logout-5NO6B4BW.js.map +7 -0
  94. package/package.json +25 -0
  95. package/pkg-CUX23YND.js +363 -0
  96. package/pkg-CUX23YND.js.map +7 -0
  97. package/query-XWAQ6U4O.js +126 -0
  98. package/query-XWAQ6U4O.js.map +7 -0
  99. package/registry-client-package.json +84 -0
  100. package/reporter-GV7DMKAK.js +17 -0
  101. package/reporter-GV7DMKAK.js.map +7 -0
  102. package/rollback-remove-src-remove.js +7397 -0
  103. package/rollback-remove-src-remove.js.map +7 -0
  104. package/run-GJDCKL7X.js +66 -0
  105. package/run-GJDCKL7X.js.map +7 -0
  106. package/run-exec-L3RGBBPL.js +39 -0
  107. package/run-exec-L3RGBBPL.js.map +7 -0
  108. package/source-ALZ2QHEZ.js +32 -0
  109. package/source-ALZ2QHEZ.js.map +7 -0
  110. package/src-XRLOORCU.js +92 -0
  111. package/src-XRLOORCU.js.map +7 -0
  112. package/token-JLM4D6QR.js +85 -0
  113. package/token-JLM4D6QR.js.map +7 -0
  114. package/uninstall-X72YAQHZ.js +53 -0
  115. package/uninstall-X72YAQHZ.js.map +7 -0
  116. package/vlix.js +13 -0
  117. package/vlix.js.map +7 -0
  118. package/vlr.js +13 -0
  119. package/vlr.js.map +7 -0
  120. package/vlrx.js +13 -0
  121. package/vlrx.js.map +7 -0
  122. package/vlt.js +13 -0
  123. package/vlt.js.map +7 -0
  124. package/vlx.js +13 -0
  125. package/vlx.js.map +7 -0
  126. package/whoami-CMKBD6ZT.js +45 -0
  127. package/whoami-CMKBD6ZT.js.map +7 -0
  128. package/yoga.wasm +0 -0
@@ -0,0 +1,2070 @@
1
+ var global = globalThis;
2
+ import {setTimeout,clearTimeout,setImmediate,clearImmediate,setInterval,clearInterval} from "node:timers";
3
+ import {createRequire as _vlt_createRequire} from "node:module";
4
+ var require = _vlt_createRequire(import.meta.filename);
5
+ import {
6
+ __commonJS,
7
+ __toESM
8
+ } from "./chunk-VO2MAWDF.js";
9
+
10
+ // ../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js
11
+ var require_eastasianwidth = __commonJS({
12
+ "../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js"(exports, module) {
13
+ var eaw = {};
14
+ if ("undefined" == typeof module) {
15
+ window.eastasianwidth = eaw;
16
+ } else {
17
+ module.exports = eaw;
18
+ }
19
+ eaw.eastAsianWidth = function(character) {
20
+ var x = character.charCodeAt(0);
21
+ var y = character.length == 2 ? character.charCodeAt(1) : 0;
22
+ var codePoint = x;
23
+ if (55296 <= x && x <= 56319 && (56320 <= y && y <= 57343)) {
24
+ x &= 1023;
25
+ y &= 1023;
26
+ codePoint = x << 10 | y;
27
+ codePoint += 65536;
28
+ }
29
+ if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
30
+ return "F";
31
+ }
32
+ 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) {
33
+ return "H";
34
+ }
35
+ 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) {
36
+ return "W";
37
+ }
38
+ 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) {
39
+ return "Na";
40
+ }
41
+ 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) {
42
+ return "A";
43
+ }
44
+ return "N";
45
+ };
46
+ eaw.characterLength = function(character) {
47
+ var code = this.eastAsianWidth(character);
48
+ if (code == "F" || code == "W" || code == "A") {
49
+ return 2;
50
+ } else {
51
+ return 1;
52
+ }
53
+ };
54
+ function stringToArray(string) {
55
+ return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
56
+ }
57
+ eaw.length = function(string) {
58
+ var characters = stringToArray(string);
59
+ var len = 0;
60
+ for (var i = 0; i < characters.length; i++) {
61
+ len = len + this.characterLength(characters[i]);
62
+ }
63
+ return len;
64
+ };
65
+ eaw.slice = function(text, start, end) {
66
+ textLen = eaw.length(text);
67
+ start = start ? start : 0;
68
+ end = end ? end : 1;
69
+ if (start < 0) {
70
+ start = textLen + start;
71
+ }
72
+ if (end < 0) {
73
+ end = textLen + end;
74
+ }
75
+ var result = "";
76
+ var eawLen = 0;
77
+ var chars = stringToArray(text);
78
+ for (var i = 0; i < chars.length; i++) {
79
+ var char = chars[i];
80
+ var charLen = eaw.length(char);
81
+ if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
82
+ if (eawLen + charLen <= end) {
83
+ result += char;
84
+ } else {
85
+ break;
86
+ }
87
+ }
88
+ eawLen += charLen;
89
+ }
90
+ return result;
91
+ };
92
+ }
93
+ });
94
+
95
+ // ../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js
96
+ var require_emoji_regex = __commonJS({
97
+ "../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js"(exports, module) {
98
+ "use strict";
99
+ module.exports = function() {
100
+ 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;
101
+ };
102
+ }
103
+ });
104
+
105
+ // ../../src/xdg/src/index.ts
106
+ import { homedir, tmpdir } from "node:os";
107
+ import { resolve } from "node:path";
108
+ var root = homedir();
109
+ var path = (p) => resolve(root, p);
110
+ var defaults = process.platform === "darwin" ? (which) => {
111
+ switch (which) {
112
+ case "config":
113
+ return path("Library/Preferences");
114
+ case "cache":
115
+ return path("Library/Caches");
116
+ case "data":
117
+ return path("Library/Application Support");
118
+ case "state":
119
+ return path("Library/State");
120
+ case "runtime":
121
+ return resolve(
122
+ tmpdir(),
123
+ /* c8 ignore next */
124
+ String(process.getuid?.() ?? ""),
125
+ ".run"
126
+ );
127
+ }
128
+ } : process.platform === "win32" ? (which) => {
129
+ const ad = process.env.APPDATA ?? path("AppData/Roaming");
130
+ const lad = process.env.LOCALAPPDATA ?? path("AppData/Local");
131
+ switch (which) {
132
+ case "config":
133
+ return resolve(ad, "xdg.config");
134
+ case "cache":
135
+ return resolve(lad, "xdg.cache");
136
+ case "data":
137
+ return resolve(ad, "xdg.data");
138
+ case "state":
139
+ return resolve(lad, "xdg.state");
140
+ case "runtime":
141
+ return resolve(tmpdir(), "xdg.run");
142
+ }
143
+ } : (which) => {
144
+ switch (which) {
145
+ case "config":
146
+ return path(".config");
147
+ case "cache":
148
+ return path(".cache");
149
+ case "data":
150
+ return path(".local/share");
151
+ case "state":
152
+ return path(".local/state");
153
+ case "runtime":
154
+ return resolve(
155
+ tmpdir(),
156
+ /* c8 ignore next */
157
+ String(process.getuid?.() ?? ""),
158
+ ".run"
159
+ );
160
+ }
161
+ };
162
+ var {
163
+ XDG_CONFIG_HOME = defaults("config"),
164
+ XDG_CACHE_HOME = defaults("cache"),
165
+ XDG_DATA_HOME = defaults("data"),
166
+ XDG_STATE_HOME = defaults("state"),
167
+ XDG_RUNTIME_DIR = defaults("runtime")
168
+ } = process.env;
169
+ var XDG = class {
170
+ name;
171
+ base = {
172
+ config: XDG_CONFIG_HOME,
173
+ cache: XDG_CACHE_HOME,
174
+ data: XDG_DATA_HOME,
175
+ state: XDG_STATE_HOME,
176
+ runtime: XDG_RUNTIME_DIR
177
+ };
178
+ constructor(name) {
179
+ this.name = name;
180
+ }
181
+ config(p = "") {
182
+ return resolve(this.base.config, this.name, p);
183
+ }
184
+ cache(p = "") {
185
+ return resolve(this.base.cache, this.name, p);
186
+ }
187
+ data(p = "") {
188
+ return resolve(this.base.data, this.name, p);
189
+ }
190
+ state(p = "") {
191
+ return resolve(this.base.state, this.name, p);
192
+ }
193
+ runtime(p = "") {
194
+ return resolve(this.base.runtime, this.name, p);
195
+ }
196
+ };
197
+
198
+ // ../../node_modules/.pnpm/jackspeak@4.0.3/node_modules/jackspeak/dist/esm/index.js
199
+ import { inspect, parseArgs } from "node:util";
200
+
201
+ // ../../node_modules/.pnpm/@isaacs+cliui@8.0.2/node_modules/@isaacs/cliui/build/lib/index.js
202
+ var align = {
203
+ right: alignRight,
204
+ center: alignCenter
205
+ };
206
+ var top = 0;
207
+ var right = 1;
208
+ var bottom = 2;
209
+ var left = 3;
210
+ var UI = class {
211
+ constructor(opts) {
212
+ var _a;
213
+ this.width = opts.width;
214
+ this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
215
+ this.rows = [];
216
+ }
217
+ span(...args) {
218
+ const cols = this.div(...args);
219
+ cols.span = true;
220
+ }
221
+ resetOutput() {
222
+ this.rows = [];
223
+ }
224
+ div(...args) {
225
+ if (args.length === 0) {
226
+ this.div("");
227
+ }
228
+ if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === "string") {
229
+ return this.applyLayoutDSL(args[0]);
230
+ }
231
+ const cols = args.map((arg) => {
232
+ if (typeof arg === "string") {
233
+ return this.colFromString(arg);
234
+ }
235
+ return arg;
236
+ });
237
+ this.rows.push(cols);
238
+ return cols;
239
+ }
240
+ shouldApplyLayoutDSL(...args) {
241
+ return args.length === 1 && typeof args[0] === "string" && /[\t\n]/.test(args[0]);
242
+ }
243
+ applyLayoutDSL(str) {
244
+ const rows = str.split("\n").map((row) => row.split(" "));
245
+ let leftColumnWidth = 0;
246
+ rows.forEach((columns) => {
247
+ if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
248
+ leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
249
+ }
250
+ });
251
+ rows.forEach((columns) => {
252
+ this.div(...columns.map((r, i) => {
253
+ return {
254
+ text: r.trim(),
255
+ padding: this.measurePadding(r),
256
+ width: i === 0 && columns.length > 1 ? leftColumnWidth : void 0
257
+ };
258
+ }));
259
+ });
260
+ return this.rows[this.rows.length - 1];
261
+ }
262
+ colFromString(text) {
263
+ return {
264
+ text,
265
+ padding: this.measurePadding(text)
266
+ };
267
+ }
268
+ measurePadding(str) {
269
+ const noAnsi = mixin.stripAnsi(str);
270
+ return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
271
+ }
272
+ toString() {
273
+ const lines = [];
274
+ this.rows.forEach((row) => {
275
+ this.rowToString(row, lines);
276
+ });
277
+ return lines.filter((line) => !line.hidden).map((line) => line.text).join("\n");
278
+ }
279
+ rowToString(row, lines) {
280
+ this.rasterize(row).forEach((rrow, r) => {
281
+ let str = "";
282
+ rrow.forEach((col, c) => {
283
+ const { width: width2 } = row[c];
284
+ const wrapWidth = this.negatePadding(row[c]);
285
+ let ts = col;
286
+ if (wrapWidth > mixin.stringWidth(col)) {
287
+ ts += " ".repeat(wrapWidth - mixin.stringWidth(col));
288
+ }
289
+ if (row[c].align && row[c].align !== "left" && this.wrap) {
290
+ const fn = align[row[c].align];
291
+ ts = fn(ts, wrapWidth);
292
+ if (mixin.stringWidth(ts) < wrapWidth) {
293
+ const w = width2 || 0;
294
+ ts += " ".repeat(w - mixin.stringWidth(ts) - 1);
295
+ }
296
+ }
297
+ const padding = row[c].padding || [0, 0, 0, 0];
298
+ if (padding[left]) {
299
+ str += " ".repeat(padding[left]);
300
+ }
301
+ str += addBorder(row[c], ts, "| ");
302
+ str += ts;
303
+ str += addBorder(row[c], ts, " |");
304
+ if (padding[right]) {
305
+ str += " ".repeat(padding[right]);
306
+ }
307
+ if (r === 0 && lines.length > 0) {
308
+ str = this.renderInline(str, lines[lines.length - 1]);
309
+ }
310
+ });
311
+ lines.push({
312
+ text: str.replace(/ +$/, ""),
313
+ span: row.span
314
+ });
315
+ });
316
+ return lines;
317
+ }
318
+ // if the full 'source' can render in
319
+ // the target line, do so.
320
+ renderInline(source, previousLine) {
321
+ const match = source.match(/^ */);
322
+ const leadingWhitespace = match ? match[0].length : 0;
323
+ const target = previousLine.text;
324
+ const targetTextWidth = mixin.stringWidth(target.trimEnd());
325
+ if (!previousLine.span) {
326
+ return source;
327
+ }
328
+ if (!this.wrap) {
329
+ previousLine.hidden = true;
330
+ return target + source;
331
+ }
332
+ if (leadingWhitespace < targetTextWidth) {
333
+ return source;
334
+ }
335
+ previousLine.hidden = true;
336
+ return target.trimEnd() + " ".repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
337
+ }
338
+ rasterize(row) {
339
+ const rrows = [];
340
+ const widths = this.columnWidths(row);
341
+ let wrapped;
342
+ row.forEach((col, c) => {
343
+ col.width = widths[c];
344
+ if (this.wrap) {
345
+ wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split("\n");
346
+ } else {
347
+ wrapped = col.text.split("\n");
348
+ }
349
+ if (col.border) {
350
+ wrapped.unshift("." + "-".repeat(this.negatePadding(col) + 2) + ".");
351
+ wrapped.push("'" + "-".repeat(this.negatePadding(col) + 2) + "'");
352
+ }
353
+ if (col.padding) {
354
+ wrapped.unshift(...new Array(col.padding[top] || 0).fill(""));
355
+ wrapped.push(...new Array(col.padding[bottom] || 0).fill(""));
356
+ }
357
+ wrapped.forEach((str, r) => {
358
+ if (!rrows[r]) {
359
+ rrows.push([]);
360
+ }
361
+ const rrow = rrows[r];
362
+ for (let i = 0; i < c; i++) {
363
+ if (rrow[i] === void 0) {
364
+ rrow.push("");
365
+ }
366
+ }
367
+ rrow.push(str);
368
+ });
369
+ });
370
+ return rrows;
371
+ }
372
+ negatePadding(col) {
373
+ let wrapWidth = col.width || 0;
374
+ if (col.padding) {
375
+ wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
376
+ }
377
+ if (col.border) {
378
+ wrapWidth -= 4;
379
+ }
380
+ return wrapWidth;
381
+ }
382
+ columnWidths(row) {
383
+ if (!this.wrap) {
384
+ return row.map((col) => {
385
+ return col.width || mixin.stringWidth(col.text);
386
+ });
387
+ }
388
+ let unset = row.length;
389
+ let remainingWidth = this.width;
390
+ const widths = row.map((col) => {
391
+ if (col.width) {
392
+ unset--;
393
+ remainingWidth -= col.width;
394
+ return col.width;
395
+ }
396
+ return void 0;
397
+ });
398
+ const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
399
+ return widths.map((w, i) => {
400
+ if (w === void 0) {
401
+ return Math.max(unsetWidth, _minWidth(row[i]));
402
+ }
403
+ return w;
404
+ });
405
+ }
406
+ };
407
+ function addBorder(col, ts, style) {
408
+ if (col.border) {
409
+ if (/[.']-+[.']/.test(ts)) {
410
+ return "";
411
+ }
412
+ if (ts.trim().length !== 0) {
413
+ return style;
414
+ }
415
+ return " ";
416
+ }
417
+ return "";
418
+ }
419
+ function _minWidth(col) {
420
+ const padding = col.padding || [];
421
+ const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
422
+ if (col.border) {
423
+ return minWidth + 4;
424
+ }
425
+ return minWidth;
426
+ }
427
+ function getWindowWidth() {
428
+ if (typeof process === "object" && process.stdout && process.stdout.columns) {
429
+ return process.stdout.columns;
430
+ }
431
+ return 80;
432
+ }
433
+ function alignRight(str, width2) {
434
+ str = str.trim();
435
+ const strWidth = mixin.stringWidth(str);
436
+ if (strWidth < width2) {
437
+ return " ".repeat(width2 - strWidth) + str;
438
+ }
439
+ return str;
440
+ }
441
+ function alignCenter(str, width2) {
442
+ str = str.trim();
443
+ const strWidth = mixin.stringWidth(str);
444
+ if (strWidth >= width2) {
445
+ return str;
446
+ }
447
+ return " ".repeat(width2 - strWidth >> 1) + str;
448
+ }
449
+ var mixin;
450
+ function cliui(opts, _mixin) {
451
+ mixin = _mixin;
452
+ return new UI({
453
+ /* c8 ignore start */
454
+ width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
455
+ wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
456
+ /* c8 ignore stop */
457
+ });
458
+ }
459
+
460
+ // ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
461
+ function ansiRegex({ onlyFirst = false } = {}) {
462
+ const pattern = [
463
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
464
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
465
+ ].join("|");
466
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
467
+ }
468
+
469
+ // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
470
+ var regex = ansiRegex();
471
+ function stripAnsi(string) {
472
+ if (typeof string !== "string") {
473
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
474
+ }
475
+ return string.replace(regex, "");
476
+ }
477
+
478
+ // ../../node_modules/.pnpm/string-width@5.1.2/node_modules/string-width/index.js
479
+ var import_eastasianwidth = __toESM(require_eastasianwidth(), 1);
480
+ var import_emoji_regex = __toESM(require_emoji_regex(), 1);
481
+ function stringWidth(string, options = {}) {
482
+ if (typeof string !== "string" || string.length === 0) {
483
+ return 0;
484
+ }
485
+ options = {
486
+ ambiguousIsNarrow: true,
487
+ ...options
488
+ };
489
+ string = stripAnsi(string);
490
+ if (string.length === 0) {
491
+ return 0;
492
+ }
493
+ string = string.replace((0, import_emoji_regex.default)(), " ");
494
+ const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
495
+ let width2 = 0;
496
+ for (const character of string) {
497
+ const codePoint = character.codePointAt(0);
498
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
499
+ continue;
500
+ }
501
+ if (codePoint >= 768 && codePoint <= 879) {
502
+ continue;
503
+ }
504
+ const code = import_eastasianwidth.default.eastAsianWidth(character);
505
+ switch (code) {
506
+ case "F":
507
+ case "W":
508
+ width2 += 2;
509
+ break;
510
+ case "A":
511
+ width2 += ambiguousCharacterWidth;
512
+ break;
513
+ default:
514
+ width2 += 1;
515
+ }
516
+ }
517
+ return width2;
518
+ }
519
+
520
+ // ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
521
+ var ANSI_BACKGROUND_OFFSET = 10;
522
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
523
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
524
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
525
+ var styles = {
526
+ modifier: {
527
+ reset: [0, 0],
528
+ // 21 isn't widely supported and 22 does the same thing
529
+ bold: [1, 22],
530
+ dim: [2, 22],
531
+ italic: [3, 23],
532
+ underline: [4, 24],
533
+ overline: [53, 55],
534
+ inverse: [7, 27],
535
+ hidden: [8, 28],
536
+ strikethrough: [9, 29]
537
+ },
538
+ color: {
539
+ black: [30, 39],
540
+ red: [31, 39],
541
+ green: [32, 39],
542
+ yellow: [33, 39],
543
+ blue: [34, 39],
544
+ magenta: [35, 39],
545
+ cyan: [36, 39],
546
+ white: [37, 39],
547
+ // Bright color
548
+ blackBright: [90, 39],
549
+ gray: [90, 39],
550
+ // Alias of `blackBright`
551
+ grey: [90, 39],
552
+ // Alias of `blackBright`
553
+ redBright: [91, 39],
554
+ greenBright: [92, 39],
555
+ yellowBright: [93, 39],
556
+ blueBright: [94, 39],
557
+ magentaBright: [95, 39],
558
+ cyanBright: [96, 39],
559
+ whiteBright: [97, 39]
560
+ },
561
+ bgColor: {
562
+ bgBlack: [40, 49],
563
+ bgRed: [41, 49],
564
+ bgGreen: [42, 49],
565
+ bgYellow: [43, 49],
566
+ bgBlue: [44, 49],
567
+ bgMagenta: [45, 49],
568
+ bgCyan: [46, 49],
569
+ bgWhite: [47, 49],
570
+ // Bright color
571
+ bgBlackBright: [100, 49],
572
+ bgGray: [100, 49],
573
+ // Alias of `bgBlackBright`
574
+ bgGrey: [100, 49],
575
+ // Alias of `bgBlackBright`
576
+ bgRedBright: [101, 49],
577
+ bgGreenBright: [102, 49],
578
+ bgYellowBright: [103, 49],
579
+ bgBlueBright: [104, 49],
580
+ bgMagentaBright: [105, 49],
581
+ bgCyanBright: [106, 49],
582
+ bgWhiteBright: [107, 49]
583
+ }
584
+ };
585
+ var modifierNames = Object.keys(styles.modifier);
586
+ var foregroundColorNames = Object.keys(styles.color);
587
+ var backgroundColorNames = Object.keys(styles.bgColor);
588
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
589
+ function assembleStyles() {
590
+ const codes = /* @__PURE__ */ new Map();
591
+ for (const [groupName, group] of Object.entries(styles)) {
592
+ for (const [styleName, style] of Object.entries(group)) {
593
+ styles[styleName] = {
594
+ open: `\x1B[${style[0]}m`,
595
+ close: `\x1B[${style[1]}m`
596
+ };
597
+ group[styleName] = styles[styleName];
598
+ codes.set(style[0], style[1]);
599
+ }
600
+ Object.defineProperty(styles, groupName, {
601
+ value: group,
602
+ enumerable: false
603
+ });
604
+ }
605
+ Object.defineProperty(styles, "codes", {
606
+ value: codes,
607
+ enumerable: false
608
+ });
609
+ styles.color.close = "\x1B[39m";
610
+ styles.bgColor.close = "\x1B[49m";
611
+ styles.color.ansi = wrapAnsi16();
612
+ styles.color.ansi256 = wrapAnsi256();
613
+ styles.color.ansi16m = wrapAnsi16m();
614
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
615
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
616
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
617
+ Object.defineProperties(styles, {
618
+ rgbToAnsi256: {
619
+ value: (red, green, blue) => {
620
+ if (red === green && green === blue) {
621
+ if (red < 8) {
622
+ return 16;
623
+ }
624
+ if (red > 248) {
625
+ return 231;
626
+ }
627
+ return Math.round((red - 8) / 247 * 24) + 232;
628
+ }
629
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
630
+ },
631
+ enumerable: false
632
+ },
633
+ hexToRgb: {
634
+ value: (hex) => {
635
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
636
+ if (!matches) {
637
+ return [0, 0, 0];
638
+ }
639
+ let [colorString] = matches;
640
+ if (colorString.length === 3) {
641
+ colorString = [...colorString].map((character) => character + character).join("");
642
+ }
643
+ const integer = Number.parseInt(colorString, 16);
644
+ return [
645
+ /* eslint-disable no-bitwise */
646
+ integer >> 16 & 255,
647
+ integer >> 8 & 255,
648
+ integer & 255
649
+ /* eslint-enable no-bitwise */
650
+ ];
651
+ },
652
+ enumerable: false
653
+ },
654
+ hexToAnsi256: {
655
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
656
+ enumerable: false
657
+ },
658
+ ansi256ToAnsi: {
659
+ value: (code) => {
660
+ if (code < 8) {
661
+ return 30 + code;
662
+ }
663
+ if (code < 16) {
664
+ return 90 + (code - 8);
665
+ }
666
+ let red;
667
+ let green;
668
+ let blue;
669
+ if (code >= 232) {
670
+ red = ((code - 232) * 10 + 8) / 255;
671
+ green = red;
672
+ blue = red;
673
+ } else {
674
+ code -= 16;
675
+ const remainder = code % 36;
676
+ red = Math.floor(code / 36) / 5;
677
+ green = Math.floor(remainder / 6) / 5;
678
+ blue = remainder % 6 / 5;
679
+ }
680
+ const value = Math.max(red, green, blue) * 2;
681
+ if (value === 0) {
682
+ return 30;
683
+ }
684
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
685
+ if (value === 2) {
686
+ result += 60;
687
+ }
688
+ return result;
689
+ },
690
+ enumerable: false
691
+ },
692
+ rgbToAnsi: {
693
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
694
+ enumerable: false
695
+ },
696
+ hexToAnsi: {
697
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
698
+ enumerable: false
699
+ }
700
+ });
701
+ return styles;
702
+ }
703
+ var ansiStyles = assembleStyles();
704
+ var ansi_styles_default = ansiStyles;
705
+
706
+ // ../../node_modules/.pnpm/wrap-ansi@8.1.0/node_modules/wrap-ansi/index.js
707
+ var ESCAPES = /* @__PURE__ */ new Set([
708
+ "\x1B",
709
+ "\x9B"
710
+ ]);
711
+ var END_CODE = 39;
712
+ var ANSI_ESCAPE_BELL = "\x07";
713
+ var ANSI_CSI = "[";
714
+ var ANSI_OSC = "]";
715
+ var ANSI_SGR_TERMINATOR = "m";
716
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
717
+ var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
718
+ var wrapAnsiHyperlink = (uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`;
719
+ var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
720
+ var wrapWord = (rows, word, columns) => {
721
+ const characters = [...word];
722
+ let isInsideEscape = false;
723
+ let isInsideLinkEscape = false;
724
+ let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
725
+ for (const [index, character] of characters.entries()) {
726
+ const characterLength = stringWidth(character);
727
+ if (visible + characterLength <= columns) {
728
+ rows[rows.length - 1] += character;
729
+ } else {
730
+ rows.push(character);
731
+ visible = 0;
732
+ }
733
+ if (ESCAPES.has(character)) {
734
+ isInsideEscape = true;
735
+ isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
736
+ }
737
+ if (isInsideEscape) {
738
+ if (isInsideLinkEscape) {
739
+ if (character === ANSI_ESCAPE_BELL) {
740
+ isInsideEscape = false;
741
+ isInsideLinkEscape = false;
742
+ }
743
+ } else if (character === ANSI_SGR_TERMINATOR) {
744
+ isInsideEscape = false;
745
+ }
746
+ continue;
747
+ }
748
+ visible += characterLength;
749
+ if (visible === columns && index < characters.length - 1) {
750
+ rows.push("");
751
+ visible = 0;
752
+ }
753
+ }
754
+ if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
755
+ rows[rows.length - 2] += rows.pop();
756
+ }
757
+ };
758
+ var stringVisibleTrimSpacesRight = (string) => {
759
+ const words = string.split(" ");
760
+ let last = words.length;
761
+ while (last > 0) {
762
+ if (stringWidth(words[last - 1]) > 0) {
763
+ break;
764
+ }
765
+ last--;
766
+ }
767
+ if (last === words.length) {
768
+ return string;
769
+ }
770
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
771
+ };
772
+ var exec = (string, columns, options = {}) => {
773
+ if (options.trim !== false && string.trim() === "") {
774
+ return "";
775
+ }
776
+ let returnValue = "";
777
+ let escapeCode;
778
+ let escapeUrl;
779
+ const lengths = wordLengths(string);
780
+ let rows = [""];
781
+ for (const [index, word] of string.split(" ").entries()) {
782
+ if (options.trim !== false) {
783
+ rows[rows.length - 1] = rows[rows.length - 1].trimStart();
784
+ }
785
+ let rowLength = stringWidth(rows[rows.length - 1]);
786
+ if (index !== 0) {
787
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
788
+ rows.push("");
789
+ rowLength = 0;
790
+ }
791
+ if (rowLength > 0 || options.trim === false) {
792
+ rows[rows.length - 1] += " ";
793
+ rowLength++;
794
+ }
795
+ }
796
+ if (options.hard && lengths[index] > columns) {
797
+ const remainingColumns = columns - rowLength;
798
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
799
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
800
+ if (breaksStartingNextLine < breaksStartingThisLine) {
801
+ rows.push("");
802
+ }
803
+ wrapWord(rows, word, columns);
804
+ continue;
805
+ }
806
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
807
+ if (options.wordWrap === false && rowLength < columns) {
808
+ wrapWord(rows, word, columns);
809
+ continue;
810
+ }
811
+ rows.push("");
812
+ }
813
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
814
+ wrapWord(rows, word, columns);
815
+ continue;
816
+ }
817
+ rows[rows.length - 1] += word;
818
+ }
819
+ if (options.trim !== false) {
820
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
821
+ }
822
+ const pre = [...rows.join("\n")];
823
+ for (const [index, character] of pre.entries()) {
824
+ returnValue += character;
825
+ if (ESCAPES.has(character)) {
826
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
827
+ if (groups.code !== void 0) {
828
+ const code2 = Number.parseFloat(groups.code);
829
+ escapeCode = code2 === END_CODE ? void 0 : code2;
830
+ } else if (groups.uri !== void 0) {
831
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
832
+ }
833
+ }
834
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
835
+ if (pre[index + 1] === "\n") {
836
+ if (escapeUrl) {
837
+ returnValue += wrapAnsiHyperlink("");
838
+ }
839
+ if (escapeCode && code) {
840
+ returnValue += wrapAnsiCode(code);
841
+ }
842
+ } else if (character === "\n") {
843
+ if (escapeCode && code) {
844
+ returnValue += wrapAnsiCode(escapeCode);
845
+ }
846
+ if (escapeUrl) {
847
+ returnValue += wrapAnsiHyperlink(escapeUrl);
848
+ }
849
+ }
850
+ }
851
+ return returnValue;
852
+ };
853
+ function wrapAnsi(string, columns, options) {
854
+ return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
855
+ }
856
+
857
+ // ../../node_modules/.pnpm/@isaacs+cliui@8.0.2/node_modules/@isaacs/cliui/index.mjs
858
+ function ui(opts) {
859
+ return cliui(opts, {
860
+ stringWidth,
861
+ stripAnsi,
862
+ wrap: wrapAnsi
863
+ });
864
+ }
865
+
866
+ // ../../node_modules/.pnpm/jackspeak@4.0.3/node_modules/jackspeak/dist/esm/index.js
867
+ import { basename } from "node:path";
868
+ var isConfigType = (t) => typeof t === "string" && (t === "string" || t === "number" || t === "boolean");
869
+ var isValidValue = (v, type, multi) => {
870
+ if (multi) {
871
+ if (!Array.isArray(v))
872
+ return false;
873
+ return !v.some((v2) => !isValidValue(v2, type, false));
874
+ }
875
+ if (Array.isArray(v))
876
+ return false;
877
+ return typeof v === type;
878
+ };
879
+ var isValidOption = (v, vo) => !!vo && (Array.isArray(v) ? v.every((x) => isValidOption(x, vo)) : vo.includes(v));
880
+ var isConfigOptionOfType = (o, type, multi) => !!o && typeof o === "object" && isConfigType(o.type) && o.type === type && !!o.multiple === multi;
881
+ var isConfigOption = (o, type, multi) => isConfigOptionOfType(o, type, multi) && undefOrType(o.short, "string") && undefOrType(o.description, "string") && undefOrType(o.hint, "string") && undefOrType(o.validate, "function") && (o.type === "boolean" ? o.validOptions === void 0 : undefOrTypeArray(o.validOptions, o.type)) && (o.default === void 0 || isValidValue(o.default, type, multi));
882
+ var isHeading = (r) => r.type === "heading";
883
+ var isDescription = (r) => r.type === "description";
884
+ var width = Math.min(process?.stdout?.columns ?? 80, 80);
885
+ var indent = (n) => (n - 1) * 2;
886
+ var toEnvKey = (pref, key) => [pref, key.replace(/[^a-zA-Z0-9]+/g, " ")].join(" ").trim().toUpperCase().replace(/ /g, "_");
887
+ var toEnvVal = (value, delim = "\n") => {
888
+ const str = typeof value === "string" ? value : typeof value === "boolean" ? value ? "1" : "0" : typeof value === "number" ? String(value) : Array.isArray(value) ? value.map((v) => toEnvVal(v)).join(delim) : (
889
+ /* c8 ignore start */
890
+ void 0
891
+ );
892
+ if (typeof str !== "string") {
893
+ throw new Error(`could not serialize value to environment: ${JSON.stringify(value)}`, { cause: { code: "JACKSPEAK" } });
894
+ }
895
+ return str;
896
+ };
897
+ var fromEnvVal = (env, type, multiple, delim = "\n") => multiple ? env ? env.split(delim).map((v) => fromEnvVal(v, type, false)) : [] : type === "string" ? env : type === "boolean" ? env === "1" : +env.trim();
898
+ var undefOrType = (v, t) => v === void 0 || typeof v === t;
899
+ var undefOrTypeArray = (v, t) => v === void 0 || Array.isArray(v) && v.every((x) => typeof x === t);
900
+ var valueType = (v) => typeof v === "string" ? "string" : typeof v === "boolean" ? "boolean" : typeof v === "number" ? "number" : Array.isArray(v) ? `${joinTypes([...new Set(v.map((v2) => valueType(v2)))])}[]` : `${v.type}${v.multiple ? "[]" : ""}`;
901
+ var joinTypes = (types) => types.length === 1 && typeof types[0] === "string" ? types[0] : `(${types.join("|")})`;
902
+ var validateFieldMeta = (field, fieldMeta) => {
903
+ if (fieldMeta) {
904
+ if (field.type !== void 0 && field.type !== fieldMeta.type) {
905
+ throw new TypeError(`invalid type`, {
906
+ cause: {
907
+ found: field.type,
908
+ wanted: [fieldMeta.type, void 0]
909
+ }
910
+ });
911
+ }
912
+ if (field.multiple !== void 0 && !!field.multiple !== fieldMeta.multiple) {
913
+ throw new TypeError(`invalid multiple`, {
914
+ cause: {
915
+ found: field.multiple,
916
+ wanted: [fieldMeta.multiple, void 0]
917
+ }
918
+ });
919
+ }
920
+ return fieldMeta;
921
+ }
922
+ if (!isConfigType(field.type)) {
923
+ throw new TypeError(`invalid type`, {
924
+ cause: {
925
+ found: field.type,
926
+ wanted: ["string", "number", "boolean"]
927
+ }
928
+ });
929
+ }
930
+ return {
931
+ type: field.type,
932
+ multiple: !!field.multiple
933
+ };
934
+ };
935
+ var validateField = (o, type, multiple) => {
936
+ const validateValidOptions = (def, validOptions) => {
937
+ if (!undefOrTypeArray(validOptions, type)) {
938
+ throw new TypeError("invalid validOptions", {
939
+ cause: {
940
+ found: validOptions,
941
+ wanted: valueType({ type, multiple: true })
942
+ }
943
+ });
944
+ }
945
+ if (def !== void 0 && validOptions !== void 0) {
946
+ const valid = Array.isArray(def) ? def.every((v) => validOptions.includes(v)) : validOptions.includes(def);
947
+ if (!valid) {
948
+ throw new TypeError("invalid default value not in validOptions", {
949
+ cause: {
950
+ found: def,
951
+ wanted: validOptions
952
+ }
953
+ });
954
+ }
955
+ }
956
+ };
957
+ if (o.default !== void 0 && !isValidValue(o.default, type, multiple)) {
958
+ throw new TypeError("invalid default value", {
959
+ cause: {
960
+ found: o.default,
961
+ wanted: valueType({ type, multiple })
962
+ }
963
+ });
964
+ }
965
+ if (isConfigOptionOfType(o, "number", false) || isConfigOptionOfType(o, "number", true)) {
966
+ validateValidOptions(o.default, o.validOptions);
967
+ } else if (isConfigOptionOfType(o, "string", false) || isConfigOptionOfType(o, "string", true)) {
968
+ validateValidOptions(o.default, o.validOptions);
969
+ } else if (isConfigOptionOfType(o, "boolean", false) || isConfigOptionOfType(o, "boolean", true)) {
970
+ if (o.hint !== void 0) {
971
+ throw new TypeError("cannot provide hint for flag");
972
+ }
973
+ if (o.validOptions !== void 0) {
974
+ throw new TypeError("cannot provide validOptions for flag");
975
+ }
976
+ }
977
+ return o;
978
+ };
979
+ var toParseArgsOptionsConfig = (options) => {
980
+ return Object.entries(options).reduce((acc, [longOption, o]) => {
981
+ const p = {
982
+ type: "string",
983
+ multiple: !!o.multiple,
984
+ ...typeof o.short === "string" ? { short: o.short } : void 0
985
+ };
986
+ const setNoBool = () => {
987
+ if (!longOption.startsWith("no-") && !options[`no-${longOption}`]) {
988
+ acc[`no-${longOption}`] = {
989
+ type: "boolean",
990
+ multiple: !!o.multiple
991
+ };
992
+ }
993
+ };
994
+ const setDefault = (def, fn) => {
995
+ if (def !== void 0) {
996
+ p.default = fn(def);
997
+ }
998
+ };
999
+ if (isConfigOption(o, "number", false)) {
1000
+ setDefault(o.default, String);
1001
+ } else if (isConfigOption(o, "number", true)) {
1002
+ setDefault(o.default, (d) => d.map((v) => String(v)));
1003
+ } else if (isConfigOption(o, "string", false) || isConfigOption(o, "string", true)) {
1004
+ setDefault(o.default, (v) => v);
1005
+ } else if (isConfigOption(o, "boolean", false) || isConfigOption(o, "boolean", true)) {
1006
+ p.type = "boolean";
1007
+ setDefault(o.default, (v) => v);
1008
+ setNoBool();
1009
+ }
1010
+ acc[longOption] = p;
1011
+ return acc;
1012
+ }, {});
1013
+ };
1014
+ var Jack = class {
1015
+ #configSet;
1016
+ #shorts;
1017
+ #options;
1018
+ #fields = [];
1019
+ #env;
1020
+ #envPrefix;
1021
+ #allowPositionals;
1022
+ #usage;
1023
+ #usageMarkdown;
1024
+ constructor(options = {}) {
1025
+ this.#options = options;
1026
+ this.#allowPositionals = options.allowPositionals !== false;
1027
+ this.#env = this.#options.env === void 0 ? process.env : this.#options.env;
1028
+ this.#envPrefix = options.envPrefix;
1029
+ this.#configSet = /* @__PURE__ */ Object.create(null);
1030
+ this.#shorts = /* @__PURE__ */ Object.create(null);
1031
+ }
1032
+ /**
1033
+ * Set the default value (which will still be overridden by env or cli)
1034
+ * as if from a parsed config file. The optional `source` param, if
1035
+ * provided, will be included in error messages if a value is invalid or
1036
+ * unknown.
1037
+ */
1038
+ setConfigValues(values, source = "") {
1039
+ try {
1040
+ this.validate(values);
1041
+ } catch (er) {
1042
+ if (source && er instanceof Error) {
1043
+ const cause = typeof er.cause === "object" ? er.cause : {};
1044
+ er.cause = { ...cause, path: source };
1045
+ }
1046
+ throw er;
1047
+ }
1048
+ for (const [field, value] of Object.entries(values)) {
1049
+ const my = this.#configSet[field];
1050
+ if (!my) {
1051
+ throw new Error("unexpected field in config set: " + field, {
1052
+ cause: {
1053
+ code: "JACKSPEAK",
1054
+ found: field
1055
+ }
1056
+ });
1057
+ }
1058
+ my.default = value;
1059
+ }
1060
+ return this;
1061
+ }
1062
+ /**
1063
+ * Parse a string of arguments, and return the resulting
1064
+ * `{ values, positionals }` object.
1065
+ *
1066
+ * If an {@link JackOptions#envPrefix} is set, then it will read default
1067
+ * values from the environment, and write the resulting values back
1068
+ * to the environment as well.
1069
+ *
1070
+ * Environment values always take precedence over any other value, except
1071
+ * an explicit CLI setting.
1072
+ */
1073
+ parse(args = process.argv) {
1074
+ this.loadEnvDefaults();
1075
+ const p = this.parseRaw(args);
1076
+ this.applyDefaults(p);
1077
+ this.writeEnv(p);
1078
+ return p;
1079
+ }
1080
+ loadEnvDefaults() {
1081
+ if (this.#envPrefix) {
1082
+ for (const [field, my] of Object.entries(this.#configSet)) {
1083
+ const ek = toEnvKey(this.#envPrefix, field);
1084
+ const env = this.#env[ek];
1085
+ if (env !== void 0) {
1086
+ my.default = fromEnvVal(env, my.type, !!my.multiple, my.delim);
1087
+ }
1088
+ }
1089
+ }
1090
+ }
1091
+ applyDefaults(p) {
1092
+ for (const [field, c] of Object.entries(this.#configSet)) {
1093
+ if (c.default !== void 0 && !(field in p.values)) {
1094
+ p.values[field] = c.default;
1095
+ }
1096
+ }
1097
+ }
1098
+ /**
1099
+ * Only parse the command line arguments passed in.
1100
+ * Does not strip off the `node script.js` bits, so it must be just the
1101
+ * arguments you wish to have parsed.
1102
+ * Does not read from or write to the environment, or set defaults.
1103
+ */
1104
+ parseRaw(args) {
1105
+ if (args === process.argv) {
1106
+ args = args.slice(process._eval !== void 0 ? 1 : 2);
1107
+ }
1108
+ const result = parseArgs({
1109
+ args,
1110
+ options: toParseArgsOptionsConfig(this.#configSet),
1111
+ // always strict, but using our own logic
1112
+ strict: false,
1113
+ allowPositionals: this.#allowPositionals,
1114
+ tokens: true
1115
+ });
1116
+ const p = {
1117
+ values: {},
1118
+ positionals: []
1119
+ };
1120
+ for (const token of result.tokens) {
1121
+ if (token.kind === "positional") {
1122
+ p.positionals.push(token.value);
1123
+ if (this.#options.stopAtPositional || this.#options.stopAtPositionalTest?.(token.value)) {
1124
+ p.positionals.push(...args.slice(token.index + 1));
1125
+ break;
1126
+ }
1127
+ } else if (token.kind === "option") {
1128
+ let value = void 0;
1129
+ if (token.name.startsWith("no-")) {
1130
+ const my2 = this.#configSet[token.name];
1131
+ const pname = token.name.substring("no-".length);
1132
+ const pos = this.#configSet[pname];
1133
+ if (pos && pos.type === "boolean" && (!my2 || my2.type === "boolean" && !!my2.multiple === !!pos.multiple)) {
1134
+ value = false;
1135
+ token.name = pname;
1136
+ }
1137
+ }
1138
+ const my = this.#configSet[token.name];
1139
+ if (!my) {
1140
+ throw new Error(`Unknown option '${token.rawName}'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- ${token.rawName}'`, {
1141
+ cause: {
1142
+ code: "JACKSPEAK",
1143
+ found: token.rawName + (token.value ? `=${token.value}` : "")
1144
+ }
1145
+ });
1146
+ }
1147
+ if (value === void 0) {
1148
+ if (token.value === void 0) {
1149
+ if (my.type !== "boolean") {
1150
+ throw new Error(`No value provided for ${token.rawName}, expected ${my.type}`, {
1151
+ cause: {
1152
+ code: "JACKSPEAK",
1153
+ name: token.rawName,
1154
+ wanted: valueType(my)
1155
+ }
1156
+ });
1157
+ }
1158
+ value = true;
1159
+ } else {
1160
+ if (my.type === "boolean") {
1161
+ throw new Error(`Flag ${token.rawName} does not take a value, received '${token.value}'`, { cause: { code: "JACKSPEAK", found: token } });
1162
+ }
1163
+ if (my.type === "string") {
1164
+ value = token.value;
1165
+ } else {
1166
+ value = +token.value;
1167
+ if (value !== value) {
1168
+ throw new Error(`Invalid value '${token.value}' provided for '${token.rawName}' option, expected number`, {
1169
+ cause: {
1170
+ code: "JACKSPEAK",
1171
+ name: token.rawName,
1172
+ found: token.value,
1173
+ wanted: "number"
1174
+ }
1175
+ });
1176
+ }
1177
+ }
1178
+ }
1179
+ }
1180
+ if (my.multiple) {
1181
+ const pv = p.values;
1182
+ const tn = pv[token.name] ?? [];
1183
+ pv[token.name] = tn;
1184
+ tn.push(value);
1185
+ } else {
1186
+ const pv = p.values;
1187
+ pv[token.name] = value;
1188
+ }
1189
+ }
1190
+ }
1191
+ for (const [field, value] of Object.entries(p.values)) {
1192
+ const valid = this.#configSet[field]?.validate;
1193
+ const validOptions = this.#configSet[field]?.validOptions;
1194
+ const cause = validOptions && !isValidOption(value, validOptions) ? { name: field, found: value, validOptions } : valid && !valid(value) ? { name: field, found: value } : void 0;
1195
+ if (cause) {
1196
+ throw new Error(`Invalid value provided for --${field}: ${JSON.stringify(value)}`, { cause: { ...cause, code: "JACKSPEAK" } });
1197
+ }
1198
+ }
1199
+ return p;
1200
+ }
1201
+ /**
1202
+ * do not set fields as 'no-foo' if 'foo' exists and both are bools
1203
+ * just set foo.
1204
+ */
1205
+ #noNoFields(f, val, s = f) {
1206
+ if (!f.startsWith("no-") || typeof val !== "boolean")
1207
+ return;
1208
+ const yes = f.substring("no-".length);
1209
+ this.#noNoFields(yes, val, s);
1210
+ if (this.#configSet[yes]?.type === "boolean") {
1211
+ throw new Error(`do not set '${s}', instead set '${yes}' as desired.`, { cause: { code: "JACKSPEAK", found: s, wanted: yes } });
1212
+ }
1213
+ }
1214
+ /**
1215
+ * Validate that any arbitrary object is a valid configuration `values`
1216
+ * object. Useful when loading config files or other sources.
1217
+ */
1218
+ validate(o) {
1219
+ if (!o || typeof o !== "object") {
1220
+ throw new Error("Invalid config: not an object", {
1221
+ cause: { code: "JACKSPEAK", found: o }
1222
+ });
1223
+ }
1224
+ const opts = o;
1225
+ for (const field in o) {
1226
+ const value = opts[field];
1227
+ if (value === void 0)
1228
+ continue;
1229
+ this.#noNoFields(field, value);
1230
+ const config = this.#configSet[field];
1231
+ if (!config) {
1232
+ throw new Error(`Unknown config option: ${field}`, {
1233
+ cause: { code: "JACKSPEAK", found: field }
1234
+ });
1235
+ }
1236
+ if (!isValidValue(value, config.type, !!config.multiple)) {
1237
+ throw new Error(`Invalid value ${valueType(value)} for ${field}, expected ${valueType(config)}`, {
1238
+ cause: {
1239
+ code: "JACKSPEAK",
1240
+ name: field,
1241
+ found: value,
1242
+ wanted: valueType(config)
1243
+ }
1244
+ });
1245
+ }
1246
+ const cause = config.validOptions && !isValidOption(value, config.validOptions) ? { name: field, found: value, validOptions: config.validOptions } : config.validate && !config.validate(value) ? { name: field, found: value } : void 0;
1247
+ if (cause) {
1248
+ throw new Error(`Invalid config value for ${field}: ${value}`, {
1249
+ cause: { ...cause, code: "JACKSPEAK" }
1250
+ });
1251
+ }
1252
+ }
1253
+ }
1254
+ writeEnv(p) {
1255
+ if (!this.#env || !this.#envPrefix)
1256
+ return;
1257
+ for (const [field, value] of Object.entries(p.values)) {
1258
+ const my = this.#configSet[field];
1259
+ this.#env[toEnvKey(this.#envPrefix, field)] = toEnvVal(value, my?.delim);
1260
+ }
1261
+ }
1262
+ /**
1263
+ * Add a heading to the usage output banner
1264
+ */
1265
+ heading(text, level, { pre = false } = {}) {
1266
+ if (level === void 0) {
1267
+ level = this.#fields.some((r) => isHeading(r)) ? 2 : 1;
1268
+ }
1269
+ this.#fields.push({ type: "heading", text, level, pre });
1270
+ return this;
1271
+ }
1272
+ /**
1273
+ * Add a long-form description to the usage output at this position.
1274
+ */
1275
+ description(text, { pre } = {}) {
1276
+ this.#fields.push({ type: "description", text, pre });
1277
+ return this;
1278
+ }
1279
+ /**
1280
+ * Add one or more number fields.
1281
+ */
1282
+ num(fields) {
1283
+ return this.#addFieldsWith(fields, "number", false);
1284
+ }
1285
+ /**
1286
+ * Add one or more multiple number fields.
1287
+ */
1288
+ numList(fields) {
1289
+ return this.#addFieldsWith(fields, "number", true);
1290
+ }
1291
+ /**
1292
+ * Add one or more string option fields.
1293
+ */
1294
+ opt(fields) {
1295
+ return this.#addFieldsWith(fields, "string", false);
1296
+ }
1297
+ /**
1298
+ * Add one or more multiple string option fields.
1299
+ */
1300
+ optList(fields) {
1301
+ return this.#addFieldsWith(fields, "string", true);
1302
+ }
1303
+ /**
1304
+ * Add one or more flag fields.
1305
+ */
1306
+ flag(fields) {
1307
+ return this.#addFieldsWith(fields, "boolean", false);
1308
+ }
1309
+ /**
1310
+ * Add one or more multiple flag fields.
1311
+ */
1312
+ flagList(fields) {
1313
+ return this.#addFieldsWith(fields, "boolean", true);
1314
+ }
1315
+ /**
1316
+ * Generic field definition method. Similar to flag/flagList/number/etc,
1317
+ * but you must specify the `type` (and optionally `multiple` and `delim`)
1318
+ * fields on each one, or Jack won't know how to define them.
1319
+ */
1320
+ addFields(fields) {
1321
+ return this.#addFields(this, fields);
1322
+ }
1323
+ #addFieldsWith(fields, type, multiple) {
1324
+ return this.#addFields(this, fields, {
1325
+ type,
1326
+ multiple
1327
+ });
1328
+ }
1329
+ #addFields(next, fields, opt) {
1330
+ Object.assign(next.#configSet, Object.fromEntries(Object.entries(fields).map(([name, field]) => {
1331
+ this.#validateName(name, field);
1332
+ const { type, multiple } = validateFieldMeta(field, opt);
1333
+ const value = { ...field, type, multiple };
1334
+ validateField(value, type, multiple);
1335
+ next.#fields.push({ type: "config", name, value });
1336
+ return [name, value];
1337
+ })));
1338
+ return next;
1339
+ }
1340
+ #validateName(name, field) {
1341
+ if (!/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$/.test(name)) {
1342
+ throw new TypeError(`Invalid option name: ${name}, must be '-' delimited ASCII alphanumeric`);
1343
+ }
1344
+ if (this.#configSet[name]) {
1345
+ throw new TypeError(`Cannot redefine option ${field}`);
1346
+ }
1347
+ if (this.#shorts[name]) {
1348
+ throw new TypeError(`Cannot redefine option ${name}, already in use for ${this.#shorts[name]}`);
1349
+ }
1350
+ if (field.short) {
1351
+ if (!/^[a-zA-Z0-9]$/.test(field.short)) {
1352
+ throw new TypeError(`Invalid ${name} short option: ${field.short}, must be 1 ASCII alphanumeric character`);
1353
+ }
1354
+ if (this.#shorts[field.short]) {
1355
+ throw new TypeError(`Invalid ${name} short option: ${field.short}, already in use for ${this.#shorts[field.short]}`);
1356
+ }
1357
+ this.#shorts[field.short] = name;
1358
+ this.#shorts[name] = name;
1359
+ }
1360
+ }
1361
+ /**
1362
+ * Return the usage banner for the given configuration
1363
+ */
1364
+ usage() {
1365
+ if (this.#usage)
1366
+ return this.#usage;
1367
+ let headingLevel = 1;
1368
+ const ui2 = ui({ width });
1369
+ const first = this.#fields[0];
1370
+ let start = first?.type === "heading" ? 1 : 0;
1371
+ if (first?.type === "heading") {
1372
+ ui2.div({
1373
+ padding: [0, 0, 0, 0],
1374
+ text: normalize(first.text)
1375
+ });
1376
+ }
1377
+ ui2.div({ padding: [0, 0, 0, 0], text: "Usage:" });
1378
+ if (this.#options.usage) {
1379
+ ui2.div({
1380
+ text: this.#options.usage,
1381
+ padding: [0, 0, 0, 2]
1382
+ });
1383
+ } else {
1384
+ const cmd = basename(String(process.argv[1]));
1385
+ const shortFlags = [];
1386
+ const shorts = [];
1387
+ const flags = [];
1388
+ const opts = [];
1389
+ for (const [field, config] of Object.entries(this.#configSet)) {
1390
+ if (config.short) {
1391
+ if (config.type === "boolean")
1392
+ shortFlags.push(config.short);
1393
+ else
1394
+ shorts.push([config.short, config.hint || field]);
1395
+ } else {
1396
+ if (config.type === "boolean")
1397
+ flags.push(field);
1398
+ else
1399
+ opts.push([field, config.hint || field]);
1400
+ }
1401
+ }
1402
+ const sf = shortFlags.length ? " -" + shortFlags.join("") : "";
1403
+ const so = shorts.map(([k, v]) => ` --${k}=<${v}>`).join("");
1404
+ const lf = flags.map((k) => ` --${k}`).join("");
1405
+ const lo = opts.map(([k, v]) => ` --${k}=<${v}>`).join("");
1406
+ const usage = `${cmd}${sf}${so}${lf}${lo}`.trim();
1407
+ ui2.div({
1408
+ text: usage,
1409
+ padding: [0, 0, 0, 2]
1410
+ });
1411
+ }
1412
+ ui2.div({ padding: [0, 0, 0, 0], text: "" });
1413
+ const maybeDesc = this.#fields[start];
1414
+ if (maybeDesc && isDescription(maybeDesc)) {
1415
+ const print = normalize(maybeDesc.text, maybeDesc.pre);
1416
+ start++;
1417
+ ui2.div({ padding: [0, 0, 0, 0], text: print });
1418
+ ui2.div({ padding: [0, 0, 0, 0], text: "" });
1419
+ }
1420
+ const { rows, maxWidth } = this.#usageRows(start);
1421
+ for (const row of rows) {
1422
+ if (row.left) {
1423
+ const configIndent = indent(Math.max(headingLevel, 2));
1424
+ if (row.left.length > maxWidth - 3) {
1425
+ ui2.div({ text: row.left, padding: [0, 0, 0, configIndent] });
1426
+ ui2.div({ text: row.text, padding: [0, 0, 0, maxWidth] });
1427
+ } else {
1428
+ ui2.div({
1429
+ text: row.left,
1430
+ padding: [0, 1, 0, configIndent],
1431
+ width: maxWidth
1432
+ }, { padding: [0, 0, 0, 0], text: row.text });
1433
+ }
1434
+ if (row.skipLine) {
1435
+ ui2.div({ padding: [0, 0, 0, 0], text: "" });
1436
+ }
1437
+ } else {
1438
+ if (isHeading(row)) {
1439
+ const { level } = row;
1440
+ headingLevel = level;
1441
+ const b = level <= 2 ? 1 : 0;
1442
+ ui2.div({ ...row, padding: [0, 0, b, indent(level)] });
1443
+ } else {
1444
+ ui2.div({ ...row, padding: [0, 0, 1, indent(headingLevel + 1)] });
1445
+ }
1446
+ }
1447
+ }
1448
+ return this.#usage = ui2.toString();
1449
+ }
1450
+ /**
1451
+ * Return the usage banner markdown for the given configuration
1452
+ */
1453
+ usageMarkdown() {
1454
+ if (this.#usageMarkdown)
1455
+ return this.#usageMarkdown;
1456
+ const out = [];
1457
+ let headingLevel = 1;
1458
+ const first = this.#fields[0];
1459
+ let start = first?.type === "heading" ? 1 : 0;
1460
+ if (first?.type === "heading") {
1461
+ out.push(`# ${normalizeOneLine(first.text)}`);
1462
+ }
1463
+ out.push("Usage:");
1464
+ if (this.#options.usage) {
1465
+ out.push(normalizeMarkdown(this.#options.usage, true));
1466
+ } else {
1467
+ const cmd = basename(String(process.argv[1]));
1468
+ const shortFlags = [];
1469
+ const shorts = [];
1470
+ const flags = [];
1471
+ const opts = [];
1472
+ for (const [field, config] of Object.entries(this.#configSet)) {
1473
+ if (config.short) {
1474
+ if (config.type === "boolean")
1475
+ shortFlags.push(config.short);
1476
+ else
1477
+ shorts.push([config.short, config.hint || field]);
1478
+ } else {
1479
+ if (config.type === "boolean")
1480
+ flags.push(field);
1481
+ else
1482
+ opts.push([field, config.hint || field]);
1483
+ }
1484
+ }
1485
+ const sf = shortFlags.length ? " -" + shortFlags.join("") : "";
1486
+ const so = shorts.map(([k, v]) => ` --${k}=<${v}>`).join("");
1487
+ const lf = flags.map((k) => ` --${k}`).join("");
1488
+ const lo = opts.map(([k, v]) => ` --${k}=<${v}>`).join("");
1489
+ const usage = `${cmd}${sf}${so}${lf}${lo}`.trim();
1490
+ out.push(normalizeMarkdown(usage, true));
1491
+ }
1492
+ const maybeDesc = this.#fields[start];
1493
+ if (maybeDesc && isDescription(maybeDesc)) {
1494
+ out.push(normalizeMarkdown(maybeDesc.text, maybeDesc.pre));
1495
+ start++;
1496
+ }
1497
+ const { rows } = this.#usageRows(start);
1498
+ for (const row of rows) {
1499
+ if (row.left) {
1500
+ out.push("#".repeat(headingLevel + 1) + " " + normalizeOneLine(row.left, true));
1501
+ if (row.text)
1502
+ out.push(normalizeMarkdown(row.text));
1503
+ } else if (isHeading(row)) {
1504
+ const { level } = row;
1505
+ headingLevel = level;
1506
+ out.push(`${"#".repeat(headingLevel)} ${normalizeOneLine(row.text, row.pre)}`);
1507
+ } else {
1508
+ out.push(normalizeMarkdown(row.text, !!row.pre));
1509
+ }
1510
+ }
1511
+ return this.#usageMarkdown = out.join("\n\n") + "\n";
1512
+ }
1513
+ #usageRows(start) {
1514
+ let maxMax = Math.max(12, Math.min(26, Math.floor(width / 3)));
1515
+ let maxWidth = 8;
1516
+ let prev = void 0;
1517
+ const rows = [];
1518
+ for (const field of this.#fields.slice(start)) {
1519
+ if (field.type !== "config") {
1520
+ if (prev?.type === "config")
1521
+ prev.skipLine = true;
1522
+ prev = void 0;
1523
+ field.text = normalize(field.text, !!field.pre);
1524
+ rows.push(field);
1525
+ continue;
1526
+ }
1527
+ const { value } = field;
1528
+ const desc = value.description || "";
1529
+ const mult = value.multiple ? "Can be set multiple times" : "";
1530
+ const opts = value.validOptions?.length ? `Valid options:${value.validOptions.map((v) => ` ${JSON.stringify(v)}`)}` : "";
1531
+ const dmDelim = desc.includes("\n") ? "\n\n" : "\n";
1532
+ const extra = [opts, mult].join(dmDelim).trim();
1533
+ const text = (normalize(desc) + dmDelim + extra).trim();
1534
+ const hint = value.hint || (value.type === "number" ? "n" : value.type === "string" ? field.name : void 0);
1535
+ const short = !value.short ? "" : value.type === "boolean" ? `-${value.short} ` : `-${value.short}<${hint}> `;
1536
+ const left2 = value.type === "boolean" ? `${short}--${field.name}` : `${short}--${field.name}=<${hint}>`;
1537
+ const row = { text, left: left2, type: "config" };
1538
+ if (text.length > width - maxMax) {
1539
+ row.skipLine = true;
1540
+ }
1541
+ if (prev && left2.length > maxMax)
1542
+ prev.skipLine = true;
1543
+ prev = row;
1544
+ const len = left2.length + 4;
1545
+ if (len > maxWidth && len < maxMax) {
1546
+ maxWidth = len;
1547
+ }
1548
+ rows.push(row);
1549
+ }
1550
+ return { rows, maxWidth };
1551
+ }
1552
+ /**
1553
+ * Return the configuration options as a plain object
1554
+ */
1555
+ toJSON() {
1556
+ return Object.fromEntries(Object.entries(this.#configSet).map(([field, def]) => [
1557
+ field,
1558
+ {
1559
+ type: def.type,
1560
+ ...def.multiple ? { multiple: true } : {},
1561
+ ...def.delim ? { delim: def.delim } : {},
1562
+ ...def.short ? { short: def.short } : {},
1563
+ ...def.description ? { description: normalize(def.description) } : {},
1564
+ ...def.validate ? { validate: def.validate } : {},
1565
+ ...def.validOptions ? { validOptions: def.validOptions } : {},
1566
+ ...def.default !== void 0 ? { default: def.default } : {},
1567
+ ...def.hint ? { hint: def.hint } : {}
1568
+ }
1569
+ ]));
1570
+ }
1571
+ /**
1572
+ * Custom printer for `util.inspect`
1573
+ */
1574
+ [inspect.custom](_, options) {
1575
+ return `Jack ${inspect(this.toJSON(), options)}`;
1576
+ }
1577
+ };
1578
+ var jack = (options = {}) => new Jack(options);
1579
+ var normalize = (s, pre = false) => {
1580
+ if (pre)
1581
+ return s.split("\n").map((l) => `\u200B${l}`).join("\n");
1582
+ return s.split(/^\s*```\s*$/gm).map((s2, i) => {
1583
+ if (i % 2 === 1) {
1584
+ if (!s2.trim()) {
1585
+ return `\`\`\`
1586
+ \`\`\`
1587
+ `;
1588
+ }
1589
+ const split = s2.split("\n");
1590
+ split.pop();
1591
+ split.shift();
1592
+ const si = split.reduce((shortest, l) => {
1593
+ const ind = l.match(/^\s*/)?.[0] ?? "";
1594
+ if (ind.length)
1595
+ return Math.min(ind.length, shortest);
1596
+ else
1597
+ return shortest;
1598
+ }, Infinity);
1599
+ const i2 = isFinite(si) ? si : 0;
1600
+ return "\n```\n" + split.map((s3) => `\u200B${s3.substring(i2)}`).join("\n") + "\n```\n";
1601
+ }
1602
+ return s2.replace(/([^\n])\n[ \t]*([^\n])/g, (_, $1, $2) => !/^[-*]/.test($2) ? `${$1} ${$2}` : `${$1}
1603
+ ${$2}`).replace(/([^\n])[ \t]+([^\n])/g, "$1 $2").replace(/\n{3,}/g, "\n\n").replace(/\n[ \t]+/g, "\n").trim();
1604
+ }).join("\n");
1605
+ };
1606
+ var normalizeMarkdown = (s, pre = false) => {
1607
+ const n = normalize(s, pre).replace(/\\/g, "\\\\");
1608
+ return pre ? `\`\`\`
1609
+ ${n.replace(/\u200b/g, "")}
1610
+ \`\`\`` : n.replace(/\n +/g, "\n").trim();
1611
+ };
1612
+ var normalizeOneLine = (s, pre = false) => {
1613
+ const n = normalize(s, pre).replace(/[\s\u200b]+/g, " ").trim();
1614
+ return pre ? `\`${n}\`` : n;
1615
+ };
1616
+
1617
+ // ../../src/cli-sdk/src/config/definition.ts
1618
+ var defaultView = process.stdout.isTTY ? "human" : "json";
1619
+ var canonicalCommands = {
1620
+ config: "config",
1621
+ exec: "exec",
1622
+ gui: "gui",
1623
+ help: "help",
1624
+ init: "init",
1625
+ "install-exec": "install-exec",
1626
+ install: "install",
1627
+ login: "login",
1628
+ logout: "logout",
1629
+ list: "list",
1630
+ ls: "ls",
1631
+ pkg: "pkg",
1632
+ query: "query",
1633
+ "run-exec": "run-exec",
1634
+ run: "run",
1635
+ token: "token",
1636
+ uninstall: "uninstall",
1637
+ whoami: "whoami"
1638
+ };
1639
+ var aliases = {
1640
+ i: "install",
1641
+ add: "install",
1642
+ rm: "uninstall",
1643
+ u: "uninstall",
1644
+ r: "run",
1645
+ "run-script": "run",
1646
+ rx: "run-exec",
1647
+ x: "exec",
1648
+ h: "help",
1649
+ "?": "help",
1650
+ conf: "config",
1651
+ ix: "install-exec",
1652
+ ls: "list"
1653
+ };
1654
+ var commands = {
1655
+ ...canonicalCommands,
1656
+ ...aliases
1657
+ };
1658
+ var commandAliases = Object.entries(aliases).reduce(
1659
+ (acc, [alias, canonical]) => {
1660
+ const commandAliases2 = acc.get(canonical);
1661
+ if (commandAliases2) {
1662
+ commandAliases2.push(alias);
1663
+ } else {
1664
+ acc.set(canonical, [alias]);
1665
+ }
1666
+ return acc;
1667
+ },
1668
+ /* @__PURE__ */ new Map()
1669
+ );
1670
+ var getCommand = (s) => s && s in commands ? commands[s] : void 0;
1671
+ var xdg = new XDG("vlt");
1672
+ var cacheDir = xdg.cache();
1673
+ var recordFields = [
1674
+ "git-hosts",
1675
+ "registries",
1676
+ "git-host-archives",
1677
+ "scope-registries"
1678
+ ];
1679
+ var isRecordField = (s) => recordFields.includes(s);
1680
+ var stopParsingCommands = [
1681
+ "run",
1682
+ "run-exec",
1683
+ "exec",
1684
+ "install-exec"
1685
+ ];
1686
+ var stopParsing = void 0;
1687
+ var j = jack({
1688
+ envPrefix: "VLT",
1689
+ allowPositionals: true,
1690
+ usage: `vlt [<options>] [<cmd> [<args> ...]]`,
1691
+ stopAtPositionalTest: (arg) => {
1692
+ if (stopParsing) return true;
1693
+ const a = arg;
1694
+ if (stopParsingCommands.includes(commands[a])) {
1695
+ stopParsing = true;
1696
+ }
1697
+ return false;
1698
+ }
1699
+ }).heading("vlt").description(
1700
+ `More documentation available at <https://docs.vlt.sh>`
1701
+ ).heading("Subcommands");
1702
+ j.description(Object.keys(canonicalCommands).join(", "), {
1703
+ pre: true
1704
+ }).description(
1705
+ "Run `vlt <cmd> --help` for more information about a specific command"
1706
+ );
1707
+ var definition = j.heading("Configuration").description(
1708
+ `If a \`vlt.json\` file is present in the root of the current project,
1709
+ then that will be used as a source of configuration information.
1710
+
1711
+ Next, the \`vlt.json\` file in the XDG specified config directory
1712
+ will be checked, and loaded for any fields not set in the local project.
1713
+
1714
+ Object type values will be merged together. Set a field to \`null\` in
1715
+ the JSON configuration to explicitly remove it.
1716
+
1717
+ Command-specific fields may be set in a nested \`command\` object that
1718
+ overrides any options defined at the top level.
1719
+ `
1720
+ ).flag({
1721
+ color: {
1722
+ short: "c",
1723
+ description: "Use colors (Default for TTY)"
1724
+ },
1725
+ "no-color": {
1726
+ short: "C",
1727
+ description: "Do not use colors (Default for non-TTY)"
1728
+ }
1729
+ }).opt({
1730
+ registry: {
1731
+ hint: "url",
1732
+ default: "https://registry.npmjs.org/",
1733
+ description: `Sets the registry for fetching packages, when no registry
1734
+ is explicitly set on a specifier.
1735
+
1736
+ For example, \`express@latest\` will be resolved by looking
1737
+ up the metadata from this registry.
1738
+
1739
+ Note that alias specifiers starting with \`npm:\` will
1740
+ still map to \`https://registry.npmjs.org/\` if this is
1741
+ changed, unless the a new mapping is created via the
1742
+ \`--registries\` option.
1743
+ `
1744
+ }
1745
+ }).optList({
1746
+ registries: {
1747
+ hint: "name=url",
1748
+ description: `Specify named registry hosts by their prefix. To set the
1749
+ default registry used for non-namespaced specifiers,
1750
+ use the \`--registry\` option.
1751
+
1752
+ Prefixes can be used as a package alias. For example:
1753
+
1754
+ \`\`\`
1755
+ vlt --registries loc=http://reg.local install foo@loc:foo@1.x
1756
+ \`\`\`
1757
+
1758
+ By default, the public npm registry is registered to the
1759
+ \`npm:\` prefix. It is not recommended to change this
1760
+ mapping in most cases.
1761
+ `
1762
+ },
1763
+ "scope-registries": {
1764
+ hint: "@scope=url",
1765
+ description: `Map package name scopes to registry URLs.
1766
+
1767
+ For example,
1768
+ \`--scope-registries @acme=https://registry.acme/\`
1769
+ would tell vlt to fetch any packages named
1770
+ \`@acme/...\` from the \`https://registry.acme/\`
1771
+ registry.
1772
+
1773
+ Note: this way of specifying registries is more ambiguous,
1774
+ compared with using the \`--registries\` field and explicit
1775
+ prefixes, because instead of failing when the configuration
1776
+ is absent, it will instead attempt to fetch from the
1777
+ default registry.
1778
+
1779
+ By comparison, using
1780
+ \`--registries acme=https://registry.acme/\` and then
1781
+ specifying dependencies such as \`"foo": "acme:foo@1.x"\`
1782
+ means that regardless of the name, the package will be
1783
+ fetched from the explicitly named registry, or fail if
1784
+ no registry is defined with that name.
1785
+
1786
+ However, custom registry aliases are not supported by other
1787
+ package managers.`
1788
+ },
1789
+ "git-hosts": {
1790
+ hint: `name=template`,
1791
+ short: "G",
1792
+ description: `Map a shorthand name to a git remote URL template.
1793
+
1794
+ The \`template\` may contain placeholders, which will be
1795
+ swapped with the relevant values.
1796
+
1797
+ \`$1\`, \`$2\`, etc. are replaced with the appropriate
1798
+ n-th path portion. For example, \`github:user/project\`
1799
+ would replace the \`$1\` in the template with \`user\`,
1800
+ and \`$2\` with \`project\`.`
1801
+ },
1802
+ "git-host-archives": {
1803
+ hint: `name=template`,
1804
+ short: "A",
1805
+ description: `Similar to the \`--git-host <name>=<template>\` option,
1806
+ this option can define a template string that will be
1807
+ expanded to provide the URL to download a pre-built
1808
+ tarball of the git repository.
1809
+
1810
+ In addition to the n-th path portion expansions performed
1811
+ by \`--git-host\`, this field will also expand the
1812
+ string \`$committish\` in the template, replacing it with
1813
+ the resolved git committish value to be fetched.`
1814
+ }
1815
+ }).opt({
1816
+ cache: {
1817
+ hint: "path",
1818
+ description: `
1819
+ Location of the vlt on-disk cache. Defaults to the platform-specific
1820
+ directory recommended by the XDG specification.
1821
+ `,
1822
+ default: cacheDir
1823
+ },
1824
+ tag: {
1825
+ description: `Default \`dist-tag\` to install`,
1826
+ default: "latest"
1827
+ },
1828
+ before: {
1829
+ hint: "date",
1830
+ description: `Do not install any packages published after this date`
1831
+ },
1832
+ os: {
1833
+ description: `The operating system to use as the selector when choosing
1834
+ packages based on their \`os\` value.`,
1835
+ default: process.platform
1836
+ },
1837
+ arch: {
1838
+ description: `CPU architecture to use as the selector when choosing
1839
+ packages based on their \`cpu\` value.`,
1840
+ default: process.arch
1841
+ },
1842
+ "node-version": {
1843
+ hint: "version",
1844
+ description: `Node version to use when choosing packages based on
1845
+ their \`engines.node\` value.`,
1846
+ default: process.version
1847
+ }
1848
+ }).flag({
1849
+ "git-shallow": {
1850
+ description: `Set to force \`--depth=1\` on all git clone actions.
1851
+ When set explicitly to false with --no-git-shallow,
1852
+ then \`--depth=1\` will not be used.
1853
+
1854
+ When not set explicitly, \`--depth=1\` will be used for
1855
+ git hosts known to support this behavior.`
1856
+ }
1857
+ }).num({
1858
+ "fetch-retries": {
1859
+ hint: "n",
1860
+ description: `Number of retries to perform when encountering network
1861
+ errors or likely-transient errors from git hosts.`,
1862
+ default: 3
1863
+ },
1864
+ "fetch-retry-factor": {
1865
+ hint: "n",
1866
+ description: `The exponential backoff factor to use when retrying
1867
+ requests due to network issues.`,
1868
+ default: 2
1869
+ },
1870
+ "fetch-retry-mintimeout": {
1871
+ hint: "n",
1872
+ description: `Number of milliseconds before starting first retry`,
1873
+ default: 0
1874
+ },
1875
+ "fetch-retry-maxtimeout": {
1876
+ hint: "n",
1877
+ description: `Maximum number of milliseconds between two retries`,
1878
+ default: 3e4
1879
+ }
1880
+ }).opt({
1881
+ identity: {
1882
+ short: "i",
1883
+ validate: (v) => typeof v === "string" && /^[a-z0-9]*$/.test(v),
1884
+ hint: "name",
1885
+ default: "",
1886
+ description: `Provide a string to define an identity for storing auth
1887
+ information when logging into registries.
1888
+
1889
+ Authentication tokens will be stored in the XDG data
1890
+ directory, in \`vlt/auth/\${identity}/keychain.json\`.
1891
+
1892
+ If no identity is provided, then the default \`''\` will
1893
+ be used, storing the file at \`vlt/auth/keychain.json\`.
1894
+
1895
+ May only contain lowercase alphanumeric characters.
1896
+ `
1897
+ }
1898
+ }).optList({
1899
+ workspace: {
1900
+ hint: "ws",
1901
+ short: "w",
1902
+ description: `Set to limit the spaces being worked on when working on
1903
+ workspaces.
1904
+
1905
+ Can be paths or glob patterns matching paths.
1906
+
1907
+ Specifying workspaces by package.json name is not
1908
+ supported.`
1909
+ },
1910
+ "workspace-group": {
1911
+ short: "g",
1912
+ description: `Specify named workspace group names to load and operate on
1913
+ when doing recursive operations on workspaces.`
1914
+ }
1915
+ }).flag({
1916
+ recursive: {
1917
+ short: "r",
1918
+ description: `Run an operation across multiple workspaces.
1919
+
1920
+ No effect when used in non-monorepo projects.
1921
+
1922
+ Implied by setting --workspace or --workspace-group. If
1923
+ not set, then the action is run on the project root.`
1924
+ },
1925
+ bail: {
1926
+ short: "b",
1927
+ description: `When running scripts across multiple workspaces, stop
1928
+ on the first failure.`,
1929
+ default: true
1930
+ },
1931
+ "no-bail": {
1932
+ short: "B",
1933
+ description: `When running scripts across multiple workspaces, continue
1934
+ on failure, running the script for all workspaces.`
1935
+ }
1936
+ }).opt({
1937
+ config: {
1938
+ hint: "user | project",
1939
+ description: `Specify whether to operate on user-level or project-level
1940
+ configuration files when running \`vlt config\` commands.`,
1941
+ validOptions: ["user", "project"],
1942
+ default: "project"
1943
+ },
1944
+ editor: {
1945
+ hint: "program",
1946
+ description: `The blocking editor to use for \`vlt config edit\` and
1947
+ any other cases where a file should be opened for
1948
+ editing.
1949
+
1950
+ Defaults to the \`EDITOR\` or \`VISUAL\` env if set, or
1951
+ \`notepad.exe\` on Windows, or \`vi\` elsewhere.`,
1952
+ default: process.env.EDITOR || process.env.VISUAL || (process.platform === "win32" ? `${process.env.SYSTEMROOT}\\notepad.exe` : "vi")
1953
+ },
1954
+ "script-shell": {
1955
+ hint: "program",
1956
+ description: `The shell to use when executing \`package.json#scripts\`
1957
+ (either as lifecycle scripts or explicitly with
1958
+ \`vlt run\`) and \`vlt exec\`.
1959
+
1960
+ If not set, defaults to \`/bin/sh\` on POSIX systems,
1961
+ and \`cmd.exe\` on Windows.
1962
+
1963
+ When no argument is provided to \`vlt exec\`, the \`SHELL\`
1964
+ environment variable takes precedence if set.`
1965
+ },
1966
+ "fallback-command": {
1967
+ hint: "command",
1968
+ description: `The command to run when the first argument doesn't
1969
+ match any known commands.
1970
+
1971
+ For pnpm-style behavior, set this to 'run-exec'. e.g:
1972
+ \`\`\`
1973
+ vlt config set fallback-command=run-exec
1974
+ \`\`\``,
1975
+ default: "help",
1976
+ validOptions: Object.keys(canonicalCommands)
1977
+ }
1978
+ }).opt({
1979
+ package: {
1980
+ hint: "p",
1981
+ description: `When running \`vlt install-exec\`, this allows you to
1982
+ explicitly set the package to search for bins. If not
1983
+ provided, then vlt will interpret the first argument as
1984
+ the package, and attempt to run the default executable.`
1985
+ }
1986
+ }).opt({
1987
+ view: {
1988
+ hint: "output",
1989
+ default: defaultView,
1990
+ description: `Configures the output format for commands.
1991
+
1992
+ Defaults to \`human\` if stdout is a TTY, or \`json\`
1993
+ if it is not.
1994
+
1995
+ - human: Maximally ergonomic output reporting for human
1996
+ consumption.
1997
+ - json: Parseable JSON output for machines.
1998
+ - inspect: Output results with \`util.inspect\`.
1999
+ - gui: Start a local web server and opens a browser to
2000
+ explore the results. (Only relevant for certain
2001
+ commands.)
2002
+ - mermaid: Output mermaid diagramming syntax. (Only
2003
+ relevant for certain commands.)
2004
+
2005
+ If the requested view format is not supported for the
2006
+ current command, or if no option is provided, then it
2007
+ will fall back to the default.
2008
+ `,
2009
+ validOptions: [
2010
+ "human",
2011
+ "json",
2012
+ "mermaid",
2013
+ "gui",
2014
+ "inspect"
2015
+ ]
2016
+ }
2017
+ }).optList({
2018
+ "dashboard-root": {
2019
+ hint: "path",
2020
+ description: `The root directory to use for the dashboard GUI.
2021
+ If not set, the user home directory is used.`
2022
+ }
2023
+ }).flag({
2024
+ "save-dev": {
2025
+ short: "D",
2026
+ description: `Save installed packages to a package.json file as
2027
+ devDependencies`
2028
+ },
2029
+ "save-optional": {
2030
+ short: "O",
2031
+ description: `Save installed packages to a package.json file as
2032
+ optionalDependencies`
2033
+ },
2034
+ "save-peer": {
2035
+ description: `Save installed packages to a package.json file as
2036
+ peerDependencies`
2037
+ },
2038
+ "save-prod": {
2039
+ short: "P",
2040
+ description: `Save installed packages into dependencies specifically.
2041
+ This is useful if a package already exists in
2042
+ devDependencies or optionalDependencies, but you want to
2043
+ move it to be a non-optional production dependency.`
2044
+ }
2045
+ }).flag({
2046
+ version: {
2047
+ short: "v",
2048
+ description: "Print the version"
2049
+ }
2050
+ }).flag({
2051
+ help: {
2052
+ short: "h",
2053
+ description: "Print helpful information"
2054
+ }
2055
+ });
2056
+
2057
+ export {
2058
+ XDG,
2059
+ stripAnsi,
2060
+ ansi_styles_default,
2061
+ jack,
2062
+ defaultView,
2063
+ commands,
2064
+ commandAliases,
2065
+ getCommand,
2066
+ recordFields,
2067
+ isRecordField,
2068
+ definition
2069
+ };
2070
+ //# sourceMappingURL=chunk-ZSTAQQQN.js.map