@prisma/internals 6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.4 → 6.6.0-integration-mcp.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GIOVJ5SL.js → chunk-226NCPFJ.js} +8 -8
- package/dist/{chunk-TV34NMBZ.js → chunk-2H6XXXKO.js} +15 -12
- package/dist/{chunk-EPXBOIA5.js → chunk-2I3VYCA7.js} +5 -5
- package/dist/{chunk-2QTAK7KO.js → chunk-2LDG4PID.js} +5 -5
- package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
- package/dist/{chunk-KB5DKCI4.js → chunk-3GYXMWBM.js} +7 -7
- package/dist/{chunk-75AJJ2SV.js → chunk-5UX7SDF4.js} +5 -5
- package/dist/{chunk-FQ7QE2EZ.js → chunk-6NIWKOQM.js} +5 -5
- package/dist/{chunk-GHQCAB3L.js → chunk-6TAXYMS3.js} +8 -8
- package/dist/{chunk-DG3K2SNH.js → chunk-A4UZ4UKB.js} +66 -127
- package/dist/{chunk-PQE76XRR.js → chunk-AP52B62F.js} +5 -5
- package/dist/{chunk-HG3YOAAE.js → chunk-AXD7KB4D.js} +5 -5
- package/dist/chunk-DYV47NUW.js +796 -0
- package/dist/{chunk-DKSUHQGA.js → chunk-EKESIUIK.js} +7 -7
- package/dist/{chunk-VVXXJDPA.js → chunk-FAPPXX7W.js} +8 -8
- package/dist/{chunk-OB2FZR3M.js → chunk-FAQHAUBK.js} +7 -7
- package/dist/{chunk-BTWAF3S4.js → chunk-GV244NDE.js} +7 -7
- package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
- package/dist/{chunk-IDINCQMN.js → chunk-IWTEX7EE.js} +9 -780
- package/dist/{chunk-XKIMYV5V.js → chunk-J27QTOYA.js} +5 -5
- package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
- package/dist/{chunk-AZI6RPIA.js → chunk-L2SLJQ2Z.js} +5 -5
- package/dist/{chunk-55SEKKR3.js → chunk-LWBLVV7Y.js} +8 -8
- package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
- package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
- package/dist/{chunk-QGJH4P4N.js → chunk-OQ2NRV2Y.js} +5 -5
- package/dist/{chunk-U4BGZ3NX.js → chunk-OUQPIJFQ.js} +5 -5
- package/dist/{chunk-MSQTODVE.js → chunk-OYKZ24UT.js} +8 -8
- package/dist/{chunk-EWWOTVR3.js → chunk-PE6DXWOX.js} +6 -6
- package/dist/{chunk-XQSHUIJ5.js → chunk-PING5S2U.js} +8 -8
- package/dist/{chunk-HX2VLZFY.js → chunk-PWGQKUJW.js} +66 -127
- package/dist/{chunk-K5W6WZ6E.js → chunk-R4ZFFYJA.js} +238 -2734
- package/dist/{chunk-3DQANJMY.js → chunk-SAAMENIS.js} +7 -7
- package/dist/{chunk-LHESHKC2.js → chunk-SNSJWJTA.js} +5 -5
- package/dist/{chunk-YR5KNFKN.js → chunk-SUOMIRLO.js} +6 -6
- package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
- package/dist/{chunk-VVPSLVOR.js → chunk-URRVX2VQ.js} +3 -4
- package/dist/{chunk-EZI6235B.js → chunk-VTJOX6HO.js} +5 -5
- package/dist/{chunk-ABTIXQDX.js → chunk-VYJSNZF3.js} +4 -4
- package/dist/{chunk-POCSNJFA.js → chunk-W2PA2Y65.js} +5 -5
- package/dist/{chunk-ETYWYJBX.js → chunk-WF5LZFJS.js} +12 -12
- package/dist/cli/checkUnsupportedDataProxy.js +33 -32
- package/dist/cli/directoryConfig.d.ts +1 -1
- package/dist/cli/directoryConfig.js +2 -2
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +36 -36
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +33 -32
- package/dist/cli/schemaContext.d.ts +4 -3
- package/dist/cli/schemaContext.js +33 -32
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +32 -31
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +7 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +9 -8
- package/dist/engine-commands/index.js +43 -42
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +32 -31
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +32 -31
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +33 -32
- package/dist/get-generators/getGenerators.js +35 -34
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -3
- package/dist/getPackedPackage.js +5 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -75
- package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
- package/dist/resolveBinary.js +8 -7
- package/dist/schemaEngineCommands.js +10 -9
- package/dist/sendPanic.js +4 -4
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +32 -31
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +5 -5
- package/dist/utils/loadEnvFile.js +32 -31
- package/dist/wasm.js +4 -4
- package/package.json +11 -11
@@ -26,20 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_R4ZFFYJA_exports = {};
|
30
|
+
__export(chunk_R4ZFFYJA_exports, {
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
32
32
|
readPackageUp: () => readPackageUp,
|
33
33
|
require_p_map: () => require_p_map,
|
34
34
|
toPath: () => toPath2
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
-
var
|
36
|
+
module.exports = __toCommonJS(chunk_R4ZFFYJA_exports);
|
37
|
+
var import_chunk_URRVX2VQ = require("./chunk-URRVX2VQ.js");
|
38
38
|
var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
|
39
39
|
var import_chunk_UZTXEBTM = require("./chunk-UZTXEBTM.js");
|
40
|
-
var
|
40
|
+
var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
|
41
41
|
var import_chunk_MM4ARWWY = require("./chunk-MM4ARWWY.js");
|
42
42
|
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
43
|
+
var import_chunk_DYV47NUW = require("./chunk-DYV47NUW.js");
|
43
44
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
44
45
|
var import_fs = __toESM(require("fs"));
|
45
46
|
var import_path = __toESM(require("path"));
|
@@ -3165,6 +3166,77 @@ var require_lib5 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3165
3166
|
walk.Walker = Walker;
|
3166
3167
|
}
|
3167
3168
|
});
|
3169
|
+
var require_picocolors = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3170
|
+
"../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module2) {
|
3171
|
+
"use strict";
|
3172
|
+
var p = process || {};
|
3173
|
+
var argv = p.argv || [];
|
3174
|
+
var env = p.env || {};
|
3175
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
3176
|
+
var formatter = (open, close, replace = open) => (input) => {
|
3177
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
3178
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
3179
|
+
};
|
3180
|
+
var replaceClose = (string, close, replace, index) => {
|
3181
|
+
let result = "", cursor = 0;
|
3182
|
+
do {
|
3183
|
+
result += string.substring(cursor, index) + replace;
|
3184
|
+
cursor = index + close.length;
|
3185
|
+
index = string.indexOf(close, cursor);
|
3186
|
+
} while (~index);
|
3187
|
+
return result + string.substring(cursor);
|
3188
|
+
};
|
3189
|
+
var createColors = (enabled = isColorSupported) => {
|
3190
|
+
let f = enabled ? formatter : () => String;
|
3191
|
+
return {
|
3192
|
+
isColorSupported: enabled,
|
3193
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
3194
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
3195
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
3196
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
3197
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
3198
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
3199
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
3200
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
3201
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
3202
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
3203
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
3204
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
3205
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
3206
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
3207
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
3208
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
3209
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
3210
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
3211
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
3212
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
3213
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
3214
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
3215
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
3216
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
3217
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
3218
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
3219
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
3220
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
3221
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
3222
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
3223
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
3224
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
3225
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
3226
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
3227
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
3228
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
3229
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
3230
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
3231
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
3232
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
3233
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
3234
|
+
};
|
3235
|
+
};
|
3236
|
+
module2.exports = createColors();
|
3237
|
+
module2.exports.createColors = createColors;
|
3238
|
+
}
|
3239
|
+
});
|
3168
3240
|
var require_js_tokens = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3169
3241
|
"../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js"(exports) {
|
3170
3242
|
"use strict";
|
@@ -3186,1587 +3258,51 @@ var require_js_tokens = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3186
3258
|
};
|
3187
3259
|
}
|
3188
3260
|
});
|
3189
|
-
var
|
3190
|
-
"../../node_modules/.pnpm
|
3191
|
-
"use strict";
|
3192
|
-
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
3193
|
-
module2.exports = function(str) {
|
3194
|
-
if (typeof str !== "string") {
|
3195
|
-
throw new TypeError("Expected a string");
|
3196
|
-
}
|
3197
|
-
return str.replace(matchOperatorsRe, "\\$&");
|
3198
|
-
};
|
3199
|
-
}
|
3200
|
-
});
|
3201
|
-
var require_color_name = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3202
|
-
"../../node_modules/.pnpm/color-name@1.1.3/node_modules/color-name/index.js"(exports, module2) {
|
3203
|
-
"use strict";
|
3204
|
-
module2.exports = {
|
3205
|
-
"aliceblue": [240, 248, 255],
|
3206
|
-
"antiquewhite": [250, 235, 215],
|
3207
|
-
"aqua": [0, 255, 255],
|
3208
|
-
"aquamarine": [127, 255, 212],
|
3209
|
-
"azure": [240, 255, 255],
|
3210
|
-
"beige": [245, 245, 220],
|
3211
|
-
"bisque": [255, 228, 196],
|
3212
|
-
"black": [0, 0, 0],
|
3213
|
-
"blanchedalmond": [255, 235, 205],
|
3214
|
-
"blue": [0, 0, 255],
|
3215
|
-
"blueviolet": [138, 43, 226],
|
3216
|
-
"brown": [165, 42, 42],
|
3217
|
-
"burlywood": [222, 184, 135],
|
3218
|
-
"cadetblue": [95, 158, 160],
|
3219
|
-
"chartreuse": [127, 255, 0],
|
3220
|
-
"chocolate": [210, 105, 30],
|
3221
|
-
"coral": [255, 127, 80],
|
3222
|
-
"cornflowerblue": [100, 149, 237],
|
3223
|
-
"cornsilk": [255, 248, 220],
|
3224
|
-
"crimson": [220, 20, 60],
|
3225
|
-
"cyan": [0, 255, 255],
|
3226
|
-
"darkblue": [0, 0, 139],
|
3227
|
-
"darkcyan": [0, 139, 139],
|
3228
|
-
"darkgoldenrod": [184, 134, 11],
|
3229
|
-
"darkgray": [169, 169, 169],
|
3230
|
-
"darkgreen": [0, 100, 0],
|
3231
|
-
"darkgrey": [169, 169, 169],
|
3232
|
-
"darkkhaki": [189, 183, 107],
|
3233
|
-
"darkmagenta": [139, 0, 139],
|
3234
|
-
"darkolivegreen": [85, 107, 47],
|
3235
|
-
"darkorange": [255, 140, 0],
|
3236
|
-
"darkorchid": [153, 50, 204],
|
3237
|
-
"darkred": [139, 0, 0],
|
3238
|
-
"darksalmon": [233, 150, 122],
|
3239
|
-
"darkseagreen": [143, 188, 143],
|
3240
|
-
"darkslateblue": [72, 61, 139],
|
3241
|
-
"darkslategray": [47, 79, 79],
|
3242
|
-
"darkslategrey": [47, 79, 79],
|
3243
|
-
"darkturquoise": [0, 206, 209],
|
3244
|
-
"darkviolet": [148, 0, 211],
|
3245
|
-
"deeppink": [255, 20, 147],
|
3246
|
-
"deepskyblue": [0, 191, 255],
|
3247
|
-
"dimgray": [105, 105, 105],
|
3248
|
-
"dimgrey": [105, 105, 105],
|
3249
|
-
"dodgerblue": [30, 144, 255],
|
3250
|
-
"firebrick": [178, 34, 34],
|
3251
|
-
"floralwhite": [255, 250, 240],
|
3252
|
-
"forestgreen": [34, 139, 34],
|
3253
|
-
"fuchsia": [255, 0, 255],
|
3254
|
-
"gainsboro": [220, 220, 220],
|
3255
|
-
"ghostwhite": [248, 248, 255],
|
3256
|
-
"gold": [255, 215, 0],
|
3257
|
-
"goldenrod": [218, 165, 32],
|
3258
|
-
"gray": [128, 128, 128],
|
3259
|
-
"green": [0, 128, 0],
|
3260
|
-
"greenyellow": [173, 255, 47],
|
3261
|
-
"grey": [128, 128, 128],
|
3262
|
-
"honeydew": [240, 255, 240],
|
3263
|
-
"hotpink": [255, 105, 180],
|
3264
|
-
"indianred": [205, 92, 92],
|
3265
|
-
"indigo": [75, 0, 130],
|
3266
|
-
"ivory": [255, 255, 240],
|
3267
|
-
"khaki": [240, 230, 140],
|
3268
|
-
"lavender": [230, 230, 250],
|
3269
|
-
"lavenderblush": [255, 240, 245],
|
3270
|
-
"lawngreen": [124, 252, 0],
|
3271
|
-
"lemonchiffon": [255, 250, 205],
|
3272
|
-
"lightblue": [173, 216, 230],
|
3273
|
-
"lightcoral": [240, 128, 128],
|
3274
|
-
"lightcyan": [224, 255, 255],
|
3275
|
-
"lightgoldenrodyellow": [250, 250, 210],
|
3276
|
-
"lightgray": [211, 211, 211],
|
3277
|
-
"lightgreen": [144, 238, 144],
|
3278
|
-
"lightgrey": [211, 211, 211],
|
3279
|
-
"lightpink": [255, 182, 193],
|
3280
|
-
"lightsalmon": [255, 160, 122],
|
3281
|
-
"lightseagreen": [32, 178, 170],
|
3282
|
-
"lightskyblue": [135, 206, 250],
|
3283
|
-
"lightslategray": [119, 136, 153],
|
3284
|
-
"lightslategrey": [119, 136, 153],
|
3285
|
-
"lightsteelblue": [176, 196, 222],
|
3286
|
-
"lightyellow": [255, 255, 224],
|
3287
|
-
"lime": [0, 255, 0],
|
3288
|
-
"limegreen": [50, 205, 50],
|
3289
|
-
"linen": [250, 240, 230],
|
3290
|
-
"magenta": [255, 0, 255],
|
3291
|
-
"maroon": [128, 0, 0],
|
3292
|
-
"mediumaquamarine": [102, 205, 170],
|
3293
|
-
"mediumblue": [0, 0, 205],
|
3294
|
-
"mediumorchid": [186, 85, 211],
|
3295
|
-
"mediumpurple": [147, 112, 219],
|
3296
|
-
"mediumseagreen": [60, 179, 113],
|
3297
|
-
"mediumslateblue": [123, 104, 238],
|
3298
|
-
"mediumspringgreen": [0, 250, 154],
|
3299
|
-
"mediumturquoise": [72, 209, 204],
|
3300
|
-
"mediumvioletred": [199, 21, 133],
|
3301
|
-
"midnightblue": [25, 25, 112],
|
3302
|
-
"mintcream": [245, 255, 250],
|
3303
|
-
"mistyrose": [255, 228, 225],
|
3304
|
-
"moccasin": [255, 228, 181],
|
3305
|
-
"navajowhite": [255, 222, 173],
|
3306
|
-
"navy": [0, 0, 128],
|
3307
|
-
"oldlace": [253, 245, 230],
|
3308
|
-
"olive": [128, 128, 0],
|
3309
|
-
"olivedrab": [107, 142, 35],
|
3310
|
-
"orange": [255, 165, 0],
|
3311
|
-
"orangered": [255, 69, 0],
|
3312
|
-
"orchid": [218, 112, 214],
|
3313
|
-
"palegoldenrod": [238, 232, 170],
|
3314
|
-
"palegreen": [152, 251, 152],
|
3315
|
-
"paleturquoise": [175, 238, 238],
|
3316
|
-
"palevioletred": [219, 112, 147],
|
3317
|
-
"papayawhip": [255, 239, 213],
|
3318
|
-
"peachpuff": [255, 218, 185],
|
3319
|
-
"peru": [205, 133, 63],
|
3320
|
-
"pink": [255, 192, 203],
|
3321
|
-
"plum": [221, 160, 221],
|
3322
|
-
"powderblue": [176, 224, 230],
|
3323
|
-
"purple": [128, 0, 128],
|
3324
|
-
"rebeccapurple": [102, 51, 153],
|
3325
|
-
"red": [255, 0, 0],
|
3326
|
-
"rosybrown": [188, 143, 143],
|
3327
|
-
"royalblue": [65, 105, 225],
|
3328
|
-
"saddlebrown": [139, 69, 19],
|
3329
|
-
"salmon": [250, 128, 114],
|
3330
|
-
"sandybrown": [244, 164, 96],
|
3331
|
-
"seagreen": [46, 139, 87],
|
3332
|
-
"seashell": [255, 245, 238],
|
3333
|
-
"sienna": [160, 82, 45],
|
3334
|
-
"silver": [192, 192, 192],
|
3335
|
-
"skyblue": [135, 206, 235],
|
3336
|
-
"slateblue": [106, 90, 205],
|
3337
|
-
"slategray": [112, 128, 144],
|
3338
|
-
"slategrey": [112, 128, 144],
|
3339
|
-
"snow": [255, 250, 250],
|
3340
|
-
"springgreen": [0, 255, 127],
|
3341
|
-
"steelblue": [70, 130, 180],
|
3342
|
-
"tan": [210, 180, 140],
|
3343
|
-
"teal": [0, 128, 128],
|
3344
|
-
"thistle": [216, 191, 216],
|
3345
|
-
"tomato": [255, 99, 71],
|
3346
|
-
"turquoise": [64, 224, 208],
|
3347
|
-
"violet": [238, 130, 238],
|
3348
|
-
"wheat": [245, 222, 179],
|
3349
|
-
"white": [255, 255, 255],
|
3350
|
-
"whitesmoke": [245, 245, 245],
|
3351
|
-
"yellow": [255, 255, 0],
|
3352
|
-
"yellowgreen": [154, 205, 50]
|
3353
|
-
};
|
3354
|
-
}
|
3355
|
-
});
|
3356
|
-
var require_conversions = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3357
|
-
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/conversions.js"(exports, module2) {
|
3358
|
-
"use strict";
|
3359
|
-
var cssKeywords = require_color_name();
|
3360
|
-
var reverseKeywords = {};
|
3361
|
-
for (key in cssKeywords) {
|
3362
|
-
if (cssKeywords.hasOwnProperty(key)) {
|
3363
|
-
reverseKeywords[cssKeywords[key]] = key;
|
3364
|
-
}
|
3365
|
-
}
|
3366
|
-
var key;
|
3367
|
-
var convert = module2.exports = {
|
3368
|
-
rgb: { channels: 3, labels: "rgb" },
|
3369
|
-
hsl: { channels: 3, labels: "hsl" },
|
3370
|
-
hsv: { channels: 3, labels: "hsv" },
|
3371
|
-
hwb: { channels: 3, labels: "hwb" },
|
3372
|
-
cmyk: { channels: 4, labels: "cmyk" },
|
3373
|
-
xyz: { channels: 3, labels: "xyz" },
|
3374
|
-
lab: { channels: 3, labels: "lab" },
|
3375
|
-
lch: { channels: 3, labels: "lch" },
|
3376
|
-
hex: { channels: 1, labels: ["hex"] },
|
3377
|
-
keyword: { channels: 1, labels: ["keyword"] },
|
3378
|
-
ansi16: { channels: 1, labels: ["ansi16"] },
|
3379
|
-
ansi256: { channels: 1, labels: ["ansi256"] },
|
3380
|
-
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
3381
|
-
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
3382
|
-
gray: { channels: 1, labels: ["gray"] }
|
3383
|
-
};
|
3384
|
-
for (model in convert) {
|
3385
|
-
if (convert.hasOwnProperty(model)) {
|
3386
|
-
if (!("channels" in convert[model])) {
|
3387
|
-
throw new Error("missing channels property: " + model);
|
3388
|
-
}
|
3389
|
-
if (!("labels" in convert[model])) {
|
3390
|
-
throw new Error("missing channel labels property: " + model);
|
3391
|
-
}
|
3392
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
3393
|
-
throw new Error("channel and label counts mismatch: " + model);
|
3394
|
-
}
|
3395
|
-
channels = convert[model].channels;
|
3396
|
-
labels = convert[model].labels;
|
3397
|
-
delete convert[model].channels;
|
3398
|
-
delete convert[model].labels;
|
3399
|
-
Object.defineProperty(convert[model], "channels", { value: channels });
|
3400
|
-
Object.defineProperty(convert[model], "labels", { value: labels });
|
3401
|
-
}
|
3402
|
-
}
|
3403
|
-
var channels;
|
3404
|
-
var labels;
|
3405
|
-
var model;
|
3406
|
-
convert.rgb.hsl = function(rgb) {
|
3407
|
-
var r = rgb[0] / 255;
|
3408
|
-
var g = rgb[1] / 255;
|
3409
|
-
var b = rgb[2] / 255;
|
3410
|
-
var min = Math.min(r, g, b);
|
3411
|
-
var max = Math.max(r, g, b);
|
3412
|
-
var delta = max - min;
|
3413
|
-
var h;
|
3414
|
-
var s;
|
3415
|
-
var l;
|
3416
|
-
if (max === min) {
|
3417
|
-
h = 0;
|
3418
|
-
} else if (r === max) {
|
3419
|
-
h = (g - b) / delta;
|
3420
|
-
} else if (g === max) {
|
3421
|
-
h = 2 + (b - r) / delta;
|
3422
|
-
} else if (b === max) {
|
3423
|
-
h = 4 + (r - g) / delta;
|
3424
|
-
}
|
3425
|
-
h = Math.min(h * 60, 360);
|
3426
|
-
if (h < 0) {
|
3427
|
-
h += 360;
|
3428
|
-
}
|
3429
|
-
l = (min + max) / 2;
|
3430
|
-
if (max === min) {
|
3431
|
-
s = 0;
|
3432
|
-
} else if (l <= 0.5) {
|
3433
|
-
s = delta / (max + min);
|
3434
|
-
} else {
|
3435
|
-
s = delta / (2 - max - min);
|
3436
|
-
}
|
3437
|
-
return [h, s * 100, l * 100];
|
3438
|
-
};
|
3439
|
-
convert.rgb.hsv = function(rgb) {
|
3440
|
-
var rdif;
|
3441
|
-
var gdif;
|
3442
|
-
var bdif;
|
3443
|
-
var h;
|
3444
|
-
var s;
|
3445
|
-
var r = rgb[0] / 255;
|
3446
|
-
var g = rgb[1] / 255;
|
3447
|
-
var b = rgb[2] / 255;
|
3448
|
-
var v = Math.max(r, g, b);
|
3449
|
-
var diff = v - Math.min(r, g, b);
|
3450
|
-
var diffc = function(c) {
|
3451
|
-
return (v - c) / 6 / diff + 1 / 2;
|
3452
|
-
};
|
3453
|
-
if (diff === 0) {
|
3454
|
-
h = s = 0;
|
3455
|
-
} else {
|
3456
|
-
s = diff / v;
|
3457
|
-
rdif = diffc(r);
|
3458
|
-
gdif = diffc(g);
|
3459
|
-
bdif = diffc(b);
|
3460
|
-
if (r === v) {
|
3461
|
-
h = bdif - gdif;
|
3462
|
-
} else if (g === v) {
|
3463
|
-
h = 1 / 3 + rdif - bdif;
|
3464
|
-
} else if (b === v) {
|
3465
|
-
h = 2 / 3 + gdif - rdif;
|
3466
|
-
}
|
3467
|
-
if (h < 0) {
|
3468
|
-
h += 1;
|
3469
|
-
} else if (h > 1) {
|
3470
|
-
h -= 1;
|
3471
|
-
}
|
3472
|
-
}
|
3473
|
-
return [
|
3474
|
-
h * 360,
|
3475
|
-
s * 100,
|
3476
|
-
v * 100
|
3477
|
-
];
|
3478
|
-
};
|
3479
|
-
convert.rgb.hwb = function(rgb) {
|
3480
|
-
var r = rgb[0];
|
3481
|
-
var g = rgb[1];
|
3482
|
-
var b = rgb[2];
|
3483
|
-
var h = convert.rgb.hsl(rgb)[0];
|
3484
|
-
var w = 1 / 255 * Math.min(r, Math.min(g, b));
|
3485
|
-
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
3486
|
-
return [h, w * 100, b * 100];
|
3487
|
-
};
|
3488
|
-
convert.rgb.cmyk = function(rgb) {
|
3489
|
-
var r = rgb[0] / 255;
|
3490
|
-
var g = rgb[1] / 255;
|
3491
|
-
var b = rgb[2] / 255;
|
3492
|
-
var c;
|
3493
|
-
var m;
|
3494
|
-
var y;
|
3495
|
-
var k;
|
3496
|
-
k = Math.min(1 - r, 1 - g, 1 - b);
|
3497
|
-
c = (1 - r - k) / (1 - k) || 0;
|
3498
|
-
m = (1 - g - k) / (1 - k) || 0;
|
3499
|
-
y = (1 - b - k) / (1 - k) || 0;
|
3500
|
-
return [c * 100, m * 100, y * 100, k * 100];
|
3501
|
-
};
|
3502
|
-
function comparativeDistance(x, y) {
|
3503
|
-
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);
|
3504
|
-
}
|
3505
|
-
convert.rgb.keyword = function(rgb) {
|
3506
|
-
var reversed = reverseKeywords[rgb];
|
3507
|
-
if (reversed) {
|
3508
|
-
return reversed;
|
3509
|
-
}
|
3510
|
-
var currentClosestDistance = Infinity;
|
3511
|
-
var currentClosestKeyword;
|
3512
|
-
for (var keyword in cssKeywords) {
|
3513
|
-
if (cssKeywords.hasOwnProperty(keyword)) {
|
3514
|
-
var value = cssKeywords[keyword];
|
3515
|
-
var distance = comparativeDistance(rgb, value);
|
3516
|
-
if (distance < currentClosestDistance) {
|
3517
|
-
currentClosestDistance = distance;
|
3518
|
-
currentClosestKeyword = keyword;
|
3519
|
-
}
|
3520
|
-
}
|
3521
|
-
}
|
3522
|
-
return currentClosestKeyword;
|
3523
|
-
};
|
3524
|
-
convert.keyword.rgb = function(keyword) {
|
3525
|
-
return cssKeywords[keyword];
|
3526
|
-
};
|
3527
|
-
convert.rgb.xyz = function(rgb) {
|
3528
|
-
var r = rgb[0] / 255;
|
3529
|
-
var g = rgb[1] / 255;
|
3530
|
-
var b = rgb[2] / 255;
|
3531
|
-
r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;
|
3532
|
-
g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
|
3533
|
-
b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
|
3534
|
-
var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
3535
|
-
var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
3536
|
-
var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
3537
|
-
return [x * 100, y * 100, z * 100];
|
3538
|
-
};
|
3539
|
-
convert.rgb.lab = function(rgb) {
|
3540
|
-
var xyz = convert.rgb.xyz(rgb);
|
3541
|
-
var x = xyz[0];
|
3542
|
-
var y = xyz[1];
|
3543
|
-
var z = xyz[2];
|
3544
|
-
var l;
|
3545
|
-
var a;
|
3546
|
-
var b;
|
3547
|
-
x /= 95.047;
|
3548
|
-
y /= 100;
|
3549
|
-
z /= 108.883;
|
3550
|
-
x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
|
3551
|
-
y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
|
3552
|
-
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
3553
|
-
l = 116 * y - 16;
|
3554
|
-
a = 500 * (x - y);
|
3555
|
-
b = 200 * (y - z);
|
3556
|
-
return [l, a, b];
|
3557
|
-
};
|
3558
|
-
convert.hsl.rgb = function(hsl) {
|
3559
|
-
var h = hsl[0] / 360;
|
3560
|
-
var s = hsl[1] / 100;
|
3561
|
-
var l = hsl[2] / 100;
|
3562
|
-
var t1;
|
3563
|
-
var t2;
|
3564
|
-
var t3;
|
3565
|
-
var rgb;
|
3566
|
-
var val;
|
3567
|
-
if (s === 0) {
|
3568
|
-
val = l * 255;
|
3569
|
-
return [val, val, val];
|
3570
|
-
}
|
3571
|
-
if (l < 0.5) {
|
3572
|
-
t2 = l * (1 + s);
|
3573
|
-
} else {
|
3574
|
-
t2 = l + s - l * s;
|
3575
|
-
}
|
3576
|
-
t1 = 2 * l - t2;
|
3577
|
-
rgb = [0, 0, 0];
|
3578
|
-
for (var i = 0; i < 3; i++) {
|
3579
|
-
t3 = h + 1 / 3 * -(i - 1);
|
3580
|
-
if (t3 < 0) {
|
3581
|
-
t3++;
|
3582
|
-
}
|
3583
|
-
if (t3 > 1) {
|
3584
|
-
t3--;
|
3585
|
-
}
|
3586
|
-
if (6 * t3 < 1) {
|
3587
|
-
val = t1 + (t2 - t1) * 6 * t3;
|
3588
|
-
} else if (2 * t3 < 1) {
|
3589
|
-
val = t2;
|
3590
|
-
} else if (3 * t3 < 2) {
|
3591
|
-
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
3592
|
-
} else {
|
3593
|
-
val = t1;
|
3594
|
-
}
|
3595
|
-
rgb[i] = val * 255;
|
3596
|
-
}
|
3597
|
-
return rgb;
|
3598
|
-
};
|
3599
|
-
convert.hsl.hsv = function(hsl) {
|
3600
|
-
var h = hsl[0];
|
3601
|
-
var s = hsl[1] / 100;
|
3602
|
-
var l = hsl[2] / 100;
|
3603
|
-
var smin = s;
|
3604
|
-
var lmin = Math.max(l, 0.01);
|
3605
|
-
var sv;
|
3606
|
-
var v;
|
3607
|
-
l *= 2;
|
3608
|
-
s *= l <= 1 ? l : 2 - l;
|
3609
|
-
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
3610
|
-
v = (l + s) / 2;
|
3611
|
-
sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
3612
|
-
return [h, sv * 100, v * 100];
|
3613
|
-
};
|
3614
|
-
convert.hsv.rgb = function(hsv) {
|
3615
|
-
var h = hsv[0] / 60;
|
3616
|
-
var s = hsv[1] / 100;
|
3617
|
-
var v = hsv[2] / 100;
|
3618
|
-
var hi = Math.floor(h) % 6;
|
3619
|
-
var f = h - Math.floor(h);
|
3620
|
-
var p = 255 * v * (1 - s);
|
3621
|
-
var q = 255 * v * (1 - s * f);
|
3622
|
-
var t = 255 * v * (1 - s * (1 - f));
|
3623
|
-
v *= 255;
|
3624
|
-
switch (hi) {
|
3625
|
-
case 0:
|
3626
|
-
return [v, t, p];
|
3627
|
-
case 1:
|
3628
|
-
return [q, v, p];
|
3629
|
-
case 2:
|
3630
|
-
return [p, v, t];
|
3631
|
-
case 3:
|
3632
|
-
return [p, q, v];
|
3633
|
-
case 4:
|
3634
|
-
return [t, p, v];
|
3635
|
-
case 5:
|
3636
|
-
return [v, p, q];
|
3637
|
-
}
|
3638
|
-
};
|
3639
|
-
convert.hsv.hsl = function(hsv) {
|
3640
|
-
var h = hsv[0];
|
3641
|
-
var s = hsv[1] / 100;
|
3642
|
-
var v = hsv[2] / 100;
|
3643
|
-
var vmin = Math.max(v, 0.01);
|
3644
|
-
var lmin;
|
3645
|
-
var sl;
|
3646
|
-
var l;
|
3647
|
-
l = (2 - s) * v;
|
3648
|
-
lmin = (2 - s) * vmin;
|
3649
|
-
sl = s * vmin;
|
3650
|
-
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
3651
|
-
sl = sl || 0;
|
3652
|
-
l /= 2;
|
3653
|
-
return [h, sl * 100, l * 100];
|
3654
|
-
};
|
3655
|
-
convert.hwb.rgb = function(hwb) {
|
3656
|
-
var h = hwb[0] / 360;
|
3657
|
-
var wh = hwb[1] / 100;
|
3658
|
-
var bl = hwb[2] / 100;
|
3659
|
-
var ratio = wh + bl;
|
3660
|
-
var i;
|
3661
|
-
var v;
|
3662
|
-
var f;
|
3663
|
-
var n;
|
3664
|
-
if (ratio > 1) {
|
3665
|
-
wh /= ratio;
|
3666
|
-
bl /= ratio;
|
3667
|
-
}
|
3668
|
-
i = Math.floor(6 * h);
|
3669
|
-
v = 1 - bl;
|
3670
|
-
f = 6 * h - i;
|
3671
|
-
if ((i & 1) !== 0) {
|
3672
|
-
f = 1 - f;
|
3673
|
-
}
|
3674
|
-
n = wh + f * (v - wh);
|
3675
|
-
var r;
|
3676
|
-
var g;
|
3677
|
-
var b;
|
3678
|
-
switch (i) {
|
3679
|
-
default:
|
3680
|
-
case 6:
|
3681
|
-
case 0:
|
3682
|
-
r = v;
|
3683
|
-
g = n;
|
3684
|
-
b = wh;
|
3685
|
-
break;
|
3686
|
-
case 1:
|
3687
|
-
r = n;
|
3688
|
-
g = v;
|
3689
|
-
b = wh;
|
3690
|
-
break;
|
3691
|
-
case 2:
|
3692
|
-
r = wh;
|
3693
|
-
g = v;
|
3694
|
-
b = n;
|
3695
|
-
break;
|
3696
|
-
case 3:
|
3697
|
-
r = wh;
|
3698
|
-
g = n;
|
3699
|
-
b = v;
|
3700
|
-
break;
|
3701
|
-
case 4:
|
3702
|
-
r = n;
|
3703
|
-
g = wh;
|
3704
|
-
b = v;
|
3705
|
-
break;
|
3706
|
-
case 5:
|
3707
|
-
r = v;
|
3708
|
-
g = wh;
|
3709
|
-
b = n;
|
3710
|
-
break;
|
3711
|
-
}
|
3712
|
-
return [r * 255, g * 255, b * 255];
|
3713
|
-
};
|
3714
|
-
convert.cmyk.rgb = function(cmyk) {
|
3715
|
-
var c = cmyk[0] / 100;
|
3716
|
-
var m = cmyk[1] / 100;
|
3717
|
-
var y = cmyk[2] / 100;
|
3718
|
-
var k = cmyk[3] / 100;
|
3719
|
-
var r;
|
3720
|
-
var g;
|
3721
|
-
var b;
|
3722
|
-
r = 1 - Math.min(1, c * (1 - k) + k);
|
3723
|
-
g = 1 - Math.min(1, m * (1 - k) + k);
|
3724
|
-
b = 1 - Math.min(1, y * (1 - k) + k);
|
3725
|
-
return [r * 255, g * 255, b * 255];
|
3726
|
-
};
|
3727
|
-
convert.xyz.rgb = function(xyz) {
|
3728
|
-
var x = xyz[0] / 100;
|
3729
|
-
var y = xyz[1] / 100;
|
3730
|
-
var z = xyz[2] / 100;
|
3731
|
-
var r;
|
3732
|
-
var g;
|
3733
|
-
var b;
|
3734
|
-
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
3735
|
-
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
3736
|
-
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
3737
|
-
r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
|
3738
|
-
g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
|
3739
|
-
b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
|
3740
|
-
r = Math.min(Math.max(0, r), 1);
|
3741
|
-
g = Math.min(Math.max(0, g), 1);
|
3742
|
-
b = Math.min(Math.max(0, b), 1);
|
3743
|
-
return [r * 255, g * 255, b * 255];
|
3744
|
-
};
|
3745
|
-
convert.xyz.lab = function(xyz) {
|
3746
|
-
var x = xyz[0];
|
3747
|
-
var y = xyz[1];
|
3748
|
-
var z = xyz[2];
|
3749
|
-
var l;
|
3750
|
-
var a;
|
3751
|
-
var b;
|
3752
|
-
x /= 95.047;
|
3753
|
-
y /= 100;
|
3754
|
-
z /= 108.883;
|
3755
|
-
x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
|
3756
|
-
y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
|
3757
|
-
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
3758
|
-
l = 116 * y - 16;
|
3759
|
-
a = 500 * (x - y);
|
3760
|
-
b = 200 * (y - z);
|
3761
|
-
return [l, a, b];
|
3762
|
-
};
|
3763
|
-
convert.lab.xyz = function(lab) {
|
3764
|
-
var l = lab[0];
|
3765
|
-
var a = lab[1];
|
3766
|
-
var b = lab[2];
|
3767
|
-
var x;
|
3768
|
-
var y;
|
3769
|
-
var z;
|
3770
|
-
y = (l + 16) / 116;
|
3771
|
-
x = a / 500 + y;
|
3772
|
-
z = y - b / 200;
|
3773
|
-
var y2 = Math.pow(y, 3);
|
3774
|
-
var x2 = Math.pow(x, 3);
|
3775
|
-
var z2 = Math.pow(z, 3);
|
3776
|
-
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
3777
|
-
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
3778
|
-
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
3779
|
-
x *= 95.047;
|
3780
|
-
y *= 100;
|
3781
|
-
z *= 108.883;
|
3782
|
-
return [x, y, z];
|
3783
|
-
};
|
3784
|
-
convert.lab.lch = function(lab) {
|
3785
|
-
var l = lab[0];
|
3786
|
-
var a = lab[1];
|
3787
|
-
var b = lab[2];
|
3788
|
-
var hr;
|
3789
|
-
var h;
|
3790
|
-
var c;
|
3791
|
-
hr = Math.atan2(b, a);
|
3792
|
-
h = hr * 360 / 2 / Math.PI;
|
3793
|
-
if (h < 0) {
|
3794
|
-
h += 360;
|
3795
|
-
}
|
3796
|
-
c = Math.sqrt(a * a + b * b);
|
3797
|
-
return [l, c, h];
|
3798
|
-
};
|
3799
|
-
convert.lch.lab = function(lch) {
|
3800
|
-
var l = lch[0];
|
3801
|
-
var c = lch[1];
|
3802
|
-
var h = lch[2];
|
3803
|
-
var a;
|
3804
|
-
var b;
|
3805
|
-
var hr;
|
3806
|
-
hr = h / 360 * 2 * Math.PI;
|
3807
|
-
a = c * Math.cos(hr);
|
3808
|
-
b = c * Math.sin(hr);
|
3809
|
-
return [l, a, b];
|
3810
|
-
};
|
3811
|
-
convert.rgb.ansi16 = function(args) {
|
3812
|
-
var r = args[0];
|
3813
|
-
var g = args[1];
|
3814
|
-
var b = args[2];
|
3815
|
-
var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2];
|
3816
|
-
value = Math.round(value / 50);
|
3817
|
-
if (value === 0) {
|
3818
|
-
return 30;
|
3819
|
-
}
|
3820
|
-
var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
3821
|
-
if (value === 2) {
|
3822
|
-
ansi += 60;
|
3823
|
-
}
|
3824
|
-
return ansi;
|
3825
|
-
};
|
3826
|
-
convert.hsv.ansi16 = function(args) {
|
3827
|
-
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
3828
|
-
};
|
3829
|
-
convert.rgb.ansi256 = function(args) {
|
3830
|
-
var r = args[0];
|
3831
|
-
var g = args[1];
|
3832
|
-
var b = args[2];
|
3833
|
-
if (r === g && g === b) {
|
3834
|
-
if (r < 8) {
|
3835
|
-
return 16;
|
3836
|
-
}
|
3837
|
-
if (r > 248) {
|
3838
|
-
return 231;
|
3839
|
-
}
|
3840
|
-
return Math.round((r - 8) / 247 * 24) + 232;
|
3841
|
-
}
|
3842
|
-
var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
3843
|
-
return ansi;
|
3844
|
-
};
|
3845
|
-
convert.ansi16.rgb = function(args) {
|
3846
|
-
var color = args % 10;
|
3847
|
-
if (color === 0 || color === 7) {
|
3848
|
-
if (args > 50) {
|
3849
|
-
color += 3.5;
|
3850
|
-
}
|
3851
|
-
color = color / 10.5 * 255;
|
3852
|
-
return [color, color, color];
|
3853
|
-
}
|
3854
|
-
var mult = (~~(args > 50) + 1) * 0.5;
|
3855
|
-
var r = (color & 1) * mult * 255;
|
3856
|
-
var g = (color >> 1 & 1) * mult * 255;
|
3857
|
-
var b = (color >> 2 & 1) * mult * 255;
|
3858
|
-
return [r, g, b];
|
3859
|
-
};
|
3860
|
-
convert.ansi256.rgb = function(args) {
|
3861
|
-
if (args >= 232) {
|
3862
|
-
var c = (args - 232) * 10 + 8;
|
3863
|
-
return [c, c, c];
|
3864
|
-
}
|
3865
|
-
args -= 16;
|
3866
|
-
var rem;
|
3867
|
-
var r = Math.floor(args / 36) / 5 * 255;
|
3868
|
-
var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
3869
|
-
var b = rem % 6 / 5 * 255;
|
3870
|
-
return [r, g, b];
|
3871
|
-
};
|
3872
|
-
convert.rgb.hex = function(args) {
|
3873
|
-
var integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
3874
|
-
var string = integer.toString(16).toUpperCase();
|
3875
|
-
return "000000".substring(string.length) + string;
|
3876
|
-
};
|
3877
|
-
convert.hex.rgb = function(args) {
|
3878
|
-
var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
3879
|
-
if (!match) {
|
3880
|
-
return [0, 0, 0];
|
3881
|
-
}
|
3882
|
-
var colorString = match[0];
|
3883
|
-
if (match[0].length === 3) {
|
3884
|
-
colorString = colorString.split("").map(function(char) {
|
3885
|
-
return char + char;
|
3886
|
-
}).join("");
|
3887
|
-
}
|
3888
|
-
var integer = parseInt(colorString, 16);
|
3889
|
-
var r = integer >> 16 & 255;
|
3890
|
-
var g = integer >> 8 & 255;
|
3891
|
-
var b = integer & 255;
|
3892
|
-
return [r, g, b];
|
3893
|
-
};
|
3894
|
-
convert.rgb.hcg = function(rgb) {
|
3895
|
-
var r = rgb[0] / 255;
|
3896
|
-
var g = rgb[1] / 255;
|
3897
|
-
var b = rgb[2] / 255;
|
3898
|
-
var max = Math.max(Math.max(r, g), b);
|
3899
|
-
var min = Math.min(Math.min(r, g), b);
|
3900
|
-
var chroma = max - min;
|
3901
|
-
var grayscale;
|
3902
|
-
var hue;
|
3903
|
-
if (chroma < 1) {
|
3904
|
-
grayscale = min / (1 - chroma);
|
3905
|
-
} else {
|
3906
|
-
grayscale = 0;
|
3907
|
-
}
|
3908
|
-
if (chroma <= 0) {
|
3909
|
-
hue = 0;
|
3910
|
-
} else if (max === r) {
|
3911
|
-
hue = (g - b) / chroma % 6;
|
3912
|
-
} else if (max === g) {
|
3913
|
-
hue = 2 + (b - r) / chroma;
|
3914
|
-
} else {
|
3915
|
-
hue = 4 + (r - g) / chroma + 4;
|
3916
|
-
}
|
3917
|
-
hue /= 6;
|
3918
|
-
hue %= 1;
|
3919
|
-
return [hue * 360, chroma * 100, grayscale * 100];
|
3920
|
-
};
|
3921
|
-
convert.hsl.hcg = function(hsl) {
|
3922
|
-
var s = hsl[1] / 100;
|
3923
|
-
var l = hsl[2] / 100;
|
3924
|
-
var c = 1;
|
3925
|
-
var f = 0;
|
3926
|
-
if (l < 0.5) {
|
3927
|
-
c = 2 * s * l;
|
3928
|
-
} else {
|
3929
|
-
c = 2 * s * (1 - l);
|
3930
|
-
}
|
3931
|
-
if (c < 1) {
|
3932
|
-
f = (l - 0.5 * c) / (1 - c);
|
3933
|
-
}
|
3934
|
-
return [hsl[0], c * 100, f * 100];
|
3935
|
-
};
|
3936
|
-
convert.hsv.hcg = function(hsv) {
|
3937
|
-
var s = hsv[1] / 100;
|
3938
|
-
var v = hsv[2] / 100;
|
3939
|
-
var c = s * v;
|
3940
|
-
var f = 0;
|
3941
|
-
if (c < 1) {
|
3942
|
-
f = (v - c) / (1 - c);
|
3943
|
-
}
|
3944
|
-
return [hsv[0], c * 100, f * 100];
|
3945
|
-
};
|
3946
|
-
convert.hcg.rgb = function(hcg) {
|
3947
|
-
var h = hcg[0] / 360;
|
3948
|
-
var c = hcg[1] / 100;
|
3949
|
-
var g = hcg[2] / 100;
|
3950
|
-
if (c === 0) {
|
3951
|
-
return [g * 255, g * 255, g * 255];
|
3952
|
-
}
|
3953
|
-
var pure = [0, 0, 0];
|
3954
|
-
var hi = h % 1 * 6;
|
3955
|
-
var v = hi % 1;
|
3956
|
-
var w = 1 - v;
|
3957
|
-
var mg = 0;
|
3958
|
-
switch (Math.floor(hi)) {
|
3959
|
-
case 0:
|
3960
|
-
pure[0] = 1;
|
3961
|
-
pure[1] = v;
|
3962
|
-
pure[2] = 0;
|
3963
|
-
break;
|
3964
|
-
case 1:
|
3965
|
-
pure[0] = w;
|
3966
|
-
pure[1] = 1;
|
3967
|
-
pure[2] = 0;
|
3968
|
-
break;
|
3969
|
-
case 2:
|
3970
|
-
pure[0] = 0;
|
3971
|
-
pure[1] = 1;
|
3972
|
-
pure[2] = v;
|
3973
|
-
break;
|
3974
|
-
case 3:
|
3975
|
-
pure[0] = 0;
|
3976
|
-
pure[1] = w;
|
3977
|
-
pure[2] = 1;
|
3978
|
-
break;
|
3979
|
-
case 4:
|
3980
|
-
pure[0] = v;
|
3981
|
-
pure[1] = 0;
|
3982
|
-
pure[2] = 1;
|
3983
|
-
break;
|
3984
|
-
default:
|
3985
|
-
pure[0] = 1;
|
3986
|
-
pure[1] = 0;
|
3987
|
-
pure[2] = w;
|
3988
|
-
}
|
3989
|
-
mg = (1 - c) * g;
|
3990
|
-
return [
|
3991
|
-
(c * pure[0] + mg) * 255,
|
3992
|
-
(c * pure[1] + mg) * 255,
|
3993
|
-
(c * pure[2] + mg) * 255
|
3994
|
-
];
|
3995
|
-
};
|
3996
|
-
convert.hcg.hsv = function(hcg) {
|
3997
|
-
var c = hcg[1] / 100;
|
3998
|
-
var g = hcg[2] / 100;
|
3999
|
-
var v = c + g * (1 - c);
|
4000
|
-
var f = 0;
|
4001
|
-
if (v > 0) {
|
4002
|
-
f = c / v;
|
4003
|
-
}
|
4004
|
-
return [hcg[0], f * 100, v * 100];
|
4005
|
-
};
|
4006
|
-
convert.hcg.hsl = function(hcg) {
|
4007
|
-
var c = hcg[1] / 100;
|
4008
|
-
var g = hcg[2] / 100;
|
4009
|
-
var l = g * (1 - c) + 0.5 * c;
|
4010
|
-
var s = 0;
|
4011
|
-
if (l > 0 && l < 0.5) {
|
4012
|
-
s = c / (2 * l);
|
4013
|
-
} else if (l >= 0.5 && l < 1) {
|
4014
|
-
s = c / (2 * (1 - l));
|
4015
|
-
}
|
4016
|
-
return [hcg[0], s * 100, l * 100];
|
4017
|
-
};
|
4018
|
-
convert.hcg.hwb = function(hcg) {
|
4019
|
-
var c = hcg[1] / 100;
|
4020
|
-
var g = hcg[2] / 100;
|
4021
|
-
var v = c + g * (1 - c);
|
4022
|
-
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
4023
|
-
};
|
4024
|
-
convert.hwb.hcg = function(hwb) {
|
4025
|
-
var w = hwb[1] / 100;
|
4026
|
-
var b = hwb[2] / 100;
|
4027
|
-
var v = 1 - b;
|
4028
|
-
var c = v - w;
|
4029
|
-
var g = 0;
|
4030
|
-
if (c < 1) {
|
4031
|
-
g = (v - c) / (1 - c);
|
4032
|
-
}
|
4033
|
-
return [hwb[0], c * 100, g * 100];
|
4034
|
-
};
|
4035
|
-
convert.apple.rgb = function(apple) {
|
4036
|
-
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
4037
|
-
};
|
4038
|
-
convert.rgb.apple = function(rgb) {
|
4039
|
-
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
4040
|
-
};
|
4041
|
-
convert.gray.rgb = function(args) {
|
4042
|
-
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
4043
|
-
};
|
4044
|
-
convert.gray.hsl = convert.gray.hsv = function(args) {
|
4045
|
-
return [0, 0, args[0]];
|
4046
|
-
};
|
4047
|
-
convert.gray.hwb = function(gray) {
|
4048
|
-
return [0, 100, gray[0]];
|
4049
|
-
};
|
4050
|
-
convert.gray.cmyk = function(gray) {
|
4051
|
-
return [0, 0, 0, gray[0]];
|
4052
|
-
};
|
4053
|
-
convert.gray.lab = function(gray) {
|
4054
|
-
return [gray[0], 0, 0];
|
4055
|
-
};
|
4056
|
-
convert.gray.hex = function(gray) {
|
4057
|
-
var val = Math.round(gray[0] / 100 * 255) & 255;
|
4058
|
-
var integer = (val << 16) + (val << 8) + val;
|
4059
|
-
var string = integer.toString(16).toUpperCase();
|
4060
|
-
return "000000".substring(string.length) + string;
|
4061
|
-
};
|
4062
|
-
convert.rgb.gray = function(rgb) {
|
4063
|
-
var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
4064
|
-
return [val / 255 * 100];
|
4065
|
-
};
|
4066
|
-
}
|
4067
|
-
});
|
4068
|
-
var require_route = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4069
|
-
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/route.js"(exports, module2) {
|
4070
|
-
"use strict";
|
4071
|
-
var conversions = require_conversions();
|
4072
|
-
function buildGraph() {
|
4073
|
-
var graph = {};
|
4074
|
-
var models = Object.keys(conversions);
|
4075
|
-
for (var len = models.length, i = 0; i < len; i++) {
|
4076
|
-
graph[models[i]] = {
|
4077
|
-
// http://jsperf.com/1-vs-infinity
|
4078
|
-
// micro-opt, but this is simple.
|
4079
|
-
distance: -1,
|
4080
|
-
parent: null
|
4081
|
-
};
|
4082
|
-
}
|
4083
|
-
return graph;
|
4084
|
-
}
|
4085
|
-
function deriveBFS(fromModel) {
|
4086
|
-
var graph = buildGraph();
|
4087
|
-
var queue = [fromModel];
|
4088
|
-
graph[fromModel].distance = 0;
|
4089
|
-
while (queue.length) {
|
4090
|
-
var current = queue.pop();
|
4091
|
-
var adjacents = Object.keys(conversions[current]);
|
4092
|
-
for (var len = adjacents.length, i = 0; i < len; i++) {
|
4093
|
-
var adjacent = adjacents[i];
|
4094
|
-
var node = graph[adjacent];
|
4095
|
-
if (node.distance === -1) {
|
4096
|
-
node.distance = graph[current].distance + 1;
|
4097
|
-
node.parent = current;
|
4098
|
-
queue.unshift(adjacent);
|
4099
|
-
}
|
4100
|
-
}
|
4101
|
-
}
|
4102
|
-
return graph;
|
4103
|
-
}
|
4104
|
-
function link(from, to) {
|
4105
|
-
return function(args) {
|
4106
|
-
return to(from(args));
|
4107
|
-
};
|
4108
|
-
}
|
4109
|
-
function wrapConversion(toModel, graph) {
|
4110
|
-
var path5 = [graph[toModel].parent, toModel];
|
4111
|
-
var fn = conversions[graph[toModel].parent][toModel];
|
4112
|
-
var cur = graph[toModel].parent;
|
4113
|
-
while (graph[cur].parent) {
|
4114
|
-
path5.unshift(graph[cur].parent);
|
4115
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
4116
|
-
cur = graph[cur].parent;
|
4117
|
-
}
|
4118
|
-
fn.conversion = path5;
|
4119
|
-
return fn;
|
4120
|
-
}
|
4121
|
-
module2.exports = function(fromModel) {
|
4122
|
-
var graph = deriveBFS(fromModel);
|
4123
|
-
var conversion = {};
|
4124
|
-
var models = Object.keys(graph);
|
4125
|
-
for (var len = models.length, i = 0; i < len; i++) {
|
4126
|
-
var toModel = models[i];
|
4127
|
-
var node = graph[toModel];
|
4128
|
-
if (node.parent === null) {
|
4129
|
-
continue;
|
4130
|
-
}
|
4131
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
4132
|
-
}
|
4133
|
-
return conversion;
|
4134
|
-
};
|
4135
|
-
}
|
4136
|
-
});
|
4137
|
-
var require_color_convert = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4138
|
-
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/index.js"(exports, module2) {
|
4139
|
-
"use strict";
|
4140
|
-
var conversions = require_conversions();
|
4141
|
-
var route = require_route();
|
4142
|
-
var convert = {};
|
4143
|
-
var models = Object.keys(conversions);
|
4144
|
-
function wrapRaw(fn) {
|
4145
|
-
var wrappedFn = function(args) {
|
4146
|
-
if (args === void 0 || args === null) {
|
4147
|
-
return args;
|
4148
|
-
}
|
4149
|
-
if (arguments.length > 1) {
|
4150
|
-
args = Array.prototype.slice.call(arguments);
|
4151
|
-
}
|
4152
|
-
return fn(args);
|
4153
|
-
};
|
4154
|
-
if ("conversion" in fn) {
|
4155
|
-
wrappedFn.conversion = fn.conversion;
|
4156
|
-
}
|
4157
|
-
return wrappedFn;
|
4158
|
-
}
|
4159
|
-
function wrapRounded(fn) {
|
4160
|
-
var wrappedFn = function(args) {
|
4161
|
-
if (args === void 0 || args === null) {
|
4162
|
-
return args;
|
4163
|
-
}
|
4164
|
-
if (arguments.length > 1) {
|
4165
|
-
args = Array.prototype.slice.call(arguments);
|
4166
|
-
}
|
4167
|
-
var result = fn(args);
|
4168
|
-
if (typeof result === "object") {
|
4169
|
-
for (var len = result.length, i = 0; i < len; i++) {
|
4170
|
-
result[i] = Math.round(result[i]);
|
4171
|
-
}
|
4172
|
-
}
|
4173
|
-
return result;
|
4174
|
-
};
|
4175
|
-
if ("conversion" in fn) {
|
4176
|
-
wrappedFn.conversion = fn.conversion;
|
4177
|
-
}
|
4178
|
-
return wrappedFn;
|
4179
|
-
}
|
4180
|
-
models.forEach(function(fromModel) {
|
4181
|
-
convert[fromModel] = {};
|
4182
|
-
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
4183
|
-
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
4184
|
-
var routes = route(fromModel);
|
4185
|
-
var routeModels = Object.keys(routes);
|
4186
|
-
routeModels.forEach(function(toModel) {
|
4187
|
-
var fn = routes[toModel];
|
4188
|
-
convert[fromModel][toModel] = wrapRounded(fn);
|
4189
|
-
convert[fromModel][toModel].raw = wrapRaw(fn);
|
4190
|
-
});
|
4191
|
-
});
|
4192
|
-
module2.exports = convert;
|
4193
|
-
}
|
4194
|
-
});
|
4195
|
-
var require_ansi_styles = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4196
|
-
"../../node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
4197
|
-
"use strict";
|
4198
|
-
var colorConvert = require_color_convert();
|
4199
|
-
var wrapAnsi16 = (fn, offset) => function() {
|
4200
|
-
const code = fn.apply(colorConvert, arguments);
|
4201
|
-
return `\x1B[${code + offset}m`;
|
4202
|
-
};
|
4203
|
-
var wrapAnsi256 = (fn, offset) => function() {
|
4204
|
-
const code = fn.apply(colorConvert, arguments);
|
4205
|
-
return `\x1B[${38 + offset};5;${code}m`;
|
4206
|
-
};
|
4207
|
-
var wrapAnsi16m = (fn, offset) => function() {
|
4208
|
-
const rgb = fn.apply(colorConvert, arguments);
|
4209
|
-
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
4210
|
-
};
|
4211
|
-
function assembleStyles() {
|
4212
|
-
const codes = /* @__PURE__ */ new Map();
|
4213
|
-
const styles = {
|
4214
|
-
modifier: {
|
4215
|
-
reset: [0, 0],
|
4216
|
-
// 21 isn't widely supported and 22 does the same thing
|
4217
|
-
bold: [1, 22],
|
4218
|
-
dim: [2, 22],
|
4219
|
-
italic: [3, 23],
|
4220
|
-
underline: [4, 24],
|
4221
|
-
inverse: [7, 27],
|
4222
|
-
hidden: [8, 28],
|
4223
|
-
strikethrough: [9, 29]
|
4224
|
-
},
|
4225
|
-
color: {
|
4226
|
-
black: [30, 39],
|
4227
|
-
red: [31, 39],
|
4228
|
-
green: [32, 39],
|
4229
|
-
yellow: [33, 39],
|
4230
|
-
blue: [34, 39],
|
4231
|
-
magenta: [35, 39],
|
4232
|
-
cyan: [36, 39],
|
4233
|
-
white: [37, 39],
|
4234
|
-
gray: [90, 39],
|
4235
|
-
// Bright color
|
4236
|
-
redBright: [91, 39],
|
4237
|
-
greenBright: [92, 39],
|
4238
|
-
yellowBright: [93, 39],
|
4239
|
-
blueBright: [94, 39],
|
4240
|
-
magentaBright: [95, 39],
|
4241
|
-
cyanBright: [96, 39],
|
4242
|
-
whiteBright: [97, 39]
|
4243
|
-
},
|
4244
|
-
bgColor: {
|
4245
|
-
bgBlack: [40, 49],
|
4246
|
-
bgRed: [41, 49],
|
4247
|
-
bgGreen: [42, 49],
|
4248
|
-
bgYellow: [43, 49],
|
4249
|
-
bgBlue: [44, 49],
|
4250
|
-
bgMagenta: [45, 49],
|
4251
|
-
bgCyan: [46, 49],
|
4252
|
-
bgWhite: [47, 49],
|
4253
|
-
// Bright color
|
4254
|
-
bgBlackBright: [100, 49],
|
4255
|
-
bgRedBright: [101, 49],
|
4256
|
-
bgGreenBright: [102, 49],
|
4257
|
-
bgYellowBright: [103, 49],
|
4258
|
-
bgBlueBright: [104, 49],
|
4259
|
-
bgMagentaBright: [105, 49],
|
4260
|
-
bgCyanBright: [106, 49],
|
4261
|
-
bgWhiteBright: [107, 49]
|
4262
|
-
}
|
4263
|
-
};
|
4264
|
-
styles.color.grey = styles.color.gray;
|
4265
|
-
for (const groupName of Object.keys(styles)) {
|
4266
|
-
const group = styles[groupName];
|
4267
|
-
for (const styleName of Object.keys(group)) {
|
4268
|
-
const style = group[styleName];
|
4269
|
-
styles[styleName] = {
|
4270
|
-
open: `\x1B[${style[0]}m`,
|
4271
|
-
close: `\x1B[${style[1]}m`
|
4272
|
-
};
|
4273
|
-
group[styleName] = styles[styleName];
|
4274
|
-
codes.set(style[0], style[1]);
|
4275
|
-
}
|
4276
|
-
Object.defineProperty(styles, groupName, {
|
4277
|
-
value: group,
|
4278
|
-
enumerable: false
|
4279
|
-
});
|
4280
|
-
Object.defineProperty(styles, "codes", {
|
4281
|
-
value: codes,
|
4282
|
-
enumerable: false
|
4283
|
-
});
|
4284
|
-
}
|
4285
|
-
const ansi2ansi = (n) => n;
|
4286
|
-
const rgb2rgb = (r, g, b) => [r, g, b];
|
4287
|
-
styles.color.close = "\x1B[39m";
|
4288
|
-
styles.bgColor.close = "\x1B[49m";
|
4289
|
-
styles.color.ansi = {
|
4290
|
-
ansi: wrapAnsi16(ansi2ansi, 0)
|
4291
|
-
};
|
4292
|
-
styles.color.ansi256 = {
|
4293
|
-
ansi256: wrapAnsi256(ansi2ansi, 0)
|
4294
|
-
};
|
4295
|
-
styles.color.ansi16m = {
|
4296
|
-
rgb: wrapAnsi16m(rgb2rgb, 0)
|
4297
|
-
};
|
4298
|
-
styles.bgColor.ansi = {
|
4299
|
-
ansi: wrapAnsi16(ansi2ansi, 10)
|
4300
|
-
};
|
4301
|
-
styles.bgColor.ansi256 = {
|
4302
|
-
ansi256: wrapAnsi256(ansi2ansi, 10)
|
4303
|
-
};
|
4304
|
-
styles.bgColor.ansi16m = {
|
4305
|
-
rgb: wrapAnsi16m(rgb2rgb, 10)
|
4306
|
-
};
|
4307
|
-
for (let key of Object.keys(colorConvert)) {
|
4308
|
-
if (typeof colorConvert[key] !== "object") {
|
4309
|
-
continue;
|
4310
|
-
}
|
4311
|
-
const suite = colorConvert[key];
|
4312
|
-
if (key === "ansi16") {
|
4313
|
-
key = "ansi";
|
4314
|
-
}
|
4315
|
-
if ("ansi16" in suite) {
|
4316
|
-
styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
|
4317
|
-
styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
|
4318
|
-
}
|
4319
|
-
if ("ansi256" in suite) {
|
4320
|
-
styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
|
4321
|
-
styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
|
4322
|
-
}
|
4323
|
-
if ("rgb" in suite) {
|
4324
|
-
styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
|
4325
|
-
styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
|
4326
|
-
}
|
4327
|
-
}
|
4328
|
-
return styles;
|
4329
|
-
}
|
4330
|
-
Object.defineProperty(module2, "exports", {
|
4331
|
-
enumerable: true,
|
4332
|
-
get: assembleStyles
|
4333
|
-
});
|
4334
|
-
}
|
4335
|
-
});
|
4336
|
-
var require_has_flag = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4337
|
-
"../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
4338
|
-
"use strict";
|
4339
|
-
module2.exports = (flag, argv) => {
|
4340
|
-
argv = argv || process.argv;
|
4341
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
4342
|
-
const pos = argv.indexOf(prefix + flag);
|
4343
|
-
const terminatorPos = argv.indexOf("--");
|
4344
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
4345
|
-
};
|
4346
|
-
}
|
4347
|
-
});
|
4348
|
-
var require_supports_color = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4349
|
-
"../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
3261
|
+
var require_lib6 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3262
|
+
"../../node_modules/.pnpm/@babel+code-frame@7.26.2/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
4350
3263
|
"use strict";
|
4351
|
-
|
4352
|
-
var
|
4353
|
-
var
|
4354
|
-
var
|
4355
|
-
|
4356
|
-
|
4357
|
-
}
|
4358
|
-
|
4359
|
-
|
4360
|
-
if ("FORCE_COLOR" in env) {
|
4361
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
4362
|
-
}
|
4363
|
-
function translateLevel(level) {
|
4364
|
-
if (level === 0) {
|
4365
|
-
return false;
|
4366
|
-
}
|
3264
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3265
|
+
var picocolors = require_picocolors();
|
3266
|
+
var jsTokens = require_js_tokens();
|
3267
|
+
var helperValidatorIdentifier = (0, import_chunk_UZTXEBTM.require_lib)();
|
3268
|
+
function isColorSupported() {
|
3269
|
+
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
3270
|
+
}
|
3271
|
+
var compose = (f, g) => (v) => f(g(v));
|
3272
|
+
function buildDefs(colors) {
|
4367
3273
|
return {
|
4368
|
-
|
4369
|
-
|
4370
|
-
|
4371
|
-
|
3274
|
+
keyword: colors.cyan,
|
3275
|
+
capitalized: colors.yellow,
|
3276
|
+
jsxIdentifier: colors.yellow,
|
3277
|
+
punctuator: colors.yellow,
|
3278
|
+
number: colors.magenta,
|
3279
|
+
string: colors.green,
|
3280
|
+
regex: colors.magenta,
|
3281
|
+
comment: colors.gray,
|
3282
|
+
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
3283
|
+
gutter: colors.gray,
|
3284
|
+
marker: compose(colors.red, colors.bold),
|
3285
|
+
message: compose(colors.red, colors.bold),
|
3286
|
+
reset: colors.reset
|
4372
3287
|
};
|
4373
3288
|
}
|
4374
|
-
|
4375
|
-
|
4376
|
-
|
4377
|
-
|
4378
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
4379
|
-
return 3;
|
4380
|
-
}
|
4381
|
-
if (hasFlag("color=256")) {
|
4382
|
-
return 2;
|
4383
|
-
}
|
4384
|
-
if (stream && !stream.isTTY && forceColor !== true) {
|
4385
|
-
return 0;
|
4386
|
-
}
|
4387
|
-
const min = forceColor ? 1 : 0;
|
4388
|
-
if (process.platform === "win32") {
|
4389
|
-
const osRelease = os.release().split(".");
|
4390
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
4391
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
4392
|
-
}
|
4393
|
-
return 1;
|
4394
|
-
}
|
4395
|
-
if ("CI" in env) {
|
4396
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
4397
|
-
return 1;
|
4398
|
-
}
|
4399
|
-
return min;
|
4400
|
-
}
|
4401
|
-
if ("TEAMCITY_VERSION" in env) {
|
4402
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
4403
|
-
}
|
4404
|
-
if (env.COLORTERM === "truecolor") {
|
4405
|
-
return 3;
|
4406
|
-
}
|
4407
|
-
if ("TERM_PROGRAM" in env) {
|
4408
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
4409
|
-
switch (env.TERM_PROGRAM) {
|
4410
|
-
case "iTerm.app":
|
4411
|
-
return version >= 3 ? 3 : 2;
|
4412
|
-
case "Apple_Terminal":
|
4413
|
-
return 2;
|
4414
|
-
}
|
4415
|
-
}
|
4416
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
4417
|
-
return 2;
|
4418
|
-
}
|
4419
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
4420
|
-
return 1;
|
4421
|
-
}
|
4422
|
-
if ("COLORTERM" in env) {
|
4423
|
-
return 1;
|
4424
|
-
}
|
4425
|
-
if (env.TERM === "dumb") {
|
4426
|
-
return min;
|
4427
|
-
}
|
4428
|
-
return min;
|
4429
|
-
}
|
4430
|
-
function getSupportLevel(stream) {
|
4431
|
-
const level = supportsColor(stream);
|
4432
|
-
return translateLevel(level);
|
4433
|
-
}
|
4434
|
-
module2.exports = {
|
4435
|
-
supportsColor: getSupportLevel,
|
4436
|
-
stdout: getSupportLevel(process.stdout),
|
4437
|
-
stderr: getSupportLevel(process.stderr)
|
4438
|
-
};
|
4439
|
-
}
|
4440
|
-
});
|
4441
|
-
var require_templates = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4442
|
-
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/templates.js"(exports, module2) {
|
4443
|
-
"use strict";
|
4444
|
-
var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
4445
|
-
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
4446
|
-
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
4447
|
-
var ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;
|
4448
|
-
var ESCAPES = /* @__PURE__ */ new Map([
|
4449
|
-
["n", "\n"],
|
4450
|
-
["r", "\r"],
|
4451
|
-
["t", " "],
|
4452
|
-
["b", "\b"],
|
4453
|
-
["f", "\f"],
|
4454
|
-
["v", "\v"],
|
4455
|
-
["0", "\0"],
|
4456
|
-
["\\", "\\"],
|
4457
|
-
["e", "\x1B"],
|
4458
|
-
["a", "\x07"]
|
4459
|
-
]);
|
4460
|
-
function unescape(c) {
|
4461
|
-
if (c[0] === "u" && c.length === 5 || c[0] === "x" && c.length === 3) {
|
4462
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
4463
|
-
}
|
4464
|
-
return ESCAPES.get(c) || c;
|
4465
|
-
}
|
4466
|
-
function parseArguments(name, args) {
|
4467
|
-
const results = [];
|
4468
|
-
const chunks = args.trim().split(/\s*,\s*/g);
|
4469
|
-
let matches;
|
4470
|
-
for (const chunk of chunks) {
|
4471
|
-
if (!isNaN(chunk)) {
|
4472
|
-
results.push(Number(chunk));
|
4473
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
4474
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, chr) => escape ? unescape(escape) : chr));
|
4475
|
-
} else {
|
4476
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
4477
|
-
}
|
4478
|
-
}
|
4479
|
-
return results;
|
4480
|
-
}
|
4481
|
-
function parseStyle(style) {
|
4482
|
-
STYLE_REGEX.lastIndex = 0;
|
4483
|
-
const results = [];
|
4484
|
-
let matches;
|
4485
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
4486
|
-
const name = matches[1];
|
4487
|
-
if (matches[2]) {
|
4488
|
-
const args = parseArguments(name, matches[2]);
|
4489
|
-
results.push([name].concat(args));
|
4490
|
-
} else {
|
4491
|
-
results.push([name]);
|
4492
|
-
}
|
4493
|
-
}
|
4494
|
-
return results;
|
4495
|
-
}
|
4496
|
-
function buildStyle(chalk, styles) {
|
4497
|
-
const enabled = {};
|
4498
|
-
for (const layer of styles) {
|
4499
|
-
for (const style of layer.styles) {
|
4500
|
-
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
4501
|
-
}
|
4502
|
-
}
|
4503
|
-
let current = chalk;
|
4504
|
-
for (const styleName of Object.keys(enabled)) {
|
4505
|
-
if (Array.isArray(enabled[styleName])) {
|
4506
|
-
if (!(styleName in current)) {
|
4507
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
4508
|
-
}
|
4509
|
-
if (enabled[styleName].length > 0) {
|
4510
|
-
current = current[styleName].apply(current, enabled[styleName]);
|
4511
|
-
} else {
|
4512
|
-
current = current[styleName];
|
4513
|
-
}
|
4514
|
-
}
|
4515
|
-
}
|
4516
|
-
return current;
|
4517
|
-
}
|
4518
|
-
module2.exports = (chalk, tmp) => {
|
4519
|
-
const styles = [];
|
4520
|
-
const chunks = [];
|
4521
|
-
let chunk = [];
|
4522
|
-
tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
|
4523
|
-
if (escapeChar) {
|
4524
|
-
chunk.push(unescape(escapeChar));
|
4525
|
-
} else if (style) {
|
4526
|
-
const str = chunk.join("");
|
4527
|
-
chunk = [];
|
4528
|
-
chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
|
4529
|
-
styles.push({ inverse, styles: parseStyle(style) });
|
4530
|
-
} else if (close) {
|
4531
|
-
if (styles.length === 0) {
|
4532
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
4533
|
-
}
|
4534
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
4535
|
-
chunk = [];
|
4536
|
-
styles.pop();
|
4537
|
-
} else {
|
4538
|
-
chunk.push(chr);
|
4539
|
-
}
|
4540
|
-
});
|
4541
|
-
chunks.push(chunk.join(""));
|
4542
|
-
if (styles.length > 0) {
|
4543
|
-
const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
4544
|
-
throw new Error(errMsg);
|
4545
|
-
}
|
4546
|
-
return chunks.join("");
|
4547
|
-
};
|
4548
|
-
}
|
4549
|
-
});
|
4550
|
-
var require_chalk = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4551
|
-
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
4552
|
-
"use strict";
|
4553
|
-
var escapeStringRegexp = require_escape_string_regexp();
|
4554
|
-
var ansiStyles = require_ansi_styles();
|
4555
|
-
var stdoutColor = require_supports_color().stdout;
|
4556
|
-
var template = require_templates();
|
4557
|
-
var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
|
4558
|
-
var levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"];
|
4559
|
-
var skipModels = /* @__PURE__ */ new Set(["gray"]);
|
4560
|
-
var styles = /* @__PURE__ */ Object.create(null);
|
4561
|
-
function applyOptions(obj, options) {
|
4562
|
-
options = options || {};
|
4563
|
-
const scLevel = stdoutColor ? stdoutColor.level : 0;
|
4564
|
-
obj.level = options.level === void 0 ? scLevel : options.level;
|
4565
|
-
obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
|
4566
|
-
}
|
4567
|
-
function Chalk(options) {
|
4568
|
-
if (!this || !(this instanceof Chalk) || this.template) {
|
4569
|
-
const chalk = {};
|
4570
|
-
applyOptions(chalk, options);
|
4571
|
-
chalk.template = function() {
|
4572
|
-
const args = [].slice.call(arguments);
|
4573
|
-
return chalkTag.apply(null, [chalk.template].concat(args));
|
4574
|
-
};
|
4575
|
-
Object.setPrototypeOf(chalk, Chalk.prototype);
|
4576
|
-
Object.setPrototypeOf(chalk.template, chalk);
|
4577
|
-
chalk.template.constructor = Chalk;
|
4578
|
-
return chalk.template;
|
4579
|
-
}
|
4580
|
-
applyOptions(this, options);
|
4581
|
-
}
|
4582
|
-
if (isSimpleWindowsTerm) {
|
4583
|
-
ansiStyles.blue.open = "\x1B[94m";
|
4584
|
-
}
|
4585
|
-
for (const key of Object.keys(ansiStyles)) {
|
4586
|
-
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), "g");
|
4587
|
-
styles[key] = {
|
4588
|
-
get() {
|
4589
|
-
const codes = ansiStyles[key];
|
4590
|
-
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
|
4591
|
-
}
|
4592
|
-
};
|
4593
|
-
}
|
4594
|
-
styles.visible = {
|
4595
|
-
get() {
|
4596
|
-
return build.call(this, this._styles || [], true, "visible");
|
4597
|
-
}
|
4598
|
-
};
|
4599
|
-
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), "g");
|
4600
|
-
for (const model of Object.keys(ansiStyles.color.ansi)) {
|
4601
|
-
if (skipModels.has(model)) {
|
4602
|
-
continue;
|
4603
|
-
}
|
4604
|
-
styles[model] = {
|
4605
|
-
get() {
|
4606
|
-
const level = this.level;
|
4607
|
-
return function() {
|
4608
|
-
const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
|
4609
|
-
const codes = {
|
4610
|
-
open,
|
4611
|
-
close: ansiStyles.color.close,
|
4612
|
-
closeRe: ansiStyles.color.closeRe
|
4613
|
-
};
|
4614
|
-
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
4615
|
-
};
|
4616
|
-
}
|
4617
|
-
};
|
4618
|
-
}
|
4619
|
-
ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), "g");
|
4620
|
-
for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
|
4621
|
-
if (skipModels.has(model)) {
|
4622
|
-
continue;
|
4623
|
-
}
|
4624
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
4625
|
-
styles[bgModel] = {
|
4626
|
-
get() {
|
4627
|
-
const level = this.level;
|
4628
|
-
return function() {
|
4629
|
-
const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
|
4630
|
-
const codes = {
|
4631
|
-
open,
|
4632
|
-
close: ansiStyles.bgColor.close,
|
4633
|
-
closeRe: ansiStyles.bgColor.closeRe
|
4634
|
-
};
|
4635
|
-
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
4636
|
-
};
|
4637
|
-
}
|
4638
|
-
};
|
4639
|
-
}
|
4640
|
-
var proto = Object.defineProperties(() => {
|
4641
|
-
}, styles);
|
4642
|
-
function build(_styles, _empty, key) {
|
4643
|
-
const builder = function() {
|
4644
|
-
return applyStyle.apply(builder, arguments);
|
4645
|
-
};
|
4646
|
-
builder._styles = _styles;
|
4647
|
-
builder._empty = _empty;
|
4648
|
-
const self = this;
|
4649
|
-
Object.defineProperty(builder, "level", {
|
4650
|
-
enumerable: true,
|
4651
|
-
get() {
|
4652
|
-
return self.level;
|
4653
|
-
},
|
4654
|
-
set(level) {
|
4655
|
-
self.level = level;
|
4656
|
-
}
|
4657
|
-
});
|
4658
|
-
Object.defineProperty(builder, "enabled", {
|
4659
|
-
enumerable: true,
|
4660
|
-
get() {
|
4661
|
-
return self.enabled;
|
4662
|
-
},
|
4663
|
-
set(enabled) {
|
4664
|
-
self.enabled = enabled;
|
4665
|
-
}
|
4666
|
-
});
|
4667
|
-
builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
|
4668
|
-
builder.__proto__ = proto;
|
4669
|
-
return builder;
|
4670
|
-
}
|
4671
|
-
function applyStyle() {
|
4672
|
-
const args = arguments;
|
4673
|
-
const argsLen = args.length;
|
4674
|
-
let str = String(arguments[0]);
|
4675
|
-
if (argsLen === 0) {
|
4676
|
-
return "";
|
4677
|
-
}
|
4678
|
-
if (argsLen > 1) {
|
4679
|
-
for (let a = 1; a < argsLen; a++) {
|
4680
|
-
str += " " + args[a];
|
4681
|
-
}
|
4682
|
-
}
|
4683
|
-
if (!this.enabled || this.level <= 0 || !str) {
|
4684
|
-
return this._empty ? "" : str;
|
4685
|
-
}
|
4686
|
-
const originalDim = ansiStyles.dim.open;
|
4687
|
-
if (isSimpleWindowsTerm && this.hasGrey) {
|
4688
|
-
ansiStyles.dim.open = "";
|
4689
|
-
}
|
4690
|
-
for (const code of this._styles.slice().reverse()) {
|
4691
|
-
str = code.open + str.replace(code.closeRe, code.open) + code.close;
|
4692
|
-
str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
|
4693
|
-
}
|
4694
|
-
ansiStyles.dim.open = originalDim;
|
4695
|
-
return str;
|
4696
|
-
}
|
4697
|
-
function chalkTag(chalk, strings) {
|
4698
|
-
if (!Array.isArray(strings)) {
|
4699
|
-
return [].slice.call(arguments, 1).join(" ");
|
4700
|
-
}
|
4701
|
-
const args = [].slice.call(arguments, 2);
|
4702
|
-
const parts = [strings.raw[0]];
|
4703
|
-
for (let i = 1; i < strings.length; i++) {
|
4704
|
-
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
4705
|
-
parts.push(String(strings.raw[i]));
|
4706
|
-
}
|
4707
|
-
return template(chalk, parts.join(""));
|
4708
|
-
}
|
4709
|
-
Object.defineProperties(Chalk.prototype, styles);
|
4710
|
-
module2.exports = Chalk();
|
4711
|
-
module2.exports.supportsColor = stdoutColor;
|
4712
|
-
module2.exports.default = module2.exports;
|
4713
|
-
}
|
4714
|
-
});
|
4715
|
-
var require_lib6 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4716
|
-
"../../node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports) {
|
4717
|
-
"use strict";
|
4718
|
-
Object.defineProperty(exports, "__esModule", {
|
4719
|
-
value: true
|
4720
|
-
});
|
4721
|
-
exports.default = highlight;
|
4722
|
-
exports.shouldHighlight = shouldHighlight;
|
4723
|
-
var _jsTokens = require_js_tokens();
|
4724
|
-
var _helperValidatorIdentifier = (0, import_chunk_UZTXEBTM.require_lib)();
|
4725
|
-
var _chalk = _interopRequireWildcard(require_chalk(), true);
|
4726
|
-
function _getRequireWildcardCache(e) {
|
4727
|
-
if ("function" != typeof WeakMap) return null;
|
4728
|
-
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
|
4729
|
-
return (_getRequireWildcardCache = function(e2) {
|
4730
|
-
return e2 ? t : r;
|
4731
|
-
})(e);
|
4732
|
-
}
|
4733
|
-
function _interopRequireWildcard(e, r) {
|
4734
|
-
if (!r && e && e.__esModule) return e;
|
4735
|
-
if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };
|
4736
|
-
var t = _getRequireWildcardCache(r);
|
4737
|
-
if (t && t.has(e)) return t.get(e);
|
4738
|
-
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
4739
|
-
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
4740
|
-
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
4741
|
-
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
4742
|
-
}
|
4743
|
-
return n.default = e, t && t.set(e, n), n;
|
3289
|
+
var defsOn = buildDefs(picocolors.createColors(true));
|
3290
|
+
var defsOff = buildDefs(picocolors.createColors(false));
|
3291
|
+
function getDefs(enabled) {
|
3292
|
+
return enabled ? defsOn : defsOff;
|
4744
3293
|
}
|
4745
3294
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
4746
|
-
|
4747
|
-
return {
|
4748
|
-
keyword: chalk.cyan,
|
4749
|
-
capitalized: chalk.yellow,
|
4750
|
-
jsxIdentifier: chalk.yellow,
|
4751
|
-
punctuator: chalk.yellow,
|
4752
|
-
number: chalk.magenta,
|
4753
|
-
string: chalk.green,
|
4754
|
-
regex: chalk.magenta,
|
4755
|
-
comment: chalk.grey,
|
4756
|
-
invalid: chalk.white.bgRed.bold
|
4757
|
-
};
|
4758
|
-
}
|
4759
|
-
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
3295
|
+
var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
4760
3296
|
var BRACKET = /^[()[\]{}]$/;
|
4761
3297
|
var tokenize;
|
4762
3298
|
{
|
4763
3299
|
const JSX_TAG = /^[a-z][\w-]*$/i;
|
4764
3300
|
const getTokenType = function(token, offset, text) {
|
4765
3301
|
if (token.type === "name") {
|
4766
|
-
if (
|
3302
|
+
if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
|
4767
3303
|
return "keyword";
|
4768
3304
|
}
|
4769
|
-
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset)
|
3305
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
4770
3306
|
return "jsxIdentifier";
|
4771
3307
|
}
|
4772
3308
|
if (token.value[0] !== token.value[0].toLowerCase()) {
|
@@ -4783,8 +3319,8 @@ var require_lib6 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4783
3319
|
};
|
4784
3320
|
tokenize = function* (text) {
|
4785
3321
|
let match;
|
4786
|
-
while (match =
|
4787
|
-
const token =
|
3322
|
+
while (match = jsTokens.default.exec(text)) {
|
3323
|
+
const token = jsTokens.matchToToken(match);
|
4788
3324
|
yield {
|
4789
3325
|
type: getTokenType(token, match.index, text),
|
4790
3326
|
value: token.value
|
@@ -4792,98 +3328,23 @@ var require_lib6 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4792
3328
|
}
|
4793
3329
|
};
|
4794
3330
|
}
|
4795
|
-
function
|
3331
|
+
function highlight(text) {
|
3332
|
+
if (text === "") return "";
|
3333
|
+
const defs = getDefs(true);
|
4796
3334
|
let highlighted = "";
|
4797
3335
|
for (const {
|
4798
3336
|
type,
|
4799
3337
|
value
|
4800
3338
|
} of tokenize(text)) {
|
4801
|
-
|
4802
|
-
|
4803
|
-
highlighted += value.split(NEWLINE).map((str) => colorize(str)).join("\n");
|
3339
|
+
if (type in defs) {
|
3340
|
+
highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
4804
3341
|
} else {
|
4805
3342
|
highlighted += value;
|
4806
3343
|
}
|
4807
3344
|
}
|
4808
3345
|
return highlighted;
|
4809
3346
|
}
|
4810
|
-
function shouldHighlight(options) {
|
4811
|
-
return _chalk.default.level > 0 || options.forceColor;
|
4812
|
-
}
|
4813
|
-
var chalkWithForcedColor = void 0;
|
4814
|
-
function getChalk(forceColor) {
|
4815
|
-
if (forceColor) {
|
4816
|
-
var _chalkWithForcedColor;
|
4817
|
-
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
4818
|
-
enabled: true,
|
4819
|
-
level: 1
|
4820
|
-
});
|
4821
|
-
return chalkWithForcedColor;
|
4822
|
-
}
|
4823
|
-
return _chalk.default;
|
4824
|
-
}
|
4825
|
-
{
|
4826
|
-
exports.getChalk = (options) => getChalk(options.forceColor);
|
4827
|
-
}
|
4828
|
-
function highlight(code, options = {}) {
|
4829
|
-
if (code !== "" && shouldHighlight(options)) {
|
4830
|
-
const defs = getDefs(getChalk(options.forceColor));
|
4831
|
-
return highlightTokens(defs, code);
|
4832
|
-
} else {
|
4833
|
-
return code;
|
4834
|
-
}
|
4835
|
-
}
|
4836
|
-
}
|
4837
|
-
});
|
4838
|
-
var require_lib7 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
4839
|
-
"../../node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
4840
|
-
"use strict";
|
4841
|
-
Object.defineProperty(exports, "__esModule", {
|
4842
|
-
value: true
|
4843
|
-
});
|
4844
|
-
exports.codeFrameColumns = codeFrameColumns2;
|
4845
|
-
exports.default = _default;
|
4846
|
-
var _highlight = require_lib6();
|
4847
|
-
var _chalk = _interopRequireWildcard(require_chalk(), true);
|
4848
|
-
function _getRequireWildcardCache(e) {
|
4849
|
-
if ("function" != typeof WeakMap) return null;
|
4850
|
-
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
|
4851
|
-
return (_getRequireWildcardCache = function(e2) {
|
4852
|
-
return e2 ? t : r;
|
4853
|
-
})(e);
|
4854
|
-
}
|
4855
|
-
function _interopRequireWildcard(e, r) {
|
4856
|
-
if (!r && e && e.__esModule) return e;
|
4857
|
-
if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };
|
4858
|
-
var t = _getRequireWildcardCache(r);
|
4859
|
-
if (t && t.has(e)) return t.get(e);
|
4860
|
-
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
4861
|
-
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
4862
|
-
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
4863
|
-
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
4864
|
-
}
|
4865
|
-
return n.default = e, t && t.set(e, n), n;
|
4866
|
-
}
|
4867
|
-
var chalkWithForcedColor = void 0;
|
4868
|
-
function getChalk(forceColor) {
|
4869
|
-
if (forceColor) {
|
4870
|
-
var _chalkWithForcedColor;
|
4871
|
-
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
4872
|
-
enabled: true,
|
4873
|
-
level: 1
|
4874
|
-
});
|
4875
|
-
return chalkWithForcedColor;
|
4876
|
-
}
|
4877
|
-
return _chalk.default;
|
4878
|
-
}
|
4879
3347
|
var deprecationWarningShown = false;
|
4880
|
-
function getDefs(chalk) {
|
4881
|
-
return {
|
4882
|
-
gutter: chalk.grey,
|
4883
|
-
marker: chalk.red.bold,
|
4884
|
-
message: chalk.red.bold
|
4885
|
-
};
|
4886
|
-
}
|
4887
3348
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
4888
3349
|
function getMarkerLines(loc, source, opts) {
|
4889
3350
|
const startLoc = Object.assign({
|
@@ -4942,12 +3403,8 @@ var require_lib7 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4942
3403
|
};
|
4943
3404
|
}
|
4944
3405
|
function codeFrameColumns2(rawLines, loc, opts = {}) {
|
4945
|
-
const
|
4946
|
-
const
|
4947
|
-
const defs = getDefs(chalk);
|
4948
|
-
const maybeHighlight = (chalkFn, string) => {
|
4949
|
-
return highlighted ? chalkFn(string) : string;
|
4950
|
-
};
|
3406
|
+
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
3407
|
+
const defs = getDefs(shouldHighlight);
|
4951
3408
|
const lines = rawLines.split(NEWLINE);
|
4952
3409
|
const {
|
4953
3410
|
start,
|
@@ -4956,9 +3413,9 @@ var require_lib7 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4956
3413
|
} = getMarkerLines(loc, lines, opts);
|
4957
3414
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
4958
3415
|
const numberMaxWidth = String(end).length;
|
4959
|
-
const highlightedLines =
|
4960
|
-
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line,
|
4961
|
-
const number = start + 1 +
|
3416
|
+
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
|
3417
|
+
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index2) => {
|
3418
|
+
const number = start + 1 + index2;
|
4962
3419
|
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
4963
3420
|
const gutter = ` ${paddedNumber} |`;
|
4964
3421
|
const hasMarker = markerLines[number];
|
@@ -4968,27 +3425,27 @@ var require_lib7 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4968
3425
|
if (Array.isArray(hasMarker)) {
|
4969
3426
|
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
4970
3427
|
const numberOfMarkers = hasMarker[1] || 1;
|
4971
|
-
markerLine = ["\n ",
|
3428
|
+
markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
4972
3429
|
if (lastMarkerLine && opts.message) {
|
4973
|
-
markerLine += " " +
|
3430
|
+
markerLine += " " + defs.message(opts.message);
|
4974
3431
|
}
|
4975
3432
|
}
|
4976
|
-
return [
|
3433
|
+
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
4977
3434
|
} else {
|
4978
|
-
return ` ${
|
3435
|
+
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
4979
3436
|
}
|
4980
3437
|
}).join("\n");
|
4981
3438
|
if (opts.message && !hasColumns) {
|
4982
3439
|
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}
|
4983
3440
|
${frame}`;
|
4984
3441
|
}
|
4985
|
-
if (
|
4986
|
-
return
|
3442
|
+
if (shouldHighlight) {
|
3443
|
+
return defs.reset(frame);
|
4987
3444
|
} else {
|
4988
3445
|
return frame;
|
4989
3446
|
}
|
4990
3447
|
}
|
4991
|
-
function
|
3448
|
+
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
4992
3449
|
if (!deprecationWarningShown) {
|
4993
3450
|
deprecationWarningShown = true;
|
4994
3451
|
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
@@ -5009,6 +3466,9 @@ ${frame}`;
|
|
5009
3466
|
};
|
5010
3467
|
return codeFrameColumns2(rawLines, location, opts);
|
5011
3468
|
}
|
3469
|
+
exports.codeFrameColumns = codeFrameColumns2;
|
3470
|
+
exports.default = index;
|
3471
|
+
exports.highlight = highlight;
|
5012
3472
|
}
|
5013
3473
|
});
|
5014
3474
|
var require_debug = (0, import_chunk_4VNS5WPM.__commonJS)({
|
@@ -6422,7 +4882,7 @@ var require_spdx_expression_parse = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
6422
4882
|
}
|
6423
4883
|
});
|
6424
4884
|
var require_spdx_correct = (0, import_chunk_4VNS5WPM.__commonJS)({
|
6425
|
-
"../../node_modules/.pnpm/spdx-correct@3.
|
4885
|
+
"../../node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js"(exports, module2) {
|
6426
4886
|
"use strict";
|
6427
4887
|
var parse = require_spdx_expression_parse();
|
6428
4888
|
var spdxLicenseIds = require_spdx_license_ids();
|
@@ -6434,6 +4894,11 @@ var require_spdx_correct = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
6434
4894
|
return false;
|
6435
4895
|
}
|
6436
4896
|
}
|
4897
|
+
function sortTranspositions(a, b) {
|
4898
|
+
var length = b[0].length - a[0].length;
|
4899
|
+
if (length !== 0) return length;
|
4900
|
+
return a[0].toUpperCase().localeCompare(b[0].toUpperCase());
|
4901
|
+
}
|
6437
4902
|
var transpositions = [
|
6438
4903
|
["APGL", "AGPL"],
|
6439
4904
|
["Gpl", "GPL"],
|
@@ -6449,8 +4914,17 @@ var require_spdx_correct = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
6449
4914
|
["GUN", "GPL"],
|
6450
4915
|
["+", ""],
|
6451
4916
|
["GNU GPL", "GPL"],
|
4917
|
+
["GNU LGPL", "LGPL"],
|
6452
4918
|
["GNU/GPL", "GPL"],
|
6453
4919
|
["GNU GLP", "GPL"],
|
4920
|
+
["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL"],
|
4921
|
+
["GNU Lesser General Public License", "LGPL"],
|
4922
|
+
["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
|
4923
|
+
["GNU Lesser General Public License", "LGPL-2.1"],
|
4924
|
+
["LESSER GENERAL PUBLIC LICENSE", "LGPL"],
|
4925
|
+
["Lesser General Public License", "LGPL"],
|
4926
|
+
["LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
|
4927
|
+
["Lesser General Public License", "LGPL-2.1"],
|
6454
4928
|
["GNU General Public License", "GPL"],
|
6455
4929
|
["Gnu public license", "GPL"],
|
6456
4930
|
["GNU Public License", "GPL"],
|
@@ -6459,8 +4933,9 @@ var require_spdx_correct = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
6459
4933
|
["Mozilla Public License", "MPL"],
|
6460
4934
|
["Universal Permissive License", "UPL"],
|
6461
4935
|
["WTH", "WTF"],
|
4936
|
+
["WTFGPL", "WTFPL"],
|
6462
4937
|
["-License", ""]
|
6463
|
-
];
|
4938
|
+
].sort(sortTranspositions);
|
6464
4939
|
var TRANSPOSED = 0;
|
6465
4940
|
var CORRECT = 1;
|
6466
4941
|
var transforms = [
|
@@ -6628,7 +5103,7 @@ var require_spdx_correct = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
6628
5103
|
["MPL", "MPL-2.0"],
|
6629
5104
|
["X11", "X11"],
|
6630
5105
|
["ZLIB", "Zlib"]
|
6631
|
-
].concat(licensesWithOneVersion);
|
5106
|
+
].concat(licensesWithOneVersion).sort(sortTranspositions);
|
6632
5107
|
var SUBSTRING = 0;
|
6633
5108
|
var IDENTIFIER = 1;
|
6634
5109
|
var validTransformation = function(identifier) {
|
@@ -8184,7 +6659,7 @@ var require_commonjs = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8184
6659
|
}
|
8185
6660
|
});
|
8186
6661
|
var require_hosts = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8187
|
-
"../../node_modules/.pnpm/hosted-git-info@7.0.
|
6662
|
+
"../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/hosts.js"(exports, module2) {
|
8188
6663
|
"use strict";
|
8189
6664
|
var maybeJoin = (...args) => args.every((arg) => arg) ? args.join("") : "";
|
8190
6665
|
var maybeEncode = (arg) => arg ? encodeURIComponent(arg) : "";
|
@@ -8327,7 +6802,7 @@ var require_hosts = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8327
6802
|
filetemplate: ({ domain, user, project, committish, path: path5 }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "HEAD"}/${path5}`,
|
8328
6803
|
httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
|
8329
6804
|
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "HEAD"}.tar.gz`,
|
8330
|
-
bugstemplate: (
|
6805
|
+
bugstemplate: () => null,
|
8331
6806
|
extract: (url) => {
|
8332
6807
|
let [, user, project, aux] = url.pathname.split("/", 4);
|
8333
6808
|
if (["archive"].includes(aux)) {
|
@@ -8349,7 +6824,7 @@ var require_hosts = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8349
6824
|
}
|
8350
6825
|
});
|
8351
6826
|
var require_parse_url = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8352
|
-
"../../node_modules/.pnpm/hosted-git-info@7.0.
|
6827
|
+
"../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/parse-url.js"(exports, module2) {
|
8353
6828
|
"use strict";
|
8354
6829
|
var url = (0, import_chunk_4VNS5WPM.__require)("url");
|
8355
6830
|
var lastIndexOfBefore = (str, char, beforeChar) => {
|
@@ -8400,7 +6875,7 @@ var require_parse_url = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8400
6875
|
}
|
8401
6876
|
});
|
8402
6877
|
var require_from_url = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8403
|
-
"../../node_modules/.pnpm/hosted-git-info@7.0.
|
6878
|
+
"../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/from-url.js"(exports, module2) {
|
8404
6879
|
"use strict";
|
8405
6880
|
var parseUrl = require_parse_url();
|
8406
6881
|
var isGitHubShorthand = (arg) => {
|
@@ -8491,8 +6966,8 @@ var require_from_url = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8491
6966
|
};
|
8492
6967
|
}
|
8493
6968
|
});
|
8494
|
-
var
|
8495
|
-
"../../node_modules/.pnpm/hosted-git-info@7.0.
|
6969
|
+
var require_lib7 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
6970
|
+
"../../node_modules/.pnpm/hosted-git-info@7.0.2/node_modules/hosted-git-info/lib/index.js"(exports, module2) {
|
8496
6971
|
"use strict";
|
8497
6972
|
var { LRUCache } = require_commonjs();
|
8498
6973
|
var hosts = require_hosts();
|
@@ -8633,240 +7108,8 @@ var require_lib8 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8633
7108
|
module2.exports = GitHost;
|
8634
7109
|
}
|
8635
7110
|
});
|
8636
|
-
var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8637
|
-
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
|
8638
|
-
"use strict";
|
8639
|
-
var call = Function.prototype.call;
|
8640
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
8641
|
-
var bind = (0, import_chunk_VVPSLVOR.require_function_bind)();
|
8642
|
-
module2.exports = bind.call(call, $hasOwn);
|
8643
|
-
}
|
8644
|
-
});
|
8645
|
-
var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8646
|
-
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/core.json"(exports, module2) {
|
8647
|
-
module2.exports = {
|
8648
|
-
assert: true,
|
8649
|
-
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
8650
|
-
"assert/strict": ">= 15",
|
8651
|
-
"node:assert/strict": ">= 16",
|
8652
|
-
async_hooks: ">= 8",
|
8653
|
-
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
8654
|
-
buffer_ieee754: ">= 0.5 && < 0.9.7",
|
8655
|
-
buffer: true,
|
8656
|
-
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
8657
|
-
child_process: true,
|
8658
|
-
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
8659
|
-
cluster: ">= 0.5",
|
8660
|
-
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
8661
|
-
console: true,
|
8662
|
-
"node:console": [">= 14.18 && < 15", ">= 16"],
|
8663
|
-
constants: true,
|
8664
|
-
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
8665
|
-
crypto: true,
|
8666
|
-
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
8667
|
-
_debug_agent: ">= 1 && < 8",
|
8668
|
-
_debugger: "< 8",
|
8669
|
-
dgram: true,
|
8670
|
-
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
8671
|
-
diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
|
8672
|
-
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
8673
|
-
dns: true,
|
8674
|
-
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
8675
|
-
"dns/promises": ">= 15",
|
8676
|
-
"node:dns/promises": ">= 16",
|
8677
|
-
domain: ">= 0.7.12",
|
8678
|
-
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
8679
|
-
events: true,
|
8680
|
-
"node:events": [">= 14.18 && < 15", ">= 16"],
|
8681
|
-
freelist: "< 6",
|
8682
|
-
fs: true,
|
8683
|
-
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
8684
|
-
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
8685
|
-
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
8686
|
-
_http_agent: ">= 0.11.1",
|
8687
|
-
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
8688
|
-
_http_client: ">= 0.11.1",
|
8689
|
-
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
8690
|
-
_http_common: ">= 0.11.1",
|
8691
|
-
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
8692
|
-
_http_incoming: ">= 0.11.1",
|
8693
|
-
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
8694
|
-
_http_outgoing: ">= 0.11.1",
|
8695
|
-
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
8696
|
-
_http_server: ">= 0.11.1",
|
8697
|
-
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
8698
|
-
http: true,
|
8699
|
-
"node:http": [">= 14.18 && < 15", ">= 16"],
|
8700
|
-
http2: ">= 8.8",
|
8701
|
-
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
8702
|
-
https: true,
|
8703
|
-
"node:https": [">= 14.18 && < 15", ">= 16"],
|
8704
|
-
inspector: ">= 8",
|
8705
|
-
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
8706
|
-
"inspector/promises": [">= 19"],
|
8707
|
-
"node:inspector/promises": [">= 19"],
|
8708
|
-
_linklist: "< 8",
|
8709
|
-
module: true,
|
8710
|
-
"node:module": [">= 14.18 && < 15", ">= 16"],
|
8711
|
-
net: true,
|
8712
|
-
"node:net": [">= 14.18 && < 15", ">= 16"],
|
8713
|
-
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
8714
|
-
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
8715
|
-
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
8716
|
-
os: true,
|
8717
|
-
"node:os": [">= 14.18 && < 15", ">= 16"],
|
8718
|
-
path: true,
|
8719
|
-
"node:path": [">= 14.18 && < 15", ">= 16"],
|
8720
|
-
"path/posix": ">= 15.3",
|
8721
|
-
"node:path/posix": ">= 16",
|
8722
|
-
"path/win32": ">= 15.3",
|
8723
|
-
"node:path/win32": ">= 16",
|
8724
|
-
perf_hooks: ">= 8.5",
|
8725
|
-
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
8726
|
-
process: ">= 1",
|
8727
|
-
"node:process": [">= 14.18 && < 15", ">= 16"],
|
8728
|
-
punycode: ">= 0.5",
|
8729
|
-
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
8730
|
-
querystring: true,
|
8731
|
-
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
8732
|
-
readline: true,
|
8733
|
-
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
8734
|
-
"readline/promises": ">= 17",
|
8735
|
-
"node:readline/promises": ">= 17",
|
8736
|
-
repl: true,
|
8737
|
-
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
8738
|
-
smalloc: ">= 0.11.5 && < 3",
|
8739
|
-
_stream_duplex: ">= 0.9.4",
|
8740
|
-
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
8741
|
-
_stream_transform: ">= 0.9.4",
|
8742
|
-
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
8743
|
-
_stream_wrap: ">= 1.4.1",
|
8744
|
-
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
8745
|
-
_stream_passthrough: ">= 0.9.4",
|
8746
|
-
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
8747
|
-
_stream_readable: ">= 0.9.4",
|
8748
|
-
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
8749
|
-
_stream_writable: ">= 0.9.4",
|
8750
|
-
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
8751
|
-
stream: true,
|
8752
|
-
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
8753
|
-
"stream/consumers": ">= 16.7",
|
8754
|
-
"node:stream/consumers": ">= 16.7",
|
8755
|
-
"stream/promises": ">= 15",
|
8756
|
-
"node:stream/promises": ">= 16",
|
8757
|
-
"stream/web": ">= 16.5",
|
8758
|
-
"node:stream/web": ">= 16.5",
|
8759
|
-
string_decoder: true,
|
8760
|
-
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
8761
|
-
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
8762
|
-
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
8763
|
-
"test/reporters": ">= 19.9 && < 20.2",
|
8764
|
-
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
8765
|
-
"node:test": [">= 16.17 && < 17", ">= 18"],
|
8766
|
-
timers: true,
|
8767
|
-
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
8768
|
-
"timers/promises": ">= 15",
|
8769
|
-
"node:timers/promises": ">= 16",
|
8770
|
-
_tls_common: ">= 0.11.13",
|
8771
|
-
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
8772
|
-
_tls_legacy: ">= 0.11.3 && < 10",
|
8773
|
-
_tls_wrap: ">= 0.11.3",
|
8774
|
-
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
8775
|
-
tls: true,
|
8776
|
-
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
8777
|
-
trace_events: ">= 10",
|
8778
|
-
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
8779
|
-
tty: true,
|
8780
|
-
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
8781
|
-
url: true,
|
8782
|
-
"node:url": [">= 14.18 && < 15", ">= 16"],
|
8783
|
-
util: true,
|
8784
|
-
"node:util": [">= 14.18 && < 15", ">= 16"],
|
8785
|
-
"util/types": ">= 15.3",
|
8786
|
-
"node:util/types": ">= 16",
|
8787
|
-
"v8/tools/arguments": ">= 10 && < 12",
|
8788
|
-
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8789
|
-
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8790
|
-
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8791
|
-
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8792
|
-
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8793
|
-
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8794
|
-
v8: ">= 1",
|
8795
|
-
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
8796
|
-
vm: true,
|
8797
|
-
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
8798
|
-
wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
8799
|
-
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
8800
|
-
worker_threads: ">= 11.7",
|
8801
|
-
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
8802
|
-
zlib: ">= 0.5",
|
8803
|
-
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
8804
|
-
};
|
8805
|
-
}
|
8806
|
-
});
|
8807
|
-
var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8808
|
-
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/index.js"(exports, module2) {
|
8809
|
-
"use strict";
|
8810
|
-
var hasOwn = require_hasown();
|
8811
|
-
function specifierIncluded(current, specifier) {
|
8812
|
-
var nodeParts = current.split(".");
|
8813
|
-
var parts = specifier.split(" ");
|
8814
|
-
var op = parts.length > 1 ? parts[0] : "=";
|
8815
|
-
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
|
8816
|
-
for (var i = 0; i < 3; ++i) {
|
8817
|
-
var cur = parseInt(nodeParts[i] || 0, 10);
|
8818
|
-
var ver = parseInt(versionParts[i] || 0, 10);
|
8819
|
-
if (cur === ver) {
|
8820
|
-
continue;
|
8821
|
-
}
|
8822
|
-
if (op === "<") {
|
8823
|
-
return cur < ver;
|
8824
|
-
}
|
8825
|
-
if (op === ">=") {
|
8826
|
-
return cur >= ver;
|
8827
|
-
}
|
8828
|
-
return false;
|
8829
|
-
}
|
8830
|
-
return op === ">=";
|
8831
|
-
}
|
8832
|
-
function matchesRange(current, range) {
|
8833
|
-
var specifiers = range.split(/ ?&& ?/);
|
8834
|
-
if (specifiers.length === 0) {
|
8835
|
-
return false;
|
8836
|
-
}
|
8837
|
-
for (var i = 0; i < specifiers.length; ++i) {
|
8838
|
-
if (!specifierIncluded(current, specifiers[i])) {
|
8839
|
-
return false;
|
8840
|
-
}
|
8841
|
-
}
|
8842
|
-
return true;
|
8843
|
-
}
|
8844
|
-
function versionIncluded(nodeVersion, specifierValue) {
|
8845
|
-
if (typeof specifierValue === "boolean") {
|
8846
|
-
return specifierValue;
|
8847
|
-
}
|
8848
|
-
var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
|
8849
|
-
if (typeof current !== "string") {
|
8850
|
-
throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
|
8851
|
-
}
|
8852
|
-
if (specifierValue && typeof specifierValue === "object") {
|
8853
|
-
for (var i = 0; i < specifierValue.length; ++i) {
|
8854
|
-
if (matchesRange(current, specifierValue[i])) {
|
8855
|
-
return true;
|
8856
|
-
}
|
8857
|
-
}
|
8858
|
-
return false;
|
8859
|
-
}
|
8860
|
-
return matchesRange(current, specifierValue);
|
8861
|
-
}
|
8862
|
-
var data = require_core();
|
8863
|
-
module2.exports = function isCore(x, nodeVersion) {
|
8864
|
-
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
8865
|
-
};
|
8866
|
-
}
|
8867
|
-
});
|
8868
7111
|
var require_extract_description = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8869
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7112
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/extract_description.js"(exports, module2) {
|
8870
7113
|
"use strict";
|
8871
7114
|
module2.exports = extractDescription;
|
8872
7115
|
function extractDescription(d) {
|
@@ -8891,7 +7134,7 @@ var require_extract_description = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8891
7134
|
}
|
8892
7135
|
});
|
8893
7136
|
var require_typos = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8894
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7137
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/typos.json"(exports, module2) {
|
8895
7138
|
module2.exports = {
|
8896
7139
|
topLevel: {
|
8897
7140
|
dependancies: "dependencies",
|
@@ -8920,13 +7163,13 @@ var require_typos = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
8920
7163
|
}
|
8921
7164
|
});
|
8922
7165
|
var require_fixer = (0, import_chunk_4VNS5WPM.__commonJS)({
|
8923
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7166
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
8924
7167
|
"use strict";
|
8925
7168
|
var isValidSemver = require_valid();
|
8926
7169
|
var cleanSemver = require_clean();
|
8927
7170
|
var validateLicense = require_validate_npm_package_license();
|
8928
|
-
var hostedGitInfo =
|
8929
|
-
var
|
7171
|
+
var hostedGitInfo = require_lib7();
|
7172
|
+
var moduleBuiltin = (0, import_chunk_4VNS5WPM.__require)("node:module");
|
8930
7173
|
var depTypes = ["dependencies", "devDependencies", "optionalDependencies"];
|
8931
7174
|
var extractDescription = require_extract_description();
|
8932
7175
|
var url = (0, import_chunk_4VNS5WPM.__require)("url");
|
@@ -9053,7 +7296,7 @@ var require_fixer = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9053
7296
|
}, this);
|
9054
7297
|
}
|
9055
7298
|
},
|
9056
|
-
fixDependencies: function(data
|
7299
|
+
fixDependencies: function(data) {
|
9057
7300
|
objectifyDeps(data, this.warn);
|
9058
7301
|
addOptionalDepsToDeps(data, this.warn);
|
9059
7302
|
this.fixBundleDependenciesField(data);
|
@@ -9137,7 +7380,7 @@ var require_fixer = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9137
7380
|
data.name = data.name.trim();
|
9138
7381
|
}
|
9139
7382
|
ensureValidName(data.name, strict, options.allowLegacyCase);
|
9140
|
-
if (
|
7383
|
+
if (moduleBuiltin.builtinModules.includes(data.name)) {
|
9141
7384
|
this.warn("conflictingName", data.name);
|
9142
7385
|
}
|
9143
7386
|
},
|
@@ -9293,7 +7536,7 @@ var require_fixer = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9293
7536
|
}
|
9294
7537
|
return obj;
|
9295
7538
|
}
|
9296
|
-
function addOptionalDepsToDeps(data
|
7539
|
+
function addOptionalDepsToDeps(data) {
|
9297
7540
|
var o = data.optionalDependencies;
|
9298
7541
|
if (!o) {
|
9299
7542
|
return;
|
@@ -9351,7 +7594,7 @@ var require_fixer = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9351
7594
|
}
|
9352
7595
|
});
|
9353
7596
|
var require_warning_messages = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9354
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7597
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module2) {
|
9355
7598
|
module2.exports = {
|
9356
7599
|
repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field",
|
9357
7600
|
missingRepository: "No repository field.",
|
@@ -9385,7 +7628,7 @@ var require_warning_messages = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9385
7628
|
}
|
9386
7629
|
});
|
9387
7630
|
var require_make_warning = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9388
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7631
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/make_warning.js"(exports, module2) {
|
9389
7632
|
"use strict";
|
9390
7633
|
var util = (0, import_chunk_4VNS5WPM.__require)("util");
|
9391
7634
|
var messages = require_warning_messages();
|
@@ -9410,7 +7653,7 @@ var require_make_warning = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9410
7653
|
}
|
9411
7654
|
});
|
9412
7655
|
var require_normalize = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9413
|
-
"../../node_modules/.pnpm/normalize-package-data@6.0.
|
7656
|
+
"../../node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/lib/normalize.js"(exports, module2) {
|
9414
7657
|
"use strict";
|
9415
7658
|
module2.exports = normalize;
|
9416
7659
|
var fixer = require_fixer();
|
@@ -9446,7 +7689,7 @@ var require_normalize = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9446
7689
|
strict = false;
|
9447
7690
|
}
|
9448
7691
|
if (!warn || data.private) {
|
9449
|
-
warn = function(
|
7692
|
+
warn = function() {
|
9450
7693
|
};
|
9451
7694
|
}
|
9452
7695
|
if (data.scripts && data.scripts.install === "node-gyp rebuild" && !data.scripts.preinstall) {
|
@@ -9484,778 +7727,6 @@ var require_unique_string = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
9484
7727
|
module2.exports = () => cryptoRandomString(32);
|
9485
7728
|
}
|
9486
7729
|
});
|
9487
|
-
var require_polyfills = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9488
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
9489
|
-
"use strict";
|
9490
|
-
var constants = (0, import_chunk_4VNS5WPM.__require)("constants");
|
9491
|
-
var origCwd = process.cwd;
|
9492
|
-
var cwd = null;
|
9493
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
9494
|
-
process.cwd = function() {
|
9495
|
-
if (!cwd)
|
9496
|
-
cwd = origCwd.call(process);
|
9497
|
-
return cwd;
|
9498
|
-
};
|
9499
|
-
try {
|
9500
|
-
process.cwd();
|
9501
|
-
} catch (er) {
|
9502
|
-
}
|
9503
|
-
if (typeof process.chdir === "function") {
|
9504
|
-
chdir = process.chdir;
|
9505
|
-
process.chdir = function(d) {
|
9506
|
-
cwd = null;
|
9507
|
-
chdir.call(process, d);
|
9508
|
-
};
|
9509
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
9510
|
-
}
|
9511
|
-
var chdir;
|
9512
|
-
module2.exports = patch;
|
9513
|
-
function patch(fs4) {
|
9514
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
9515
|
-
patchLchmod(fs4);
|
9516
|
-
}
|
9517
|
-
if (!fs4.lutimes) {
|
9518
|
-
patchLutimes(fs4);
|
9519
|
-
}
|
9520
|
-
fs4.chown = chownFix(fs4.chown);
|
9521
|
-
fs4.fchown = chownFix(fs4.fchown);
|
9522
|
-
fs4.lchown = chownFix(fs4.lchown);
|
9523
|
-
fs4.chmod = chmodFix(fs4.chmod);
|
9524
|
-
fs4.fchmod = chmodFix(fs4.fchmod);
|
9525
|
-
fs4.lchmod = chmodFix(fs4.lchmod);
|
9526
|
-
fs4.chownSync = chownFixSync(fs4.chownSync);
|
9527
|
-
fs4.fchownSync = chownFixSync(fs4.fchownSync);
|
9528
|
-
fs4.lchownSync = chownFixSync(fs4.lchownSync);
|
9529
|
-
fs4.chmodSync = chmodFixSync(fs4.chmodSync);
|
9530
|
-
fs4.fchmodSync = chmodFixSync(fs4.fchmodSync);
|
9531
|
-
fs4.lchmodSync = chmodFixSync(fs4.lchmodSync);
|
9532
|
-
fs4.stat = statFix(fs4.stat);
|
9533
|
-
fs4.fstat = statFix(fs4.fstat);
|
9534
|
-
fs4.lstat = statFix(fs4.lstat);
|
9535
|
-
fs4.statSync = statFixSync(fs4.statSync);
|
9536
|
-
fs4.fstatSync = statFixSync(fs4.fstatSync);
|
9537
|
-
fs4.lstatSync = statFixSync(fs4.lstatSync);
|
9538
|
-
if (fs4.chmod && !fs4.lchmod) {
|
9539
|
-
fs4.lchmod = function(path5, mode, cb) {
|
9540
|
-
if (cb) process.nextTick(cb);
|
9541
|
-
};
|
9542
|
-
fs4.lchmodSync = function() {
|
9543
|
-
};
|
9544
|
-
}
|
9545
|
-
if (fs4.chown && !fs4.lchown) {
|
9546
|
-
fs4.lchown = function(path5, uid, gid, cb) {
|
9547
|
-
if (cb) process.nextTick(cb);
|
9548
|
-
};
|
9549
|
-
fs4.lchownSync = function() {
|
9550
|
-
};
|
9551
|
-
}
|
9552
|
-
if (platform === "win32") {
|
9553
|
-
fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : function(fs$rename) {
|
9554
|
-
function rename(from, to, cb) {
|
9555
|
-
var start = Date.now();
|
9556
|
-
var backoff = 0;
|
9557
|
-
fs$rename(from, to, function CB(er) {
|
9558
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
9559
|
-
setTimeout(function() {
|
9560
|
-
fs4.stat(to, function(stater, st) {
|
9561
|
-
if (stater && stater.code === "ENOENT")
|
9562
|
-
fs$rename(from, to, CB);
|
9563
|
-
else
|
9564
|
-
cb(er);
|
9565
|
-
});
|
9566
|
-
}, backoff);
|
9567
|
-
if (backoff < 100)
|
9568
|
-
backoff += 10;
|
9569
|
-
return;
|
9570
|
-
}
|
9571
|
-
if (cb) cb(er);
|
9572
|
-
});
|
9573
|
-
}
|
9574
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
9575
|
-
return rename;
|
9576
|
-
}(fs4.rename);
|
9577
|
-
}
|
9578
|
-
fs4.read = typeof fs4.read !== "function" ? fs4.read : function(fs$read) {
|
9579
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
9580
|
-
var callback;
|
9581
|
-
if (callback_ && typeof callback_ === "function") {
|
9582
|
-
var eagCounter = 0;
|
9583
|
-
callback = function(er, _, __) {
|
9584
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
9585
|
-
eagCounter++;
|
9586
|
-
return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
|
9587
|
-
}
|
9588
|
-
callback_.apply(this, arguments);
|
9589
|
-
};
|
9590
|
-
}
|
9591
|
-
return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
|
9592
|
-
}
|
9593
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
9594
|
-
return read;
|
9595
|
-
}(fs4.read);
|
9596
|
-
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
|
9597
|
-
return function(fd, buffer, offset, length, position) {
|
9598
|
-
var eagCounter = 0;
|
9599
|
-
while (true) {
|
9600
|
-
try {
|
9601
|
-
return fs$readSync.call(fs4, fd, buffer, offset, length, position);
|
9602
|
-
} catch (er) {
|
9603
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
9604
|
-
eagCounter++;
|
9605
|
-
continue;
|
9606
|
-
}
|
9607
|
-
throw er;
|
9608
|
-
}
|
9609
|
-
}
|
9610
|
-
};
|
9611
|
-
}(fs4.readSync);
|
9612
|
-
function patchLchmod(fs5) {
|
9613
|
-
fs5.lchmod = function(path5, mode, callback) {
|
9614
|
-
fs5.open(
|
9615
|
-
path5,
|
9616
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
9617
|
-
mode,
|
9618
|
-
function(err, fd) {
|
9619
|
-
if (err) {
|
9620
|
-
if (callback) callback(err);
|
9621
|
-
return;
|
9622
|
-
}
|
9623
|
-
fs5.fchmod(fd, mode, function(err2) {
|
9624
|
-
fs5.close(fd, function(err22) {
|
9625
|
-
if (callback) callback(err2 || err22);
|
9626
|
-
});
|
9627
|
-
});
|
9628
|
-
}
|
9629
|
-
);
|
9630
|
-
};
|
9631
|
-
fs5.lchmodSync = function(path5, mode) {
|
9632
|
-
var fd = fs5.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
9633
|
-
var threw = true;
|
9634
|
-
var ret;
|
9635
|
-
try {
|
9636
|
-
ret = fs5.fchmodSync(fd, mode);
|
9637
|
-
threw = false;
|
9638
|
-
} finally {
|
9639
|
-
if (threw) {
|
9640
|
-
try {
|
9641
|
-
fs5.closeSync(fd);
|
9642
|
-
} catch (er) {
|
9643
|
-
}
|
9644
|
-
} else {
|
9645
|
-
fs5.closeSync(fd);
|
9646
|
-
}
|
9647
|
-
}
|
9648
|
-
return ret;
|
9649
|
-
};
|
9650
|
-
}
|
9651
|
-
function patchLutimes(fs5) {
|
9652
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
|
9653
|
-
fs5.lutimes = function(path5, at, mt, cb) {
|
9654
|
-
fs5.open(path5, constants.O_SYMLINK, function(er, fd) {
|
9655
|
-
if (er) {
|
9656
|
-
if (cb) cb(er);
|
9657
|
-
return;
|
9658
|
-
}
|
9659
|
-
fs5.futimes(fd, at, mt, function(er2) {
|
9660
|
-
fs5.close(fd, function(er22) {
|
9661
|
-
if (cb) cb(er2 || er22);
|
9662
|
-
});
|
9663
|
-
});
|
9664
|
-
});
|
9665
|
-
};
|
9666
|
-
fs5.lutimesSync = function(path5, at, mt) {
|
9667
|
-
var fd = fs5.openSync(path5, constants.O_SYMLINK);
|
9668
|
-
var ret;
|
9669
|
-
var threw = true;
|
9670
|
-
try {
|
9671
|
-
ret = fs5.futimesSync(fd, at, mt);
|
9672
|
-
threw = false;
|
9673
|
-
} finally {
|
9674
|
-
if (threw) {
|
9675
|
-
try {
|
9676
|
-
fs5.closeSync(fd);
|
9677
|
-
} catch (er) {
|
9678
|
-
}
|
9679
|
-
} else {
|
9680
|
-
fs5.closeSync(fd);
|
9681
|
-
}
|
9682
|
-
}
|
9683
|
-
return ret;
|
9684
|
-
};
|
9685
|
-
} else if (fs5.futimes) {
|
9686
|
-
fs5.lutimes = function(_a, _b, _c, cb) {
|
9687
|
-
if (cb) process.nextTick(cb);
|
9688
|
-
};
|
9689
|
-
fs5.lutimesSync = function() {
|
9690
|
-
};
|
9691
|
-
}
|
9692
|
-
}
|
9693
|
-
function chmodFix(orig) {
|
9694
|
-
if (!orig) return orig;
|
9695
|
-
return function(target, mode, cb) {
|
9696
|
-
return orig.call(fs4, target, mode, function(er) {
|
9697
|
-
if (chownErOk(er)) er = null;
|
9698
|
-
if (cb) cb.apply(this, arguments);
|
9699
|
-
});
|
9700
|
-
};
|
9701
|
-
}
|
9702
|
-
function chmodFixSync(orig) {
|
9703
|
-
if (!orig) return orig;
|
9704
|
-
return function(target, mode) {
|
9705
|
-
try {
|
9706
|
-
return orig.call(fs4, target, mode);
|
9707
|
-
} catch (er) {
|
9708
|
-
if (!chownErOk(er)) throw er;
|
9709
|
-
}
|
9710
|
-
};
|
9711
|
-
}
|
9712
|
-
function chownFix(orig) {
|
9713
|
-
if (!orig) return orig;
|
9714
|
-
return function(target, uid, gid, cb) {
|
9715
|
-
return orig.call(fs4, target, uid, gid, function(er) {
|
9716
|
-
if (chownErOk(er)) er = null;
|
9717
|
-
if (cb) cb.apply(this, arguments);
|
9718
|
-
});
|
9719
|
-
};
|
9720
|
-
}
|
9721
|
-
function chownFixSync(orig) {
|
9722
|
-
if (!orig) return orig;
|
9723
|
-
return function(target, uid, gid) {
|
9724
|
-
try {
|
9725
|
-
return orig.call(fs4, target, uid, gid);
|
9726
|
-
} catch (er) {
|
9727
|
-
if (!chownErOk(er)) throw er;
|
9728
|
-
}
|
9729
|
-
};
|
9730
|
-
}
|
9731
|
-
function statFix(orig) {
|
9732
|
-
if (!orig) return orig;
|
9733
|
-
return function(target, options, cb) {
|
9734
|
-
if (typeof options === "function") {
|
9735
|
-
cb = options;
|
9736
|
-
options = null;
|
9737
|
-
}
|
9738
|
-
function callback(er, stats) {
|
9739
|
-
if (stats) {
|
9740
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
9741
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
9742
|
-
}
|
9743
|
-
if (cb) cb.apply(this, arguments);
|
9744
|
-
}
|
9745
|
-
return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback);
|
9746
|
-
};
|
9747
|
-
}
|
9748
|
-
function statFixSync(orig) {
|
9749
|
-
if (!orig) return orig;
|
9750
|
-
return function(target, options) {
|
9751
|
-
var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target);
|
9752
|
-
if (stats) {
|
9753
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
9754
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
9755
|
-
}
|
9756
|
-
return stats;
|
9757
|
-
};
|
9758
|
-
}
|
9759
|
-
function chownErOk(er) {
|
9760
|
-
if (!er)
|
9761
|
-
return true;
|
9762
|
-
if (er.code === "ENOSYS")
|
9763
|
-
return true;
|
9764
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
9765
|
-
if (nonroot) {
|
9766
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
9767
|
-
return true;
|
9768
|
-
}
|
9769
|
-
return false;
|
9770
|
-
}
|
9771
|
-
}
|
9772
|
-
}
|
9773
|
-
});
|
9774
|
-
var require_legacy_streams = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9775
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
9776
|
-
"use strict";
|
9777
|
-
var Stream = (0, import_chunk_4VNS5WPM.__require)("stream").Stream;
|
9778
|
-
module2.exports = legacy;
|
9779
|
-
function legacy(fs4) {
|
9780
|
-
return {
|
9781
|
-
ReadStream,
|
9782
|
-
WriteStream
|
9783
|
-
};
|
9784
|
-
function ReadStream(path5, options) {
|
9785
|
-
if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
|
9786
|
-
Stream.call(this);
|
9787
|
-
var self = this;
|
9788
|
-
this.path = path5;
|
9789
|
-
this.fd = null;
|
9790
|
-
this.readable = true;
|
9791
|
-
this.paused = false;
|
9792
|
-
this.flags = "r";
|
9793
|
-
this.mode = 438;
|
9794
|
-
this.bufferSize = 64 * 1024;
|
9795
|
-
options = options || {};
|
9796
|
-
var keys = Object.keys(options);
|
9797
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
9798
|
-
var key = keys[index];
|
9799
|
-
this[key] = options[key];
|
9800
|
-
}
|
9801
|
-
if (this.encoding) this.setEncoding(this.encoding);
|
9802
|
-
if (this.start !== void 0) {
|
9803
|
-
if ("number" !== typeof this.start) {
|
9804
|
-
throw TypeError("start must be a Number");
|
9805
|
-
}
|
9806
|
-
if (this.end === void 0) {
|
9807
|
-
this.end = Infinity;
|
9808
|
-
} else if ("number" !== typeof this.end) {
|
9809
|
-
throw TypeError("end must be a Number");
|
9810
|
-
}
|
9811
|
-
if (this.start > this.end) {
|
9812
|
-
throw new Error("start must be <= end");
|
9813
|
-
}
|
9814
|
-
this.pos = this.start;
|
9815
|
-
}
|
9816
|
-
if (this.fd !== null) {
|
9817
|
-
process.nextTick(function() {
|
9818
|
-
self._read();
|
9819
|
-
});
|
9820
|
-
return;
|
9821
|
-
}
|
9822
|
-
fs4.open(this.path, this.flags, this.mode, function(err, fd) {
|
9823
|
-
if (err) {
|
9824
|
-
self.emit("error", err);
|
9825
|
-
self.readable = false;
|
9826
|
-
return;
|
9827
|
-
}
|
9828
|
-
self.fd = fd;
|
9829
|
-
self.emit("open", fd);
|
9830
|
-
self._read();
|
9831
|
-
});
|
9832
|
-
}
|
9833
|
-
function WriteStream(path5, options) {
|
9834
|
-
if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
|
9835
|
-
Stream.call(this);
|
9836
|
-
this.path = path5;
|
9837
|
-
this.fd = null;
|
9838
|
-
this.writable = true;
|
9839
|
-
this.flags = "w";
|
9840
|
-
this.encoding = "binary";
|
9841
|
-
this.mode = 438;
|
9842
|
-
this.bytesWritten = 0;
|
9843
|
-
options = options || {};
|
9844
|
-
var keys = Object.keys(options);
|
9845
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
9846
|
-
var key = keys[index];
|
9847
|
-
this[key] = options[key];
|
9848
|
-
}
|
9849
|
-
if (this.start !== void 0) {
|
9850
|
-
if ("number" !== typeof this.start) {
|
9851
|
-
throw TypeError("start must be a Number");
|
9852
|
-
}
|
9853
|
-
if (this.start < 0) {
|
9854
|
-
throw new Error("start must be >= zero");
|
9855
|
-
}
|
9856
|
-
this.pos = this.start;
|
9857
|
-
}
|
9858
|
-
this.busy = false;
|
9859
|
-
this._queue = [];
|
9860
|
-
if (this.fd === null) {
|
9861
|
-
this._open = fs4.open;
|
9862
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
9863
|
-
this.flush();
|
9864
|
-
}
|
9865
|
-
}
|
9866
|
-
}
|
9867
|
-
}
|
9868
|
-
});
|
9869
|
-
var require_clone = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9870
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
|
9871
|
-
"use strict";
|
9872
|
-
module2.exports = clone;
|
9873
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
9874
|
-
return obj.__proto__;
|
9875
|
-
};
|
9876
|
-
function clone(obj) {
|
9877
|
-
if (obj === null || typeof obj !== "object")
|
9878
|
-
return obj;
|
9879
|
-
if (obj instanceof Object)
|
9880
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
9881
|
-
else
|
9882
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
9883
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
9884
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
9885
|
-
});
|
9886
|
-
return copy;
|
9887
|
-
}
|
9888
|
-
}
|
9889
|
-
});
|
9890
|
-
var require_graceful_fs = (0, import_chunk_4VNS5WPM.__commonJS)({
|
9891
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
9892
|
-
"use strict";
|
9893
|
-
var fs4 = (0, import_chunk_4VNS5WPM.__require)("fs");
|
9894
|
-
var polyfills = require_polyfills();
|
9895
|
-
var legacy = require_legacy_streams();
|
9896
|
-
var clone = require_clone();
|
9897
|
-
var util = (0, import_chunk_4VNS5WPM.__require)("util");
|
9898
|
-
var gracefulQueue;
|
9899
|
-
var previousSymbol;
|
9900
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
9901
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
9902
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
9903
|
-
} else {
|
9904
|
-
gracefulQueue = "___graceful-fs.queue";
|
9905
|
-
previousSymbol = "___graceful-fs.previous";
|
9906
|
-
}
|
9907
|
-
function noop() {
|
9908
|
-
}
|
9909
|
-
function publishQueue(context, queue2) {
|
9910
|
-
Object.defineProperty(context, gracefulQueue, {
|
9911
|
-
get: function() {
|
9912
|
-
return queue2;
|
9913
|
-
}
|
9914
|
-
});
|
9915
|
-
}
|
9916
|
-
var debug = noop;
|
9917
|
-
if (util.debuglog)
|
9918
|
-
debug = util.debuglog("gfs4");
|
9919
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
9920
|
-
debug = function() {
|
9921
|
-
var m = util.format.apply(util, arguments);
|
9922
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
9923
|
-
console.error(m);
|
9924
|
-
};
|
9925
|
-
if (!fs4[gracefulQueue]) {
|
9926
|
-
queue = global[gracefulQueue] || [];
|
9927
|
-
publishQueue(fs4, queue);
|
9928
|
-
fs4.close = function(fs$close) {
|
9929
|
-
function close(fd, cb) {
|
9930
|
-
return fs$close.call(fs4, fd, function(err) {
|
9931
|
-
if (!err) {
|
9932
|
-
resetQueue();
|
9933
|
-
}
|
9934
|
-
if (typeof cb === "function")
|
9935
|
-
cb.apply(this, arguments);
|
9936
|
-
});
|
9937
|
-
}
|
9938
|
-
Object.defineProperty(close, previousSymbol, {
|
9939
|
-
value: fs$close
|
9940
|
-
});
|
9941
|
-
return close;
|
9942
|
-
}(fs4.close);
|
9943
|
-
fs4.closeSync = function(fs$closeSync) {
|
9944
|
-
function closeSync(fd) {
|
9945
|
-
fs$closeSync.apply(fs4, arguments);
|
9946
|
-
resetQueue();
|
9947
|
-
}
|
9948
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
9949
|
-
value: fs$closeSync
|
9950
|
-
});
|
9951
|
-
return closeSync;
|
9952
|
-
}(fs4.closeSync);
|
9953
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
9954
|
-
process.on("exit", function() {
|
9955
|
-
debug(fs4[gracefulQueue]);
|
9956
|
-
(0, import_chunk_4VNS5WPM.__require)("assert").equal(fs4[gracefulQueue].length, 0);
|
9957
|
-
});
|
9958
|
-
}
|
9959
|
-
}
|
9960
|
-
var queue;
|
9961
|
-
if (!global[gracefulQueue]) {
|
9962
|
-
publishQueue(global, fs4[gracefulQueue]);
|
9963
|
-
}
|
9964
|
-
module2.exports = patch(clone(fs4));
|
9965
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) {
|
9966
|
-
module2.exports = patch(fs4);
|
9967
|
-
fs4.__patched = true;
|
9968
|
-
}
|
9969
|
-
function patch(fs5) {
|
9970
|
-
polyfills(fs5);
|
9971
|
-
fs5.gracefulify = patch;
|
9972
|
-
fs5.createReadStream = createReadStream;
|
9973
|
-
fs5.createWriteStream = createWriteStream;
|
9974
|
-
var fs$readFile = fs5.readFile;
|
9975
|
-
fs5.readFile = readFile;
|
9976
|
-
function readFile(path5, options, cb) {
|
9977
|
-
if (typeof options === "function")
|
9978
|
-
cb = options, options = null;
|
9979
|
-
return go$readFile(path5, options, cb);
|
9980
|
-
function go$readFile(path6, options2, cb2, startTime) {
|
9981
|
-
return fs$readFile(path6, options2, function(err) {
|
9982
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9983
|
-
enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
9984
|
-
else {
|
9985
|
-
if (typeof cb2 === "function")
|
9986
|
-
cb2.apply(this, arguments);
|
9987
|
-
}
|
9988
|
-
});
|
9989
|
-
}
|
9990
|
-
}
|
9991
|
-
var fs$writeFile = fs5.writeFile;
|
9992
|
-
fs5.writeFile = writeFile;
|
9993
|
-
function writeFile(path5, data, options, cb) {
|
9994
|
-
if (typeof options === "function")
|
9995
|
-
cb = options, options = null;
|
9996
|
-
return go$writeFile(path5, data, options, cb);
|
9997
|
-
function go$writeFile(path6, data2, options2, cb2, startTime) {
|
9998
|
-
return fs$writeFile(path6, data2, options2, function(err) {
|
9999
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10000
|
-
enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
10001
|
-
else {
|
10002
|
-
if (typeof cb2 === "function")
|
10003
|
-
cb2.apply(this, arguments);
|
10004
|
-
}
|
10005
|
-
});
|
10006
|
-
}
|
10007
|
-
}
|
10008
|
-
var fs$appendFile = fs5.appendFile;
|
10009
|
-
if (fs$appendFile)
|
10010
|
-
fs5.appendFile = appendFile;
|
10011
|
-
function appendFile(path5, data, options, cb) {
|
10012
|
-
if (typeof options === "function")
|
10013
|
-
cb = options, options = null;
|
10014
|
-
return go$appendFile(path5, data, options, cb);
|
10015
|
-
function go$appendFile(path6, data2, options2, cb2, startTime) {
|
10016
|
-
return fs$appendFile(path6, data2, options2, function(err) {
|
10017
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10018
|
-
enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
10019
|
-
else {
|
10020
|
-
if (typeof cb2 === "function")
|
10021
|
-
cb2.apply(this, arguments);
|
10022
|
-
}
|
10023
|
-
});
|
10024
|
-
}
|
10025
|
-
}
|
10026
|
-
var fs$copyFile = fs5.copyFile;
|
10027
|
-
if (fs$copyFile)
|
10028
|
-
fs5.copyFile = copyFile;
|
10029
|
-
function copyFile(src, dest, flags, cb) {
|
10030
|
-
if (typeof flags === "function") {
|
10031
|
-
cb = flags;
|
10032
|
-
flags = 0;
|
10033
|
-
}
|
10034
|
-
return go$copyFile(src, dest, flags, cb);
|
10035
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
10036
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
10037
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10038
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
10039
|
-
else {
|
10040
|
-
if (typeof cb2 === "function")
|
10041
|
-
cb2.apply(this, arguments);
|
10042
|
-
}
|
10043
|
-
});
|
10044
|
-
}
|
10045
|
-
}
|
10046
|
-
var fs$readdir = fs5.readdir;
|
10047
|
-
fs5.readdir = readdir;
|
10048
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
10049
|
-
function readdir(path5, options, cb) {
|
10050
|
-
if (typeof options === "function")
|
10051
|
-
cb = options, options = null;
|
10052
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
|
10053
|
-
return fs$readdir(path6, fs$readdirCallback(
|
10054
|
-
path6,
|
10055
|
-
options2,
|
10056
|
-
cb2,
|
10057
|
-
startTime
|
10058
|
-
));
|
10059
|
-
} : function go$readdir2(path6, options2, cb2, startTime) {
|
10060
|
-
return fs$readdir(path6, options2, fs$readdirCallback(
|
10061
|
-
path6,
|
10062
|
-
options2,
|
10063
|
-
cb2,
|
10064
|
-
startTime
|
10065
|
-
));
|
10066
|
-
};
|
10067
|
-
return go$readdir(path5, options, cb);
|
10068
|
-
function fs$readdirCallback(path6, options2, cb2, startTime) {
|
10069
|
-
return function(err, files) {
|
10070
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10071
|
-
enqueue([
|
10072
|
-
go$readdir,
|
10073
|
-
[path6, options2, cb2],
|
10074
|
-
err,
|
10075
|
-
startTime || Date.now(),
|
10076
|
-
Date.now()
|
10077
|
-
]);
|
10078
|
-
else {
|
10079
|
-
if (files && files.sort)
|
10080
|
-
files.sort();
|
10081
|
-
if (typeof cb2 === "function")
|
10082
|
-
cb2.call(this, err, files);
|
10083
|
-
}
|
10084
|
-
};
|
10085
|
-
}
|
10086
|
-
}
|
10087
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
10088
|
-
var legStreams = legacy(fs5);
|
10089
|
-
ReadStream = legStreams.ReadStream;
|
10090
|
-
WriteStream = legStreams.WriteStream;
|
10091
|
-
}
|
10092
|
-
var fs$ReadStream = fs5.ReadStream;
|
10093
|
-
if (fs$ReadStream) {
|
10094
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
10095
|
-
ReadStream.prototype.open = ReadStream$open;
|
10096
|
-
}
|
10097
|
-
var fs$WriteStream = fs5.WriteStream;
|
10098
|
-
if (fs$WriteStream) {
|
10099
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
10100
|
-
WriteStream.prototype.open = WriteStream$open;
|
10101
|
-
}
|
10102
|
-
Object.defineProperty(fs5, "ReadStream", {
|
10103
|
-
get: function() {
|
10104
|
-
return ReadStream;
|
10105
|
-
},
|
10106
|
-
set: function(val) {
|
10107
|
-
ReadStream = val;
|
10108
|
-
},
|
10109
|
-
enumerable: true,
|
10110
|
-
configurable: true
|
10111
|
-
});
|
10112
|
-
Object.defineProperty(fs5, "WriteStream", {
|
10113
|
-
get: function() {
|
10114
|
-
return WriteStream;
|
10115
|
-
},
|
10116
|
-
set: function(val) {
|
10117
|
-
WriteStream = val;
|
10118
|
-
},
|
10119
|
-
enumerable: true,
|
10120
|
-
configurable: true
|
10121
|
-
});
|
10122
|
-
var FileReadStream = ReadStream;
|
10123
|
-
Object.defineProperty(fs5, "FileReadStream", {
|
10124
|
-
get: function() {
|
10125
|
-
return FileReadStream;
|
10126
|
-
},
|
10127
|
-
set: function(val) {
|
10128
|
-
FileReadStream = val;
|
10129
|
-
},
|
10130
|
-
enumerable: true,
|
10131
|
-
configurable: true
|
10132
|
-
});
|
10133
|
-
var FileWriteStream = WriteStream;
|
10134
|
-
Object.defineProperty(fs5, "FileWriteStream", {
|
10135
|
-
get: function() {
|
10136
|
-
return FileWriteStream;
|
10137
|
-
},
|
10138
|
-
set: function(val) {
|
10139
|
-
FileWriteStream = val;
|
10140
|
-
},
|
10141
|
-
enumerable: true,
|
10142
|
-
configurable: true
|
10143
|
-
});
|
10144
|
-
function ReadStream(path5, options) {
|
10145
|
-
if (this instanceof ReadStream)
|
10146
|
-
return fs$ReadStream.apply(this, arguments), this;
|
10147
|
-
else
|
10148
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
10149
|
-
}
|
10150
|
-
function ReadStream$open() {
|
10151
|
-
var that = this;
|
10152
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
10153
|
-
if (err) {
|
10154
|
-
if (that.autoClose)
|
10155
|
-
that.destroy();
|
10156
|
-
that.emit("error", err);
|
10157
|
-
} else {
|
10158
|
-
that.fd = fd;
|
10159
|
-
that.emit("open", fd);
|
10160
|
-
that.read();
|
10161
|
-
}
|
10162
|
-
});
|
10163
|
-
}
|
10164
|
-
function WriteStream(path5, options) {
|
10165
|
-
if (this instanceof WriteStream)
|
10166
|
-
return fs$WriteStream.apply(this, arguments), this;
|
10167
|
-
else
|
10168
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
10169
|
-
}
|
10170
|
-
function WriteStream$open() {
|
10171
|
-
var that = this;
|
10172
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
10173
|
-
if (err) {
|
10174
|
-
that.destroy();
|
10175
|
-
that.emit("error", err);
|
10176
|
-
} else {
|
10177
|
-
that.fd = fd;
|
10178
|
-
that.emit("open", fd);
|
10179
|
-
}
|
10180
|
-
});
|
10181
|
-
}
|
10182
|
-
function createReadStream(path5, options) {
|
10183
|
-
return new fs5.ReadStream(path5, options);
|
10184
|
-
}
|
10185
|
-
function createWriteStream(path5, options) {
|
10186
|
-
return new fs5.WriteStream(path5, options);
|
10187
|
-
}
|
10188
|
-
var fs$open = fs5.open;
|
10189
|
-
fs5.open = open;
|
10190
|
-
function open(path5, flags, mode, cb) {
|
10191
|
-
if (typeof mode === "function")
|
10192
|
-
cb = mode, mode = null;
|
10193
|
-
return go$open(path5, flags, mode, cb);
|
10194
|
-
function go$open(path6, flags2, mode2, cb2, startTime) {
|
10195
|
-
return fs$open(path6, flags2, mode2, function(err, fd) {
|
10196
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10197
|
-
enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
10198
|
-
else {
|
10199
|
-
if (typeof cb2 === "function")
|
10200
|
-
cb2.apply(this, arguments);
|
10201
|
-
}
|
10202
|
-
});
|
10203
|
-
}
|
10204
|
-
}
|
10205
|
-
return fs5;
|
10206
|
-
}
|
10207
|
-
function enqueue(elem) {
|
10208
|
-
debug("ENQUEUE", elem[0].name, elem[1]);
|
10209
|
-
fs4[gracefulQueue].push(elem);
|
10210
|
-
retry();
|
10211
|
-
}
|
10212
|
-
var retryTimer;
|
10213
|
-
function resetQueue() {
|
10214
|
-
var now = Date.now();
|
10215
|
-
for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
|
10216
|
-
if (fs4[gracefulQueue][i].length > 2) {
|
10217
|
-
fs4[gracefulQueue][i][3] = now;
|
10218
|
-
fs4[gracefulQueue][i][4] = now;
|
10219
|
-
}
|
10220
|
-
}
|
10221
|
-
retry();
|
10222
|
-
}
|
10223
|
-
function retry() {
|
10224
|
-
clearTimeout(retryTimer);
|
10225
|
-
retryTimer = void 0;
|
10226
|
-
if (fs4[gracefulQueue].length === 0)
|
10227
|
-
return;
|
10228
|
-
var elem = fs4[gracefulQueue].shift();
|
10229
|
-
var fn = elem[0];
|
10230
|
-
var args = elem[1];
|
10231
|
-
var err = elem[2];
|
10232
|
-
var startTime = elem[3];
|
10233
|
-
var lastTime = elem[4];
|
10234
|
-
if (startTime === void 0) {
|
10235
|
-
debug("RETRY", fn.name, args);
|
10236
|
-
fn.apply(null, args);
|
10237
|
-
} else if (Date.now() - startTime >= 6e4) {
|
10238
|
-
debug("TIMEOUT", fn.name, args);
|
10239
|
-
var cb = args.pop();
|
10240
|
-
if (typeof cb === "function")
|
10241
|
-
cb.call(null, err);
|
10242
|
-
} else {
|
10243
|
-
var sinceAttempt = Date.now() - lastTime;
|
10244
|
-
var sinceStart = Math.max(lastTime - startTime, 1);
|
10245
|
-
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
10246
|
-
if (sinceAttempt >= desiredDelay) {
|
10247
|
-
debug("RETRY", fn.name, args);
|
10248
|
-
fn.apply(null, args.concat([startTime]));
|
10249
|
-
} else {
|
10250
|
-
fs4[gracefulQueue].push(elem);
|
10251
|
-
}
|
10252
|
-
}
|
10253
|
-
if (retryTimer === void 0) {
|
10254
|
-
retryTimer = setTimeout(retry, 0);
|
10255
|
-
}
|
10256
|
-
}
|
10257
|
-
}
|
10258
|
-
});
|
10259
7730
|
var require_is_path_cwd = (0, import_chunk_4VNS5WPM.__commonJS)({
|
10260
7731
|
"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) {
|
10261
7732
|
"use strict";
|
@@ -12553,10 +10024,10 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
12553
10024
|
"use strict";
|
12554
10025
|
var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
|
12555
10026
|
var path5 = (0, import_chunk_4VNS5WPM.__require)("path");
|
12556
|
-
var globby = (0,
|
12557
|
-
var isGlob = (0,
|
12558
|
-
var slash = (0,
|
12559
|
-
var gracefulFs = require_graceful_fs();
|
10027
|
+
var globby = (0, import_chunk_2LOGW45F.require_globby)();
|
10028
|
+
var isGlob = (0, import_chunk_2LOGW45F.require_is_glob)();
|
10029
|
+
var slash = (0, import_chunk_2LOGW45F.require_slash)();
|
10030
|
+
var gracefulFs = (0, import_chunk_DYV47NUW.require_graceful_fs)();
|
12560
10031
|
var isPathCwd = require_is_path_cwd();
|
12561
10032
|
var isPathInside = require_is_path_inside();
|
12562
10033
|
var rimraf = require_rimraf();
|
@@ -12731,8 +10202,9 @@ async function findUp(name, {
|
|
12731
10202
|
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
12732
10203
|
const { root } = import_node_path2.default.parse(directory);
|
12733
10204
|
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt ?? root));
|
12734
|
-
|
12735
|
-
|
10205
|
+
const isAbsoluteName = import_node_path2.default.isAbsolute(name);
|
10206
|
+
while (directory) {
|
10207
|
+
const filePath = isAbsoluteName ? name : import_node_path2.default.join(directory, name);
|
12736
10208
|
try {
|
12737
10209
|
const stats = await import_promises.default.stat(filePath);
|
12738
10210
|
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
|
@@ -12740,6 +10212,9 @@ async function findUp(name, {
|
|
12740
10212
|
}
|
12741
10213
|
} catch {
|
12742
10214
|
}
|
10215
|
+
if (directory === stopAt || directory === root) {
|
10216
|
+
break;
|
10217
|
+
}
|
12743
10218
|
directory = import_node_path2.default.dirname(directory);
|
12744
10219
|
}
|
12745
10220
|
}
|
@@ -12751,8 +10226,9 @@ function findUpSync(name, {
|
|
12751
10226
|
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
12752
10227
|
const { root } = import_node_path2.default.parse(directory);
|
12753
10228
|
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt) ?? root);
|
12754
|
-
|
12755
|
-
|
10229
|
+
const isAbsoluteName = import_node_path2.default.isAbsolute(name);
|
10230
|
+
while (directory) {
|
10231
|
+
const filePath = isAbsoluteName ? name : import_node_path2.default.join(directory, name);
|
12756
10232
|
try {
|
12757
10233
|
const stats = import_node_fs.default.statSync(filePath, { throwIfNoEntry: false });
|
12758
10234
|
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
|
@@ -12760,10 +10236,13 @@ function findUpSync(name, {
|
|
12760
10236
|
}
|
12761
10237
|
} catch {
|
12762
10238
|
}
|
10239
|
+
if (directory === stopAt || directory === root) {
|
10240
|
+
break;
|
10241
|
+
}
|
12763
10242
|
directory = import_node_path2.default.dirname(directory);
|
12764
10243
|
}
|
12765
10244
|
}
|
12766
|
-
var import_code_frame = (0, import_chunk_4VNS5WPM.__toESM)(
|
10245
|
+
var import_code_frame = (0, import_chunk_4VNS5WPM.__toESM)(require_lib6(), 1);
|
12767
10246
|
var safeLastIndexOf = (string, searchString, index) => index < 0 ? -1 : string.lastIndexOf(searchString, index);
|
12768
10247
|
function getPosition(text, textIndex) {
|
12769
10248
|
const lineBreakBefore = safeLastIndexOf(text, "\n", textIndex - 1);
|
@@ -12775,6 +10254,12 @@ function getPosition(text, textIndex) {
|
|
12775
10254
|
return { line, column };
|
12776
10255
|
}
|
12777
10256
|
function indexToLineColumn(text, textIndex, { oneBased = false } = {}) {
|
10257
|
+
if (typeof text !== "string") {
|
10258
|
+
throw new TypeError("Text parameter should be a string");
|
10259
|
+
}
|
10260
|
+
if (!Number.isInteger(textIndex)) {
|
10261
|
+
throw new TypeError("Index parameter should be an integer");
|
10262
|
+
}
|
12778
10263
|
if (textIndex < 0 || textIndex >= text.length && text.length > 0) {
|
12779
10264
|
throw new RangeError("Index out of bounds");
|
12780
10265
|
}
|
@@ -12785,17 +10270,28 @@ var getCodePoint = (character) => `\\u{${character.codePointAt(0).toString(16)}}
|
|
12785
10270
|
var JSONError = class _JSONError extends Error {
|
12786
10271
|
name = "JSONError";
|
12787
10272
|
fileName;
|
12788
|
-
|
12789
|
-
|
10273
|
+
#input;
|
10274
|
+
#jsonParseError;
|
12790
10275
|
#message;
|
12791
|
-
|
12792
|
-
|
12793
|
-
|
10276
|
+
#codeFrame;
|
10277
|
+
#rawCodeFrame;
|
10278
|
+
constructor(messageOrOptions) {
|
10279
|
+
if (typeof messageOrOptions === "string") {
|
10280
|
+
super();
|
10281
|
+
this.#message = messageOrOptions;
|
10282
|
+
} else {
|
10283
|
+
const { jsonParseError, fileName, input } = messageOrOptions;
|
10284
|
+
super(void 0, { cause: jsonParseError });
|
10285
|
+
this.#input = input;
|
10286
|
+
this.#jsonParseError = jsonParseError;
|
10287
|
+
this.fileName = fileName;
|
10288
|
+
}
|
12794
10289
|
Error.captureStackTrace?.(this, _JSONError);
|
12795
10290
|
}
|
12796
10291
|
get message() {
|
12797
|
-
|
12798
|
-
|
10292
|
+
this.#message ??= `${addCodePointToUnexpectedToken(this.#jsonParseError.message)}${this.#input === "" ? " while parsing empty string" : ""}`;
|
10293
|
+
const { codeFrame } = this;
|
10294
|
+
return `${this.#message}${this.fileName ? ` in ${this.fileName}` : ""}${codeFrame ? `
|
12799
10295
|
|
12800
10296
|
${codeFrame}
|
12801
10297
|
` : ""}`;
|
@@ -12803,8 +10299,32 @@ ${codeFrame}
|
|
12803
10299
|
set message(message) {
|
12804
10300
|
this.#message = message;
|
12805
10301
|
}
|
10302
|
+
#getCodeFrame(highlightCode) {
|
10303
|
+
if (!this.#jsonParseError) {
|
10304
|
+
return;
|
10305
|
+
}
|
10306
|
+
const input = this.#input;
|
10307
|
+
const location = getErrorLocation(input, this.#jsonParseError.message);
|
10308
|
+
if (!location) {
|
10309
|
+
return;
|
10310
|
+
}
|
10311
|
+
return (0, import_code_frame.codeFrameColumns)(input, { start: location }, { highlightCode });
|
10312
|
+
}
|
10313
|
+
get codeFrame() {
|
10314
|
+
this.#codeFrame ??= this.#getCodeFrame(
|
10315
|
+
/* highlightCode */
|
10316
|
+
true
|
10317
|
+
);
|
10318
|
+
return this.#codeFrame;
|
10319
|
+
}
|
10320
|
+
get rawCodeFrame() {
|
10321
|
+
this.#rawCodeFrame ??= this.#getCodeFrame(
|
10322
|
+
/* highlightCode */
|
10323
|
+
false
|
10324
|
+
);
|
10325
|
+
return this.#rawCodeFrame;
|
10326
|
+
}
|
12806
10327
|
};
|
12807
|
-
var generateCodeFrame = (string, location, highlightCode = true) => (0, import_code_frame.codeFrameColumns)(string, { start: location }, { highlightCode });
|
12808
10328
|
var getErrorLocation = (string, message) => {
|
12809
10329
|
const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
|
12810
10330
|
if (!match) {
|
@@ -12831,31 +10351,15 @@ function parseJson(string, reviver, fileName) {
|
|
12831
10351
|
fileName = reviver;
|
12832
10352
|
reviver = void 0;
|
12833
10353
|
}
|
12834
|
-
let message;
|
12835
10354
|
try {
|
12836
10355
|
return JSON.parse(string, reviver);
|
12837
10356
|
} catch (error) {
|
12838
|
-
|
12839
|
-
|
12840
|
-
|
12841
|
-
|
12842
|
-
|
12843
|
-
message = addCodePointToUnexpectedToken(message);
|
12844
|
-
} else {
|
12845
|
-
message += " while parsing empty string";
|
12846
|
-
}
|
12847
|
-
const jsonError = new JSONError(message);
|
12848
|
-
jsonError.fileName = fileName;
|
12849
|
-
if (location) {
|
12850
|
-
jsonError.codeFrame = generateCodeFrame(string, location);
|
12851
|
-
jsonError.rawCodeFrame = generateCodeFrame(
|
12852
|
-
string,
|
12853
|
-
location,
|
12854
|
-
/* highlightCode */
|
12855
|
-
false
|
12856
|
-
);
|
10357
|
+
throw new JSONError({
|
10358
|
+
jsonParseError: error,
|
10359
|
+
fileName,
|
10360
|
+
input: string
|
10361
|
+
});
|
12857
10362
|
}
|
12858
|
-
throw jsonError;
|
12859
10363
|
}
|
12860
10364
|
var import_normalize_package_data = (0, import_chunk_4VNS5WPM.__toESM)(require_normalize(), 1);
|
12861
10365
|
function toPath2(urlOrPath) {
|
@@ -12899,7 +10403,7 @@ function readPackageUpSync(options) {
|
|
12899
10403
|
}
|
12900
10404
|
var import_tempy = (0, import_chunk_4VNS5WPM.__toESM)(require_tempy());
|
12901
10405
|
async function getPackedPackage(name, target, packageDir) {
|
12902
|
-
packageDir = packageDir || await (0,
|
10406
|
+
packageDir = packageDir || await (0, import_chunk_URRVX2VQ.resolvePkg)(name, { basedir: process.cwd() }) || await (0, import_chunk_URRVX2VQ.resolvePkg)(name, { basedir: target });
|
12903
10407
|
if (!packageDir) {
|
12904
10408
|
const pkg = readPackageUpSync({
|
12905
10409
|
cwd: target,
|