@shell-shock/preset-cli 0.9.12 → 0.9.13

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.
Files changed (51) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -4
  2. package/dist/components/banner-builtin.cjs +3 -3
  3. package/dist/components/banner-builtin.mjs +3 -3
  4. package/dist/components/banner-builtin.mjs.map +1 -1
  5. package/dist/components/command-entry.cjs +1 -0
  6. package/dist/components/command-entry.mjs +1 -0
  7. package/dist/components/command-entry.mjs.map +1 -1
  8. package/dist/components/virtual-command-entry.cjs +1 -0
  9. package/dist/components/virtual-command-entry.mjs +1 -0
  10. package/dist/components/virtual-command-entry.mjs.map +1 -1
  11. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +2 -2
  12. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +1 -1
  13. package/dist/packages/unified/dist/html-DzncQodH.cjs +156 -0
  14. package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
  15. package/dist/packages/unified/dist/html-DzncQodH.mjs.map +1 -0
  16. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  17. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  18. package/dist/packages/unified/dist/{markdown-OuY_JOk0.cjs → markdown-BiaU4FQg.cjs} +3 -3
  19. package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs → markdown-BiaU4FQg.mjs} +4 -4
  20. package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs.map → markdown-BiaU4FQg.mjs.map} +1 -1
  21. package/package.json +11 -15
  22. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +0 -36
  23. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +0 -36
  24. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +0 -1
  25. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +0 -32
  26. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +0 -33
  27. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +0 -1
  28. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +0 -133
  29. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +0 -134
  30. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +0 -32
  32. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +0 -31
  33. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +0 -1
  34. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +0 -169
  35. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +0 -167
  36. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +0 -98
  38. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +0 -95
  39. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +0 -1
  40. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +0 -23
  41. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +0 -23
  42. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +0 -36
  44. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +0 -36
  45. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +0 -1
  46. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +0 -10
  47. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +0 -10
  48. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +0 -1
  49. package/dist/packages/unified/dist/html-Di3_LwV3.cjs +0 -337
  50. package/dist/packages/unified/dist/html-Di3_LwV3.mjs +0 -338
  51. package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +0 -1
