@nice-move/cli 0.10.14 → 0.11.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.
@@ -0,0 +1,2108 @@
1
+ export const id = "vendors-node_modules_commitlint_format_lib_index_js";
2
+ export const ids = ["vendors-node_modules_commitlint_format_lib_index_js"];
3
+ export const modules = {
4
+
5
+ /***/ "../../node_modules/@commitlint/format/lib/format.js":
6
+ /*!***********************************************************!*\
7
+ !*** ../../node_modules/@commitlint/format/lib/format.js ***!
8
+ \***********************************************************/
9
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10
+
11
+
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
16
+ exports.formatResult = exports.format = void 0;
17
+ const chalk_1 = __importDefault(__webpack_require__(/*! chalk */ "../../node_modules/@commitlint/format/node_modules/chalk/source/index.js"));
18
+ const DEFAULT_SIGNS = [' ', '⚠', '✖'];
19
+ const DEFAULT_COLORS = ['white', 'yellow', 'red'];
20
+ function format(report = {}, options = {}) {
21
+ const { results = [] } = report;
22
+ const fi = (result) => formatInput(result, options);
23
+ const fr = (result) => formatResult(result, options);
24
+ return results
25
+ .filter((r) => Array.isArray(r.warnings) || Array.isArray(r.errors))
26
+ .map((result) => [...fi(result), ...fr(result)])
27
+ .reduce((acc, item) => (Array.isArray(item) ? [...acc, ...item] : [...acc, item]), [])
28
+ .join('\n');
29
+ }
30
+ exports.format = format;
31
+ function formatInput(result, options = {}) {
32
+ const { color: enabled = true } = options;
33
+ const { errors = [], warnings = [], input = '' } = result;
34
+ if (!input) {
35
+ return [''];
36
+ }
37
+ const sign = '⧗';
38
+ const decoration = enabled ? chalk_1.default.gray(sign) : sign;
39
+ const commitText = errors.length > 0 ? input : input.split('\n')[0];
40
+ const decoratedInput = enabled ? chalk_1.default.bold(commitText) : commitText;
41
+ const hasProblems = errors.length > 0 || warnings.length > 0;
42
+ return options.verbose || hasProblems
43
+ ? [`${decoration} input: ${decoratedInput}`]
44
+ : [];
45
+ }
46
+ function formatResult(result = {}, options = {}) {
47
+ const { signs = DEFAULT_SIGNS, colors = DEFAULT_COLORS, color: enabled = true, } = options;
48
+ const { errors = [], warnings = [] } = result;
49
+ const problems = [...errors, ...warnings].map((problem) => {
50
+ const sign = signs[problem.level] || '';
51
+ const color = colors[problem.level] || 'white';
52
+ const decoration = enabled ? chalk_1.default[color](sign) : sign;
53
+ const name = enabled
54
+ ? chalk_1.default.grey(`[${problem.name}]`)
55
+ : `[${problem.name}]`;
56
+ return `${decoration} ${problem.message} ${name}`;
57
+ });
58
+ const sign = selectSign(result);
59
+ const color = selectColor(result);
60
+ const deco = enabled ? chalk_1.default[color](sign) : sign;
61
+ const el = errors.length;
62
+ const wl = warnings.length;
63
+ const hasProblems = problems.length > 0;
64
+ const summary = options.verbose || hasProblems
65
+ ? `${deco} found ${el} problems, ${wl} warnings`
66
+ : undefined;
67
+ const fmtSummary = enabled && typeof summary === 'string' ? chalk_1.default.bold(summary) : summary;
68
+ const help = hasProblems && options.helpUrl
69
+ ? `ⓘ Get help: ${options.helpUrl}`
70
+ : undefined;
71
+ return [
72
+ ...problems,
73
+ hasProblems ? '' : undefined,
74
+ fmtSummary,
75
+ help,
76
+ hasProblems ? '' : undefined,
77
+ ].filter((line) => typeof line === 'string');
78
+ }
79
+ exports.formatResult = formatResult;
80
+ exports["default"] = format;
81
+ function selectSign(result) {
82
+ if ((result.errors || []).length > 0) {
83
+ return '✖';
84
+ }
85
+ return (result.warnings || []).length ? '⚠' : '✔';
86
+ }
87
+ function selectColor(result) {
88
+ if ((result.errors || []).length > 0) {
89
+ return 'red';
90
+ }
91
+ return (result.warnings || []).length ? 'yellow' : 'green';
92
+ }
93
+ //# sourceMappingURL=format.js.map
94
+
95
+ /***/ }),
96
+
97
+ /***/ "../../node_modules/@commitlint/format/lib/index.js":
98
+ /*!**********************************************************!*\
99
+ !*** ../../node_modules/@commitlint/format/lib/index.js ***!
100
+ \**********************************************************/
101
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
102
+
103
+
104
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
105
+ if (k2 === undefined) k2 = k;
106
+ var desc = Object.getOwnPropertyDescriptor(m, k);
107
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
108
+ desc = { enumerable: true, get: function() { return m[k]; } };
109
+ }
110
+ Object.defineProperty(o, k2, desc);
111
+ }) : (function(o, m, k, k2) {
112
+ if (k2 === undefined) k2 = k;
113
+ o[k2] = m[k];
114
+ }));
115
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
116
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
117
+ };
118
+ var __importDefault = (this && this.__importDefault) || function (mod) {
119
+ return (mod && mod.__esModule) ? mod : { "default": mod };
120
+ };
121
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
122
+ exports["default"] = void 0;
123
+ var format_1 = __webpack_require__(/*! ./format */ "../../node_modules/@commitlint/format/lib/format.js");
124
+ Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return __importDefault(format_1).default; } }));
125
+ __exportStar(__webpack_require__(/*! ./format */ "../../node_modules/@commitlint/format/lib/format.js"), exports);
126
+ //# sourceMappingURL=index.js.map
127
+
128
+ /***/ }),
129
+
130
+ /***/ "../../node_modules/@commitlint/format/node_modules/ansi-styles/index.js":
131
+ /*!*******************************************************************************!*\
132
+ !*** ../../node_modules/@commitlint/format/node_modules/ansi-styles/index.js ***!
133
+ \*******************************************************************************/
134
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
135
+
136
+ /* module decorator */ module = __webpack_require__.nmd(module);
137
+
138
+
139
+ const wrapAnsi16 = (fn, offset) => (...args) => {
140
+ const code = fn(...args);
141
+ return `\u001B[${code + offset}m`;
142
+ };
143
+
144
+ const wrapAnsi256 = (fn, offset) => (...args) => {
145
+ const code = fn(...args);
146
+ return `\u001B[${38 + offset};5;${code}m`;
147
+ };
148
+
149
+ const wrapAnsi16m = (fn, offset) => (...args) => {
150
+ const rgb = fn(...args);
151
+ return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
152
+ };
153
+
154
+ const ansi2ansi = n => n;
155
+ const rgb2rgb = (r, g, b) => [r, g, b];
156
+
157
+ const setLazyProperty = (object, property, get) => {
158
+ Object.defineProperty(object, property, {
159
+ get: () => {
160
+ const value = get();
161
+
162
+ Object.defineProperty(object, property, {
163
+ value,
164
+ enumerable: true,
165
+ configurable: true
166
+ });
167
+
168
+ return value;
169
+ },
170
+ enumerable: true,
171
+ configurable: true
172
+ });
173
+ };
174
+
175
+ /** @type {typeof import('color-convert')} */
176
+ let colorConvert;
177
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
178
+ if (colorConvert === undefined) {
179
+ colorConvert = __webpack_require__(/*! color-convert */ "../../node_modules/@commitlint/format/node_modules/color-convert/index.js");
180
+ }
181
+
182
+ const offset = isBackground ? 10 : 0;
183
+ const styles = {};
184
+
185
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
186
+ const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
187
+ if (sourceSpace === targetSpace) {
188
+ styles[name] = wrap(identity, offset);
189
+ } else if (typeof suite === 'object') {
190
+ styles[name] = wrap(suite[targetSpace], offset);
191
+ }
192
+ }
193
+
194
+ return styles;
195
+ };
196
+
197
+ function assembleStyles() {
198
+ const codes = new Map();
199
+ const styles = {
200
+ modifier: {
201
+ reset: [0, 0],
202
+ // 21 isn't widely supported and 22 does the same thing
203
+ bold: [1, 22],
204
+ dim: [2, 22],
205
+ italic: [3, 23],
206
+ underline: [4, 24],
207
+ inverse: [7, 27],
208
+ hidden: [8, 28],
209
+ strikethrough: [9, 29]
210
+ },
211
+ color: {
212
+ black: [30, 39],
213
+ red: [31, 39],
214
+ green: [32, 39],
215
+ yellow: [33, 39],
216
+ blue: [34, 39],
217
+ magenta: [35, 39],
218
+ cyan: [36, 39],
219
+ white: [37, 39],
220
+
221
+ // Bright color
222
+ blackBright: [90, 39],
223
+ redBright: [91, 39],
224
+ greenBright: [92, 39],
225
+ yellowBright: [93, 39],
226
+ blueBright: [94, 39],
227
+ magentaBright: [95, 39],
228
+ cyanBright: [96, 39],
229
+ whiteBright: [97, 39]
230
+ },
231
+ bgColor: {
232
+ bgBlack: [40, 49],
233
+ bgRed: [41, 49],
234
+ bgGreen: [42, 49],
235
+ bgYellow: [43, 49],
236
+ bgBlue: [44, 49],
237
+ bgMagenta: [45, 49],
238
+ bgCyan: [46, 49],
239
+ bgWhite: [47, 49],
240
+
241
+ // Bright color
242
+ bgBlackBright: [100, 49],
243
+ bgRedBright: [101, 49],
244
+ bgGreenBright: [102, 49],
245
+ bgYellowBright: [103, 49],
246
+ bgBlueBright: [104, 49],
247
+ bgMagentaBright: [105, 49],
248
+ bgCyanBright: [106, 49],
249
+ bgWhiteBright: [107, 49]
250
+ }
251
+ };
252
+
253
+ // Alias bright black as gray (and grey)
254
+ styles.color.gray = styles.color.blackBright;
255
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
256
+ styles.color.grey = styles.color.blackBright;
257
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
258
+
259
+ for (const [groupName, group] of Object.entries(styles)) {
260
+ for (const [styleName, style] of Object.entries(group)) {
261
+ styles[styleName] = {
262
+ open: `\u001B[${style[0]}m`,
263
+ close: `\u001B[${style[1]}m`
264
+ };
265
+
266
+ group[styleName] = styles[styleName];
267
+
268
+ codes.set(style[0], style[1]);
269
+ }
270
+
271
+ Object.defineProperty(styles, groupName, {
272
+ value: group,
273
+ enumerable: false
274
+ });
275
+ }
276
+
277
+ Object.defineProperty(styles, 'codes', {
278
+ value: codes,
279
+ enumerable: false
280
+ });
281
+
282
+ styles.color.close = '\u001B[39m';
283
+ styles.bgColor.close = '\u001B[49m';
284
+
285
+ setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
286
+ setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
287
+ setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
288
+ setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
289
+ setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
290
+ setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
291
+
292
+ return styles;
293
+ }
294
+
295
+ // Make the export immutable
296
+ Object.defineProperty(module, 'exports', {
297
+ enumerable: true,
298
+ get: assembleStyles
299
+ });
300
+
301
+
302
+ /***/ }),
303
+
304
+ /***/ "../../node_modules/@commitlint/format/node_modules/chalk/source/index.js":
305
+ /*!********************************************************************************!*\
306
+ !*** ../../node_modules/@commitlint/format/node_modules/chalk/source/index.js ***!
307
+ \********************************************************************************/
308
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
309
+
310
+
311
+ const ansiStyles = __webpack_require__(/*! ansi-styles */ "../../node_modules/@commitlint/format/node_modules/ansi-styles/index.js");
312
+ const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(/*! supports-color */ "../../node_modules/@commitlint/format/node_modules/supports-color/index.js");
313
+ const {
314
+ stringReplaceAll,
315
+ stringEncaseCRLFWithFirstIndex
316
+ } = __webpack_require__(/*! ./util */ "../../node_modules/@commitlint/format/node_modules/chalk/source/util.js");
317
+
318
+ const {isArray} = Array;
319
+
320
+ // `supportsColor.level` → `ansiStyles.color[name]` mapping
321
+ const levelMapping = [
322
+ 'ansi',
323
+ 'ansi',
324
+ 'ansi256',
325
+ 'ansi16m'
326
+ ];
327
+
328
+ const styles = Object.create(null);
329
+
330
+ const applyOptions = (object, options = {}) => {
331
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
332
+ throw new Error('The `level` option should be an integer from 0 to 3');
333
+ }
334
+
335
+ // Detect level if not set manually
336
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
337
+ object.level = options.level === undefined ? colorLevel : options.level;
338
+ };
339
+
340
+ class ChalkClass {
341
+ constructor(options) {
342
+ // eslint-disable-next-line no-constructor-return
343
+ return chalkFactory(options);
344
+ }
345
+ }
346
+
347
+ const chalkFactory = options => {
348
+ const chalk = {};
349
+ applyOptions(chalk, options);
350
+
351
+ chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
352
+
353
+ Object.setPrototypeOf(chalk, Chalk.prototype);
354
+ Object.setPrototypeOf(chalk.template, chalk);
355
+
356
+ chalk.template.constructor = () => {
357
+ throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
358
+ };
359
+
360
+ chalk.template.Instance = ChalkClass;
361
+
362
+ return chalk.template;
363
+ };
364
+
365
+ function Chalk(options) {
366
+ return chalkFactory(options);
367
+ }
368
+
369
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
370
+ styles[styleName] = {
371
+ get() {
372
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
373
+ Object.defineProperty(this, styleName, {value: builder});
374
+ return builder;
375
+ }
376
+ };
377
+ }
378
+
379
+ styles.visible = {
380
+ get() {
381
+ const builder = createBuilder(this, this._styler, true);
382
+ Object.defineProperty(this, 'visible', {value: builder});
383
+ return builder;
384
+ }
385
+ };
386
+
387
+ const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
388
+
389
+ for (const model of usedModels) {
390
+ styles[model] = {
391
+ get() {
392
+ const {level} = this;
393
+ return function (...arguments_) {
394
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
395
+ return createBuilder(this, styler, this._isEmpty);
396
+ };
397
+ }
398
+ };
399
+ }
400
+
401
+ for (const model of usedModels) {
402
+ const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
403
+ styles[bgModel] = {
404
+ get() {
405
+ const {level} = this;
406
+ return function (...arguments_) {
407
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
408
+ return createBuilder(this, styler, this._isEmpty);
409
+ };
410
+ }
411
+ };
412
+ }
413
+
414
+ const proto = Object.defineProperties(() => {}, {
415
+ ...styles,
416
+ level: {
417
+ enumerable: true,
418
+ get() {
419
+ return this._generator.level;
420
+ },
421
+ set(level) {
422
+ this._generator.level = level;
423
+ }
424
+ }
425
+ });
426
+
427
+ const createStyler = (open, close, parent) => {
428
+ let openAll;
429
+ let closeAll;
430
+ if (parent === undefined) {
431
+ openAll = open;
432
+ closeAll = close;
433
+ } else {
434
+ openAll = parent.openAll + open;
435
+ closeAll = close + parent.closeAll;
436
+ }
437
+
438
+ return {
439
+ open,
440
+ close,
441
+ openAll,
442
+ closeAll,
443
+ parent
444
+ };
445
+ };
446
+
447
+ const createBuilder = (self, _styler, _isEmpty) => {
448
+ const builder = (...arguments_) => {
449
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
450
+ // Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
451
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
452
+ }
453
+
454
+ // Single argument is hot path, implicit coercion is faster than anything
455
+ // eslint-disable-next-line no-implicit-coercion
456
+ return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
457
+ };
458
+
459
+ // We alter the prototype because we must return a function, but there is
460
+ // no way to create a function with a different prototype
461
+ Object.setPrototypeOf(builder, proto);
462
+
463
+ builder._generator = self;
464
+ builder._styler = _styler;
465
+ builder._isEmpty = _isEmpty;
466
+
467
+ return builder;
468
+ };
469
+
470
+ const applyStyle = (self, string) => {
471
+ if (self.level <= 0 || !string) {
472
+ return self._isEmpty ? '' : string;
473
+ }
474
+
475
+ let styler = self._styler;
476
+
477
+ if (styler === undefined) {
478
+ return string;
479
+ }
480
+
481
+ const {openAll, closeAll} = styler;
482
+ if (string.indexOf('\u001B') !== -1) {
483
+ while (styler !== undefined) {
484
+ // Replace any instances already present with a re-opening code
485
+ // otherwise only the part of the string until said closing code
486
+ // will be colored, and the rest will simply be 'plain'.
487
+ string = stringReplaceAll(string, styler.close, styler.open);
488
+
489
+ styler = styler.parent;
490
+ }
491
+ }
492
+
493
+ // We can move both next actions out of loop, because remaining actions in loop won't have
494
+ // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
495
+ // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
496
+ const lfIndex = string.indexOf('\n');
497
+ if (lfIndex !== -1) {
498
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
499
+ }
500
+
501
+ return openAll + string + closeAll;
502
+ };
503
+
504
+ let template;
505
+ const chalkTag = (chalk, ...strings) => {
506
+ const [firstString] = strings;
507
+
508
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
509
+ // If chalk() was called by itself or with a string,
510
+ // return the string itself as a string.
511
+ return strings.join(' ');
512
+ }
513
+
514
+ const arguments_ = strings.slice(1);
515
+ const parts = [firstString.raw[0]];
516
+
517
+ for (let i = 1; i < firstString.length; i++) {
518
+ parts.push(
519
+ String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
520
+ String(firstString.raw[i])
521
+ );
522
+ }
523
+
524
+ if (template === undefined) {
525
+ template = __webpack_require__(/*! ./templates */ "../../node_modules/@commitlint/format/node_modules/chalk/source/templates.js");
526
+ }
527
+
528
+ return template(chalk, parts.join(''));
529
+ };
530
+
531
+ Object.defineProperties(Chalk.prototype, styles);
532
+
533
+ const chalk = Chalk(); // eslint-disable-line new-cap
534
+ chalk.supportsColor = stdoutColor;
535
+ chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
536
+ chalk.stderr.supportsColor = stderrColor;
537
+
538
+ module.exports = chalk;
539
+
540
+
541
+ /***/ }),
542
+
543
+ /***/ "../../node_modules/@commitlint/format/node_modules/chalk/source/templates.js":
544
+ /*!************************************************************************************!*\
545
+ !*** ../../node_modules/@commitlint/format/node_modules/chalk/source/templates.js ***!
546
+ \************************************************************************************/
547
+ /***/ ((module) => {
548
+
549
+
550
+ const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
551
+ const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
552
+ const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
553
+ const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
554
+
555
+ const ESCAPES = new Map([
556
+ ['n', '\n'],
557
+ ['r', '\r'],
558
+ ['t', '\t'],
559
+ ['b', '\b'],
560
+ ['f', '\f'],
561
+ ['v', '\v'],
562
+ ['0', '\0'],
563
+ ['\\', '\\'],
564
+ ['e', '\u001B'],
565
+ ['a', '\u0007']
566
+ ]);
567
+
568
+ function unescape(c) {
569
+ const u = c[0] === 'u';
570
+ const bracket = c[1] === '{';
571
+
572
+ if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
573
+ return String.fromCharCode(parseInt(c.slice(1), 16));
574
+ }
575
+
576
+ if (u && bracket) {
577
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
578
+ }
579
+
580
+ return ESCAPES.get(c) || c;
581
+ }
582
+
583
+ function parseArguments(name, arguments_) {
584
+ const results = [];
585
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
586
+ let matches;
587
+
588
+ for (const chunk of chunks) {
589
+ const number = Number(chunk);
590
+ if (!Number.isNaN(number)) {
591
+ results.push(number);
592
+ } else if ((matches = chunk.match(STRING_REGEX))) {
593
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
594
+ } else {
595
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
596
+ }
597
+ }
598
+
599
+ return results;
600
+ }
601
+
602
+ function parseStyle(style) {
603
+ STYLE_REGEX.lastIndex = 0;
604
+
605
+ const results = [];
606
+ let matches;
607
+
608
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
609
+ const name = matches[1];
610
+
611
+ if (matches[2]) {
612
+ const args = parseArguments(name, matches[2]);
613
+ results.push([name].concat(args));
614
+ } else {
615
+ results.push([name]);
616
+ }
617
+ }
618
+
619
+ return results;
620
+ }
621
+
622
+ function buildStyle(chalk, styles) {
623
+ const enabled = {};
624
+
625
+ for (const layer of styles) {
626
+ for (const style of layer.styles) {
627
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
628
+ }
629
+ }
630
+
631
+ let current = chalk;
632
+ for (const [styleName, styles] of Object.entries(enabled)) {
633
+ if (!Array.isArray(styles)) {
634
+ continue;
635
+ }
636
+
637
+ if (!(styleName in current)) {
638
+ throw new Error(`Unknown Chalk style: ${styleName}`);
639
+ }
640
+
641
+ current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
642
+ }
643
+
644
+ return current;
645
+ }
646
+
647
+ module.exports = (chalk, temporary) => {
648
+ const styles = [];
649
+ const chunks = [];
650
+ let chunk = [];
651
+
652
+ // eslint-disable-next-line max-params
653
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
654
+ if (escapeCharacter) {
655
+ chunk.push(unescape(escapeCharacter));
656
+ } else if (style) {
657
+ const string = chunk.join('');
658
+ chunk = [];
659
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
660
+ styles.push({inverse, styles: parseStyle(style)});
661
+ } else if (close) {
662
+ if (styles.length === 0) {
663
+ throw new Error('Found extraneous } in Chalk template literal');
664
+ }
665
+
666
+ chunks.push(buildStyle(chalk, styles)(chunk.join('')));
667
+ chunk = [];
668
+ styles.pop();
669
+ } else {
670
+ chunk.push(character);
671
+ }
672
+ });
673
+
674
+ chunks.push(chunk.join(''));
675
+
676
+ if (styles.length > 0) {
677
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
678
+ throw new Error(errMessage);
679
+ }
680
+
681
+ return chunks.join('');
682
+ };
683
+
684
+
685
+ /***/ }),
686
+
687
+ /***/ "../../node_modules/@commitlint/format/node_modules/chalk/source/util.js":
688
+ /*!*******************************************************************************!*\
689
+ !*** ../../node_modules/@commitlint/format/node_modules/chalk/source/util.js ***!
690
+ \*******************************************************************************/
691
+ /***/ ((module) => {
692
+
693
+
694
+
695
+ const stringReplaceAll = (string, substring, replacer) => {
696
+ let index = string.indexOf(substring);
697
+ if (index === -1) {
698
+ return string;
699
+ }
700
+
701
+ const substringLength = substring.length;
702
+ let endIndex = 0;
703
+ let returnValue = '';
704
+ do {
705
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
706
+ endIndex = index + substringLength;
707
+ index = string.indexOf(substring, endIndex);
708
+ } while (index !== -1);
709
+
710
+ returnValue += string.substr(endIndex);
711
+ return returnValue;
712
+ };
713
+
714
+ const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
715
+ let endIndex = 0;
716
+ let returnValue = '';
717
+ do {
718
+ const gotCR = string[index - 1] === '\r';
719
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
720
+ endIndex = index + 1;
721
+ index = string.indexOf('\n', endIndex);
722
+ } while (index !== -1);
723
+
724
+ returnValue += string.substr(endIndex);
725
+ return returnValue;
726
+ };
727
+
728
+ module.exports = {
729
+ stringReplaceAll,
730
+ stringEncaseCRLFWithFirstIndex
731
+ };
732
+
733
+
734
+ /***/ }),
735
+
736
+ /***/ "../../node_modules/@commitlint/format/node_modules/color-convert/conversions.js":
737
+ /*!***************************************************************************************!*\
738
+ !*** ../../node_modules/@commitlint/format/node_modules/color-convert/conversions.js ***!
739
+ \***************************************************************************************/
740
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
741
+
742
+ /* MIT license */
743
+ /* eslint-disable no-mixed-operators */
744
+ const cssKeywords = __webpack_require__(/*! color-name */ "../../node_modules/@commitlint/format/node_modules/color-name/index.js");
745
+
746
+ // NOTE: conversions should only return primitive values (i.e. arrays, or
747
+ // values that give correct `typeof` results).
748
+ // do not use box values types (i.e. Number(), String(), etc.)
749
+
750
+ const reverseKeywords = {};
751
+ for (const key of Object.keys(cssKeywords)) {
752
+ reverseKeywords[cssKeywords[key]] = key;
753
+ }
754
+
755
+ const convert = {
756
+ rgb: {channels: 3, labels: 'rgb'},
757
+ hsl: {channels: 3, labels: 'hsl'},
758
+ hsv: {channels: 3, labels: 'hsv'},
759
+ hwb: {channels: 3, labels: 'hwb'},
760
+ cmyk: {channels: 4, labels: 'cmyk'},
761
+ xyz: {channels: 3, labels: 'xyz'},
762
+ lab: {channels: 3, labels: 'lab'},
763
+ lch: {channels: 3, labels: 'lch'},
764
+ hex: {channels: 1, labels: ['hex']},
765
+ keyword: {channels: 1, labels: ['keyword']},
766
+ ansi16: {channels: 1, labels: ['ansi16']},
767
+ ansi256: {channels: 1, labels: ['ansi256']},
768
+ hcg: {channels: 3, labels: ['h', 'c', 'g']},
769
+ apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
770
+ gray: {channels: 1, labels: ['gray']}
771
+ };
772
+
773
+ module.exports = convert;
774
+
775
+ // Hide .channels and .labels properties
776
+ for (const model of Object.keys(convert)) {
777
+ if (!('channels' in convert[model])) {
778
+ throw new Error('missing channels property: ' + model);
779
+ }
780
+
781
+ if (!('labels' in convert[model])) {
782
+ throw new Error('missing channel labels property: ' + model);
783
+ }
784
+
785
+ if (convert[model].labels.length !== convert[model].channels) {
786
+ throw new Error('channel and label counts mismatch: ' + model);
787
+ }
788
+
789
+ const {channels, labels} = convert[model];
790
+ delete convert[model].channels;
791
+ delete convert[model].labels;
792
+ Object.defineProperty(convert[model], 'channels', {value: channels});
793
+ Object.defineProperty(convert[model], 'labels', {value: labels});
794
+ }
795
+
796
+ convert.rgb.hsl = function (rgb) {
797
+ const r = rgb[0] / 255;
798
+ const g = rgb[1] / 255;
799
+ const b = rgb[2] / 255;
800
+ const min = Math.min(r, g, b);
801
+ const max = Math.max(r, g, b);
802
+ const delta = max - min;
803
+ let h;
804
+ let s;
805
+
806
+ if (max === min) {
807
+ h = 0;
808
+ } else if (r === max) {
809
+ h = (g - b) / delta;
810
+ } else if (g === max) {
811
+ h = 2 + (b - r) / delta;
812
+ } else if (b === max) {
813
+ h = 4 + (r - g) / delta;
814
+ }
815
+
816
+ h = Math.min(h * 60, 360);
817
+
818
+ if (h < 0) {
819
+ h += 360;
820
+ }
821
+
822
+ const l = (min + max) / 2;
823
+
824
+ if (max === min) {
825
+ s = 0;
826
+ } else if (l <= 0.5) {
827
+ s = delta / (max + min);
828
+ } else {
829
+ s = delta / (2 - max - min);
830
+ }
831
+
832
+ return [h, s * 100, l * 100];
833
+ };
834
+
835
+ convert.rgb.hsv = function (rgb) {
836
+ let rdif;
837
+ let gdif;
838
+ let bdif;
839
+ let h;
840
+ let s;
841
+
842
+ const r = rgb[0] / 255;
843
+ const g = rgb[1] / 255;
844
+ const b = rgb[2] / 255;
845
+ const v = Math.max(r, g, b);
846
+ const diff = v - Math.min(r, g, b);
847
+ const diffc = function (c) {
848
+ return (v - c) / 6 / diff + 1 / 2;
849
+ };
850
+
851
+ if (diff === 0) {
852
+ h = 0;
853
+ s = 0;
854
+ } else {
855
+ s = diff / v;
856
+ rdif = diffc(r);
857
+ gdif = diffc(g);
858
+ bdif = diffc(b);
859
+
860
+ if (r === v) {
861
+ h = bdif - gdif;
862
+ } else if (g === v) {
863
+ h = (1 / 3) + rdif - bdif;
864
+ } else if (b === v) {
865
+ h = (2 / 3) + gdif - rdif;
866
+ }
867
+
868
+ if (h < 0) {
869
+ h += 1;
870
+ } else if (h > 1) {
871
+ h -= 1;
872
+ }
873
+ }
874
+
875
+ return [
876
+ h * 360,
877
+ s * 100,
878
+ v * 100
879
+ ];
880
+ };
881
+
882
+ convert.rgb.hwb = function (rgb) {
883
+ const r = rgb[0];
884
+ const g = rgb[1];
885
+ let b = rgb[2];
886
+ const h = convert.rgb.hsl(rgb)[0];
887
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
888
+
889
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
890
+
891
+ return [h, w * 100, b * 100];
892
+ };
893
+
894
+ convert.rgb.cmyk = function (rgb) {
895
+ const r = rgb[0] / 255;
896
+ const g = rgb[1] / 255;
897
+ const b = rgb[2] / 255;
898
+
899
+ const k = Math.min(1 - r, 1 - g, 1 - b);
900
+ const c = (1 - r - k) / (1 - k) || 0;
901
+ const m = (1 - g - k) / (1 - k) || 0;
902
+ const y = (1 - b - k) / (1 - k) || 0;
903
+
904
+ return [c * 100, m * 100, y * 100, k * 100];
905
+ };
906
+
907
+ function comparativeDistance(x, y) {
908
+ /*
909
+ See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
910
+ */
911
+ return (
912
+ ((x[0] - y[0]) ** 2) +
913
+ ((x[1] - y[1]) ** 2) +
914
+ ((x[2] - y[2]) ** 2)
915
+ );
916
+ }
917
+
918
+ convert.rgb.keyword = function (rgb) {
919
+ const reversed = reverseKeywords[rgb];
920
+ if (reversed) {
921
+ return reversed;
922
+ }
923
+
924
+ let currentClosestDistance = Infinity;
925
+ let currentClosestKeyword;
926
+
927
+ for (const keyword of Object.keys(cssKeywords)) {
928
+ const value = cssKeywords[keyword];
929
+
930
+ // Compute comparative distance
931
+ const distance = comparativeDistance(rgb, value);
932
+
933
+ // Check if its less, if so set as closest
934
+ if (distance < currentClosestDistance) {
935
+ currentClosestDistance = distance;
936
+ currentClosestKeyword = keyword;
937
+ }
938
+ }
939
+
940
+ return currentClosestKeyword;
941
+ };
942
+
943
+ convert.keyword.rgb = function (keyword) {
944
+ return cssKeywords[keyword];
945
+ };
946
+
947
+ convert.rgb.xyz = function (rgb) {
948
+ let r = rgb[0] / 255;
949
+ let g = rgb[1] / 255;
950
+ let b = rgb[2] / 255;
951
+
952
+ // Assume sRGB
953
+ r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
954
+ g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
955
+ b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
956
+
957
+ const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
958
+ const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
959
+ const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
960
+
961
+ return [x * 100, y * 100, z * 100];
962
+ };
963
+
964
+ convert.rgb.lab = function (rgb) {
965
+ const xyz = convert.rgb.xyz(rgb);
966
+ let x = xyz[0];
967
+ let y = xyz[1];
968
+ let z = xyz[2];
969
+
970
+ x /= 95.047;
971
+ y /= 100;
972
+ z /= 108.883;
973
+
974
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
975
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
976
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
977
+
978
+ const l = (116 * y) - 16;
979
+ const a = 500 * (x - y);
980
+ const b = 200 * (y - z);
981
+
982
+ return [l, a, b];
983
+ };
984
+
985
+ convert.hsl.rgb = function (hsl) {
986
+ const h = hsl[0] / 360;
987
+ const s = hsl[1] / 100;
988
+ const l = hsl[2] / 100;
989
+ let t2;
990
+ let t3;
991
+ let val;
992
+
993
+ if (s === 0) {
994
+ val = l * 255;
995
+ return [val, val, val];
996
+ }
997
+
998
+ if (l < 0.5) {
999
+ t2 = l * (1 + s);
1000
+ } else {
1001
+ t2 = l + s - l * s;
1002
+ }
1003
+
1004
+ const t1 = 2 * l - t2;
1005
+
1006
+ const rgb = [0, 0, 0];
1007
+ for (let i = 0; i < 3; i++) {
1008
+ t3 = h + 1 / 3 * -(i - 1);
1009
+ if (t3 < 0) {
1010
+ t3++;
1011
+ }
1012
+
1013
+ if (t3 > 1) {
1014
+ t3--;
1015
+ }
1016
+
1017
+ if (6 * t3 < 1) {
1018
+ val = t1 + (t2 - t1) * 6 * t3;
1019
+ } else if (2 * t3 < 1) {
1020
+ val = t2;
1021
+ } else if (3 * t3 < 2) {
1022
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1023
+ } else {
1024
+ val = t1;
1025
+ }
1026
+
1027
+ rgb[i] = val * 255;
1028
+ }
1029
+
1030
+ return rgb;
1031
+ };
1032
+
1033
+ convert.hsl.hsv = function (hsl) {
1034
+ const h = hsl[0];
1035
+ let s = hsl[1] / 100;
1036
+ let l = hsl[2] / 100;
1037
+ let smin = s;
1038
+ const lmin = Math.max(l, 0.01);
1039
+
1040
+ l *= 2;
1041
+ s *= (l <= 1) ? l : 2 - l;
1042
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
1043
+ const v = (l + s) / 2;
1044
+ const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
1045
+
1046
+ return [h, sv * 100, v * 100];
1047
+ };
1048
+
1049
+ convert.hsv.rgb = function (hsv) {
1050
+ const h = hsv[0] / 60;
1051
+ const s = hsv[1] / 100;
1052
+ let v = hsv[2] / 100;
1053
+ const hi = Math.floor(h) % 6;
1054
+
1055
+ const f = h - Math.floor(h);
1056
+ const p = 255 * v * (1 - s);
1057
+ const q = 255 * v * (1 - (s * f));
1058
+ const t = 255 * v * (1 - (s * (1 - f)));
1059
+ v *= 255;
1060
+
1061
+ switch (hi) {
1062
+ case 0:
1063
+ return [v, t, p];
1064
+ case 1:
1065
+ return [q, v, p];
1066
+ case 2:
1067
+ return [p, v, t];
1068
+ case 3:
1069
+ return [p, q, v];
1070
+ case 4:
1071
+ return [t, p, v];
1072
+ case 5:
1073
+ return [v, p, q];
1074
+ }
1075
+ };
1076
+
1077
+ convert.hsv.hsl = function (hsv) {
1078
+ const h = hsv[0];
1079
+ const s = hsv[1] / 100;
1080
+ const v = hsv[2] / 100;
1081
+ const vmin = Math.max(v, 0.01);
1082
+ let sl;
1083
+ let l;
1084
+
1085
+ l = (2 - s) * v;
1086
+ const lmin = (2 - s) * vmin;
1087
+ sl = s * vmin;
1088
+ sl /= (lmin <= 1) ? lmin : 2 - lmin;
1089
+ sl = sl || 0;
1090
+ l /= 2;
1091
+
1092
+ return [h, sl * 100, l * 100];
1093
+ };
1094
+
1095
+ // http://dev.w3.org/csswg/css-color/#hwb-to-rgb
1096
+ convert.hwb.rgb = function (hwb) {
1097
+ const h = hwb[0] / 360;
1098
+ let wh = hwb[1] / 100;
1099
+ let bl = hwb[2] / 100;
1100
+ const ratio = wh + bl;
1101
+ let f;
1102
+
1103
+ // Wh + bl cant be > 1
1104
+ if (ratio > 1) {
1105
+ wh /= ratio;
1106
+ bl /= ratio;
1107
+ }
1108
+
1109
+ const i = Math.floor(6 * h);
1110
+ const v = 1 - bl;
1111
+ f = 6 * h - i;
1112
+
1113
+ if ((i & 0x01) !== 0) {
1114
+ f = 1 - f;
1115
+ }
1116
+
1117
+ const n = wh + f * (v - wh); // Linear interpolation
1118
+
1119
+ let r;
1120
+ let g;
1121
+ let b;
1122
+ /* eslint-disable max-statements-per-line,no-multi-spaces */
1123
+ switch (i) {
1124
+ default:
1125
+ case 6:
1126
+ case 0: r = v; g = n; b = wh; break;
1127
+ case 1: r = n; g = v; b = wh; break;
1128
+ case 2: r = wh; g = v; b = n; break;
1129
+ case 3: r = wh; g = n; b = v; break;
1130
+ case 4: r = n; g = wh; b = v; break;
1131
+ case 5: r = v; g = wh; b = n; break;
1132
+ }
1133
+ /* eslint-enable max-statements-per-line,no-multi-spaces */
1134
+
1135
+ return [r * 255, g * 255, b * 255];
1136
+ };
1137
+
1138
+ convert.cmyk.rgb = function (cmyk) {
1139
+ const c = cmyk[0] / 100;
1140
+ const m = cmyk[1] / 100;
1141
+ const y = cmyk[2] / 100;
1142
+ const k = cmyk[3] / 100;
1143
+
1144
+ const r = 1 - Math.min(1, c * (1 - k) + k);
1145
+ const g = 1 - Math.min(1, m * (1 - k) + k);
1146
+ const b = 1 - Math.min(1, y * (1 - k) + k);
1147
+
1148
+ return [r * 255, g * 255, b * 255];
1149
+ };
1150
+
1151
+ convert.xyz.rgb = function (xyz) {
1152
+ const x = xyz[0] / 100;
1153
+ const y = xyz[1] / 100;
1154
+ const z = xyz[2] / 100;
1155
+ let r;
1156
+ let g;
1157
+ let b;
1158
+
1159
+ r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
1160
+ g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
1161
+ b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
1162
+
1163
+ // Assume sRGB
1164
+ r = r > 0.0031308
1165
+ ? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
1166
+ : r * 12.92;
1167
+
1168
+ g = g > 0.0031308
1169
+ ? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
1170
+ : g * 12.92;
1171
+
1172
+ b = b > 0.0031308
1173
+ ? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
1174
+ : b * 12.92;
1175
+
1176
+ r = Math.min(Math.max(0, r), 1);
1177
+ g = Math.min(Math.max(0, g), 1);
1178
+ b = Math.min(Math.max(0, b), 1);
1179
+
1180
+ return [r * 255, g * 255, b * 255];
1181
+ };
1182
+
1183
+ convert.xyz.lab = function (xyz) {
1184
+ let x = xyz[0];
1185
+ let y = xyz[1];
1186
+ let z = xyz[2];
1187
+
1188
+ x /= 95.047;
1189
+ y /= 100;
1190
+ z /= 108.883;
1191
+
1192
+ x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
1193
+ y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
1194
+ z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
1195
+
1196
+ const l = (116 * y) - 16;
1197
+ const a = 500 * (x - y);
1198
+ const b = 200 * (y - z);
1199
+
1200
+ return [l, a, b];
1201
+ };
1202
+
1203
+ convert.lab.xyz = function (lab) {
1204
+ const l = lab[0];
1205
+ const a = lab[1];
1206
+ const b = lab[2];
1207
+ let x;
1208
+ let y;
1209
+ let z;
1210
+
1211
+ y = (l + 16) / 116;
1212
+ x = a / 500 + y;
1213
+ z = y - b / 200;
1214
+
1215
+ const y2 = y ** 3;
1216
+ const x2 = x ** 3;
1217
+ const z2 = z ** 3;
1218
+ y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
1219
+ x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
1220
+ z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
1221
+
1222
+ x *= 95.047;
1223
+ y *= 100;
1224
+ z *= 108.883;
1225
+
1226
+ return [x, y, z];
1227
+ };
1228
+
1229
+ convert.lab.lch = function (lab) {
1230
+ const l = lab[0];
1231
+ const a = lab[1];
1232
+ const b = lab[2];
1233
+ let h;
1234
+
1235
+ const hr = Math.atan2(b, a);
1236
+ h = hr * 360 / 2 / Math.PI;
1237
+
1238
+ if (h < 0) {
1239
+ h += 360;
1240
+ }
1241
+
1242
+ const c = Math.sqrt(a * a + b * b);
1243
+
1244
+ return [l, c, h];
1245
+ };
1246
+
1247
+ convert.lch.lab = function (lch) {
1248
+ const l = lch[0];
1249
+ const c = lch[1];
1250
+ const h = lch[2];
1251
+
1252
+ const hr = h / 360 * 2 * Math.PI;
1253
+ const a = c * Math.cos(hr);
1254
+ const b = c * Math.sin(hr);
1255
+
1256
+ return [l, a, b];
1257
+ };
1258
+
1259
+ convert.rgb.ansi16 = function (args, saturation = null) {
1260
+ const [r, g, b] = args;
1261
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
1262
+
1263
+ value = Math.round(value / 50);
1264
+
1265
+ if (value === 0) {
1266
+ return 30;
1267
+ }
1268
+
1269
+ let ansi = 30
1270
+ + ((Math.round(b / 255) << 2)
1271
+ | (Math.round(g / 255) << 1)
1272
+ | Math.round(r / 255));
1273
+
1274
+ if (value === 2) {
1275
+ ansi += 60;
1276
+ }
1277
+
1278
+ return ansi;
1279
+ };
1280
+
1281
+ convert.hsv.ansi16 = function (args) {
1282
+ // Optimization here; we already know the value and don't need to get
1283
+ // it converted for us.
1284
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1285
+ };
1286
+
1287
+ convert.rgb.ansi256 = function (args) {
1288
+ const r = args[0];
1289
+ const g = args[1];
1290
+ const b = args[2];
1291
+
1292
+ // We use the extended greyscale palette here, with the exception of
1293
+ // black and white. normal palette only has 4 greyscale shades.
1294
+ if (r === g && g === b) {
1295
+ if (r < 8) {
1296
+ return 16;
1297
+ }
1298
+
1299
+ if (r > 248) {
1300
+ return 231;
1301
+ }
1302
+
1303
+ return Math.round(((r - 8) / 247) * 24) + 232;
1304
+ }
1305
+
1306
+ const ansi = 16
1307
+ + (36 * Math.round(r / 255 * 5))
1308
+ + (6 * Math.round(g / 255 * 5))
1309
+ + Math.round(b / 255 * 5);
1310
+
1311
+ return ansi;
1312
+ };
1313
+
1314
+ convert.ansi16.rgb = function (args) {
1315
+ let color = args % 10;
1316
+
1317
+ // Handle greyscale
1318
+ if (color === 0 || color === 7) {
1319
+ if (args > 50) {
1320
+ color += 3.5;
1321
+ }
1322
+
1323
+ color = color / 10.5 * 255;
1324
+
1325
+ return [color, color, color];
1326
+ }
1327
+
1328
+ const mult = (~~(args > 50) + 1) * 0.5;
1329
+ const r = ((color & 1) * mult) * 255;
1330
+ const g = (((color >> 1) & 1) * mult) * 255;
1331
+ const b = (((color >> 2) & 1) * mult) * 255;
1332
+
1333
+ return [r, g, b];
1334
+ };
1335
+
1336
+ convert.ansi256.rgb = function (args) {
1337
+ // Handle greyscale
1338
+ if (args >= 232) {
1339
+ const c = (args - 232) * 10 + 8;
1340
+ return [c, c, c];
1341
+ }
1342
+
1343
+ args -= 16;
1344
+
1345
+ let rem;
1346
+ const r = Math.floor(args / 36) / 5 * 255;
1347
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1348
+ const b = (rem % 6) / 5 * 255;
1349
+
1350
+ return [r, g, b];
1351
+ };
1352
+
1353
+ convert.rgb.hex = function (args) {
1354
+ const integer = ((Math.round(args[0]) & 0xFF) << 16)
1355
+ + ((Math.round(args[1]) & 0xFF) << 8)
1356
+ + (Math.round(args[2]) & 0xFF);
1357
+
1358
+ const string = integer.toString(16).toUpperCase();
1359
+ return '000000'.substring(string.length) + string;
1360
+ };
1361
+
1362
+ convert.hex.rgb = function (args) {
1363
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1364
+ if (!match) {
1365
+ return [0, 0, 0];
1366
+ }
1367
+
1368
+ let colorString = match[0];
1369
+
1370
+ if (match[0].length === 3) {
1371
+ colorString = colorString.split('').map(char => {
1372
+ return char + char;
1373
+ }).join('');
1374
+ }
1375
+
1376
+ const integer = parseInt(colorString, 16);
1377
+ const r = (integer >> 16) & 0xFF;
1378
+ const g = (integer >> 8) & 0xFF;
1379
+ const b = integer & 0xFF;
1380
+
1381
+ return [r, g, b];
1382
+ };
1383
+
1384
+ convert.rgb.hcg = function (rgb) {
1385
+ const r = rgb[0] / 255;
1386
+ const g = rgb[1] / 255;
1387
+ const b = rgb[2] / 255;
1388
+ const max = Math.max(Math.max(r, g), b);
1389
+ const min = Math.min(Math.min(r, g), b);
1390
+ const chroma = (max - min);
1391
+ let grayscale;
1392
+ let hue;
1393
+
1394
+ if (chroma < 1) {
1395
+ grayscale = min / (1 - chroma);
1396
+ } else {
1397
+ grayscale = 0;
1398
+ }
1399
+
1400
+ if (chroma <= 0) {
1401
+ hue = 0;
1402
+ } else
1403
+ if (max === r) {
1404
+ hue = ((g - b) / chroma) % 6;
1405
+ } else
1406
+ if (max === g) {
1407
+ hue = 2 + (b - r) / chroma;
1408
+ } else {
1409
+ hue = 4 + (r - g) / chroma;
1410
+ }
1411
+
1412
+ hue /= 6;
1413
+ hue %= 1;
1414
+
1415
+ return [hue * 360, chroma * 100, grayscale * 100];
1416
+ };
1417
+
1418
+ convert.hsl.hcg = function (hsl) {
1419
+ const s = hsl[1] / 100;
1420
+ const l = hsl[2] / 100;
1421
+
1422
+ const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
1423
+
1424
+ let f = 0;
1425
+ if (c < 1.0) {
1426
+ f = (l - 0.5 * c) / (1.0 - c);
1427
+ }
1428
+
1429
+ return [hsl[0], c * 100, f * 100];
1430
+ };
1431
+
1432
+ convert.hsv.hcg = function (hsv) {
1433
+ const s = hsv[1] / 100;
1434
+ const v = hsv[2] / 100;
1435
+
1436
+ const c = s * v;
1437
+ let f = 0;
1438
+
1439
+ if (c < 1.0) {
1440
+ f = (v - c) / (1 - c);
1441
+ }
1442
+
1443
+ return [hsv[0], c * 100, f * 100];
1444
+ };
1445
+
1446
+ convert.hcg.rgb = function (hcg) {
1447
+ const h = hcg[0] / 360;
1448
+ const c = hcg[1] / 100;
1449
+ const g = hcg[2] / 100;
1450
+
1451
+ if (c === 0.0) {
1452
+ return [g * 255, g * 255, g * 255];
1453
+ }
1454
+
1455
+ const pure = [0, 0, 0];
1456
+ const hi = (h % 1) * 6;
1457
+ const v = hi % 1;
1458
+ const w = 1 - v;
1459
+ let mg = 0;
1460
+
1461
+ /* eslint-disable max-statements-per-line */
1462
+ switch (Math.floor(hi)) {
1463
+ case 0:
1464
+ pure[0] = 1; pure[1] = v; pure[2] = 0; break;
1465
+ case 1:
1466
+ pure[0] = w; pure[1] = 1; pure[2] = 0; break;
1467
+ case 2:
1468
+ pure[0] = 0; pure[1] = 1; pure[2] = v; break;
1469
+ case 3:
1470
+ pure[0] = 0; pure[1] = w; pure[2] = 1; break;
1471
+ case 4:
1472
+ pure[0] = v; pure[1] = 0; pure[2] = 1; break;
1473
+ default:
1474
+ pure[0] = 1; pure[1] = 0; pure[2] = w;
1475
+ }
1476
+ /* eslint-enable max-statements-per-line */
1477
+
1478
+ mg = (1.0 - c) * g;
1479
+
1480
+ return [
1481
+ (c * pure[0] + mg) * 255,
1482
+ (c * pure[1] + mg) * 255,
1483
+ (c * pure[2] + mg) * 255
1484
+ ];
1485
+ };
1486
+
1487
+ convert.hcg.hsv = function (hcg) {
1488
+ const c = hcg[1] / 100;
1489
+ const g = hcg[2] / 100;
1490
+
1491
+ const v = c + g * (1.0 - c);
1492
+ let f = 0;
1493
+
1494
+ if (v > 0.0) {
1495
+ f = c / v;
1496
+ }
1497
+
1498
+ return [hcg[0], f * 100, v * 100];
1499
+ };
1500
+
1501
+ convert.hcg.hsl = function (hcg) {
1502
+ const c = hcg[1] / 100;
1503
+ const g = hcg[2] / 100;
1504
+
1505
+ const l = g * (1.0 - c) + 0.5 * c;
1506
+ let s = 0;
1507
+
1508
+ if (l > 0.0 && l < 0.5) {
1509
+ s = c / (2 * l);
1510
+ } else
1511
+ if (l >= 0.5 && l < 1.0) {
1512
+ s = c / (2 * (1 - l));
1513
+ }
1514
+
1515
+ return [hcg[0], s * 100, l * 100];
1516
+ };
1517
+
1518
+ convert.hcg.hwb = function (hcg) {
1519
+ const c = hcg[1] / 100;
1520
+ const g = hcg[2] / 100;
1521
+ const v = c + g * (1.0 - c);
1522
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
1523
+ };
1524
+
1525
+ convert.hwb.hcg = function (hwb) {
1526
+ const w = hwb[1] / 100;
1527
+ const b = hwb[2] / 100;
1528
+ const v = 1 - b;
1529
+ const c = v - w;
1530
+ let g = 0;
1531
+
1532
+ if (c < 1) {
1533
+ g = (v - c) / (1 - c);
1534
+ }
1535
+
1536
+ return [hwb[0], c * 100, g * 100];
1537
+ };
1538
+
1539
+ convert.apple.rgb = function (apple) {
1540
+ return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
1541
+ };
1542
+
1543
+ convert.rgb.apple = function (rgb) {
1544
+ return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
1545
+ };
1546
+
1547
+ convert.gray.rgb = function (args) {
1548
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
1549
+ };
1550
+
1551
+ convert.gray.hsl = function (args) {
1552
+ return [0, 0, args[0]];
1553
+ };
1554
+
1555
+ convert.gray.hsv = convert.gray.hsl;
1556
+
1557
+ convert.gray.hwb = function (gray) {
1558
+ return [0, 100, gray[0]];
1559
+ };
1560
+
1561
+ convert.gray.cmyk = function (gray) {
1562
+ return [0, 0, 0, gray[0]];
1563
+ };
1564
+
1565
+ convert.gray.lab = function (gray) {
1566
+ return [gray[0], 0, 0];
1567
+ };
1568
+
1569
+ convert.gray.hex = function (gray) {
1570
+ const val = Math.round(gray[0] / 100 * 255) & 0xFF;
1571
+ const integer = (val << 16) + (val << 8) + val;
1572
+
1573
+ const string = integer.toString(16).toUpperCase();
1574
+ return '000000'.substring(string.length) + string;
1575
+ };
1576
+
1577
+ convert.rgb.gray = function (rgb) {
1578
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1579
+ return [val / 255 * 100];
1580
+ };
1581
+
1582
+
1583
+ /***/ }),
1584
+
1585
+ /***/ "../../node_modules/@commitlint/format/node_modules/color-convert/index.js":
1586
+ /*!*********************************************************************************!*\
1587
+ !*** ../../node_modules/@commitlint/format/node_modules/color-convert/index.js ***!
1588
+ \*********************************************************************************/
1589
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1590
+
1591
+ const conversions = __webpack_require__(/*! ./conversions */ "../../node_modules/@commitlint/format/node_modules/color-convert/conversions.js");
1592
+ const route = __webpack_require__(/*! ./route */ "../../node_modules/@commitlint/format/node_modules/color-convert/route.js");
1593
+
1594
+ const convert = {};
1595
+
1596
+ const models = Object.keys(conversions);
1597
+
1598
+ function wrapRaw(fn) {
1599
+ const wrappedFn = function (...args) {
1600
+ const arg0 = args[0];
1601
+ if (arg0 === undefined || arg0 === null) {
1602
+ return arg0;
1603
+ }
1604
+
1605
+ if (arg0.length > 1) {
1606
+ args = arg0;
1607
+ }
1608
+
1609
+ return fn(args);
1610
+ };
1611
+
1612
+ // Preserve .conversion property if there is one
1613
+ if ('conversion' in fn) {
1614
+ wrappedFn.conversion = fn.conversion;
1615
+ }
1616
+
1617
+ return wrappedFn;
1618
+ }
1619
+
1620
+ function wrapRounded(fn) {
1621
+ const wrappedFn = function (...args) {
1622
+ const arg0 = args[0];
1623
+
1624
+ if (arg0 === undefined || arg0 === null) {
1625
+ return arg0;
1626
+ }
1627
+
1628
+ if (arg0.length > 1) {
1629
+ args = arg0;
1630
+ }
1631
+
1632
+ const result = fn(args);
1633
+
1634
+ // We're assuming the result is an array here.
1635
+ // see notice in conversions.js; don't use box types
1636
+ // in conversion functions.
1637
+ if (typeof result === 'object') {
1638
+ for (let len = result.length, i = 0; i < len; i++) {
1639
+ result[i] = Math.round(result[i]);
1640
+ }
1641
+ }
1642
+
1643
+ return result;
1644
+ };
1645
+
1646
+ // Preserve .conversion property if there is one
1647
+ if ('conversion' in fn) {
1648
+ wrappedFn.conversion = fn.conversion;
1649
+ }
1650
+
1651
+ return wrappedFn;
1652
+ }
1653
+
1654
+ models.forEach(fromModel => {
1655
+ convert[fromModel] = {};
1656
+
1657
+ Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
1658
+ Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
1659
+
1660
+ const routes = route(fromModel);
1661
+ const routeModels = Object.keys(routes);
1662
+
1663
+ routeModels.forEach(toModel => {
1664
+ const fn = routes[toModel];
1665
+
1666
+ convert[fromModel][toModel] = wrapRounded(fn);
1667
+ convert[fromModel][toModel].raw = wrapRaw(fn);
1668
+ });
1669
+ });
1670
+
1671
+ module.exports = convert;
1672
+
1673
+
1674
+ /***/ }),
1675
+
1676
+ /***/ "../../node_modules/@commitlint/format/node_modules/color-convert/route.js":
1677
+ /*!*********************************************************************************!*\
1678
+ !*** ../../node_modules/@commitlint/format/node_modules/color-convert/route.js ***!
1679
+ \*********************************************************************************/
1680
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1681
+
1682
+ const conversions = __webpack_require__(/*! ./conversions */ "../../node_modules/@commitlint/format/node_modules/color-convert/conversions.js");
1683
+
1684
+ /*
1685
+ This function routes a model to all other models.
1686
+
1687
+ all functions that are routed have a property `.conversion` attached
1688
+ to the returned synthetic function. This property is an array
1689
+ of strings, each with the steps in between the 'from' and 'to'
1690
+ color models (inclusive).
1691
+
1692
+ conversions that are not possible simply are not included.
1693
+ */
1694
+
1695
+ function buildGraph() {
1696
+ const graph = {};
1697
+ // https://jsperf.com/object-keys-vs-for-in-with-closure/3
1698
+ const models = Object.keys(conversions);
1699
+
1700
+ for (let len = models.length, i = 0; i < len; i++) {
1701
+ graph[models[i]] = {
1702
+ // http://jsperf.com/1-vs-infinity
1703
+ // micro-opt, but this is simple.
1704
+ distance: -1,
1705
+ parent: null
1706
+ };
1707
+ }
1708
+
1709
+ return graph;
1710
+ }
1711
+
1712
+ // https://en.wikipedia.org/wiki/Breadth-first_search
1713
+ function deriveBFS(fromModel) {
1714
+ const graph = buildGraph();
1715
+ const queue = [fromModel]; // Unshift -> queue -> pop
1716
+
1717
+ graph[fromModel].distance = 0;
1718
+
1719
+ while (queue.length) {
1720
+ const current = queue.pop();
1721
+ const adjacents = Object.keys(conversions[current]);
1722
+
1723
+ for (let len = adjacents.length, i = 0; i < len; i++) {
1724
+ const adjacent = adjacents[i];
1725
+ const node = graph[adjacent];
1726
+
1727
+ if (node.distance === -1) {
1728
+ node.distance = graph[current].distance + 1;
1729
+ node.parent = current;
1730
+ queue.unshift(adjacent);
1731
+ }
1732
+ }
1733
+ }
1734
+
1735
+ return graph;
1736
+ }
1737
+
1738
+ function link(from, to) {
1739
+ return function (args) {
1740
+ return to(from(args));
1741
+ };
1742
+ }
1743
+
1744
+ function wrapConversion(toModel, graph) {
1745
+ const path = [graph[toModel].parent, toModel];
1746
+ let fn = conversions[graph[toModel].parent][toModel];
1747
+
1748
+ let cur = graph[toModel].parent;
1749
+ while (graph[cur].parent) {
1750
+ path.unshift(graph[cur].parent);
1751
+ fn = link(conversions[graph[cur].parent][cur], fn);
1752
+ cur = graph[cur].parent;
1753
+ }
1754
+
1755
+ fn.conversion = path;
1756
+ return fn;
1757
+ }
1758
+
1759
+ module.exports = function (fromModel) {
1760
+ const graph = deriveBFS(fromModel);
1761
+ const conversion = {};
1762
+
1763
+ const models = Object.keys(graph);
1764
+ for (let len = models.length, i = 0; i < len; i++) {
1765
+ const toModel = models[i];
1766
+ const node = graph[toModel];
1767
+
1768
+ if (node.parent === null) {
1769
+ // No possible conversion, or this node is the source model.
1770
+ continue;
1771
+ }
1772
+
1773
+ conversion[toModel] = wrapConversion(toModel, graph);
1774
+ }
1775
+
1776
+ return conversion;
1777
+ };
1778
+
1779
+
1780
+
1781
+ /***/ }),
1782
+
1783
+ /***/ "../../node_modules/@commitlint/format/node_modules/color-name/index.js":
1784
+ /*!******************************************************************************!*\
1785
+ !*** ../../node_modules/@commitlint/format/node_modules/color-name/index.js ***!
1786
+ \******************************************************************************/
1787
+ /***/ ((module) => {
1788
+
1789
+
1790
+
1791
+ module.exports = {
1792
+ "aliceblue": [240, 248, 255],
1793
+ "antiquewhite": [250, 235, 215],
1794
+ "aqua": [0, 255, 255],
1795
+ "aquamarine": [127, 255, 212],
1796
+ "azure": [240, 255, 255],
1797
+ "beige": [245, 245, 220],
1798
+ "bisque": [255, 228, 196],
1799
+ "black": [0, 0, 0],
1800
+ "blanchedalmond": [255, 235, 205],
1801
+ "blue": [0, 0, 255],
1802
+ "blueviolet": [138, 43, 226],
1803
+ "brown": [165, 42, 42],
1804
+ "burlywood": [222, 184, 135],
1805
+ "cadetblue": [95, 158, 160],
1806
+ "chartreuse": [127, 255, 0],
1807
+ "chocolate": [210, 105, 30],
1808
+ "coral": [255, 127, 80],
1809
+ "cornflowerblue": [100, 149, 237],
1810
+ "cornsilk": [255, 248, 220],
1811
+ "crimson": [220, 20, 60],
1812
+ "cyan": [0, 255, 255],
1813
+ "darkblue": [0, 0, 139],
1814
+ "darkcyan": [0, 139, 139],
1815
+ "darkgoldenrod": [184, 134, 11],
1816
+ "darkgray": [169, 169, 169],
1817
+ "darkgreen": [0, 100, 0],
1818
+ "darkgrey": [169, 169, 169],
1819
+ "darkkhaki": [189, 183, 107],
1820
+ "darkmagenta": [139, 0, 139],
1821
+ "darkolivegreen": [85, 107, 47],
1822
+ "darkorange": [255, 140, 0],
1823
+ "darkorchid": [153, 50, 204],
1824
+ "darkred": [139, 0, 0],
1825
+ "darksalmon": [233, 150, 122],
1826
+ "darkseagreen": [143, 188, 143],
1827
+ "darkslateblue": [72, 61, 139],
1828
+ "darkslategray": [47, 79, 79],
1829
+ "darkslategrey": [47, 79, 79],
1830
+ "darkturquoise": [0, 206, 209],
1831
+ "darkviolet": [148, 0, 211],
1832
+ "deeppink": [255, 20, 147],
1833
+ "deepskyblue": [0, 191, 255],
1834
+ "dimgray": [105, 105, 105],
1835
+ "dimgrey": [105, 105, 105],
1836
+ "dodgerblue": [30, 144, 255],
1837
+ "firebrick": [178, 34, 34],
1838
+ "floralwhite": [255, 250, 240],
1839
+ "forestgreen": [34, 139, 34],
1840
+ "fuchsia": [255, 0, 255],
1841
+ "gainsboro": [220, 220, 220],
1842
+ "ghostwhite": [248, 248, 255],
1843
+ "gold": [255, 215, 0],
1844
+ "goldenrod": [218, 165, 32],
1845
+ "gray": [128, 128, 128],
1846
+ "green": [0, 128, 0],
1847
+ "greenyellow": [173, 255, 47],
1848
+ "grey": [128, 128, 128],
1849
+ "honeydew": [240, 255, 240],
1850
+ "hotpink": [255, 105, 180],
1851
+ "indianred": [205, 92, 92],
1852
+ "indigo": [75, 0, 130],
1853
+ "ivory": [255, 255, 240],
1854
+ "khaki": [240, 230, 140],
1855
+ "lavender": [230, 230, 250],
1856
+ "lavenderblush": [255, 240, 245],
1857
+ "lawngreen": [124, 252, 0],
1858
+ "lemonchiffon": [255, 250, 205],
1859
+ "lightblue": [173, 216, 230],
1860
+ "lightcoral": [240, 128, 128],
1861
+ "lightcyan": [224, 255, 255],
1862
+ "lightgoldenrodyellow": [250, 250, 210],
1863
+ "lightgray": [211, 211, 211],
1864
+ "lightgreen": [144, 238, 144],
1865
+ "lightgrey": [211, 211, 211],
1866
+ "lightpink": [255, 182, 193],
1867
+ "lightsalmon": [255, 160, 122],
1868
+ "lightseagreen": [32, 178, 170],
1869
+ "lightskyblue": [135, 206, 250],
1870
+ "lightslategray": [119, 136, 153],
1871
+ "lightslategrey": [119, 136, 153],
1872
+ "lightsteelblue": [176, 196, 222],
1873
+ "lightyellow": [255, 255, 224],
1874
+ "lime": [0, 255, 0],
1875
+ "limegreen": [50, 205, 50],
1876
+ "linen": [250, 240, 230],
1877
+ "magenta": [255, 0, 255],
1878
+ "maroon": [128, 0, 0],
1879
+ "mediumaquamarine": [102, 205, 170],
1880
+ "mediumblue": [0, 0, 205],
1881
+ "mediumorchid": [186, 85, 211],
1882
+ "mediumpurple": [147, 112, 219],
1883
+ "mediumseagreen": [60, 179, 113],
1884
+ "mediumslateblue": [123, 104, 238],
1885
+ "mediumspringgreen": [0, 250, 154],
1886
+ "mediumturquoise": [72, 209, 204],
1887
+ "mediumvioletred": [199, 21, 133],
1888
+ "midnightblue": [25, 25, 112],
1889
+ "mintcream": [245, 255, 250],
1890
+ "mistyrose": [255, 228, 225],
1891
+ "moccasin": [255, 228, 181],
1892
+ "navajowhite": [255, 222, 173],
1893
+ "navy": [0, 0, 128],
1894
+ "oldlace": [253, 245, 230],
1895
+ "olive": [128, 128, 0],
1896
+ "olivedrab": [107, 142, 35],
1897
+ "orange": [255, 165, 0],
1898
+ "orangered": [255, 69, 0],
1899
+ "orchid": [218, 112, 214],
1900
+ "palegoldenrod": [238, 232, 170],
1901
+ "palegreen": [152, 251, 152],
1902
+ "paleturquoise": [175, 238, 238],
1903
+ "palevioletred": [219, 112, 147],
1904
+ "papayawhip": [255, 239, 213],
1905
+ "peachpuff": [255, 218, 185],
1906
+ "peru": [205, 133, 63],
1907
+ "pink": [255, 192, 203],
1908
+ "plum": [221, 160, 221],
1909
+ "powderblue": [176, 224, 230],
1910
+ "purple": [128, 0, 128],
1911
+ "rebeccapurple": [102, 51, 153],
1912
+ "red": [255, 0, 0],
1913
+ "rosybrown": [188, 143, 143],
1914
+ "royalblue": [65, 105, 225],
1915
+ "saddlebrown": [139, 69, 19],
1916
+ "salmon": [250, 128, 114],
1917
+ "sandybrown": [244, 164, 96],
1918
+ "seagreen": [46, 139, 87],
1919
+ "seashell": [255, 245, 238],
1920
+ "sienna": [160, 82, 45],
1921
+ "silver": [192, 192, 192],
1922
+ "skyblue": [135, 206, 235],
1923
+ "slateblue": [106, 90, 205],
1924
+ "slategray": [112, 128, 144],
1925
+ "slategrey": [112, 128, 144],
1926
+ "snow": [255, 250, 250],
1927
+ "springgreen": [0, 255, 127],
1928
+ "steelblue": [70, 130, 180],
1929
+ "tan": [210, 180, 140],
1930
+ "teal": [0, 128, 128],
1931
+ "thistle": [216, 191, 216],
1932
+ "tomato": [255, 99, 71],
1933
+ "turquoise": [64, 224, 208],
1934
+ "violet": [238, 130, 238],
1935
+ "wheat": [245, 222, 179],
1936
+ "white": [255, 255, 255],
1937
+ "whitesmoke": [245, 245, 245],
1938
+ "yellow": [255, 255, 0],
1939
+ "yellowgreen": [154, 205, 50]
1940
+ };
1941
+
1942
+
1943
+ /***/ }),
1944
+
1945
+ /***/ "../../node_modules/@commitlint/format/node_modules/has-flag/index.js":
1946
+ /*!****************************************************************************!*\
1947
+ !*** ../../node_modules/@commitlint/format/node_modules/has-flag/index.js ***!
1948
+ \****************************************************************************/
1949
+ /***/ ((module) => {
1950
+
1951
+
1952
+
1953
+ module.exports = (flag, argv = process.argv) => {
1954
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
1955
+ const position = argv.indexOf(prefix + flag);
1956
+ const terminatorPosition = argv.indexOf('--');
1957
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1958
+ };
1959
+
1960
+
1961
+ /***/ }),
1962
+
1963
+ /***/ "../../node_modules/@commitlint/format/node_modules/supports-color/index.js":
1964
+ /*!**********************************************************************************!*\
1965
+ !*** ../../node_modules/@commitlint/format/node_modules/supports-color/index.js ***!
1966
+ \**********************************************************************************/
1967
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1968
+
1969
+
1970
+ const os = __webpack_require__(/*! os */ "os");
1971
+ const tty = __webpack_require__(/*! tty */ "tty");
1972
+ const hasFlag = __webpack_require__(/*! has-flag */ "../../node_modules/@commitlint/format/node_modules/has-flag/index.js");
1973
+
1974
+ const {env} = process;
1975
+
1976
+ let forceColor;
1977
+ if (hasFlag('no-color') ||
1978
+ hasFlag('no-colors') ||
1979
+ hasFlag('color=false') ||
1980
+ hasFlag('color=never')) {
1981
+ forceColor = 0;
1982
+ } else if (hasFlag('color') ||
1983
+ hasFlag('colors') ||
1984
+ hasFlag('color=true') ||
1985
+ hasFlag('color=always')) {
1986
+ forceColor = 1;
1987
+ }
1988
+
1989
+ if ('FORCE_COLOR' in env) {
1990
+ if (env.FORCE_COLOR === 'true') {
1991
+ forceColor = 1;
1992
+ } else if (env.FORCE_COLOR === 'false') {
1993
+ forceColor = 0;
1994
+ } else {
1995
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
1996
+ }
1997
+ }
1998
+
1999
+ function translateLevel(level) {
2000
+ if (level === 0) {
2001
+ return false;
2002
+ }
2003
+
2004
+ return {
2005
+ level,
2006
+ hasBasic: true,
2007
+ has256: level >= 2,
2008
+ has16m: level >= 3
2009
+ };
2010
+ }
2011
+
2012
+ function supportsColor(haveStream, streamIsTTY) {
2013
+ if (forceColor === 0) {
2014
+ return 0;
2015
+ }
2016
+
2017
+ if (hasFlag('color=16m') ||
2018
+ hasFlag('color=full') ||
2019
+ hasFlag('color=truecolor')) {
2020
+ return 3;
2021
+ }
2022
+
2023
+ if (hasFlag('color=256')) {
2024
+ return 2;
2025
+ }
2026
+
2027
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
2028
+ return 0;
2029
+ }
2030
+
2031
+ const min = forceColor || 0;
2032
+
2033
+ if (env.TERM === 'dumb') {
2034
+ return min;
2035
+ }
2036
+
2037
+ if (process.platform === 'win32') {
2038
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
2039
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
2040
+ const osRelease = os.release().split('.');
2041
+ if (
2042
+ Number(osRelease[0]) >= 10 &&
2043
+ Number(osRelease[2]) >= 10586
2044
+ ) {
2045
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
2046
+ }
2047
+
2048
+ return 1;
2049
+ }
2050
+
2051
+ if ('CI' in env) {
2052
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
2053
+ return 1;
2054
+ }
2055
+
2056
+ return min;
2057
+ }
2058
+
2059
+ if ('TEAMCITY_VERSION' in env) {
2060
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2061
+ }
2062
+
2063
+ if (env.COLORTERM === 'truecolor') {
2064
+ return 3;
2065
+ }
2066
+
2067
+ if ('TERM_PROGRAM' in env) {
2068
+ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
2069
+
2070
+ switch (env.TERM_PROGRAM) {
2071
+ case 'iTerm.app':
2072
+ return version >= 3 ? 3 : 2;
2073
+ case 'Apple_Terminal':
2074
+ return 2;
2075
+ // No default
2076
+ }
2077
+ }
2078
+
2079
+ if (/-256(color)?$/i.test(env.TERM)) {
2080
+ return 2;
2081
+ }
2082
+
2083
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2084
+ return 1;
2085
+ }
2086
+
2087
+ if ('COLORTERM' in env) {
2088
+ return 1;
2089
+ }
2090
+
2091
+ return min;
2092
+ }
2093
+
2094
+ function getSupportLevel(stream) {
2095
+ const level = supportsColor(stream, stream && stream.isTTY);
2096
+ return translateLevel(level);
2097
+ }
2098
+
2099
+ module.exports = {
2100
+ supportsColor: getSupportLevel,
2101
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
2102
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
2103
+ };
2104
+
2105
+
2106
+ /***/ })
2107
+
2108
+ };