@socketsecurity/lib 3.3.0 → 3.3.1

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.
@@ -1,4 +1,3362 @@
1
- 'use strict'
1
+ "use strict";
2
+ /**
3
+ * Bundled from @inquirer/checkbox
4
+ * This is a zero-dependency bundle created by esbuild.
5
+ */
6
+ "use strict";
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
+ var __commonJS = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
2
13
 
3
- // Failed to bundle @inquirer/checkbox: Package "@inquirer/checkbox" is not installed. Please install it with: pnpm add -D @inquirer/checkbox
4
- throw new Error('Failed to bundle @inquirer/checkbox')
14
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
15
+ var require_key = __commonJS({
16
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js"(exports2) {
17
+ "use strict";
18
+ Object.defineProperty(exports2, "__esModule", { value: true });
19
+ exports2.isEnterKey = exports2.isNumberKey = exports2.isTabKey = exports2.isBackspaceKey = exports2.isSpaceKey = exports2.isDownKey = exports2.isUpKey = void 0;
20
+ var isUpKey = /* @__PURE__ */ __name((key, keybindings = []) => (
21
+ // The up key
22
+ key.name === "up" || // Vim keybinding: hjkl keys map to left/down/up/right
23
+ keybindings.includes("vim") && key.name === "k" || // Emacs keybinding: Ctrl+P means "previous" in Emacs navigation conventions
24
+ keybindings.includes("emacs") && key.ctrl && key.name === "p"
25
+ ), "isUpKey");
26
+ exports2.isUpKey = isUpKey;
27
+ var isDownKey = /* @__PURE__ */ __name((key, keybindings = []) => (
28
+ // The down key
29
+ key.name === "down" || // Vim keybinding: hjkl keys map to left/down/up/right
30
+ keybindings.includes("vim") && key.name === "j" || // Emacs keybinding: Ctrl+N means "next" in Emacs navigation conventions
31
+ keybindings.includes("emacs") && key.ctrl && key.name === "n"
32
+ ), "isDownKey");
33
+ exports2.isDownKey = isDownKey;
34
+ var isSpaceKey = /* @__PURE__ */ __name((key) => key.name === "space", "isSpaceKey");
35
+ exports2.isSpaceKey = isSpaceKey;
36
+ var isBackspaceKey = /* @__PURE__ */ __name((key) => key.name === "backspace", "isBackspaceKey");
37
+ exports2.isBackspaceKey = isBackspaceKey;
38
+ var isTabKey = /* @__PURE__ */ __name((key) => key.name === "tab", "isTabKey");
39
+ exports2.isTabKey = isTabKey;
40
+ var isNumberKey = /* @__PURE__ */ __name((key) => "1234567890".includes(key.name), "isNumberKey");
41
+ exports2.isNumberKey = isNumberKey;
42
+ var isEnterKey = /* @__PURE__ */ __name((key) => key.name === "enter" || key.name === "return", "isEnterKey");
43
+ exports2.isEnterKey = isEnterKey;
44
+ }
45
+ });
46
+
47
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/errors.js
48
+ var require_errors = __commonJS({
49
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/errors.js"(exports2) {
50
+ "use strict";
51
+ Object.defineProperty(exports2, "__esModule", { value: true });
52
+ exports2.ValidationError = exports2.HookError = exports2.ExitPromptError = exports2.CancelPromptError = exports2.AbortPromptError = void 0;
53
+ var AbortPromptError = class extends Error {
54
+ static {
55
+ __name(this, "AbortPromptError");
56
+ }
57
+ name = "AbortPromptError";
58
+ message = "Prompt was aborted";
59
+ constructor(options) {
60
+ super();
61
+ this.cause = options?.cause;
62
+ }
63
+ };
64
+ exports2.AbortPromptError = AbortPromptError;
65
+ var CancelPromptError = class extends Error {
66
+ static {
67
+ __name(this, "CancelPromptError");
68
+ }
69
+ name = "CancelPromptError";
70
+ message = "Prompt was canceled";
71
+ };
72
+ exports2.CancelPromptError = CancelPromptError;
73
+ var ExitPromptError = class extends Error {
74
+ static {
75
+ __name(this, "ExitPromptError");
76
+ }
77
+ name = "ExitPromptError";
78
+ };
79
+ exports2.ExitPromptError = ExitPromptError;
80
+ var HookError = class extends Error {
81
+ static {
82
+ __name(this, "HookError");
83
+ }
84
+ name = "HookError";
85
+ };
86
+ exports2.HookError = HookError;
87
+ var ValidationError = class extends Error {
88
+ static {
89
+ __name(this, "ValidationError");
90
+ }
91
+ name = "ValidationError";
92
+ };
93
+ exports2.ValidationError = ValidationError;
94
+ }
95
+ });
96
+
97
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js
98
+ var require_hook_engine = __commonJS({
99
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js"(exports2) {
100
+ "use strict";
101
+ Object.defineProperty(exports2, "__esModule", { value: true });
102
+ exports2.effectScheduler = void 0;
103
+ exports2.withHooks = withHooks;
104
+ exports2.readline = readline;
105
+ exports2.withUpdates = withUpdates;
106
+ exports2.withPointer = withPointer;
107
+ exports2.handleChange = handleChange;
108
+ var node_async_hooks_1 = require("node:async_hooks");
109
+ var errors_ts_1 = require_errors();
110
+ var hookStorage = new node_async_hooks_1.AsyncLocalStorage();
111
+ function createStore(rl) {
112
+ const store = {
113
+ rl,
114
+ hooks: [],
115
+ hooksCleanup: [],
116
+ hooksEffect: [],
117
+ index: 0,
118
+ handleChange() {
119
+ }
120
+ };
121
+ return store;
122
+ }
123
+ __name(createStore, "createStore");
124
+ function withHooks(rl, cb) {
125
+ const store = createStore(rl);
126
+ return hookStorage.run(store, () => {
127
+ function cycle(render) {
128
+ store.handleChange = () => {
129
+ store.index = 0;
130
+ render();
131
+ };
132
+ store.handleChange();
133
+ }
134
+ __name(cycle, "cycle");
135
+ return cb(cycle);
136
+ });
137
+ }
138
+ __name(withHooks, "withHooks");
139
+ function getStore() {
140
+ const store = hookStorage.getStore();
141
+ if (!store) {
142
+ throw new errors_ts_1.HookError("[Inquirer] Hook functions can only be called from within a prompt");
143
+ }
144
+ return store;
145
+ }
146
+ __name(getStore, "getStore");
147
+ function readline() {
148
+ return getStore().rl;
149
+ }
150
+ __name(readline, "readline");
151
+ function withUpdates(fn) {
152
+ const wrapped = /* @__PURE__ */ __name((...args) => {
153
+ const store = getStore();
154
+ let shouldUpdate = false;
155
+ const oldHandleChange = store.handleChange;
156
+ store.handleChange = () => {
157
+ shouldUpdate = true;
158
+ };
159
+ const returnValue = fn(...args);
160
+ if (shouldUpdate) {
161
+ oldHandleChange();
162
+ }
163
+ store.handleChange = oldHandleChange;
164
+ return returnValue;
165
+ }, "wrapped");
166
+ return node_async_hooks_1.AsyncResource.bind(wrapped);
167
+ }
168
+ __name(withUpdates, "withUpdates");
169
+ function withPointer(cb) {
170
+ const store = getStore();
171
+ const { index } = store;
172
+ const pointer = {
173
+ get() {
174
+ return store.hooks[index];
175
+ },
176
+ set(value) {
177
+ store.hooks[index] = value;
178
+ },
179
+ initialized: index in store.hooks
180
+ };
181
+ const returnValue = cb(pointer);
182
+ store.index++;
183
+ return returnValue;
184
+ }
185
+ __name(withPointer, "withPointer");
186
+ function handleChange() {
187
+ getStore().handleChange();
188
+ }
189
+ __name(handleChange, "handleChange");
190
+ exports2.effectScheduler = {
191
+ queue(cb) {
192
+ const store = getStore();
193
+ const { index } = store;
194
+ store.hooksEffect.push(() => {
195
+ store.hooksCleanup[index]?.();
196
+ const cleanFn = cb(readline());
197
+ if (cleanFn != null && typeof cleanFn !== "function") {
198
+ throw new errors_ts_1.ValidationError("useEffect return value must be a cleanup function or nothing.");
199
+ }
200
+ store.hooksCleanup[index] = cleanFn;
201
+ });
202
+ },
203
+ run() {
204
+ const store = getStore();
205
+ withUpdates(() => {
206
+ store.hooksEffect.forEach((effect) => {
207
+ effect();
208
+ });
209
+ store.hooksEffect.length = 0;
210
+ })();
211
+ },
212
+ clearAll() {
213
+ const store = getStore();
214
+ store.hooksCleanup.forEach((cleanFn) => {
215
+ cleanFn?.();
216
+ });
217
+ store.hooksEffect.length = 0;
218
+ store.hooksCleanup.length = 0;
219
+ }
220
+ };
221
+ }
222
+ });
223
+
224
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js
225
+ var require_use_state = __commonJS({
226
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js"(exports2) {
227
+ "use strict";
228
+ Object.defineProperty(exports2, "__esModule", { value: true });
229
+ exports2.useState = useState;
230
+ var node_async_hooks_1 = require("node:async_hooks");
231
+ var hook_engine_ts_1 = require_hook_engine();
232
+ function useState(defaultValue) {
233
+ return (0, hook_engine_ts_1.withPointer)((pointer) => {
234
+ const setState = node_async_hooks_1.AsyncResource.bind(/* @__PURE__ */ __name(function setState2(newValue) {
235
+ if (pointer.get() !== newValue) {
236
+ pointer.set(newValue);
237
+ (0, hook_engine_ts_1.handleChange)();
238
+ }
239
+ }, "setState"));
240
+ if (pointer.initialized) {
241
+ return [pointer.get(), setState];
242
+ }
243
+ const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
244
+ pointer.set(value);
245
+ return [value, setState];
246
+ });
247
+ }
248
+ __name(useState, "useState");
249
+ }
250
+ });
251
+
252
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js
253
+ var require_use_effect = __commonJS({
254
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js"(exports2) {
255
+ "use strict";
256
+ Object.defineProperty(exports2, "__esModule", { value: true });
257
+ exports2.useEffect = useEffect;
258
+ var hook_engine_ts_1 = require_hook_engine();
259
+ function useEffect(cb, depArray) {
260
+ (0, hook_engine_ts_1.withPointer)((pointer) => {
261
+ const oldDeps = pointer.get();
262
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
263
+ if (hasChanged) {
264
+ hook_engine_ts_1.effectScheduler.queue(cb);
265
+ }
266
+ pointer.set(depArray);
267
+ });
268
+ }
269
+ __name(useEffect, "useEffect");
270
+ }
271
+ });
272
+
273
+ // node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js
274
+ var require_yoctocolors_cjs = __commonJS({
275
+ "node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js"(exports2, module2) {
276
+ var tty = require("node:tty");
277
+ var hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
278
+ var format = /* @__PURE__ */ __name((open, close) => {
279
+ if (!hasColors) {
280
+ return (input) => input;
281
+ }
282
+ const openCode = `\x1B[${open}m`;
283
+ const closeCode = `\x1B[${close}m`;
284
+ return (input) => {
285
+ const string = input + "";
286
+ let index = string.indexOf(closeCode);
287
+ if (index === -1) {
288
+ return openCode + string + closeCode;
289
+ }
290
+ let result = openCode;
291
+ let lastIndex = 0;
292
+ const reopenOnNestedClose = close === 22;
293
+ const replaceCode = (reopenOnNestedClose ? closeCode : "") + openCode;
294
+ while (index !== -1) {
295
+ result += string.slice(lastIndex, index) + replaceCode;
296
+ lastIndex = index + closeCode.length;
297
+ index = string.indexOf(closeCode, lastIndex);
298
+ }
299
+ result += string.slice(lastIndex) + closeCode;
300
+ return result;
301
+ };
302
+ }, "format");
303
+ var colors = {};
304
+ colors.reset = format(0, 0);
305
+ colors.bold = format(1, 22);
306
+ colors.dim = format(2, 22);
307
+ colors.italic = format(3, 23);
308
+ colors.underline = format(4, 24);
309
+ colors.overline = format(53, 55);
310
+ colors.inverse = format(7, 27);
311
+ colors.hidden = format(8, 28);
312
+ colors.strikethrough = format(9, 29);
313
+ colors.black = format(30, 39);
314
+ colors.red = format(31, 39);
315
+ colors.green = format(32, 39);
316
+ colors.yellow = format(33, 39);
317
+ colors.blue = format(34, 39);
318
+ colors.magenta = format(35, 39);
319
+ colors.cyan = format(36, 39);
320
+ colors.white = format(37, 39);
321
+ colors.gray = format(90, 39);
322
+ colors.bgBlack = format(40, 49);
323
+ colors.bgRed = format(41, 49);
324
+ colors.bgGreen = format(42, 49);
325
+ colors.bgYellow = format(43, 49);
326
+ colors.bgBlue = format(44, 49);
327
+ colors.bgMagenta = format(45, 49);
328
+ colors.bgCyan = format(46, 49);
329
+ colors.bgWhite = format(47, 49);
330
+ colors.bgGray = format(100, 49);
331
+ colors.redBright = format(91, 39);
332
+ colors.greenBright = format(92, 39);
333
+ colors.yellowBright = format(93, 39);
334
+ colors.blueBright = format(94, 39);
335
+ colors.magentaBright = format(95, 39);
336
+ colors.cyanBright = format(96, 39);
337
+ colors.whiteBright = format(97, 39);
338
+ colors.bgRedBright = format(101, 49);
339
+ colors.bgGreenBright = format(102, 49);
340
+ colors.bgYellowBright = format(103, 49);
341
+ colors.bgBlueBright = format(104, 49);
342
+ colors.bgMagentaBright = format(105, 49);
343
+ colors.bgCyanBright = format(106, 49);
344
+ colors.bgWhiteBright = format(107, 49);
345
+ module2.exports = colors;
346
+ }
347
+ });
348
+
349
+ // node_modules/.pnpm/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/commonjs/index.js
350
+ var require_commonjs = __commonJS({
351
+ "node_modules/.pnpm/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/commonjs/index.js"(exports2) {
352
+ "use strict";
353
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
354
+ return mod && mod.__esModule ? mod : { "default": mod };
355
+ };
356
+ Object.defineProperty(exports2, "__esModule", { value: true });
357
+ exports2.replaceSymbols = exports2.fallbackSymbols = exports2.mainSymbols = void 0;
358
+ var node_process_1 = __importDefault(require("node:process"));
359
+ function isUnicodeSupported() {
360
+ if (node_process_1.default.platform !== "win32") {
361
+ return node_process_1.default.env["TERM"] !== "linux";
362
+ }
363
+ return Boolean(node_process_1.default.env["WT_SESSION"]) || // Windows Terminal
364
+ Boolean(node_process_1.default.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
365
+ node_process_1.default.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
366
+ node_process_1.default.env["TERM_PROGRAM"] === "Terminus-Sublime" || node_process_1.default.env["TERM_PROGRAM"] === "vscode" || node_process_1.default.env["TERM"] === "xterm-256color" || node_process_1.default.env["TERM"] === "alacritty" || node_process_1.default.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
367
+ }
368
+ __name(isUnicodeSupported, "isUnicodeSupported");
369
+ var common = {
370
+ circleQuestionMark: "(?)",
371
+ questionMarkPrefix: "(?)",
372
+ square: "█",
373
+ squareDarkShade: "▓",
374
+ squareMediumShade: "▒",
375
+ squareLightShade: "░",
376
+ squareTop: "▀",
377
+ squareBottom: "▄",
378
+ squareLeft: "▌",
379
+ squareRight: "▐",
380
+ squareCenter: "■",
381
+ bullet: "●",
382
+ dot: "․",
383
+ ellipsis: "…",
384
+ pointerSmall: "›",
385
+ triangleUp: "▲",
386
+ triangleUpSmall: "▴",
387
+ triangleDown: "▼",
388
+ triangleDownSmall: "▾",
389
+ triangleLeftSmall: "◂",
390
+ triangleRightSmall: "▸",
391
+ home: "⌂",
392
+ heart: "♥",
393
+ musicNote: "♪",
394
+ musicNoteBeamed: "♫",
395
+ arrowUp: "↑",
396
+ arrowDown: "↓",
397
+ arrowLeft: "←",
398
+ arrowRight: "→",
399
+ arrowLeftRight: "↔",
400
+ arrowUpDown: "↕",
401
+ almostEqual: "≈",
402
+ notEqual: "≠",
403
+ lessOrEqual: "≤",
404
+ greaterOrEqual: "≥",
405
+ identical: "≡",
406
+ infinity: "∞",
407
+ subscriptZero: "₀",
408
+ subscriptOne: "₁",
409
+ subscriptTwo: "₂",
410
+ subscriptThree: "₃",
411
+ subscriptFour: "₄",
412
+ subscriptFive: "₅",
413
+ subscriptSix: "₆",
414
+ subscriptSeven: "₇",
415
+ subscriptEight: "₈",
416
+ subscriptNine: "₉",
417
+ oneHalf: "½",
418
+ oneThird: "⅓",
419
+ oneQuarter: "¼",
420
+ oneFifth: "⅕",
421
+ oneSixth: "⅙",
422
+ oneEighth: "⅛",
423
+ twoThirds: "⅔",
424
+ twoFifths: "⅖",
425
+ threeQuarters: "¾",
426
+ threeFifths: "⅗",
427
+ threeEighths: "⅜",
428
+ fourFifths: "⅘",
429
+ fiveSixths: "⅚",
430
+ fiveEighths: "⅝",
431
+ sevenEighths: "⅞",
432
+ line: "─",
433
+ lineBold: "━",
434
+ lineDouble: "═",
435
+ lineDashed0: "┄",
436
+ lineDashed1: "┅",
437
+ lineDashed2: "┈",
438
+ lineDashed3: "┉",
439
+ lineDashed4: "╌",
440
+ lineDashed5: "╍",
441
+ lineDashed6: "╴",
442
+ lineDashed7: "╶",
443
+ lineDashed8: "╸",
444
+ lineDashed9: "╺",
445
+ lineDashed10: "╼",
446
+ lineDashed11: "╾",
447
+ lineDashed12: "−",
448
+ lineDashed13: "–",
449
+ lineDashed14: "‐",
450
+ lineDashed15: "⁃",
451
+ lineVertical: "│",
452
+ lineVerticalBold: "┃",
453
+ lineVerticalDouble: "║",
454
+ lineVerticalDashed0: "┆",
455
+ lineVerticalDashed1: "┇",
456
+ lineVerticalDashed2: "┊",
457
+ lineVerticalDashed3: "┋",
458
+ lineVerticalDashed4: "╎",
459
+ lineVerticalDashed5: "╏",
460
+ lineVerticalDashed6: "╵",
461
+ lineVerticalDashed7: "╷",
462
+ lineVerticalDashed8: "╹",
463
+ lineVerticalDashed9: "╻",
464
+ lineVerticalDashed10: "╽",
465
+ lineVerticalDashed11: "╿",
466
+ lineDownLeft: "┐",
467
+ lineDownLeftArc: "╮",
468
+ lineDownBoldLeftBold: "┓",
469
+ lineDownBoldLeft: "┒",
470
+ lineDownLeftBold: "┑",
471
+ lineDownDoubleLeftDouble: "╗",
472
+ lineDownDoubleLeft: "╖",
473
+ lineDownLeftDouble: "╕",
474
+ lineDownRight: "┌",
475
+ lineDownRightArc: "╭",
476
+ lineDownBoldRightBold: "┏",
477
+ lineDownBoldRight: "┎",
478
+ lineDownRightBold: "┍",
479
+ lineDownDoubleRightDouble: "╔",
480
+ lineDownDoubleRight: "╓",
481
+ lineDownRightDouble: "╒",
482
+ lineUpLeft: "┘",
483
+ lineUpLeftArc: "╯",
484
+ lineUpBoldLeftBold: "┛",
485
+ lineUpBoldLeft: "┚",
486
+ lineUpLeftBold: "┙",
487
+ lineUpDoubleLeftDouble: "╝",
488
+ lineUpDoubleLeft: "╜",
489
+ lineUpLeftDouble: "╛",
490
+ lineUpRight: "└",
491
+ lineUpRightArc: "╰",
492
+ lineUpBoldRightBold: "┗",
493
+ lineUpBoldRight: "┖",
494
+ lineUpRightBold: "┕",
495
+ lineUpDoubleRightDouble: "╚",
496
+ lineUpDoubleRight: "╙",
497
+ lineUpRightDouble: "╘",
498
+ lineUpDownLeft: "┤",
499
+ lineUpBoldDownBoldLeftBold: "┫",
500
+ lineUpBoldDownBoldLeft: "┨",
501
+ lineUpDownLeftBold: "┥",
502
+ lineUpBoldDownLeftBold: "┩",
503
+ lineUpDownBoldLeftBold: "┪",
504
+ lineUpDownBoldLeft: "┧",
505
+ lineUpBoldDownLeft: "┦",
506
+ lineUpDoubleDownDoubleLeftDouble: "╣",
507
+ lineUpDoubleDownDoubleLeft: "╢",
508
+ lineUpDownLeftDouble: "╡",
509
+ lineUpDownRight: "├",
510
+ lineUpBoldDownBoldRightBold: "┣",
511
+ lineUpBoldDownBoldRight: "┠",
512
+ lineUpDownRightBold: "┝",
513
+ lineUpBoldDownRightBold: "┡",
514
+ lineUpDownBoldRightBold: "┢",
515
+ lineUpDownBoldRight: "┟",
516
+ lineUpBoldDownRight: "┞",
517
+ lineUpDoubleDownDoubleRightDouble: "╠",
518
+ lineUpDoubleDownDoubleRight: "╟",
519
+ lineUpDownRightDouble: "╞",
520
+ lineDownLeftRight: "┬",
521
+ lineDownBoldLeftBoldRightBold: "┳",
522
+ lineDownLeftBoldRightBold: "┯",
523
+ lineDownBoldLeftRight: "┰",
524
+ lineDownBoldLeftBoldRight: "┱",
525
+ lineDownBoldLeftRightBold: "┲",
526
+ lineDownLeftRightBold: "┮",
527
+ lineDownLeftBoldRight: "┭",
528
+ lineDownDoubleLeftDoubleRightDouble: "╦",
529
+ lineDownDoubleLeftRight: "╥",
530
+ lineDownLeftDoubleRightDouble: "╤",
531
+ lineUpLeftRight: "┴",
532
+ lineUpBoldLeftBoldRightBold: "┻",
533
+ lineUpLeftBoldRightBold: "┷",
534
+ lineUpBoldLeftRight: "┸",
535
+ lineUpBoldLeftBoldRight: "┹",
536
+ lineUpBoldLeftRightBold: "┺",
537
+ lineUpLeftRightBold: "┶",
538
+ lineUpLeftBoldRight: "┵",
539
+ lineUpDoubleLeftDoubleRightDouble: "╩",
540
+ lineUpDoubleLeftRight: "╨",
541
+ lineUpLeftDoubleRightDouble: "╧",
542
+ lineUpDownLeftRight: "┼",
543
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
544
+ lineUpDownBoldLeftBoldRightBold: "╈",
545
+ lineUpBoldDownLeftBoldRightBold: "╇",
546
+ lineUpBoldDownBoldLeftRightBold: "╊",
547
+ lineUpBoldDownBoldLeftBoldRight: "╉",
548
+ lineUpBoldDownLeftRight: "╀",
549
+ lineUpDownBoldLeftRight: "╁",
550
+ lineUpDownLeftBoldRight: "┽",
551
+ lineUpDownLeftRightBold: "┾",
552
+ lineUpBoldDownBoldLeftRight: "╂",
553
+ lineUpDownLeftBoldRightBold: "┿",
554
+ lineUpBoldDownLeftBoldRight: "╃",
555
+ lineUpBoldDownLeftRightBold: "╄",
556
+ lineUpDownBoldLeftBoldRight: "╅",
557
+ lineUpDownBoldLeftRightBold: "╆",
558
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
559
+ lineUpDoubleDownDoubleLeftRight: "╫",
560
+ lineUpDownLeftDoubleRightDouble: "╪",
561
+ lineCross: "╳",
562
+ lineBackslash: "╲",
563
+ lineSlash: "╱"
564
+ };
565
+ var specialMainSymbols = {
566
+ tick: "✔",
567
+ info: "ℹ",
568
+ warning: "⚠",
569
+ cross: "✘",
570
+ squareSmall: "◻",
571
+ squareSmallFilled: "◼",
572
+ circle: "◯",
573
+ circleFilled: "◉",
574
+ circleDotted: "◌",
575
+ circleDouble: "◎",
576
+ circleCircle: "ⓞ",
577
+ circleCross: "ⓧ",
578
+ circlePipe: "Ⓘ",
579
+ radioOn: "◉",
580
+ radioOff: "◯",
581
+ checkboxOn: "☒",
582
+ checkboxOff: "☐",
583
+ checkboxCircleOn: "ⓧ",
584
+ checkboxCircleOff: "Ⓘ",
585
+ pointer: "❯",
586
+ triangleUpOutline: "△",
587
+ triangleLeft: "◀",
588
+ triangleRight: "▶",
589
+ lozenge: "◆",
590
+ lozengeOutline: "◇",
591
+ hamburger: "☰",
592
+ smiley: "㋡",
593
+ mustache: "෴",
594
+ star: "★",
595
+ play: "▶",
596
+ nodejs: "⬢",
597
+ oneSeventh: "⅐",
598
+ oneNinth: "⅑",
599
+ oneTenth: "⅒"
600
+ };
601
+ var specialFallbackSymbols = {
602
+ tick: "√",
603
+ info: "i",
604
+ warning: "‼",
605
+ cross: "×",
606
+ squareSmall: "□",
607
+ squareSmallFilled: "■",
608
+ circle: "( )",
609
+ circleFilled: "(*)",
610
+ circleDotted: "( )",
611
+ circleDouble: "( )",
612
+ circleCircle: "(○)",
613
+ circleCross: "(×)",
614
+ circlePipe: "(│)",
615
+ radioOn: "(*)",
616
+ radioOff: "( )",
617
+ checkboxOn: "[×]",
618
+ checkboxOff: "[ ]",
619
+ checkboxCircleOn: "(×)",
620
+ checkboxCircleOff: "( )",
621
+ pointer: ">",
622
+ triangleUpOutline: "∆",
623
+ triangleLeft: "◄",
624
+ triangleRight: "►",
625
+ lozenge: "♦",
626
+ lozengeOutline: "◊",
627
+ hamburger: "≡",
628
+ smiley: "☺",
629
+ mustache: "┌─┐",
630
+ star: "✶",
631
+ play: "►",
632
+ nodejs: "♦",
633
+ oneSeventh: "1/7",
634
+ oneNinth: "1/9",
635
+ oneTenth: "1/10"
636
+ };
637
+ exports2.mainSymbols = {
638
+ ...common,
639
+ ...specialMainSymbols
640
+ };
641
+ exports2.fallbackSymbols = {
642
+ ...common,
643
+ ...specialFallbackSymbols
644
+ };
645
+ var shouldUseMain = isUnicodeSupported();
646
+ var figures = shouldUseMain ? exports2.mainSymbols : exports2.fallbackSymbols;
647
+ exports2.default = figures;
648
+ var replacements = Object.entries(specialMainSymbols);
649
+ var replaceSymbols = /* @__PURE__ */ __name((string, { useFallback = !shouldUseMain } = {}) => {
650
+ if (useFallback) {
651
+ for (const [key, mainSymbol] of replacements) {
652
+ const fallbackSymbol = exports2.fallbackSymbols[key];
653
+ if (!fallbackSymbol) {
654
+ throw new Error(`Unable to find fallback for ${key}`);
655
+ }
656
+ string = string.replaceAll(mainSymbol, fallbackSymbol);
657
+ }
658
+ }
659
+ return string;
660
+ }, "replaceSymbols");
661
+ exports2.replaceSymbols = replaceSymbols;
662
+ }
663
+ });
664
+
665
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/theme.js
666
+ var require_theme = __commonJS({
667
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/theme.js"(exports2) {
668
+ "use strict";
669
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
670
+ return mod && mod.__esModule ? mod : { "default": mod };
671
+ };
672
+ Object.defineProperty(exports2, "__esModule", { value: true });
673
+ exports2.defaultTheme = void 0;
674
+ var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
675
+ var figures_1 = __importDefault(require_commonjs());
676
+ exports2.defaultTheme = {
677
+ prefix: {
678
+ idle: yoctocolors_cjs_1.default.blue("?"),
679
+ done: yoctocolors_cjs_1.default.green(figures_1.default.tick)
680
+ },
681
+ spinner: {
682
+ interval: 80,
683
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => yoctocolors_cjs_1.default.yellow(frame))
684
+ },
685
+ style: {
686
+ answer: yoctocolors_cjs_1.default.cyan,
687
+ message: yoctocolors_cjs_1.default.bold,
688
+ error: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.red(`> ${text}`), "error"),
689
+ defaultAnswer: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.dim(`(${text})`), "defaultAnswer"),
690
+ help: yoctocolors_cjs_1.default.dim,
691
+ highlight: yoctocolors_cjs_1.default.cyan,
692
+ key: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.cyan(yoctocolors_cjs_1.default.bold(`<${text}>`)), "key")
693
+ }
694
+ };
695
+ }
696
+ });
697
+
698
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js
699
+ var require_make_theme = __commonJS({
700
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js"(exports2) {
701
+ "use strict";
702
+ Object.defineProperty(exports2, "__esModule", { value: true });
703
+ exports2.makeTheme = makeTheme;
704
+ var theme_ts_1 = require_theme();
705
+ function isPlainObject(value) {
706
+ if (typeof value !== "object" || value === null)
707
+ return false;
708
+ let proto = value;
709
+ while (Object.getPrototypeOf(proto) !== null) {
710
+ proto = Object.getPrototypeOf(proto);
711
+ }
712
+ return Object.getPrototypeOf(value) === proto;
713
+ }
714
+ __name(isPlainObject, "isPlainObject");
715
+ function deepMerge(...objects) {
716
+ const output = {};
717
+ for (const obj of objects) {
718
+ for (const [key, value] of Object.entries(obj)) {
719
+ const prevValue = output[key];
720
+ output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
721
+ }
722
+ }
723
+ return output;
724
+ }
725
+ __name(deepMerge, "deepMerge");
726
+ function makeTheme(...themes) {
727
+ const themesToMerge = [
728
+ theme_ts_1.defaultTheme,
729
+ ...themes.filter((theme) => theme != null)
730
+ ];
731
+ return deepMerge(...themesToMerge);
732
+ }
733
+ __name(makeTheme, "makeTheme");
734
+ }
735
+ });
736
+
737
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js
738
+ var require_use_prefix = __commonJS({
739
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js"(exports2) {
740
+ "use strict";
741
+ Object.defineProperty(exports2, "__esModule", { value: true });
742
+ exports2.usePrefix = usePrefix;
743
+ var use_state_ts_1 = require_use_state();
744
+ var use_effect_ts_1 = require_use_effect();
745
+ var make_theme_ts_1 = require_make_theme();
746
+ function usePrefix({ status = "idle", theme }) {
747
+ const [showLoader, setShowLoader] = (0, use_state_ts_1.useState)(false);
748
+ const [tick, setTick] = (0, use_state_ts_1.useState)(0);
749
+ const { prefix, spinner } = (0, make_theme_ts_1.makeTheme)(theme);
750
+ (0, use_effect_ts_1.useEffect)(() => {
751
+ if (status === "loading") {
752
+ let tickInterval;
753
+ let inc = -1;
754
+ const delayTimeout = setTimeout(() => {
755
+ setShowLoader(true);
756
+ tickInterval = setInterval(() => {
757
+ inc = inc + 1;
758
+ setTick(inc % spinner.frames.length);
759
+ }, spinner.interval);
760
+ }, 300);
761
+ return () => {
762
+ clearTimeout(delayTimeout);
763
+ clearInterval(tickInterval);
764
+ };
765
+ } else {
766
+ setShowLoader(false);
767
+ }
768
+ }, [status]);
769
+ if (showLoader) {
770
+ return spinner.frames[tick];
771
+ }
772
+ const iconName = status === "loading" ? "idle" : status;
773
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
774
+ }
775
+ __name(usePrefix, "usePrefix");
776
+ }
777
+ });
778
+
779
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js
780
+ var require_use_memo = __commonJS({
781
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js"(exports2) {
782
+ "use strict";
783
+ Object.defineProperty(exports2, "__esModule", { value: true });
784
+ exports2.useMemo = useMemo;
785
+ var hook_engine_ts_1 = require_hook_engine();
786
+ function useMemo(fn, dependencies) {
787
+ return (0, hook_engine_ts_1.withPointer)((pointer) => {
788
+ const prev = pointer.get();
789
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
790
+ const value = fn();
791
+ pointer.set({ value, dependencies });
792
+ return value;
793
+ }
794
+ return prev.value;
795
+ });
796
+ }
797
+ __name(useMemo, "useMemo");
798
+ }
799
+ });
800
+
801
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js
802
+ var require_use_ref = __commonJS({
803
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js"(exports2) {
804
+ "use strict";
805
+ Object.defineProperty(exports2, "__esModule", { value: true });
806
+ exports2.useRef = useRef;
807
+ var use_state_ts_1 = require_use_state();
808
+ function useRef(val) {
809
+ return (0, use_state_ts_1.useState)({ current: val })[0];
810
+ }
811
+ __name(useRef, "useRef");
812
+ }
813
+ });
814
+
815
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js
816
+ var require_use_keypress = __commonJS({
817
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js"(exports2) {
818
+ "use strict";
819
+ Object.defineProperty(exports2, "__esModule", { value: true });
820
+ exports2.useKeypress = useKeypress;
821
+ var use_ref_ts_1 = require_use_ref();
822
+ var use_effect_ts_1 = require_use_effect();
823
+ var hook_engine_ts_1 = require_hook_engine();
824
+ function useKeypress(userHandler) {
825
+ const signal = (0, use_ref_ts_1.useRef)(userHandler);
826
+ signal.current = userHandler;
827
+ (0, use_effect_ts_1.useEffect)((rl) => {
828
+ let ignore = false;
829
+ const handler = (0, hook_engine_ts_1.withUpdates)((_input, event) => {
830
+ if (ignore)
831
+ return;
832
+ void signal.current(event, rl);
833
+ });
834
+ rl.input.on("keypress", handler);
835
+ return () => {
836
+ ignore = true;
837
+ rl.input.removeListener("keypress", handler);
838
+ };
839
+ }, []);
840
+ }
841
+ __name(useKeypress, "useKeypress");
842
+ }
843
+ });
844
+
845
+ // node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js
846
+ var require_cli_width = __commonJS({
847
+ "node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(exports2, module2) {
848
+ "use strict";
849
+ module2.exports = cliWidth;
850
+ function normalizeOpts(options) {
851
+ const defaultOpts = {
852
+ defaultWidth: 0,
853
+ output: process.stdout,
854
+ tty: require("tty")
855
+ };
856
+ if (!options) {
857
+ return defaultOpts;
858
+ }
859
+ Object.keys(defaultOpts).forEach(function(key) {
860
+ if (!options[key]) {
861
+ options[key] = defaultOpts[key];
862
+ }
863
+ });
864
+ return options;
865
+ }
866
+ __name(normalizeOpts, "normalizeOpts");
867
+ function cliWidth(options) {
868
+ const opts = normalizeOpts(options);
869
+ if (opts.output.getWindowSize) {
870
+ return opts.output.getWindowSize()[0] || opts.defaultWidth;
871
+ }
872
+ if (opts.tty.getWindowSize) {
873
+ return opts.tty.getWindowSize()[1] || opts.defaultWidth;
874
+ }
875
+ if (opts.output.columns) {
876
+ return opts.output.columns;
877
+ }
878
+ if (process.env.CLI_WIDTH) {
879
+ const width = parseInt(process.env.CLI_WIDTH, 10);
880
+ if (!isNaN(width) && width !== 0) {
881
+ return width;
882
+ }
883
+ }
884
+ return opts.defaultWidth;
885
+ }
886
+ __name(cliWidth, "cliWidth");
887
+ }
888
+ });
889
+
890
+ // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
891
+ var require_ansi_regex = __commonJS({
892
+ "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
893
+ "use strict";
894
+ module2.exports = ({ onlyFirst = false } = {}) => {
895
+ const pattern = [
896
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
897
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
898
+ ].join("|");
899
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
900
+ };
901
+ }
902
+ });
903
+
904
+ // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
905
+ var require_strip_ansi = __commonJS({
906
+ "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
907
+ "use strict";
908
+ var ansiRegex = require_ansi_regex();
909
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
910
+ }
911
+ });
912
+
913
+ // node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
914
+ var require_is_fullwidth_code_point = __commonJS({
915
+ "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
916
+ "use strict";
917
+ var isFullwidthCodePoint = /* @__PURE__ */ __name((codePoint) => {
918
+ if (Number.isNaN(codePoint)) {
919
+ return false;
920
+ }
921
+ if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
922
+ codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
923
+ codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
924
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
925
+ 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
926
+ 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
927
+ 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
928
+ 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
929
+ 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
930
+ 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
931
+ 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
932
+ 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
933
+ 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
934
+ 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
935
+ 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
936
+ 131072 <= codePoint && codePoint <= 262141)) {
937
+ return true;
938
+ }
939
+ return false;
940
+ }, "isFullwidthCodePoint");
941
+ module2.exports = isFullwidthCodePoint;
942
+ module2.exports.default = isFullwidthCodePoint;
943
+ }
944
+ });
945
+
946
+ // node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
947
+ var require_emoji_regex = __commonJS({
948
+ "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
949
+ "use strict";
950
+ module2.exports = function() {
951
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\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[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
952
+ };
953
+ }
954
+ });
955
+
956
+ // node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
957
+ var require_string_width = __commonJS({
958
+ "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
959
+ "use strict";
960
+ var stripAnsi = require_strip_ansi();
961
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
962
+ var emojiRegex = require_emoji_regex();
963
+ var stringWidth = /* @__PURE__ */ __name((string) => {
964
+ if (typeof string !== "string" || string.length === 0) {
965
+ return 0;
966
+ }
967
+ string = stripAnsi(string);
968
+ if (string.length === 0) {
969
+ return 0;
970
+ }
971
+ string = string.replace(emojiRegex(), " ");
972
+ let width = 0;
973
+ for (let i = 0; i < string.length; i++) {
974
+ const code = string.codePointAt(i);
975
+ if (code <= 31 || code >= 127 && code <= 159) {
976
+ continue;
977
+ }
978
+ if (code >= 768 && code <= 879) {
979
+ continue;
980
+ }
981
+ if (code > 65535) {
982
+ i++;
983
+ }
984
+ width += isFullwidthCodePoint(code) ? 2 : 1;
985
+ }
986
+ return width;
987
+ }, "stringWidth");
988
+ module2.exports = stringWidth;
989
+ module2.exports.default = stringWidth;
990
+ }
991
+ });
992
+
993
+ // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
994
+ var require_color_name = __commonJS({
995
+ "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
996
+ "use strict";
997
+ module2.exports = {
998
+ "aliceblue": [240, 248, 255],
999
+ "antiquewhite": [250, 235, 215],
1000
+ "aqua": [0, 255, 255],
1001
+ "aquamarine": [127, 255, 212],
1002
+ "azure": [240, 255, 255],
1003
+ "beige": [245, 245, 220],
1004
+ "bisque": [255, 228, 196],
1005
+ "black": [0, 0, 0],
1006
+ "blanchedalmond": [255, 235, 205],
1007
+ "blue": [0, 0, 255],
1008
+ "blueviolet": [138, 43, 226],
1009
+ "brown": [165, 42, 42],
1010
+ "burlywood": [222, 184, 135],
1011
+ "cadetblue": [95, 158, 160],
1012
+ "chartreuse": [127, 255, 0],
1013
+ "chocolate": [210, 105, 30],
1014
+ "coral": [255, 127, 80],
1015
+ "cornflowerblue": [100, 149, 237],
1016
+ "cornsilk": [255, 248, 220],
1017
+ "crimson": [220, 20, 60],
1018
+ "cyan": [0, 255, 255],
1019
+ "darkblue": [0, 0, 139],
1020
+ "darkcyan": [0, 139, 139],
1021
+ "darkgoldenrod": [184, 134, 11],
1022
+ "darkgray": [169, 169, 169],
1023
+ "darkgreen": [0, 100, 0],
1024
+ "darkgrey": [169, 169, 169],
1025
+ "darkkhaki": [189, 183, 107],
1026
+ "darkmagenta": [139, 0, 139],
1027
+ "darkolivegreen": [85, 107, 47],
1028
+ "darkorange": [255, 140, 0],
1029
+ "darkorchid": [153, 50, 204],
1030
+ "darkred": [139, 0, 0],
1031
+ "darksalmon": [233, 150, 122],
1032
+ "darkseagreen": [143, 188, 143],
1033
+ "darkslateblue": [72, 61, 139],
1034
+ "darkslategray": [47, 79, 79],
1035
+ "darkslategrey": [47, 79, 79],
1036
+ "darkturquoise": [0, 206, 209],
1037
+ "darkviolet": [148, 0, 211],
1038
+ "deeppink": [255, 20, 147],
1039
+ "deepskyblue": [0, 191, 255],
1040
+ "dimgray": [105, 105, 105],
1041
+ "dimgrey": [105, 105, 105],
1042
+ "dodgerblue": [30, 144, 255],
1043
+ "firebrick": [178, 34, 34],
1044
+ "floralwhite": [255, 250, 240],
1045
+ "forestgreen": [34, 139, 34],
1046
+ "fuchsia": [255, 0, 255],
1047
+ "gainsboro": [220, 220, 220],
1048
+ "ghostwhite": [248, 248, 255],
1049
+ "gold": [255, 215, 0],
1050
+ "goldenrod": [218, 165, 32],
1051
+ "gray": [128, 128, 128],
1052
+ "green": [0, 128, 0],
1053
+ "greenyellow": [173, 255, 47],
1054
+ "grey": [128, 128, 128],
1055
+ "honeydew": [240, 255, 240],
1056
+ "hotpink": [255, 105, 180],
1057
+ "indianred": [205, 92, 92],
1058
+ "indigo": [75, 0, 130],
1059
+ "ivory": [255, 255, 240],
1060
+ "khaki": [240, 230, 140],
1061
+ "lavender": [230, 230, 250],
1062
+ "lavenderblush": [255, 240, 245],
1063
+ "lawngreen": [124, 252, 0],
1064
+ "lemonchiffon": [255, 250, 205],
1065
+ "lightblue": [173, 216, 230],
1066
+ "lightcoral": [240, 128, 128],
1067
+ "lightcyan": [224, 255, 255],
1068
+ "lightgoldenrodyellow": [250, 250, 210],
1069
+ "lightgray": [211, 211, 211],
1070
+ "lightgreen": [144, 238, 144],
1071
+ "lightgrey": [211, 211, 211],
1072
+ "lightpink": [255, 182, 193],
1073
+ "lightsalmon": [255, 160, 122],
1074
+ "lightseagreen": [32, 178, 170],
1075
+ "lightskyblue": [135, 206, 250],
1076
+ "lightslategray": [119, 136, 153],
1077
+ "lightslategrey": [119, 136, 153],
1078
+ "lightsteelblue": [176, 196, 222],
1079
+ "lightyellow": [255, 255, 224],
1080
+ "lime": [0, 255, 0],
1081
+ "limegreen": [50, 205, 50],
1082
+ "linen": [250, 240, 230],
1083
+ "magenta": [255, 0, 255],
1084
+ "maroon": [128, 0, 0],
1085
+ "mediumaquamarine": [102, 205, 170],
1086
+ "mediumblue": [0, 0, 205],
1087
+ "mediumorchid": [186, 85, 211],
1088
+ "mediumpurple": [147, 112, 219],
1089
+ "mediumseagreen": [60, 179, 113],
1090
+ "mediumslateblue": [123, 104, 238],
1091
+ "mediumspringgreen": [0, 250, 154],
1092
+ "mediumturquoise": [72, 209, 204],
1093
+ "mediumvioletred": [199, 21, 133],
1094
+ "midnightblue": [25, 25, 112],
1095
+ "mintcream": [245, 255, 250],
1096
+ "mistyrose": [255, 228, 225],
1097
+ "moccasin": [255, 228, 181],
1098
+ "navajowhite": [255, 222, 173],
1099
+ "navy": [0, 0, 128],
1100
+ "oldlace": [253, 245, 230],
1101
+ "olive": [128, 128, 0],
1102
+ "olivedrab": [107, 142, 35],
1103
+ "orange": [255, 165, 0],
1104
+ "orangered": [255, 69, 0],
1105
+ "orchid": [218, 112, 214],
1106
+ "palegoldenrod": [238, 232, 170],
1107
+ "palegreen": [152, 251, 152],
1108
+ "paleturquoise": [175, 238, 238],
1109
+ "palevioletred": [219, 112, 147],
1110
+ "papayawhip": [255, 239, 213],
1111
+ "peachpuff": [255, 218, 185],
1112
+ "peru": [205, 133, 63],
1113
+ "pink": [255, 192, 203],
1114
+ "plum": [221, 160, 221],
1115
+ "powderblue": [176, 224, 230],
1116
+ "purple": [128, 0, 128],
1117
+ "rebeccapurple": [102, 51, 153],
1118
+ "red": [255, 0, 0],
1119
+ "rosybrown": [188, 143, 143],
1120
+ "royalblue": [65, 105, 225],
1121
+ "saddlebrown": [139, 69, 19],
1122
+ "salmon": [250, 128, 114],
1123
+ "sandybrown": [244, 164, 96],
1124
+ "seagreen": [46, 139, 87],
1125
+ "seashell": [255, 245, 238],
1126
+ "sienna": [160, 82, 45],
1127
+ "silver": [192, 192, 192],
1128
+ "skyblue": [135, 206, 235],
1129
+ "slateblue": [106, 90, 205],
1130
+ "slategray": [112, 128, 144],
1131
+ "slategrey": [112, 128, 144],
1132
+ "snow": [255, 250, 250],
1133
+ "springgreen": [0, 255, 127],
1134
+ "steelblue": [70, 130, 180],
1135
+ "tan": [210, 180, 140],
1136
+ "teal": [0, 128, 128],
1137
+ "thistle": [216, 191, 216],
1138
+ "tomato": [255, 99, 71],
1139
+ "turquoise": [64, 224, 208],
1140
+ "violet": [238, 130, 238],
1141
+ "wheat": [245, 222, 179],
1142
+ "white": [255, 255, 255],
1143
+ "whitesmoke": [245, 245, 245],
1144
+ "yellow": [255, 255, 0],
1145
+ "yellowgreen": [154, 205, 50]
1146
+ };
1147
+ }
1148
+ });
1149
+
1150
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
1151
+ var require_conversions = __commonJS({
1152
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports2, module2) {
1153
+ var cssKeywords = require_color_name();
1154
+ var reverseKeywords = {};
1155
+ for (const key of Object.keys(cssKeywords)) {
1156
+ reverseKeywords[cssKeywords[key]] = key;
1157
+ }
1158
+ var convert = {
1159
+ rgb: { channels: 3, labels: "rgb" },
1160
+ hsl: { channels: 3, labels: "hsl" },
1161
+ hsv: { channels: 3, labels: "hsv" },
1162
+ hwb: { channels: 3, labels: "hwb" },
1163
+ cmyk: { channels: 4, labels: "cmyk" },
1164
+ xyz: { channels: 3, labels: "xyz" },
1165
+ lab: { channels: 3, labels: "lab" },
1166
+ lch: { channels: 3, labels: "lch" },
1167
+ hex: { channels: 1, labels: ["hex"] },
1168
+ keyword: { channels: 1, labels: ["keyword"] },
1169
+ ansi16: { channels: 1, labels: ["ansi16"] },
1170
+ ansi256: { channels: 1, labels: ["ansi256"] },
1171
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
1172
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
1173
+ gray: { channels: 1, labels: ["gray"] }
1174
+ };
1175
+ module2.exports = convert;
1176
+ for (const model of Object.keys(convert)) {
1177
+ if (!("channels" in convert[model])) {
1178
+ throw new Error("missing channels property: " + model);
1179
+ }
1180
+ if (!("labels" in convert[model])) {
1181
+ throw new Error("missing channel labels property: " + model);
1182
+ }
1183
+ if (convert[model].labels.length !== convert[model].channels) {
1184
+ throw new Error("channel and label counts mismatch: " + model);
1185
+ }
1186
+ const { channels, labels } = convert[model];
1187
+ delete convert[model].channels;
1188
+ delete convert[model].labels;
1189
+ Object.defineProperty(convert[model], "channels", { value: channels });
1190
+ Object.defineProperty(convert[model], "labels", { value: labels });
1191
+ }
1192
+ convert.rgb.hsl = function(rgb) {
1193
+ const r = rgb[0] / 255;
1194
+ const g = rgb[1] / 255;
1195
+ const b = rgb[2] / 255;
1196
+ const min = Math.min(r, g, b);
1197
+ const max = Math.max(r, g, b);
1198
+ const delta = max - min;
1199
+ let h;
1200
+ let s;
1201
+ if (max === min) {
1202
+ h = 0;
1203
+ } else if (r === max) {
1204
+ h = (g - b) / delta;
1205
+ } else if (g === max) {
1206
+ h = 2 + (b - r) / delta;
1207
+ } else if (b === max) {
1208
+ h = 4 + (r - g) / delta;
1209
+ }
1210
+ h = Math.min(h * 60, 360);
1211
+ if (h < 0) {
1212
+ h += 360;
1213
+ }
1214
+ const l = (min + max) / 2;
1215
+ if (max === min) {
1216
+ s = 0;
1217
+ } else if (l <= 0.5) {
1218
+ s = delta / (max + min);
1219
+ } else {
1220
+ s = delta / (2 - max - min);
1221
+ }
1222
+ return [h, s * 100, l * 100];
1223
+ };
1224
+ convert.rgb.hsv = function(rgb) {
1225
+ let rdif;
1226
+ let gdif;
1227
+ let bdif;
1228
+ let h;
1229
+ let s;
1230
+ const r = rgb[0] / 255;
1231
+ const g = rgb[1] / 255;
1232
+ const b = rgb[2] / 255;
1233
+ const v = Math.max(r, g, b);
1234
+ const diff = v - Math.min(r, g, b);
1235
+ const diffc = /* @__PURE__ */ __name(function(c) {
1236
+ return (v - c) / 6 / diff + 1 / 2;
1237
+ }, "diffc");
1238
+ if (diff === 0) {
1239
+ h = 0;
1240
+ s = 0;
1241
+ } else {
1242
+ s = diff / v;
1243
+ rdif = diffc(r);
1244
+ gdif = diffc(g);
1245
+ bdif = diffc(b);
1246
+ if (r === v) {
1247
+ h = bdif - gdif;
1248
+ } else if (g === v) {
1249
+ h = 1 / 3 + rdif - bdif;
1250
+ } else if (b === v) {
1251
+ h = 2 / 3 + gdif - rdif;
1252
+ }
1253
+ if (h < 0) {
1254
+ h += 1;
1255
+ } else if (h > 1) {
1256
+ h -= 1;
1257
+ }
1258
+ }
1259
+ return [
1260
+ h * 360,
1261
+ s * 100,
1262
+ v * 100
1263
+ ];
1264
+ };
1265
+ convert.rgb.hwb = function(rgb) {
1266
+ const r = rgb[0];
1267
+ const g = rgb[1];
1268
+ let b = rgb[2];
1269
+ const h = convert.rgb.hsl(rgb)[0];
1270
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
1271
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
1272
+ return [h, w * 100, b * 100];
1273
+ };
1274
+ convert.rgb.cmyk = function(rgb) {
1275
+ const r = rgb[0] / 255;
1276
+ const g = rgb[1] / 255;
1277
+ const b = rgb[2] / 255;
1278
+ const k = Math.min(1 - r, 1 - g, 1 - b);
1279
+ const c = (1 - r - k) / (1 - k) || 0;
1280
+ const m = (1 - g - k) / (1 - k) || 0;
1281
+ const y = (1 - b - k) / (1 - k) || 0;
1282
+ return [c * 100, m * 100, y * 100, k * 100];
1283
+ };
1284
+ function comparativeDistance(x, y) {
1285
+ return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
1286
+ }
1287
+ __name(comparativeDistance, "comparativeDistance");
1288
+ convert.rgb.keyword = function(rgb) {
1289
+ const reversed = reverseKeywords[rgb];
1290
+ if (reversed) {
1291
+ return reversed;
1292
+ }
1293
+ let currentClosestDistance = Infinity;
1294
+ let currentClosestKeyword;
1295
+ for (const keyword of Object.keys(cssKeywords)) {
1296
+ const value = cssKeywords[keyword];
1297
+ const distance = comparativeDistance(rgb, value);
1298
+ if (distance < currentClosestDistance) {
1299
+ currentClosestDistance = distance;
1300
+ currentClosestKeyword = keyword;
1301
+ }
1302
+ }
1303
+ return currentClosestKeyword;
1304
+ };
1305
+ convert.keyword.rgb = function(keyword) {
1306
+ return cssKeywords[keyword];
1307
+ };
1308
+ convert.rgb.xyz = function(rgb) {
1309
+ let r = rgb[0] / 255;
1310
+ let g = rgb[1] / 255;
1311
+ let b = rgb[2] / 255;
1312
+ r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
1313
+ g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
1314
+ b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
1315
+ const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
1316
+ const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
1317
+ const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
1318
+ return [x * 100, y * 100, z * 100];
1319
+ };
1320
+ convert.rgb.lab = function(rgb) {
1321
+ const xyz = convert.rgb.xyz(rgb);
1322
+ let x = xyz[0];
1323
+ let y = xyz[1];
1324
+ let z = xyz[2];
1325
+ x /= 95.047;
1326
+ y /= 100;
1327
+ z /= 108.883;
1328
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1329
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1330
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1331
+ const l = 116 * y - 16;
1332
+ const a = 500 * (x - y);
1333
+ const b = 200 * (y - z);
1334
+ return [l, a, b];
1335
+ };
1336
+ convert.hsl.rgb = function(hsl) {
1337
+ const h = hsl[0] / 360;
1338
+ const s = hsl[1] / 100;
1339
+ const l = hsl[2] / 100;
1340
+ let t2;
1341
+ let t3;
1342
+ let val;
1343
+ if (s === 0) {
1344
+ val = l * 255;
1345
+ return [val, val, val];
1346
+ }
1347
+ if (l < 0.5) {
1348
+ t2 = l * (1 + s);
1349
+ } else {
1350
+ t2 = l + s - l * s;
1351
+ }
1352
+ const t1 = 2 * l - t2;
1353
+ const rgb = [0, 0, 0];
1354
+ for (let i = 0; i < 3; i++) {
1355
+ t3 = h + 1 / 3 * -(i - 1);
1356
+ if (t3 < 0) {
1357
+ t3++;
1358
+ }
1359
+ if (t3 > 1) {
1360
+ t3--;
1361
+ }
1362
+ if (6 * t3 < 1) {
1363
+ val = t1 + (t2 - t1) * 6 * t3;
1364
+ } else if (2 * t3 < 1) {
1365
+ val = t2;
1366
+ } else if (3 * t3 < 2) {
1367
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1368
+ } else {
1369
+ val = t1;
1370
+ }
1371
+ rgb[i] = val * 255;
1372
+ }
1373
+ return rgb;
1374
+ };
1375
+ convert.hsl.hsv = function(hsl) {
1376
+ const h = hsl[0];
1377
+ let s = hsl[1] / 100;
1378
+ let l = hsl[2] / 100;
1379
+ let smin = s;
1380
+ const lmin = Math.max(l, 0.01);
1381
+ l *= 2;
1382
+ s *= l <= 1 ? l : 2 - l;
1383
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
1384
+ const v = (l + s) / 2;
1385
+ const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
1386
+ return [h, sv * 100, v * 100];
1387
+ };
1388
+ convert.hsv.rgb = function(hsv) {
1389
+ const h = hsv[0] / 60;
1390
+ const s = hsv[1] / 100;
1391
+ let v = hsv[2] / 100;
1392
+ const hi = Math.floor(h) % 6;
1393
+ const f = h - Math.floor(h);
1394
+ const p = 255 * v * (1 - s);
1395
+ const q = 255 * v * (1 - s * f);
1396
+ const t = 255 * v * (1 - s * (1 - f));
1397
+ v *= 255;
1398
+ switch (hi) {
1399
+ case 0:
1400
+ return [v, t, p];
1401
+ case 1:
1402
+ return [q, v, p];
1403
+ case 2:
1404
+ return [p, v, t];
1405
+ case 3:
1406
+ return [p, q, v];
1407
+ case 4:
1408
+ return [t, p, v];
1409
+ case 5:
1410
+ return [v, p, q];
1411
+ }
1412
+ };
1413
+ convert.hsv.hsl = function(hsv) {
1414
+ const h = hsv[0];
1415
+ const s = hsv[1] / 100;
1416
+ const v = hsv[2] / 100;
1417
+ const vmin = Math.max(v, 0.01);
1418
+ let sl;
1419
+ let l;
1420
+ l = (2 - s) * v;
1421
+ const lmin = (2 - s) * vmin;
1422
+ sl = s * vmin;
1423
+ sl /= lmin <= 1 ? lmin : 2 - lmin;
1424
+ sl = sl || 0;
1425
+ l /= 2;
1426
+ return [h, sl * 100, l * 100];
1427
+ };
1428
+ convert.hwb.rgb = function(hwb) {
1429
+ const h = hwb[0] / 360;
1430
+ let wh = hwb[1] / 100;
1431
+ let bl = hwb[2] / 100;
1432
+ const ratio = wh + bl;
1433
+ let f;
1434
+ if (ratio > 1) {
1435
+ wh /= ratio;
1436
+ bl /= ratio;
1437
+ }
1438
+ const i = Math.floor(6 * h);
1439
+ const v = 1 - bl;
1440
+ f = 6 * h - i;
1441
+ if ((i & 1) !== 0) {
1442
+ f = 1 - f;
1443
+ }
1444
+ const n = wh + f * (v - wh);
1445
+ let r;
1446
+ let g;
1447
+ let b;
1448
+ switch (i) {
1449
+ default:
1450
+ case 6:
1451
+ case 0:
1452
+ r = v;
1453
+ g = n;
1454
+ b = wh;
1455
+ break;
1456
+ case 1:
1457
+ r = n;
1458
+ g = v;
1459
+ b = wh;
1460
+ break;
1461
+ case 2:
1462
+ r = wh;
1463
+ g = v;
1464
+ b = n;
1465
+ break;
1466
+ case 3:
1467
+ r = wh;
1468
+ g = n;
1469
+ b = v;
1470
+ break;
1471
+ case 4:
1472
+ r = n;
1473
+ g = wh;
1474
+ b = v;
1475
+ break;
1476
+ case 5:
1477
+ r = v;
1478
+ g = wh;
1479
+ b = n;
1480
+ break;
1481
+ }
1482
+ return [r * 255, g * 255, b * 255];
1483
+ };
1484
+ convert.cmyk.rgb = function(cmyk) {
1485
+ const c = cmyk[0] / 100;
1486
+ const m = cmyk[1] / 100;
1487
+ const y = cmyk[2] / 100;
1488
+ const k = cmyk[3] / 100;
1489
+ const r = 1 - Math.min(1, c * (1 - k) + k);
1490
+ const g = 1 - Math.min(1, m * (1 - k) + k);
1491
+ const b = 1 - Math.min(1, y * (1 - k) + k);
1492
+ return [r * 255, g * 255, b * 255];
1493
+ };
1494
+ convert.xyz.rgb = function(xyz) {
1495
+ const x = xyz[0] / 100;
1496
+ const y = xyz[1] / 100;
1497
+ const z = xyz[2] / 100;
1498
+ let r;
1499
+ let g;
1500
+ let b;
1501
+ r = x * 3.2406 + y * -1.5372 + z * -0.4986;
1502
+ g = x * -0.9689 + y * 1.8758 + z * 0.0415;
1503
+ b = x * 0.0557 + y * -0.204 + z * 1.057;
1504
+ r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
1505
+ g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
1506
+ b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
1507
+ r = Math.min(Math.max(0, r), 1);
1508
+ g = Math.min(Math.max(0, g), 1);
1509
+ b = Math.min(Math.max(0, b), 1);
1510
+ return [r * 255, g * 255, b * 255];
1511
+ };
1512
+ convert.xyz.lab = function(xyz) {
1513
+ let x = xyz[0];
1514
+ let y = xyz[1];
1515
+ let z = xyz[2];
1516
+ x /= 95.047;
1517
+ y /= 100;
1518
+ z /= 108.883;
1519
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1520
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1521
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1522
+ const l = 116 * y - 16;
1523
+ const a = 500 * (x - y);
1524
+ const b = 200 * (y - z);
1525
+ return [l, a, b];
1526
+ };
1527
+ convert.lab.xyz = function(lab) {
1528
+ const l = lab[0];
1529
+ const a = lab[1];
1530
+ const b = lab[2];
1531
+ let x;
1532
+ let y;
1533
+ let z;
1534
+ y = (l + 16) / 116;
1535
+ x = a / 500 + y;
1536
+ z = y - b / 200;
1537
+ const y2 = y ** 3;
1538
+ const x2 = x ** 3;
1539
+ const z2 = z ** 3;
1540
+ y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
1541
+ x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
1542
+ z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
1543
+ x *= 95.047;
1544
+ y *= 100;
1545
+ z *= 108.883;
1546
+ return [x, y, z];
1547
+ };
1548
+ convert.lab.lch = function(lab) {
1549
+ const l = lab[0];
1550
+ const a = lab[1];
1551
+ const b = lab[2];
1552
+ let h;
1553
+ const hr = Math.atan2(b, a);
1554
+ h = hr * 360 / 2 / Math.PI;
1555
+ if (h < 0) {
1556
+ h += 360;
1557
+ }
1558
+ const c = Math.sqrt(a * a + b * b);
1559
+ return [l, c, h];
1560
+ };
1561
+ convert.lch.lab = function(lch) {
1562
+ const l = lch[0];
1563
+ const c = lch[1];
1564
+ const h = lch[2];
1565
+ const hr = h / 360 * 2 * Math.PI;
1566
+ const a = c * Math.cos(hr);
1567
+ const b = c * Math.sin(hr);
1568
+ return [l, a, b];
1569
+ };
1570
+ convert.rgb.ansi16 = function(args, saturation = null) {
1571
+ const [r, g, b] = args;
1572
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
1573
+ value = Math.round(value / 50);
1574
+ if (value === 0) {
1575
+ return 30;
1576
+ }
1577
+ let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
1578
+ if (value === 2) {
1579
+ ansi += 60;
1580
+ }
1581
+ return ansi;
1582
+ };
1583
+ convert.hsv.ansi16 = function(args) {
1584
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1585
+ };
1586
+ convert.rgb.ansi256 = function(args) {
1587
+ const r = args[0];
1588
+ const g = args[1];
1589
+ const b = args[2];
1590
+ if (r === g && g === b) {
1591
+ if (r < 8) {
1592
+ return 16;
1593
+ }
1594
+ if (r > 248) {
1595
+ return 231;
1596
+ }
1597
+ return Math.round((r - 8) / 247 * 24) + 232;
1598
+ }
1599
+ const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
1600
+ return ansi;
1601
+ };
1602
+ convert.ansi16.rgb = function(args) {
1603
+ let color = args % 10;
1604
+ if (color === 0 || color === 7) {
1605
+ if (args > 50) {
1606
+ color += 3.5;
1607
+ }
1608
+ color = color / 10.5 * 255;
1609
+ return [color, color, color];
1610
+ }
1611
+ const mult = (~~(args > 50) + 1) * 0.5;
1612
+ const r = (color & 1) * mult * 255;
1613
+ const g = (color >> 1 & 1) * mult * 255;
1614
+ const b = (color >> 2 & 1) * mult * 255;
1615
+ return [r, g, b];
1616
+ };
1617
+ convert.ansi256.rgb = function(args) {
1618
+ if (args >= 232) {
1619
+ const c = (args - 232) * 10 + 8;
1620
+ return [c, c, c];
1621
+ }
1622
+ args -= 16;
1623
+ let rem;
1624
+ const r = Math.floor(args / 36) / 5 * 255;
1625
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1626
+ const b = rem % 6 / 5 * 255;
1627
+ return [r, g, b];
1628
+ };
1629
+ convert.rgb.hex = function(args) {
1630
+ const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
1631
+ const string = integer.toString(16).toUpperCase();
1632
+ return "000000".substring(string.length) + string;
1633
+ };
1634
+ convert.hex.rgb = function(args) {
1635
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1636
+ if (!match) {
1637
+ return [0, 0, 0];
1638
+ }
1639
+ let colorString = match[0];
1640
+ if (match[0].length === 3) {
1641
+ colorString = colorString.split("").map((char) => {
1642
+ return char + char;
1643
+ }).join("");
1644
+ }
1645
+ const integer = parseInt(colorString, 16);
1646
+ const r = integer >> 16 & 255;
1647
+ const g = integer >> 8 & 255;
1648
+ const b = integer & 255;
1649
+ return [r, g, b];
1650
+ };
1651
+ convert.rgb.hcg = function(rgb) {
1652
+ const r = rgb[0] / 255;
1653
+ const g = rgb[1] / 255;
1654
+ const b = rgb[2] / 255;
1655
+ const max = Math.max(Math.max(r, g), b);
1656
+ const min = Math.min(Math.min(r, g), b);
1657
+ const chroma = max - min;
1658
+ let grayscale;
1659
+ let hue;
1660
+ if (chroma < 1) {
1661
+ grayscale = min / (1 - chroma);
1662
+ } else {
1663
+ grayscale = 0;
1664
+ }
1665
+ if (chroma <= 0) {
1666
+ hue = 0;
1667
+ } else if (max === r) {
1668
+ hue = (g - b) / chroma % 6;
1669
+ } else if (max === g) {
1670
+ hue = 2 + (b - r) / chroma;
1671
+ } else {
1672
+ hue = 4 + (r - g) / chroma;
1673
+ }
1674
+ hue /= 6;
1675
+ hue %= 1;
1676
+ return [hue * 360, chroma * 100, grayscale * 100];
1677
+ };
1678
+ convert.hsl.hcg = function(hsl) {
1679
+ const s = hsl[1] / 100;
1680
+ const l = hsl[2] / 100;
1681
+ const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
1682
+ let f = 0;
1683
+ if (c < 1) {
1684
+ f = (l - 0.5 * c) / (1 - c);
1685
+ }
1686
+ return [hsl[0], c * 100, f * 100];
1687
+ };
1688
+ convert.hsv.hcg = function(hsv) {
1689
+ const s = hsv[1] / 100;
1690
+ const v = hsv[2] / 100;
1691
+ const c = s * v;
1692
+ let f = 0;
1693
+ if (c < 1) {
1694
+ f = (v - c) / (1 - c);
1695
+ }
1696
+ return [hsv[0], c * 100, f * 100];
1697
+ };
1698
+ convert.hcg.rgb = function(hcg) {
1699
+ const h = hcg[0] / 360;
1700
+ const c = hcg[1] / 100;
1701
+ const g = hcg[2] / 100;
1702
+ if (c === 0) {
1703
+ return [g * 255, g * 255, g * 255];
1704
+ }
1705
+ const pure = [0, 0, 0];
1706
+ const hi = h % 1 * 6;
1707
+ const v = hi % 1;
1708
+ const w = 1 - v;
1709
+ let mg = 0;
1710
+ switch (Math.floor(hi)) {
1711
+ case 0:
1712
+ pure[0] = 1;
1713
+ pure[1] = v;
1714
+ pure[2] = 0;
1715
+ break;
1716
+ case 1:
1717
+ pure[0] = w;
1718
+ pure[1] = 1;
1719
+ pure[2] = 0;
1720
+ break;
1721
+ case 2:
1722
+ pure[0] = 0;
1723
+ pure[1] = 1;
1724
+ pure[2] = v;
1725
+ break;
1726
+ case 3:
1727
+ pure[0] = 0;
1728
+ pure[1] = w;
1729
+ pure[2] = 1;
1730
+ break;
1731
+ case 4:
1732
+ pure[0] = v;
1733
+ pure[1] = 0;
1734
+ pure[2] = 1;
1735
+ break;
1736
+ default:
1737
+ pure[0] = 1;
1738
+ pure[1] = 0;
1739
+ pure[2] = w;
1740
+ }
1741
+ mg = (1 - c) * g;
1742
+ return [
1743
+ (c * pure[0] + mg) * 255,
1744
+ (c * pure[1] + mg) * 255,
1745
+ (c * pure[2] + mg) * 255
1746
+ ];
1747
+ };
1748
+ convert.hcg.hsv = function(hcg) {
1749
+ const c = hcg[1] / 100;
1750
+ const g = hcg[2] / 100;
1751
+ const v = c + g * (1 - c);
1752
+ let f = 0;
1753
+ if (v > 0) {
1754
+ f = c / v;
1755
+ }
1756
+ return [hcg[0], f * 100, v * 100];
1757
+ };
1758
+ convert.hcg.hsl = function(hcg) {
1759
+ const c = hcg[1] / 100;
1760
+ const g = hcg[2] / 100;
1761
+ const l = g * (1 - c) + 0.5 * c;
1762
+ let s = 0;
1763
+ if (l > 0 && l < 0.5) {
1764
+ s = c / (2 * l);
1765
+ } else if (l >= 0.5 && l < 1) {
1766
+ s = c / (2 * (1 - l));
1767
+ }
1768
+ return [hcg[0], s * 100, l * 100];
1769
+ };
1770
+ convert.hcg.hwb = function(hcg) {
1771
+ const c = hcg[1] / 100;
1772
+ const g = hcg[2] / 100;
1773
+ const v = c + g * (1 - c);
1774
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
1775
+ };
1776
+ convert.hwb.hcg = function(hwb) {
1777
+ const w = hwb[1] / 100;
1778
+ const b = hwb[2] / 100;
1779
+ const v = 1 - b;
1780
+ const c = v - w;
1781
+ let g = 0;
1782
+ if (c < 1) {
1783
+ g = (v - c) / (1 - c);
1784
+ }
1785
+ return [hwb[0], c * 100, g * 100];
1786
+ };
1787
+ convert.apple.rgb = function(apple) {
1788
+ return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
1789
+ };
1790
+ convert.rgb.apple = function(rgb) {
1791
+ return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
1792
+ };
1793
+ convert.gray.rgb = function(args) {
1794
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
1795
+ };
1796
+ convert.gray.hsl = function(args) {
1797
+ return [0, 0, args[0]];
1798
+ };
1799
+ convert.gray.hsv = convert.gray.hsl;
1800
+ convert.gray.hwb = function(gray) {
1801
+ return [0, 100, gray[0]];
1802
+ };
1803
+ convert.gray.cmyk = function(gray) {
1804
+ return [0, 0, 0, gray[0]];
1805
+ };
1806
+ convert.gray.lab = function(gray) {
1807
+ return [gray[0], 0, 0];
1808
+ };
1809
+ convert.gray.hex = function(gray) {
1810
+ const val = Math.round(gray[0] / 100 * 255) & 255;
1811
+ const integer = (val << 16) + (val << 8) + val;
1812
+ const string = integer.toString(16).toUpperCase();
1813
+ return "000000".substring(string.length) + string;
1814
+ };
1815
+ convert.rgb.gray = function(rgb) {
1816
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1817
+ return [val / 255 * 100];
1818
+ };
1819
+ }
1820
+ });
1821
+
1822
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
1823
+ var require_route = __commonJS({
1824
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports2, module2) {
1825
+ var conversions = require_conversions();
1826
+ function buildGraph() {
1827
+ const graph = {};
1828
+ const models = Object.keys(conversions);
1829
+ for (let len = models.length, i = 0; i < len; i++) {
1830
+ graph[models[i]] = {
1831
+ // http://jsperf.com/1-vs-infinity
1832
+ // micro-opt, but this is simple.
1833
+ distance: -1,
1834
+ parent: null
1835
+ };
1836
+ }
1837
+ return graph;
1838
+ }
1839
+ __name(buildGraph, "buildGraph");
1840
+ function deriveBFS(fromModel) {
1841
+ const graph = buildGraph();
1842
+ const queue = [fromModel];
1843
+ graph[fromModel].distance = 0;
1844
+ while (queue.length) {
1845
+ const current = queue.pop();
1846
+ const adjacents = Object.keys(conversions[current]);
1847
+ for (let len = adjacents.length, i = 0; i < len; i++) {
1848
+ const adjacent = adjacents[i];
1849
+ const node = graph[adjacent];
1850
+ if (node.distance === -1) {
1851
+ node.distance = graph[current].distance + 1;
1852
+ node.parent = current;
1853
+ queue.unshift(adjacent);
1854
+ }
1855
+ }
1856
+ }
1857
+ return graph;
1858
+ }
1859
+ __name(deriveBFS, "deriveBFS");
1860
+ function link(from, to) {
1861
+ return function(args) {
1862
+ return to(from(args));
1863
+ };
1864
+ }
1865
+ __name(link, "link");
1866
+ function wrapConversion(toModel, graph) {
1867
+ const path = [graph[toModel].parent, toModel];
1868
+ let fn = conversions[graph[toModel].parent][toModel];
1869
+ let cur = graph[toModel].parent;
1870
+ while (graph[cur].parent) {
1871
+ path.unshift(graph[cur].parent);
1872
+ fn = link(conversions[graph[cur].parent][cur], fn);
1873
+ cur = graph[cur].parent;
1874
+ }
1875
+ fn.conversion = path;
1876
+ return fn;
1877
+ }
1878
+ __name(wrapConversion, "wrapConversion");
1879
+ module2.exports = function(fromModel) {
1880
+ const graph = deriveBFS(fromModel);
1881
+ const conversion = {};
1882
+ const models = Object.keys(graph);
1883
+ for (let len = models.length, i = 0; i < len; i++) {
1884
+ const toModel = models[i];
1885
+ const node = graph[toModel];
1886
+ if (node.parent === null) {
1887
+ continue;
1888
+ }
1889
+ conversion[toModel] = wrapConversion(toModel, graph);
1890
+ }
1891
+ return conversion;
1892
+ };
1893
+ }
1894
+ });
1895
+
1896
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
1897
+ var require_color_convert = __commonJS({
1898
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports2, module2) {
1899
+ var conversions = require_conversions();
1900
+ var route = require_route();
1901
+ var convert = {};
1902
+ var models = Object.keys(conversions);
1903
+ function wrapRaw(fn) {
1904
+ const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1905
+ const arg0 = args[0];
1906
+ if (arg0 === void 0 || arg0 === null) {
1907
+ return arg0;
1908
+ }
1909
+ if (arg0.length > 1) {
1910
+ args = arg0;
1911
+ }
1912
+ return fn(args);
1913
+ }, "wrappedFn");
1914
+ if ("conversion" in fn) {
1915
+ wrappedFn.conversion = fn.conversion;
1916
+ }
1917
+ return wrappedFn;
1918
+ }
1919
+ __name(wrapRaw, "wrapRaw");
1920
+ function wrapRounded(fn) {
1921
+ const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1922
+ const arg0 = args[0];
1923
+ if (arg0 === void 0 || arg0 === null) {
1924
+ return arg0;
1925
+ }
1926
+ if (arg0.length > 1) {
1927
+ args = arg0;
1928
+ }
1929
+ const result = fn(args);
1930
+ if (typeof result === "object") {
1931
+ for (let len = result.length, i = 0; i < len; i++) {
1932
+ result[i] = Math.round(result[i]);
1933
+ }
1934
+ }
1935
+ return result;
1936
+ }, "wrappedFn");
1937
+ if ("conversion" in fn) {
1938
+ wrappedFn.conversion = fn.conversion;
1939
+ }
1940
+ return wrappedFn;
1941
+ }
1942
+ __name(wrapRounded, "wrapRounded");
1943
+ models.forEach((fromModel) => {
1944
+ convert[fromModel] = {};
1945
+ Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
1946
+ Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
1947
+ const routes = route(fromModel);
1948
+ const routeModels = Object.keys(routes);
1949
+ routeModels.forEach((toModel) => {
1950
+ const fn = routes[toModel];
1951
+ convert[fromModel][toModel] = wrapRounded(fn);
1952
+ convert[fromModel][toModel].raw = wrapRaw(fn);
1953
+ });
1954
+ });
1955
+ module2.exports = convert;
1956
+ }
1957
+ });
1958
+
1959
+ // node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
1960
+ var require_ansi_styles = __commonJS({
1961
+ "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports2, module2) {
1962
+ "use strict";
1963
+ var wrapAnsi16 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1964
+ const code = fn(...args);
1965
+ return `\x1B[${code + offset}m`;
1966
+ }, "wrapAnsi16");
1967
+ var wrapAnsi256 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1968
+ const code = fn(...args);
1969
+ return `\x1B[${38 + offset};5;${code}m`;
1970
+ }, "wrapAnsi256");
1971
+ var wrapAnsi16m = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1972
+ const rgb = fn(...args);
1973
+ return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1974
+ }, "wrapAnsi16m");
1975
+ var ansi2ansi = /* @__PURE__ */ __name((n) => n, "ansi2ansi");
1976
+ var rgb2rgb = /* @__PURE__ */ __name((r, g, b) => [r, g, b], "rgb2rgb");
1977
+ var setLazyProperty = /* @__PURE__ */ __name((object, property, get) => {
1978
+ Object.defineProperty(object, property, {
1979
+ get: /* @__PURE__ */ __name(() => {
1980
+ const value = get();
1981
+ Object.defineProperty(object, property, {
1982
+ value,
1983
+ enumerable: true,
1984
+ configurable: true
1985
+ });
1986
+ return value;
1987
+ }, "get"),
1988
+ enumerable: true,
1989
+ configurable: true
1990
+ });
1991
+ }, "setLazyProperty");
1992
+ var colorConvert;
1993
+ var makeDynamicStyles = /* @__PURE__ */ __name((wrap, targetSpace, identity, isBackground) => {
1994
+ if (colorConvert === void 0) {
1995
+ colorConvert = require_color_convert();
1996
+ }
1997
+ const offset = isBackground ? 10 : 0;
1998
+ const styles = {};
1999
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
2000
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
2001
+ if (sourceSpace === targetSpace) {
2002
+ styles[name] = wrap(identity, offset);
2003
+ } else if (typeof suite === "object") {
2004
+ styles[name] = wrap(suite[targetSpace], offset);
2005
+ }
2006
+ }
2007
+ return styles;
2008
+ }, "makeDynamicStyles");
2009
+ function assembleStyles() {
2010
+ const codes = /* @__PURE__ */ new Map();
2011
+ const styles = {
2012
+ modifier: {
2013
+ reset: [0, 0],
2014
+ // 21 isn't widely supported and 22 does the same thing
2015
+ bold: [1, 22],
2016
+ dim: [2, 22],
2017
+ italic: [3, 23],
2018
+ underline: [4, 24],
2019
+ inverse: [7, 27],
2020
+ hidden: [8, 28],
2021
+ strikethrough: [9, 29]
2022
+ },
2023
+ color: {
2024
+ black: [30, 39],
2025
+ red: [31, 39],
2026
+ green: [32, 39],
2027
+ yellow: [33, 39],
2028
+ blue: [34, 39],
2029
+ magenta: [35, 39],
2030
+ cyan: [36, 39],
2031
+ white: [37, 39],
2032
+ // Bright color
2033
+ blackBright: [90, 39],
2034
+ redBright: [91, 39],
2035
+ greenBright: [92, 39],
2036
+ yellowBright: [93, 39],
2037
+ blueBright: [94, 39],
2038
+ magentaBright: [95, 39],
2039
+ cyanBright: [96, 39],
2040
+ whiteBright: [97, 39]
2041
+ },
2042
+ bgColor: {
2043
+ bgBlack: [40, 49],
2044
+ bgRed: [41, 49],
2045
+ bgGreen: [42, 49],
2046
+ bgYellow: [43, 49],
2047
+ bgBlue: [44, 49],
2048
+ bgMagenta: [45, 49],
2049
+ bgCyan: [46, 49],
2050
+ bgWhite: [47, 49],
2051
+ // Bright color
2052
+ bgBlackBright: [100, 49],
2053
+ bgRedBright: [101, 49],
2054
+ bgGreenBright: [102, 49],
2055
+ bgYellowBright: [103, 49],
2056
+ bgBlueBright: [104, 49],
2057
+ bgMagentaBright: [105, 49],
2058
+ bgCyanBright: [106, 49],
2059
+ bgWhiteBright: [107, 49]
2060
+ }
2061
+ };
2062
+ styles.color.gray = styles.color.blackBright;
2063
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2064
+ styles.color.grey = styles.color.blackBright;
2065
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2066
+ for (const [groupName, group] of Object.entries(styles)) {
2067
+ for (const [styleName, style] of Object.entries(group)) {
2068
+ styles[styleName] = {
2069
+ open: `\x1B[${style[0]}m`,
2070
+ close: `\x1B[${style[1]}m`
2071
+ };
2072
+ group[styleName] = styles[styleName];
2073
+ codes.set(style[0], style[1]);
2074
+ }
2075
+ Object.defineProperty(styles, groupName, {
2076
+ value: group,
2077
+ enumerable: false
2078
+ });
2079
+ }
2080
+ Object.defineProperty(styles, "codes", {
2081
+ value: codes,
2082
+ enumerable: false
2083
+ });
2084
+ styles.color.close = "\x1B[39m";
2085
+ styles.bgColor.close = "\x1B[49m";
2086
+ setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
2087
+ setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
2088
+ setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
2089
+ setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
2090
+ setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
2091
+ setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
2092
+ return styles;
2093
+ }
2094
+ __name(assembleStyles, "assembleStyles");
2095
+ Object.defineProperty(module2, "exports", {
2096
+ enumerable: true,
2097
+ get: assembleStyles
2098
+ });
2099
+ }
2100
+ });
2101
+
2102
+ // node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js
2103
+ var require_wrap_ansi = __commonJS({
2104
+ "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2105
+ "use strict";
2106
+ var stringWidth = require_string_width();
2107
+ var stripAnsi = require_strip_ansi();
2108
+ var ansiStyles = require_ansi_styles();
2109
+ var ESCAPES = /* @__PURE__ */ new Set([
2110
+ "\x1B",
2111
+ "›"
2112
+ ]);
2113
+ var END_CODE = 39;
2114
+ var wrapAnsi = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}[${code}m`, "wrapAnsi");
2115
+ var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
2116
+ var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2117
+ const characters = [...word];
2118
+ let isInsideEscape = false;
2119
+ let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
2120
+ for (const [index, character] of characters.entries()) {
2121
+ const characterLength = stringWidth(character);
2122
+ if (visible + characterLength <= columns) {
2123
+ rows[rows.length - 1] += character;
2124
+ } else {
2125
+ rows.push(character);
2126
+ visible = 0;
2127
+ }
2128
+ if (ESCAPES.has(character)) {
2129
+ isInsideEscape = true;
2130
+ } else if (isInsideEscape && character === "m") {
2131
+ isInsideEscape = false;
2132
+ continue;
2133
+ }
2134
+ if (isInsideEscape) {
2135
+ continue;
2136
+ }
2137
+ visible += characterLength;
2138
+ if (visible === columns && index < characters.length - 1) {
2139
+ rows.push("");
2140
+ visible = 0;
2141
+ }
2142
+ }
2143
+ if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
2144
+ rows[rows.length - 2] += rows.pop();
2145
+ }
2146
+ }, "wrapWord");
2147
+ var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((str) => {
2148
+ const words = str.split(" ");
2149
+ let last = words.length;
2150
+ while (last > 0) {
2151
+ if (stringWidth(words[last - 1]) > 0) {
2152
+ break;
2153
+ }
2154
+ last--;
2155
+ }
2156
+ if (last === words.length) {
2157
+ return str;
2158
+ }
2159
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
2160
+ }, "stringVisibleTrimSpacesRight");
2161
+ var exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
2162
+ if (options.trim !== false && string.trim() === "") {
2163
+ return "";
2164
+ }
2165
+ let pre = "";
2166
+ let ret = "";
2167
+ let escapeCode;
2168
+ const lengths = wordLengths(string);
2169
+ let rows = [""];
2170
+ for (const [index, word] of string.split(" ").entries()) {
2171
+ if (options.trim !== false) {
2172
+ rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
2173
+ }
2174
+ let rowLength = stringWidth(rows[rows.length - 1]);
2175
+ if (index !== 0) {
2176
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
2177
+ rows.push("");
2178
+ rowLength = 0;
2179
+ }
2180
+ if (rowLength > 0 || options.trim === false) {
2181
+ rows[rows.length - 1] += " ";
2182
+ rowLength++;
2183
+ }
2184
+ }
2185
+ if (options.hard && lengths[index] > columns) {
2186
+ const remainingColumns = columns - rowLength;
2187
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
2188
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
2189
+ if (breaksStartingNextLine < breaksStartingThisLine) {
2190
+ rows.push("");
2191
+ }
2192
+ wrapWord(rows, word, columns);
2193
+ continue;
2194
+ }
2195
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
2196
+ if (options.wordWrap === false && rowLength < columns) {
2197
+ wrapWord(rows, word, columns);
2198
+ continue;
2199
+ }
2200
+ rows.push("");
2201
+ }
2202
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
2203
+ wrapWord(rows, word, columns);
2204
+ continue;
2205
+ }
2206
+ rows[rows.length - 1] += word;
2207
+ }
2208
+ if (options.trim !== false) {
2209
+ rows = rows.map(stringVisibleTrimSpacesRight);
2210
+ }
2211
+ pre = rows.join("\n");
2212
+ for (const [index, character] of [...pre].entries()) {
2213
+ ret += character;
2214
+ if (ESCAPES.has(character)) {
2215
+ const code2 = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
2216
+ escapeCode = code2 === END_CODE ? null : code2;
2217
+ }
2218
+ const code = ansiStyles.codes.get(Number(escapeCode));
2219
+ if (escapeCode && code) {
2220
+ if (pre[index + 1] === "\n") {
2221
+ ret += wrapAnsi(code);
2222
+ } else if (character === "\n") {
2223
+ ret += wrapAnsi(escapeCode);
2224
+ }
2225
+ }
2226
+ }
2227
+ return ret;
2228
+ }, "exec");
2229
+ module2.exports = (string, columns, options) => {
2230
+ return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
2231
+ };
2232
+ }
2233
+ });
2234
+
2235
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/utils.js
2236
+ var require_utils = __commonJS({
2237
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/utils.js"(exports2) {
2238
+ "use strict";
2239
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
2240
+ return mod && mod.__esModule ? mod : { "default": mod };
2241
+ };
2242
+ Object.defineProperty(exports2, "__esModule", { value: true });
2243
+ exports2.breakLines = breakLines;
2244
+ exports2.readlineWidth = readlineWidth;
2245
+ var cli_width_1 = __importDefault(require_cli_width());
2246
+ var wrap_ansi_1 = __importDefault(require_wrap_ansi());
2247
+ var hook_engine_ts_1 = require_hook_engine();
2248
+ function breakLines(content, width) {
2249
+ return content.split("\n").flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true }).split("\n").map((str) => str.trimEnd())).join("\n");
2250
+ }
2251
+ __name(breakLines, "breakLines");
2252
+ function readlineWidth() {
2253
+ return (0, cli_width_1.default)({ defaultWidth: 80, output: (0, hook_engine_ts_1.readline)().output });
2254
+ }
2255
+ __name(readlineWidth, "readlineWidth");
2256
+ }
2257
+ });
2258
+
2259
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js
2260
+ var require_use_pagination = __commonJS({
2261
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js"(exports2) {
2262
+ "use strict";
2263
+ Object.defineProperty(exports2, "__esModule", { value: true });
2264
+ exports2.usePagination = usePagination;
2265
+ var use_ref_ts_1 = require_use_ref();
2266
+ var utils_ts_1 = require_utils();
2267
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
2268
+ const state = (0, use_ref_ts_1.useRef)({
2269
+ lastPointer: active,
2270
+ lastActive: void 0
2271
+ });
2272
+ const { lastPointer, lastActive } = state.current;
2273
+ const middle = Math.floor(pageSize / 2);
2274
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
2275
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
2276
+ let pointer = defaultPointerPosition;
2277
+ if (renderedLength > pageSize) {
2278
+ if (loop) {
2279
+ pointer = lastPointer;
2280
+ if (
2281
+ // First render, skip this logic.
2282
+ lastActive != null && // Only move the pointer down when the user moves down.
2283
+ lastActive < active && // Check user didn't move up across page boundary.
2284
+ active - lastActive < pageSize
2285
+ ) {
2286
+ pointer = Math.min(
2287
+ // Furthest allowed position for the pointer is the middle of the list
2288
+ middle,
2289
+ Math.abs(active - lastActive) === 1 ? Math.min(
2290
+ // Move the pointer at most the height of the last active item.
2291
+ lastPointer + (renderedItems[lastActive]?.length ?? 0),
2292
+ // If the user moved by one item, move the pointer to the natural position of the active item as
2293
+ // long as it doesn't move the cursor up.
2294
+ Math.max(defaultPointerPosition, lastPointer)
2295
+ ) : (
2296
+ // Otherwise, move the pointer down by the difference between the active and last active item.
2297
+ lastPointer + active - lastActive
2298
+ )
2299
+ );
2300
+ }
2301
+ } else {
2302
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
2303
+ pointer = spaceUnderActive < pageSize - middle ? (
2304
+ // If the active item is near the end of the list, progressively move the cursor towards the end.
2305
+ pageSize - spaceUnderActive
2306
+ ) : (
2307
+ // Otherwise, progressively move the pointer to the middle of the list.
2308
+ Math.min(defaultPointerPosition, middle)
2309
+ );
2310
+ }
2311
+ }
2312
+ state.current.lastPointer = pointer;
2313
+ state.current.lastActive = active;
2314
+ return pointer;
2315
+ }
2316
+ __name(usePointerPosition, "usePointerPosition");
2317
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
2318
+ const width = (0, utils_ts_1.readlineWidth)();
2319
+ const bound = /* @__PURE__ */ __name((num) => (num % items.length + items.length) % items.length, "bound");
2320
+ const renderedItems = items.map((item, index) => {
2321
+ if (item == null)
2322
+ return [];
2323
+ return (0, utils_ts_1.breakLines)(renderItem({ item, index, isActive: index === active }), width).split("\n");
2324
+ });
2325
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
2326
+ const renderItemAtIndex = /* @__PURE__ */ __name((index) => renderedItems[index] ?? [], "renderItemAtIndex");
2327
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
2328
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
2329
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
2330
+ const pageBuffer = Array.from({ length: pageSize });
2331
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
2332
+ const itemVisited = /* @__PURE__ */ new Set([active]);
2333
+ let bufferPointer = activeItemPosition + activeItem.length;
2334
+ let itemPointer = bound(active + 1);
2335
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
2336
+ const lines = renderItemAtIndex(itemPointer);
2337
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
2338
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
2339
+ itemVisited.add(itemPointer);
2340
+ bufferPointer += linesToAdd.length;
2341
+ itemPointer = bound(itemPointer + 1);
2342
+ }
2343
+ bufferPointer = activeItemPosition - 1;
2344
+ itemPointer = bound(active - 1);
2345
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
2346
+ const lines = renderItemAtIndex(itemPointer);
2347
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
2348
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
2349
+ itemVisited.add(itemPointer);
2350
+ bufferPointer -= linesToAdd.length;
2351
+ itemPointer = bound(itemPointer - 1);
2352
+ }
2353
+ return pageBuffer.filter((line) => typeof line === "string").join("\n");
2354
+ }
2355
+ __name(usePagination, "usePagination");
2356
+ }
2357
+ });
2358
+
2359
+ // node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
2360
+ var require_lib = __commonJS({
2361
+ "node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"(exports2, module2) {
2362
+ var Stream = require("stream");
2363
+ var MuteStream = class extends Stream {
2364
+ static {
2365
+ __name(this, "MuteStream");
2366
+ }
2367
+ #isTTY = null;
2368
+ constructor(opts = {}) {
2369
+ super(opts);
2370
+ this.writable = this.readable = true;
2371
+ this.muted = false;
2372
+ this.on("pipe", this._onpipe);
2373
+ this.replace = opts.replace;
2374
+ this._prompt = opts.prompt || null;
2375
+ this._hadControl = false;
2376
+ }
2377
+ #destSrc(key, def) {
2378
+ if (this._dest) {
2379
+ return this._dest[key];
2380
+ }
2381
+ if (this._src) {
2382
+ return this._src[key];
2383
+ }
2384
+ return def;
2385
+ }
2386
+ #proxy(method, ...args) {
2387
+ if (typeof this._dest?.[method] === "function") {
2388
+ this._dest[method](...args);
2389
+ }
2390
+ if (typeof this._src?.[method] === "function") {
2391
+ this._src[method](...args);
2392
+ }
2393
+ }
2394
+ get isTTY() {
2395
+ if (this.#isTTY !== null) {
2396
+ return this.#isTTY;
2397
+ }
2398
+ return this.#destSrc("isTTY", false);
2399
+ }
2400
+ // basically just get replace the getter/setter with a regular value
2401
+ set isTTY(val) {
2402
+ this.#isTTY = val;
2403
+ }
2404
+ get rows() {
2405
+ return this.#destSrc("rows");
2406
+ }
2407
+ get columns() {
2408
+ return this.#destSrc("columns");
2409
+ }
2410
+ mute() {
2411
+ this.muted = true;
2412
+ }
2413
+ unmute() {
2414
+ this.muted = false;
2415
+ }
2416
+ _onpipe(src) {
2417
+ this._src = src;
2418
+ }
2419
+ pipe(dest, options) {
2420
+ this._dest = dest;
2421
+ return super.pipe(dest, options);
2422
+ }
2423
+ pause() {
2424
+ if (this._src) {
2425
+ return this._src.pause();
2426
+ }
2427
+ }
2428
+ resume() {
2429
+ if (this._src) {
2430
+ return this._src.resume();
2431
+ }
2432
+ }
2433
+ write(c) {
2434
+ if (this.muted) {
2435
+ if (!this.replace) {
2436
+ return true;
2437
+ }
2438
+ if (c.match(/^\u001b/)) {
2439
+ if (c.indexOf(this._prompt) === 0) {
2440
+ c = c.slice(this._prompt.length);
2441
+ c = c.replace(/./g, this.replace);
2442
+ c = this._prompt + c;
2443
+ }
2444
+ this._hadControl = true;
2445
+ return this.emit("data", c);
2446
+ } else {
2447
+ if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
2448
+ this._hadControl = false;
2449
+ this.emit("data", this._prompt);
2450
+ c = c.slice(this._prompt.length);
2451
+ }
2452
+ c = c.toString().replace(/./g, this.replace);
2453
+ }
2454
+ }
2455
+ this.emit("data", c);
2456
+ }
2457
+ end(c) {
2458
+ if (this.muted) {
2459
+ if (c && this.replace) {
2460
+ c = c.toString().replace(/./g, this.replace);
2461
+ } else {
2462
+ c = null;
2463
+ }
2464
+ }
2465
+ if (c) {
2466
+ this.emit("data", c);
2467
+ }
2468
+ this.emit("end");
2469
+ }
2470
+ destroy(...args) {
2471
+ return this.#proxy("destroy", ...args);
2472
+ }
2473
+ destroySoon(...args) {
2474
+ return this.#proxy("destroySoon", ...args);
2475
+ }
2476
+ close(...args) {
2477
+ return this.#proxy("close", ...args);
2478
+ }
2479
+ };
2480
+ module2.exports = MuteStream;
2481
+ }
2482
+ });
2483
+
2484
+ // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/cjs/signals.js
2485
+ var require_signals = __commonJS({
2486
+ "node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/cjs/signals.js"(exports2) {
2487
+ "use strict";
2488
+ Object.defineProperty(exports2, "__esModule", { value: true });
2489
+ exports2.signals = void 0;
2490
+ exports2.signals = [];
2491
+ exports2.signals.push("SIGHUP", "SIGINT", "SIGTERM");
2492
+ if (process.platform !== "win32") {
2493
+ exports2.signals.push(
2494
+ "SIGALRM",
2495
+ "SIGABRT",
2496
+ "SIGVTALRM",
2497
+ "SIGXCPU",
2498
+ "SIGXFSZ",
2499
+ "SIGUSR2",
2500
+ "SIGTRAP",
2501
+ "SIGSYS",
2502
+ "SIGQUIT",
2503
+ "SIGIOT"
2504
+ // should detect profiler and enable/disable accordingly.
2505
+ // see #21
2506
+ // 'SIGPROF'
2507
+ );
2508
+ }
2509
+ if (process.platform === "linux") {
2510
+ exports2.signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
2511
+ }
2512
+ }
2513
+ });
2514
+
2515
+ // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/cjs/index.js
2516
+ var require_cjs = __commonJS({
2517
+ "node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/cjs/index.js"(exports2) {
2518
+ "use strict";
2519
+ var _a;
2520
+ Object.defineProperty(exports2, "__esModule", { value: true });
2521
+ exports2.unload = exports2.load = exports2.onExit = exports2.signals = void 0;
2522
+ var signals_js_1 = require_signals();
2523
+ Object.defineProperty(exports2, "signals", { enumerable: true, get: /* @__PURE__ */ __name(function() {
2524
+ return signals_js_1.signals;
2525
+ }, "get") });
2526
+ var processOk = /* @__PURE__ */ __name((process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function", "processOk");
2527
+ var kExitEmitter = Symbol.for("signal-exit emitter");
2528
+ var global = globalThis;
2529
+ var ObjectDefineProperty = Object.defineProperty.bind(Object);
2530
+ var Emitter = class {
2531
+ static {
2532
+ __name(this, "Emitter");
2533
+ }
2534
+ emitted = {
2535
+ afterExit: false,
2536
+ exit: false
2537
+ };
2538
+ listeners = {
2539
+ afterExit: [],
2540
+ exit: []
2541
+ };
2542
+ count = 0;
2543
+ id = Math.random();
2544
+ constructor() {
2545
+ if (global[kExitEmitter]) {
2546
+ return global[kExitEmitter];
2547
+ }
2548
+ ObjectDefineProperty(global, kExitEmitter, {
2549
+ value: this,
2550
+ writable: false,
2551
+ enumerable: false,
2552
+ configurable: false
2553
+ });
2554
+ }
2555
+ on(ev, fn) {
2556
+ this.listeners[ev].push(fn);
2557
+ }
2558
+ removeListener(ev, fn) {
2559
+ const list = this.listeners[ev];
2560
+ const i = list.indexOf(fn);
2561
+ if (i === -1) {
2562
+ return;
2563
+ }
2564
+ if (i === 0 && list.length === 1) {
2565
+ list.length = 0;
2566
+ } else {
2567
+ list.splice(i, 1);
2568
+ }
2569
+ }
2570
+ emit(ev, code, signal) {
2571
+ if (this.emitted[ev]) {
2572
+ return false;
2573
+ }
2574
+ this.emitted[ev] = true;
2575
+ let ret = false;
2576
+ for (const fn of this.listeners[ev]) {
2577
+ ret = fn(code, signal) === true || ret;
2578
+ }
2579
+ if (ev === "exit") {
2580
+ ret = this.emit("afterExit", code, signal) || ret;
2581
+ }
2582
+ return ret;
2583
+ }
2584
+ };
2585
+ var SignalExitBase = class {
2586
+ static {
2587
+ __name(this, "SignalExitBase");
2588
+ }
2589
+ };
2590
+ var signalExitWrap = /* @__PURE__ */ __name((handler) => {
2591
+ return {
2592
+ onExit(cb, opts) {
2593
+ return handler.onExit(cb, opts);
2594
+ },
2595
+ load() {
2596
+ return handler.load();
2597
+ },
2598
+ unload() {
2599
+ return handler.unload();
2600
+ }
2601
+ };
2602
+ }, "signalExitWrap");
2603
+ var SignalExitFallback = class extends SignalExitBase {
2604
+ static {
2605
+ __name(this, "SignalExitFallback");
2606
+ }
2607
+ onExit() {
2608
+ return () => {
2609
+ };
2610
+ }
2611
+ load() {
2612
+ }
2613
+ unload() {
2614
+ }
2615
+ };
2616
+ var SignalExit = class extends SignalExitBase {
2617
+ static {
2618
+ __name(this, "SignalExit");
2619
+ }
2620
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
2621
+ // so use a supported signal instead
2622
+ /* c8 ignore start */
2623
+ #hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
2624
+ /* c8 ignore stop */
2625
+ #emitter = new Emitter();
2626
+ #process;
2627
+ #originalProcessEmit;
2628
+ #originalProcessReallyExit;
2629
+ #sigListeners = {};
2630
+ #loaded = false;
2631
+ constructor(process3) {
2632
+ super();
2633
+ this.#process = process3;
2634
+ this.#sigListeners = {};
2635
+ for (const sig of signals_js_1.signals) {
2636
+ this.#sigListeners[sig] = () => {
2637
+ const listeners = this.#process.listeners(sig);
2638
+ let { count } = this.#emitter;
2639
+ const p = process3;
2640
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
2641
+ count += p.__signal_exit_emitter__.count;
2642
+ }
2643
+ if (listeners.length === count) {
2644
+ this.unload();
2645
+ const ret = this.#emitter.emit("exit", null, sig);
2646
+ const s = sig === "SIGHUP" ? this.#hupSig : sig;
2647
+ if (!ret)
2648
+ process3.kill(process3.pid, s);
2649
+ }
2650
+ };
2651
+ }
2652
+ this.#originalProcessReallyExit = process3.reallyExit;
2653
+ this.#originalProcessEmit = process3.emit;
2654
+ }
2655
+ onExit(cb, opts) {
2656
+ if (!processOk(this.#process)) {
2657
+ return () => {
2658
+ };
2659
+ }
2660
+ if (this.#loaded === false) {
2661
+ this.load();
2662
+ }
2663
+ const ev = opts?.alwaysLast ? "afterExit" : "exit";
2664
+ this.#emitter.on(ev, cb);
2665
+ return () => {
2666
+ this.#emitter.removeListener(ev, cb);
2667
+ if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
2668
+ this.unload();
2669
+ }
2670
+ };
2671
+ }
2672
+ load() {
2673
+ if (this.#loaded) {
2674
+ return;
2675
+ }
2676
+ this.#loaded = true;
2677
+ this.#emitter.count += 1;
2678
+ for (const sig of signals_js_1.signals) {
2679
+ try {
2680
+ const fn = this.#sigListeners[sig];
2681
+ if (fn)
2682
+ this.#process.on(sig, fn);
2683
+ } catch (_) {
2684
+ }
2685
+ }
2686
+ this.#process.emit = (ev, ...a) => {
2687
+ return this.#processEmit(ev, ...a);
2688
+ };
2689
+ this.#process.reallyExit = (code) => {
2690
+ return this.#processReallyExit(code);
2691
+ };
2692
+ }
2693
+ unload() {
2694
+ if (!this.#loaded) {
2695
+ return;
2696
+ }
2697
+ this.#loaded = false;
2698
+ signals_js_1.signals.forEach((sig) => {
2699
+ const listener = this.#sigListeners[sig];
2700
+ if (!listener) {
2701
+ throw new Error("Listener not defined for signal: " + sig);
2702
+ }
2703
+ try {
2704
+ this.#process.removeListener(sig, listener);
2705
+ } catch (_) {
2706
+ }
2707
+ });
2708
+ this.#process.emit = this.#originalProcessEmit;
2709
+ this.#process.reallyExit = this.#originalProcessReallyExit;
2710
+ this.#emitter.count -= 1;
2711
+ }
2712
+ #processReallyExit(code) {
2713
+ if (!processOk(this.#process)) {
2714
+ return 0;
2715
+ }
2716
+ this.#process.exitCode = code || 0;
2717
+ this.#emitter.emit("exit", this.#process.exitCode, null);
2718
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
2719
+ }
2720
+ #processEmit(ev, ...args) {
2721
+ const og = this.#originalProcessEmit;
2722
+ if (ev === "exit" && processOk(this.#process)) {
2723
+ if (typeof args[0] === "number") {
2724
+ this.#process.exitCode = args[0];
2725
+ }
2726
+ const ret = og.call(this.#process, ev, ...args);
2727
+ this.#emitter.emit("exit", this.#process.exitCode, null);
2728
+ return ret;
2729
+ } else {
2730
+ return og.call(this.#process, ev, ...args);
2731
+ }
2732
+ }
2733
+ };
2734
+ var process2 = globalThis.process;
2735
+ _a = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback()), /**
2736
+ * Called when the process is exiting, whether via signal, explicit
2737
+ * exit, or running out of stuff to do.
2738
+ *
2739
+ * If the global process object is not suitable for instrumentation,
2740
+ * then this will be a no-op.
2741
+ *
2742
+ * Returns a function that may be used to unload signal-exit.
2743
+ */
2744
+ exports2.onExit = _a.onExit, /**
2745
+ * Load the listeners. Likely you never need to call this, unless
2746
+ * doing a rather deep integration with signal-exit functionality.
2747
+ * Mostly exposed for the benefit of testing.
2748
+ *
2749
+ * @internal
2750
+ */
2751
+ exports2.load = _a.load, /**
2752
+ * Unload the listeners. Likely you never need to call this, unless
2753
+ * doing a rather deep integration with signal-exit functionality.
2754
+ * Mostly exposed for the benefit of testing.
2755
+ *
2756
+ * @internal
2757
+ */
2758
+ exports2.unload = _a.unload;
2759
+ }
2760
+ });
2761
+
2762
+ // node_modules/.pnpm/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/commonjs/index.js
2763
+ var require_commonjs2 = __commonJS({
2764
+ "node_modules/.pnpm/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/commonjs/index.js"(exports2) {
2765
+ "use strict";
2766
+ Object.defineProperty(exports2, "__esModule", { value: true });
2767
+ exports2.eraseLines = exports2.cursorTo = exports2.cursorDown = exports2.cursorUp = exports2.cursorShow = exports2.cursorHide = exports2.cursorLeft = void 0;
2768
+ var ESC = "\x1B[";
2769
+ exports2.cursorLeft = ESC + "G";
2770
+ exports2.cursorHide = ESC + "?25l";
2771
+ exports2.cursorShow = ESC + "?25h";
2772
+ var cursorUp = /* @__PURE__ */ __name((rows = 1) => rows > 0 ? `${ESC}${rows}A` : "", "cursorUp");
2773
+ exports2.cursorUp = cursorUp;
2774
+ var cursorDown = /* @__PURE__ */ __name((rows = 1) => rows > 0 ? `${ESC}${rows}B` : "", "cursorDown");
2775
+ exports2.cursorDown = cursorDown;
2776
+ var cursorTo = /* @__PURE__ */ __name((x, y) => {
2777
+ if (typeof y === "number" && !Number.isNaN(y)) {
2778
+ return `${ESC}${y + 1};${x + 1}H`;
2779
+ }
2780
+ return `${ESC}${x + 1}G`;
2781
+ }, "cursorTo");
2782
+ exports2.cursorTo = cursorTo;
2783
+ var eraseLine = ESC + "2K";
2784
+ var eraseLines = /* @__PURE__ */ __name((lines) => lines > 0 ? (eraseLine + (0, exports2.cursorUp)(1)).repeat(lines - 1) + eraseLine + exports2.cursorLeft : "", "eraseLines");
2785
+ exports2.eraseLines = eraseLines;
2786
+ }
2787
+ });
2788
+
2789
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js
2790
+ var require_screen_manager = __commonJS({
2791
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js"(exports2) {
2792
+ "use strict";
2793
+ Object.defineProperty(exports2, "__esModule", { value: true });
2794
+ var node_util_1 = require("node:util");
2795
+ var utils_ts_1 = require_utils();
2796
+ var ansi_1 = require_commonjs2();
2797
+ var height = /* @__PURE__ */ __name((content) => content.split("\n").length, "height");
2798
+ var lastLine = /* @__PURE__ */ __name((content) => content.split("\n").pop() ?? "", "lastLine");
2799
+ var ScreenManager = class {
2800
+ static {
2801
+ __name(this, "ScreenManager");
2802
+ }
2803
+ // These variables are keeping information to allow correct prompt re-rendering
2804
+ height = 0;
2805
+ extraLinesUnderPrompt = 0;
2806
+ cursorPos;
2807
+ rl;
2808
+ constructor(rl) {
2809
+ this.rl = rl;
2810
+ this.cursorPos = rl.getCursorPos();
2811
+ }
2812
+ write(content) {
2813
+ this.rl.output.unmute();
2814
+ this.rl.output.write(content);
2815
+ this.rl.output.mute();
2816
+ }
2817
+ render(content, bottomContent = "") {
2818
+ const promptLine = lastLine(content);
2819
+ const rawPromptLine = (0, node_util_1.stripVTControlCharacters)(promptLine);
2820
+ let prompt = rawPromptLine;
2821
+ if (this.rl.line.length > 0) {
2822
+ prompt = prompt.slice(0, -this.rl.line.length);
2823
+ }
2824
+ this.rl.setPrompt(prompt);
2825
+ this.cursorPos = this.rl.getCursorPos();
2826
+ const width = (0, utils_ts_1.readlineWidth)();
2827
+ content = (0, utils_ts_1.breakLines)(content, width);
2828
+ bottomContent = (0, utils_ts_1.breakLines)(bottomContent, width);
2829
+ if (rawPromptLine.length % width === 0) {
2830
+ content += "\n";
2831
+ }
2832
+ let output = content + (bottomContent ? "\n" + bottomContent : "");
2833
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
2834
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
2835
+ if (bottomContentHeight > 0)
2836
+ output += (0, ansi_1.cursorUp)(bottomContentHeight);
2837
+ output += (0, ansi_1.cursorTo)(this.cursorPos.cols);
2838
+ this.write((0, ansi_1.cursorDown)(this.extraLinesUnderPrompt) + (0, ansi_1.eraseLines)(this.height) + output);
2839
+ this.extraLinesUnderPrompt = bottomContentHeight;
2840
+ this.height = height(output);
2841
+ }
2842
+ checkCursorPos() {
2843
+ const cursorPos = this.rl.getCursorPos();
2844
+ if (cursorPos.cols !== this.cursorPos.cols) {
2845
+ this.write((0, ansi_1.cursorTo)(cursorPos.cols));
2846
+ this.cursorPos = cursorPos;
2847
+ }
2848
+ }
2849
+ done({ clearContent }) {
2850
+ this.rl.setPrompt("");
2851
+ let output = (0, ansi_1.cursorDown)(this.extraLinesUnderPrompt);
2852
+ output += clearContent ? (0, ansi_1.eraseLines)(this.height) : "\n";
2853
+ output += ansi_1.cursorShow;
2854
+ this.write(output);
2855
+ this.rl.close();
2856
+ }
2857
+ };
2858
+ exports2.default = ScreenManager;
2859
+ }
2860
+ });
2861
+
2862
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js
2863
+ var require_promise_polyfill = __commonJS({
2864
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js"(exports2) {
2865
+ "use strict";
2866
+ Object.defineProperty(exports2, "__esModule", { value: true });
2867
+ exports2.PromisePolyfill = void 0;
2868
+ var PromisePolyfill = class extends Promise {
2869
+ static {
2870
+ __name(this, "PromisePolyfill");
2871
+ }
2872
+ // Available starting from Node 22
2873
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
2874
+ static withResolver() {
2875
+ let resolve;
2876
+ let reject;
2877
+ const promise = new Promise((res, rej) => {
2878
+ resolve = res;
2879
+ reject = rej;
2880
+ });
2881
+ return { promise, resolve, reject };
2882
+ }
2883
+ };
2884
+ exports2.PromisePolyfill = PromisePolyfill;
2885
+ }
2886
+ });
2887
+
2888
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js
2889
+ var require_create_prompt = __commonJS({
2890
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js"(exports2) {
2891
+ "use strict";
2892
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
2893
+ if (k2 === void 0) k2 = k;
2894
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2895
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2896
+ desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
2897
+ return m[k];
2898
+ }, "get") };
2899
+ }
2900
+ Object.defineProperty(o, k2, desc);
2901
+ }) : (function(o, m, k, k2) {
2902
+ if (k2 === void 0) k2 = k;
2903
+ o[k2] = m[k];
2904
+ }));
2905
+ var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
2906
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
2907
+ }) : function(o, v) {
2908
+ o["default"] = v;
2909
+ });
2910
+ var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
2911
+ var ownKeys = /* @__PURE__ */ __name(function(o) {
2912
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
2913
+ var ar = [];
2914
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
2915
+ return ar;
2916
+ };
2917
+ return ownKeys(o);
2918
+ }, "ownKeys");
2919
+ return function(mod) {
2920
+ if (mod && mod.__esModule) return mod;
2921
+ var result = {};
2922
+ if (mod != null) {
2923
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
2924
+ }
2925
+ __setModuleDefault(result, mod);
2926
+ return result;
2927
+ };
2928
+ })();
2929
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
2930
+ return mod && mod.__esModule ? mod : { "default": mod };
2931
+ };
2932
+ Object.defineProperty(exports2, "__esModule", { value: true });
2933
+ exports2.createPrompt = createPrompt;
2934
+ var readline = __importStar(require("node:readline"));
2935
+ var node_async_hooks_1 = require("node:async_hooks");
2936
+ var mute_stream_1 = __importDefault(require_lib());
2937
+ var signal_exit_1 = require_cjs();
2938
+ var screen_manager_ts_1 = __importDefault(require_screen_manager());
2939
+ var promise_polyfill_ts_1 = require_promise_polyfill();
2940
+ var hook_engine_ts_1 = require_hook_engine();
2941
+ var errors_ts_1 = require_errors();
2942
+ function getCallSites() {
2943
+ const _prepareStackTrace = Error.prepareStackTrace;
2944
+ let result = [];
2945
+ try {
2946
+ Error.prepareStackTrace = (_, callSites) => {
2947
+ const callSitesWithoutCurrent = callSites.slice(1);
2948
+ result = callSitesWithoutCurrent;
2949
+ return callSitesWithoutCurrent;
2950
+ };
2951
+ new Error().stack;
2952
+ } catch {
2953
+ return result;
2954
+ }
2955
+ Error.prepareStackTrace = _prepareStackTrace;
2956
+ return result;
2957
+ }
2958
+ __name(getCallSites, "getCallSites");
2959
+ function createPrompt(view) {
2960
+ const callSites = getCallSites();
2961
+ const prompt = /* @__PURE__ */ __name((config, context = {}) => {
2962
+ const { input = process.stdin, signal } = context;
2963
+ const cleanups = /* @__PURE__ */ new Set();
2964
+ const output = new mute_stream_1.default();
2965
+ output.pipe(context.output ?? process.stdout);
2966
+ const rl = readline.createInterface({
2967
+ terminal: true,
2968
+ input,
2969
+ output
2970
+ });
2971
+ const screen = new screen_manager_ts_1.default(rl);
2972
+ const { promise, resolve, reject } = promise_polyfill_ts_1.PromisePolyfill.withResolver();
2973
+ const cancel = /* @__PURE__ */ __name(() => reject(new errors_ts_1.CancelPromptError()), "cancel");
2974
+ if (signal) {
2975
+ const abort = /* @__PURE__ */ __name(() => reject(new errors_ts_1.AbortPromptError({ cause: signal.reason })), "abort");
2976
+ if (signal.aborted) {
2977
+ abort();
2978
+ return Object.assign(promise, { cancel });
2979
+ }
2980
+ signal.addEventListener("abort", abort);
2981
+ cleanups.add(() => signal.removeEventListener("abort", abort));
2982
+ }
2983
+ cleanups.add((0, signal_exit_1.onExit)((code, signal2) => {
2984
+ reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
2985
+ }));
2986
+ const sigint = /* @__PURE__ */ __name(() => reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with SIGINT`)), "sigint");
2987
+ rl.on("SIGINT", sigint);
2988
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
2989
+ const checkCursorPos = /* @__PURE__ */ __name(() => screen.checkCursorPos(), "checkCursorPos");
2990
+ rl.input.on("keypress", checkCursorPos);
2991
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
2992
+ return (0, hook_engine_ts_1.withHooks)(rl, (cycle) => {
2993
+ const hooksCleanup = node_async_hooks_1.AsyncResource.bind(() => hook_engine_ts_1.effectScheduler.clearAll());
2994
+ rl.on("close", hooksCleanup);
2995
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
2996
+ cycle(() => {
2997
+ try {
2998
+ const nextView = view(config, (value) => {
2999
+ setImmediate(() => resolve(value));
3000
+ });
3001
+ if (nextView === void 0) {
3002
+ const callerFilename = callSites[1]?.getFileName();
3003
+ throw new Error(`Prompt functions must return a string.
3004
+ at ${callerFilename}`);
3005
+ }
3006
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
3007
+ screen.render(content, bottomContent);
3008
+ hook_engine_ts_1.effectScheduler.run();
3009
+ } catch (error) {
3010
+ reject(error);
3011
+ }
3012
+ });
3013
+ return Object.assign(promise.then((answer) => {
3014
+ hook_engine_ts_1.effectScheduler.clearAll();
3015
+ return answer;
3016
+ }, (error) => {
3017
+ hook_engine_ts_1.effectScheduler.clearAll();
3018
+ throw error;
3019
+ }).finally(() => {
3020
+ cleanups.forEach((cleanup) => cleanup());
3021
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
3022
+ output.end();
3023
+ }).then(() => promise), { cancel });
3024
+ });
3025
+ }, "prompt");
3026
+ return prompt;
3027
+ }
3028
+ __name(createPrompt, "createPrompt");
3029
+ }
3030
+ });
3031
+
3032
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js
3033
+ var require_Separator = __commonJS({
3034
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js"(exports2) {
3035
+ "use strict";
3036
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3037
+ return mod && mod.__esModule ? mod : { "default": mod };
3038
+ };
3039
+ Object.defineProperty(exports2, "__esModule", { value: true });
3040
+ exports2.Separator = void 0;
3041
+ var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
3042
+ var figures_1 = __importDefault(require_commonjs());
3043
+ var Separator = class {
3044
+ static {
3045
+ __name(this, "Separator");
3046
+ }
3047
+ separator = yoctocolors_cjs_1.default.dim(Array.from({ length: 15 }).join(figures_1.default.line));
3048
+ type = "separator";
3049
+ constructor(separator) {
3050
+ if (separator) {
3051
+ this.separator = separator;
3052
+ }
3053
+ }
3054
+ static isSeparator(choice) {
3055
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
3056
+ }
3057
+ };
3058
+ exports2.Separator = Separator;
3059
+ }
3060
+ });
3061
+
3062
+ // node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/index.js
3063
+ var require_commonjs3 = __commonJS({
3064
+ "node_modules/.pnpm/@inquirer+core@10.3.1_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/index.js"(exports2) {
3065
+ "use strict";
3066
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
3067
+ if (k2 === void 0) k2 = k;
3068
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3069
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3070
+ desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
3071
+ return m[k];
3072
+ }, "get") };
3073
+ }
3074
+ Object.defineProperty(o, k2, desc);
3075
+ }) : (function(o, m, k, k2) {
3076
+ if (k2 === void 0) k2 = k;
3077
+ o[k2] = m[k];
3078
+ }));
3079
+ var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
3080
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
3081
+ };
3082
+ Object.defineProperty(exports2, "__esModule", { value: true });
3083
+ exports2.Separator = exports2.createPrompt = exports2.usePagination = exports2.makeTheme = exports2.useKeypress = exports2.useRef = exports2.useMemo = exports2.useEffect = exports2.useState = exports2.usePrefix = exports2.isEnterKey = exports2.isNumberKey = exports2.isTabKey = exports2.isBackspaceKey = exports2.isSpaceKey = exports2.isDownKey = exports2.isUpKey = void 0;
3084
+ var key_ts_1 = require_key();
3085
+ Object.defineProperty(exports2, "isUpKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3086
+ return key_ts_1.isUpKey;
3087
+ }, "get") });
3088
+ Object.defineProperty(exports2, "isDownKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3089
+ return key_ts_1.isDownKey;
3090
+ }, "get") });
3091
+ Object.defineProperty(exports2, "isSpaceKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3092
+ return key_ts_1.isSpaceKey;
3093
+ }, "get") });
3094
+ Object.defineProperty(exports2, "isBackspaceKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3095
+ return key_ts_1.isBackspaceKey;
3096
+ }, "get") });
3097
+ Object.defineProperty(exports2, "isTabKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3098
+ return key_ts_1.isTabKey;
3099
+ }, "get") });
3100
+ Object.defineProperty(exports2, "isNumberKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3101
+ return key_ts_1.isNumberKey;
3102
+ }, "get") });
3103
+ Object.defineProperty(exports2, "isEnterKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3104
+ return key_ts_1.isEnterKey;
3105
+ }, "get") });
3106
+ __exportStar(require_errors(), exports2);
3107
+ var use_prefix_ts_1 = require_use_prefix();
3108
+ Object.defineProperty(exports2, "usePrefix", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3109
+ return use_prefix_ts_1.usePrefix;
3110
+ }, "get") });
3111
+ var use_state_ts_1 = require_use_state();
3112
+ Object.defineProperty(exports2, "useState", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3113
+ return use_state_ts_1.useState;
3114
+ }, "get") });
3115
+ var use_effect_ts_1 = require_use_effect();
3116
+ Object.defineProperty(exports2, "useEffect", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3117
+ return use_effect_ts_1.useEffect;
3118
+ }, "get") });
3119
+ var use_memo_ts_1 = require_use_memo();
3120
+ Object.defineProperty(exports2, "useMemo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3121
+ return use_memo_ts_1.useMemo;
3122
+ }, "get") });
3123
+ var use_ref_ts_1 = require_use_ref();
3124
+ Object.defineProperty(exports2, "useRef", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3125
+ return use_ref_ts_1.useRef;
3126
+ }, "get") });
3127
+ var use_keypress_ts_1 = require_use_keypress();
3128
+ Object.defineProperty(exports2, "useKeypress", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3129
+ return use_keypress_ts_1.useKeypress;
3130
+ }, "get") });
3131
+ var make_theme_ts_1 = require_make_theme();
3132
+ Object.defineProperty(exports2, "makeTheme", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3133
+ return make_theme_ts_1.makeTheme;
3134
+ }, "get") });
3135
+ var use_pagination_ts_1 = require_use_pagination();
3136
+ Object.defineProperty(exports2, "usePagination", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3137
+ return use_pagination_ts_1.usePagination;
3138
+ }, "get") });
3139
+ var create_prompt_ts_1 = require_create_prompt();
3140
+ Object.defineProperty(exports2, "createPrompt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3141
+ return create_prompt_ts_1.createPrompt;
3142
+ }, "get") });
3143
+ var Separator_ts_1 = require_Separator();
3144
+ Object.defineProperty(exports2, "Separator", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3145
+ return Separator_ts_1.Separator;
3146
+ }, "get") });
3147
+ }
3148
+ });
3149
+
3150
+ // node_modules/.pnpm/@inquirer+checkbox@4.3.1_@types+node@24.9.2/node_modules/@inquirer/checkbox/dist/commonjs/index.js
3151
+ var require_commonjs4 = __commonJS({
3152
+ "node_modules/.pnpm/@inquirer+checkbox@4.3.1_@types+node@24.9.2/node_modules/@inquirer/checkbox/dist/commonjs/index.js"(exports2) {
3153
+ "use strict";
3154
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3155
+ return mod && mod.__esModule ? mod : { "default": mod };
3156
+ };
3157
+ Object.defineProperty(exports2, "__esModule", { value: true });
3158
+ exports2.Separator = void 0;
3159
+ var core_1 = require_commonjs3();
3160
+ var ansi_1 = require_commonjs2();
3161
+ var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
3162
+ var figures_1 = __importDefault(require_commonjs());
3163
+ var checkboxTheme = {
3164
+ icon: {
3165
+ checked: yoctocolors_cjs_1.default.green(figures_1.default.circleFilled),
3166
+ unchecked: figures_1.default.circle,
3167
+ cursor: figures_1.default.pointer
3168
+ },
3169
+ style: {
3170
+ disabledChoice: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.dim(`- ${text}`), "disabledChoice"),
3171
+ renderSelectedChoices: /* @__PURE__ */ __name((selectedChoices) => selectedChoices.map((choice) => choice.short).join(", "), "renderSelectedChoices"),
3172
+ description: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.cyan(text), "description"),
3173
+ keysHelpTip: /* @__PURE__ */ __name((keys) => keys.map(([key, action]) => `${yoctocolors_cjs_1.default.bold(key)} ${yoctocolors_cjs_1.default.dim(action)}`).join(yoctocolors_cjs_1.default.dim(" • ")), "keysHelpTip")
3174
+ },
3175
+ helpMode: "always",
3176
+ keybindings: []
3177
+ };
3178
+ function isSelectable(item) {
3179
+ return !core_1.Separator.isSeparator(item) && !item.disabled;
3180
+ }
3181
+ __name(isSelectable, "isSelectable");
3182
+ function isChecked(item) {
3183
+ return isSelectable(item) && item.checked;
3184
+ }
3185
+ __name(isChecked, "isChecked");
3186
+ function toggle(item) {
3187
+ return isSelectable(item) ? { ...item, checked: !item.checked } : item;
3188
+ }
3189
+ __name(toggle, "toggle");
3190
+ function check(checked) {
3191
+ return function(item) {
3192
+ return isSelectable(item) ? { ...item, checked } : item;
3193
+ };
3194
+ }
3195
+ __name(check, "check");
3196
+ function normalizeChoices(choices) {
3197
+ return choices.map((choice) => {
3198
+ if (core_1.Separator.isSeparator(choice))
3199
+ return choice;
3200
+ if (typeof choice === "string") {
3201
+ return {
3202
+ value: choice,
3203
+ name: choice,
3204
+ short: choice,
3205
+ checkedName: choice,
3206
+ disabled: false,
3207
+ checked: false
3208
+ };
3209
+ }
3210
+ const name = choice.name ?? String(choice.value);
3211
+ const normalizedChoice = {
3212
+ value: choice.value,
3213
+ name,
3214
+ short: choice.short ?? name,
3215
+ checkedName: choice.checkedName ?? name,
3216
+ disabled: choice.disabled ?? false,
3217
+ checked: choice.checked ?? false
3218
+ };
3219
+ if (choice.description) {
3220
+ normalizedChoice.description = choice.description;
3221
+ }
3222
+ return normalizedChoice;
3223
+ });
3224
+ }
3225
+ __name(normalizeChoices, "normalizeChoices");
3226
+ exports2.default = (0, core_1.createPrompt)((config, done) => {
3227
+ const {
3228
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
3229
+ instructions,
3230
+ pageSize = 7,
3231
+ loop = true,
3232
+ required,
3233
+ validate = /* @__PURE__ */ __name(() => true, "validate")
3234
+ } = config;
3235
+ const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
3236
+ const theme = (0, core_1.makeTheme)(checkboxTheme, config.theme);
3237
+ const { keybindings } = theme;
3238
+ const [status, setStatus] = (0, core_1.useState)("idle");
3239
+ const prefix = (0, core_1.usePrefix)({ status, theme });
3240
+ const [items, setItems] = (0, core_1.useState)(normalizeChoices(config.choices));
3241
+ const bounds = (0, core_1.useMemo)(() => {
3242
+ const first = items.findIndex(isSelectable);
3243
+ const last = items.findLastIndex(isSelectable);
3244
+ if (first === -1) {
3245
+ throw new core_1.ValidationError("[checkbox prompt] No selectable choices. All choices are disabled.");
3246
+ }
3247
+ return { first, last };
3248
+ }, [items]);
3249
+ const [active, setActive] = (0, core_1.useState)(bounds.first);
3250
+ const [errorMsg, setError] = (0, core_1.useState)();
3251
+ (0, core_1.useKeypress)(async (key) => {
3252
+ if ((0, core_1.isEnterKey)(key)) {
3253
+ const selection = items.filter(isChecked);
3254
+ const isValid = await validate([...selection]);
3255
+ if (required && !items.some(isChecked)) {
3256
+ setError("At least one choice must be selected");
3257
+ } else if (isValid === true) {
3258
+ setStatus("done");
3259
+ done(selection.map((choice) => choice.value));
3260
+ } else {
3261
+ setError(isValid || "You must select a valid value");
3262
+ }
3263
+ } else if ((0, core_1.isUpKey)(key, keybindings) || (0, core_1.isDownKey)(key, keybindings)) {
3264
+ if (loop || (0, core_1.isUpKey)(key, keybindings) && active !== bounds.first || (0, core_1.isDownKey)(key, keybindings) && active !== bounds.last) {
3265
+ const offset = (0, core_1.isUpKey)(key, keybindings) ? -1 : 1;
3266
+ let next = active;
3267
+ do {
3268
+ next = (next + offset + items.length) % items.length;
3269
+ } while (!isSelectable(items[next]));
3270
+ setActive(next);
3271
+ }
3272
+ } else if ((0, core_1.isSpaceKey)(key)) {
3273
+ setError(void 0);
3274
+ setItems(items.map((choice, i) => i === active ? toggle(choice) : choice));
3275
+ } else if (key.name === shortcuts.all) {
3276
+ const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
3277
+ setItems(items.map(check(selectAll)));
3278
+ } else if (key.name === shortcuts.invert) {
3279
+ setItems(items.map(toggle));
3280
+ } else if ((0, core_1.isNumberKey)(key)) {
3281
+ const selectedIndex = Number(key.name) - 1;
3282
+ let selectableIndex = -1;
3283
+ const position = items.findIndex((item) => {
3284
+ if (core_1.Separator.isSeparator(item))
3285
+ return false;
3286
+ selectableIndex++;
3287
+ return selectableIndex === selectedIndex;
3288
+ });
3289
+ const selectedItem = items[position];
3290
+ if (selectedItem && isSelectable(selectedItem)) {
3291
+ setActive(position);
3292
+ setItems(items.map((choice, i) => i === position ? toggle(choice) : choice));
3293
+ }
3294
+ }
3295
+ });
3296
+ const message = theme.style.message(config.message, status);
3297
+ let description;
3298
+ const page = (0, core_1.usePagination)({
3299
+ items,
3300
+ active,
3301
+ renderItem({ item, isActive }) {
3302
+ if (core_1.Separator.isSeparator(item)) {
3303
+ return ` ${item.separator}`;
3304
+ }
3305
+ if (item.disabled) {
3306
+ const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
3307
+ return theme.style.disabledChoice(`${item.name} ${disabledLabel}`);
3308
+ }
3309
+ if (isActive) {
3310
+ description = item.description;
3311
+ }
3312
+ const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
3313
+ const name = item.checked ? item.checkedName : item.name;
3314
+ const color = isActive ? theme.style.highlight : (x) => x;
3315
+ const cursor = isActive ? theme.icon.cursor : " ";
3316
+ return color(`${cursor}${checkbox} ${name}`);
3317
+ },
3318
+ pageSize,
3319
+ loop
3320
+ });
3321
+ if (status === "done") {
3322
+ const selection = items.filter(isChecked);
3323
+ const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
3324
+ return [prefix, message, answer].filter(Boolean).join(" ");
3325
+ }
3326
+ let helpLine;
3327
+ if (theme.helpMode !== "never" && instructions !== false) {
3328
+ if (typeof instructions === "string") {
3329
+ helpLine = instructions;
3330
+ } else {
3331
+ const keys = [
3332
+ ["↑↓", "navigate"],
3333
+ ["space", "select"]
3334
+ ];
3335
+ if (shortcuts.all)
3336
+ keys.push([shortcuts.all, "all"]);
3337
+ if (shortcuts.invert)
3338
+ keys.push([shortcuts.invert, "invert"]);
3339
+ keys.push(["⏎", "submit"]);
3340
+ helpLine = theme.style.keysHelpTip(keys);
3341
+ }
3342
+ }
3343
+ const lines = [
3344
+ [prefix, message].filter(Boolean).join(" "),
3345
+ page,
3346
+ " ",
3347
+ description ? theme.style.description(description) : "",
3348
+ errorMsg ? theme.style.error(errorMsg) : "",
3349
+ helpLine
3350
+ ].filter(Boolean).join("\n").trimEnd();
3351
+ return `${lines}${ansi_1.cursorHide}`;
3352
+ });
3353
+ var core_2 = require_commonjs3();
3354
+ Object.defineProperty(exports2, "Separator", { enumerable: true, get: /* @__PURE__ */ __name(function() {
3355
+ return core_2.Separator;
3356
+ }, "get") });
3357
+ }
3358
+ });
3359
+
3360
+ // src/external/@inquirer/checkbox.js
3361
+ module.exports = require_commonjs4();
3362
+ if (module.exports && module.exports.default && Object.keys(module.exports).length === 1) { module.exports = module.exports.default; }