@@ -1,134 +0,0 @@
1
- import ansiStyles, { backgroundColorNames, foregroundColorNames } from "./vendor/ansi-styles/index.mjs";
2
- import supportsColor from "./vendor/supports-color/index.mjs";
3
- import { stringEncaseCRLFWithFirstIndex, stringReplaceAll } from "./utilities.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
6
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
7
- const GENERATOR = Symbol("GENERATOR");
8
- const STYLER = Symbol("STYLER");
9
- const IS_EMPTY = Symbol("IS_EMPTY");
10
- const levelMapping = [
11
- "ansi",
12
- "ansi",
13
- "ansi256",
14
- "ansi16m"
15
- ];
16
- const styles = Object.create(null);
17
- const applyOptions = (object, options = {}) => {
18
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
19
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
20
- object.level = options.level === void 0 ? colorLevel : options.level;
21
- };
22
- var Chalk = class {
23
- constructor(options) {
24
- return chalkFactory(options);
25
- }
26
- };
27
- const chalkFactory = (options) => {
28
- const chalk = (...strings) => strings.join(" ");
29
- applyOptions(chalk, options);
30
- Object.setPrototypeOf(chalk, createChalk.prototype);
31
- return chalk;
32
- };
33
- function createChalk(options) {
34
- return chalkFactory(options);
35
- }
36
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
37
- for (const [styleName, style] of Object.entries(ansiStyles)) styles[styleName] = { get() {
38
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
39
- Object.defineProperty(this, styleName, { value: builder });
40
- return builder;
41
- } };
42
- styles.visible = { get() {
43
- const builder = createBuilder(this, this[STYLER], true);
44
- Object.defineProperty(this, "visible", { value: builder });
45
- return builder;
46
- } };
47
- const getModelAnsi = (model, level, type, ...arguments_) => {
48
- if (model === "rgb") {
49
- if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
50
- if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
51
- return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
52
- }
53
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
54
- return ansiStyles[type][model](...arguments_);
55
- };
56
- for (const model of [
57
- "rgb",
58
- "hex",
59
- "ansi256"
60
- ]) {
61
- styles[model] = { get() {
62
- const { level } = this;
63
- return function(...arguments_) {
64
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
65
- return createBuilder(this, styler, this[IS_EMPTY]);
66
- };
67
- } };
68
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
69
- styles[bgModel] = { get() {
70
- const { level } = this;
71
- return function(...arguments_) {
72
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
73
- return createBuilder(this, styler, this[IS_EMPTY]);
74
- };
75
- } };
76
- }
77
- const proto = Object.defineProperties(() => {}, {
78
- ...styles,
79
- level: {
80
- enumerable: true,
81
- get() {
82
- return this[GENERATOR].level;
83
- },
84
- set(level) {
85
- this[GENERATOR].level = level;
86
- }
87
- }
88
- });
89
- const createStyler = (open, close, parent) => {
90
- let openAll;
91
- let closeAll;
92
- if (parent === void 0) {
93
- openAll = open;
94
- closeAll = close;
95
- } else {
96
- openAll = parent.openAll + open;
97
- closeAll = close + parent.closeAll;
98
- }
99
- return {
100
- open,
101
- close,
102
- openAll,
103
- closeAll,
104
- parent
105
- };
106
- };
107
- const createBuilder = (self, _styler, _isEmpty) => {
108
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
109
- Object.setPrototypeOf(builder, proto);
110
- builder[GENERATOR] = self;
111
- builder[STYLER] = _styler;
112
- builder[IS_EMPTY] = _isEmpty;
113
- return builder;
114
- };
115
- const applyStyle = (self, string) => {
116
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
117
- let styler = self[STYLER];
118
- if (styler === void 0) return string;
119
- const { openAll, closeAll } = styler;
120
- if (string.includes("\x1B")) while (styler !== void 0) {
121
- string = stringReplaceAll(string, styler.close, styler.open);
122
- styler = styler.parent;
123
- }
124
- const lfIndex = string.indexOf("\n");
125
- if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
126
- return openAll + string + closeAll;
127
- };
128
- Object.defineProperties(createChalk.prototype, styles);
129
- const chalk = createChalk();
130
- const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
131
-
132
- //#endregion
133
- export { Chalk };
134
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js"],"sourcesContent":["import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` → `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor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F,MAAM,gBAAgB,MAAM,OAAO,WAAW;CAC7C,IAAI;CACJ,IAAI;AACJ,KAAI,WAAW,QAAW;AACzB,YAAU;AACV,aAAW;QACL;AACN,YAAU,OAAO,UAAU;AAC3B,aAAW,QAAQ,OAAO;;AAG3B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;;AAGF,MAAM,iBAAiB,MAAM,SAAS,aAAa;CAGlD,MAAM,WAAW,GAAG,eAAe,WAAW,SAAU,WAAW,WAAW,IAAM,KAAK,WAAW,KAAM,WAAW,KAAK,IAAI,CAAC;AAI/H,QAAO,eAAe,SAAS,MAAM;AAErC,SAAQ,aAAa;AACrB,SAAQ,UAAU;AAClB,SAAQ,YAAY;AAEpB,QAAO;;AAGR,MAAM,cAAc,MAAM,WAAW;AACpC,KAAI,KAAK,SAAS,KAAK,CAAC,OACvB,QAAO,KAAK,YAAY,KAAK;CAG9B,IAAI,SAAS,KAAK;AAElB,KAAI,WAAW,OACd,QAAO;CAGR,MAAM,EAAC,SAAS,aAAY;AAC5B,KAAI,OAAO,SAAS,OAAS,CAC5B,QAAO,WAAW,QAAW;AAI5B,WAAS,iBAAiB,QAAQ,OAAO,OAAO,OAAO,KAAK;AAE5D,WAAS,OAAO;;CAOlB,MAAM,UAAU,OAAO,QAAQ,KAAK;AACpC,KAAI,YAAY,GACf,UAAS,+BAA+B,QAAQ,UAAU,SAAS,QAAQ;AAG5E,QAAO,UAAU,SAAS;;AAG3B,OAAO,iBAAiB,YAAY,WAAW,OAAO;AAEtD,MAAM,QAAQ,aAAa;AAC3B,MAAa,cAAc,YAAY,EAAC,OAAO,cAAc,YAAY,QAAQ,GAAE,CAAC"}
@@ -1,32 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
3
- function stringReplaceAll(string, substring, replacer) {
4
- let index = string.indexOf(substring);
5
- if (index === -1) return string;
6
- const substringLength = substring.length;
7
- let endIndex = 0;
8
- let returnValue = "";
9
- do {
10
- returnValue += string.slice(endIndex, index) + substring + replacer;
11
- endIndex = index + substringLength;
12
- index = string.indexOf(substring, endIndex);
13
- } while (index !== -1);
14
- returnValue += string.slice(endIndex);
15
- return returnValue;
16
- }
17
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
18
- let endIndex = 0;
19
- let returnValue = "";
20
- do {
21
- const gotCR = string[index - 1] === "\r";
22
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
23
- endIndex = index + 1;
24
- index = string.indexOf("\n", endIndex);
25
- } while (index !== -1);
26
- returnValue += string.slice(endIndex);
27
- return returnValue;
28
- }
29
-
30
- //#endregion
31
- exports.stringEncaseCRLFWithFirstIndex = stringEncaseCRLFWithFirstIndex;
32
- exports.stringReplaceAll = stringReplaceAll;
@@ -1,31 +0,0 @@
1
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
2
- function stringReplaceAll(string, substring, replacer) {
3
- let index = string.indexOf(substring);
4
- if (index === -1) return string;
5
- const substringLength = substring.length;
6
- let endIndex = 0;
7
- let returnValue = "";
8
- do {
9
- returnValue += string.slice(endIndex, index) + substring + replacer;
10
- endIndex = index + substringLength;
11
- index = string.indexOf(substring, endIndex);
12
- } while (index !== -1);
13
- returnValue += string.slice(endIndex);
14
- return returnValue;
15
- }
16
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
17
- let endIndex = 0;
18
- let returnValue = "";
19
- do {
20
- const gotCR = string[index - 1] === "\r";
21
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
22
- endIndex = index + 1;
23
- index = string.indexOf("\n", endIndex);
24
- } while (index !== -1);
25
- returnValue += string.slice(endIndex);
26
- return returnValue;
27
- }
28
-
29
- //#endregion
30
- export { stringEncaseCRLFWithFirstIndex, stringReplaceAll };
31
- //# sourceMappingURL=utilities.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilities.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js"],"sourcesContent":["// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n"],"x_google_ignoreList":[0],"mappings":";AACA,SAAgB,iBAAiB,QAAQ,WAAW,UAAU;CAC7D,IAAI,QAAQ,OAAO,QAAQ,UAAU;AACrC,KAAI,UAAU,GACb,QAAO;CAGR,MAAM,kBAAkB,UAAU;CAClC,IAAI,WAAW;CACf,IAAI,cAAc;AAClB,IAAG;AACF,iBAAe,OAAO,MAAM,UAAU,MAAM,GAAG,YAAY;AAC3D,aAAW,QAAQ;AACnB,UAAQ,OAAO,QAAQ,WAAW,SAAS;UACnC,UAAU;AAEnB,gBAAe,OAAO,MAAM,SAAS;AACrC,QAAO;;AAGR,SAAgB,+BAA+B,QAAQ,QAAQ,SAAS,OAAO;CAC9E,IAAI,WAAW;CACf,IAAI,cAAc;AAClB,IAAG;EACF,MAAM,QAAQ,OAAO,QAAQ,OAAO;AACpC,iBAAe,OAAO,MAAM,UAAW,QAAQ,QAAQ,IAAI,MAAO,GAAG,UAAU,QAAQ,SAAS,QAAQ;AACxG,aAAW,QAAQ;AACnB,UAAQ,OAAO,QAAQ,MAAM,SAAS;UAC9B,UAAU;AAEnB,gBAAe,OAAO,MAAM,SAAS;AACrC,QAAO"}
@@ -1,169 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
3
- const ANSI_BACKGROUND_OFFSET = 10;
4
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
5
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
6
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
7
- const styles = {
8
- modifier: {
9
- reset: [0, 0],
10
- bold: [1, 22],
11
- dim: [2, 22],
12
- italic: [3, 23],
13
- underline: [4, 24],
14
- overline: [53, 55],
15
- inverse: [7, 27],
16
- hidden: [8, 28],
17
- strikethrough: [9, 29]
18
- },
19
- color: {
20
- black: [30, 39],
21
- red: [31, 39],
22
- green: [32, 39],
23
- yellow: [33, 39],
24
- blue: [34, 39],
25
- magenta: [35, 39],
26
- cyan: [36, 39],
27
- white: [37, 39],
28
- blackBright: [90, 39],
29
- gray: [90, 39],
30
- grey: [90, 39],
31
- redBright: [91, 39],
32
- greenBright: [92, 39],
33
- yellowBright: [93, 39],
34
- blueBright: [94, 39],
35
- magentaBright: [95, 39],
36
- cyanBright: [96, 39],
37
- whiteBright: [97, 39]
38
- },
39
- bgColor: {
40
- bgBlack: [40, 49],
41
- bgRed: [41, 49],
42
- bgGreen: [42, 49],
43
- bgYellow: [43, 49],
44
- bgBlue: [44, 49],
45
- bgMagenta: [45, 49],
46
- bgCyan: [46, 49],
47
- bgWhite: [47, 49],
48
- bgBlackBright: [100, 49],
49
- bgGray: [100, 49],
50
- bgGrey: [100, 49],
51
- bgRedBright: [101, 49],
52
- bgGreenBright: [102, 49],
53
- bgYellowBright: [103, 49],
54
- bgBlueBright: [104, 49],
55
- bgMagentaBright: [105, 49],
56
- bgCyanBright: [106, 49],
57
- bgWhiteBright: [107, 49]
58
- }
59
- };
60
- const modifierNames = Object.keys(styles.modifier);
61
- const foregroundColorNames = Object.keys(styles.color);
62
- const backgroundColorNames = Object.keys(styles.bgColor);
63
- const colorNames = [...foregroundColorNames, ...backgroundColorNames];
64
- function assembleStyles() {
65
- const codes = /* @__PURE__ */ new Map();
66
- for (const [groupName, group] of Object.entries(styles)) {
67
- for (const [styleName, style] of Object.entries(group)) {
68
- styles[styleName] = {
69
- open: `\u001B[${style[0]}m`,
70
- close: `\u001B[${style[1]}m`
71
- };
72
- group[styleName] = styles[styleName];
73
- codes.set(style[0], style[1]);
74
- }
75
- Object.defineProperty(styles, groupName, {
76
- value: group,
77
- enumerable: false
78
- });
79
- }
80
- Object.defineProperty(styles, "codes", {
81
- value: codes,
82
- enumerable: false
83
- });
84
- styles.color.close = "\x1B[39m";
85
- styles.bgColor.close = "\x1B[49m";
86
- styles.color.ansi = wrapAnsi16();
87
- styles.color.ansi256 = wrapAnsi256();
88
- styles.color.ansi16m = wrapAnsi16m();
89
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
90
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
91
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
92
- Object.defineProperties(styles, {
93
- rgbToAnsi256: {
94
- value(red, green, blue) {
95
- if (red === green && green === blue) {
96
- if (red < 8) return 16;
97
- if (red > 248) return 231;
98
- return Math.round((red - 8) / 247 * 24) + 232;
99
- }
100
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
101
- },
102
- enumerable: false
103
- },
104
- hexToRgb: {
105
- value(hex) {
106
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
107
- if (!matches) return [
108
- 0,
109
- 0,
110
- 0
111
- ];
112
- let [colorString] = matches;
113
- if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
114
- const integer = Number.parseInt(colorString, 16);
115
- return [
116
- integer >> 16 & 255,
117
- integer >> 8 & 255,
118
- integer & 255
119
- ];
120
- },
121
- enumerable: false
122
- },
123
- hexToAnsi256: {
124
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
125
- enumerable: false
126
- },
127
- ansi256ToAnsi: {
128
- value(code) {
129
- if (code < 8) return 30 + code;
130
- if (code < 16) return 90 + (code - 8);
131
- let red;
132
- let green;
133
- let blue;
134
- if (code >= 232) {
135
- red = ((code - 232) * 10 + 8) / 255;
136
- green = red;
137
- blue = red;
138
- } else {
139
- code -= 16;
140
- const remainder = code % 36;
141
- red = Math.floor(code / 36) / 5;
142
- green = Math.floor(remainder / 6) / 5;
143
- blue = remainder % 6 / 5;
144
- }
145
- const value = Math.max(red, green, blue) * 2;
146
- if (value === 0) return 30;
147
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
148
- if (value === 2) result += 60;
149
- return result;
150
- },
151
- enumerable: false
152
- },
153
- rgbToAnsi: {
154
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
155
- enumerable: false
156
- },
157
- hexToAnsi: {
158
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
159
- enumerable: false
160
- }
161
- });
162
- return styles;
163
- }
164
- const ansiStyles = assembleStyles();
165
-
166
- //#endregion
167
- exports.backgroundColorNames = backgroundColorNames;
168
- exports.default = ansiStyles;
169
- exports.foregroundColorNames = foregroundColorNames;
@@ -1,167 +0,0 @@
1
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
2
- const ANSI_BACKGROUND_OFFSET = 10;
3
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
4
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
5
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
6
- const styles = {
7
- modifier: {
8
- reset: [0, 0],
9
- bold: [1, 22],
10
- dim: [2, 22],
11
- italic: [3, 23],
12
- underline: [4, 24],
13
- overline: [53, 55],
14
- inverse: [7, 27],
15
- hidden: [8, 28],
16
- strikethrough: [9, 29]
17
- },
18
- color: {
19
- black: [30, 39],
20
- red: [31, 39],
21
- green: [32, 39],
22
- yellow: [33, 39],
23
- blue: [34, 39],
24
- magenta: [35, 39],
25
- cyan: [36, 39],
26
- white: [37, 39],
27
- blackBright: [90, 39],
28
- gray: [90, 39],
29
- grey: [90, 39],
30
- redBright: [91, 39],
31
- greenBright: [92, 39],
32
- yellowBright: [93, 39],
33
- blueBright: [94, 39],
34
- magentaBright: [95, 39],
35
- cyanBright: [96, 39],
36
- whiteBright: [97, 39]
37
- },
38
- bgColor: {
39
- bgBlack: [40, 49],
40
- bgRed: [41, 49],
41
- bgGreen: [42, 49],
42
- bgYellow: [43, 49],
43
- bgBlue: [44, 49],
44
- bgMagenta: [45, 49],
45
- bgCyan: [46, 49],
46
- bgWhite: [47, 49],
47
- bgBlackBright: [100, 49],
48
- bgGray: [100, 49],
49
- bgGrey: [100, 49],
50
- bgRedBright: [101, 49],
51
- bgGreenBright: [102, 49],
52
- bgYellowBright: [103, 49],
53
- bgBlueBright: [104, 49],
54
- bgMagentaBright: [105, 49],
55
- bgCyanBright: [106, 49],
56
- bgWhiteBright: [107, 49]
57
- }
58
- };
59
- const modifierNames = Object.keys(styles.modifier);
60
- const foregroundColorNames = Object.keys(styles.color);
61
- const backgroundColorNames = Object.keys(styles.bgColor);
62
- const colorNames = [...foregroundColorNames, ...backgroundColorNames];
63
- function assembleStyles() {
64
- const codes = /* @__PURE__ */ new Map();
65
- for (const [groupName, group] of Object.entries(styles)) {
66
- for (const [styleName, style] of Object.entries(group)) {
67
- styles[styleName] = {
68
- open: `\u001B[${style[0]}m`,
69
- close: `\u001B[${style[1]}m`
70
- };
71
- group[styleName] = styles[styleName];
72
- codes.set(style[0], style[1]);
73
- }
74
- Object.defineProperty(styles, groupName, {
75
- value: group,
76
- enumerable: false
77
- });
78
- }
79
- Object.defineProperty(styles, "codes", {
80
- value: codes,
81
- enumerable: false
82
- });
83
- styles.color.close = "\x1B[39m";
84
- styles.bgColor.close = "\x1B[49m";
85
- styles.color.ansi = wrapAnsi16();
86
- styles.color.ansi256 = wrapAnsi256();
87
- styles.color.ansi16m = wrapAnsi16m();
88
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
89
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
90
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
91
- Object.defineProperties(styles, {
92
- rgbToAnsi256: {
93
- value(red, green, blue) {
94
- if (red === green && green === blue) {
95
- if (red < 8) return 16;
96
- if (red > 248) return 231;
97
- return Math.round((red - 8) / 247 * 24) + 232;
98
- }
99
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
100
- },
101
- enumerable: false
102
- },
103
- hexToRgb: {
104
- value(hex) {
105
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
106
- if (!matches) return [
107
- 0,
108
- 0,
109
- 0
110
- ];
111
- let [colorString] = matches;
112
- if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
113
- const integer = Number.parseInt(colorString, 16);
114
- return [
115
- integer >> 16 & 255,
116
- integer >> 8 & 255,
117
- integer & 255
118
- ];
119
- },
120
- enumerable: false
121
- },
122
- hexToAnsi256: {
123
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
124
- enumerable: false
125
- },
126
- ansi256ToAnsi: {
127
- value(code) {
128
- if (code < 8) return 30 + code;
129
- if (code < 16) return 90 + (code - 8);
130
- let red;
131
- let green;
132
- let blue;
133
- if (code >= 232) {
134
- red = ((code - 232) * 10 + 8) / 255;
135
- green = red;
136
- blue = red;
137
- } else {
138
- code -= 16;
139
- const remainder = code % 36;
140
- red = Math.floor(code / 36) / 5;
141
- green = Math.floor(remainder / 6) / 5;
142
- blue = remainder % 6 / 5;
143
- }
144
- const value = Math.max(red, green, blue) * 2;
145
- if (value === 0) return 30;
146
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
147
- if (value === 2) result += 60;
148
- return result;
149
- },
150
- enumerable: false
151
- },
152
- rgbToAnsi: {
153
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
154
- enumerable: false
155
- },
156
- hexToAnsi: {
157
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
158
- enumerable: false
159
- }
160
- });
161
- return styles;
162
- }
163
- const ansiStyles = assembleStyles();
164
-
165
- //#endregion
166
- export { backgroundColorNames, ansiStyles as default, foregroundColorNames };
167
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js"],"sourcesContent":["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,yBAAyB;AAE/B,MAAM,cAAc,SAAS,OAAM,SAAQ,UAAU,OAAO,OAAO;AAEnE,MAAM,eAAe,SAAS,OAAM,SAAQ,UAAU,KAAK,OAAO,KAAK,KAAK;AAE5E,MAAM,eAAe,SAAS,OAAO,KAAK,OAAO,SAAS,UAAU,KAAK,OAAO,KAAK,IAAI,GAAG,MAAM,GAAG,KAAK;AAE1G,MAAM,SAAS;CACd,UAAU;EACT,OAAO,CAAC,GAAG,EAAE;EAEb,MAAM,CAAC,GAAG,GAAG;EACb,KAAK,CAAC,GAAG,GAAG;EACZ,QAAQ,CAAC,GAAG,GAAG;EACf,WAAW,CAAC,GAAG,GAAG;EAClB,UAAU,CAAC,IAAI,GAAG;EAClB,SAAS,CAAC,GAAG,GAAG;EAChB,QAAQ,CAAC,GAAG,GAAG;EACf,eAAe,CAAC,GAAG,GAAG;EACtB;CACD,OAAO;EACN,OAAO,CAAC,IAAI,GAAG;EACf,KAAK,CAAC,IAAI,GAAG;EACb,OAAO,CAAC,IAAI,GAAG;EACf,QAAQ,CAAC,IAAI,GAAG;EAChB,MAAM,CAAC,IAAI,GAAG;EACd,SAAS,CAAC,IAAI,GAAG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