@stryke/capnp 0.12.96 → 0.12.98
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.
- package/bin/capnpc.cjs +405 -304
- package/bin/capnpc.d.cts +909 -4
- package/bin/capnpc.d.cts.map +1 -1
- package/bin/capnpc.d.mts +909 -4
- package/bin/capnpc.d.mts.map +1 -1
- package/bin/capnpc.mjs +368 -268
- package/bin/capnpc.mjs.map +1 -1
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts +2991 -0
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts.map +1 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts +2991 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts.map +1 -0
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs → capnp-es.GpvEvMIK-CH8kq1KS.mjs} +13 -6
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs.map → capnp-es.GpvEvMIK-CH8kq1KS.mjs.map} +1 -1
- package/dist/{capnp-es.GpvEvMIK-BcYm5JyH.cjs → capnp-es.GpvEvMIK-CZ5ZimCD.cjs} +12 -5
- package/dist/{compile-Cx88xgqJ.mjs → compile-D_BOc0dD.mjs} +109 -15
- package/dist/compile-D_BOc0dD.mjs.map +1 -0
- package/dist/{compile-SmxAaHxW.cjs → compile-Yq1zhccM.cjs} +113 -19
- package/dist/compile.cjs +2 -2
- package/dist/compile.d.cts +38 -3
- package/dist/compile.d.cts.map +1 -0
- package/dist/compile.d.mts +38 -3
- package/dist/compile.d.mts.map +1 -0
- package/dist/compile.mjs +1 -2
- package/dist/{dist-BlvFBzSi.mjs → dist-DQ7xmzRT.mjs} +385 -16
- package/dist/dist-DQ7xmzRT.mjs.map +1 -0
- package/dist/{dist-YywzZL3Q.cjs → dist-VMGxvENY.cjs} +381 -12
- package/dist/{helpers-BoYAadSB.mjs → helpers-2TldkyGG.mjs} +136 -137
- package/dist/helpers-2TldkyGG.mjs.map +1 -0
- package/dist/{helpers-gxlsFdP8.cjs → helpers-Dn4nWOb7.cjs} +164 -165
- package/dist/helpers.cjs +2 -1
- package/dist/helpers.d.cts +1 -2
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +1 -2
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index-63Za7yNc.d.cts +736 -0
- package/dist/index-63Za7yNc.d.cts.map +1 -0
- package/dist/index-LYXu6eWz.d.mts +736 -0
- package/dist/index-LYXu6eWz.d.mts.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -5
- package/dist/rpc-helpers.cjs +4 -3
- package/dist/rpc-helpers.d.cts +3 -4
- package/dist/rpc-helpers.d.cts.map +1 -1
- package/dist/rpc-helpers.d.mts +3 -4
- package/dist/rpc-helpers.d.mts.map +1 -1
- package/dist/rpc-helpers.mjs +2 -2
- package/dist/types-BjCOVfgj.d.cts +1506 -0
- package/dist/types-BjCOVfgj.d.cts.map +1 -0
- package/dist/types-CVzMn-TI.d.mts +1506 -0
- package/dist/types-CVzMn-TI.d.mts.map +1 -0
- package/dist/types.cjs +8 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +7 -2
- package/dist/types.mjs.map +1 -0
- package/package.json +5 -5
- package/schemas/cpp.cjs +1 -0
- package/schemas/cpp.d.cts.map +1 -1
- package/schemas/cpp.d.mts.map +1 -1
- package/schemas/index-BB47pUzp.d.cts +742 -0
- package/schemas/index-BB47pUzp.d.cts.map +1 -0
- package/schemas/index-DprjZUdT.d.mts +742 -0
- package/schemas/index-DprjZUdT.d.mts.map +1 -0
- package/schemas/persistent.cjs +2 -1
- package/schemas/persistent.d.cts +48 -21
- package/schemas/persistent.d.cts.map +1 -1
- package/schemas/persistent.d.mts +48 -21
- package/schemas/persistent.d.mts.map +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/persistent.mjs.map +1 -1
- package/schemas/rpc-twoparty.cjs +20 -1
- package/schemas/rpc-twoparty.d.cts +17 -17
- package/schemas/rpc-twoparty.d.cts.map +1 -1
- package/schemas/rpc-twoparty.d.mts +17 -17
- package/schemas/rpc-twoparty.d.mts.map +1 -1
- package/schemas/rpc-twoparty.mjs +19 -1
- package/schemas/rpc-twoparty.mjs.map +1 -1
- package/schemas/rpc.cjs +371 -1
- package/schemas/rpc.d.cts +141 -141
- package/schemas/rpc.d.cts.map +1 -1
- package/schemas/rpc.d.mts +141 -141
- package/schemas/rpc.d.mts.map +1 -1
- package/schemas/rpc.mjs +370 -1
- package/schemas/rpc.mjs.map +1 -1
- package/schemas/schema.cjs +96 -1
- package/schemas/schema.d.cts +286 -228
- package/schemas/schema.d.cts.map +1 -1
- package/schemas/schema.d.mts +286 -228
- package/schemas/schema.d.mts.map +1 -1
- package/schemas/schema.mjs +95 -1
- package/schemas/schema.mjs.map +1 -1
- package/schemas/{src-2eLj6yCr.cjs → src-B6FhDNiV.cjs} +19 -12
- package/schemas/{src-s2pCu2mc.mjs → src-B97sIXSw.mjs} +19 -13
- package/schemas/src-B97sIXSw.mjs.map +1 -0
- package/schemas/ts.cjs +1 -0
- package/schemas/ts.d.cts.map +1 -1
- package/schemas/ts.d.mts.map +1 -1
- package/dist/compile-Cx88xgqJ.mjs.map +0 -1
- package/dist/compile-DccxA7WZ.d.cts +0 -40
- package/dist/compile-DccxA7WZ.d.cts.map +0 -1
- package/dist/compile-UkKIpqrK.d.mts +0 -40
- package/dist/compile-UkKIpqrK.d.mts.map +0 -1
- package/dist/dist-BlvFBzSi.mjs.map +0 -1
- package/dist/helpers-BoYAadSB.mjs.map +0 -1
- package/dist/types-Cuj2daUE.mjs +0 -8
- package/dist/types-Cuj2daUE.mjs.map +0 -1
- package/dist/types-D03SjfBL.d.mts +0 -55
- package/dist/types-D03SjfBL.d.mts.map +0 -1
- package/dist/types-D52qMMoK.d.cts +0 -55
- package/dist/types-D52qMMoK.d.cts.map +0 -1
- package/dist/types-DHrjS-69.cjs +0 -13
- package/schemas/index-BAJMwFip.d.mts +0 -96
- package/schemas/index-BAJMwFip.d.mts.map +0 -1
- package/schemas/index-b7dam4EA.d.cts +0 -96
- package/schemas/index-b7dam4EA.d.cts.map +0 -1
- package/schemas/src-s2pCu2mc.mjs.map +0 -1
|
@@ -8,14 +8,14 @@ import { appendPath } from "@stryke/path/append";
|
|
|
8
8
|
import { findFilePath, relativePath } from "@stryke/path/file-path-fns";
|
|
9
9
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region \0rolldown/runtime.js
|
|
12
12
|
var __create = Object.create;
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
15
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
16
|
var __getProtoOf = Object.getPrototypeOf;
|
|
17
17
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
18
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
19
19
|
var __copyProps = (to, from, except, desc) => {
|
|
20
20
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
21
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
40
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-5DQF4GNF.js
|
|
41
41
|
var DEFAULT_COLOR_CONFIG = {
|
|
42
42
|
light: {
|
|
43
43
|
background: "#fafafa",
|
|
@@ -838,7 +838,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
838
838
|
const cssKeywords = require_color_name();
|
|
839
839
|
const reverseKeywords = {};
|
|
840
840
|
for (const key of Object.keys(cssKeywords)) reverseKeywords[cssKeywords[key]] = key;
|
|
841
|
-
const convert
|
|
841
|
+
const convert = {
|
|
842
842
|
rgb: {
|
|
843
843
|
channels: 3,
|
|
844
844
|
labels: "rgb"
|
|
@@ -908,18 +908,18 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
908
908
|
labels: ["gray"]
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
module.exports = convert
|
|
912
|
-
for (const model of Object.keys(convert
|
|
913
|
-
if (!("channels" in convert
|
|
914
|
-
if (!("labels" in convert
|
|
915
|
-
if (convert
|
|
916
|
-
const { channels, labels } = convert
|
|
917
|
-
delete convert
|
|
918
|
-
delete convert
|
|
919
|
-
Object.defineProperty(convert
|
|
920
|
-
Object.defineProperty(convert
|
|
911
|
+
module.exports = convert;
|
|
912
|
+
for (const model of Object.keys(convert)) {
|
|
913
|
+
if (!("channels" in convert[model])) throw new Error("missing channels property: " + model);
|
|
914
|
+
if (!("labels" in convert[model])) throw new Error("missing channel labels property: " + model);
|
|
915
|
+
if (convert[model].labels.length !== convert[model].channels) throw new Error("channel and label counts mismatch: " + model);
|
|
916
|
+
const { channels, labels } = convert[model];
|
|
917
|
+
delete convert[model].channels;
|
|
918
|
+
delete convert[model].labels;
|
|
919
|
+
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
920
|
+
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
921
921
|
}
|
|
922
|
-
convert
|
|
922
|
+
convert.rgb.hsl = function(rgb) {
|
|
923
923
|
const r = rgb[0] / 255;
|
|
924
924
|
const g = rgb[1] / 255;
|
|
925
925
|
const b = rgb[2] / 255;
|
|
@@ -944,7 +944,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
944
944
|
l * 100
|
|
945
945
|
];
|
|
946
946
|
};
|
|
947
|
-
convert
|
|
947
|
+
convert.rgb.hsv = function(rgb) {
|
|
948
948
|
let rdif;
|
|
949
949
|
let gdif;
|
|
950
950
|
let bdif;
|
|
@@ -978,11 +978,11 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
978
978
|
v * 100
|
|
979
979
|
];
|
|
980
980
|
};
|
|
981
|
-
convert
|
|
981
|
+
convert.rgb.hwb = function(rgb) {
|
|
982
982
|
const r = rgb[0];
|
|
983
983
|
const g = rgb[1];
|
|
984
984
|
let b = rgb[2];
|
|
985
|
-
const h = convert
|
|
985
|
+
const h = convert.rgb.hsl(rgb)[0];
|
|
986
986
|
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
987
987
|
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
988
988
|
return [
|
|
@@ -991,7 +991,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
991
991
|
b * 100
|
|
992
992
|
];
|
|
993
993
|
};
|
|
994
|
-
convert
|
|
994
|
+
convert.rgb.cmyk = function(rgb) {
|
|
995
995
|
const r = rgb[0] / 255;
|
|
996
996
|
const g = rgb[1] / 255;
|
|
997
997
|
const b = rgb[2] / 255;
|
|
@@ -1009,7 +1009,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1009
1009
|
function comparativeDistance(x, y) {
|
|
1010
1010
|
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
1011
1011
|
}
|
|
1012
|
-
convert
|
|
1012
|
+
convert.rgb.keyword = function(rgb) {
|
|
1013
1013
|
const reversed = reverseKeywords[rgb];
|
|
1014
1014
|
if (reversed) return reversed;
|
|
1015
1015
|
let currentClosestDistance = Infinity;
|
|
@@ -1024,10 +1024,10 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
return currentClosestKeyword;
|
|
1026
1026
|
};
|
|
1027
|
-
convert
|
|
1027
|
+
convert.keyword.rgb = function(keyword) {
|
|
1028
1028
|
return cssKeywords[keyword];
|
|
1029
1029
|
};
|
|
1030
|
-
convert
|
|
1030
|
+
convert.rgb.xyz = function(rgb) {
|
|
1031
1031
|
let r = rgb[0] / 255;
|
|
1032
1032
|
let g = rgb[1] / 255;
|
|
1033
1033
|
let b = rgb[2] / 255;
|
|
@@ -1043,8 +1043,8 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1043
1043
|
z * 100
|
|
1044
1044
|
];
|
|
1045
1045
|
};
|
|
1046
|
-
convert
|
|
1047
|
-
const xyz = convert
|
|
1046
|
+
convert.rgb.lab = function(rgb) {
|
|
1047
|
+
const xyz = convert.rgb.xyz(rgb);
|
|
1048
1048
|
let x = xyz[0];
|
|
1049
1049
|
let y = xyz[1];
|
|
1050
1050
|
let z = xyz[2];
|
|
@@ -1060,7 +1060,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1060
1060
|
200 * (y - z)
|
|
1061
1061
|
];
|
|
1062
1062
|
};
|
|
1063
|
-
convert
|
|
1063
|
+
convert.hsl.rgb = function(hsl) {
|
|
1064
1064
|
const h = hsl[0] / 360;
|
|
1065
1065
|
const s = hsl[1] / 100;
|
|
1066
1066
|
const l = hsl[2] / 100;
|
|
@@ -1095,7 +1095,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
return rgb;
|
|
1097
1097
|
};
|
|
1098
|
-
convert
|
|
1098
|
+
convert.hsl.hsv = function(hsl) {
|
|
1099
1099
|
const h = hsl[0];
|
|
1100
1100
|
let s = hsl[1] / 100;
|
|
1101
1101
|
let l = hsl[2] / 100;
|
|
@@ -1111,7 +1111,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1111
1111
|
v * 100
|
|
1112
1112
|
];
|
|
1113
1113
|
};
|
|
1114
|
-
convert
|
|
1114
|
+
convert.hsv.rgb = function(hsv) {
|
|
1115
1115
|
const h = hsv[0] / 60;
|
|
1116
1116
|
const s = hsv[1] / 100;
|
|
1117
1117
|
let v = hsv[2] / 100;
|
|
@@ -1154,7 +1154,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1154
1154
|
];
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
convert
|
|
1157
|
+
convert.hsv.hsl = function(hsv) {
|
|
1158
1158
|
const h = hsv[0];
|
|
1159
1159
|
const s = hsv[1] / 100;
|
|
1160
1160
|
const v = hsv[2] / 100;
|
|
@@ -1173,7 +1173,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1173
1173
|
l * 100
|
|
1174
1174
|
];
|
|
1175
1175
|
};
|
|
1176
|
-
convert
|
|
1176
|
+
convert.hwb.rgb = function(hwb) {
|
|
1177
1177
|
const h = hwb[0] / 360;
|
|
1178
1178
|
let wh = hwb[1] / 100;
|
|
1179
1179
|
let bl = hwb[2] / 100;
|
|
@@ -1231,7 +1231,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1231
1231
|
b * 255
|
|
1232
1232
|
];
|
|
1233
1233
|
};
|
|
1234
|
-
convert
|
|
1234
|
+
convert.cmyk.rgb = function(cmyk) {
|
|
1235
1235
|
const c = cmyk[0] / 100;
|
|
1236
1236
|
const m = cmyk[1] / 100;
|
|
1237
1237
|
const y = cmyk[2] / 100;
|
|
@@ -1245,7 +1245,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1245
1245
|
b * 255
|
|
1246
1246
|
];
|
|
1247
1247
|
};
|
|
1248
|
-
convert
|
|
1248
|
+
convert.xyz.rgb = function(xyz) {
|
|
1249
1249
|
const x = xyz[0] / 100;
|
|
1250
1250
|
const y = xyz[1] / 100;
|
|
1251
1251
|
const z = xyz[2] / 100;
|
|
@@ -1267,7 +1267,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1267
1267
|
b * 255
|
|
1268
1268
|
];
|
|
1269
1269
|
};
|
|
1270
|
-
convert
|
|
1270
|
+
convert.xyz.lab = function(xyz) {
|
|
1271
1271
|
let x = xyz[0];
|
|
1272
1272
|
let y = xyz[1];
|
|
1273
1273
|
let z = xyz[2];
|
|
@@ -1283,7 +1283,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1283
1283
|
200 * (y - z)
|
|
1284
1284
|
];
|
|
1285
1285
|
};
|
|
1286
|
-
convert
|
|
1286
|
+
convert.lab.xyz = function(lab) {
|
|
1287
1287
|
const l = lab[0];
|
|
1288
1288
|
const a = lab[1];
|
|
1289
1289
|
const b = lab[2];
|
|
@@ -1308,7 +1308,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1308
1308
|
z
|
|
1309
1309
|
];
|
|
1310
1310
|
};
|
|
1311
|
-
convert
|
|
1311
|
+
convert.lab.lch = function(lab) {
|
|
1312
1312
|
const l = lab[0];
|
|
1313
1313
|
const a = lab[1];
|
|
1314
1314
|
const b = lab[2];
|
|
@@ -1321,7 +1321,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1321
1321
|
h
|
|
1322
1322
|
];
|
|
1323
1323
|
};
|
|
1324
|
-
convert
|
|
1324
|
+
convert.lch.lab = function(lch) {
|
|
1325
1325
|
const l = lch[0];
|
|
1326
1326
|
const c = lch[1];
|
|
1327
1327
|
const hr = lch[2] / 360 * 2 * Math.PI;
|
|
@@ -1331,19 +1331,19 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1331
1331
|
c * Math.sin(hr)
|
|
1332
1332
|
];
|
|
1333
1333
|
};
|
|
1334
|
-
convert
|
|
1334
|
+
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
1335
1335
|
const [r, g, b] = args;
|
|
1336
|
-
let value = saturation === null ? convert
|
|
1336
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
1337
1337
|
value = Math.round(value / 50);
|
|
1338
1338
|
if (value === 0) return 30;
|
|
1339
1339
|
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
1340
1340
|
if (value === 2) ansi += 60;
|
|
1341
1341
|
return ansi;
|
|
1342
1342
|
};
|
|
1343
|
-
convert
|
|
1344
|
-
return convert
|
|
1343
|
+
convert.hsv.ansi16 = function(args) {
|
|
1344
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
1345
1345
|
};
|
|
1346
|
-
convert
|
|
1346
|
+
convert.rgb.ansi256 = function(args) {
|
|
1347
1347
|
const r = args[0];
|
|
1348
1348
|
const g = args[1];
|
|
1349
1349
|
const b = args[2];
|
|
@@ -1354,7 +1354,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
return 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
1356
1356
|
};
|
|
1357
|
-
convert
|
|
1357
|
+
convert.ansi16.rgb = function(args) {
|
|
1358
1358
|
let color = args % 10;
|
|
1359
1359
|
if (color === 0 || color === 7) {
|
|
1360
1360
|
if (args > 50) color += 3.5;
|
|
@@ -1372,7 +1372,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1372
1372
|
(color >> 2 & 1) * mult * 255
|
|
1373
1373
|
];
|
|
1374
1374
|
};
|
|
1375
|
-
convert
|
|
1375
|
+
convert.ansi256.rgb = function(args) {
|
|
1376
1376
|
if (args >= 232) {
|
|
1377
1377
|
const c = (args - 232) * 10 + 8;
|
|
1378
1378
|
return [
|
|
@@ -1389,11 +1389,11 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1389
1389
|
rem % 6 / 5 * 255
|
|
1390
1390
|
];
|
|
1391
1391
|
};
|
|
1392
|
-
convert
|
|
1392
|
+
convert.rgb.hex = function(args) {
|
|
1393
1393
|
const string = (((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255)).toString(16).toUpperCase();
|
|
1394
1394
|
return "000000".substring(string.length) + string;
|
|
1395
1395
|
};
|
|
1396
|
-
convert
|
|
1396
|
+
convert.hex.rgb = function(args) {
|
|
1397
1397
|
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
1398
1398
|
if (!match) return [
|
|
1399
1399
|
0,
|
|
@@ -1411,7 +1411,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1411
1411
|
integer & 255
|
|
1412
1412
|
];
|
|
1413
1413
|
};
|
|
1414
|
-
convert
|
|
1414
|
+
convert.rgb.hcg = function(rgb) {
|
|
1415
1415
|
const r = rgb[0] / 255;
|
|
1416
1416
|
const g = rgb[1] / 255;
|
|
1417
1417
|
const b = rgb[2] / 255;
|
|
@@ -1434,7 +1434,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1434
1434
|
grayscale * 100
|
|
1435
1435
|
];
|
|
1436
1436
|
};
|
|
1437
|
-
convert
|
|
1437
|
+
convert.hsl.hcg = function(hsl) {
|
|
1438
1438
|
const s = hsl[1] / 100;
|
|
1439
1439
|
const l = hsl[2] / 100;
|
|
1440
1440
|
const c = l < .5 ? 2 * s * l : 2 * s * (1 - l);
|
|
@@ -1446,7 +1446,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1446
1446
|
f * 100
|
|
1447
1447
|
];
|
|
1448
1448
|
};
|
|
1449
|
-
convert
|
|
1449
|
+
convert.hsv.hcg = function(hsv) {
|
|
1450
1450
|
const s = hsv[1] / 100;
|
|
1451
1451
|
const v = hsv[2] / 100;
|
|
1452
1452
|
const c = s * v;
|
|
@@ -1458,7 +1458,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1458
1458
|
f * 100
|
|
1459
1459
|
];
|
|
1460
1460
|
};
|
|
1461
|
-
convert
|
|
1461
|
+
convert.hcg.rgb = function(hcg) {
|
|
1462
1462
|
const h = hcg[0] / 360;
|
|
1463
1463
|
const c = hcg[1] / 100;
|
|
1464
1464
|
const g = hcg[2] / 100;
|
|
@@ -1514,7 +1514,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1514
1514
|
(c * pure[2] + mg) * 255
|
|
1515
1515
|
];
|
|
1516
1516
|
};
|
|
1517
|
-
convert
|
|
1517
|
+
convert.hcg.hsv = function(hcg) {
|
|
1518
1518
|
const c = hcg[1] / 100;
|
|
1519
1519
|
const v = c + hcg[2] / 100 * (1 - c);
|
|
1520
1520
|
let f = 0;
|
|
@@ -1525,7 +1525,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1525
1525
|
v * 100
|
|
1526
1526
|
];
|
|
1527
1527
|
};
|
|
1528
|
-
convert
|
|
1528
|
+
convert.hcg.hsl = function(hcg) {
|
|
1529
1529
|
const c = hcg[1] / 100;
|
|
1530
1530
|
const l = hcg[2] / 100 * (1 - c) + .5 * c;
|
|
1531
1531
|
let s = 0;
|
|
@@ -1537,7 +1537,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1537
1537
|
l * 100
|
|
1538
1538
|
];
|
|
1539
1539
|
};
|
|
1540
|
-
convert
|
|
1540
|
+
convert.hcg.hwb = function(hcg) {
|
|
1541
1541
|
const c = hcg[1] / 100;
|
|
1542
1542
|
const v = c + hcg[2] / 100 * (1 - c);
|
|
1543
1543
|
return [
|
|
@@ -1546,7 +1546,7 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1546
1546
|
(1 - v) * 100
|
|
1547
1547
|
];
|
|
1548
1548
|
};
|
|
1549
|
-
convert
|
|
1549
|
+
convert.hwb.hcg = function(hwb) {
|
|
1550
1550
|
const w = hwb[1] / 100;
|
|
1551
1551
|
const v = 1 - hwb[2] / 100;
|
|
1552
1552
|
const c = v - w;
|
|
@@ -1558,43 +1558,43 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1558
1558
|
g * 100
|
|
1559
1559
|
];
|
|
1560
1560
|
};
|
|
1561
|
-
convert
|
|
1561
|
+
convert.apple.rgb = function(apple) {
|
|
1562
1562
|
return [
|
|
1563
1563
|
apple[0] / 65535 * 255,
|
|
1564
1564
|
apple[1] / 65535 * 255,
|
|
1565
1565
|
apple[2] / 65535 * 255
|
|
1566
1566
|
];
|
|
1567
1567
|
};
|
|
1568
|
-
convert
|
|
1568
|
+
convert.rgb.apple = function(rgb) {
|
|
1569
1569
|
return [
|
|
1570
1570
|
rgb[0] / 255 * 65535,
|
|
1571
1571
|
rgb[1] / 255 * 65535,
|
|
1572
1572
|
rgb[2] / 255 * 65535
|
|
1573
1573
|
];
|
|
1574
1574
|
};
|
|
1575
|
-
convert
|
|
1575
|
+
convert.gray.rgb = function(args) {
|
|
1576
1576
|
return [
|
|
1577
1577
|
args[0] / 100 * 255,
|
|
1578
1578
|
args[0] / 100 * 255,
|
|
1579
1579
|
args[0] / 100 * 255
|
|
1580
1580
|
];
|
|
1581
1581
|
};
|
|
1582
|
-
convert
|
|
1582
|
+
convert.gray.hsl = function(args) {
|
|
1583
1583
|
return [
|
|
1584
1584
|
0,
|
|
1585
1585
|
0,
|
|
1586
1586
|
args[0]
|
|
1587
1587
|
];
|
|
1588
1588
|
};
|
|
1589
|
-
convert
|
|
1590
|
-
convert
|
|
1589
|
+
convert.gray.hsv = convert.gray.hsl;
|
|
1590
|
+
convert.gray.hwb = function(gray) {
|
|
1591
1591
|
return [
|
|
1592
1592
|
0,
|
|
1593
1593
|
100,
|
|
1594
1594
|
gray[0]
|
|
1595
1595
|
];
|
|
1596
1596
|
};
|
|
1597
|
-
convert
|
|
1597
|
+
convert.gray.cmyk = function(gray) {
|
|
1598
1598
|
return [
|
|
1599
1599
|
0,
|
|
1600
1600
|
0,
|
|
@@ -1602,19 +1602,19 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1602
1602
|
gray[0]
|
|
1603
1603
|
];
|
|
1604
1604
|
};
|
|
1605
|
-
convert
|
|
1605
|
+
convert.gray.lab = function(gray) {
|
|
1606
1606
|
return [
|
|
1607
1607
|
gray[0],
|
|
1608
1608
|
0,
|
|
1609
1609
|
0
|
|
1610
1610
|
];
|
|
1611
1611
|
};
|
|
1612
|
-
convert
|
|
1612
|
+
convert.gray.hex = function(gray) {
|
|
1613
1613
|
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
1614
1614
|
const string = ((val << 16) + (val << 8) + val).toString(16).toUpperCase();
|
|
1615
1615
|
return "000000".substring(string.length) + string;
|
|
1616
1616
|
};
|
|
1617
|
-
convert
|
|
1617
|
+
convert.rgb.gray = function(rgb) {
|
|
1618
1618
|
return [(rgb[0] + rgb[1] + rgb[2]) / 3 / 255 * 100];
|
|
1619
1619
|
};
|
|
1620
1620
|
}));
|
|
@@ -1622,11 +1622,11 @@ var require_conversions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1622
1622
|
//#endregion
|
|
1623
1623
|
//#region ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
|
|
1624
1624
|
var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1625
|
-
const conversions
|
|
1625
|
+
const conversions = require_conversions();
|
|
1626
1626
|
function buildGraph() {
|
|
1627
1627
|
const graph = {};
|
|
1628
|
-
const models
|
|
1629
|
-
for (let len = models
|
|
1628
|
+
const models = Object.keys(conversions);
|
|
1629
|
+
for (let len = models.length, i = 0; i < len; i++) graph[models[i]] = {
|
|
1630
1630
|
distance: -1,
|
|
1631
1631
|
parent: null
|
|
1632
1632
|
};
|
|
@@ -1638,7 +1638,7 @@ var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1638
1638
|
graph[fromModel].distance = 0;
|
|
1639
1639
|
while (queue.length) {
|
|
1640
1640
|
const current = queue.pop();
|
|
1641
|
-
const adjacents = Object.keys(conversions
|
|
1641
|
+
const adjacents = Object.keys(conversions[current]);
|
|
1642
1642
|
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
1643
1643
|
const adjacent = adjacents[i];
|
|
1644
1644
|
const node = graph[adjacent];
|
|
@@ -1658,11 +1658,11 @@ var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
function wrapConversion(toModel, graph) {
|
|
1660
1660
|
const path = [graph[toModel].parent, toModel];
|
|
1661
|
-
let fn = conversions
|
|
1661
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
1662
1662
|
let cur = graph[toModel].parent;
|
|
1663
1663
|
while (graph[cur].parent) {
|
|
1664
1664
|
path.unshift(graph[cur].parent);
|
|
1665
|
-
fn = link(conversions
|
|
1665
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
1666
1666
|
cur = graph[cur].parent;
|
|
1667
1667
|
}
|
|
1668
1668
|
fn.conversion = path;
|
|
@@ -1671,9 +1671,9 @@ var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1671
1671
|
module.exports = function(fromModel) {
|
|
1672
1672
|
const graph = deriveBFS(fromModel);
|
|
1673
1673
|
const conversion = {};
|
|
1674
|
-
const models
|
|
1675
|
-
for (let len = models
|
|
1676
|
-
const toModel = models
|
|
1674
|
+
const models = Object.keys(graph);
|
|
1675
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
1676
|
+
const toModel = models[i];
|
|
1677
1677
|
if (graph[toModel].parent === null) continue;
|
|
1678
1678
|
conversion[toModel] = wrapConversion(toModel, graph);
|
|
1679
1679
|
}
|
|
@@ -1764,17 +1764,17 @@ var require_ansi_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1764
1764
|
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
1765
1765
|
if (colorConvert === void 0) colorConvert = require_color_convert();
|
|
1766
1766
|
const offset = isBackground ? 10 : 0;
|
|
1767
|
-
const styles
|
|
1767
|
+
const styles = {};
|
|
1768
1768
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
1769
1769
|
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
1770
|
-
if (sourceSpace === targetSpace) styles
|
|
1771
|
-
else if (typeof suite === "object") styles
|
|
1770
|
+
if (sourceSpace === targetSpace) styles[name] = wrap(identity, offset);
|
|
1771
|
+
else if (typeof suite === "object") styles[name] = wrap(suite[targetSpace], offset);
|
|
1772
1772
|
}
|
|
1773
|
-
return styles
|
|
1773
|
+
return styles;
|
|
1774
1774
|
};
|
|
1775
1775
|
function assembleStyles() {
|
|
1776
1776
|
const codes = /* @__PURE__ */ new Map();
|
|
1777
|
-
const styles
|
|
1777
|
+
const styles = {
|
|
1778
1778
|
modifier: {
|
|
1779
1779
|
reset: [0, 0],
|
|
1780
1780
|
bold: [1, 22],
|
|
@@ -1822,37 +1822,37 @@ var require_ansi_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1822
1822
|
bgWhiteBright: [107, 49]
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
|
-
styles
|
|
1826
|
-
styles
|
|
1827
|
-
styles
|
|
1828
|
-
styles
|
|
1829
|
-
for (const [groupName, group] of Object.entries(styles
|
|
1825
|
+
styles.color.gray = styles.color.blackBright;
|
|
1826
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
1827
|
+
styles.color.grey = styles.color.blackBright;
|
|
1828
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
1829
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
1830
1830
|
for (const [styleName, style] of Object.entries(group)) {
|
|
1831
|
-
styles
|
|
1831
|
+
styles[styleName] = {
|
|
1832
1832
|
open: `\u001B[${style[0]}m`,
|
|
1833
1833
|
close: `\u001B[${style[1]}m`
|
|
1834
1834
|
};
|
|
1835
|
-
group[styleName] = styles
|
|
1835
|
+
group[styleName] = styles[styleName];
|
|
1836
1836
|
codes.set(style[0], style[1]);
|
|
1837
1837
|
}
|
|
1838
|
-
Object.defineProperty(styles
|
|
1838
|
+
Object.defineProperty(styles, groupName, {
|
|
1839
1839
|
value: group,
|
|
1840
1840
|
enumerable: false
|
|
1841
1841
|
});
|
|
1842
1842
|
}
|
|
1843
|
-
Object.defineProperty(styles
|
|
1843
|
+
Object.defineProperty(styles, "codes", {
|
|
1844
1844
|
value: codes,
|
|
1845
1845
|
enumerable: false
|
|
1846
1846
|
});
|
|
1847
|
-
styles
|
|
1848
|
-
styles
|
|
1849
|
-
setLazyProperty(styles
|
|
1850
|
-
setLazyProperty(styles
|
|
1851
|
-
setLazyProperty(styles
|
|
1852
|
-
setLazyProperty(styles
|
|
1853
|
-
setLazyProperty(styles
|
|
1854
|
-
setLazyProperty(styles
|
|
1855
|
-
return styles
|
|
1847
|
+
styles.color.close = "\x1B[39m";
|
|
1848
|
+
styles.bgColor.close = "\x1B[49m";
|
|
1849
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
1850
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
1851
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
1852
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
1853
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
1854
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
1855
|
+
return styles;
|
|
1856
1856
|
}
|
|
1857
1857
|
Object.defineProperty(module, "exports", {
|
|
1858
1858
|
enumerable: true,
|
|
@@ -1943,7 +1943,7 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1943
1943
|
//#endregion
|
|
1944
1944
|
//#region ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
1945
1945
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1946
|
-
const stringReplaceAll
|
|
1946
|
+
const stringReplaceAll = (string, substring, replacer) => {
|
|
1947
1947
|
let index = string.indexOf(substring);
|
|
1948
1948
|
if (index === -1) return string;
|
|
1949
1949
|
const substringLength = substring.length;
|
|
@@ -1957,7 +1957,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1957
1957
|
returnValue += string.substr(endIndex);
|
|
1958
1958
|
return returnValue;
|
|
1959
1959
|
};
|
|
1960
|
-
const stringEncaseCRLFWithFirstIndex
|
|
1960
|
+
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
1961
1961
|
let endIndex = 0;
|
|
1962
1962
|
let returnValue = "";
|
|
1963
1963
|
do {
|
|
@@ -1970,8 +1970,8 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1970
1970
|
return returnValue;
|
|
1971
1971
|
};
|
|
1972
1972
|
module.exports = {
|
|
1973
|
-
stringReplaceAll
|
|
1974
|
-
stringEncaseCRLFWithFirstIndex
|
|
1973
|
+
stringReplaceAll,
|
|
1974
|
+
stringEncaseCRLFWithFirstIndex
|
|
1975
1975
|
};
|
|
1976
1976
|
}));
|
|
1977
1977
|
|
|
@@ -2026,19 +2026,19 @@ var require_templates = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
return results;
|
|
2028
2028
|
}
|
|
2029
|
-
function buildStyle(chalk
|
|
2029
|
+
function buildStyle(chalk, styles) {
|
|
2030
2030
|
const enabled = {};
|
|
2031
|
-
for (const layer of styles
|
|
2032
|
-
let current = chalk
|
|
2033
|
-
for (const [styleName, styles
|
|
2034
|
-
if (!Array.isArray(styles
|
|
2031
|
+
for (const layer of styles) for (const style of layer.styles) enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
2032
|
+
let current = chalk;
|
|
2033
|
+
for (const [styleName, styles] of Object.entries(enabled)) {
|
|
2034
|
+
if (!Array.isArray(styles)) continue;
|
|
2035
2035
|
if (!(styleName in current)) throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
2036
|
-
current = styles
|
|
2036
|
+
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
|
2037
2037
|
}
|
|
2038
2038
|
return current;
|
|
2039
2039
|
}
|
|
2040
|
-
module.exports = (chalk
|
|
2041
|
-
const styles
|
|
2040
|
+
module.exports = (chalk, temporary) => {
|
|
2041
|
+
const styles = [];
|
|
2042
2042
|
const chunks = [];
|
|
2043
2043
|
let chunk = [];
|
|
2044
2044
|
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
@@ -2046,21 +2046,21 @@ var require_templates = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2046
2046
|
else if (style) {
|
|
2047
2047
|
const string = chunk.join("");
|
|
2048
2048
|
chunk = [];
|
|
2049
|
-
chunks.push(styles
|
|
2050
|
-
styles
|
|
2049
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
2050
|
+
styles.push({
|
|
2051
2051
|
inverse,
|
|
2052
2052
|
styles: parseStyle(style)
|
|
2053
2053
|
});
|
|
2054
2054
|
} else if (close) {
|
|
2055
|
-
if (styles
|
|
2056
|
-
chunks.push(buildStyle(chalk
|
|
2055
|
+
if (styles.length === 0) throw new Error("Found extraneous } in Chalk template literal");
|
|
2056
|
+
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
2057
2057
|
chunk = [];
|
|
2058
|
-
styles
|
|
2058
|
+
styles.pop();
|
|
2059
2059
|
} else chunk.push(character);
|
|
2060
2060
|
});
|
|
2061
2061
|
chunks.push(chunk.join(""));
|
|
2062
|
-
if (styles
|
|
2063
|
-
const errMessage = `Chalk template literal is missing ${styles
|
|
2062
|
+
if (styles.length > 0) {
|
|
2063
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
2064
2064
|
throw new Error(errMessage);
|
|
2065
2065
|
}
|
|
2066
2066
|
return chunks.join("");
|
|
@@ -2092,16 +2092,16 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
2094
2094
|
const chalkFactory = (options) => {
|
|
2095
|
-
const chalk
|
|
2096
|
-
applyOptions(chalk
|
|
2097
|
-
chalk
|
|
2098
|
-
Object.setPrototypeOf(chalk
|
|
2099
|
-
Object.setPrototypeOf(chalk
|
|
2100
|
-
chalk
|
|
2095
|
+
const chalk = {};
|
|
2096
|
+
applyOptions(chalk, options);
|
|
2097
|
+
chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
|
2098
|
+
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
2099
|
+
Object.setPrototypeOf(chalk.template, chalk);
|
|
2100
|
+
chalk.template.constructor = () => {
|
|
2101
2101
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
2102
2102
|
};
|
|
2103
|
-
chalk
|
|
2104
|
-
return chalk
|
|
2103
|
+
chalk.template.Instance = ChalkClass;
|
|
2104
|
+
return chalk.template;
|
|
2105
2105
|
};
|
|
2106
2106
|
function Chalk(options) {
|
|
2107
2107
|
return chalkFactory(options);
|
|
@@ -2198,25 +2198,25 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2198
2198
|
return openAll + string + closeAll;
|
|
2199
2199
|
};
|
|
2200
2200
|
let template;
|
|
2201
|
-
const chalkTag = (chalk
|
|
2201
|
+
const chalkTag = (chalk, ...strings) => {
|
|
2202
2202
|
const [firstString] = strings;
|
|
2203
2203
|
if (!isArray(firstString) || !isArray(firstString.raw)) return strings.join(" ");
|
|
2204
2204
|
const arguments_ = strings.slice(1);
|
|
2205
2205
|
const parts = [firstString.raw[0]];
|
|
2206
2206
|
for (let i = 1; i < firstString.length; i++) parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
2207
2207
|
if (template === void 0) template = require_templates();
|
|
2208
|
-
return template(chalk
|
|
2208
|
+
return template(chalk, parts.join(""));
|
|
2209
2209
|
};
|
|
2210
2210
|
Object.defineProperties(Chalk.prototype, styles);
|
|
2211
|
-
const chalk
|
|
2212
|
-
chalk
|
|
2213
|
-
chalk
|
|
2214
|
-
chalk
|
|
2215
|
-
module.exports = chalk
|
|
2211
|
+
const chalk = Chalk();
|
|
2212
|
+
chalk.supportsColor = stdoutColor;
|
|
2213
|
+
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
2214
|
+
chalk.stderr.supportsColor = stderrColor;
|
|
2215
|
+
module.exports = chalk;
|
|
2216
2216
|
}));
|
|
2217
2217
|
|
|
2218
2218
|
//#endregion
|
|
2219
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2219
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2220
2220
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2221
2221
|
var chalkDefault = {
|
|
2222
2222
|
hex: (_) => (message) => message,
|
|
@@ -2248,14 +2248,14 @@ var getChalk = () => {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
|
|
2250
2250
|
//#endregion
|
|
2251
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2251
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2252
2252
|
function isUnicodeSupported() {
|
|
2253
2253
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2254
2254
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
2257
|
//#endregion
|
|
2258
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2258
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-RALMUN5C.js
|
|
2259
2259
|
var LogLevel = {
|
|
2260
2260
|
SILENT: 0,
|
|
2261
2261
|
FATAL: 10,
|
|
@@ -2282,7 +2282,7 @@ var LogLevelLabel = {
|
|
|
2282
2282
|
};
|
|
2283
2283
|
|
|
2284
2284
|
//#endregion
|
|
2285
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2285
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-ZFNAUMQS.js
|
|
2286
2286
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2287
2287
|
var CONSOLE_ICONS = {
|
|
2288
2288
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2297,13 +2297,13 @@ var CONSOLE_ICONS = {
|
|
|
2297
2297
|
};
|
|
2298
2298
|
|
|
2299
2299
|
//#endregion
|
|
2300
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2300
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-JZAYHDV3.js
|
|
2301
2301
|
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
2302
2302
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
2303
2303
|
};
|
|
2304
2304
|
|
|
2305
2305
|
//#endregion
|
|
2306
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2306
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-SXPH7ILL.js
|
|
2307
2307
|
var getLogLevel = (label) => {
|
|
2308
2308
|
switch (label) {
|
|
2309
2309
|
case "all": return LogLevel.ALL;
|
|
@@ -2320,13 +2320,12 @@ var getLogLevel = (label) => {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
|
|
2322
2322
|
//#endregion
|
|
2323
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.
|
|
2323
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.190.1_zod@4.4.3/node_modules/@storm-software/config-tools/dist/chunk-TOMKPXJE.js
|
|
2324
2324
|
var daysInYear = 365.2425;
|
|
2325
2325
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2326
2326
|
var secondsInDay = 3600 * 24;
|
|
2327
2327
|
secondsInDay * 7;
|
|
2328
2328
|
secondsInDay * daysInYear / 12 * 3;
|
|
2329
|
-
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
2330
2329
|
var formatDistanceLocale = {
|
|
2331
2330
|
lessThanXSeconds: {
|
|
2332
2331
|
one: "less than a second",
|
|
@@ -3015,4 +3014,4 @@ async function resolveOptions(options) {
|
|
|
3015
3014
|
|
|
3016
3015
|
//#endregion
|
|
3017
3016
|
export { writeWarning as n, resolveOptions as t };
|
|
3018
|
-
//# sourceMappingURL=helpers-
|
|
3017
|
+
//# sourceMappingURL=helpers-2TldkyGG.mjs.map
|