@modern-js/repo-generator 0.0.0-canary-20221102031626 → 0.0.0-canary-20221109034548
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/dist/index.js +136 -1470
- package/package.json +13 -38
package/dist/index.js
CHANGED
|
@@ -59158,1405 +59158,6 @@ var require_node5 = __commonJSMin((exports) => {
|
|
|
59158
59158
|
};
|
|
59159
59159
|
exports.EjsAPI = EjsAPI;
|
|
59160
59160
|
});
|
|
59161
|
-
var require_color_name = __commonJSMin((exports, module2) => {
|
|
59162
|
-
"use strict";
|
|
59163
|
-
module2.exports = {
|
|
59164
|
-
"aliceblue": [240, 248, 255],
|
|
59165
|
-
"antiquewhite": [250, 235, 215],
|
|
59166
|
-
"aqua": [0, 255, 255],
|
|
59167
|
-
"aquamarine": [127, 255, 212],
|
|
59168
|
-
"azure": [240, 255, 255],
|
|
59169
|
-
"beige": [245, 245, 220],
|
|
59170
|
-
"bisque": [255, 228, 196],
|
|
59171
|
-
"black": [0, 0, 0],
|
|
59172
|
-
"blanchedalmond": [255, 235, 205],
|
|
59173
|
-
"blue": [0, 0, 255],
|
|
59174
|
-
"blueviolet": [138, 43, 226],
|
|
59175
|
-
"brown": [165, 42, 42],
|
|
59176
|
-
"burlywood": [222, 184, 135],
|
|
59177
|
-
"cadetblue": [95, 158, 160],
|
|
59178
|
-
"chartreuse": [127, 255, 0],
|
|
59179
|
-
"chocolate": [210, 105, 30],
|
|
59180
|
-
"coral": [255, 127, 80],
|
|
59181
|
-
"cornflowerblue": [100, 149, 237],
|
|
59182
|
-
"cornsilk": [255, 248, 220],
|
|
59183
|
-
"crimson": [220, 20, 60],
|
|
59184
|
-
"cyan": [0, 255, 255],
|
|
59185
|
-
"darkblue": [0, 0, 139],
|
|
59186
|
-
"darkcyan": [0, 139, 139],
|
|
59187
|
-
"darkgoldenrod": [184, 134, 11],
|
|
59188
|
-
"darkgray": [169, 169, 169],
|
|
59189
|
-
"darkgreen": [0, 100, 0],
|
|
59190
|
-
"darkgrey": [169, 169, 169],
|
|
59191
|
-
"darkkhaki": [189, 183, 107],
|
|
59192
|
-
"darkmagenta": [139, 0, 139],
|
|
59193
|
-
"darkolivegreen": [85, 107, 47],
|
|
59194
|
-
"darkorange": [255, 140, 0],
|
|
59195
|
-
"darkorchid": [153, 50, 204],
|
|
59196
|
-
"darkred": [139, 0, 0],
|
|
59197
|
-
"darksalmon": [233, 150, 122],
|
|
59198
|
-
"darkseagreen": [143, 188, 143],
|
|
59199
|
-
"darkslateblue": [72, 61, 139],
|
|
59200
|
-
"darkslategray": [47, 79, 79],
|
|
59201
|
-
"darkslategrey": [47, 79, 79],
|
|
59202
|
-
"darkturquoise": [0, 206, 209],
|
|
59203
|
-
"darkviolet": [148, 0, 211],
|
|
59204
|
-
"deeppink": [255, 20, 147],
|
|
59205
|
-
"deepskyblue": [0, 191, 255],
|
|
59206
|
-
"dimgray": [105, 105, 105],
|
|
59207
|
-
"dimgrey": [105, 105, 105],
|
|
59208
|
-
"dodgerblue": [30, 144, 255],
|
|
59209
|
-
"firebrick": [178, 34, 34],
|
|
59210
|
-
"floralwhite": [255, 250, 240],
|
|
59211
|
-
"forestgreen": [34, 139, 34],
|
|
59212
|
-
"fuchsia": [255, 0, 255],
|
|
59213
|
-
"gainsboro": [220, 220, 220],
|
|
59214
|
-
"ghostwhite": [248, 248, 255],
|
|
59215
|
-
"gold": [255, 215, 0],
|
|
59216
|
-
"goldenrod": [218, 165, 32],
|
|
59217
|
-
"gray": [128, 128, 128],
|
|
59218
|
-
"green": [0, 128, 0],
|
|
59219
|
-
"greenyellow": [173, 255, 47],
|
|
59220
|
-
"grey": [128, 128, 128],
|
|
59221
|
-
"honeydew": [240, 255, 240],
|
|
59222
|
-
"hotpink": [255, 105, 180],
|
|
59223
|
-
"indianred": [205, 92, 92],
|
|
59224
|
-
"indigo": [75, 0, 130],
|
|
59225
|
-
"ivory": [255, 255, 240],
|
|
59226
|
-
"khaki": [240, 230, 140],
|
|
59227
|
-
"lavender": [230, 230, 250],
|
|
59228
|
-
"lavenderblush": [255, 240, 245],
|
|
59229
|
-
"lawngreen": [124, 252, 0],
|
|
59230
|
-
"lemonchiffon": [255, 250, 205],
|
|
59231
|
-
"lightblue": [173, 216, 230],
|
|
59232
|
-
"lightcoral": [240, 128, 128],
|
|
59233
|
-
"lightcyan": [224, 255, 255],
|
|
59234
|
-
"lightgoldenrodyellow": [250, 250, 210],
|
|
59235
|
-
"lightgray": [211, 211, 211],
|
|
59236
|
-
"lightgreen": [144, 238, 144],
|
|
59237
|
-
"lightgrey": [211, 211, 211],
|
|
59238
|
-
"lightpink": [255, 182, 193],
|
|
59239
|
-
"lightsalmon": [255, 160, 122],
|
|
59240
|
-
"lightseagreen": [32, 178, 170],
|
|
59241
|
-
"lightskyblue": [135, 206, 250],
|
|
59242
|
-
"lightslategray": [119, 136, 153],
|
|
59243
|
-
"lightslategrey": [119, 136, 153],
|
|
59244
|
-
"lightsteelblue": [176, 196, 222],
|
|
59245
|
-
"lightyellow": [255, 255, 224],
|
|
59246
|
-
"lime": [0, 255, 0],
|
|
59247
|
-
"limegreen": [50, 205, 50],
|
|
59248
|
-
"linen": [250, 240, 230],
|
|
59249
|
-
"magenta": [255, 0, 255],
|
|
59250
|
-
"maroon": [128, 0, 0],
|
|
59251
|
-
"mediumaquamarine": [102, 205, 170],
|
|
59252
|
-
"mediumblue": [0, 0, 205],
|
|
59253
|
-
"mediumorchid": [186, 85, 211],
|
|
59254
|
-
"mediumpurple": [147, 112, 219],
|
|
59255
|
-
"mediumseagreen": [60, 179, 113],
|
|
59256
|
-
"mediumslateblue": [123, 104, 238],
|
|
59257
|
-
"mediumspringgreen": [0, 250, 154],
|
|
59258
|
-
"mediumturquoise": [72, 209, 204],
|
|
59259
|
-
"mediumvioletred": [199, 21, 133],
|
|
59260
|
-
"midnightblue": [25, 25, 112],
|
|
59261
|
-
"mintcream": [245, 255, 250],
|
|
59262
|
-
"mistyrose": [255, 228, 225],
|
|
59263
|
-
"moccasin": [255, 228, 181],
|
|
59264
|
-
"navajowhite": [255, 222, 173],
|
|
59265
|
-
"navy": [0, 0, 128],
|
|
59266
|
-
"oldlace": [253, 245, 230],
|
|
59267
|
-
"olive": [128, 128, 0],
|
|
59268
|
-
"olivedrab": [107, 142, 35],
|
|
59269
|
-
"orange": [255, 165, 0],
|
|
59270
|
-
"orangered": [255, 69, 0],
|
|
59271
|
-
"orchid": [218, 112, 214],
|
|
59272
|
-
"palegoldenrod": [238, 232, 170],
|
|
59273
|
-
"palegreen": [152, 251, 152],
|
|
59274
|
-
"paleturquoise": [175, 238, 238],
|
|
59275
|
-
"palevioletred": [219, 112, 147],
|
|
59276
|
-
"papayawhip": [255, 239, 213],
|
|
59277
|
-
"peachpuff": [255, 218, 185],
|
|
59278
|
-
"peru": [205, 133, 63],
|
|
59279
|
-
"pink": [255, 192, 203],
|
|
59280
|
-
"plum": [221, 160, 221],
|
|
59281
|
-
"powderblue": [176, 224, 230],
|
|
59282
|
-
"purple": [128, 0, 128],
|
|
59283
|
-
"rebeccapurple": [102, 51, 153],
|
|
59284
|
-
"red": [255, 0, 0],
|
|
59285
|
-
"rosybrown": [188, 143, 143],
|
|
59286
|
-
"royalblue": [65, 105, 225],
|
|
59287
|
-
"saddlebrown": [139, 69, 19],
|
|
59288
|
-
"salmon": [250, 128, 114],
|
|
59289
|
-
"sandybrown": [244, 164, 96],
|
|
59290
|
-
"seagreen": [46, 139, 87],
|
|
59291
|
-
"seashell": [255, 245, 238],
|
|
59292
|
-
"sienna": [160, 82, 45],
|
|
59293
|
-
"silver": [192, 192, 192],
|
|
59294
|
-
"skyblue": [135, 206, 235],
|
|
59295
|
-
"slateblue": [106, 90, 205],
|
|
59296
|
-
"slategray": [112, 128, 144],
|
|
59297
|
-
"slategrey": [112, 128, 144],
|
|
59298
|
-
"snow": [255, 250, 250],
|
|
59299
|
-
"springgreen": [0, 255, 127],
|
|
59300
|
-
"steelblue": [70, 130, 180],
|
|
59301
|
-
"tan": [210, 180, 140],
|
|
59302
|
-
"teal": [0, 128, 128],
|
|
59303
|
-
"thistle": [216, 191, 216],
|
|
59304
|
-
"tomato": [255, 99, 71],
|
|
59305
|
-
"turquoise": [64, 224, 208],
|
|
59306
|
-
"violet": [238, 130, 238],
|
|
59307
|
-
"wheat": [245, 222, 179],
|
|
59308
|
-
"white": [255, 255, 255],
|
|
59309
|
-
"whitesmoke": [245, 245, 245],
|
|
59310
|
-
"yellow": [255, 255, 0],
|
|
59311
|
-
"yellowgreen": [154, 205, 50]
|
|
59312
|
-
};
|
|
59313
|
-
});
|
|
59314
|
-
var require_conversions = __commonJSMin((exports, module2) => {
|
|
59315
|
-
var cssKeywords = require_color_name();
|
|
59316
|
-
var reverseKeywords = {};
|
|
59317
|
-
for (const key of Object.keys(cssKeywords)) {
|
|
59318
|
-
reverseKeywords[cssKeywords[key]] = key;
|
|
59319
|
-
}
|
|
59320
|
-
var convert = {
|
|
59321
|
-
rgb: { channels: 3, labels: "rgb" },
|
|
59322
|
-
hsl: { channels: 3, labels: "hsl" },
|
|
59323
|
-
hsv: { channels: 3, labels: "hsv" },
|
|
59324
|
-
hwb: { channels: 3, labels: "hwb" },
|
|
59325
|
-
cmyk: { channels: 4, labels: "cmyk" },
|
|
59326
|
-
xyz: { channels: 3, labels: "xyz" },
|
|
59327
|
-
lab: { channels: 3, labels: "lab" },
|
|
59328
|
-
lch: { channels: 3, labels: "lch" },
|
|
59329
|
-
hex: { channels: 1, labels: ["hex"] },
|
|
59330
|
-
keyword: { channels: 1, labels: ["keyword"] },
|
|
59331
|
-
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
59332
|
-
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
59333
|
-
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
59334
|
-
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
59335
|
-
gray: { channels: 1, labels: ["gray"] }
|
|
59336
|
-
};
|
|
59337
|
-
module2.exports = convert;
|
|
59338
|
-
for (const model of Object.keys(convert)) {
|
|
59339
|
-
if (!("channels" in convert[model])) {
|
|
59340
|
-
throw new Error("missing channels property: " + model);
|
|
59341
|
-
}
|
|
59342
|
-
if (!("labels" in convert[model])) {
|
|
59343
|
-
throw new Error("missing channel labels property: " + model);
|
|
59344
|
-
}
|
|
59345
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
|
59346
|
-
throw new Error("channel and label counts mismatch: " + model);
|
|
59347
|
-
}
|
|
59348
|
-
const { channels, labels } = convert[model];
|
|
59349
|
-
delete convert[model].channels;
|
|
59350
|
-
delete convert[model].labels;
|
|
59351
|
-
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
59352
|
-
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
59353
|
-
}
|
|
59354
|
-
convert.rgb.hsl = function(rgb) {
|
|
59355
|
-
const r = rgb[0] / 255;
|
|
59356
|
-
const g = rgb[1] / 255;
|
|
59357
|
-
const b = rgb[2] / 255;
|
|
59358
|
-
const min = Math.min(r, g, b);
|
|
59359
|
-
const max = Math.max(r, g, b);
|
|
59360
|
-
const delta = max - min;
|
|
59361
|
-
let h;
|
|
59362
|
-
let s;
|
|
59363
|
-
if (max === min) {
|
|
59364
|
-
h = 0;
|
|
59365
|
-
} else if (r === max) {
|
|
59366
|
-
h = (g - b) / delta;
|
|
59367
|
-
} else if (g === max) {
|
|
59368
|
-
h = 2 + (b - r) / delta;
|
|
59369
|
-
} else if (b === max) {
|
|
59370
|
-
h = 4 + (r - g) / delta;
|
|
59371
|
-
}
|
|
59372
|
-
h = Math.min(h * 60, 360);
|
|
59373
|
-
if (h < 0) {
|
|
59374
|
-
h += 360;
|
|
59375
|
-
}
|
|
59376
|
-
const l = (min + max) / 2;
|
|
59377
|
-
if (max === min) {
|
|
59378
|
-
s = 0;
|
|
59379
|
-
} else if (l <= 0.5) {
|
|
59380
|
-
s = delta / (max + min);
|
|
59381
|
-
} else {
|
|
59382
|
-
s = delta / (2 - max - min);
|
|
59383
|
-
}
|
|
59384
|
-
return [h, s * 100, l * 100];
|
|
59385
|
-
};
|
|
59386
|
-
convert.rgb.hsv = function(rgb) {
|
|
59387
|
-
let rdif;
|
|
59388
|
-
let gdif;
|
|
59389
|
-
let bdif;
|
|
59390
|
-
let h;
|
|
59391
|
-
let s;
|
|
59392
|
-
const r = rgb[0] / 255;
|
|
59393
|
-
const g = rgb[1] / 255;
|
|
59394
|
-
const b = rgb[2] / 255;
|
|
59395
|
-
const v = Math.max(r, g, b);
|
|
59396
|
-
const diff = v - Math.min(r, g, b);
|
|
59397
|
-
const diffc = function(c) {
|
|
59398
|
-
return (v - c) / 6 / diff + 1 / 2;
|
|
59399
|
-
};
|
|
59400
|
-
if (diff === 0) {
|
|
59401
|
-
h = 0;
|
|
59402
|
-
s = 0;
|
|
59403
|
-
} else {
|
|
59404
|
-
s = diff / v;
|
|
59405
|
-
rdif = diffc(r);
|
|
59406
|
-
gdif = diffc(g);
|
|
59407
|
-
bdif = diffc(b);
|
|
59408
|
-
if (r === v) {
|
|
59409
|
-
h = bdif - gdif;
|
|
59410
|
-
} else if (g === v) {
|
|
59411
|
-
h = 1 / 3 + rdif - bdif;
|
|
59412
|
-
} else if (b === v) {
|
|
59413
|
-
h = 2 / 3 + gdif - rdif;
|
|
59414
|
-
}
|
|
59415
|
-
if (h < 0) {
|
|
59416
|
-
h += 1;
|
|
59417
|
-
} else if (h > 1) {
|
|
59418
|
-
h -= 1;
|
|
59419
|
-
}
|
|
59420
|
-
}
|
|
59421
|
-
return [
|
|
59422
|
-
h * 360,
|
|
59423
|
-
s * 100,
|
|
59424
|
-
v * 100
|
|
59425
|
-
];
|
|
59426
|
-
};
|
|
59427
|
-
convert.rgb.hwb = function(rgb) {
|
|
59428
|
-
const r = rgb[0];
|
|
59429
|
-
const g = rgb[1];
|
|
59430
|
-
let b = rgb[2];
|
|
59431
|
-
const h = convert.rgb.hsl(rgb)[0];
|
|
59432
|
-
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
59433
|
-
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
59434
|
-
return [h, w * 100, b * 100];
|
|
59435
|
-
};
|
|
59436
|
-
convert.rgb.cmyk = function(rgb) {
|
|
59437
|
-
const r = rgb[0] / 255;
|
|
59438
|
-
const g = rgb[1] / 255;
|
|
59439
|
-
const b = rgb[2] / 255;
|
|
59440
|
-
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
59441
|
-
const c = (1 - r - k) / (1 - k) || 0;
|
|
59442
|
-
const m = (1 - g - k) / (1 - k) || 0;
|
|
59443
|
-
const y = (1 - b - k) / (1 - k) || 0;
|
|
59444
|
-
return [c * 100, m * 100, y * 100, k * 100];
|
|
59445
|
-
};
|
|
59446
|
-
function comparativeDistance(x, y) {
|
|
59447
|
-
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
59448
|
-
}
|
|
59449
|
-
convert.rgb.keyword = function(rgb) {
|
|
59450
|
-
const reversed = reverseKeywords[rgb];
|
|
59451
|
-
if (reversed) {
|
|
59452
|
-
return reversed;
|
|
59453
|
-
}
|
|
59454
|
-
let currentClosestDistance = Infinity;
|
|
59455
|
-
let currentClosestKeyword;
|
|
59456
|
-
for (const keyword of Object.keys(cssKeywords)) {
|
|
59457
|
-
const value = cssKeywords[keyword];
|
|
59458
|
-
const distance = comparativeDistance(rgb, value);
|
|
59459
|
-
if (distance < currentClosestDistance) {
|
|
59460
|
-
currentClosestDistance = distance;
|
|
59461
|
-
currentClosestKeyword = keyword;
|
|
59462
|
-
}
|
|
59463
|
-
}
|
|
59464
|
-
return currentClosestKeyword;
|
|
59465
|
-
};
|
|
59466
|
-
convert.keyword.rgb = function(keyword) {
|
|
59467
|
-
return cssKeywords[keyword];
|
|
59468
|
-
};
|
|
59469
|
-
convert.rgb.xyz = function(rgb) {
|
|
59470
|
-
let r = rgb[0] / 255;
|
|
59471
|
-
let g = rgb[1] / 255;
|
|
59472
|
-
let b = rgb[2] / 255;
|
|
59473
|
-
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
59474
|
-
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
59475
|
-
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
59476
|
-
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
59477
|
-
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
59478
|
-
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
59479
|
-
return [x * 100, y * 100, z * 100];
|
|
59480
|
-
};
|
|
59481
|
-
convert.rgb.lab = function(rgb) {
|
|
59482
|
-
const xyz = convert.rgb.xyz(rgb);
|
|
59483
|
-
let x = xyz[0];
|
|
59484
|
-
let y = xyz[1];
|
|
59485
|
-
let z = xyz[2];
|
|
59486
|
-
x /= 95.047;
|
|
59487
|
-
y /= 100;
|
|
59488
|
-
z /= 108.883;
|
|
59489
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
59490
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
59491
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
59492
|
-
const l = 116 * y - 16;
|
|
59493
|
-
const a = 500 * (x - y);
|
|
59494
|
-
const b = 200 * (y - z);
|
|
59495
|
-
return [l, a, b];
|
|
59496
|
-
};
|
|
59497
|
-
convert.hsl.rgb = function(hsl) {
|
|
59498
|
-
const h = hsl[0] / 360;
|
|
59499
|
-
const s = hsl[1] / 100;
|
|
59500
|
-
const l = hsl[2] / 100;
|
|
59501
|
-
let t2;
|
|
59502
|
-
let t3;
|
|
59503
|
-
let val;
|
|
59504
|
-
if (s === 0) {
|
|
59505
|
-
val = l * 255;
|
|
59506
|
-
return [val, val, val];
|
|
59507
|
-
}
|
|
59508
|
-
if (l < 0.5) {
|
|
59509
|
-
t2 = l * (1 + s);
|
|
59510
|
-
} else {
|
|
59511
|
-
t2 = l + s - l * s;
|
|
59512
|
-
}
|
|
59513
|
-
const t1 = 2 * l - t2;
|
|
59514
|
-
const rgb = [0, 0, 0];
|
|
59515
|
-
for (let i = 0; i < 3; i++) {
|
|
59516
|
-
t3 = h + 1 / 3 * -(i - 1);
|
|
59517
|
-
if (t3 < 0) {
|
|
59518
|
-
t3++;
|
|
59519
|
-
}
|
|
59520
|
-
if (t3 > 1) {
|
|
59521
|
-
t3--;
|
|
59522
|
-
}
|
|
59523
|
-
if (6 * t3 < 1) {
|
|
59524
|
-
val = t1 + (t2 - t1) * 6 * t3;
|
|
59525
|
-
} else if (2 * t3 < 1) {
|
|
59526
|
-
val = t2;
|
|
59527
|
-
} else if (3 * t3 < 2) {
|
|
59528
|
-
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
59529
|
-
} else {
|
|
59530
|
-
val = t1;
|
|
59531
|
-
}
|
|
59532
|
-
rgb[i] = val * 255;
|
|
59533
|
-
}
|
|
59534
|
-
return rgb;
|
|
59535
|
-
};
|
|
59536
|
-
convert.hsl.hsv = function(hsl) {
|
|
59537
|
-
const h = hsl[0];
|
|
59538
|
-
let s = hsl[1] / 100;
|
|
59539
|
-
let l = hsl[2] / 100;
|
|
59540
|
-
let smin = s;
|
|
59541
|
-
const lmin = Math.max(l, 0.01);
|
|
59542
|
-
l *= 2;
|
|
59543
|
-
s *= l <= 1 ? l : 2 - l;
|
|
59544
|
-
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
59545
|
-
const v = (l + s) / 2;
|
|
59546
|
-
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
59547
|
-
return [h, sv * 100, v * 100];
|
|
59548
|
-
};
|
|
59549
|
-
convert.hsv.rgb = function(hsv) {
|
|
59550
|
-
const h = hsv[0] / 60;
|
|
59551
|
-
const s = hsv[1] / 100;
|
|
59552
|
-
let v = hsv[2] / 100;
|
|
59553
|
-
const hi = Math.floor(h) % 6;
|
|
59554
|
-
const f = h - Math.floor(h);
|
|
59555
|
-
const p = 255 * v * (1 - s);
|
|
59556
|
-
const q = 255 * v * (1 - s * f);
|
|
59557
|
-
const t = 255 * v * (1 - s * (1 - f));
|
|
59558
|
-
v *= 255;
|
|
59559
|
-
switch (hi) {
|
|
59560
|
-
case 0:
|
|
59561
|
-
return [v, t, p];
|
|
59562
|
-
case 1:
|
|
59563
|
-
return [q, v, p];
|
|
59564
|
-
case 2:
|
|
59565
|
-
return [p, v, t];
|
|
59566
|
-
case 3:
|
|
59567
|
-
return [p, q, v];
|
|
59568
|
-
case 4:
|
|
59569
|
-
return [t, p, v];
|
|
59570
|
-
case 5:
|
|
59571
|
-
return [v, p, q];
|
|
59572
|
-
}
|
|
59573
|
-
};
|
|
59574
|
-
convert.hsv.hsl = function(hsv) {
|
|
59575
|
-
const h = hsv[0];
|
|
59576
|
-
const s = hsv[1] / 100;
|
|
59577
|
-
const v = hsv[2] / 100;
|
|
59578
|
-
const vmin = Math.max(v, 0.01);
|
|
59579
|
-
let sl;
|
|
59580
|
-
let l;
|
|
59581
|
-
l = (2 - s) * v;
|
|
59582
|
-
const lmin = (2 - s) * vmin;
|
|
59583
|
-
sl = s * vmin;
|
|
59584
|
-
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
59585
|
-
sl = sl || 0;
|
|
59586
|
-
l /= 2;
|
|
59587
|
-
return [h, sl * 100, l * 100];
|
|
59588
|
-
};
|
|
59589
|
-
convert.hwb.rgb = function(hwb) {
|
|
59590
|
-
const h = hwb[0] / 360;
|
|
59591
|
-
let wh = hwb[1] / 100;
|
|
59592
|
-
let bl = hwb[2] / 100;
|
|
59593
|
-
const ratio = wh + bl;
|
|
59594
|
-
let f;
|
|
59595
|
-
if (ratio > 1) {
|
|
59596
|
-
wh /= ratio;
|
|
59597
|
-
bl /= ratio;
|
|
59598
|
-
}
|
|
59599
|
-
const i = Math.floor(6 * h);
|
|
59600
|
-
const v = 1 - bl;
|
|
59601
|
-
f = 6 * h - i;
|
|
59602
|
-
if ((i & 1) !== 0) {
|
|
59603
|
-
f = 1 - f;
|
|
59604
|
-
}
|
|
59605
|
-
const n = wh + f * (v - wh);
|
|
59606
|
-
let r;
|
|
59607
|
-
let g;
|
|
59608
|
-
let b;
|
|
59609
|
-
switch (i) {
|
|
59610
|
-
default:
|
|
59611
|
-
case 6:
|
|
59612
|
-
case 0:
|
|
59613
|
-
r = v;
|
|
59614
|
-
g = n;
|
|
59615
|
-
b = wh;
|
|
59616
|
-
break;
|
|
59617
|
-
case 1:
|
|
59618
|
-
r = n;
|
|
59619
|
-
g = v;
|
|
59620
|
-
b = wh;
|
|
59621
|
-
break;
|
|
59622
|
-
case 2:
|
|
59623
|
-
r = wh;
|
|
59624
|
-
g = v;
|
|
59625
|
-
b = n;
|
|
59626
|
-
break;
|
|
59627
|
-
case 3:
|
|
59628
|
-
r = wh;
|
|
59629
|
-
g = n;
|
|
59630
|
-
b = v;
|
|
59631
|
-
break;
|
|
59632
|
-
case 4:
|
|
59633
|
-
r = n;
|
|
59634
|
-
g = wh;
|
|
59635
|
-
b = v;
|
|
59636
|
-
break;
|
|
59637
|
-
case 5:
|
|
59638
|
-
r = v;
|
|
59639
|
-
g = wh;
|
|
59640
|
-
b = n;
|
|
59641
|
-
break;
|
|
59642
|
-
}
|
|
59643
|
-
return [r * 255, g * 255, b * 255];
|
|
59644
|
-
};
|
|
59645
|
-
convert.cmyk.rgb = function(cmyk) {
|
|
59646
|
-
const c = cmyk[0] / 100;
|
|
59647
|
-
const m = cmyk[1] / 100;
|
|
59648
|
-
const y = cmyk[2] / 100;
|
|
59649
|
-
const k = cmyk[3] / 100;
|
|
59650
|
-
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
59651
|
-
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
59652
|
-
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
59653
|
-
return [r * 255, g * 255, b * 255];
|
|
59654
|
-
};
|
|
59655
|
-
convert.xyz.rgb = function(xyz) {
|
|
59656
|
-
const x = xyz[0] / 100;
|
|
59657
|
-
const y = xyz[1] / 100;
|
|
59658
|
-
const z = xyz[2] / 100;
|
|
59659
|
-
let r;
|
|
59660
|
-
let g;
|
|
59661
|
-
let b;
|
|
59662
|
-
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
59663
|
-
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
59664
|
-
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
59665
|
-
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
59666
|
-
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
59667
|
-
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
59668
|
-
r = Math.min(Math.max(0, r), 1);
|
|
59669
|
-
g = Math.min(Math.max(0, g), 1);
|
|
59670
|
-
b = Math.min(Math.max(0, b), 1);
|
|
59671
|
-
return [r * 255, g * 255, b * 255];
|
|
59672
|
-
};
|
|
59673
|
-
convert.xyz.lab = function(xyz) {
|
|
59674
|
-
let x = xyz[0];
|
|
59675
|
-
let y = xyz[1];
|
|
59676
|
-
let z = xyz[2];
|
|
59677
|
-
x /= 95.047;
|
|
59678
|
-
y /= 100;
|
|
59679
|
-
z /= 108.883;
|
|
59680
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
59681
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
59682
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
59683
|
-
const l = 116 * y - 16;
|
|
59684
|
-
const a = 500 * (x - y);
|
|
59685
|
-
const b = 200 * (y - z);
|
|
59686
|
-
return [l, a, b];
|
|
59687
|
-
};
|
|
59688
|
-
convert.lab.xyz = function(lab) {
|
|
59689
|
-
const l = lab[0];
|
|
59690
|
-
const a = lab[1];
|
|
59691
|
-
const b = lab[2];
|
|
59692
|
-
let x;
|
|
59693
|
-
let y;
|
|
59694
|
-
let z;
|
|
59695
|
-
y = (l + 16) / 116;
|
|
59696
|
-
x = a / 500 + y;
|
|
59697
|
-
z = y - b / 200;
|
|
59698
|
-
const y2 = y ** 3;
|
|
59699
|
-
const x2 = x ** 3;
|
|
59700
|
-
const z2 = z ** 3;
|
|
59701
|
-
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
59702
|
-
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
59703
|
-
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
59704
|
-
x *= 95.047;
|
|
59705
|
-
y *= 100;
|
|
59706
|
-
z *= 108.883;
|
|
59707
|
-
return [x, y, z];
|
|
59708
|
-
};
|
|
59709
|
-
convert.lab.lch = function(lab) {
|
|
59710
|
-
const l = lab[0];
|
|
59711
|
-
const a = lab[1];
|
|
59712
|
-
const b = lab[2];
|
|
59713
|
-
let h;
|
|
59714
|
-
const hr = Math.atan2(b, a);
|
|
59715
|
-
h = hr * 360 / 2 / Math.PI;
|
|
59716
|
-
if (h < 0) {
|
|
59717
|
-
h += 360;
|
|
59718
|
-
}
|
|
59719
|
-
const c = Math.sqrt(a * a + b * b);
|
|
59720
|
-
return [l, c, h];
|
|
59721
|
-
};
|
|
59722
|
-
convert.lch.lab = function(lch) {
|
|
59723
|
-
const l = lch[0];
|
|
59724
|
-
const c = lch[1];
|
|
59725
|
-
const h = lch[2];
|
|
59726
|
-
const hr = h / 360 * 2 * Math.PI;
|
|
59727
|
-
const a = c * Math.cos(hr);
|
|
59728
|
-
const b = c * Math.sin(hr);
|
|
59729
|
-
return [l, a, b];
|
|
59730
|
-
};
|
|
59731
|
-
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
59732
|
-
const [r, g, b] = args;
|
|
59733
|
-
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
59734
|
-
value = Math.round(value / 50);
|
|
59735
|
-
if (value === 0) {
|
|
59736
|
-
return 30;
|
|
59737
|
-
}
|
|
59738
|
-
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
59739
|
-
if (value === 2) {
|
|
59740
|
-
ansi += 60;
|
|
59741
|
-
}
|
|
59742
|
-
return ansi;
|
|
59743
|
-
};
|
|
59744
|
-
convert.hsv.ansi16 = function(args) {
|
|
59745
|
-
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
59746
|
-
};
|
|
59747
|
-
convert.rgb.ansi256 = function(args) {
|
|
59748
|
-
const r = args[0];
|
|
59749
|
-
const g = args[1];
|
|
59750
|
-
const b = args[2];
|
|
59751
|
-
if (r === g && g === b) {
|
|
59752
|
-
if (r < 8) {
|
|
59753
|
-
return 16;
|
|
59754
|
-
}
|
|
59755
|
-
if (r > 248) {
|
|
59756
|
-
return 231;
|
|
59757
|
-
}
|
|
59758
|
-
return Math.round((r - 8) / 247 * 24) + 232;
|
|
59759
|
-
}
|
|
59760
|
-
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
59761
|
-
return ansi;
|
|
59762
|
-
};
|
|
59763
|
-
convert.ansi16.rgb = function(args) {
|
|
59764
|
-
let color = args % 10;
|
|
59765
|
-
if (color === 0 || color === 7) {
|
|
59766
|
-
if (args > 50) {
|
|
59767
|
-
color += 3.5;
|
|
59768
|
-
}
|
|
59769
|
-
color = color / 10.5 * 255;
|
|
59770
|
-
return [color, color, color];
|
|
59771
|
-
}
|
|
59772
|
-
const mult = (~~(args > 50) + 1) * 0.5;
|
|
59773
|
-
const r = (color & 1) * mult * 255;
|
|
59774
|
-
const g = (color >> 1 & 1) * mult * 255;
|
|
59775
|
-
const b = (color >> 2 & 1) * mult * 255;
|
|
59776
|
-
return [r, g, b];
|
|
59777
|
-
};
|
|
59778
|
-
convert.ansi256.rgb = function(args) {
|
|
59779
|
-
if (args >= 232) {
|
|
59780
|
-
const c = (args - 232) * 10 + 8;
|
|
59781
|
-
return [c, c, c];
|
|
59782
|
-
}
|
|
59783
|
-
args -= 16;
|
|
59784
|
-
let rem;
|
|
59785
|
-
const r = Math.floor(args / 36) / 5 * 255;
|
|
59786
|
-
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
59787
|
-
const b = rem % 6 / 5 * 255;
|
|
59788
|
-
return [r, g, b];
|
|
59789
|
-
};
|
|
59790
|
-
convert.rgb.hex = function(args) {
|
|
59791
|
-
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
59792
|
-
const string = integer.toString(16).toUpperCase();
|
|
59793
|
-
return "000000".substring(string.length) + string;
|
|
59794
|
-
};
|
|
59795
|
-
convert.hex.rgb = function(args) {
|
|
59796
|
-
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
59797
|
-
if (!match) {
|
|
59798
|
-
return [0, 0, 0];
|
|
59799
|
-
}
|
|
59800
|
-
let colorString = match[0];
|
|
59801
|
-
if (match[0].length === 3) {
|
|
59802
|
-
colorString = colorString.split("").map((char) => {
|
|
59803
|
-
return char + char;
|
|
59804
|
-
}).join("");
|
|
59805
|
-
}
|
|
59806
|
-
const integer = parseInt(colorString, 16);
|
|
59807
|
-
const r = integer >> 16 & 255;
|
|
59808
|
-
const g = integer >> 8 & 255;
|
|
59809
|
-
const b = integer & 255;
|
|
59810
|
-
return [r, g, b];
|
|
59811
|
-
};
|
|
59812
|
-
convert.rgb.hcg = function(rgb) {
|
|
59813
|
-
const r = rgb[0] / 255;
|
|
59814
|
-
const g = rgb[1] / 255;
|
|
59815
|
-
const b = rgb[2] / 255;
|
|
59816
|
-
const max = Math.max(Math.max(r, g), b);
|
|
59817
|
-
const min = Math.min(Math.min(r, g), b);
|
|
59818
|
-
const chroma = max - min;
|
|
59819
|
-
let grayscale;
|
|
59820
|
-
let hue;
|
|
59821
|
-
if (chroma < 1) {
|
|
59822
|
-
grayscale = min / (1 - chroma);
|
|
59823
|
-
} else {
|
|
59824
|
-
grayscale = 0;
|
|
59825
|
-
}
|
|
59826
|
-
if (chroma <= 0) {
|
|
59827
|
-
hue = 0;
|
|
59828
|
-
} else if (max === r) {
|
|
59829
|
-
hue = (g - b) / chroma % 6;
|
|
59830
|
-
} else if (max === g) {
|
|
59831
|
-
hue = 2 + (b - r) / chroma;
|
|
59832
|
-
} else {
|
|
59833
|
-
hue = 4 + (r - g) / chroma;
|
|
59834
|
-
}
|
|
59835
|
-
hue /= 6;
|
|
59836
|
-
hue %= 1;
|
|
59837
|
-
return [hue * 360, chroma * 100, grayscale * 100];
|
|
59838
|
-
};
|
|
59839
|
-
convert.hsl.hcg = function(hsl) {
|
|
59840
|
-
const s = hsl[1] / 100;
|
|
59841
|
-
const l = hsl[2] / 100;
|
|
59842
|
-
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
59843
|
-
let f = 0;
|
|
59844
|
-
if (c < 1) {
|
|
59845
|
-
f = (l - 0.5 * c) / (1 - c);
|
|
59846
|
-
}
|
|
59847
|
-
return [hsl[0], c * 100, f * 100];
|
|
59848
|
-
};
|
|
59849
|
-
convert.hsv.hcg = function(hsv) {
|
|
59850
|
-
const s = hsv[1] / 100;
|
|
59851
|
-
const v = hsv[2] / 100;
|
|
59852
|
-
const c = s * v;
|
|
59853
|
-
let f = 0;
|
|
59854
|
-
if (c < 1) {
|
|
59855
|
-
f = (v - c) / (1 - c);
|
|
59856
|
-
}
|
|
59857
|
-
return [hsv[0], c * 100, f * 100];
|
|
59858
|
-
};
|
|
59859
|
-
convert.hcg.rgb = function(hcg) {
|
|
59860
|
-
const h = hcg[0] / 360;
|
|
59861
|
-
const c = hcg[1] / 100;
|
|
59862
|
-
const g = hcg[2] / 100;
|
|
59863
|
-
if (c === 0) {
|
|
59864
|
-
return [g * 255, g * 255, g * 255];
|
|
59865
|
-
}
|
|
59866
|
-
const pure = [0, 0, 0];
|
|
59867
|
-
const hi = h % 1 * 6;
|
|
59868
|
-
const v = hi % 1;
|
|
59869
|
-
const w = 1 - v;
|
|
59870
|
-
let mg = 0;
|
|
59871
|
-
switch (Math.floor(hi)) {
|
|
59872
|
-
case 0:
|
|
59873
|
-
pure[0] = 1;
|
|
59874
|
-
pure[1] = v;
|
|
59875
|
-
pure[2] = 0;
|
|
59876
|
-
break;
|
|
59877
|
-
case 1:
|
|
59878
|
-
pure[0] = w;
|
|
59879
|
-
pure[1] = 1;
|
|
59880
|
-
pure[2] = 0;
|
|
59881
|
-
break;
|
|
59882
|
-
case 2:
|
|
59883
|
-
pure[0] = 0;
|
|
59884
|
-
pure[1] = 1;
|
|
59885
|
-
pure[2] = v;
|
|
59886
|
-
break;
|
|
59887
|
-
case 3:
|
|
59888
|
-
pure[0] = 0;
|
|
59889
|
-
pure[1] = w;
|
|
59890
|
-
pure[2] = 1;
|
|
59891
|
-
break;
|
|
59892
|
-
case 4:
|
|
59893
|
-
pure[0] = v;
|
|
59894
|
-
pure[1] = 0;
|
|
59895
|
-
pure[2] = 1;
|
|
59896
|
-
break;
|
|
59897
|
-
default:
|
|
59898
|
-
pure[0] = 1;
|
|
59899
|
-
pure[1] = 0;
|
|
59900
|
-
pure[2] = w;
|
|
59901
|
-
}
|
|
59902
|
-
mg = (1 - c) * g;
|
|
59903
|
-
return [
|
|
59904
|
-
(c * pure[0] + mg) * 255,
|
|
59905
|
-
(c * pure[1] + mg) * 255,
|
|
59906
|
-
(c * pure[2] + mg) * 255
|
|
59907
|
-
];
|
|
59908
|
-
};
|
|
59909
|
-
convert.hcg.hsv = function(hcg) {
|
|
59910
|
-
const c = hcg[1] / 100;
|
|
59911
|
-
const g = hcg[2] / 100;
|
|
59912
|
-
const v = c + g * (1 - c);
|
|
59913
|
-
let f = 0;
|
|
59914
|
-
if (v > 0) {
|
|
59915
|
-
f = c / v;
|
|
59916
|
-
}
|
|
59917
|
-
return [hcg[0], f * 100, v * 100];
|
|
59918
|
-
};
|
|
59919
|
-
convert.hcg.hsl = function(hcg) {
|
|
59920
|
-
const c = hcg[1] / 100;
|
|
59921
|
-
const g = hcg[2] / 100;
|
|
59922
|
-
const l = g * (1 - c) + 0.5 * c;
|
|
59923
|
-
let s = 0;
|
|
59924
|
-
if (l > 0 && l < 0.5) {
|
|
59925
|
-
s = c / (2 * l);
|
|
59926
|
-
} else if (l >= 0.5 && l < 1) {
|
|
59927
|
-
s = c / (2 * (1 - l));
|
|
59928
|
-
}
|
|
59929
|
-
return [hcg[0], s * 100, l * 100];
|
|
59930
|
-
};
|
|
59931
|
-
convert.hcg.hwb = function(hcg) {
|
|
59932
|
-
const c = hcg[1] / 100;
|
|
59933
|
-
const g = hcg[2] / 100;
|
|
59934
|
-
const v = c + g * (1 - c);
|
|
59935
|
-
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
59936
|
-
};
|
|
59937
|
-
convert.hwb.hcg = function(hwb) {
|
|
59938
|
-
const w = hwb[1] / 100;
|
|
59939
|
-
const b = hwb[2] / 100;
|
|
59940
|
-
const v = 1 - b;
|
|
59941
|
-
const c = v - w;
|
|
59942
|
-
let g = 0;
|
|
59943
|
-
if (c < 1) {
|
|
59944
|
-
g = (v - c) / (1 - c);
|
|
59945
|
-
}
|
|
59946
|
-
return [hwb[0], c * 100, g * 100];
|
|
59947
|
-
};
|
|
59948
|
-
convert.apple.rgb = function(apple) {
|
|
59949
|
-
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
59950
|
-
};
|
|
59951
|
-
convert.rgb.apple = function(rgb) {
|
|
59952
|
-
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
59953
|
-
};
|
|
59954
|
-
convert.gray.rgb = function(args) {
|
|
59955
|
-
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
59956
|
-
};
|
|
59957
|
-
convert.gray.hsl = function(args) {
|
|
59958
|
-
return [0, 0, args[0]];
|
|
59959
|
-
};
|
|
59960
|
-
convert.gray.hsv = convert.gray.hsl;
|
|
59961
|
-
convert.gray.hwb = function(gray) {
|
|
59962
|
-
return [0, 100, gray[0]];
|
|
59963
|
-
};
|
|
59964
|
-
convert.gray.cmyk = function(gray) {
|
|
59965
|
-
return [0, 0, 0, gray[0]];
|
|
59966
|
-
};
|
|
59967
|
-
convert.gray.lab = function(gray) {
|
|
59968
|
-
return [gray[0], 0, 0];
|
|
59969
|
-
};
|
|
59970
|
-
convert.gray.hex = function(gray) {
|
|
59971
|
-
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
59972
|
-
const integer = (val << 16) + (val << 8) + val;
|
|
59973
|
-
const string = integer.toString(16).toUpperCase();
|
|
59974
|
-
return "000000".substring(string.length) + string;
|
|
59975
|
-
};
|
|
59976
|
-
convert.rgb.gray = function(rgb) {
|
|
59977
|
-
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
59978
|
-
return [val / 255 * 100];
|
|
59979
|
-
};
|
|
59980
|
-
});
|
|
59981
|
-
var require_route = __commonJSMin((exports, module2) => {
|
|
59982
|
-
var conversions = require_conversions();
|
|
59983
|
-
function buildGraph() {
|
|
59984
|
-
const graph = {};
|
|
59985
|
-
const models = Object.keys(conversions);
|
|
59986
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
59987
|
-
graph[models[i]] = {
|
|
59988
|
-
distance: -1,
|
|
59989
|
-
parent: null
|
|
59990
|
-
};
|
|
59991
|
-
}
|
|
59992
|
-
return graph;
|
|
59993
|
-
}
|
|
59994
|
-
function deriveBFS(fromModel) {
|
|
59995
|
-
const graph = buildGraph();
|
|
59996
|
-
const queue = [fromModel];
|
|
59997
|
-
graph[fromModel].distance = 0;
|
|
59998
|
-
while (queue.length) {
|
|
59999
|
-
const current = queue.pop();
|
|
60000
|
-
const adjacents = Object.keys(conversions[current]);
|
|
60001
|
-
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
60002
|
-
const adjacent = adjacents[i];
|
|
60003
|
-
const node = graph[adjacent];
|
|
60004
|
-
if (node.distance === -1) {
|
|
60005
|
-
node.distance = graph[current].distance + 1;
|
|
60006
|
-
node.parent = current;
|
|
60007
|
-
queue.unshift(adjacent);
|
|
60008
|
-
}
|
|
60009
|
-
}
|
|
60010
|
-
}
|
|
60011
|
-
return graph;
|
|
60012
|
-
}
|
|
60013
|
-
function link(from, to) {
|
|
60014
|
-
return function(args) {
|
|
60015
|
-
return to(from(args));
|
|
60016
|
-
};
|
|
60017
|
-
}
|
|
60018
|
-
function wrapConversion(toModel, graph) {
|
|
60019
|
-
const path6 = [graph[toModel].parent, toModel];
|
|
60020
|
-
let fn = conversions[graph[toModel].parent][toModel];
|
|
60021
|
-
let cur = graph[toModel].parent;
|
|
60022
|
-
while (graph[cur].parent) {
|
|
60023
|
-
path6.unshift(graph[cur].parent);
|
|
60024
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
60025
|
-
cur = graph[cur].parent;
|
|
60026
|
-
}
|
|
60027
|
-
fn.conversion = path6;
|
|
60028
|
-
return fn;
|
|
60029
|
-
}
|
|
60030
|
-
module2.exports = function(fromModel) {
|
|
60031
|
-
const graph = deriveBFS(fromModel);
|
|
60032
|
-
const conversion = {};
|
|
60033
|
-
const models = Object.keys(graph);
|
|
60034
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
60035
|
-
const toModel = models[i];
|
|
60036
|
-
const node = graph[toModel];
|
|
60037
|
-
if (node.parent === null) {
|
|
60038
|
-
continue;
|
|
60039
|
-
}
|
|
60040
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
|
60041
|
-
}
|
|
60042
|
-
return conversion;
|
|
60043
|
-
};
|
|
60044
|
-
});
|
|
60045
|
-
var require_color_convert = __commonJSMin((exports, module2) => {
|
|
60046
|
-
var conversions = require_conversions();
|
|
60047
|
-
var route = require_route();
|
|
60048
|
-
var convert = {};
|
|
60049
|
-
var models = Object.keys(conversions);
|
|
60050
|
-
function wrapRaw(fn) {
|
|
60051
|
-
const wrappedFn = function(...args) {
|
|
60052
|
-
const arg0 = args[0];
|
|
60053
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
60054
|
-
return arg0;
|
|
60055
|
-
}
|
|
60056
|
-
if (arg0.length > 1) {
|
|
60057
|
-
args = arg0;
|
|
60058
|
-
}
|
|
60059
|
-
return fn(args);
|
|
60060
|
-
};
|
|
60061
|
-
if ("conversion" in fn) {
|
|
60062
|
-
wrappedFn.conversion = fn.conversion;
|
|
60063
|
-
}
|
|
60064
|
-
return wrappedFn;
|
|
60065
|
-
}
|
|
60066
|
-
function wrapRounded(fn) {
|
|
60067
|
-
const wrappedFn = function(...args) {
|
|
60068
|
-
const arg0 = args[0];
|
|
60069
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
60070
|
-
return arg0;
|
|
60071
|
-
}
|
|
60072
|
-
if (arg0.length > 1) {
|
|
60073
|
-
args = arg0;
|
|
60074
|
-
}
|
|
60075
|
-
const result = fn(args);
|
|
60076
|
-
if (typeof result === "object") {
|
|
60077
|
-
for (let len = result.length, i = 0; i < len; i++) {
|
|
60078
|
-
result[i] = Math.round(result[i]);
|
|
60079
|
-
}
|
|
60080
|
-
}
|
|
60081
|
-
return result;
|
|
60082
|
-
};
|
|
60083
|
-
if ("conversion" in fn) {
|
|
60084
|
-
wrappedFn.conversion = fn.conversion;
|
|
60085
|
-
}
|
|
60086
|
-
return wrappedFn;
|
|
60087
|
-
}
|
|
60088
|
-
models.forEach((fromModel) => {
|
|
60089
|
-
convert[fromModel] = {};
|
|
60090
|
-
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
60091
|
-
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
60092
|
-
const routes = route(fromModel);
|
|
60093
|
-
const routeModels = Object.keys(routes);
|
|
60094
|
-
routeModels.forEach((toModel) => {
|
|
60095
|
-
const fn = routes[toModel];
|
|
60096
|
-
convert[fromModel][toModel] = wrapRounded(fn);
|
|
60097
|
-
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
60098
|
-
});
|
|
60099
|
-
});
|
|
60100
|
-
module2.exports = convert;
|
|
60101
|
-
});
|
|
60102
|
-
var require_ansi_styles = __commonJSMin((exports, module2) => {
|
|
60103
|
-
"use strict";
|
|
60104
|
-
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
60105
|
-
const code = fn(...args);
|
|
60106
|
-
return `\x1B[${code + offset}m`;
|
|
60107
|
-
};
|
|
60108
|
-
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
60109
|
-
const code = fn(...args);
|
|
60110
|
-
return `\x1B[${38 + offset};5;${code}m`;
|
|
60111
|
-
};
|
|
60112
|
-
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
60113
|
-
const rgb = fn(...args);
|
|
60114
|
-
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
60115
|
-
};
|
|
60116
|
-
var ansi2ansi = (n) => n;
|
|
60117
|
-
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
60118
|
-
var setLazyProperty = (object, property, get4) => {
|
|
60119
|
-
Object.defineProperty(object, property, {
|
|
60120
|
-
get: () => {
|
|
60121
|
-
const value = get4();
|
|
60122
|
-
Object.defineProperty(object, property, {
|
|
60123
|
-
value,
|
|
60124
|
-
enumerable: true,
|
|
60125
|
-
configurable: true
|
|
60126
|
-
});
|
|
60127
|
-
return value;
|
|
60128
|
-
},
|
|
60129
|
-
enumerable: true,
|
|
60130
|
-
configurable: true
|
|
60131
|
-
});
|
|
60132
|
-
};
|
|
60133
|
-
var colorConvert;
|
|
60134
|
-
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
60135
|
-
if (colorConvert === void 0) {
|
|
60136
|
-
colorConvert = require_color_convert();
|
|
60137
|
-
}
|
|
60138
|
-
const offset = isBackground ? 10 : 0;
|
|
60139
|
-
const styles = {};
|
|
60140
|
-
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
60141
|
-
const name5 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
60142
|
-
if (sourceSpace === targetSpace) {
|
|
60143
|
-
styles[name5] = wrap(identity, offset);
|
|
60144
|
-
} else if (typeof suite === "object") {
|
|
60145
|
-
styles[name5] = wrap(suite[targetSpace], offset);
|
|
60146
|
-
}
|
|
60147
|
-
}
|
|
60148
|
-
return styles;
|
|
60149
|
-
};
|
|
60150
|
-
function assembleStyles() {
|
|
60151
|
-
const codes = /* @__PURE__ */ new Map();
|
|
60152
|
-
const styles = {
|
|
60153
|
-
modifier: {
|
|
60154
|
-
reset: [0, 0],
|
|
60155
|
-
bold: [1, 22],
|
|
60156
|
-
dim: [2, 22],
|
|
60157
|
-
italic: [3, 23],
|
|
60158
|
-
underline: [4, 24],
|
|
60159
|
-
inverse: [7, 27],
|
|
60160
|
-
hidden: [8, 28],
|
|
60161
|
-
strikethrough: [9, 29]
|
|
60162
|
-
},
|
|
60163
|
-
color: {
|
|
60164
|
-
black: [30, 39],
|
|
60165
|
-
red: [31, 39],
|
|
60166
|
-
green: [32, 39],
|
|
60167
|
-
yellow: [33, 39],
|
|
60168
|
-
blue: [34, 39],
|
|
60169
|
-
magenta: [35, 39],
|
|
60170
|
-
cyan: [36, 39],
|
|
60171
|
-
white: [37, 39],
|
|
60172
|
-
blackBright: [90, 39],
|
|
60173
|
-
redBright: [91, 39],
|
|
60174
|
-
greenBright: [92, 39],
|
|
60175
|
-
yellowBright: [93, 39],
|
|
60176
|
-
blueBright: [94, 39],
|
|
60177
|
-
magentaBright: [95, 39],
|
|
60178
|
-
cyanBright: [96, 39],
|
|
60179
|
-
whiteBright: [97, 39]
|
|
60180
|
-
},
|
|
60181
|
-
bgColor: {
|
|
60182
|
-
bgBlack: [40, 49],
|
|
60183
|
-
bgRed: [41, 49],
|
|
60184
|
-
bgGreen: [42, 49],
|
|
60185
|
-
bgYellow: [43, 49],
|
|
60186
|
-
bgBlue: [44, 49],
|
|
60187
|
-
bgMagenta: [45, 49],
|
|
60188
|
-
bgCyan: [46, 49],
|
|
60189
|
-
bgWhite: [47, 49],
|
|
60190
|
-
bgBlackBright: [100, 49],
|
|
60191
|
-
bgRedBright: [101, 49],
|
|
60192
|
-
bgGreenBright: [102, 49],
|
|
60193
|
-
bgYellowBright: [103, 49],
|
|
60194
|
-
bgBlueBright: [104, 49],
|
|
60195
|
-
bgMagentaBright: [105, 49],
|
|
60196
|
-
bgCyanBright: [106, 49],
|
|
60197
|
-
bgWhiteBright: [107, 49]
|
|
60198
|
-
}
|
|
60199
|
-
};
|
|
60200
|
-
styles.color.gray = styles.color.blackBright;
|
|
60201
|
-
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
60202
|
-
styles.color.grey = styles.color.blackBright;
|
|
60203
|
-
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
60204
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
60205
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
60206
|
-
styles[styleName] = {
|
|
60207
|
-
open: `\x1B[${style[0]}m`,
|
|
60208
|
-
close: `\x1B[${style[1]}m`
|
|
60209
|
-
};
|
|
60210
|
-
group[styleName] = styles[styleName];
|
|
60211
|
-
codes.set(style[0], style[1]);
|
|
60212
|
-
}
|
|
60213
|
-
Object.defineProperty(styles, groupName, {
|
|
60214
|
-
value: group,
|
|
60215
|
-
enumerable: false
|
|
60216
|
-
});
|
|
60217
|
-
}
|
|
60218
|
-
Object.defineProperty(styles, "codes", {
|
|
60219
|
-
value: codes,
|
|
60220
|
-
enumerable: false
|
|
60221
|
-
});
|
|
60222
|
-
styles.color.close = "\x1B[39m";
|
|
60223
|
-
styles.bgColor.close = "\x1B[49m";
|
|
60224
|
-
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
60225
|
-
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
60226
|
-
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
60227
|
-
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
60228
|
-
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
60229
|
-
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
60230
|
-
return styles;
|
|
60231
|
-
}
|
|
60232
|
-
Object.defineProperty(module2, "exports", {
|
|
60233
|
-
enumerable: true,
|
|
60234
|
-
get: assembleStyles
|
|
60235
|
-
});
|
|
60236
|
-
});
|
|
60237
|
-
var require_browser2 = __commonJSMin((exports, module2) => {
|
|
60238
|
-
"use strict";
|
|
60239
|
-
module2.exports = {
|
|
60240
|
-
stdout: false,
|
|
60241
|
-
stderr: false
|
|
60242
|
-
};
|
|
60243
|
-
});
|
|
60244
|
-
var require_util3 = __commonJSMin((exports, module2) => {
|
|
60245
|
-
"use strict";
|
|
60246
|
-
var stringReplaceAll = (string, substring, replacer) => {
|
|
60247
|
-
let index = string.indexOf(substring);
|
|
60248
|
-
if (index === -1) {
|
|
60249
|
-
return string;
|
|
60250
|
-
}
|
|
60251
|
-
const substringLength = substring.length;
|
|
60252
|
-
let endIndex = 0;
|
|
60253
|
-
let returnValue = "";
|
|
60254
|
-
do {
|
|
60255
|
-
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
60256
|
-
endIndex = index + substringLength;
|
|
60257
|
-
index = string.indexOf(substring, endIndex);
|
|
60258
|
-
} while (index !== -1);
|
|
60259
|
-
returnValue += string.substr(endIndex);
|
|
60260
|
-
return returnValue;
|
|
60261
|
-
};
|
|
60262
|
-
var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
60263
|
-
let endIndex = 0;
|
|
60264
|
-
let returnValue = "";
|
|
60265
|
-
do {
|
|
60266
|
-
const gotCR = string[index - 1] === "\r";
|
|
60267
|
-
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
60268
|
-
endIndex = index + 1;
|
|
60269
|
-
index = string.indexOf("\n", endIndex);
|
|
60270
|
-
} while (index !== -1);
|
|
60271
|
-
returnValue += string.substr(endIndex);
|
|
60272
|
-
return returnValue;
|
|
60273
|
-
};
|
|
60274
|
-
module2.exports = {
|
|
60275
|
-
stringReplaceAll,
|
|
60276
|
-
stringEncaseCRLFWithFirstIndex
|
|
60277
|
-
};
|
|
60278
|
-
});
|
|
60279
|
-
var require_templates = __commonJSMin((exports, module2) => {
|
|
60280
|
-
"use strict";
|
|
60281
|
-
var 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;
|
|
60282
|
-
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
60283
|
-
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
60284
|
-
var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
60285
|
-
var ESCAPES = /* @__PURE__ */ new Map([
|
|
60286
|
-
["n", "\n"],
|
|
60287
|
-
["r", "\r"],
|
|
60288
|
-
["t", " "],
|
|
60289
|
-
["b", "\b"],
|
|
60290
|
-
["f", "\f"],
|
|
60291
|
-
["v", "\v"],
|
|
60292
|
-
["0", "\0"],
|
|
60293
|
-
["\\", "\\"],
|
|
60294
|
-
["e", "\x1B"],
|
|
60295
|
-
["a", "\x07"]
|
|
60296
|
-
]);
|
|
60297
|
-
function unescape2(c) {
|
|
60298
|
-
const u = c[0] === "u";
|
|
60299
|
-
const bracket = c[1] === "{";
|
|
60300
|
-
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
60301
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
60302
|
-
}
|
|
60303
|
-
if (u && bracket) {
|
|
60304
|
-
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
60305
|
-
}
|
|
60306
|
-
return ESCAPES.get(c) || c;
|
|
60307
|
-
}
|
|
60308
|
-
function parseArguments(name5, arguments_) {
|
|
60309
|
-
const results = [];
|
|
60310
|
-
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
60311
|
-
let matches;
|
|
60312
|
-
for (const chunk of chunks) {
|
|
60313
|
-
const number = Number(chunk);
|
|
60314
|
-
if (!Number.isNaN(number)) {
|
|
60315
|
-
results.push(number);
|
|
60316
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
60317
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
60318
|
-
} else {
|
|
60319
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name5}')`);
|
|
60320
|
-
}
|
|
60321
|
-
}
|
|
60322
|
-
return results;
|
|
60323
|
-
}
|
|
60324
|
-
function parseStyle(style) {
|
|
60325
|
-
STYLE_REGEX.lastIndex = 0;
|
|
60326
|
-
const results = [];
|
|
60327
|
-
let matches;
|
|
60328
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
60329
|
-
const name5 = matches[1];
|
|
60330
|
-
if (matches[2]) {
|
|
60331
|
-
const args = parseArguments(name5, matches[2]);
|
|
60332
|
-
results.push([name5].concat(args));
|
|
60333
|
-
} else {
|
|
60334
|
-
results.push([name5]);
|
|
60335
|
-
}
|
|
60336
|
-
}
|
|
60337
|
-
return results;
|
|
60338
|
-
}
|
|
60339
|
-
function buildStyle(chalk, styles) {
|
|
60340
|
-
const enabled = {};
|
|
60341
|
-
for (const layer2 of styles) {
|
|
60342
|
-
for (const style of layer2.styles) {
|
|
60343
|
-
enabled[style[0]] = layer2.inverse ? null : style.slice(1);
|
|
60344
|
-
}
|
|
60345
|
-
}
|
|
60346
|
-
let current = chalk;
|
|
60347
|
-
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
60348
|
-
if (!Array.isArray(styles2)) {
|
|
60349
|
-
continue;
|
|
60350
|
-
}
|
|
60351
|
-
if (!(styleName in current)) {
|
|
60352
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
60353
|
-
}
|
|
60354
|
-
current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
|
|
60355
|
-
}
|
|
60356
|
-
return current;
|
|
60357
|
-
}
|
|
60358
|
-
module2.exports = (chalk, temporary) => {
|
|
60359
|
-
const styles = [];
|
|
60360
|
-
const chunks = [];
|
|
60361
|
-
let chunk = [];
|
|
60362
|
-
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
60363
|
-
if (escapeCharacter) {
|
|
60364
|
-
chunk.push(unescape2(escapeCharacter));
|
|
60365
|
-
} else if (style) {
|
|
60366
|
-
const string = chunk.join("");
|
|
60367
|
-
chunk = [];
|
|
60368
|
-
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
60369
|
-
styles.push({ inverse, styles: parseStyle(style) });
|
|
60370
|
-
} else if (close) {
|
|
60371
|
-
if (styles.length === 0) {
|
|
60372
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
|
60373
|
-
}
|
|
60374
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
60375
|
-
chunk = [];
|
|
60376
|
-
styles.pop();
|
|
60377
|
-
} else {
|
|
60378
|
-
chunk.push(character);
|
|
60379
|
-
}
|
|
60380
|
-
});
|
|
60381
|
-
chunks.push(chunk.join(""));
|
|
60382
|
-
if (styles.length > 0) {
|
|
60383
|
-
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
60384
|
-
throw new Error(errMessage);
|
|
60385
|
-
}
|
|
60386
|
-
return chunks.join("");
|
|
60387
|
-
};
|
|
60388
|
-
});
|
|
60389
|
-
var require_source = __commonJSMin((exports, module2) => {
|
|
60390
|
-
"use strict";
|
|
60391
|
-
var ansiStyles = require_ansi_styles();
|
|
60392
|
-
var { stdout: stdoutColor, stderr: stderrColor } = require_browser2();
|
|
60393
|
-
var {
|
|
60394
|
-
stringReplaceAll,
|
|
60395
|
-
stringEncaseCRLFWithFirstIndex
|
|
60396
|
-
} = require_util3();
|
|
60397
|
-
var { isArray: isArray4 } = Array;
|
|
60398
|
-
var levelMapping = [
|
|
60399
|
-
"ansi",
|
|
60400
|
-
"ansi",
|
|
60401
|
-
"ansi256",
|
|
60402
|
-
"ansi16m"
|
|
60403
|
-
];
|
|
60404
|
-
var styles = /* @__PURE__ */ Object.create(null);
|
|
60405
|
-
var applyOptions = (object, options3 = {}) => {
|
|
60406
|
-
if (options3.level && !(Number.isInteger(options3.level) && options3.level >= 0 && options3.level <= 3)) {
|
|
60407
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
60408
|
-
}
|
|
60409
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
60410
|
-
object.level = options3.level === void 0 ? colorLevel : options3.level;
|
|
60411
|
-
};
|
|
60412
|
-
var ChalkClass = class {
|
|
60413
|
-
constructor(options3) {
|
|
60414
|
-
return chalkFactory(options3);
|
|
60415
|
-
}
|
|
60416
|
-
};
|
|
60417
|
-
var chalkFactory = (options3) => {
|
|
60418
|
-
const chalk2 = {};
|
|
60419
|
-
applyOptions(chalk2, options3);
|
|
60420
|
-
chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
|
|
60421
|
-
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
60422
|
-
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
60423
|
-
chalk2.template.constructor = () => {
|
|
60424
|
-
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
60425
|
-
};
|
|
60426
|
-
chalk2.template.Instance = ChalkClass;
|
|
60427
|
-
return chalk2.template;
|
|
60428
|
-
};
|
|
60429
|
-
function Chalk(options3) {
|
|
60430
|
-
return chalkFactory(options3);
|
|
60431
|
-
}
|
|
60432
|
-
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
60433
|
-
styles[styleName] = {
|
|
60434
|
-
get() {
|
|
60435
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
60436
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
60437
|
-
return builder;
|
|
60438
|
-
}
|
|
60439
|
-
};
|
|
60440
|
-
}
|
|
60441
|
-
styles.visible = {
|
|
60442
|
-
get() {
|
|
60443
|
-
const builder = createBuilder(this, this._styler, true);
|
|
60444
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
60445
|
-
return builder;
|
|
60446
|
-
}
|
|
60447
|
-
};
|
|
60448
|
-
var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
60449
|
-
for (const model of usedModels) {
|
|
60450
|
-
styles[model] = {
|
|
60451
|
-
get() {
|
|
60452
|
-
const { level } = this;
|
|
60453
|
-
return function(...arguments_) {
|
|
60454
|
-
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
60455
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
60456
|
-
};
|
|
60457
|
-
}
|
|
60458
|
-
};
|
|
60459
|
-
}
|
|
60460
|
-
for (const model of usedModels) {
|
|
60461
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
60462
|
-
styles[bgModel] = {
|
|
60463
|
-
get() {
|
|
60464
|
-
const { level } = this;
|
|
60465
|
-
return function(...arguments_) {
|
|
60466
|
-
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
60467
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
60468
|
-
};
|
|
60469
|
-
}
|
|
60470
|
-
};
|
|
60471
|
-
}
|
|
60472
|
-
var proto = Object.defineProperties(() => {
|
|
60473
|
-
}, {
|
|
60474
|
-
...styles,
|
|
60475
|
-
level: {
|
|
60476
|
-
enumerable: true,
|
|
60477
|
-
get() {
|
|
60478
|
-
return this._generator.level;
|
|
60479
|
-
},
|
|
60480
|
-
set(level) {
|
|
60481
|
-
this._generator.level = level;
|
|
60482
|
-
}
|
|
60483
|
-
}
|
|
60484
|
-
});
|
|
60485
|
-
var createStyler = (open, close, parent) => {
|
|
60486
|
-
let openAll;
|
|
60487
|
-
let closeAll;
|
|
60488
|
-
if (parent === void 0) {
|
|
60489
|
-
openAll = open;
|
|
60490
|
-
closeAll = close;
|
|
60491
|
-
} else {
|
|
60492
|
-
openAll = parent.openAll + open;
|
|
60493
|
-
closeAll = close + parent.closeAll;
|
|
60494
|
-
}
|
|
60495
|
-
return {
|
|
60496
|
-
open,
|
|
60497
|
-
close,
|
|
60498
|
-
openAll,
|
|
60499
|
-
closeAll,
|
|
60500
|
-
parent
|
|
60501
|
-
};
|
|
60502
|
-
};
|
|
60503
|
-
var createBuilder = (self3, _styler, _isEmpty) => {
|
|
60504
|
-
const builder = (...arguments_) => {
|
|
60505
|
-
if (isArray4(arguments_[0]) && isArray4(arguments_[0].raw)) {
|
|
60506
|
-
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
60507
|
-
}
|
|
60508
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
60509
|
-
};
|
|
60510
|
-
Object.setPrototypeOf(builder, proto);
|
|
60511
|
-
builder._generator = self3;
|
|
60512
|
-
builder._styler = _styler;
|
|
60513
|
-
builder._isEmpty = _isEmpty;
|
|
60514
|
-
return builder;
|
|
60515
|
-
};
|
|
60516
|
-
var applyStyle = (self3, string) => {
|
|
60517
|
-
if (self3.level <= 0 || !string) {
|
|
60518
|
-
return self3._isEmpty ? "" : string;
|
|
60519
|
-
}
|
|
60520
|
-
let styler = self3._styler;
|
|
60521
|
-
if (styler === void 0) {
|
|
60522
|
-
return string;
|
|
60523
|
-
}
|
|
60524
|
-
const { openAll, closeAll } = styler;
|
|
60525
|
-
if (string.indexOf("\x1B") !== -1) {
|
|
60526
|
-
while (styler !== void 0) {
|
|
60527
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
60528
|
-
styler = styler.parent;
|
|
60529
|
-
}
|
|
60530
|
-
}
|
|
60531
|
-
const lfIndex = string.indexOf("\n");
|
|
60532
|
-
if (lfIndex !== -1) {
|
|
60533
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
60534
|
-
}
|
|
60535
|
-
return openAll + string + closeAll;
|
|
60536
|
-
};
|
|
60537
|
-
var template;
|
|
60538
|
-
var chalkTag = (chalk2, ...strings) => {
|
|
60539
|
-
const [firstString] = strings;
|
|
60540
|
-
if (!isArray4(firstString) || !isArray4(firstString.raw)) {
|
|
60541
|
-
return strings.join(" ");
|
|
60542
|
-
}
|
|
60543
|
-
const arguments_ = strings.slice(1);
|
|
60544
|
-
const parts = [firstString.raw[0]];
|
|
60545
|
-
for (let i = 1; i < firstString.length; i++) {
|
|
60546
|
-
parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
60547
|
-
}
|
|
60548
|
-
if (template === void 0) {
|
|
60549
|
-
template = require_templates();
|
|
60550
|
-
}
|
|
60551
|
-
return template(chalk2, parts.join(""));
|
|
60552
|
-
};
|
|
60553
|
-
Object.defineProperties(Chalk.prototype, styles);
|
|
60554
|
-
var chalk = Chalk();
|
|
60555
|
-
chalk.supportsColor = stdoutColor;
|
|
60556
|
-
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
60557
|
-
chalk.stderr.supportsColor = stderrColor;
|
|
60558
|
-
module2.exports = chalk;
|
|
60559
|
-
});
|
|
60560
59161
|
var require_escape_string_regexp = __commonJSMin((exports, module2) => {
|
|
60561
59162
|
"use strict";
|
|
60562
59163
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
@@ -60711,7 +59312,7 @@ var require_figures = __commonJSMin((exports, module2) => {
|
|
|
60711
59312
|
});
|
|
60712
59313
|
var require_separator = __commonJSMin((exports, module2) => {
|
|
60713
59314
|
"use strict";
|
|
60714
|
-
var chalk =
|
|
59315
|
+
var chalk = require_chalk();
|
|
60715
59316
|
var figures = require_figures();
|
|
60716
59317
|
var Separator = class {
|
|
60717
59318
|
constructor(line3) {
|
|
@@ -75325,7 +73926,7 @@ var require_cli_spinners = __commonJSMin((exports, module2) => {
|
|
|
75325
73926
|
});
|
|
75326
73927
|
module2.exports = spinners;
|
|
75327
73928
|
});
|
|
75328
|
-
var
|
|
73929
|
+
var require_browser2 = __commonJSMin((exports, module2) => {
|
|
75329
73930
|
"use strict";
|
|
75330
73931
|
module2.exports = {
|
|
75331
73932
|
info: "\u2139\uFE0F",
|
|
@@ -76164,7 +74765,7 @@ var require_inherits_browser = __commonJSMin((exports, module2) => {
|
|
|
76164
74765
|
};
|
|
76165
74766
|
}
|
|
76166
74767
|
});
|
|
76167
|
-
var
|
|
74768
|
+
var require_browser3 = __commonJSMin((exports, module2) => {
|
|
76168
74769
|
module2.exports = deprecate;
|
|
76169
74770
|
function deprecate(fn, msg) {
|
|
76170
74771
|
if (config("noDeprecation")) {
|
|
@@ -76213,7 +74814,7 @@ var require_stream_writable = __commonJSMin((exports, module2) => {
|
|
|
76213
74814
|
var Duplex;
|
|
76214
74815
|
Writable.WritableState = WritableState;
|
|
76215
74816
|
var internalUtil = {
|
|
76216
|
-
deprecate:
|
|
74817
|
+
deprecate: require_browser3()
|
|
76217
74818
|
};
|
|
76218
74819
|
var Stream = require_stream();
|
|
76219
74820
|
var Buffer2 = __require("buffer").Buffer;
|
|
@@ -78831,10 +77432,10 @@ var require_bl = __commonJSMin((exports, module2) => {
|
|
|
78831
77432
|
var require_ora2 = __commonJSMin((exports, module2) => {
|
|
78832
77433
|
"use strict";
|
|
78833
77434
|
var readline = __require("readline");
|
|
78834
|
-
var chalk =
|
|
77435
|
+
var chalk = require_chalk();
|
|
78835
77436
|
var cliCursor = require_cli_cursor();
|
|
78836
77437
|
var cliSpinners = require_cli_spinners();
|
|
78837
|
-
var logSymbols =
|
|
77438
|
+
var logSymbols = require_browser2();
|
|
78838
77439
|
var stripAnsi2 = require_strip_ansi2();
|
|
78839
77440
|
var wcwidth = require_wcwidth();
|
|
78840
77441
|
var isInteractive = require_is_interactive();
|
|
@@ -79273,7 +77874,7 @@ var require_base3 = __commonJSMin((exports, module2) => {
|
|
|
79273
77874
|
defaults: require_defaults2(),
|
|
79274
77875
|
clone: require_clone()
|
|
79275
77876
|
};
|
|
79276
|
-
var chalk =
|
|
77877
|
+
var chalk = require_chalk();
|
|
79277
77878
|
var runAsync = require_run_async();
|
|
79278
77879
|
var { filter: filter3, flatMap, share, take, takeUntil } = require_operators();
|
|
79279
77880
|
var Choices = require_choices();
|
|
@@ -79407,7 +78008,7 @@ var require_paginator = __commonJSMin((exports, module2) => {
|
|
|
79407
78008
|
sum: require_sum(),
|
|
79408
78009
|
flatten: require_flatten()
|
|
79409
78010
|
};
|
|
79410
|
-
var chalk =
|
|
78011
|
+
var chalk = require_chalk();
|
|
79411
78012
|
var Paginator = class {
|
|
79412
78013
|
constructor(screen, options3 = {}) {
|
|
79413
78014
|
const { isInfinite = true } = options3;
|
|
@@ -79481,7 +78082,7 @@ var require_list2 = __commonJSMin((exports, module2) => {
|
|
|
79481
78082
|
findIndex: require_findIndex2(),
|
|
79482
78083
|
isString: require_isString()
|
|
79483
78084
|
};
|
|
79484
|
-
var chalk =
|
|
78085
|
+
var chalk = require_chalk();
|
|
79485
78086
|
var figures = require_figures();
|
|
79486
78087
|
var cliCursor = require_cli_cursor();
|
|
79487
78088
|
var runAsync = require_run_async();
|
|
@@ -79604,7 +78205,7 @@ var require_list2 = __commonJSMin((exports, module2) => {
|
|
|
79604
78205
|
});
|
|
79605
78206
|
var require_input = __commonJSMin((exports, module2) => {
|
|
79606
78207
|
"use strict";
|
|
79607
|
-
var chalk =
|
|
78208
|
+
var chalk = require_chalk();
|
|
79608
78209
|
var { map: map2, takeUntil } = require_operators();
|
|
79609
78210
|
var Base = require_base3();
|
|
79610
78211
|
var observe2 = require_events();
|
|
@@ -79698,7 +78299,7 @@ var require_confirm = __commonJSMin((exports, module2) => {
|
|
|
79698
78299
|
extend: require_extend(),
|
|
79699
78300
|
isBoolean: require_isBoolean()
|
|
79700
78301
|
};
|
|
79701
|
-
var chalk =
|
|
78302
|
+
var chalk = require_chalk();
|
|
79702
78303
|
var { take, takeUntil } = require_operators();
|
|
79703
78304
|
var Base = require_base3();
|
|
79704
78305
|
var observe2 = require_events();
|
|
@@ -79758,7 +78359,7 @@ var require_rawlist = __commonJSMin((exports, module2) => {
|
|
|
79758
78359
|
isNumber: require_isNumber(),
|
|
79759
78360
|
findIndex: require_findIndex2()
|
|
79760
78361
|
};
|
|
79761
|
-
var chalk =
|
|
78362
|
+
var chalk = require_chalk();
|
|
79762
78363
|
var { map: map2, takeUntil } = require_operators();
|
|
79763
78364
|
var Base = require_base3();
|
|
79764
78365
|
var Separator = require_separator();
|
|
@@ -80011,7 +78612,7 @@ var require_expand2 = __commonJSMin((exports, module2) => {
|
|
|
80011
78612
|
isNumber: require_isNumber(),
|
|
80012
78613
|
findIndex: require_findIndex2()
|
|
80013
78614
|
};
|
|
80014
|
-
var chalk =
|
|
78615
|
+
var chalk = require_chalk();
|
|
80015
78616
|
var { map: map2, takeUntil } = require_operators();
|
|
80016
78617
|
var Base = require_base3();
|
|
80017
78618
|
var Separator = require_separator();
|
|
@@ -80182,7 +78783,7 @@ var require_checkbox = __commonJSMin((exports, module2) => {
|
|
|
80182
78783
|
map: require_map2(),
|
|
80183
78784
|
isString: require_isString()
|
|
80184
78785
|
};
|
|
80185
|
-
var chalk =
|
|
78786
|
+
var chalk = require_chalk();
|
|
80186
78787
|
var cliCursor = require_cli_cursor();
|
|
80187
78788
|
var figures = require_figures();
|
|
80188
78789
|
var { map: map2, takeUntil } = require_operators();
|
|
@@ -80349,7 +78950,7 @@ var require_checkbox = __commonJSMin((exports, module2) => {
|
|
|
80349
78950
|
});
|
|
80350
78951
|
var require_password = __commonJSMin((exports, module2) => {
|
|
80351
78952
|
"use strict";
|
|
80352
|
-
var chalk =
|
|
78953
|
+
var chalk = require_chalk();
|
|
80353
78954
|
var { map: map2, takeUntil } = require_operators();
|
|
80354
78955
|
var Base = require_base3();
|
|
80355
78956
|
var observe2 = require_events();
|
|
@@ -96867,7 +95468,7 @@ var require_main = __commonJSMin((exports) => {
|
|
|
96867
95468
|
});
|
|
96868
95469
|
var require_editor = __commonJSMin((exports, module2) => {
|
|
96869
95470
|
"use strict";
|
|
96870
|
-
var chalk =
|
|
95471
|
+
var chalk = require_chalk();
|
|
96871
95472
|
var { editAsync } = require_main();
|
|
96872
95473
|
var Base = require_base3();
|
|
96873
95474
|
var observe2 = require_events();
|
|
@@ -109735,7 +108336,7 @@ var init_esm6 = __esmMin(() => {
|
|
|
109735
108336
|
});
|
|
109736
108337
|
var require_separator2 = __commonJSMin((exports, module2) => {
|
|
109737
108338
|
"use strict";
|
|
109738
|
-
var chalk =
|
|
108339
|
+
var chalk = require_chalk();
|
|
109739
108340
|
var figures = require_figures();
|
|
109740
108341
|
var Separator = class {
|
|
109741
108342
|
constructor(line3) {
|
|
@@ -110185,7 +108786,7 @@ var require_base4 = __commonJSMin((exports, module2) => {
|
|
|
110185
108786
|
defaults: require_defaults2(),
|
|
110186
108787
|
clone: require_clone()
|
|
110187
108788
|
};
|
|
110188
|
-
var chalk =
|
|
108789
|
+
var chalk = require_chalk();
|
|
110189
108790
|
var runAsync = require_run_async();
|
|
110190
108791
|
var { filter: filter3, flatMap, share, take, takeUntil } = require_operators();
|
|
110191
108792
|
var Choices = require_choices2();
|
|
@@ -110294,7 +108895,7 @@ var require_events2 = __commonJSMin((exports, module2) => {
|
|
|
110294
108895
|
});
|
|
110295
108896
|
var require_paginator2 = __commonJSMin((exports, module2) => {
|
|
110296
108897
|
"use strict";
|
|
110297
|
-
var chalk =
|
|
108898
|
+
var chalk = require_chalk();
|
|
110298
108899
|
var Paginator = class {
|
|
110299
108900
|
constructor(screen, options3 = {}) {
|
|
110300
108901
|
const { isInfinite = true } = options3;
|
|
@@ -110363,7 +108964,7 @@ var require_incrementListIndex2 = __commonJSMin((exports, module2) => {
|
|
|
110363
108964
|
});
|
|
110364
108965
|
var require_list3 = __commonJSMin((exports, module2) => {
|
|
110365
108966
|
"use strict";
|
|
110366
|
-
var chalk =
|
|
108967
|
+
var chalk = require_chalk();
|
|
110367
108968
|
var figures = require_figures();
|
|
110368
108969
|
var cliCursor = require_cli_cursor();
|
|
110369
108970
|
var runAsync = require_run_async();
|
|
@@ -110486,7 +109087,7 @@ var require_list3 = __commonJSMin((exports, module2) => {
|
|
|
110486
109087
|
});
|
|
110487
109088
|
var require_input2 = __commonJSMin((exports, module2) => {
|
|
110488
109089
|
"use strict";
|
|
110489
|
-
var chalk =
|
|
109090
|
+
var chalk = require_chalk();
|
|
110490
109091
|
var { map: map2, takeUntil } = require_operators();
|
|
110491
109092
|
var Base = require_base4();
|
|
110492
109093
|
var observe2 = require_events2();
|
|
@@ -110567,7 +109168,7 @@ var require_number2 = __commonJSMin((exports, module2) => {
|
|
|
110567
109168
|
});
|
|
110568
109169
|
var require_confirm2 = __commonJSMin((exports, module2) => {
|
|
110569
109170
|
"use strict";
|
|
110570
|
-
var chalk =
|
|
109171
|
+
var chalk = require_chalk();
|
|
110571
109172
|
var { take, takeUntil } = require_operators();
|
|
110572
109173
|
var Base = require_base4();
|
|
110573
109174
|
var observe2 = require_events2();
|
|
@@ -110622,7 +109223,7 @@ var require_confirm2 = __commonJSMin((exports, module2) => {
|
|
|
110622
109223
|
});
|
|
110623
109224
|
var require_rawlist2 = __commonJSMin((exports, module2) => {
|
|
110624
109225
|
"use strict";
|
|
110625
|
-
var chalk =
|
|
109226
|
+
var chalk = require_chalk();
|
|
110626
109227
|
var { map: map2, takeUntil } = require_operators();
|
|
110627
109228
|
var Base = require_base4();
|
|
110628
109229
|
var Separator = require_separator2();
|
|
@@ -110761,7 +109362,7 @@ var require_rawlist2 = __commonJSMin((exports, module2) => {
|
|
|
110761
109362
|
});
|
|
110762
109363
|
var require_expand3 = __commonJSMin((exports, module2) => {
|
|
110763
109364
|
"use strict";
|
|
110764
|
-
var chalk =
|
|
109365
|
+
var chalk = require_chalk();
|
|
110765
109366
|
var { map: map2, takeUntil } = require_operators();
|
|
110766
109367
|
var Base = require_base4();
|
|
110767
109368
|
var Separator = require_separator2();
|
|
@@ -110927,7 +109528,7 @@ var require_expand3 = __commonJSMin((exports, module2) => {
|
|
|
110927
109528
|
});
|
|
110928
109529
|
var require_checkbox2 = __commonJSMin((exports, module2) => {
|
|
110929
109530
|
"use strict";
|
|
110930
|
-
var chalk =
|
|
109531
|
+
var chalk = require_chalk();
|
|
110931
109532
|
var cliCursor = require_cli_cursor();
|
|
110932
109533
|
var figures = require_figures();
|
|
110933
109534
|
var { map: map2, takeUntil } = require_operators();
|
|
@@ -111093,7 +109694,7 @@ var require_checkbox2 = __commonJSMin((exports, module2) => {
|
|
|
111093
109694
|
});
|
|
111094
109695
|
var require_password2 = __commonJSMin((exports, module2) => {
|
|
111095
109696
|
"use strict";
|
|
111096
|
-
var chalk =
|
|
109697
|
+
var chalk = require_chalk();
|
|
111097
109698
|
var { map: map2, takeUntil } = require_operators();
|
|
111098
109699
|
var Base = require_base4();
|
|
111099
109700
|
var observe2 = require_events2();
|
|
@@ -111166,7 +109767,7 @@ var require_password2 = __commonJSMin((exports, module2) => {
|
|
|
111166
109767
|
});
|
|
111167
109768
|
var require_editor2 = __commonJSMin((exports, module2) => {
|
|
111168
109769
|
"use strict";
|
|
111169
|
-
var chalk =
|
|
109770
|
+
var chalk = require_chalk();
|
|
111170
109771
|
var { editAsync } = require_main();
|
|
111171
109772
|
var Base = require_base4();
|
|
111172
109773
|
var observe2 = require_events2();
|
|
@@ -112714,8 +111315,6 @@ var init_zh = __esmMin(() => {
|
|
|
112714
111315
|
"function": {
|
|
112715
111316
|
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
|
112716
111317
|
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
|
112717
|
-
less: "\u542F\u7528 Less \u652F\u6301",
|
|
112718
|
-
sass: "\u542F\u7528 Sass \u652F\u6301",
|
|
112719
111318
|
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
|
112720
111319
|
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
|
112721
111320
|
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
|
@@ -112807,8 +111406,6 @@ var init_en = __esmMin(() => {
|
|
|
112807
111406
|
"function": {
|
|
112808
111407
|
self: "Enable features",
|
|
112809
111408
|
tailwindcss: "Enable Tailwind CSS",
|
|
112810
|
-
less: "Enable Less",
|
|
112811
|
-
sass: "Enable Sass",
|
|
112812
111409
|
bff: "Enable BFF",
|
|
112813
111410
|
micro_frontend: "Enable Micro Frontend",
|
|
112814
111411
|
i18n: "Enable Internationalization (i18n)",
|
|
@@ -112916,7 +111513,7 @@ function getSolutionNameFromSubSolution(solution) {
|
|
|
112916
111513
|
}
|
|
112917
111514
|
return solution;
|
|
112918
111515
|
}
|
|
112919
|
-
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, getSolutionSchema, getScenesSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, EslintGenerator;
|
|
111516
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, getSolutionSchema, getScenesSchema, BaseGenerator, PackagesGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, EslintGenerator;
|
|
112920
111517
|
var init_solution = __esmMin(() => {
|
|
112921
111518
|
init_toConsumableArray();
|
|
112922
111519
|
init_defineProperty();
|
|
@@ -113009,6 +111606,7 @@ var init_solution = __esmMin(() => {
|
|
|
113009
111606
|
};
|
|
113010
111607
|
};
|
|
113011
111608
|
BaseGenerator = "@modern-js/base-generator";
|
|
111609
|
+
PackagesGenerator = "@modern-js/packages-generator";
|
|
113012
111610
|
SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
|
113013
111611
|
SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
|
113014
111612
|
ChangesetGenerator = "@modern-js/changeset-generator";
|
|
@@ -113370,8 +111968,6 @@ var init_common3 = __esmMin(() => {
|
|
|
113370
111968
|
})(ActionElement || (ActionElement = {}));
|
|
113371
111969
|
(function(ActionFunction2) {
|
|
113372
111970
|
ActionFunction2["TailwindCSS"] = "tailwindcss";
|
|
113373
|
-
ActionFunction2["Less"] = "less";
|
|
113374
|
-
ActionFunction2["Sass"] = "sass";
|
|
113375
111971
|
ActionFunction2["BFF"] = "bff";
|
|
113376
111972
|
ActionFunction2["MicroFrontend"] = "micro_frontend";
|
|
113377
111973
|
ActionFunction2["I18n"] = "i18n";
|
|
@@ -113401,10 +111997,6 @@ var init_common3 = __esmMin(() => {
|
|
|
113401
111997
|
}), _ActionElementText);
|
|
113402
111998
|
ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
|
|
113403
111999
|
return i18n.t(localeKeys.action["function"].tailwindcss);
|
|
113404
|
-
}), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
|
|
113405
|
-
return i18n.t(localeKeys.action["function"].less);
|
|
113406
|
-
}), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
|
|
113407
|
-
return i18n.t(localeKeys.action["function"].sass);
|
|
113408
112000
|
}), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
|
|
113409
112001
|
return i18n.t(localeKeys.action["function"].bff);
|
|
113410
112002
|
}), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
|
|
@@ -113441,8 +112033,6 @@ var init_mwa2 = __esmMin(() => {
|
|
|
113441
112033
|
MWAActionTypes = [ActionType.Element, ActionType.Function, ActionType.Refactor];
|
|
113442
112034
|
MWAActionFunctions = [
|
|
113443
112035
|
ActionFunction.TailwindCSS,
|
|
113444
|
-
ActionFunction.Less,
|
|
113445
|
-
ActionFunction.Sass,
|
|
113446
112036
|
ActionFunction.BFF,
|
|
113447
112037
|
ActionFunction.SSG,
|
|
113448
112038
|
ActionFunction.MicroFrontend,
|
|
@@ -113536,12 +112126,12 @@ var init_mwa2 = __esmMin(() => {
|
|
|
113536
112126
|
}), _properties)
|
|
113537
112127
|
};
|
|
113538
112128
|
};
|
|
113539
|
-
MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.
|
|
112129
|
+
MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
|
|
113540
112130
|
MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
|
|
113541
112131
|
MWAActionFunctionsAppendTypeContent = (_MWAActionFunctionsAp = {}, _defineProperty(_MWAActionFunctionsAp, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />"), _defineProperty(_MWAActionFunctionsAp, ActionFunction.Test, "/// <reference types='@modern-js/plugin-testing/types' />"), _MWAActionFunctionsAp);
|
|
113542
112132
|
MWAActionRefactorDependencies = _defineProperty({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-legacy");
|
|
113543
112133
|
MWAActionReactorAppendTypeContent = _defineProperty({}, ActionRefactor.ReactRouter5, "/// <reference types='@modern-js/plugin-router-legacy/types' />");
|
|
113544
|
-
MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.
|
|
112134
|
+
MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.ReactRouter5, "@modern-js/router-legacy-generator")), _MWANewActionGenerato);
|
|
113545
112135
|
});
|
|
113546
112136
|
var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, getModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
|
|
113547
112137
|
var init_module2 = __esmMin(() => {
|
|
@@ -113551,8 +112141,6 @@ var init_module2 = __esmMin(() => {
|
|
|
113551
112141
|
ModuleActionTypes = [ActionType.Function];
|
|
113552
112142
|
ModuleActionFunctions = [
|
|
113553
112143
|
ActionFunction.TailwindCSS,
|
|
113554
|
-
ActionFunction.Less,
|
|
113555
|
-
ActionFunction.Sass,
|
|
113556
112144
|
ActionFunction.Storybook,
|
|
113557
112145
|
ActionFunction.RuntimeApi
|
|
113558
112146
|
];
|
|
@@ -113597,10 +112185,10 @@ var init_module2 = __esmMin(() => {
|
|
|
113597
112185
|
})
|
|
113598
112186
|
};
|
|
113599
112187
|
};
|
|
113600
|
-
ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.
|
|
112188
|
+
ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
|
|
113601
112189
|
ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
|
|
113602
112190
|
ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
|
|
113603
|
-
ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.
|
|
112191
|
+
ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
|
|
113604
112192
|
});
|
|
113605
112193
|
var _MonorepoNewActionCon, getMonorepoNewActionSchema, MonorepoNewActionConfig;
|
|
113606
112194
|
var init_monorepo2 = __esmMin(() => {
|
|
@@ -113714,6 +112302,7 @@ __export2(treeshaking_exports5, {
|
|
|
113714
112302
|
MonorepoNewActionConfig: () => MonorepoNewActionConfig,
|
|
113715
112303
|
PackageManager: () => PackageManager,
|
|
113716
112304
|
PackageManagerName: () => PackageManagerName,
|
|
112305
|
+
PackagesGenerator: () => PackagesGenerator,
|
|
113717
112306
|
Solution: () => Solution,
|
|
113718
112307
|
SolutionDefaultConfig: () => SolutionDefaultConfig,
|
|
113719
112308
|
SolutionGenerator: () => SolutionGenerator,
|
|
@@ -142866,8 +141455,8 @@ ${stats.stack}` : "";
|
|
|
142866
141455
|
}
|
|
142867
141456
|
function formatWebpackMessages(json) {
|
|
142868
141457
|
var _a2, _b, _c;
|
|
142869
|
-
const formattedErrors = (_a2 = json.errors) === null || _a2 === void 0 ? void 0 : _a2.map(formatMessage);
|
|
142870
|
-
const formattedWarnings = (_b = json.warnings) === null || _b === void 0 ? void 0 : _b.map(formatMessage);
|
|
141458
|
+
const formattedErrors = (_a2 = json === null || json === void 0 ? void 0 : json.errors) === null || _a2 === void 0 ? void 0 : _a2.map(formatMessage);
|
|
141459
|
+
const formattedWarnings = (_b = json === null || json === void 0 ? void 0 : json.warnings) === null || _b === void 0 ? void 0 : _b.map(formatMessage);
|
|
142871
141460
|
const result = {
|
|
142872
141461
|
errors: formattedErrors || [],
|
|
142873
141462
|
warnings: formattedWarnings || []
|
|
@@ -143345,9 +141934,6 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
143345
141934
|
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
|
143346
141935
|
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
|
143347
141936
|
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
143348
|
-
"@modern-js/plugin-less": "@modern-js/plugin-less/cli",
|
|
143349
|
-
"@modern-js/plugin-sass": "@modern-js/plugin-sass/cli",
|
|
143350
|
-
"@modern-js/plugin-esbuild": "@modern-js/plugin-esbuild/cli",
|
|
143351
141937
|
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
143352
141938
|
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
143353
141939
|
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
@@ -143408,24 +141994,6 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
143408
141994
|
}
|
|
143409
141995
|
}
|
|
143410
141996
|
],
|
|
143411
|
-
"@modern-js/plugin-esbuild": [
|
|
143412
|
-
{
|
|
143413
|
-
target: "tools.esbuild",
|
|
143414
|
-
schema: { typeof: ["object"] }
|
|
143415
|
-
}
|
|
143416
|
-
],
|
|
143417
|
-
"@modern-js/plugin-less": [
|
|
143418
|
-
{
|
|
143419
|
-
target: "tools.less",
|
|
143420
|
-
schema: { typeof: ["object", "function"] }
|
|
143421
|
-
}
|
|
143422
|
-
],
|
|
143423
|
-
"@modern-js/plugin-sass": [
|
|
143424
|
-
{
|
|
143425
|
-
target: "tools.sass",
|
|
143426
|
-
schema: { typeof: ["object", "function"] }
|
|
143427
|
-
}
|
|
143428
|
-
],
|
|
143429
141997
|
"@modern-js/plugin-tailwindcss": [
|
|
143430
141998
|
{
|
|
143431
141999
|
target: "tools.tailwindcss",
|
|
@@ -143812,7 +142380,7 @@ var require_path2 = __commonJSMin((exports) => {
|
|
|
143812
142380
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
143813
142381
|
};
|
|
143814
142382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143815
|
-
exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
142383
|
+
exports.splitPathString = exports.getRealTemporaryDirectory = exports.upwardPaths = exports._joinPathParts = exports.compilePathMatcherRegExp = exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
143816
142384
|
var path_1 = __importDefault(__require("path"));
|
|
143817
142385
|
var os_1 = __importDefault(__require("os"));
|
|
143818
142386
|
var fs_1 = __importDefault(__require("fs"));
|
|
@@ -143833,6 +142401,34 @@ var require_path2 = __commonJSMin((exports) => {
|
|
|
143833
142401
|
return path_1.default.resolve(...parts);
|
|
143834
142402
|
};
|
|
143835
142403
|
exports.getTemplatePath = getTemplatePath;
|
|
142404
|
+
function compilePathMatcherRegExp(match) {
|
|
142405
|
+
if (typeof match !== "string") {
|
|
142406
|
+
return match;
|
|
142407
|
+
}
|
|
142408
|
+
const escaped = compiled_1.lodash.escapeRegExp(match);
|
|
142409
|
+
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
142410
|
+
}
|
|
142411
|
+
exports.compilePathMatcherRegExp = compilePathMatcherRegExp;
|
|
142412
|
+
var _joinPathParts = (_part, i, parts) => (0, compiled_1.lodash)(parts).filter((part) => !["/", "\\"].includes(part)).tap((parts2) => parts2.unshift("")).slice(0, i + 2).join("/");
|
|
142413
|
+
exports._joinPathParts = _joinPathParts;
|
|
142414
|
+
function upwardPaths(start) {
|
|
142415
|
+
return (0, compiled_1.lodash)(start).split(/[/\\]/).filter(Boolean).map(exports._joinPathParts).reverse().push("/").value();
|
|
142416
|
+
}
|
|
142417
|
+
exports.upwardPaths = upwardPaths;
|
|
142418
|
+
function getRealTemporaryDirectory() {
|
|
142419
|
+
let ret = null;
|
|
142420
|
+
try {
|
|
142421
|
+
ret = os_1.default.tmpdir();
|
|
142422
|
+
ret = fs_1.default.realpathSync(ret);
|
|
142423
|
+
} catch {
|
|
142424
|
+
}
|
|
142425
|
+
return ret;
|
|
142426
|
+
}
|
|
142427
|
+
exports.getRealTemporaryDirectory = getRealTemporaryDirectory;
|
|
142428
|
+
function splitPathString(str) {
|
|
142429
|
+
return str.split(/[\\/]/);
|
|
142430
|
+
}
|
|
142431
|
+
exports.splitPathString = splitPathString;
|
|
143836
142432
|
});
|
|
143837
142433
|
var require_runtimeExports2 = __commonJSMin((exports) => {
|
|
143838
142434
|
"use strict";
|
|
@@ -143896,6 +142492,52 @@ var require_readTsConfig2 = __commonJSMin((exports) => {
|
|
|
143896
142492
|
};
|
|
143897
142493
|
exports.readTsConfigByFile = readTsConfigByFile;
|
|
143898
142494
|
});
|
|
142495
|
+
var require_pathSerializer = __commonJSMin((exports) => {
|
|
142496
|
+
"use strict";
|
|
142497
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
142498
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
142499
|
+
};
|
|
142500
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142501
|
+
exports.createDefaultPathMatchers = exports.applyMatcherReplacement = exports.applyPathMatcher = exports.matchUpwardPathsAsUnknown = void 0;
|
|
142502
|
+
var os_1 = __importDefault(__require("os"));
|
|
142503
|
+
var lodash_1 = __importDefault(require_lodash2());
|
|
142504
|
+
var path_1 = require_path2();
|
|
142505
|
+
var matchUpwardPathsAsUnknown = (p) => (0, lodash_1.default)((0, path_1.upwardPaths)((0, path_1.normalizeToPosixPath)(p))).map((match) => ({ match, mark: "unknown" })).slice(1, -1).value();
|
|
142506
|
+
exports.matchUpwardPathsAsUnknown = matchUpwardPathsAsUnknown;
|
|
142507
|
+
function applyPathMatcher(matcher, str, options3 = {}) {
|
|
142508
|
+
const regex2 = (0, path_1.compilePathMatcherRegExp)(matcher.match);
|
|
142509
|
+
const replacer = (substring, ...args) => {
|
|
142510
|
+
if (options3.minPartials && (0, path_1.splitPathString)(substring).length < options3.minPartials) {
|
|
142511
|
+
return substring;
|
|
142512
|
+
}
|
|
142513
|
+
const ret = typeof matcher.mark === "string" ? matcher.mark : matcher.mark(substring, ...args);
|
|
142514
|
+
return `<${lodash_1.default.snakeCase(ret).toUpperCase()}>`;
|
|
142515
|
+
};
|
|
142516
|
+
return str.replace(regex2, replacer);
|
|
142517
|
+
}
|
|
142518
|
+
exports.applyPathMatcher = applyPathMatcher;
|
|
142519
|
+
function applyMatcherReplacement(matchers, str, options3 = {}) {
|
|
142520
|
+
return matchers.reduce((ret, matcher) => {
|
|
142521
|
+
return applyPathMatcher(matcher, ret, options3);
|
|
142522
|
+
}, str);
|
|
142523
|
+
}
|
|
142524
|
+
exports.applyMatcherReplacement = applyMatcherReplacement;
|
|
142525
|
+
var createDefaultPathMatchers = (root) => {
|
|
142526
|
+
const ret = [
|
|
142527
|
+
{
|
|
142528
|
+
match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/,
|
|
142529
|
+
mark: "pnpmInner"
|
|
142530
|
+
}
|
|
142531
|
+
];
|
|
142532
|
+
const tmpdir = (0, path_1.getRealTemporaryDirectory)();
|
|
142533
|
+
tmpdir && ret.push({ match: tmpdir, mark: "temp" });
|
|
142534
|
+
ret.push({ match: os_1.default.tmpdir(), mark: "temp" });
|
|
142535
|
+
ret.push({ match: os_1.default.homedir(), mark: "home" });
|
|
142536
|
+
ret.push(...(0, exports.matchUpwardPathsAsUnknown)(root));
|
|
142537
|
+
return ret;
|
|
142538
|
+
};
|
|
142539
|
+
exports.createDefaultPathMatchers = createDefaultPathMatchers;
|
|
142540
|
+
});
|
|
143899
142541
|
var require_generateMetaTags2 = __commonJSMin((exports) => {
|
|
143900
142542
|
"use strict";
|
|
143901
142543
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -144382,7 +143024,8 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
144382
143024
|
SVG: "svg",
|
|
144383
143025
|
PUG: "pug",
|
|
144384
143026
|
TOML: "toml",
|
|
144385
|
-
YAML: "yaml"
|
|
143027
|
+
YAML: "yaml",
|
|
143028
|
+
JS_BFF_API: "js-bff-api"
|
|
144386
143029
|
},
|
|
144387
143030
|
ONE_OF: {
|
|
144388
143031
|
JS: "js",
|
|
@@ -144521,6 +143164,27 @@ var require_plugin = __commonJSMin((exports) => {
|
|
|
144521
143164
|
}
|
|
144522
143165
|
exports.getInternalPlugins = getInternalPlugins;
|
|
144523
143166
|
});
|
|
143167
|
+
var require_routes = __commonJSMin((exports) => {
|
|
143168
|
+
"use strict";
|
|
143169
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143170
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
143171
|
+
};
|
|
143172
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143173
|
+
exports.getRouteId = exports.getPathWithoutExt = void 0;
|
|
143174
|
+
var path_1 = __importDefault(__require("path"));
|
|
143175
|
+
var path_2 = require_path2();
|
|
143176
|
+
var getPathWithoutExt = (filename) => {
|
|
143177
|
+
const extname = path_1.default.extname(filename);
|
|
143178
|
+
return filename.slice(0, -extname.length);
|
|
143179
|
+
};
|
|
143180
|
+
exports.getPathWithoutExt = getPathWithoutExt;
|
|
143181
|
+
var getRouteId = (componentPath, routesDir) => {
|
|
143182
|
+
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
|
143183
|
+
const id = (0, exports.getPathWithoutExt)(relativePath);
|
|
143184
|
+
return id;
|
|
143185
|
+
};
|
|
143186
|
+
exports.getRouteId = getRouteId;
|
|
143187
|
+
});
|
|
144524
143188
|
var require_dist2 = __commonJSMin((exports) => {
|
|
144525
143189
|
"use strict";
|
|
144526
143190
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -144567,6 +143231,7 @@ var require_dist2 = __commonJSMin((exports) => {
|
|
|
144567
143231
|
__exportStar(require_runtimeExports2(), exports);
|
|
144568
143232
|
__exportStar(require_readTsConfig2(), exports);
|
|
144569
143233
|
__exportStar(require_path2(), exports);
|
|
143234
|
+
__exportStar(require_pathSerializer(), exports);
|
|
144570
143235
|
__exportStar(require_generateMetaTags2(), exports);
|
|
144571
143236
|
__exportStar(require_prettyInstructions2(), exports);
|
|
144572
143237
|
__exportStar(require_alias2(), exports);
|
|
@@ -144582,6 +143247,7 @@ var require_dist2 = __commonJSMin((exports) => {
|
|
|
144582
143247
|
__exportStar(require_chainId2(), exports);
|
|
144583
143248
|
__exportStar(require_version2(), exports);
|
|
144584
143249
|
__exportStar(require_plugin(), exports);
|
|
143250
|
+
__exportStar(require_routes(), exports);
|
|
144585
143251
|
});
|
|
144586
143252
|
var require_strip_ansi4 = __commonJSMin((exports) => {
|
|
144587
143253
|
"use strict";
|