@letsrunit/cli 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,19 +1,985 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'module';
3
- import { explore, refineSuggestion, generate, run } from '@letsrunit/executor';
3
+ import { explore, refineSuggestion, generate, run, explain } from '@letsrunit/executor';
4
4
  import { makeFeature } from '@letsrunit/gherkin';
5
5
  import { Journal, CliSink } from '@letsrunit/journal';
6
6
  import { getMailbox } from '@letsrunit/mailbox';
7
7
  import { asFilename, randomUUID } from '@letsrunit/utils';
8
8
  import { Command } from 'commander';
9
- import { init } from 'letsrunit';
10
- import { readFileSync } from 'fs';
9
+ import { stripVTControlCharacters } from 'util';
10
+ import y2, { stdout, stdin } from 'process';
11
+ import * as g from 'readline';
12
+ import g__default from 'readline';
13
+ import { Writable } from 'stream';
14
+ import { execSync } from 'child_process';
15
+ import { readFileSync, existsSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
16
+ import { dirname, join } from 'path';
11
17
  import * as fs2 from 'fs/promises';
12
18
  import fs2__default from 'fs/promises';
13
- import { dirname, join } from 'path';
14
19
  import { fileURLToPath } from 'url';
15
20
 
16
21
  createRequire(import.meta.url);
22
+ var __create = Object.create;
23
+ var __defProp = Object.defineProperty;
24
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
25
+ var __getOwnPropNames = Object.getOwnPropertyNames;
26
+ var __getProtoOf = Object.getPrototypeOf;
27
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
28
+ var __commonJS = (cb, mod) => function __require() {
29
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30
+ };
31
+ var __copyProps = (to, from, except, desc) => {
32
+ if (from && typeof from === "object" || typeof from === "function") {
33
+ for (let key of __getOwnPropNames(from))
34
+ if (!__hasOwnProp.call(to, key) && key !== except)
35
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
36
+ }
37
+ return to;
38
+ };
39
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
40
+ // If the importer is in node compatibility mode or this is not an ESM
41
+ // file that has been converted to a CommonJS file using a Babel-
42
+ // compatible transform (i.e. "__esModule" has not been set), then set
43
+ // "default" to the CommonJS "module.exports" for node compatibility.
44
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
45
+ mod
46
+ ));
47
+
48
+ // ../../node_modules/sisteransi/src/index.js
49
+ var require_src = __commonJS({
50
+ "../../node_modules/sisteransi/src/index.js"(exports, module) {
51
+ var ESC = "\x1B";
52
+ var CSI = `${ESC}[`;
53
+ var beep = "\x07";
54
+ var cursor = {
55
+ to(x2, y3) {
56
+ if (!y3) return `${CSI}${x2 + 1}G`;
57
+ return `${CSI}${y3 + 1};${x2 + 1}H`;
58
+ },
59
+ move(x2, y3) {
60
+ let ret = "";
61
+ if (x2 < 0) ret += `${CSI}${-x2}D`;
62
+ else if (x2 > 0) ret += `${CSI}${x2}C`;
63
+ if (y3 < 0) ret += `${CSI}${-y3}A`;
64
+ else if (y3 > 0) ret += `${CSI}${y3}B`;
65
+ return ret;
66
+ },
67
+ up: (count = 1) => `${CSI}${count}A`,
68
+ down: (count = 1) => `${CSI}${count}B`,
69
+ forward: (count = 1) => `${CSI}${count}C`,
70
+ backward: (count = 1) => `${CSI}${count}D`,
71
+ nextLine: (count = 1) => `${CSI}E`.repeat(count),
72
+ prevLine: (count = 1) => `${CSI}F`.repeat(count),
73
+ left: `${CSI}G`,
74
+ hide: `${CSI}?25l`,
75
+ show: `${CSI}?25h`,
76
+ save: `${ESC}7`,
77
+ restore: `${ESC}8`
78
+ };
79
+ var scroll = {
80
+ up: (count = 1) => `${CSI}S`.repeat(count),
81
+ down: (count = 1) => `${CSI}T`.repeat(count)
82
+ };
83
+ var erase = {
84
+ screen: `${CSI}2J`,
85
+ up: (count = 1) => `${CSI}1J`.repeat(count),
86
+ down: (count = 1) => `${CSI}J`.repeat(count),
87
+ line: `${CSI}2K`,
88
+ lineEnd: `${CSI}K`,
89
+ lineStart: `${CSI}1K`,
90
+ lines(count) {
91
+ let clear = "";
92
+ for (let i = 0; i < count; i++)
93
+ clear += this.line + (i < count - 1 ? cursor.up() : "");
94
+ if (count)
95
+ clear += cursor.left;
96
+ return clear;
97
+ }
98
+ };
99
+ module.exports = { cursor, scroll, erase, beep };
100
+ }
101
+ });
102
+
103
+ // ../../node_modules/picocolors/picocolors.js
104
+ var require_picocolors = __commonJS({
105
+ "../../node_modules/picocolors/picocolors.js"(exports, module) {
106
+ var p2 = process || {};
107
+ var argv = p2.argv || [];
108
+ var env = p2.env || {};
109
+ var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
110
+ var formatter = (open, close, replace = open) => (input) => {
111
+ let string = "" + input, index = string.indexOf(close, open.length);
112
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
113
+ };
114
+ var replaceClose = (string, close, replace, index) => {
115
+ let result = "", cursor = 0;
116
+ do {
117
+ result += string.substring(cursor, index) + replace;
118
+ cursor = index + close.length;
119
+ index = string.indexOf(close, cursor);
120
+ } while (~index);
121
+ return result + string.substring(cursor);
122
+ };
123
+ var createColors = (enabled = isColorSupported) => {
124
+ let f = enabled ? formatter : () => String;
125
+ return {
126
+ isColorSupported: enabled,
127
+ reset: f("\x1B[0m", "\x1B[0m"),
128
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
129
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
130
+ italic: f("\x1B[3m", "\x1B[23m"),
131
+ underline: f("\x1B[4m", "\x1B[24m"),
132
+ inverse: f("\x1B[7m", "\x1B[27m"),
133
+ hidden: f("\x1B[8m", "\x1B[28m"),
134
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
135
+ black: f("\x1B[30m", "\x1B[39m"),
136
+ red: f("\x1B[31m", "\x1B[39m"),
137
+ green: f("\x1B[32m", "\x1B[39m"),
138
+ yellow: f("\x1B[33m", "\x1B[39m"),
139
+ blue: f("\x1B[34m", "\x1B[39m"),
140
+ magenta: f("\x1B[35m", "\x1B[39m"),
141
+ cyan: f("\x1B[36m", "\x1B[39m"),
142
+ white: f("\x1B[37m", "\x1B[39m"),
143
+ gray: f("\x1B[90m", "\x1B[39m"),
144
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
145
+ bgRed: f("\x1B[41m", "\x1B[49m"),
146
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
147
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
148
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
149
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
150
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
151
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
152
+ blackBright: f("\x1B[90m", "\x1B[39m"),
153
+ redBright: f("\x1B[91m", "\x1B[39m"),
154
+ greenBright: f("\x1B[92m", "\x1B[39m"),
155
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
156
+ blueBright: f("\x1B[94m", "\x1B[39m"),
157
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
158
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
159
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
160
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
161
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
162
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
163
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
164
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
165
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
166
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
167
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
168
+ };
169
+ };
170
+ module.exports = createColors();
171
+ module.exports.createColors = createColors;
172
+ }
173
+ });
174
+
175
+ // ../../node_modules/@clack/core/dist/index.mjs
176
+ var import_sisteransi = __toESM(require_src());
177
+ function DD({ onlyFirst: e2 = false } = {}) {
178
+ const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
179
+ return new RegExp(t, e2 ? void 0 : "g");
180
+ }
181
+ var uD = DD();
182
+ function P(e2) {
183
+ if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
184
+ return e2.replace(uD, "");
185
+ }
186
+ function L(e2) {
187
+ return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
188
+ }
189
+ var W = { exports: {} };
190
+ (function(e2) {
191
+ var u2 = {};
192
+ e2.exports = u2, u2.eastAsianWidth = function(F2) {
193
+ var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
194
+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D2 = s << 10 | i, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
195
+ }, u2.characterLength = function(F2) {
196
+ var s = this.eastAsianWidth(F2);
197
+ return s == "F" || s == "W" || s == "A" ? 2 : 1;
198
+ };
199
+ function t(F2) {
200
+ return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
201
+ }
202
+ u2.length = function(F2) {
203
+ for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
204
+ return i;
205
+ }, u2.slice = function(F2, s, i) {
206
+ textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
207
+ for (var D2 = "", r = 0, n = t(F2), E = 0; E < n.length; E++) {
208
+ var a = n[E], o2 = u2.length(a);
209
+ if (r >= s - (o2 == 2 ? 1 : 0)) if (r + o2 <= i) D2 += a;
210
+ else break;
211
+ r += o2;
212
+ }
213
+ return D2;
214
+ };
215
+ })(W);
216
+ var tD = W.exports;
217
+ var eD = L(tD);
218
+ var FD = function() {
219
+ 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;
220
+ };
221
+ var sD = L(FD);
222
+ function p(e2, u2 = {}) {
223
+ if (typeof e2 != "string" || e2.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, e2 = P(e2), e2.length === 0)) return 0;
224
+ e2 = e2.replace(sD(), " ");
225
+ const t = u2.ambiguousIsNarrow ? 1 : 2;
226
+ let F2 = 0;
227
+ for (const s of e2) {
228
+ const i = s.codePointAt(0);
229
+ if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
230
+ switch (eD.eastAsianWidth(s)) {
231
+ case "F":
232
+ case "W":
233
+ F2 += 2;
234
+ break;
235
+ case "A":
236
+ F2 += t;
237
+ break;
238
+ default:
239
+ F2 += 1;
240
+ }
241
+ }
242
+ return F2;
243
+ }
244
+ var w = 10;
245
+ var N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
246
+ var I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
247
+ var R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
248
+ var C = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
249
+ Object.keys(C.modifier);
250
+ var iD = Object.keys(C.color);
251
+ var rD = Object.keys(C.bgColor);
252
+ [...iD, ...rD];
253
+ function CD() {
254
+ const e2 = /* @__PURE__ */ new Map();
255
+ for (const [u2, t] of Object.entries(C)) {
256
+ for (const [F2, s] of Object.entries(t)) C[F2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, t[F2] = C[F2], e2.set(s[0], s[1]);
257
+ Object.defineProperty(C, u2, { value: t, enumerable: false });
258
+ }
259
+ return Object.defineProperty(C, "codes", { value: e2, enumerable: false }), C.color.close = "\x1B[39m", C.bgColor.close = "\x1B[49m", C.color.ansi = N(), C.color.ansi256 = I(), C.color.ansi16m = R(), C.bgColor.ansi = N(w), C.bgColor.ansi256 = I(w), C.bgColor.ansi16m = R(w), Object.defineProperties(C, { rgbToAnsi256: { value: (u2, t, F2) => u2 === t && t === F2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
260
+ const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
261
+ if (!t) return [0, 0, 0];
262
+ let [F2] = t;
263
+ F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
264
+ const s = Number.parseInt(F2, 16);
265
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
266
+ }, enumerable: false }, hexToAnsi256: { value: (u2) => C.rgbToAnsi256(...C.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
267
+ if (u2 < 8) return 30 + u2;
268
+ if (u2 < 16) return 90 + (u2 - 8);
269
+ let t, F2, s;
270
+ if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
271
+ else {
272
+ u2 -= 16;
273
+ const r = u2 % 36;
274
+ t = Math.floor(u2 / 36) / 5, F2 = Math.floor(r / 6) / 5, s = r % 6 / 5;
275
+ }
276
+ const i = Math.max(t, F2, s) * 2;
277
+ if (i === 0) return 30;
278
+ let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
279
+ return i === 2 && (D2 += 60), D2;
280
+ }, enumerable: false }, rgbToAnsi: { value: (u2, t, F2) => C.ansi256ToAnsi(C.rgbToAnsi256(u2, t, F2)), enumerable: false }, hexToAnsi: { value: (u2) => C.ansi256ToAnsi(C.hexToAnsi256(u2)), enumerable: false } }), C;
281
+ }
282
+ var ED = CD();
283
+ var d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
284
+ var oD = 39;
285
+ var y = "\x07";
286
+ var V = "[";
287
+ var nD = "]";
288
+ var G = "m";
289
+ var _ = `${nD}8;;`;
290
+ var z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
291
+ var K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
292
+ var aD = (e2) => e2.split(" ").map((u2) => p(u2));
293
+ var k = (e2, u2, t) => {
294
+ const F2 = [...u2];
295
+ let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
296
+ for (const [r, n] of F2.entries()) {
297
+ const E = p(n);
298
+ if (D2 + E <= t ? e2[e2.length - 1] += n : (e2.push(n), D2 = 0), d.has(n) && (s = true, i = F2.slice(r + 1).join("").startsWith(_)), s) {
299
+ i ? n === y && (s = false, i = false) : n === G && (s = false);
300
+ continue;
301
+ }
302
+ D2 += E, D2 === t && r < F2.length - 1 && (e2.push(""), D2 = 0);
303
+ }
304
+ !D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
305
+ };
306
+ var hD = (e2) => {
307
+ const u2 = e2.split(" ");
308
+ let t = u2.length;
309
+ for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
310
+ return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
311
+ };
312
+ var lD = (e2, u2, t = {}) => {
313
+ if (t.trim !== false && e2.trim() === "") return "";
314
+ let F2 = "", s, i;
315
+ const D2 = aD(e2);
316
+ let r = [""];
317
+ for (const [E, a] of e2.split(" ").entries()) {
318
+ t.trim !== false && (r[r.length - 1] = r[r.length - 1].trimStart());
319
+ let o2 = p(r[r.length - 1]);
320
+ if (E !== 0 && (o2 >= u2 && (t.wordWrap === false || t.trim === false) && (r.push(""), o2 = 0), (o2 > 0 || t.trim === false) && (r[r.length - 1] += " ", o2++)), t.hard && D2[E] > u2) {
321
+ const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
322
+ Math.floor((D2[E] - 1) / u2) < f && r.push(""), k(r, a, u2);
323
+ continue;
324
+ }
325
+ if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
326
+ if (t.wordWrap === false && o2 < u2) {
327
+ k(r, a, u2);
328
+ continue;
329
+ }
330
+ r.push("");
331
+ }
332
+ if (o2 + D2[E] > u2 && t.wordWrap === false) {
333
+ k(r, a, u2);
334
+ continue;
335
+ }
336
+ r[r.length - 1] += a;
337
+ }
338
+ t.trim !== false && (r = r.map((E) => hD(E)));
339
+ const n = [...r.join(`
340
+ `)];
341
+ for (const [E, a] of n.entries()) {
342
+ if (F2 += a, d.has(a)) {
343
+ const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
344
+ if (c.code !== void 0) {
345
+ const f = Number.parseFloat(c.code);
346
+ s = f === oD ? void 0 : f;
347
+ } else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
348
+ }
349
+ const o2 = ED.codes.get(Number(s));
350
+ n[E + 1] === `
351
+ ` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
352
+ ` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
353
+ }
354
+ return F2;
355
+ };
356
+ function Y(e2, u2, t) {
357
+ return String(e2).normalize().replace(/\r\n/g, `
358
+ `).split(`
359
+ `).map((F2) => lD(F2, u2, t)).join(`
360
+ `);
361
+ }
362
+ var xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
363
+ var B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
364
+ function $(e2, u2) {
365
+ if (typeof e2 == "string") return B.aliases.get(e2) === u2;
366
+ for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
367
+ return false;
368
+ }
369
+ function BD(e2, u2) {
370
+ if (e2 === u2) return;
371
+ const t = e2.split(`
372
+ `), F2 = u2.split(`
373
+ `), s = [];
374
+ for (let i = 0; i < Math.max(t.length, F2.length); i++) t[i] !== F2[i] && s.push(i);
375
+ return s;
376
+ }
377
+ var AD = globalThis.process.platform.startsWith("win");
378
+ var S = /* @__PURE__ */ Symbol("clack:cancel");
379
+ function m(e2, u2) {
380
+ const t = e2;
381
+ t.isTTY && t.setRawMode(u2);
382
+ }
383
+ function fD({ input: e2 = stdin, output: u2 = stdout, overwrite: t = true, hideCursor: F2 = true } = {}) {
384
+ const s = g.createInterface({ input: e2, output: u2, prompt: "", tabSize: 1 });
385
+ g.emitKeypressEvents(e2, s), e2.isTTY && e2.setRawMode(true);
386
+ const i = (D2, { name: r, sequence: n }) => {
387
+ const E = String(D2);
388
+ if ($([E, r, n], "cancel")) {
389
+ F2 && u2.write(import_sisteransi.cursor.show), process.exit(0);
390
+ return;
391
+ }
392
+ if (!t) return;
393
+ const a = r === "return" ? 0 : -1, o2 = r === "return" ? -1 : 0;
394
+ g.moveCursor(u2, a, o2, () => {
395
+ g.clearLine(u2, 1, () => {
396
+ e2.once("keypress", i);
397
+ });
398
+ });
399
+ };
400
+ return F2 && u2.write(import_sisteransi.cursor.hide), e2.once("keypress", i), () => {
401
+ e2.off("keypress", i), F2 && u2.write(import_sisteransi.cursor.show), e2.isTTY && !AD && e2.setRawMode(false), s.terminal = false, s.close();
402
+ };
403
+ }
404
+ var gD = Object.defineProperty;
405
+ var vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
406
+ var h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
407
+ var x = class {
408
+ constructor(u2, t = true) {
409
+ h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
410
+ const { input: F2 = stdin, output: s = stdout, render: i, signal: D2, ...r } = u2;
411
+ this.opts = r, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D2, this.input = F2, this.output = s;
412
+ }
413
+ unsubscribe() {
414
+ this._subscribers.clear();
415
+ }
416
+ setSubscriber(u2, t) {
417
+ const F2 = this._subscribers.get(u2) ?? [];
418
+ F2.push(t), this._subscribers.set(u2, F2);
419
+ }
420
+ on(u2, t) {
421
+ this.setSubscriber(u2, { cb: t });
422
+ }
423
+ once(u2, t) {
424
+ this.setSubscriber(u2, { cb: t, once: true });
425
+ }
426
+ emit(u2, ...t) {
427
+ const F2 = this._subscribers.get(u2) ?? [], s = [];
428
+ for (const i of F2) i.cb(...t), i.once && s.push(() => F2.splice(F2.indexOf(i), 1));
429
+ for (const i of s) i();
430
+ }
431
+ prompt() {
432
+ return new Promise((u2, t) => {
433
+ if (this._abortSignal) {
434
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
435
+ this._abortSignal.addEventListener("abort", () => {
436
+ this.state = "cancel", this.close();
437
+ }, { once: true });
438
+ }
439
+ const F2 = new Writable();
440
+ F2._write = (s, i, D2) => {
441
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
442
+ }, this.input.pipe(F2), this.rl = g__default.createInterface({ input: this.input, output: F2, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), g__default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), m(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
443
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
444
+ }), this.once("cancel", () => {
445
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(S);
446
+ });
447
+ });
448
+ }
449
+ onKeypress(u2, t) {
450
+ if (this.state === "error" && (this.state = "active"), t?.name && (!this._track && B.aliases.has(t.name) && this.emit("cursor", B.aliases.get(t.name)), B.actions.has(t.name) && this.emit("cursor", t.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), t?.name === "return") {
451
+ if (!this.value && this.opts.placeholder && (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder)), this.opts.validate) {
452
+ const F2 = this.opts.validate(this.value);
453
+ F2 && (this.error = F2 instanceof Error ? F2.message : F2, this.state = "error", this.rl?.write(this.value));
454
+ }
455
+ this.state !== "error" && (this.state = "submit");
456
+ }
457
+ $([u2, t?.name, t?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
458
+ }
459
+ close() {
460
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
461
+ `), m(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
462
+ }
463
+ restoreCursor() {
464
+ const u2 = Y(this._prevFrame, process.stdout.columns, { hard: true }).split(`
465
+ `).length - 1;
466
+ this.output.write(import_sisteransi.cursor.move(-999, u2 * -1));
467
+ }
468
+ render() {
469
+ const u2 = Y(this._render(this) ?? "", process.stdout.columns, { hard: true });
470
+ if (u2 !== this._prevFrame) {
471
+ if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
472
+ else {
473
+ const t = BD(this._prevFrame, u2);
474
+ if (this.restoreCursor(), t && t?.length === 1) {
475
+ const F2 = t[0];
476
+ this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.lines(1));
477
+ const s = u2.split(`
478
+ `);
479
+ this.output.write(s[F2]), this._prevFrame = u2, this.output.write(import_sisteransi.cursor.move(0, s.length - F2 - 1));
480
+ return;
481
+ }
482
+ if (t && t?.length > 1) {
483
+ const F2 = t[0];
484
+ this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.down());
485
+ const s = u2.split(`
486
+ `).slice(F2);
487
+ this.output.write(s.join(`
488
+ `)), this._prevFrame = u2;
489
+ return;
490
+ }
491
+ this.output.write(import_sisteransi.erase.down());
492
+ }
493
+ this.output.write(u2), this.state === "initial" && (this.state = "active"), this._prevFrame = u2;
494
+ }
495
+ }
496
+ };
497
+ var dD = class extends x {
498
+ get cursor() {
499
+ return this.value ? 0 : 1;
500
+ }
501
+ get _value() {
502
+ return this.cursor === 0;
503
+ }
504
+ constructor(u2) {
505
+ super(u2, false), this.value = !!u2.initialValue, this.on("value", () => {
506
+ this.value = this._value;
507
+ }), this.on("confirm", (t) => {
508
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
509
+ }), this.on("cursor", () => {
510
+ this.value = !this.value;
511
+ });
512
+ }
513
+ };
514
+
515
+ // ../../node_modules/@clack/prompts/dist/index.mjs
516
+ var import_picocolors = __toESM(require_picocolors());
517
+ var import_sisteransi2 = __toESM(require_src());
518
+ function ce() {
519
+ return y2.platform !== "win32" ? y2.env.TERM !== "linux" : !!y2.env.CI || !!y2.env.WT_SESSION || !!y2.env.TERMINUS_SUBLIME || y2.env.ConEmuTask === "{cmd::Cmder}" || y2.env.TERM_PROGRAM === "Terminus-Sublime" || y2.env.TERM_PROGRAM === "vscode" || y2.env.TERM === "xterm-256color" || y2.env.TERM === "alacritty" || y2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
520
+ }
521
+ var V2 = ce();
522
+ var u = (t, n) => V2 ? t : n;
523
+ var le = u("\u25C6", "*");
524
+ var L2 = u("\u25A0", "x");
525
+ var W2 = u("\u25B2", "x");
526
+ var C2 = u("\u25C7", "o");
527
+ var ue = u("\u250C", "T");
528
+ var o = u("\u2502", "|");
529
+ var d2 = u("\u2514", "\u2014");
530
+ var k2 = u("\u25CF", ">");
531
+ var P2 = u("\u25CB", " ");
532
+ var _2 = u("\u2500", "-");
533
+ var me = u("\u256E", "+");
534
+ var de = u("\u251C", "+");
535
+ var pe = u("\u256F", "+");
536
+ var q = u("\u25CF", "\u2022");
537
+ var D = u("\u25C6", "*");
538
+ var U = u("\u25B2", "!");
539
+ var K2 = u("\u25A0", "x");
540
+ var b2 = (t) => {
541
+ switch (t) {
542
+ case "initial":
543
+ case "active":
544
+ return import_picocolors.default.cyan(le);
545
+ case "cancel":
546
+ return import_picocolors.default.red(L2);
547
+ case "error":
548
+ return import_picocolors.default.yellow(W2);
549
+ case "submit":
550
+ return import_picocolors.default.green(C2);
551
+ }
552
+ };
553
+ var ye = (t) => {
554
+ const n = t.active ?? "Yes", r = t.inactive ?? "No";
555
+ return new dD({ active: n, inactive: r, initialValue: t.initialValue ?? true, render() {
556
+ const i = `${import_picocolors.default.gray(o)}
557
+ ${b2(this.state)} ${t.message}
558
+ `, s = this.value ? n : r;
559
+ switch (this.state) {
560
+ case "submit":
561
+ return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(s)}`;
562
+ case "cancel":
563
+ return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}
564
+ ${import_picocolors.default.gray(o)}`;
565
+ default:
566
+ return `${i}${import_picocolors.default.cyan(o)} ${this.value ? `${import_picocolors.default.green(k2)} ${n}` : `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(r)}` : `${import_picocolors.default.green(k2)} ${r}`}
567
+ ${import_picocolors.default.cyan(d2)}
568
+ `;
569
+ }
570
+ } }).prompt();
571
+ };
572
+ var Me = (t = "", n = "") => {
573
+ const r = `
574
+ ${t}
575
+ `.split(`
576
+ `), i = stripVTControlCharacters(n).length, s = Math.max(r.reduce((a, l2) => {
577
+ const $2 = stripVTControlCharacters(l2);
578
+ return $2.length > a ? $2.length : a;
579
+ }, 0), i) + 2, c = r.map((a) => `${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${" ".repeat(s - stripVTControlCharacters(a).length)}${import_picocolors.default.gray(o)}`).join(`
580
+ `);
581
+ process.stdout.write(`${import_picocolors.default.gray(o)}
582
+ ${import_picocolors.default.green(C2)} ${import_picocolors.default.reset(n)} ${import_picocolors.default.gray(_2.repeat(Math.max(s - i - 1, 1)) + me)}
583
+ ${c}
584
+ ${import_picocolors.default.gray(de + _2.repeat(s + 2) + pe)}
585
+ `);
586
+ };
587
+ var Ie = (t = "") => {
588
+ process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
589
+ `);
590
+ };
591
+ var Se = (t = "") => {
592
+ process.stdout.write(`${import_picocolors.default.gray(o)}
593
+ ${import_picocolors.default.gray(d2)} ${t}
594
+
595
+ `);
596
+ };
597
+ var M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
598
+ const r = [`${import_picocolors.default.gray(o)}`];
599
+ if (t) {
600
+ const [i, ...s] = t.split(`
601
+ `);
602
+ r.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
603
+ }
604
+ process.stdout.write(`${r.join(`
605
+ `)}
606
+ `);
607
+ }, info: (t) => {
608
+ M2.message(t, { symbol: import_picocolors.default.blue(q) });
609
+ }, success: (t) => {
610
+ M2.message(t, { symbol: import_picocolors.default.green(D) });
611
+ }, step: (t) => {
612
+ M2.message(t, { symbol: import_picocolors.default.green(C2) });
613
+ }, warn: (t) => {
614
+ M2.message(t, { symbol: import_picocolors.default.yellow(U) });
615
+ }, warning: (t) => {
616
+ M2.warn(t);
617
+ }, error: (t) => {
618
+ M2.message(t, { symbol: import_picocolors.default.red(K2) });
619
+ } };
620
+ `${import_picocolors.default.gray(o)} `;
621
+ var Y2 = ({ indicator: t = "dots" } = {}) => {
622
+ const n = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r = V2 ? 80 : 120, i = process.env.CI === "true";
623
+ let s, c, a = false, l2 = "", $2, g2 = performance.now();
624
+ const p2 = (m2) => {
625
+ const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
626
+ a && N2(h2, m2);
627
+ }, v = () => p2(2), f = () => p2(1), j2 = () => {
628
+ process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
629
+ }, E = () => {
630
+ process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
631
+ }, B2 = () => {
632
+ if ($2 === void 0) return;
633
+ i && process.stdout.write(`
634
+ `);
635
+ const m2 = $2.split(`
636
+ `);
637
+ process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
638
+ }, R2 = (m2) => m2.replace(/\.+$/, ""), O2 = (m2) => {
639
+ const h2 = (performance.now() - m2) / 1e3, w2 = Math.floor(h2 / 60), I2 = Math.floor(h2 % 60);
640
+ return w2 > 0 ? `[${w2}m ${I2}s]` : `[${I2}s]`;
641
+ }, H = (m2 = "") => {
642
+ a = true, s = fD(), l2 = R2(m2), g2 = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o)}
643
+ `);
644
+ let h2 = 0, w2 = 0;
645
+ j2(), c = setInterval(() => {
646
+ if (i && l2 === $2) return;
647
+ B2(), $2 = l2;
648
+ const I2 = import_picocolors.default.magenta(n[h2]);
649
+ if (i) process.stdout.write(`${I2} ${l2}...`);
650
+ else if (t === "timer") process.stdout.write(`${I2} ${l2} ${O2(g2)}`);
651
+ else {
652
+ const z2 = ".".repeat(Math.floor(w2)).slice(0, 3);
653
+ process.stdout.write(`${I2} ${l2}${z2}`);
654
+ }
655
+ h2 = h2 + 1 < n.length ? h2 + 1 : 0, w2 = w2 < n.length ? w2 + 0.125 : 0;
656
+ }, r);
657
+ }, N2 = (m2 = "", h2 = 0) => {
658
+ a = false, clearInterval(c), B2();
659
+ const w2 = h2 === 0 ? import_picocolors.default.green(C2) : h2 === 1 ? import_picocolors.default.red(L2) : import_picocolors.default.red(W2);
660
+ l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${w2} ${l2} ${O2(g2)}
661
+ `) : process.stdout.write(`${w2} ${l2}
662
+ `), E(), s();
663
+ };
664
+ return { start: H, stop: N2, message: (m2 = "") => {
665
+ l2 = R2(m2 ?? l2);
666
+ } };
667
+ };
668
+ function detectEnvironment() {
669
+ const cwd = process.cwd();
670
+ const isInteractive = Boolean(process.stdout.isTTY && process.stdin.isTTY);
671
+ let packageManager = "npm";
672
+ if (existsSync(join(cwd, "yarn.lock"))) packageManager = "yarn";
673
+ else if (existsSync(join(cwd, "pnpm-lock.yaml"))) packageManager = "pnpm";
674
+ else if (existsSync(join(cwd, "bun.lockb")) || existsSync(join(cwd, "bun.lock"))) packageManager = "bun";
675
+ const nodeVersion = parseInt(process.version.slice(1), 10);
676
+ const hasCucumber = existsSync(join(cwd, "node_modules", "@cucumber", "cucumber", "package.json"));
677
+ return { isInteractive, packageManager, nodeVersion, hasCucumber, cwd };
678
+ }
679
+ function pmCmd(pm, args) {
680
+ if (pm === "yarn") return `yarn ${args.yarn}`;
681
+ if (pm === "pnpm") return `pnpm ${args.pnpm}`;
682
+ if (pm === "bun") return `bun ${args.bun}`;
683
+ return `npm ${args.npm}`;
684
+ }
685
+ function execPm(env, args) {
686
+ const cmd = pmCmd(env.packageManager, args);
687
+ return execSync(cmd, { stdio: "inherit", cwd: env.cwd });
688
+ }
689
+ function isCliInstalled({ cwd }) {
690
+ const pkgPath = join(cwd, "package.json");
691
+ if (!existsSync(pkgPath)) return false;
692
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
693
+ return "@letsrunit/cli" in (pkg.devDependencies ?? {}) || "@letsrunit/cli" in (pkg.dependencies ?? {});
694
+ }
695
+ function installCli(env) {
696
+ execPm(env, {
697
+ npm: "install --save-dev @letsrunit/cli",
698
+ yarn: "add --dev @letsrunit/cli",
699
+ pnpm: "add -D @letsrunit/cli",
700
+ bun: "add -d @letsrunit/cli"
701
+ });
702
+ }
703
+ var BDD_IMPORT = "@letsrunit/cucumber";
704
+ var CUCUMBER_CONFIG = `export default {
705
+ require: ['features/support/**/*.js'],
706
+ format: ['@letsrunit/cucumber/progress'],
707
+ plugin: ['@letsrunit/cucumber/store'],
708
+ pluginOptions: {
709
+ letsrunitStore: {
710
+ directory: '.letsrunit',
711
+ },
712
+ },
713
+ worldParameters: {
714
+ baseURL: 'http://localhost:3000',
715
+ },
716
+ };
717
+ `;
718
+ var SUPPORT_FILE = `import { setDefaultTimeout } from '@cucumber/cucumber';
719
+ import '${BDD_IMPORT}';
720
+
721
+ setDefaultTimeout(30_000);
722
+ `;
723
+ var EXAMPLE_FEATURE = `Feature: Example
724
+ Scenario: Homepage loads
725
+ Given I'm on the homepage
726
+ `;
727
+ function installCucumber(env) {
728
+ execPm(env, {
729
+ npm: "install --save-dev @cucumber/cucumber",
730
+ yarn: "add --dev @cucumber/cucumber",
731
+ pnpm: "add -D @cucumber/cucumber",
732
+ bun: "add -d @cucumber/cucumber"
733
+ });
734
+ }
735
+ function installBdd(env) {
736
+ const pkgPath = join(env.cwd, "package.json");
737
+ if (!existsSync(pkgPath)) return false;
738
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
739
+ const alreadyInstalled = "@letsrunit/cucumber" in (pkg.devDependencies ?? {}) || "@letsrunit/cucumber" in (pkg.dependencies ?? {});
740
+ if (alreadyInstalled) return false;
741
+ execPm(env, {
742
+ npm: "install --save-dev @letsrunit/cucumber",
743
+ yarn: "add --dev @letsrunit/cucumber",
744
+ pnpm: "add -D @letsrunit/cucumber",
745
+ bun: "add -d @letsrunit/cucumber"
746
+ });
747
+ return true;
748
+ }
749
+ function setupCucumberConfig({ cwd }) {
750
+ const supportDir = join(cwd, "features", "support");
751
+ const supportPath = join(supportDir, "world.js");
752
+ if (existsSync(supportPath)) {
753
+ const content = readFileSync(supportPath, "utf-8");
754
+ if (content.includes(BDD_IMPORT)) return "skipped";
755
+ return "needs-manual-update";
756
+ }
757
+ const configPath = join(cwd, "cucumber.js");
758
+ if (!existsSync(configPath)) {
759
+ writeFileSync(configPath, CUCUMBER_CONFIG, "utf-8");
760
+ }
761
+ mkdirSync(supportDir, { recursive: true });
762
+ writeFileSync(supportPath, SUPPORT_FILE, "utf-8");
763
+ return "created";
764
+ }
765
+ function setupFeaturesDir({ cwd }) {
766
+ if (existsSync(join(cwd, "features"))) {
767
+ try {
768
+ const hasFeatureFiles = readdirSync(join(cwd, "features")).some((f) => f.endsWith(".feature"));
769
+ if (hasFeatureFiles) return false;
770
+ } catch {
771
+ return false;
772
+ }
773
+ }
774
+ try {
775
+ const hasFeatureAtRoot = readdirSync(cwd).some((f) => f.endsWith(".feature"));
776
+ if (hasFeatureAtRoot) return false;
777
+ } catch {
778
+ return false;
779
+ }
780
+ mkdirSync(join(cwd, "features"), { recursive: true });
781
+ writeFileSync(join(cwd, "features", "example.feature"), EXAMPLE_FEATURE, "utf-8");
782
+ return true;
783
+ }
784
+ function setupCucumber(env) {
785
+ const bddInstalled = installBdd(env);
786
+ const configResult = setupCucumberConfig(env);
787
+ const featuresCreated = setupFeaturesDir(env);
788
+ return { bddInstalled, configResult, featuresCreated };
789
+ }
790
+ function setupStepsFor({ packageManager, nodeVersion }) {
791
+ if (packageManager === "yarn") return ` - name: Enable Corepack
792
+ run: corepack enable
793
+ - uses: actions/setup-node@v4
794
+ with:
795
+ node-version: ${nodeVersion}
796
+ cache: yarn
797
+ - name: Install dependencies
798
+ run: yarn install --immutable`;
799
+ if (packageManager === "pnpm") return ` - uses: pnpm/action-setup@v4
800
+ - uses: actions/setup-node@v4
801
+ with:
802
+ node-version: ${nodeVersion}
803
+ cache: pnpm
804
+ - name: Install dependencies
805
+ run: pnpm install --frozen-lockfile`;
806
+ if (packageManager === "bun") return ` - uses: oven-sh/setup-bun@v2
807
+ - name: Install dependencies
808
+ run: bun install --frozen-lockfile`;
809
+ return ` - uses: actions/setup-node@v4
810
+ with:
811
+ node-version: ${nodeVersion}
812
+ cache: npm
813
+ - name: Install dependencies
814
+ run: npm ci`;
815
+ }
816
+ function workflowYaml(env) {
817
+ const setupSteps = setupStepsFor(env);
818
+ return `name: Features
819
+ on:
820
+ push:
821
+ branches: [main]
822
+ pull_request:
823
+ branches: [main]
824
+ jobs:
825
+ features:
826
+ runs-on: ubuntu-latest
827
+ steps:
828
+ - uses: actions/checkout@v4
829
+ ${setupSteps}
830
+ - name: Install Playwright browsers
831
+ run: npx playwright install chromium --with-deps
832
+ - name: Run features
833
+ run: npx cucumber-js
834
+ `;
835
+ }
836
+ function installGithubAction(env) {
837
+ const workflowDir = join(env.cwd, ".github", "workflows");
838
+ const workflowPath = join(workflowDir, "letsrunit.yml");
839
+ if (existsSync(workflowPath)) return "skipped";
840
+ mkdirSync(workflowDir, { recursive: true });
841
+ writeFileSync(workflowPath, workflowYaml(env), "utf-8");
842
+ return "created";
843
+ }
844
+ function hasPlaywrightBrowsers({ cwd }) {
845
+ if (!existsSync(join(cwd, "node_modules", "playwright-core", "package.json"))) {
846
+ return false;
847
+ }
848
+ try {
849
+ const execPath = execSync(
850
+ `node -e "console.log(require('playwright-core').chromium.executablePath())"`,
851
+ { cwd, stdio: "pipe", encoding: "utf-8" }
852
+ ).trim();
853
+ return existsSync(execPath);
854
+ } catch {
855
+ return false;
856
+ }
857
+ }
858
+ function installPlaywrightBrowsers(env) {
859
+ execPm(env, {
860
+ npm: "exec playwright install chromium",
861
+ yarn: "exec playwright install chromium",
862
+ pnpm: "exec playwright install chromium",
863
+ bun: "x playwright install chromium"
864
+ });
865
+ }
866
+
867
+ // ../letsrunit/src/init.ts
868
+ var BDD_IMPORT2 = "@letsrunit/cucumber";
869
+ async function stepInstallCli(env) {
870
+ if (isCliInstalled(env)) {
871
+ M2.success("@letsrunit/cli already installed");
872
+ return;
873
+ }
874
+ const s = Y2();
875
+ s.start("Installing @letsrunit/cli\u2026");
876
+ installCli(env);
877
+ s.stop("@letsrunit/cli installed");
878
+ }
879
+ async function stepEnsureCucumber(env, { yes }) {
880
+ if (env.hasCucumber) return true;
881
+ if (!yes && !env.isInteractive) {
882
+ M2.warn("@cucumber/cucumber not found. Install it to use letsrunit with Cucumber:");
883
+ Me("npm install --save-dev @cucumber/cucumber\nThen run: npx letsrunit init", "Setup Cucumber");
884
+ return false;
885
+ }
886
+ if (!yes) {
887
+ const install = await ye({ message: "@cucumber/cucumber not found. Install it now?" });
888
+ if (install !== true) return false;
889
+ }
890
+ const s = Y2();
891
+ s.start("Installing @cucumber/cucumber\u2026");
892
+ installCucumber(env);
893
+ s.stop("@cucumber/cucumber installed");
894
+ return true;
895
+ }
896
+ function stepSetupCucumber(env) {
897
+ const result = setupCucumber(env);
898
+ if (result.bddInstalled) M2.success("@letsrunit/cucumber installed");
899
+ if (result.configResult === "created") {
900
+ M2.success("features/support/world.js created");
901
+ } else if (result.configResult === "needs-manual-update") {
902
+ M2.warn("features/support/world.js exists but does not import @letsrunit/cucumber.");
903
+ Me(`Add "import '${BDD_IMPORT2}';" to features/support/world.js`, "Action required");
904
+ }
905
+ if (result.featuresCreated) M2.success("features/ directory created with example.feature");
906
+ }
907
+ async function stepCheckPlaywrightBrowsers(env, { yes }) {
908
+ if (hasPlaywrightBrowsers(env)) return;
909
+ if (!yes && !env.isInteractive) {
910
+ M2.warn("Playwright Chromium browser not found.");
911
+ Me("npx playwright install chromium", "Run to install browsers");
912
+ return;
913
+ }
914
+ if (!yes) {
915
+ const install = await ye({ message: "Playwright Chromium browser not found. Install it now?" });
916
+ if (install !== true) return;
917
+ }
918
+ const s = Y2();
919
+ s.start("Installing Playwright Chromium\u2026");
920
+ installPlaywrightBrowsers(env);
921
+ s.stop("Playwright Chromium installed");
922
+ }
923
+ async function stepAddGithubAction(env, { yes }) {
924
+ if (!yes && !env.isInteractive) return;
925
+ if (!yes) {
926
+ const addAction = await ye({ message: "Add a GitHub Action to run features on push?" });
927
+ if (addAction !== true) return;
928
+ }
929
+ const result = installGithubAction(env);
930
+ if (result === "created") {
931
+ M2.success(".github/workflows/letsrunit.yml created");
932
+ } else {
933
+ M2.info(".github/workflows/letsrunit.yml already exists, skipped");
934
+ }
935
+ }
936
+ async function init(options = {}) {
937
+ Ie("letsrunit init");
938
+ const env = detectEnvironment();
939
+ await stepInstallCli(env);
940
+ const hasCucumber = await stepEnsureCucumber(env, options);
941
+ if (hasCucumber) {
942
+ stepSetupCucumber(env);
943
+ await stepCheckPlaywrightBrowsers(env, options);
944
+ await stepAddGithubAction(env, options);
945
+ }
946
+ Se("All done! Run npx letsrunit --help to get started.");
947
+ }
948
+ async function runExplain(opts) {
949
+ const result = await explain({ dbPath: opts.db, artifactsDir: opts.artifacts });
950
+ const { stdout, stderr } = process;
951
+ if (!result.hasRun) {
952
+ stderr.write("No letsrunit run found.\n");
953
+ process.exit(1);
954
+ }
955
+ if (result.totalFailed === 0) {
956
+ stdout.write("No failures in latest run; nothing to explain.\n");
957
+ process.exit(0);
958
+ }
959
+ for (const item of result.explanations) {
960
+ const color = item.update === "test" ? "\x1B[33m" : "\x1B[31m";
961
+ stdout.write("\n");
962
+ stdout.write(`\x1B[1m${item.featurePath} :: ${item.scenarioName}\x1B[0m
963
+ `);
964
+ stdout.write(` ${item.steps.replaceAll("\n", "\n ")}
965
+
966
+ `);
967
+ stdout.write(` ${color}\x1B[1m${item.updateMessage}\x1B[0m
968
+ `);
969
+ stdout.write(` ${item.reason.replaceAll("\n", "\n ")}
970
+ `);
971
+ stdout.write(` \u{1F4A1} ${item.advice.replaceAll("\n", "\n ")}
972
+ `);
973
+ }
974
+ for (const err of result.errors) {
975
+ stderr.write(`
976
+ \x1B[31m${err.featurePath} :: ${err.scenarioName}\x1B[0m
977
+ `);
978
+ stderr.write(` ${err.error.replaceAll("\n", "\n ")}
979
+ `);
980
+ }
981
+ process.exit(result.errors.length > 0 ? 1 : 0);
982
+ }
17
983
  function disableEcho() {
18
984
  process.stdout.write("\x1B[?25l");
19
985
  process.stdout.write("\x1B[8m");
@@ -55,7 +1021,7 @@ async function runExplore(info, actions, storagePath) {
55
1021
  const { stdout } = process;
56
1022
  while (actions.length > 0) {
57
1023
  stdout.write(`
58
- \x1B[1m${info.title}\x1B[0m
1024
+ \x1B[1m${info.name}\x1B[0m
59
1025
  `);
60
1026
  stdout.write("What do you want to test? Choose one of the following options:\n");
61
1027
  let count = 1;
@@ -146,6 +1112,9 @@ program.command("run").argument("<target>", "Target URL or project").argument("<
146
1112
  const feature = await fs2__default.readFile(featureFile, "utf-8");
147
1113
  await run(target, feature, { headless: false, journal: createJournal(opts) });
148
1114
  });
1115
+ program.command("explain").description("Explain failures from the latest letsrunit run").option("--db <path>", "Path to letsrunit SQLite DB").option("--artifacts <path>", "Path to letsrunit artifacts directory").action(async (opts) => {
1116
+ await runExplain(opts);
1117
+ });
149
1118
  program.parse();
150
1119
  //# sourceMappingURL=index.js.map
151
1120
  //# sourceMappingURL=index.js.map