@stacksjs/buddy 0.58.57 → 0.58.59

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.
@@ -0,0 +1,993 @@
1
+ // /home/runner/work/stacks/stacks/node_modules/consola/dist/core.mjs
2
+ var isObject = function(value) {
3
+ return value !== null && typeof value === "object";
4
+ };
5
+ var _defu = function(baseObject, defaults, namespace = ".", merger) {
6
+ if (!isObject(defaults)) {
7
+ return _defu(baseObject, {}, namespace, merger);
8
+ }
9
+ const object = Object.assign({}, defaults);
10
+ for (const key in baseObject) {
11
+ if (key === "__proto__" || key === "constructor") {
12
+ continue;
13
+ }
14
+ const value = baseObject[key];
15
+ if (value === null || value === undefined) {
16
+ continue;
17
+ }
18
+ if (merger && merger(object, key, value, namespace)) {
19
+ continue;
20
+ }
21
+ if (Array.isArray(value) && Array.isArray(object[key])) {
22
+ object[key] = [...value, ...object[key]];
23
+ } else if (isObject(value) && isObject(object[key])) {
24
+ object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
25
+ } else {
26
+ object[key] = value;
27
+ }
28
+ }
29
+ return object;
30
+ };
31
+ var createDefu = function(merger) {
32
+ return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
33
+ };
34
+ var isPlainObject = function(obj) {
35
+ return Object.prototype.toString.call(obj) === "[object Object]";
36
+ };
37
+ var isLogObj = function(arg) {
38
+ if (!isPlainObject(arg)) {
39
+ return false;
40
+ }
41
+ if (!arg.message && !arg.args) {
42
+ return false;
43
+ }
44
+ if (arg.stack) {
45
+ return false;
46
+ }
47
+ return true;
48
+ };
49
+ var _normalizeLogLevel = function(input, types = {}, defaultLevel = 3) {
50
+ if (input === undefined) {
51
+ return defaultLevel;
52
+ }
53
+ if (typeof input === "number") {
54
+ return input;
55
+ }
56
+ if (types[input] && types[input].level !== undefined) {
57
+ return types[input].level;
58
+ }
59
+ return defaultLevel;
60
+ };
61
+ var createConsola = function(options = {}) {
62
+ return new Consola(options);
63
+ };
64
+ var LogLevels = {
65
+ silent: Number.NEGATIVE_INFINITY,
66
+ fatal: 0,
67
+ error: 0,
68
+ warn: 1,
69
+ log: 2,
70
+ info: 3,
71
+ success: 3,
72
+ fail: 3,
73
+ ready: 3,
74
+ start: 3,
75
+ box: 3,
76
+ debug: 4,
77
+ trace: 5,
78
+ verbose: Number.POSITIVE_INFINITY
79
+ };
80
+ var LogTypes = {
81
+ silent: {
82
+ level: -1
83
+ },
84
+ fatal: {
85
+ level: LogLevels.fatal
86
+ },
87
+ error: {
88
+ level: LogLevels.error
89
+ },
90
+ warn: {
91
+ level: LogLevels.warn
92
+ },
93
+ log: {
94
+ level: LogLevels.log
95
+ },
96
+ info: {
97
+ level: LogLevels.info
98
+ },
99
+ success: {
100
+ level: LogLevels.success
101
+ },
102
+ fail: {
103
+ level: LogLevels.fail
104
+ },
105
+ ready: {
106
+ level: LogLevels.info
107
+ },
108
+ start: {
109
+ level: LogLevels.info
110
+ },
111
+ box: {
112
+ level: LogLevels.info
113
+ },
114
+ debug: {
115
+ level: LogLevels.debug
116
+ },
117
+ trace: {
118
+ level: LogLevels.trace
119
+ },
120
+ verbose: {
121
+ level: LogLevels.verbose
122
+ }
123
+ };
124
+ var defu = createDefu();
125
+ var paused = false;
126
+ var queue = [];
127
+
128
+ class Consola {
129
+ constructor(options = {}) {
130
+ const types = options.types || LogTypes;
131
+ this.options = defu({
132
+ ...options,
133
+ defaults: { ...options.defaults },
134
+ level: _normalizeLogLevel(options.level, types),
135
+ reporters: [...options.reporters || []]
136
+ }, {
137
+ types: LogTypes,
138
+ throttle: 1000,
139
+ throttleMin: 5,
140
+ formatOptions: {
141
+ date: true,
142
+ colors: false,
143
+ compact: true
144
+ }
145
+ });
146
+ for (const type in types) {
147
+ const defaults = {
148
+ type,
149
+ ...this.options.defaults,
150
+ ...types[type]
151
+ };
152
+ this[type] = this._wrapLogFn(defaults);
153
+ this[type].raw = this._wrapLogFn(defaults, true);
154
+ }
155
+ if (this.options.mockFn) {
156
+ this.mockTypes();
157
+ }
158
+ this._lastLog = {};
159
+ }
160
+ get level() {
161
+ return this.options.level;
162
+ }
163
+ set level(level) {
164
+ this.options.level = _normalizeLogLevel(level, this.options.types, this.options.level);
165
+ }
166
+ prompt(message, opts) {
167
+ if (!this.options.prompt) {
168
+ throw new Error("prompt is not supported!");
169
+ }
170
+ return this.options.prompt(message, opts);
171
+ }
172
+ create(options) {
173
+ const instance = new Consola({
174
+ ...this.options,
175
+ ...options
176
+ });
177
+ if (this._mockFn) {
178
+ instance.mockTypes(this._mockFn);
179
+ }
180
+ return instance;
181
+ }
182
+ withDefaults(defaults) {
183
+ return this.create({
184
+ ...this.options,
185
+ defaults: {
186
+ ...this.options.defaults,
187
+ ...defaults
188
+ }
189
+ });
190
+ }
191
+ withTag(tag) {
192
+ return this.withDefaults({
193
+ tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
194
+ });
195
+ }
196
+ addReporter(reporter) {
197
+ this.options.reporters.push(reporter);
198
+ return this;
199
+ }
200
+ removeReporter(reporter) {
201
+ if (reporter) {
202
+ const i = this.options.reporters.indexOf(reporter);
203
+ if (i >= 0) {
204
+ return this.options.reporters.splice(i, 1);
205
+ }
206
+ } else {
207
+ this.options.reporters.splice(0);
208
+ }
209
+ return this;
210
+ }
211
+ setReporters(reporters) {
212
+ this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
213
+ return this;
214
+ }
215
+ wrapAll() {
216
+ this.wrapConsole();
217
+ this.wrapStd();
218
+ }
219
+ restoreAll() {
220
+ this.restoreConsole();
221
+ this.restoreStd();
222
+ }
223
+ wrapConsole() {
224
+ for (const type in this.options.types) {
225
+ if (!console["__" + type]) {
226
+ console["__" + type] = console[type];
227
+ }
228
+ console[type] = this[type].raw;
229
+ }
230
+ }
231
+ restoreConsole() {
232
+ for (const type in this.options.types) {
233
+ if (console["__" + type]) {
234
+ console[type] = console["__" + type];
235
+ delete console["__" + type];
236
+ }
237
+ }
238
+ }
239
+ wrapStd() {
240
+ this._wrapStream(this.options.stdout, "log");
241
+ this._wrapStream(this.options.stderr, "log");
242
+ }
243
+ _wrapStream(stream, type) {
244
+ if (!stream) {
245
+ return;
246
+ }
247
+ if (!stream.__write) {
248
+ stream.__write = stream.write;
249
+ }
250
+ stream.write = (data) => {
251
+ this[type].raw(String(data).trim());
252
+ };
253
+ }
254
+ restoreStd() {
255
+ this._restoreStream(this.options.stdout);
256
+ this._restoreStream(this.options.stderr);
257
+ }
258
+ _restoreStream(stream) {
259
+ if (!stream) {
260
+ return;
261
+ }
262
+ if (stream.__write) {
263
+ stream.write = stream.__write;
264
+ delete stream.__write;
265
+ }
266
+ }
267
+ pauseLogs() {
268
+ paused = true;
269
+ }
270
+ resumeLogs() {
271
+ paused = false;
272
+ const _queue = queue.splice(0);
273
+ for (const item of _queue) {
274
+ item[0]._logFn(item[1], item[2]);
275
+ }
276
+ }
277
+ mockTypes(mockFn) {
278
+ const _mockFn = mockFn || this.options.mockFn;
279
+ this._mockFn = _mockFn;
280
+ if (typeof _mockFn !== "function") {
281
+ return;
282
+ }
283
+ for (const type in this.options.types) {
284
+ this[type] = _mockFn(type, this.options.types[type]) || this[type];
285
+ this[type].raw = this[type];
286
+ }
287
+ }
288
+ _wrapLogFn(defaults, isRaw) {
289
+ return (...args) => {
290
+ if (paused) {
291
+ queue.push([this, defaults, args, isRaw]);
292
+ return;
293
+ }
294
+ return this._logFn(defaults, args, isRaw);
295
+ };
296
+ }
297
+ _logFn(defaults, args, isRaw) {
298
+ if ((defaults.level || 0) > this.level) {
299
+ return false;
300
+ }
301
+ const logObj = {
302
+ date: new Date,
303
+ args: [],
304
+ ...defaults,
305
+ level: _normalizeLogLevel(defaults.level, this.options.types)
306
+ };
307
+ if (!isRaw && args.length === 1 && isLogObj(args[0])) {
308
+ Object.assign(logObj, args[0]);
309
+ } else {
310
+ logObj.args = [...args];
311
+ }
312
+ if (logObj.message) {
313
+ logObj.args.unshift(logObj.message);
314
+ delete logObj.message;
315
+ }
316
+ if (logObj.additional) {
317
+ if (!Array.isArray(logObj.additional)) {
318
+ logObj.additional = logObj.additional.split("\n");
319
+ }
320
+ logObj.args.push("\n" + logObj.additional.join("\n"));
321
+ delete logObj.additional;
322
+ }
323
+ logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
324
+ logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
325
+ const resolveLog = (newLog = false) => {
326
+ const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
327
+ if (this._lastLog.object && repeated > 0) {
328
+ const args2 = [...this._lastLog.object.args];
329
+ if (repeated > 1) {
330
+ args2.push(`(repeated ${repeated} times)`);
331
+ }
332
+ this._log({ ...this._lastLog.object, args: args2 });
333
+ this._lastLog.count = 1;
334
+ }
335
+ if (newLog) {
336
+ this._lastLog.object = logObj;
337
+ this._log(logObj);
338
+ }
339
+ };
340
+ clearTimeout(this._lastLog.timeout);
341
+ const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
342
+ this._lastLog.time = logObj.date;
343
+ if (diffTime < this.options.throttle) {
344
+ try {
345
+ const serializedLog = JSON.stringify([
346
+ logObj.type,
347
+ logObj.tag,
348
+ logObj.args
349
+ ]);
350
+ const isSameLog = this._lastLog.serialized === serializedLog;
351
+ this._lastLog.serialized = serializedLog;
352
+ if (isSameLog) {
353
+ this._lastLog.count = (this._lastLog.count || 0) + 1;
354
+ if (this._lastLog.count > this.options.throttleMin) {
355
+ this._lastLog.timeout = setTimeout(resolveLog, this.options.throttle);
356
+ return;
357
+ }
358
+ }
359
+ } catch {
360
+ }
361
+ }
362
+ resolveLog(true);
363
+ }
364
+ _log(logObj) {
365
+ for (const reporter of this.options.reporters) {
366
+ reporter.log(logObj, {
367
+ options: this.options
368
+ });
369
+ }
370
+ }
371
+ }
372
+ Consola.prototype.add = Consola.prototype.addReporter;
373
+ Consola.prototype.remove = Consola.prototype.removeReporter;
374
+ Consola.prototype.clear = Consola.prototype.removeReporter;
375
+ Consola.prototype.withScope = Consola.prototype.withTag;
376
+ Consola.prototype.mock = Consola.prototype.mockTypes;
377
+ Consola.prototype.pause = Consola.prototype.pauseLogs;
378
+ Consola.prototype.resume = Consola.prototype.resumeLogs;
379
+
380
+ // /home/runner/work/stacks/stacks/node_modules/consola/dist/shared/consola.06ad8a64.mjs
381
+ import {formatWithOptions} from "util";
382
+ import {sep} from "path";
383
+ var parseStack = function(stack) {
384
+ const cwd = process.cwd() + sep;
385
+ const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
386
+ return lines;
387
+ };
388
+ var writeStream = function(data, stream) {
389
+ const write = stream.__write || stream.write;
390
+ return write.call(stream, data);
391
+ };
392
+ var bracket = (x) => x ? `[${x}]` : "";
393
+
394
+ class BasicReporter {
395
+ formatStack(stack, opts) {
396
+ return " " + parseStack(stack).join("\n ");
397
+ }
398
+ formatArgs(args, opts) {
399
+ const _args = args.map((arg) => {
400
+ if (arg && typeof arg.stack === "string") {
401
+ return arg.message + "\n" + this.formatStack(arg.stack, opts);
402
+ }
403
+ return arg;
404
+ });
405
+ return formatWithOptions(opts, ..._args);
406
+ }
407
+ formatDate(date, opts) {
408
+ return opts.date ? date.toLocaleTimeString() : "";
409
+ }
410
+ filterAndJoin(arr) {
411
+ return arr.filter(Boolean).join(" ");
412
+ }
413
+ formatLogObj(logObj, opts) {
414
+ const message = this.formatArgs(logObj.args, opts);
415
+ if (logObj.type === "box") {
416
+ return "\n" + [
417
+ bracket(logObj.tag),
418
+ logObj.title && logObj.title,
419
+ ...message.split("\n")
420
+ ].filter(Boolean).map((l) => " > " + l).join("\n") + "\n";
421
+ }
422
+ return this.filterAndJoin([
423
+ bracket(logObj.type),
424
+ bracket(logObj.tag),
425
+ message
426
+ ]);
427
+ }
428
+ log(logObj, ctx) {
429
+ const line = this.formatLogObj(logObj, {
430
+ columns: ctx.options.stdout.columns || 0,
431
+ ...ctx.options.formatOptions
432
+ });
433
+ return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
434
+ }
435
+ }
436
+
437
+ // /home/runner/work/stacks/stacks/node_modules/consola/dist/utils.mjs
438
+ import * as tty from "tty";
439
+ var replaceClose = function(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
440
+ return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
441
+ };
442
+ var clearBleed = function(index, string, open, close, replace) {
443
+ return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
444
+ };
445
+ var filterEmpty = function(open, close, replace = open, at = open.length + 1) {
446
+ return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
447
+ };
448
+ var init = function(open, close, replace) {
449
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
450
+ };
451
+ var createColors = function(useColor = isColorSupported) {
452
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
453
+ };
454
+ var getColor = function(color, fallback = "reset") {
455
+ return colors[color] || colors[fallback];
456
+ };
457
+ var stripAnsi = function(text) {
458
+ return text.replace(new RegExp(ansiRegex, "g"), "");
459
+ };
460
+ var box = function(text, _opts = {}) {
461
+ const opts = {
462
+ ..._opts,
463
+ style: {
464
+ ...defaultStyle,
465
+ ..._opts.style
466
+ }
467
+ };
468
+ const textLines = text.split("\n");
469
+ const boxLines = [];
470
+ const _color = getColor(opts.style.borderColor);
471
+ const borderStyle = {
472
+ ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
473
+ };
474
+ if (_color) {
475
+ for (const key in borderStyle) {
476
+ borderStyle[key] = _color(borderStyle[key]);
477
+ }
478
+ }
479
+ const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
480
+ const height = textLines.length + paddingOffset;
481
+ const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
482
+ const widthOffset = width + paddingOffset;
483
+ const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
484
+ if (opts.style.marginTop > 0) {
485
+ boxLines.push("".repeat(opts.style.marginTop));
486
+ }
487
+ if (opts.title) {
488
+ const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
489
+ const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
490
+ boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
491
+ } else {
492
+ boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
493
+ }
494
+ const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
495
+ for (let i = 0;i < height; i++) {
496
+ if (i < valignOffset || i >= valignOffset + textLines.length) {
497
+ boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
498
+ } else {
499
+ const line = textLines[i - valignOffset];
500
+ const left = " ".repeat(paddingOffset);
501
+ const right = " ".repeat(width - stripAnsi(line).length);
502
+ boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
503
+ }
504
+ }
505
+ boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
506
+ if (opts.style.marginBottom > 0) {
507
+ boxLines.push("".repeat(opts.style.marginBottom));
508
+ }
509
+ return boxLines.join("\n");
510
+ };
511
+ var {
512
+ env = {},
513
+ argv = [],
514
+ platform = ""
515
+ } = typeof process === "undefined" ? {} : process;
516
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
517
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
518
+ var isWindows = platform === "win32";
519
+ var isDumbTerminal = env.TERM === "dumb";
520
+ var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
521
+ var isCI = "CI" in env && (("GITHUB_ACTIONS" in env) || ("GITLAB_CI" in env) || ("CIRCLECI" in env));
522
+ var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
523
+ var colorDefs = {
524
+ reset: init(0, 0),
525
+ bold: init(1, 22, "\x1B[22m\x1B[1m"),
526
+ dim: init(2, 22, "\x1B[22m\x1B[2m"),
527
+ italic: init(3, 23),
528
+ underline: init(4, 24),
529
+ inverse: init(7, 27),
530
+ hidden: init(8, 28),
531
+ strikethrough: init(9, 29),
532
+ black: init(30, 39),
533
+ red: init(31, 39),
534
+ green: init(32, 39),
535
+ yellow: init(33, 39),
536
+ blue: init(34, 39),
537
+ magenta: init(35, 39),
538
+ cyan: init(36, 39),
539
+ white: init(37, 39),
540
+ gray: init(90, 39),
541
+ bgBlack: init(40, 49),
542
+ bgRed: init(41, 49),
543
+ bgGreen: init(42, 49),
544
+ bgYellow: init(43, 49),
545
+ bgBlue: init(44, 49),
546
+ bgMagenta: init(45, 49),
547
+ bgCyan: init(46, 49),
548
+ bgWhite: init(47, 49),
549
+ blackBright: init(90, 39),
550
+ redBright: init(91, 39),
551
+ greenBright: init(92, 39),
552
+ yellowBright: init(93, 39),
553
+ blueBright: init(94, 39),
554
+ magentaBright: init(95, 39),
555
+ cyanBright: init(96, 39),
556
+ whiteBright: init(97, 39),
557
+ bgBlackBright: init(100, 49),
558
+ bgRedBright: init(101, 49),
559
+ bgGreenBright: init(102, 49),
560
+ bgYellowBright: init(103, 49),
561
+ bgBlueBright: init(104, 49),
562
+ bgMagentaBright: init(105, 49),
563
+ bgCyanBright: init(106, 49),
564
+ bgWhiteBright: init(107, 49)
565
+ };
566
+ var colors = createColors();
567
+ var ansiRegex = [
568
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
569
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
570
+ ].join("|");
571
+ var boxStylePresets = {
572
+ solid: {
573
+ tl: "\u250C",
574
+ tr: "\u2510",
575
+ bl: "\u2514",
576
+ br: "\u2518",
577
+ h: "\u2500",
578
+ v: "\u2502"
579
+ },
580
+ double: {
581
+ tl: "\u2554",
582
+ tr: "\u2557",
583
+ bl: "\u255A",
584
+ br: "\u255D",
585
+ h: "\u2550",
586
+ v: "\u2551"
587
+ },
588
+ doubleSingle: {
589
+ tl: "\u2553",
590
+ tr: "\u2556",
591
+ bl: "\u2559",
592
+ br: "\u255C",
593
+ h: "\u2500",
594
+ v: "\u2551"
595
+ },
596
+ doubleSingleRounded: {
597
+ tl: "\u256D",
598
+ tr: "\u256E",
599
+ bl: "\u2570",
600
+ br: "\u256F",
601
+ h: "\u2500",
602
+ v: "\u2551"
603
+ },
604
+ singleThick: {
605
+ tl: "\u250F",
606
+ tr: "\u2513",
607
+ bl: "\u2517",
608
+ br: "\u251B",
609
+ h: "\u2501",
610
+ v: "\u2503"
611
+ },
612
+ singleDouble: {
613
+ tl: "\u2552",
614
+ tr: "\u2555",
615
+ bl: "\u2558",
616
+ br: "\u255B",
617
+ h: "\u2550",
618
+ v: "\u2502"
619
+ },
620
+ singleDoubleRounded: {
621
+ tl: "\u256D",
622
+ tr: "\u256E",
623
+ bl: "\u2570",
624
+ br: "\u256F",
625
+ h: "\u2550",
626
+ v: "\u2502"
627
+ },
628
+ rounded: {
629
+ tl: "\u256D",
630
+ tr: "\u256E",
631
+ bl: "\u2570",
632
+ br: "\u256F",
633
+ h: "\u2500",
634
+ v: "\u2502"
635
+ }
636
+ };
637
+ var defaultStyle = {
638
+ borderColor: "white",
639
+ borderStyle: "rounded",
640
+ valign: "center",
641
+ padding: 2,
642
+ marginLeft: 1,
643
+ marginTop: 1,
644
+ marginBottom: 1
645
+ };
646
+
647
+ // /home/runner/work/stacks/stacks/node_modules/consola/dist/shared/consola.36c0034f.mjs
648
+ import process$1 from "process";
649
+ var detectProvider = function(env2) {
650
+ for (const provider of providers) {
651
+ const envName = provider[1] || provider[0];
652
+ if (env2[envName]) {
653
+ return {
654
+ name: provider[0].toLowerCase(),
655
+ ...provider[2]
656
+ };
657
+ }
658
+ }
659
+ if (env2.SHELL && env2.SHELL === "/bin/jsh") {
660
+ return {
661
+ name: "stackblitz",
662
+ ci: false
663
+ };
664
+ }
665
+ return {
666
+ name: "",
667
+ ci: false
668
+ };
669
+ };
670
+ var toBoolean = function(val) {
671
+ return val ? val !== "false" : false;
672
+ };
673
+ var ansiRegex2 = function({ onlyFirst = false } = {}) {
674
+ const pattern = [
675
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
676
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
677
+ ].join("|");
678
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
679
+ };
680
+ var stripAnsi2 = function(string) {
681
+ if (typeof string !== "string") {
682
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
683
+ }
684
+ return string.replace(regex, "");
685
+ };
686
+ var getDefaultExportFromCjs = function(x) {
687
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
688
+ };
689
+ var stringWidth$1 = function(string, options) {
690
+ if (typeof string !== "string" || string.length === 0) {
691
+ return 0;
692
+ }
693
+ options = {
694
+ ambiguousIsNarrow: true,
695
+ countAnsiEscapeCodes: false,
696
+ ...options
697
+ };
698
+ if (!options.countAnsiEscapeCodes) {
699
+ string = stripAnsi2(string);
700
+ }
701
+ if (string.length === 0) {
702
+ return 0;
703
+ }
704
+ const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
705
+ let width = 0;
706
+ for (const { segment: character } of new Intl.Segmenter().segment(string)) {
707
+ const codePoint = character.codePointAt(0);
708
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
709
+ continue;
710
+ }
711
+ if (codePoint >= 768 && codePoint <= 879) {
712
+ continue;
713
+ }
714
+ if (emojiRegex().test(character)) {
715
+ width += 2;
716
+ continue;
717
+ }
718
+ const code = eastAsianWidth.eastAsianWidth(character);
719
+ switch (code) {
720
+ case "F":
721
+ case "W": {
722
+ width += 2;
723
+ break;
724
+ }
725
+ case "A": {
726
+ width += ambiguousCharacterWidth;
727
+ break;
728
+ }
729
+ default: {
730
+ width += 1;
731
+ }
732
+ }
733
+ }
734
+ return width;
735
+ };
736
+ var isUnicodeSupported = function() {
737
+ if (process$1.platform !== "win32") {
738
+ return process$1.env.TERM !== "linux";
739
+ }
740
+ return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
741
+ };
742
+ var stringWidth = function(str) {
743
+ if (!Intl.Segmenter) {
744
+ return stripAnsi(str).length;
745
+ }
746
+ return stringWidth$1(str);
747
+ };
748
+ var characterFormat = function(str) {
749
+ return str.replace(/`([^`]+)`/gm, (_, m) => colors.cyan(m)).replace(/\s+_([^_]+)_\s+/gm, (_, m) => ` ${colors.underline(m)} `);
750
+ };
751
+ var getColor2 = function(color = "white") {
752
+ return colors[color] || colors.white;
753
+ };
754
+ var getBgColor = function(color = "bgWhite") {
755
+ return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
756
+ };
757
+ var createConsola2 = function(options = {}) {
758
+ let level = _getDefaultLogLevel();
759
+ if (process.env.CONSOLA_LEVEL) {
760
+ level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
761
+ }
762
+ const consola2 = createConsola({
763
+ level,
764
+ defaults: { level },
765
+ stdout: process.stdout,
766
+ stderr: process.stderr,
767
+ prompt: (...args) => import("../../../../../node_modules/consola/dist/chunks/prompt.js").then((m) => m.prompt(...args)),
768
+ reporters: options.reporters || [
769
+ options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
770
+ ],
771
+ ...options
772
+ });
773
+ return consola2;
774
+ };
775
+ var _getDefaultLogLevel = function() {
776
+ if (isDebug) {
777
+ return LogLevels.debug;
778
+ }
779
+ if (isTest) {
780
+ return LogLevels.warn;
781
+ }
782
+ return LogLevels.info;
783
+ };
784
+ var providers = [
785
+ ["APPVEYOR"],
786
+ ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
787
+ ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
788
+ ["APPCIRCLE", "AC_APPCIRCLE"],
789
+ ["BAMBOO", "bamboo_planKey"],
790
+ ["BITBUCKET", "BITBUCKET_COMMIT"],
791
+ ["BITRISE", "BITRISE_IO"],
792
+ ["BUDDY", "BUDDY_WORKSPACE_ID"],
793
+ ["BUILDKITE"],
794
+ ["CIRCLE", "CIRCLECI"],
795
+ ["CIRRUS", "CIRRUS_CI"],
796
+ ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
797
+ ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
798
+ ["CODEFRESH", "CF_BUILD_ID"],
799
+ ["DRONE"],
800
+ ["DRONE", "DRONE_BUILD_EVENT"],
801
+ ["DSARI"],
802
+ ["GITHUB_ACTIONS"],
803
+ ["GITLAB", "GITLAB_CI"],
804
+ ["GITLAB", "CI_MERGE_REQUEST_ID"],
805
+ ["GOCD", "GO_PIPELINE_LABEL"],
806
+ ["LAYERCI"],
807
+ ["HUDSON", "HUDSON_URL"],
808
+ ["JENKINS", "JENKINS_URL"],
809
+ ["MAGNUM"],
810
+ ["NETLIFY"],
811
+ ["NETLIFY", "NETLIFY_LOCAL", { ci: false }],
812
+ ["NEVERCODE"],
813
+ ["RENDER"],
814
+ ["SAIL", "SAILCI"],
815
+ ["SEMAPHORE"],
816
+ ["SCREWDRIVER"],
817
+ ["SHIPPABLE"],
818
+ ["SOLANO", "TDDIUM"],
819
+ ["STRIDER"],
820
+ ["TEAMCITY", "TEAMCITY_VERSION"],
821
+ ["TRAVIS"],
822
+ ["VERCEL", "NOW_BUILDER"],
823
+ ["APPCENTER", "APPCENTER_BUILD_ID"],
824
+ ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
825
+ ["STACKBLITZ"],
826
+ ["STORMKIT"],
827
+ ["CLEAVR"]
828
+ ];
829
+ var processShim = typeof process !== "undefined" ? process : {};
830
+ var envShim = processShim.env || {};
831
+ var providerInfo = detectProvider(envShim);
832
+ var nodeENV = typeof process !== "undefined" && process.env && "development" || "";
833
+ processShim.platform;
834
+ providerInfo.name;
835
+ var isCI2 = toBoolean(envShim.CI) || providerInfo.ci !== false;
836
+ var hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
837
+ var isDebug = toBoolean(envShim.DEBUG);
838
+ var isTest = nodeENV === "test" || toBoolean(envShim.TEST);
839
+ toBoolean(envShim.MINIMAL);
840
+ var regex = ansiRegex2();
841
+ var eastasianwidth = { exports: {} };
842
+ (function(module) {
843
+ var eaw = {};
844
+ {
845
+ module.exports = eaw;
846
+ }
847
+ eaw.eastAsianWidth = function(character) {
848
+ var x = character.charCodeAt(0);
849
+ var y = character.length == 2 ? character.charCodeAt(1) : 0;
850
+ var codePoint = x;
851
+ if (55296 <= x && x <= 56319 && (56320 <= y && y <= 57343)) {
852
+ x &= 1023;
853
+ y &= 1023;
854
+ codePoint = x << 10 | y;
855
+ codePoint += 65536;
856
+ }
857
+ if (codePoint == 12288 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
858
+ return "F";
859
+ }
860
+ if (codePoint == 8361 || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
861
+ return "H";
862
+ }
863
+ if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
864
+ return "W";
865
+ }
866
+ if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || codePoint == 172 || codePoint == 175 || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
867
+ return "Na";
868
+ }
869
+ if (codePoint == 161 || codePoint == 164 || 167 <= codePoint && codePoint <= 168 || codePoint == 170 || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || codePoint == 198 || codePoint == 208 || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || codePoint == 230 || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || codePoint == 240 || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || codePoint == 252 || codePoint == 254 || codePoint == 257 || codePoint == 273 || codePoint == 275 || codePoint == 283 || 294 <= codePoint && codePoint <= 295 || codePoint == 299 || 305 <= codePoint && codePoint <= 307 || codePoint == 312 || 319 <= codePoint && codePoint <= 322 || codePoint == 324 || 328 <= codePoint && codePoint <= 331 || codePoint == 333 || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || codePoint == 363 || codePoint == 462 || codePoint == 464 || codePoint == 466 || codePoint == 468 || codePoint == 470 || codePoint == 472 || codePoint == 474 || codePoint == 476 || codePoint == 593 || codePoint == 609 || codePoint == 708 || codePoint == 711 || 713 <= codePoint && codePoint <= 715 || codePoint == 717 || codePoint == 720 || 728 <= codePoint && codePoint <= 731 || codePoint == 733 || codePoint == 735 || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || codePoint == 1025 || 1040 <= codePoint && codePoint <= 1103 || codePoint == 1105 || codePoint == 8208 || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || codePoint == 8240 || 8242 <= codePoint && codePoint <= 8243 || codePoint == 8245 || codePoint == 8251 || codePoint == 8254 || codePoint == 8308 || codePoint == 8319 || 8321 <= codePoint && codePoint <= 8324 || codePoint == 8364 || codePoint == 8451 || codePoint == 8453 || codePoint == 8457 || codePoint == 8467 || codePoint == 8470 || 8481 <= codePoint && codePoint <= 8482 || codePoint == 8486 || codePoint == 8491 || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || codePoint == 8585 || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || codePoint == 8658 || codePoint == 8660 || codePoint == 8679 || codePoint == 8704 || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || codePoint == 8715 || codePoint == 8719 || codePoint == 8721 || codePoint == 8725 || codePoint == 8730 || 8733 <= codePoint && codePoint <= 8736 || codePoint == 8739 || codePoint == 8741 || 8743 <= codePoint && codePoint <= 8748 || codePoint == 8750 || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || codePoint == 8776 || codePoint == 8780 || codePoint == 8786 || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || codePoint == 8853 || codePoint == 8857 || codePoint == 8869 || codePoint == 8895 || codePoint == 8978 || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || codePoint == 9675 || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || codePoint == 9711 || 9733 <= codePoint && codePoint <= 9734 || codePoint == 9737 || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || codePoint == 9756 || codePoint == 9758 || codePoint == 9792 || codePoint == 9794 || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || codePoint == 9839 || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || codePoint == 9955 || 9960 <= codePoint && codePoint <= 9983 || codePoint == 10045 || codePoint == 10071 || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || codePoint == 65533 || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
870
+ return "A";
871
+ }
872
+ return "N";
873
+ };
874
+ eaw.characterLength = function(character) {
875
+ var code = this.eastAsianWidth(character);
876
+ if (code == "F" || code == "W" || code == "A") {
877
+ return 2;
878
+ } else {
879
+ return 1;
880
+ }
881
+ };
882
+ function stringToArray(string) {
883
+ return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
884
+ }
885
+ eaw.length = function(string) {
886
+ var characters = stringToArray(string);
887
+ var len = 0;
888
+ for (var i = 0;i < characters.length; i++) {
889
+ len = len + this.characterLength(characters[i]);
890
+ }
891
+ return len;
892
+ };
893
+ eaw.slice = function(text, start, end) {
894
+ textLen = eaw.length(text);
895
+ start = start ? start : 0;
896
+ end = end ? end : 1;
897
+ if (start < 0) {
898
+ start = textLen + start;
899
+ }
900
+ if (end < 0) {
901
+ end = textLen + end;
902
+ }
903
+ var result = "";
904
+ var eawLen = 0;
905
+ var chars = stringToArray(text);
906
+ for (var i = 0;i < chars.length; i++) {
907
+ var char = chars[i];
908
+ var charLen = eaw.length(char);
909
+ if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
910
+ if (eawLen + charLen <= end) {
911
+ result += char;
912
+ } else {
913
+ break;
914
+ }
915
+ }
916
+ eawLen += charLen;
917
+ }
918
+ return result;
919
+ };
920
+ })(eastasianwidth);
921
+ var eastasianwidthExports = eastasianwidth.exports;
922
+ var eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
923
+ var emojiRegex = () => {
924
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
925
+ };
926
+ var TYPE_COLOR_MAP = {
927
+ info: "cyan",
928
+ fail: "red",
929
+ success: "green",
930
+ ready: "green",
931
+ start: "magenta"
932
+ };
933
+ var LEVEL_COLOR_MAP = {
934
+ 0: "red",
935
+ 1: "yellow"
936
+ };
937
+ var unicode = isUnicodeSupported();
938
+ var s = (c, fallback) => unicode ? c : fallback;
939
+ var TYPE_ICONS = {
940
+ error: s("\u2716", "\xD7"),
941
+ fatal: s("\u2716", "\xD7"),
942
+ ready: s("\u2714", "\u221A"),
943
+ warn: s("\u26A0", "\u203C"),
944
+ info: s("\u2139", "i"),
945
+ success: s("\u2714", "\u221A"),
946
+ debug: s("\u2699", "D"),
947
+ trace: s("\u2192", "\u2192"),
948
+ fail: s("\u2716", "\xD7"),
949
+ start: s("\u25D0", "o"),
950
+ log: ""
951
+ };
952
+
953
+ class FancyReporter extends BasicReporter {
954
+ formatStack(stack) {
955
+ return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m) => colors.gray(m)).replace(/\((.+)\)/, (_, m) => `(${colors.cyan(m)})`)).join("\n");
956
+ }
957
+ formatType(logObj, isBadge, opts) {
958
+ const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
959
+ if (isBadge) {
960
+ return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
961
+ }
962
+ const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
963
+ return _type ? getColor2(typeColor)(_type) : "";
964
+ }
965
+ formatLogObj(logObj, opts) {
966
+ const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
967
+ if (logObj.type === "box") {
968
+ return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
969
+ title: logObj.title ? characterFormat(logObj.title) : undefined,
970
+ style: logObj.style
971
+ });
972
+ }
973
+ const date = this.formatDate(logObj.date, opts);
974
+ const coloredDate = date && colors.gray(date);
975
+ const isBadge = logObj.badge ?? logObj.level < 2;
976
+ const type = this.formatType(logObj, isBadge, opts);
977
+ const tag = logObj.tag ? colors.gray(logObj.tag) : "";
978
+ let line;
979
+ const left = this.filterAndJoin([type, characterFormat(message)]);
980
+ const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
981
+ const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
982
+ line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
983
+ line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
984
+ if (logObj.type === "trace") {
985
+ const _err = new Error("Trace: " + logObj.message);
986
+ line += this.formatStack(_err.stack || "");
987
+ }
988
+ return isBadge ? "\n" + line + "\n" : line;
989
+ }
990
+ }
991
+ var consola = createConsola2();
992
+
993
+ export { colors, getDefaultExportFromCjs, isUnicodeSupported, createConsola2 as createConsola };