@artik0din/turbogha 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,701 @@
1
+ export const id = 884;
2
+ export const ids = [884];
3
+ export const modules = {
4
+
5
+ /***/ 96884:
6
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
+
8
+ // ESM COMPAT FLAG
9
+ __webpack_require__.r(__webpack_exports__);
10
+
11
+ // EXPORTS
12
+ __webpack_require__.d(__webpack_exports__, {
13
+ Chalk: () => (/* binding */ Chalk),
14
+ backgroundColorNames: () => (/* reexport */ backgroundColorNames),
15
+ backgroundColors: () => (/* reexport */ backgroundColorNames),
16
+ chalkStderr: () => (/* binding */ chalkStderr),
17
+ colorNames: () => (/* reexport */ colorNames),
18
+ colors: () => (/* reexport */ colorNames),
19
+ "default": () => (/* binding */ source),
20
+ foregroundColorNames: () => (/* reexport */ foregroundColorNames),
21
+ foregroundColors: () => (/* reexport */ foregroundColorNames),
22
+ modifierNames: () => (/* reexport */ modifierNames),
23
+ modifiers: () => (/* reexport */ modifierNames),
24
+ supportsColor: () => (/* binding */ stdoutColor),
25
+ supportsColorStderr: () => (/* binding */ stderrColor)
26
+ });
27
+
28
+ ;// CONCATENATED MODULE: ./node_modules/@rharkor/logger/node_modules/chalk/source/vendor/ansi-styles/index.js
29
+ const ANSI_BACKGROUND_OFFSET = 10;
30
+
31
+ const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
32
+
33
+ const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
34
+
35
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
36
+
37
+ const styles = {
38
+ modifier: {
39
+ reset: [0, 0],
40
+ // 21 isn't widely supported and 22 does the same thing
41
+ bold: [1, 22],
42
+ dim: [2, 22],
43
+ italic: [3, 23],
44
+ underline: [4, 24],
45
+ overline: [53, 55],
46
+ inverse: [7, 27],
47
+ hidden: [8, 28],
48
+ strikethrough: [9, 29],
49
+ },
50
+ color: {
51
+ black: [30, 39],
52
+ red: [31, 39],
53
+ green: [32, 39],
54
+ yellow: [33, 39],
55
+ blue: [34, 39],
56
+ magenta: [35, 39],
57
+ cyan: [36, 39],
58
+ white: [37, 39],
59
+
60
+ // Bright color
61
+ blackBright: [90, 39],
62
+ gray: [90, 39], // Alias of `blackBright`
63
+ grey: [90, 39], // Alias of `blackBright`
64
+ redBright: [91, 39],
65
+ greenBright: [92, 39],
66
+ yellowBright: [93, 39],
67
+ blueBright: [94, 39],
68
+ magentaBright: [95, 39],
69
+ cyanBright: [96, 39],
70
+ whiteBright: [97, 39],
71
+ },
72
+ bgColor: {
73
+ bgBlack: [40, 49],
74
+ bgRed: [41, 49],
75
+ bgGreen: [42, 49],
76
+ bgYellow: [43, 49],
77
+ bgBlue: [44, 49],
78
+ bgMagenta: [45, 49],
79
+ bgCyan: [46, 49],
80
+ bgWhite: [47, 49],
81
+
82
+ // Bright color
83
+ bgBlackBright: [100, 49],
84
+ bgGray: [100, 49], // Alias of `bgBlackBright`
85
+ bgGrey: [100, 49], // Alias of `bgBlackBright`
86
+ bgRedBright: [101, 49],
87
+ bgGreenBright: [102, 49],
88
+ bgYellowBright: [103, 49],
89
+ bgBlueBright: [104, 49],
90
+ bgMagentaBright: [105, 49],
91
+ bgCyanBright: [106, 49],
92
+ bgWhiteBright: [107, 49],
93
+ },
94
+ };
95
+
96
+ const modifierNames = Object.keys(styles.modifier);
97
+ const foregroundColorNames = Object.keys(styles.color);
98
+ const backgroundColorNames = Object.keys(styles.bgColor);
99
+ const colorNames = [...foregroundColorNames, ...backgroundColorNames];
100
+
101
+ function assembleStyles() {
102
+ const codes = new Map();
103
+
104
+ for (const [groupName, group] of Object.entries(styles)) {
105
+ for (const [styleName, style] of Object.entries(group)) {
106
+ styles[styleName] = {
107
+ open: `\u001B[${style[0]}m`,
108
+ close: `\u001B[${style[1]}m`,
109
+ };
110
+
111
+ group[styleName] = styles[styleName];
112
+
113
+ codes.set(style[0], style[1]);
114
+ }
115
+
116
+ Object.defineProperty(styles, groupName, {
117
+ value: group,
118
+ enumerable: false,
119
+ });
120
+ }
121
+
122
+ Object.defineProperty(styles, 'codes', {
123
+ value: codes,
124
+ enumerable: false,
125
+ });
126
+
127
+ styles.color.close = '\u001B[39m';
128
+ styles.bgColor.close = '\u001B[49m';
129
+
130
+ styles.color.ansi = wrapAnsi16();
131
+ styles.color.ansi256 = wrapAnsi256();
132
+ styles.color.ansi16m = wrapAnsi16m();
133
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
134
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
135
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
136
+
137
+ // From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
138
+ Object.defineProperties(styles, {
139
+ rgbToAnsi256: {
140
+ value(red, green, blue) {
141
+ // We use the extended greyscale palette here, with the exception of
142
+ // black and white. normal palette only has 4 greyscale shades.
143
+ if (red === green && green === blue) {
144
+ if (red < 8) {
145
+ return 16;
146
+ }
147
+
148
+ if (red > 248) {
149
+ return 231;
150
+ }
151
+
152
+ return Math.round(((red - 8) / 247) * 24) + 232;
153
+ }
154
+
155
+ return 16
156
+ + (36 * Math.round(red / 255 * 5))
157
+ + (6 * Math.round(green / 255 * 5))
158
+ + Math.round(blue / 255 * 5);
159
+ },
160
+ enumerable: false,
161
+ },
162
+ hexToRgb: {
163
+ value(hex) {
164
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
165
+ if (!matches) {
166
+ return [0, 0, 0];
167
+ }
168
+
169
+ let [colorString] = matches;
170
+
171
+ if (colorString.length === 3) {
172
+ colorString = [...colorString].map(character => character + character).join('');
173
+ }
174
+
175
+ const integer = Number.parseInt(colorString, 16);
176
+
177
+ return [
178
+ /* eslint-disable no-bitwise */
179
+ (integer >> 16) & 0xFF,
180
+ (integer >> 8) & 0xFF,
181
+ integer & 0xFF,
182
+ /* eslint-enable no-bitwise */
183
+ ];
184
+ },
185
+ enumerable: false,
186
+ },
187
+ hexToAnsi256: {
188
+ value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
189
+ enumerable: false,
190
+ },
191
+ ansi256ToAnsi: {
192
+ value(code) {
193
+ if (code < 8) {
194
+ return 30 + code;
195
+ }
196
+
197
+ if (code < 16) {
198
+ return 90 + (code - 8);
199
+ }
200
+
201
+ let red;
202
+ let green;
203
+ let blue;
204
+
205
+ if (code >= 232) {
206
+ red = (((code - 232) * 10) + 8) / 255;
207
+ green = red;
208
+ blue = red;
209
+ } else {
210
+ code -= 16;
211
+
212
+ const remainder = code % 36;
213
+
214
+ red = Math.floor(code / 36) / 5;
215
+ green = Math.floor(remainder / 6) / 5;
216
+ blue = (remainder % 6) / 5;
217
+ }
218
+
219
+ const value = Math.max(red, green, blue) * 2;
220
+
221
+ if (value === 0) {
222
+ return 30;
223
+ }
224
+
225
+ // eslint-disable-next-line no-bitwise
226
+ let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
227
+
228
+ if (value === 2) {
229
+ result += 60;
230
+ }
231
+
232
+ return result;
233
+ },
234
+ enumerable: false,
235
+ },
236
+ rgbToAnsi: {
237
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
238
+ enumerable: false,
239
+ },
240
+ hexToAnsi: {
241
+ value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
242
+ enumerable: false,
243
+ },
244
+ });
245
+
246
+ return styles;
247
+ }
248
+
249
+ const ansiStyles = assembleStyles();
250
+
251
+ /* harmony default export */ const ansi_styles = (ansiStyles);
252
+
253
+ // EXTERNAL MODULE: external "node:process"
254
+ var external_node_process_ = __webpack_require__(1708);
255
+ // EXTERNAL MODULE: external "node:os"
256
+ var external_node_os_ = __webpack_require__(48161);
257
+ // EXTERNAL MODULE: external "node:tty"
258
+ var external_node_tty_ = __webpack_require__(7066);
259
+ ;// CONCATENATED MODULE: ./node_modules/@rharkor/logger/node_modules/chalk/source/vendor/supports-color/index.js
260
+
261
+
262
+
263
+
264
+ // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
265
+ /// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
266
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : external_node_process_.argv) {
267
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
268
+ const position = argv.indexOf(prefix + flag);
269
+ const terminatorPosition = argv.indexOf('--');
270
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
271
+ }
272
+
273
+ const {env} = external_node_process_;
274
+
275
+ let flagForceColor;
276
+ if (
277
+ hasFlag('no-color')
278
+ || hasFlag('no-colors')
279
+ || hasFlag('color=false')
280
+ || hasFlag('color=never')
281
+ ) {
282
+ flagForceColor = 0;
283
+ } else if (
284
+ hasFlag('color')
285
+ || hasFlag('colors')
286
+ || hasFlag('color=true')
287
+ || hasFlag('color=always')
288
+ ) {
289
+ flagForceColor = 1;
290
+ }
291
+
292
+ function envForceColor() {
293
+ if ('FORCE_COLOR' in env) {
294
+ if (env.FORCE_COLOR === 'true') {
295
+ return 1;
296
+ }
297
+
298
+ if (env.FORCE_COLOR === 'false') {
299
+ return 0;
300
+ }
301
+
302
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
303
+ }
304
+ }
305
+
306
+ function translateLevel(level) {
307
+ if (level === 0) {
308
+ return false;
309
+ }
310
+
311
+ return {
312
+ level,
313
+ hasBasic: true,
314
+ has256: level >= 2,
315
+ has16m: level >= 3,
316
+ };
317
+ }
318
+
319
+ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
320
+ const noFlagForceColor = envForceColor();
321
+ if (noFlagForceColor !== undefined) {
322
+ flagForceColor = noFlagForceColor;
323
+ }
324
+
325
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
326
+
327
+ if (forceColor === 0) {
328
+ return 0;
329
+ }
330
+
331
+ if (sniffFlags) {
332
+ if (hasFlag('color=16m')
333
+ || hasFlag('color=full')
334
+ || hasFlag('color=truecolor')) {
335
+ return 3;
336
+ }
337
+
338
+ if (hasFlag('color=256')) {
339
+ return 2;
340
+ }
341
+ }
342
+
343
+ // Check for Azure DevOps pipelines.
344
+ // Has to be above the `!streamIsTTY` check.
345
+ if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
346
+ return 1;
347
+ }
348
+
349
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
350
+ return 0;
351
+ }
352
+
353
+ const min = forceColor || 0;
354
+
355
+ if (env.TERM === 'dumb') {
356
+ return min;
357
+ }
358
+
359
+ if (external_node_process_.platform === 'win32') {
360
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
361
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
362
+ const osRelease = external_node_os_.release().split('.');
363
+ if (
364
+ Number(osRelease[0]) >= 10
365
+ && Number(osRelease[2]) >= 10_586
366
+ ) {
367
+ return Number(osRelease[2]) >= 14_931 ? 3 : 2;
368
+ }
369
+
370
+ return 1;
371
+ }
372
+
373
+ if ('CI' in env) {
374
+ if (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {
375
+ return 3;
376
+ }
377
+
378
+ if (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
379
+ return 1;
380
+ }
381
+
382
+ return min;
383
+ }
384
+
385
+ if ('TEAMCITY_VERSION' in env) {
386
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
387
+ }
388
+
389
+ if (env.COLORTERM === 'truecolor') {
390
+ return 3;
391
+ }
392
+
393
+ if (env.TERM === 'xterm-kitty') {
394
+ return 3;
395
+ }
396
+
397
+ if (env.TERM === 'xterm-ghostty') {
398
+ return 3;
399
+ }
400
+
401
+ if (env.TERM === 'wezterm') {
402
+ return 3;
403
+ }
404
+
405
+ if ('TERM_PROGRAM' in env) {
406
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
407
+
408
+ switch (env.TERM_PROGRAM) {
409
+ case 'iTerm.app': {
410
+ return version >= 3 ? 3 : 2;
411
+ }
412
+
413
+ case 'Apple_Terminal': {
414
+ return 2;
415
+ }
416
+ // No default
417
+ }
418
+ }
419
+
420
+ if (/-256(color)?$/i.test(env.TERM)) {
421
+ return 2;
422
+ }
423
+
424
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
425
+ return 1;
426
+ }
427
+
428
+ if ('COLORTERM' in env) {
429
+ return 1;
430
+ }
431
+
432
+ return min;
433
+ }
434
+
435
+ function createSupportsColor(stream, options = {}) {
436
+ const level = _supportsColor(stream, {
437
+ streamIsTTY: stream && stream.isTTY,
438
+ ...options,
439
+ });
440
+
441
+ return translateLevel(level);
442
+ }
443
+
444
+ const supportsColor = {
445
+ stdout: createSupportsColor({isTTY: external_node_tty_.isatty(1)}),
446
+ stderr: createSupportsColor({isTTY: external_node_tty_.isatty(2)}),
447
+ };
448
+
449
+ /* harmony default export */ const supports_color = (supportsColor);
450
+
451
+ ;// CONCATENATED MODULE: ./node_modules/@rharkor/logger/node_modules/chalk/source/utilities.js
452
+ // TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.
453
+ function stringReplaceAll(string, substring, replacer) {
454
+ let index = string.indexOf(substring);
455
+ if (index === -1) {
456
+ return string;
457
+ }
458
+
459
+ const substringLength = substring.length;
460
+ let endIndex = 0;
461
+ let returnValue = '';
462
+ do {
463
+ returnValue += string.slice(endIndex, index) + substring + replacer;
464
+ endIndex = index + substringLength;
465
+ index = string.indexOf(substring, endIndex);
466
+ } while (index !== -1);
467
+
468
+ returnValue += string.slice(endIndex);
469
+ return returnValue;
470
+ }
471
+
472
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
473
+ let endIndex = 0;
474
+ let returnValue = '';
475
+ do {
476
+ const gotCR = string[index - 1] === '\r';
477
+ returnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
478
+ endIndex = index + 1;
479
+ index = string.indexOf('\n', endIndex);
480
+ } while (index !== -1);
481
+
482
+ returnValue += string.slice(endIndex);
483
+ return returnValue;
484
+ }
485
+
486
+ ;// CONCATENATED MODULE: ./node_modules/@rharkor/logger/node_modules/chalk/source/index.js
487
+
488
+
489
+
490
+
491
+ const {stdout: stdoutColor, stderr: stderrColor} = supports_color;
492
+
493
+ const GENERATOR = Symbol('GENERATOR');
494
+ const STYLER = Symbol('STYLER');
495
+ const IS_EMPTY = Symbol('IS_EMPTY');
496
+
497
+ // `supportsColor.level` → `ansiStyles.color[name]` mapping
498
+ const levelMapping = [
499
+ 'ansi',
500
+ 'ansi',
501
+ 'ansi256',
502
+ 'ansi16m',
503
+ ];
504
+
505
+ const source_styles = Object.create(null);
506
+
507
+ const applyOptions = (object, options = {}) => {
508
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
509
+ throw new Error('The `level` option should be an integer from 0 to 3');
510
+ }
511
+
512
+ // Detect level if not set manually
513
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
514
+ object.level = options.level === undefined ? colorLevel : options.level;
515
+ };
516
+
517
+ class Chalk {
518
+ constructor(options) {
519
+ // eslint-disable-next-line no-constructor-return
520
+ return chalkFactory(options);
521
+ }
522
+ }
523
+
524
+ const chalkFactory = options => {
525
+ const chalk = (...strings) => strings.join(' ');
526
+ applyOptions(chalk, options);
527
+
528
+ Object.setPrototypeOf(chalk, createChalk.prototype);
529
+
530
+ return chalk;
531
+ };
532
+
533
+ function createChalk(options) {
534
+ return chalkFactory(options);
535
+ }
536
+
537
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
538
+
539
+ for (const [styleName, style] of Object.entries(ansi_styles)) {
540
+ source_styles[styleName] = {
541
+ get() {
542
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
543
+ Object.defineProperty(this, styleName, {value: builder});
544
+ return builder;
545
+ },
546
+ };
547
+ }
548
+
549
+ source_styles.visible = {
550
+ get() {
551
+ const builder = createBuilder(this, this[STYLER], true);
552
+ Object.defineProperty(this, 'visible', {value: builder});
553
+ return builder;
554
+ },
555
+ };
556
+
557
+ const getModelAnsi = (model, level, type, ...arguments_) => {
558
+ if (model === 'rgb') {
559
+ if (level === 'ansi16m') {
560
+ return ansi_styles[type].ansi16m(...arguments_);
561
+ }
562
+
563
+ if (level === 'ansi256') {
564
+ return ansi_styles[type].ansi256(ansi_styles.rgbToAnsi256(...arguments_));
565
+ }
566
+
567
+ return ansi_styles[type].ansi(ansi_styles.rgbToAnsi(...arguments_));
568
+ }
569
+
570
+ if (model === 'hex') {
571
+ return getModelAnsi('rgb', level, type, ...ansi_styles.hexToRgb(...arguments_));
572
+ }
573
+
574
+ return ansi_styles[type][model](...arguments_);
575
+ };
576
+
577
+ const usedModels = ['rgb', 'hex', 'ansi256'];
578
+
579
+ for (const model of usedModels) {
580
+ source_styles[model] = {
581
+ get() {
582
+ const {level} = this;
583
+ return function (...arguments_) {
584
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansi_styles.color.close, this[STYLER]);
585
+ return createBuilder(this, styler, this[IS_EMPTY]);
586
+ };
587
+ },
588
+ };
589
+
590
+ const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
591
+ source_styles[bgModel] = {
592
+ get() {
593
+ const {level} = this;
594
+ return function (...arguments_) {
595
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansi_styles.bgColor.close, this[STYLER]);
596
+ return createBuilder(this, styler, this[IS_EMPTY]);
597
+ };
598
+ },
599
+ };
600
+ }
601
+
602
+ const proto = Object.defineProperties(() => {}, {
603
+ ...source_styles,
604
+ level: {
605
+ enumerable: true,
606
+ get() {
607
+ return this[GENERATOR].level;
608
+ },
609
+ set(level) {
610
+ this[GENERATOR].level = level;
611
+ },
612
+ },
613
+ });
614
+
615
+ const createStyler = (open, close, parent) => {
616
+ let openAll;
617
+ let closeAll;
618
+ if (parent === undefined) {
619
+ openAll = open;
620
+ closeAll = close;
621
+ } else {
622
+ openAll = parent.openAll + open;
623
+ closeAll = close + parent.closeAll;
624
+ }
625
+
626
+ return {
627
+ open,
628
+ close,
629
+ openAll,
630
+ closeAll,
631
+ parent,
632
+ };
633
+ };
634
+
635
+ const createBuilder = (self, _styler, _isEmpty) => {
636
+ // Single argument is hot path, implicit coercion is faster than anything
637
+ // eslint-disable-next-line no-implicit-coercion
638
+ const builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
639
+
640
+ // We alter the prototype because we must return a function, but there is
641
+ // no way to create a function with a different prototype
642
+ Object.setPrototypeOf(builder, proto);
643
+
644
+ builder[GENERATOR] = self;
645
+ builder[STYLER] = _styler;
646
+ builder[IS_EMPTY] = _isEmpty;
647
+
648
+ return builder;
649
+ };
650
+
651
+ const applyStyle = (self, string) => {
652
+ if (self.level <= 0 || !string) {
653
+ return self[IS_EMPTY] ? '' : string;
654
+ }
655
+
656
+ let styler = self[STYLER];
657
+
658
+ if (styler === undefined) {
659
+ return string;
660
+ }
661
+
662
+ const {openAll, closeAll} = styler;
663
+ if (string.includes('\u001B')) {
664
+ while (styler !== undefined) {
665
+ // Replace any instances already present with a re-opening code
666
+ // otherwise only the part of the string until said closing code
667
+ // will be colored, and the rest will simply be 'plain'.
668
+ string = stringReplaceAll(string, styler.close, styler.open);
669
+
670
+ styler = styler.parent;
671
+ }
672
+ }
673
+
674
+ // We can move both next actions out of loop, because remaining actions in loop won't have
675
+ // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
676
+ // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
677
+ const lfIndex = string.indexOf('\n');
678
+ if (lfIndex !== -1) {
679
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
680
+ }
681
+
682
+ return openAll + string + closeAll;
683
+ };
684
+
685
+ Object.defineProperties(createChalk.prototype, source_styles);
686
+
687
+ const chalk = createChalk();
688
+ const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});
689
+
690
+
691
+
692
+
693
+
694
+ /* harmony default export */ const source = (chalk);
695
+
696
+
697
+ /***/ })
698
+
699
+ };
700
+
701
+ //# sourceMappingURL=884.index.js.map