@storm-software/workspace-tools 1.226.2 → 1.227.0
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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/index.js +1975 -1778
- package/meta.json +3523 -3377
- package/package.json +1 -1
- package/src/base/base-executor.js +544 -375
- package/src/base/base-generator.js +544 -375
- package/src/base/index.js +544 -375
- package/src/executors/cargo-build/executor.js +547 -378
- package/src/executors/cargo-check/executor.js +547 -378
- package/src/executors/cargo-clippy/executor.js +547 -378
- package/src/executors/cargo-doc/executor.js +549 -380
- package/src/executors/cargo-format/executor.js +547 -378
- package/src/executors/clean-package/executor.js +613 -444
- package/src/executors/esbuild/executor.js +1183 -1014
- package/src/executors/size-limit/executor.js +550 -381
- package/src/executors/typia/executor.js +1243 -1046
- package/src/executors/unbuild/executor.js +649 -480
- package/src/generators/browser-library/generator.js +544 -375
- package/src/generators/config-schema/generator.js +544 -375
- package/src/generators/neutral-library/generator.js +544 -375
- package/src/generators/node-library/generator.js +544 -375
- package/src/generators/preset/generator.js +544 -375
- package/src/generators/release-version/generator.js +580 -411
- package/src/plugins/typescript/index.js +61 -59
- package/src/utils/index.js +658 -630
|
@@ -2786,29 +2786,29 @@ var require_jiti = __commonJS({
|
|
|
2786
2786
|
}
|
|
2787
2787
|
Symbol.for("ufo:protocolRelative");
|
|
2788
2788
|
Object.defineProperty;
|
|
2789
|
-
const
|
|
2790
|
-
function
|
|
2791
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2789
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2790
|
+
function normalizeWindowsPath3(input = "") {
|
|
2791
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2792
2792
|
}
|
|
2793
|
-
const
|
|
2793
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = function(path6) {
|
|
2794
2794
|
if (0 === path6.length) return ".";
|
|
2795
|
-
const isUNCPath = (path6 =
|
|
2796
|
-
return 0 === (path6 =
|
|
2797
|
-
},
|
|
2795
|
+
const isUNCPath = (path6 = normalizeWindowsPath3(path6)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute3(path6), trailingSeparator = "/" === path6[path6.length - 1];
|
|
2796
|
+
return 0 === (path6 = normalizeString3(path6, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path6 += "/"), _DRIVE_LETTER_RE3.test(path6) && (path6 += "/"), isUNCPath ? isPathAbsolute ? `//${path6}` : `//./${path6}` : isPathAbsolute && !isAbsolute3(path6) ? `/${path6}` : path6);
|
|
2797
|
+
}, join8 = function(...arguments_) {
|
|
2798
2798
|
if (0 === arguments_.length) return ".";
|
|
2799
2799
|
let joined;
|
|
2800
2800
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2801
2801
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2802
2802
|
};
|
|
2803
|
-
const
|
|
2803
|
+
const resolve5 = function(...arguments_) {
|
|
2804
2804
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2805
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2805
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2806
2806
|
const path6 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2807
|
-
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute =
|
|
2807
|
+
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path6));
|
|
2808
2808
|
}
|
|
2809
|
-
return resolvedPath =
|
|
2809
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2810
2810
|
};
|
|
2811
|
-
function
|
|
2811
|
+
function normalizeString3(path6, allowAboveRoot) {
|
|
2812
2812
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2813
2813
|
for (let index = 0; index <= path6.length; ++index) {
|
|
2814
2814
|
if (index < path6.length) char = path6[index];
|
|
@@ -2837,16 +2837,16 @@ var require_jiti = __commonJS({
|
|
|
2837
2837
|
}
|
|
2838
2838
|
return res;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2841
|
-
return
|
|
2842
|
-
}, _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2843
|
-
const match = _EXTNAME_RE2.exec(
|
|
2840
|
+
const isAbsolute3 = function(p2) {
|
|
2841
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2842
|
+
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname4 = function(p2) {
|
|
2843
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2844
2844
|
return match && match[1] || "";
|
|
2845
2845
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
2846
|
-
const segments =
|
|
2847
|
-
return 1 === segments.length &&
|
|
2848
|
-
},
|
|
2849
|
-
const lastSegment =
|
|
2846
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2847
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p2) ? "/" : ".");
|
|
2848
|
+
}, basename3 = function(p2, extension) {
|
|
2849
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2850
2850
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2851
2851
|
}, external_node_url_namespaceObject = require("node:url"), external_node_assert_namespaceObject = require("node:assert"), external_node_process_namespaceObject = require("node:process"), external_node_path_namespaceObject = require("node:path"), external_node_v8_namespaceObject = require("node:v8"), external_node_util_namespaceObject = require("node:util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
2852
2852
|
function normalizeSlash2(path6) {
|
|
@@ -2989,8 +2989,8 @@ var require_jiti = __commonJS({
|
|
|
2989
2989
|
const packageType = getPackageType2(url);
|
|
2990
2990
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2991
2991
|
}
|
|
2992
|
-
const
|
|
2993
|
-
if (
|
|
2992
|
+
const format4 = extensionFormatMap2[value2];
|
|
2993
|
+
if (format4) return format4;
|
|
2994
2994
|
if (ignoreErrors) return;
|
|
2995
2995
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2996
2996
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -3005,11 +3005,11 @@ var require_jiti = __commonJS({
|
|
|
3005
3005
|
}
|
|
3006
3006
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
3007
3007
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
3008
|
-
const
|
|
3008
|
+
const format4 = function(url2, context) {
|
|
3009
3009
|
const protocol = url2.protocol;
|
|
3010
3010
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
3011
3011
|
}(url, { parentURL: base.href });
|
|
3012
|
-
if ("module" !==
|
|
3012
|
+
if ("module" !== format4) return;
|
|
3013
3013
|
const urlPath = (0, external_node_url_namespaceObject.fileURLToPath)(url.href), packagePath = (0, external_node_url_namespaceObject.fileURLToPath)(new external_node_url_namespaceObject.URL(".", packageJsonUrl)), basePath = (0, external_node_url_namespaceObject.fileURLToPath)(base);
|
|
3014
3014
|
main ? external_node_path_namespaceObject.resolve(packagePath, main) !== urlPath && external_node_process_namespaceObject.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
3015
3015
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : external_node_process_namespaceObject.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
@@ -3306,7 +3306,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3306
3306
|
}
|
|
3307
3307
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
3308
3308
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
3309
|
-
if (id.startsWith("file://") && (id = fileURLToPath4(id)),
|
|
3309
|
+
if (id.startsWith("file://") && (id = fileURLToPath4(id)), isAbsolute3(id)) try {
|
|
3310
3310
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
3311
3311
|
} catch (error) {
|
|
3312
3312
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3410,8 +3410,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3410
3410
|
const debugMap = { true: green("true"), false: yellow("false"), "[esm]": blue("[esm]"), "[cjs]": green("[cjs]"), "[import]": blue("[import]"), "[require]": green("[require]"), "[native]": cyan("[native]"), "[transpile]": yellow("[transpile]"), "[fallback]": red("[fallback]"), "[unknown]": red("[unknown]"), "[hit]": green("[hit]"), "[miss]": yellow("[miss]"), "[json]": green("[json]"), "[data]": green("[data]") };
|
|
3411
3411
|
function debug2(ctx, ...args) {
|
|
3412
3412
|
if (!ctx.opts.debug) return;
|
|
3413
|
-
const
|
|
3414
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
3413
|
+
const cwd3 = process.cwd();
|
|
3414
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
3415
3415
|
}
|
|
3416
3416
|
function jitiInteropDefault(ctx, mod) {
|
|
3417
3417
|
return ctx.opts.interopDefault ? function(mod2) {
|
|
@@ -3449,17 +3449,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3449
3449
|
let resolved, lastError;
|
|
3450
3450
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3451
3451
|
ctx.alias && (id = function(path6, aliases2) {
|
|
3452
|
-
const _path =
|
|
3452
|
+
const _path = normalizeWindowsPath3(path6);
|
|
3453
3453
|
aliases2 = normalizeAliases(aliases2);
|
|
3454
3454
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3455
3455
|
if (!_path.startsWith(alias)) continue;
|
|
3456
3456
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3457
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3457
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join8(to, _path.slice(alias.length));
|
|
3458
3458
|
}
|
|
3459
3459
|
return _path;
|
|
3460
3460
|
}(id, ctx.alias));
|
|
3461
3461
|
let parentURL = options?.parentURL || ctx.url;
|
|
3462
|
-
isDir(parentURL) && (parentURL =
|
|
3462
|
+
isDir(parentURL) && (parentURL = join8(parentURL, "_index.js"));
|
|
3463
3463
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3464
3464
|
for (const conditions of conditionSets) {
|
|
3465
3465
|
try {
|
|
@@ -3509,7 +3509,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3509
3509
|
}
|
|
3510
3510
|
const filename = jitiResolve(ctx, id, opts);
|
|
3511
3511
|
if (!filename && opts.try) return;
|
|
3512
|
-
const ext =
|
|
3512
|
+
const ext = extname4(filename);
|
|
3513
3513
|
if (".json" === ext) {
|
|
3514
3514
|
debug2(ctx, "[json]", filename);
|
|
3515
3515
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3527,7 +3527,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3527
3527
|
}
|
|
3528
3528
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3529
3529
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3530
|
-
return _5 &&
|
|
3530
|
+
return _5 && isAbsolute3(id2) ? pathToFileURL2(id2) : id2;
|
|
3531
3531
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3532
3532
|
}
|
|
3533
3533
|
const CACHE_VERSION = "9";
|
|
@@ -3535,11 +3535,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3535
3535
|
if (!ctx.opts.fsCache || !topts.filename) return get();
|
|
3536
3536
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3537
3537
|
`;
|
|
3538
|
-
let cacheName = `${
|
|
3538
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path6) {
|
|
3539
3539
|
return path6.match(FILENAME_RE)?.[2];
|
|
3540
3540
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3541
3541
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3542
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3542
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join8(cacheDir, cacheName);
|
|
3543
3543
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3544
3544
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3545
3545
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3550,14 +3550,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3550
3550
|
}
|
|
3551
3551
|
function prepareCacheDir(ctx) {
|
|
3552
3552
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3553
|
-
const nmDir = ctx2.filename &&
|
|
3554
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3553
|
+
const nmDir = ctx2.filename && resolve5(ctx2.filename, "../node_modules");
|
|
3554
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join8(nmDir, ".cache/jiti");
|
|
3555
3555
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3556
3556
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3557
3557
|
const _env = process.env.TMPDIR;
|
|
3558
3558
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3559
3559
|
}
|
|
3560
|
-
return
|
|
3560
|
+
return join8(_tmpDir, "jiti");
|
|
3561
3561
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3562
3562
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3563
3563
|
try {
|
|
@@ -3578,11 +3578,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3578
3578
|
return code.startsWith("#!") && (code = "// " + code), code;
|
|
3579
3579
|
}
|
|
3580
3580
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3581
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3581
|
+
const id = evalOptions.id || (evalOptions.filename ? basename3(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname4(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext), isESM = ".mjs" === ext || ".js" === ext && "module" === function(path6) {
|
|
3582
3582
|
for (; path6 && "." !== path6 && "/" !== path6; ) {
|
|
3583
|
-
path6 =
|
|
3583
|
+
path6 = join8(path6, "..");
|
|
3584
3584
|
try {
|
|
3585
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3585
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join8(path6, "package.json"), "utf8");
|
|
3586
3586
|
try {
|
|
3587
3587
|
return JSON.parse(pkg);
|
|
3588
3588
|
} catch {
|
|
@@ -3646,7 +3646,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3646
3646
|
const deprecatOverrides = {};
|
|
3647
3647
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3648
3648
|
}(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
|
|
3649
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3649
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join8(filename, "_index.js"));
|
|
3650
3650
|
const url = pathToFileURL2(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3651
3651
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3652
3652
|
const jiti = Object.assign(function(id) {
|
|
@@ -3920,7 +3920,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3920
3920
|
for (let i2 = 1; i2 < pointer; i2++) path6 += "/" + pieces[i2];
|
|
3921
3921
|
(!path6 || addTrailingSlash && !path6.endsWith("/..")) && (path6 += "/"), url.path = path6;
|
|
3922
3922
|
}
|
|
3923
|
-
function
|
|
3923
|
+
function resolve5(input, base) {
|
|
3924
3924
|
if (!input && !base) return "";
|
|
3925
3925
|
const url = parseUrl(input);
|
|
3926
3926
|
let inputType = url.type;
|
|
@@ -3957,7 +3957,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3957
3957
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
3960
|
-
return
|
|
3960
|
+
return resolve5;
|
|
3961
3961
|
}();
|
|
3962
3962
|
}, "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": function(__unused_webpack_module, exports3) {
|
|
3963
3963
|
!function(exports4) {
|
|
@@ -4003,17 +4003,17 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4003
4003
|
const c = chars.charCodeAt(i2);
|
|
4004
4004
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
4005
4005
|
}
|
|
4006
|
-
function decodeInteger(reader,
|
|
4006
|
+
function decodeInteger(reader, relative3) {
|
|
4007
4007
|
let value2 = 0, shift = 0, integer = 0;
|
|
4008
4008
|
do {
|
|
4009
4009
|
const c = reader.next();
|
|
4010
4010
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
4011
4011
|
} while (32 & integer);
|
|
4012
4012
|
const shouldNegate = 1 & value2;
|
|
4013
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
4013
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative3 + value2;
|
|
4014
4014
|
}
|
|
4015
|
-
function encodeInteger(builder, num,
|
|
4016
|
-
let delta = num -
|
|
4015
|
+
function encodeInteger(builder, num, relative3) {
|
|
4016
|
+
let delta = num - relative3;
|
|
4017
4017
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
4018
4018
|
do {
|
|
4019
4019
|
let clamped = 31 & delta;
|
|
@@ -4221,7 +4221,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4221
4221
|
}, "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": function(__unused_webpack_module, exports3, __webpack_require__2) {
|
|
4222
4222
|
!function(exports4, sourcemapCodec, resolveUri) {
|
|
4223
4223
|
"use strict";
|
|
4224
|
-
function
|
|
4224
|
+
function resolve5(input, base) {
|
|
4225
4225
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
4226
4226
|
}
|
|
4227
4227
|
function stripFilename(path6) {
|
|
@@ -4302,12 +4302,12 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4302
4302
|
return { __proto__: null };
|
|
4303
4303
|
}
|
|
4304
4304
|
const AnyMap = function(map, mapUrl) {
|
|
4305
|
-
const parsed =
|
|
4305
|
+
const parsed = parse8(map);
|
|
4306
4306
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
4307
4307
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
4308
4308
|
return recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, 1 / 0, 1 / 0), presortedDecodedMap({ version: 3, file: parsed.file, names, sources, sourcesContent, mappings, ignoreList });
|
|
4309
4309
|
};
|
|
4310
|
-
function
|
|
4310
|
+
function parse8(map) {
|
|
4311
4311
|
return "string" == typeof map ? JSON.parse(map) : map;
|
|
4312
4312
|
}
|
|
4313
4313
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
@@ -4323,7 +4323,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4326
|
-
const parsed =
|
|
4326
|
+
const parsed = parse8(input);
|
|
4327
4327
|
if ("sections" in parsed) return recurse(...arguments);
|
|
4328
4328
|
const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
|
|
4329
4329
|
if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
|
|
@@ -4359,8 +4359,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4359
4359
|
if (!isString && map._decodedMemo) return map;
|
|
4360
4360
|
const parsed = isString ? JSON.parse(map) : map, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
4361
4361
|
this.version = version2, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
4362
|
-
const from =
|
|
4363
|
-
this.resolvedSources = sources.map((s2) =>
|
|
4362
|
+
const from = resolve5(sourceRoot || "", stripFilename(mapUrl));
|
|
4363
|
+
this.resolvedSources = sources.map((s2) => resolve5(s2 || "", from));
|
|
4364
4364
|
const { mappings } = parsed;
|
|
4365
4365
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
4366
4366
|
}
|
|
@@ -4777,10 +4777,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4777
4777
|
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4778
4778
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4779
4779
|
let index = 0;
|
|
4780
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4780
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4781
4781
|
if ("%%" === match) return "%";
|
|
4782
4782
|
index++;
|
|
4783
|
-
const formatter = createDebug.formatters[
|
|
4783
|
+
const formatter = createDebug.formatters[format4];
|
|
4784
4784
|
if ("function" == typeof formatter) {
|
|
4785
4785
|
const val = args[index];
|
|
4786
4786
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4910,7 +4910,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4910
4910
|
for (; !({ value: value2 } = gen.next()).done; ) assertStart(value2, gen);
|
|
4911
4911
|
return value2;
|
|
4912
4912
|
}
|
|
4913
|
-
function evaluateAsync(gen,
|
|
4913
|
+
function evaluateAsync(gen, resolve5, reject) {
|
|
4914
4914
|
!function step() {
|
|
4915
4915
|
try {
|
|
4916
4916
|
let value2;
|
|
@@ -4922,7 +4922,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4922
4922
|
});
|
|
4923
4923
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4924
4924
|
}
|
|
4925
|
-
return
|
|
4925
|
+
return resolve5(value2);
|
|
4926
4926
|
} catch (err) {
|
|
4927
4927
|
return reject(err);
|
|
4928
4928
|
}
|
|
@@ -4959,10 +4959,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4959
4959
|
"number" != typeof arity && (arity = sync.length);
|
|
4960
4960
|
return buildOperation({ name, arity, sync: function(args) {
|
|
4961
4961
|
return sync.apply(this, args);
|
|
4962
|
-
}, async: function(args,
|
|
4963
|
-
async ? async.apply(this, args).then(
|
|
4964
|
-
null == err ?
|
|
4965
|
-
}) :
|
|
4962
|
+
}, async: function(args, resolve5, reject) {
|
|
4963
|
+
async ? async.apply(this, args).then(resolve5, reject) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4964
|
+
null == err ? resolve5(value2) : reject(err);
|
|
4965
|
+
}) : resolve5(sync.apply(this, args));
|
|
4966
4966
|
} });
|
|
4967
4967
|
}(optsOrFn) : function(genFn2) {
|
|
4968
4968
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4972,8 +4972,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4972
4972
|
const fns = { sync: function(...args) {
|
|
4973
4973
|
return evaluateSync(genFn2.apply(this, args));
|
|
4974
4974
|
}, async: function(...args) {
|
|
4975
|
-
return new Promise((
|
|
4976
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4975
|
+
return new Promise((resolve5, reject) => {
|
|
4976
|
+
evaluateAsync(genFn2.apply(this, args), resolve5, reject);
|
|
4977
4977
|
});
|
|
4978
4978
|
}, errback: function(...args) {
|
|
4979
4979
|
const cb = args.pop();
|
|
@@ -4990,25 +4990,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4990
4990
|
}(genFn));
|
|
4991
4991
|
}, { all: buildOperation({ name: "all", arity: 1, sync: function(args) {
|
|
4992
4992
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4993
|
-
}, async: function(args,
|
|
4993
|
+
}, async: function(args, resolve5, reject) {
|
|
4994
4994
|
const items = Array.from(args[0]);
|
|
4995
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4995
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve5([]));
|
|
4996
4996
|
let count = 0;
|
|
4997
4997
|
const results = items.map(() => {
|
|
4998
4998
|
});
|
|
4999
4999
|
items.forEach((item, i2) => {
|
|
5000
5000
|
evaluateAsync(item, (val) => {
|
|
5001
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
5001
|
+
results[i2] = val, count += 1, count === results.length && resolve5(results);
|
|
5002
5002
|
}, reject);
|
|
5003
5003
|
});
|
|
5004
5004
|
} }), race: buildOperation({ name: "race", arity: 1, sync: function(args) {
|
|
5005
5005
|
const items = Array.from(args[0]);
|
|
5006
5006
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
5007
5007
|
return evaluateSync(items[0]);
|
|
5008
|
-
}, async: function(args,
|
|
5008
|
+
}, async: function(args, resolve5, reject) {
|
|
5009
5009
|
const items = Array.from(args[0]);
|
|
5010
5010
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
5011
|
-
for (const item of items) evaluateAsync(item,
|
|
5011
|
+
for (const item of items) evaluateAsync(item, resolve5, reject);
|
|
5012
5012
|
} }) });
|
|
5013
5013
|
}, "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
5014
5014
|
"use strict";
|
|
@@ -5190,7 +5190,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5190
5190
|
tok("CARET"), src[t2.CARET] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAIN] + "$", tok("CARETLOOSE"), src[t2.CARETLOOSE] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAINLOOSE] + "$", tok("COMPARATORLOOSE"), src[t2.COMPARATORLOOSE] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + ")$|^$", tok("COMPARATOR"), src[t2.COMPARATOR] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.FULLPLAIN] + ")$|^$", tok("COMPARATORTRIM"), src[t2.COMPARATORTRIM] = "(\\s*)" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + "|" + src[t2.XRANGEPLAIN] + ")", re3[t2.COMPARATORTRIM] = new RegExp(src[t2.COMPARATORTRIM], "g"), safeRe[t2.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t2.COMPARATORTRIM]), "g");
|
|
5191
5191
|
tok("HYPHENRANGE"), src[t2.HYPHENRANGE] = "^\\s*(" + src[t2.XRANGEPLAIN] + ")\\s+-\\s+(" + src[t2.XRANGEPLAIN] + ")\\s*$", tok("HYPHENRANGELOOSE"), src[t2.HYPHENRANGELOOSE] = "^\\s*(" + src[t2.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + src[t2.XRANGEPLAINLOOSE] + ")\\s*$", tok("STAR"), src[t2.STAR] = "(<|>)?=?\\s*\\*";
|
|
5192
5192
|
for (var i2 = 0; i2 < R3; i2++) debug2(i2, src[i2]), re3[i2] || (re3[i2] = new RegExp(src[i2]), safeRe[i2] = new RegExp(makeSafeRe(src[i2])));
|
|
5193
|
-
function
|
|
5193
|
+
function parse8(version2, options) {
|
|
5194
5194
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
5195
5195
|
if ("string" != typeof version2) return null;
|
|
5196
5196
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -5222,11 +5222,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5222
5222
|
return id;
|
|
5223
5223
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
5224
5224
|
}
|
|
5225
|
-
exports3.parse =
|
|
5226
|
-
var v4 =
|
|
5225
|
+
exports3.parse = parse8, exports3.valid = function(version2, options) {
|
|
5226
|
+
var v4 = parse8(version2, options);
|
|
5227
5227
|
return v4 ? v4.version : null;
|
|
5228
5228
|
}, exports3.clean = function(version2, options) {
|
|
5229
|
-
var s2 =
|
|
5229
|
+
var s2 = parse8(version2.trim().replace(/^[=v]+/, ""), options);
|
|
5230
5230
|
return s2 ? s2.version : null;
|
|
5231
5231
|
}, exports3.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
5232
5232
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -5302,7 +5302,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5302
5302
|
}
|
|
5303
5303
|
}, exports3.diff = function(version1, version2) {
|
|
5304
5304
|
if (eq(version1, version2)) return null;
|
|
5305
|
-
var v1 =
|
|
5305
|
+
var v1 = parse8(version1), v22 = parse8(version2), prefix = "";
|
|
5306
5306
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
5307
5307
|
prefix = "pre";
|
|
5308
5308
|
var defaultResult = "prerelease";
|
|
@@ -5616,7 +5616,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5616
5616
|
}, exports3.gtr = function(version2, range, options) {
|
|
5617
5617
|
return outside(version2, range, ">", options);
|
|
5618
5618
|
}, exports3.outside = outside, exports3.prerelease = function(version2, options) {
|
|
5619
|
-
var parsed =
|
|
5619
|
+
var parsed = parse8(version2, options);
|
|
5620
5620
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5621
5621
|
}, exports3.intersects = function(r1, r22, options) {
|
|
5622
5622
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5630,7 +5630,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5630
5630
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5631
5631
|
} else match = version2.match(safeRe[t2.COERCE]);
|
|
5632
5632
|
if (null === match) return null;
|
|
5633
|
-
return
|
|
5633
|
+
return parse8(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5634
5634
|
};
|
|
5635
5635
|
}, "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
5636
5636
|
"use strict";
|
|
@@ -5824,8 +5824,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5824
5824
|
}
|
|
5825
5825
|
class Lock {
|
|
5826
5826
|
constructor() {
|
|
5827
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5828
|
-
this._resolve =
|
|
5827
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve5) => {
|
|
5828
|
+
this._resolve = resolve5;
|
|
5829
5829
|
});
|
|
5830
5830
|
}
|
|
5831
5831
|
release(value2) {
|
|
@@ -5907,54 +5907,54 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5907
5907
|
return null == chain || chain.files.add(input.filepath), chain;
|
|
5908
5908
|
}
|
|
5909
5909
|
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)((file) => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)), loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((envName) => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))), loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))), loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => (0, _caching.makeStrongCacheSync)((envName) => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
|
5910
|
-
function buildRootDescriptors({ dirname:
|
|
5911
|
-
return descriptors2(
|
|
5910
|
+
function buildRootDescriptors({ dirname: dirname4, options }, alias, descriptors2) {
|
|
5911
|
+
return descriptors2(dirname4, options, alias);
|
|
5912
5912
|
}
|
|
5913
|
-
function buildEnvDescriptors({ dirname:
|
|
5913
|
+
function buildEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, envName) {
|
|
5914
5914
|
var _options$env;
|
|
5915
5915
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5916
|
-
return opts ? descriptors2(
|
|
5916
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.env["${envName}"]`) : null;
|
|
5917
5917
|
}
|
|
5918
|
-
function buildOverrideDescriptors({ dirname:
|
|
5918
|
+
function buildOverrideDescriptors({ dirname: dirname4, options }, alias, descriptors2, index) {
|
|
5919
5919
|
var _options$overrides;
|
|
5920
5920
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5921
5921
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5922
|
-
return descriptors2(
|
|
5922
|
+
return descriptors2(dirname4, opts, `${alias}.overrides[${index}]`);
|
|
5923
5923
|
}
|
|
5924
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5924
|
+
function buildOverrideEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, index, envName) {
|
|
5925
5925
|
var _options$overrides2, _override$env;
|
|
5926
5926
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5927
5927
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5928
5928
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5929
|
-
return opts ? descriptors2(
|
|
5929
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5930
5930
|
}
|
|
5931
5931
|
function makeChainWalker({ root, env, overrides, overridesEnv, createLogger }) {
|
|
5932
5932
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5933
|
-
const { dirname:
|
|
5934
|
-
if (configIsApplicable(rootOpts,
|
|
5933
|
+
const { dirname: dirname4 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
5934
|
+
if (configIsApplicable(rootOpts, dirname4, context, input.filepath)) {
|
|
5935
5935
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5936
5936
|
const envOpts = env(input, context.envName);
|
|
5937
|
-
envOpts && configIsApplicable(envOpts,
|
|
5937
|
+
envOpts && configIsApplicable(envOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_5, index) => {
|
|
5938
5938
|
const overrideOps = overrides(input, index);
|
|
5939
|
-
if (configIsApplicable(overrideOps,
|
|
5939
|
+
if (configIsApplicable(overrideOps, dirname4, context, input.filepath)) {
|
|
5940
5940
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5941
5941
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5942
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5942
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5943
5943
|
}
|
|
5944
5944
|
});
|
|
5945
5945
|
}
|
|
5946
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5946
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname4))) return null;
|
|
5947
5947
|
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
5948
5948
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5949
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
5949
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname4, context, files, baseLogger))) return null;
|
|
5950
5950
|
logger(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
5951
5951
|
}
|
|
5952
5952
|
return chain;
|
|
5953
5953
|
};
|
|
5954
5954
|
}
|
|
5955
|
-
function* mergeExtendsChain(chain, opts,
|
|
5955
|
+
function* mergeExtendsChain(chain, opts, dirname4, context, files, baseLogger) {
|
|
5956
5956
|
if (void 0 === opts.extends) return true;
|
|
5957
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5957
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname4, context.envName, context.caller);
|
|
5958
5958
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5959
5959
|
File already loaded following the config chain:
|
|
5960
5960
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5988,35 +5988,35 @@ File already loaded following the config chain:
|
|
|
5988
5988
|
} else descriptors2.push({ value: item });
|
|
5989
5989
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5990
5990
|
}
|
|
5991
|
-
function configIsApplicable({ options },
|
|
5992
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5991
|
+
function configIsApplicable({ options }, dirname4, context, configName) {
|
|
5992
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname4, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname4, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname4, configName));
|
|
5993
5993
|
}
|
|
5994
|
-
function configFieldIsApplicable(context, test,
|
|
5995
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
5994
|
+
function configFieldIsApplicable(context, test, dirname4, configName) {
|
|
5995
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname4, configName);
|
|
5996
5996
|
}
|
|
5997
5997
|
function ignoreListReplacer(_key, value2) {
|
|
5998
5998
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5999
5999
|
}
|
|
6000
|
-
function shouldIgnore(context, ignore, only,
|
|
6001
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
6000
|
+
function shouldIgnore(context, ignore, only, dirname4) {
|
|
6001
|
+
if (ignore && matchesPatterns(context, ignore, dirname4)) {
|
|
6002
6002
|
var _context$filename;
|
|
6003
|
-
const message = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${
|
|
6003
|
+
const message = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
6004
6004
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
6005
6005
|
}
|
|
6006
|
-
if (only && !matchesPatterns(context, only,
|
|
6006
|
+
if (only && !matchesPatterns(context, only, dirname4)) {
|
|
6007
6007
|
var _context$filename2;
|
|
6008
|
-
const message = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${
|
|
6008
|
+
const message = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
6009
6009
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
6010
6010
|
}
|
|
6011
6011
|
return false;
|
|
6012
6012
|
}
|
|
6013
|
-
function matchesPatterns(context, patterns,
|
|
6014
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
6013
|
+
function matchesPatterns(context, patterns, dirname4, configName) {
|
|
6014
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname4, context.filename, context, configName));
|
|
6015
6015
|
}
|
|
6016
|
-
function matchPattern(pattern,
|
|
6017
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
6016
|
+
function matchPattern(pattern, dirname4, pathToTest, context, configName) {
|
|
6017
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname4, envName: context.envName, caller: context.caller });
|
|
6018
6018
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
6019
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
6019
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname4)), pattern.test(pathToTest);
|
|
6020
6020
|
}
|
|
6021
6021
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
6022
6022
|
"use strict";
|
|
@@ -6026,28 +6026,28 @@ File already loaded following the config chain:
|
|
|
6026
6026
|
return data2;
|
|
6027
6027
|
}, data2;
|
|
6028
6028
|
}
|
|
6029
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(
|
|
6029
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(dirname4, options, alias) {
|
|
6030
6030
|
const { plugins, presets, passPerPreset } = options;
|
|
6031
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
6032
|
-
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(
|
|
6033
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
6031
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname4)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname4)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
6032
|
+
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(dirname4, options, alias) {
|
|
6033
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname4, alias)), presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname4, alias, !!options.passPerPreset)) };
|
|
6034
6034
|
};
|
|
6035
6035
|
var _functional = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/functional.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/index.js"), _item = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/item.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _resolveTargets = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/resolve-targets.js");
|
|
6036
6036
|
function* handlerOf(value2) {
|
|
6037
6037
|
return value2;
|
|
6038
6038
|
}
|
|
6039
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
6040
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
6039
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname4) {
|
|
6040
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname4)), options;
|
|
6041
6041
|
}
|
|
6042
6042
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
6043
|
-
const
|
|
6043
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
6044
6044
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
6045
|
-
return (yield* createPresetDescriptors(items,
|
|
6045
|
+
return (yield* createPresetDescriptors(items, dirname4, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
6046
6046
|
}));
|
|
6047
6047
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
6048
|
-
const
|
|
6048
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
6049
6049
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
6050
|
-
return (yield* createPluginDescriptors(items,
|
|
6050
|
+
return (yield* createPluginDescriptors(items, dirname4, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
6051
6051
|
});
|
|
6052
6052
|
}), DEFAULT_OPTIONS = {};
|
|
6053
6053
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -6066,14 +6066,14 @@ File already loaded following the config chain:
|
|
|
6066
6066
|
}
|
|
6067
6067
|
return desc;
|
|
6068
6068
|
}
|
|
6069
|
-
function* createPresetDescriptors(items,
|
|
6070
|
-
return yield* createDescriptors("preset", items,
|
|
6069
|
+
function* createPresetDescriptors(items, dirname4, alias, passPerPreset) {
|
|
6070
|
+
return yield* createDescriptors("preset", items, dirname4, alias, passPerPreset);
|
|
6071
6071
|
}
|
|
6072
|
-
function* createPluginDescriptors(items,
|
|
6073
|
-
return yield* createDescriptors("plugin", items,
|
|
6072
|
+
function* createPluginDescriptors(items, dirname4, alias) {
|
|
6073
|
+
return yield* createDescriptors("plugin", items, dirname4, alias);
|
|
6074
6074
|
}
|
|
6075
|
-
function* createDescriptors(type, items,
|
|
6076
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
6075
|
+
function* createDescriptors(type, items, dirname4, alias, ownPass) {
|
|
6076
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname4, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
6077
6077
|
return function(items2) {
|
|
6078
6078
|
const map = /* @__PURE__ */ new Map();
|
|
6079
6079
|
for (const item of items2) {
|
|
@@ -6087,7 +6087,7 @@ File already loaded following the config chain:
|
|
|
6087
6087
|
}
|
|
6088
6088
|
}(descriptors2), descriptors2;
|
|
6089
6089
|
}
|
|
6090
|
-
function* createDescriptor(pair,
|
|
6090
|
+
function* createDescriptor(pair, dirname4, { type, alias, ownPass }) {
|
|
6091
6091
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
6092
6092
|
if (desc) return desc;
|
|
6093
6093
|
let name, options, file, value2 = pair;
|
|
@@ -6096,7 +6096,7 @@ File already loaded following the config chain:
|
|
|
6096
6096
|
if ("string" == typeof value2) {
|
|
6097
6097
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
6098
6098
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
6099
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
6099
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname4)), file = { request, resolved: filepath };
|
|
6100
6100
|
}
|
|
6101
6101
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
6102
6102
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -6105,7 +6105,7 @@ File already loaded following the config chain:
|
|
|
6105
6105
|
}
|
|
6106
6106
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
6107
6107
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
6108
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
6108
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname4, ownPass, file };
|
|
6109
6109
|
}
|
|
6110
6110
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
6111
6111
|
"use strict";
|
|
@@ -6140,41 +6140,41 @@ File already loaded following the config chain:
|
|
|
6140
6140
|
}, data2;
|
|
6141
6141
|
}
|
|
6142
6142
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.ROOT_CONFIG_FILENAMES = void 0, exports3.findConfigUpwards = function(rootDir) {
|
|
6143
|
-
let
|
|
6143
|
+
let dirname4 = rootDir;
|
|
6144
6144
|
for (; ; ) {
|
|
6145
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
6146
|
-
const nextDir = _path().dirname(
|
|
6147
|
-
if (
|
|
6148
|
-
|
|
6145
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname4, filename))) return dirname4;
|
|
6146
|
+
const nextDir = _path().dirname(dirname4);
|
|
6147
|
+
if (dirname4 === nextDir) break;
|
|
6148
|
+
dirname4 = nextDir;
|
|
6149
6149
|
}
|
|
6150
6150
|
return null;
|
|
6151
6151
|
}, exports3.findRelativeConfig = function* (packageData, envName, caller) {
|
|
6152
6152
|
let config = null, ignore = null;
|
|
6153
|
-
const
|
|
6153
|
+
const dirname4 = _path().dirname(packageData.filepath);
|
|
6154
6154
|
for (const loc of packageData.directories) {
|
|
6155
6155
|
var _packageData$pkg;
|
|
6156
6156
|
if (!config) config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, (null == (_packageData$pkg = packageData.pkg) ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
|
6157
6157
|
if (!ignore) {
|
|
6158
6158
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
6159
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath,
|
|
6159
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath, dirname4);
|
|
6160
6160
|
}
|
|
6161
6161
|
}
|
|
6162
6162
|
return { config, ignore };
|
|
6163
|
-
}, exports3.findRootConfig = function(
|
|
6164
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
6165
|
-
}, exports3.loadConfig = function* (name,
|
|
6163
|
+
}, exports3.findRootConfig = function(dirname4, envName, caller) {
|
|
6164
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname4, envName, caller);
|
|
6165
|
+
}, exports3.loadConfig = function* (name, dirname4, envName, caller) {
|
|
6166
6166
|
const filepath = (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
6167
6167
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6168
6168
|
if (f2) return f2;
|
|
6169
6169
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6170
|
-
})(name, { paths: [
|
|
6170
|
+
})(name, { paths: [dirname4] }), conf = yield* readConfig(filepath, envName, caller);
|
|
6171
6171
|
var v4, w5;
|
|
6172
6172
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
6173
|
-
return debug2("Loaded config %o from %o.", name,
|
|
6174
|
-
}, exports3.resolveShowConfigPath = function* (
|
|
6173
|
+
return debug2("Loaded config %o from %o.", name, dirname4), conf;
|
|
6174
|
+
}, exports3.resolveShowConfigPath = function* (dirname4) {
|
|
6175
6175
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
6176
6176
|
if (null != targetPath) {
|
|
6177
|
-
const absolutePath = _path().resolve(
|
|
6177
|
+
const absolutePath = _path().resolve(dirname4, targetPath);
|
|
6178
6178
|
if (!(yield* fs7.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
6179
6179
|
return absolutePath;
|
|
6180
6180
|
}
|
|
@@ -6254,15 +6254,15 @@ module.exports = function(api) {
|
|
|
6254
6254
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
6255
6255
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
6256
6256
|
});
|
|
6257
|
-
function* loadOneConfig(names,
|
|
6258
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
6257
|
+
function* loadOneConfig(names, dirname4, envName, caller, previousConfig = null) {
|
|
6258
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname4, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
6259
6259
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
6260
6260
|
- ${_path().basename(previousConfig2.filepath)}
|
|
6261
6261
|
- ${config2.filepath}
|
|
6262
|
-
from ${
|
|
6262
|
+
from ${dirname4}`);
|
|
6263
6263
|
return config2 || previousConfig2;
|
|
6264
6264
|
}, previousConfig);
|
|
6265
|
-
return config && debug2("Found configuration %o from %o.", config.filepath,
|
|
6265
|
+
return config && debug2("Found configuration %o from %o.", config.filepath, dirname4), config;
|
|
6266
6266
|
}
|
|
6267
6267
|
function readConfig(filepath, envName, caller) {
|
|
6268
6268
|
switch (_path().extname(filepath)) {
|
|
@@ -6458,15 +6458,15 @@ packageExtensions:
|
|
|
6458
6458
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.findPackageData = function* (filepath) {
|
|
6459
6459
|
let pkg = null;
|
|
6460
6460
|
const directories = [];
|
|
6461
|
-
let isPackage = true,
|
|
6462
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
6463
|
-
directories.push(
|
|
6464
|
-
const nextLoc = _path().dirname(
|
|
6465
|
-
if (
|
|
6461
|
+
let isPackage = true, dirname4 = _path().dirname(filepath);
|
|
6462
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname4); ) {
|
|
6463
|
+
directories.push(dirname4), pkg = yield* readConfigPackage(_path().join(dirname4, PACKAGE_FILENAME));
|
|
6464
|
+
const nextLoc = _path().dirname(dirname4);
|
|
6465
|
+
if (dirname4 === nextLoc) {
|
|
6466
6466
|
isPackage = false;
|
|
6467
6467
|
break;
|
|
6468
6468
|
}
|
|
6469
|
-
|
|
6469
|
+
dirname4 = nextLoc;
|
|
6470
6470
|
}
|
|
6471
6471
|
return { filepath, directories, pkg, isPackage };
|
|
6472
6472
|
};
|
|
@@ -6497,12 +6497,12 @@ packageExtensions:
|
|
|
6497
6497
|
return data2;
|
|
6498
6498
|
}, data2;
|
|
6499
6499
|
}
|
|
6500
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name,
|
|
6501
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6502
|
-
return debug2("Loaded plugin %o from %o.", name,
|
|
6503
|
-
}, exports3.loadPreset = function* (name,
|
|
6504
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6505
|
-
return debug2("Loaded preset %o from %o.", name,
|
|
6500
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name, dirname4) {
|
|
6501
|
+
const { filepath, loader } = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6502
|
+
return debug2("Loaded plugin %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6503
|
+
}, exports3.loadPreset = function* (name, dirname4) {
|
|
6504
|
+
const { filepath, loader } = resolvePreset(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6505
|
+
return debug2("Loaded preset %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6506
6506
|
}, exports3.resolvePreset = exports3.resolvePlugin = void 0;
|
|
6507
6507
|
var _async = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/async.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js");
|
|
6508
6508
|
function _url() {
|
|
@@ -6540,13 +6540,13 @@ packageExtensions:
|
|
|
6540
6540
|
}
|
|
6541
6541
|
throw error.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error;
|
|
6542
6542
|
}
|
|
6543
|
-
function tryRequireResolve(id,
|
|
6543
|
+
function tryRequireResolve(id, dirname4) {
|
|
6544
6544
|
try {
|
|
6545
|
-
return
|
|
6545
|
+
return dirname4 ? { error: null, value: (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
6546
6546
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6547
6547
|
if (f2) return f2;
|
|
6548
6548
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6549
|
-
})(id, { paths: [
|
|
6549
|
+
})(id, { paths: [dirname4] }) } : { error: null, value: __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve(id) };
|
|
6550
6550
|
} catch (error) {
|
|
6551
6551
|
return { error, value: null };
|
|
6552
6552
|
}
|
|
@@ -6559,26 +6559,26 @@ packageExtensions:
|
|
|
6559
6559
|
return { error, value: null };
|
|
6560
6560
|
}
|
|
6561
6561
|
}
|
|
6562
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6562
|
+
function resolveStandardizedNameForRequire(type, name, dirname4) {
|
|
6563
6563
|
const it = resolveAlternativesHelper(type, name);
|
|
6564
6564
|
let res = it.next();
|
|
6565
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6565
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname4));
|
|
6566
6566
|
return { loader: "require", filepath: res.value };
|
|
6567
6567
|
}
|
|
6568
|
-
function resolveStandardizedName(type, name,
|
|
6569
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6568
|
+
function resolveStandardizedName(type, name, dirname4, allowAsync) {
|
|
6569
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6570
6570
|
try {
|
|
6571
|
-
const resolved = function(type2, name2,
|
|
6572
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6571
|
+
const resolved = function(type2, name2, dirname5) {
|
|
6572
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname5, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6573
6573
|
let res = it.next();
|
|
6574
6574
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6575
6575
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6576
|
-
}(type, name,
|
|
6577
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6576
|
+
}(type, name, dirname4);
|
|
6577
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname4}.`), { type: "MODULE_NOT_FOUND" });
|
|
6578
6578
|
return resolved;
|
|
6579
6579
|
} catch (e2) {
|
|
6580
6580
|
try {
|
|
6581
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6581
|
+
return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6582
6582
|
} catch (e22) {
|
|
6583
6583
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6584
6584
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6708,7 +6708,7 @@ packageExtensions:
|
|
|
6708
6708
|
}
|
|
6709
6709
|
};
|
|
6710
6710
|
}
|
|
6711
|
-
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6711
|
+
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias }, cache2) {
|
|
6712
6712
|
if (false === options) throw new Error("Assertion failure");
|
|
6713
6713
|
options = options || {};
|
|
6714
6714
|
const externalDependencies = [];
|
|
@@ -6716,7 +6716,7 @@ packageExtensions:
|
|
|
6716
6716
|
if ("function" == typeof value2) {
|
|
6717
6717
|
const factory = (0, _async.maybeAsync)(value2, "You appear to be using an async plugin/preset, but Babel has been called synchronously"), api = Object.assign({}, context, apiFactory(cache2, externalDependencies));
|
|
6718
6718
|
try {
|
|
6719
|
-
item = yield* factory(api, options,
|
|
6719
|
+
item = yield* factory(api, options, dirname4);
|
|
6720
6720
|
} catch (e2) {
|
|
6721
6721
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6722
6722
|
}
|
|
@@ -6728,11 +6728,11 @@ packageExtensions:
|
|
|
6728
6728
|
throw cache2.configured() ? error += " has been configured to never be invalidated. " : error += "has not been configured to be invalidated when the external dependencies change. ", error += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
|
|
6729
6729
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6730
6730
|
}
|
|
6731
|
-
return { value: item, options, dirname:
|
|
6732
|
-
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6731
|
+
return { value: item, options, dirname: dirname4, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6732
|
+
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias, externalDependencies }, cache2) {
|
|
6733
6733
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6734
6734
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6735
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6735
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname4 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run) => cache2.invalidate((data2) => run(inheritsDescriptor, data2)));
|
|
6736
6736
|
plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre), plugin.post = chainMaybeAsync(inherits.post, plugin.post), plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions), plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]), inherits.externalDependencies.length > 0 && (externalDependencies = 0 === externalDependencies.length ? inherits.externalDependencies : (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]));
|
|
6737
6737
|
}
|
|
6738
6738
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6755,7 +6755,7 @@ packageExtensions:
|
|
|
6755
6755
|
const { options } = preset;
|
|
6756
6756
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6757
6757
|
}
|
|
6758
|
-
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6758
|
+
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname4, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname4, externalDependencies }));
|
|
6759
6759
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6760
6760
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6761
6761
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6875,8 +6875,8 @@ packageExtensions:
|
|
|
6875
6875
|
return data2;
|
|
6876
6876
|
}, data2;
|
|
6877
6877
|
}
|
|
6878
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname:
|
|
6879
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6878
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname: dirname4 = ".", type } = {}) {
|
|
6879
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname4), { type, alias: "programmatic item" }));
|
|
6880
6880
|
}, exports3.createItemFromDescriptor = createItemFromDescriptor, exports3.getItemDescriptor = function(item) {
|
|
6881
6881
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6882
6882
|
return;
|
|
@@ -6926,7 +6926,7 @@ packageExtensions:
|
|
|
6926
6926
|
const _excluded = ["showIgnoredFiles"];
|
|
6927
6927
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6928
6928
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6929
|
-
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6929
|
+
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd: cwd3 = ".", root: rootDir = ".", rootMode = "root", caller, cloneInputAst = true } = args, absoluteCwd = _path().resolve(cwd3), absoluteRootDir = function(rootDir2, rootMode2) {
|
|
6930
6930
|
switch (rootMode2) {
|
|
6931
6931
|
case "root":
|
|
6932
6932
|
return rootDir2;
|
|
@@ -6943,7 +6943,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6943
6943
|
default:
|
|
6944
6944
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6945
6945
|
}
|
|
6946
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6946
|
+
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(cwd3, args.filename) : void 0, context = { filename, cwd: absoluteCwd, root: absoluteRootDir, envName, caller, showConfig: (yield* (0, _index.resolveShowConfigPath)(absoluteCwd)) === filename }, configChain = yield* (0, _configChain.buildRootChain)(args, context);
|
|
6947
6947
|
if (!configChain) return null;
|
|
6948
6948
|
const merged = { assumptions: {} };
|
|
6949
6949
|
configChain.options.forEach((opts) => {
|
|
@@ -6968,14 +6968,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6968
6968
|
return data2;
|
|
6969
6969
|
}, data2;
|
|
6970
6970
|
}
|
|
6971
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern,
|
|
6972
|
-
const parts = _path().resolve(
|
|
6971
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern, dirname4) {
|
|
6972
|
+
const parts = _path().resolve(dirname4, pattern).split(_path().sep);
|
|
6973
6973
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6974
6974
|
const last = i2 === parts.length - 1;
|
|
6975
|
-
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep :
|
|
6975
|
+
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep3) : escapeRegExp(part) + (last ? endSep : sep3);
|
|
6976
6976
|
})].join(""));
|
|
6977
6977
|
};
|
|
6978
|
-
const
|
|
6978
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6979
6979
|
function escapeRegExp(string) {
|
|
6980
6980
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6981
6981
|
}
|
|
@@ -7502,12 +7502,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7502
7502
|
if (!result) {
|
|
7503
7503
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7504
7504
|
if (yield* (0, _async.isAsync)()) {
|
|
7505
|
-
let
|
|
7505
|
+
let resolve5, reject;
|
|
7506
7506
|
resultP = new Promise((res, rej) => {
|
|
7507
|
-
|
|
7507
|
+
resolve5 = res, reject = rej;
|
|
7508
7508
|
});
|
|
7509
7509
|
try {
|
|
7510
|
-
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7510
|
+
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve5(result.value);
|
|
7511
7511
|
} catch (error) {
|
|
7512
7512
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
7513
7513
|
}
|
|
@@ -7610,8 +7610,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7610
7610
|
var _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _transform = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform.js"), _transformFile = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-file.js"), _transformAst = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-ast.js"), _parse = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/parse.js");
|
|
7611
7611
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7612
7612
|
exports3.version = "7.26.0";
|
|
7613
|
-
exports3.resolvePlugin = (name,
|
|
7614
|
-
exports3.resolvePreset = (name,
|
|
7613
|
+
exports3.resolvePlugin = (name, dirname4) => resolvers.resolvePlugin(name, dirname4, false).filepath;
|
|
7614
|
+
exports3.resolvePreset = (name, dirname4) => resolvers.resolvePreset(name, dirname4, false).filepath;
|
|
7615
7615
|
exports3.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7616
7616
|
exports3.OptionManager = class {
|
|
7617
7617
|
init(opts) {
|
|
@@ -8223,7 +8223,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8223
8223
|
}, data2;
|
|
8224
8224
|
}
|
|
8225
8225
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(config) {
|
|
8226
|
-
const { filename, cwd:
|
|
8226
|
+
const { filename, cwd: cwd3, filenameRelative = "string" == typeof filename ? _path().relative(cwd3, filename) : "unknown", sourceType = "module", inputSourceMap, sourceMaps = !!inputSourceMap, sourceRoot = config.options.moduleRoot, sourceFileName = _path().basename(filenameRelative), comments = true, compact = "auto" } = config.options, opts = config.options, options = Object.assign({}, opts, { parserOpts: Object.assign({ sourceType: ".mjs" === _path().extname(filenameRelative) ? "module" : sourceType, sourceFileName: filename, plugins: [] }, opts.parserOpts), generatorOpts: Object.assign({ filename, auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, retainLines: opts.retainLines, comments, shouldPrintComment: opts.shouldPrintComment, compact, minified: opts.minified, sourceMaps, sourceRoot, sourceFileName }, opts.generatorOpts) });
|
|
8227
8227
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
8228
8228
|
return options;
|
|
8229
8229
|
};
|
|
@@ -8535,8 +8535,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8535
8535
|
const packageType = getPackageType2(url);
|
|
8536
8536
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8537
8537
|
}
|
|
8538
|
-
const
|
|
8539
|
-
if (
|
|
8538
|
+
const format4 = extensionFormatMap2[value2];
|
|
8539
|
+
if (format4) return format4;
|
|
8540
8540
|
if (ignoreErrors) return;
|
|
8541
8541
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8542
8542
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9872,11 +9872,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9872
9872
|
function maybePrintTrailingCommaOrSemicolon(printer, node) {
|
|
9873
9873
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9874
9874
|
}
|
|
9875
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9875
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9876
9876
|
var _printer$tokenMap;
|
|
9877
9877
|
let hasLeadingToken = 0;
|
|
9878
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9879
|
-
this.space(), this.token(
|
|
9878
|
+
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node, sep3) && (hasLeadingToken = 1, printer.token(sep3)), printer.printJoin(node.types, void 0, void 0, function(i2) {
|
|
9879
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9880
9880
|
});
|
|
9881
9881
|
}
|
|
9882
9882
|
function tokenIfPlusMinus(self2, tok) {
|
|
@@ -10096,8 +10096,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10096
10096
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
10097
10097
|
"use strict";
|
|
10098
10098
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(ast, opts = {}, code) {
|
|
10099
|
-
const
|
|
10100
|
-
return new _printer.default(
|
|
10099
|
+
const format4 = normalizeOptions(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
10100
|
+
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
10101
10101
|
};
|
|
10102
10102
|
var _sourceMap = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/source-map.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/printer.js");
|
|
10103
10103
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -10109,11 +10109,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10109
10109
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
10110
10110
|
if (!Array.isArray(ast.tokens)) throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.");
|
|
10111
10111
|
}
|
|
10112
|
-
const
|
|
10112
|
+
const format4 = { auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, shouldPrintComment: opts.shouldPrintComment, preserveFormat: opts.experimental_preserveFormat, retainLines: opts.retainLines, retainFunctionParens: opts.retainFunctionParens, comments: null == opts.comments || opts.comments, compact: opts.compact, minified: opts.minified, concise: opts.concise, indent: { adjustMultilineComment: true, style: " " }, jsescOption: Object.assign({ quotes: "double", wrap: true, minimal: false }, opts.jsescOption), topicToken: opts.topicToken, importAttributesKeyword: opts.importAttributesKeyword };
|
|
10113
10113
|
var _opts$recordAndTupleS;
|
|
10114
|
-
|
|
10115
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
10116
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
10114
|
+
format4.decoratorsBeforeExport = opts.decoratorsBeforeExport, format4.jsescOption.json = opts.jsonCompatibleStrings, format4.recordAndTupleSyntaxType = null != (_opts$recordAndTupleS = opts.recordAndTupleSyntaxType) ? _opts$recordAndTupleS : "hash", format4.minified ? (format4.compact = true, format4.shouldPrintComment = format4.shouldPrintComment || (() => format4.comments)) : format4.shouldPrintComment = format4.shouldPrintComment || ((value2) => format4.comments || value2.includes("@license") || value2.includes("@preserve")), "auto" === format4.compact && (format4.compact = "string" == typeof code && code.length > 5e5, format4.compact && console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`)), (format4.compact || format4.preserveFormat) && (format4.indent.adjustMultilineComment = false);
|
|
10115
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
10116
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
10117
10117
|
}
|
|
10118
10118
|
exports3.CodeGenerator = class {
|
|
10119
10119
|
constructor(ast, opts = {}, code) {
|
|
@@ -10369,8 +10369,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10369
10369
|
}
|
|
10370
10370
|
const { needsParens } = n;
|
|
10371
10371
|
class Printer {
|
|
10372
|
-
constructor(
|
|
10373
|
-
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format =
|
|
10372
|
+
constructor(format4, map, tokens, originalCode) {
|
|
10373
|
+
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format = format4, this._tokens = tokens, this._originalCode = originalCode, this._indentRepeat = format4.indent.style.length, this._inputMap = null == map ? void 0 : map._inputMap, this._buf = new _buffer.default(map, format4.indent.style[0]);
|
|
10374
10374
|
}
|
|
10375
10375
|
enterForStatementInit() {
|
|
10376
10376
|
return this.inForStatementInit ? () => {
|
|
@@ -10389,12 +10389,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10389
10389
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
10390
10390
|
}
|
|
10391
10391
|
indent() {
|
|
10392
|
-
const { format:
|
|
10393
|
-
|
|
10392
|
+
const { format: format4 } = this;
|
|
10393
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
10394
10394
|
}
|
|
10395
10395
|
dedent() {
|
|
10396
|
-
const { format:
|
|
10397
|
-
|
|
10396
|
+
const { format: format4 } = this;
|
|
10397
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
10398
10398
|
}
|
|
10399
10399
|
semicolon(force = false) {
|
|
10400
10400
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -10415,8 +10415,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10415
10415
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
10416
10416
|
}
|
|
10417
10417
|
space(force = false) {
|
|
10418
|
-
const { format:
|
|
10419
|
-
if (!
|
|
10418
|
+
const { format: format4 } = this;
|
|
10419
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
10420
10420
|
if (force) this._space();
|
|
10421
10421
|
else if (this._buf.hasContent()) {
|
|
10422
10422
|
const lastCp = this.getLastChar();
|
|
@@ -10515,8 +10515,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10515
10515
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10516
10516
|
}
|
|
10517
10517
|
_catchUp(prop, loc) {
|
|
10518
|
-
const { format:
|
|
10519
|
-
if (!
|
|
10518
|
+
const { format: format4 } = this;
|
|
10519
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10520
10520
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10521
10521
|
null != pos && this._catchUpTo(pos);
|
|
10522
10522
|
}
|
|
@@ -10540,8 +10540,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10540
10540
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10541
10541
|
if (!node) return;
|
|
10542
10542
|
this._endsWithInnerRaw = false;
|
|
10543
|
-
const nodeType = node.type,
|
|
10544
|
-
node._compact && (
|
|
10543
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10544
|
+
node._compact && (format4.concise = true);
|
|
10545
10545
|
const printMethod = this[nodeType];
|
|
10546
10546
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10547
10547
|
const parent = this._currentNode;
|
|
@@ -10549,7 +10549,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10549
10549
|
const oldInAux = this._insideAux;
|
|
10550
10550
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10551
10551
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10552
|
-
let shouldPrintParens = parenthesized &&
|
|
10552
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10553
10553
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10554
10554
|
switch (null == parent ? void 0 : parent.type) {
|
|
10555
10555
|
case "ExpressionStatement":
|
|
@@ -10570,7 +10570,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10570
10570
|
(!shouldPrintParens && this._noLineTerminator && (null != (_node$leadingComments2 = node.leadingComments) && _node$leadingComments2.some(commentIsNewline) || this.format.retainLines && node.loc && node.loc.start.line > this._buf.getCurrentLine()) && (shouldPrintParens = true, indentParenthesized = true), shouldPrintParens) || (noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && n.isLastChild(parent, node)), noLineTerminatorAfter && (null != (_node$trailingComment = node.trailingComments) && _node$trailingComment.some(commentIsNewline) ? isExpression(node) && (shouldPrintParens = true) : (oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = node)));
|
|
10571
10571
|
shouldPrintParens && (this.tokenChar(40), indentParenthesized && this.indent(), this._endsWithInnerRaw = false, this.inForStatementInit && (oldInForStatementInitWasTrue = true, this.inForStatementInit = false), oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = null), this._lastCommentLine = 0, this._printLeadingComments(node, parent);
|
|
10572
10572
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10573
|
-
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent,
|
|
10573
|
+
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent, format4.concise = oldConcise, this._insideAux = oldInAux, void 0 !== oldNoLineTerminatorAfterNode && (this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode), this._endsWithInnerRaw = false;
|
|
10574
10574
|
}
|
|
10575
10575
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10576
10576
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10656,9 +10656,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10656
10656
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10657
10657
|
}
|
|
10658
10658
|
_printNewline(newLine, opts) {
|
|
10659
|
-
const
|
|
10660
|
-
if (
|
|
10661
|
-
if (
|
|
10659
|
+
const format4 = this.format;
|
|
10660
|
+
if (format4.retainLines || format4.compact) return;
|
|
10661
|
+
if (format4.concise) return void this.space();
|
|
10662
10662
|
if (!newLine) return;
|
|
10663
10663
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10664
10664
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -13143,13 +13143,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
13143
13143
|
}(range, api.version);
|
|
13144
13144
|
} };
|
|
13145
13145
|
function declare(builder) {
|
|
13146
|
-
return (api, options,
|
|
13146
|
+
return (api, options, dirname4) => {
|
|
13147
13147
|
var _clonedApi2;
|
|
13148
13148
|
let clonedApi;
|
|
13149
13149
|
for (const name of Object.keys(apiPolyfills)) {
|
|
13150
13150
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
13151
13151
|
}
|
|
13152
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
13152
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname4);
|
|
13153
13153
|
};
|
|
13154
13154
|
}
|
|
13155
13155
|
Object.assign(apiPolyfills, { targets: () => () => ({}), assumption: () => () => {
|
|
@@ -16359,9 +16359,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16359
16359
|
var _node$extra;
|
|
16360
16360
|
this.toAssignableList(node.params, null == (_node$extra = node.extra) ? void 0 : _node$extra.trailingCommaLoc, false), this.scope.enter(6), super.checkParams(node, false, true), this.scope.exit();
|
|
16361
16361
|
}
|
|
16362
|
-
forwardNoArrowParamsConversionAt(node,
|
|
16362
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
16363
16363
|
let result;
|
|
16364
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result =
|
|
16364
|
+
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result = parse8(), this.state.noArrowParamsConversionAt.pop()) : result = parse8(), result;
|
|
16365
16365
|
}
|
|
16366
16366
|
parseParenItem(node, startLoc) {
|
|
16367
16367
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23569,8 +23569,8 @@ ${str}
|
|
|
23569
23569
|
}
|
|
23570
23570
|
}
|
|
23571
23571
|
dump() {
|
|
23572
|
-
const
|
|
23573
|
-
console.log(
|
|
23572
|
+
const sep3 = "-".repeat(60);
|
|
23573
|
+
console.log(sep3);
|
|
23574
23574
|
let scope = this;
|
|
23575
23575
|
do {
|
|
23576
23576
|
console.log("#", scope.block.type);
|
|
@@ -23579,7 +23579,7 @@ ${str}
|
|
|
23579
23579
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23580
23580
|
}
|
|
23581
23581
|
} while (scope = scope.parent);
|
|
23582
|
-
console.log(
|
|
23582
|
+
console.log(sep3);
|
|
23583
23583
|
}
|
|
23584
23584
|
hasLabel(name) {
|
|
23585
23585
|
return !!this.getLabel(name);
|
|
@@ -29793,16 +29793,16 @@ ${trace}`);
|
|
|
29793
29793
|
} } };
|
|
29794
29794
|
}
|
|
29795
29795
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
29796
|
-
const
|
|
29797
|
-
function
|
|
29798
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
29796
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
29797
|
+
function normalizeWindowsPath3(input = "") {
|
|
29798
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
29799
29799
|
}
|
|
29800
|
-
const
|
|
29800
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
29801
29801
|
const pathe_ff20891b_isAbsolute = function(p2) {
|
|
29802
|
-
return
|
|
29802
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
29803
29803
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
29804
|
-
const segments =
|
|
29805
|
-
return 1 === segments.length &&
|
|
29804
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
29805
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
29806
29806
|
};
|
|
29807
29807
|
var astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
29808
29808
|
function isInAstralSet2(code, set) {
|
|
@@ -37637,6 +37637,174 @@ var init_dist2 = __esm({
|
|
|
37637
37637
|
}
|
|
37638
37638
|
});
|
|
37639
37639
|
|
|
37640
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
37641
|
+
function normalizeWindowsPath2(input = "") {
|
|
37642
|
+
if (!input) {
|
|
37643
|
+
return input;
|
|
37644
|
+
}
|
|
37645
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
37646
|
+
}
|
|
37647
|
+
function cwd2() {
|
|
37648
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
37649
|
+
return process.cwd().replace(/\\/g, "/");
|
|
37650
|
+
}
|
|
37651
|
+
return "/";
|
|
37652
|
+
}
|
|
37653
|
+
function normalizeString2(path6, allowAboveRoot) {
|
|
37654
|
+
let res = "";
|
|
37655
|
+
let lastSegmentLength = 0;
|
|
37656
|
+
let lastSlash = -1;
|
|
37657
|
+
let dots = 0;
|
|
37658
|
+
let char = null;
|
|
37659
|
+
for (let index = 0; index <= path6.length; ++index) {
|
|
37660
|
+
if (index < path6.length) {
|
|
37661
|
+
char = path6[index];
|
|
37662
|
+
} else if (char === "/") {
|
|
37663
|
+
break;
|
|
37664
|
+
} else {
|
|
37665
|
+
char = "/";
|
|
37666
|
+
}
|
|
37667
|
+
if (char === "/") {
|
|
37668
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
37669
|
+
else if (dots === 2) {
|
|
37670
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
37671
|
+
if (res.length > 2) {
|
|
37672
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
37673
|
+
if (lastSlashIndex === -1) {
|
|
37674
|
+
res = "";
|
|
37675
|
+
lastSegmentLength = 0;
|
|
37676
|
+
} else {
|
|
37677
|
+
res = res.slice(0, lastSlashIndex);
|
|
37678
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
37679
|
+
}
|
|
37680
|
+
lastSlash = index;
|
|
37681
|
+
dots = 0;
|
|
37682
|
+
continue;
|
|
37683
|
+
} else if (res.length > 0) {
|
|
37684
|
+
res = "";
|
|
37685
|
+
lastSegmentLength = 0;
|
|
37686
|
+
lastSlash = index;
|
|
37687
|
+
dots = 0;
|
|
37688
|
+
continue;
|
|
37689
|
+
}
|
|
37690
|
+
}
|
|
37691
|
+
if (allowAboveRoot) {
|
|
37692
|
+
res += res.length > 0 ? "/.." : "..";
|
|
37693
|
+
lastSegmentLength = 2;
|
|
37694
|
+
}
|
|
37695
|
+
} else {
|
|
37696
|
+
if (res.length > 0) {
|
|
37697
|
+
res += `/${path6.slice(lastSlash + 1, index)}`;
|
|
37698
|
+
} else {
|
|
37699
|
+
res = path6.slice(lastSlash + 1, index);
|
|
37700
|
+
}
|
|
37701
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
37702
|
+
}
|
|
37703
|
+
lastSlash = index;
|
|
37704
|
+
dots = 0;
|
|
37705
|
+
} else if (char === "." && dots !== -1) {
|
|
37706
|
+
++dots;
|
|
37707
|
+
} else {
|
|
37708
|
+
dots = -1;
|
|
37709
|
+
}
|
|
37710
|
+
}
|
|
37711
|
+
return res;
|
|
37712
|
+
}
|
|
37713
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join5, resolve3, isAbsolute2, dirname2;
|
|
37714
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
37715
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
37716
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
37717
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
37718
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
37719
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
37720
|
+
normalize2 = function(path6) {
|
|
37721
|
+
if (path6.length === 0) {
|
|
37722
|
+
return ".";
|
|
37723
|
+
}
|
|
37724
|
+
path6 = normalizeWindowsPath2(path6);
|
|
37725
|
+
const isUNCPath = path6.match(_UNC_REGEX2);
|
|
37726
|
+
const isPathAbsolute = isAbsolute2(path6);
|
|
37727
|
+
const trailingSeparator = path6[path6.length - 1] === "/";
|
|
37728
|
+
path6 = normalizeString2(path6, !isPathAbsolute);
|
|
37729
|
+
if (path6.length === 0) {
|
|
37730
|
+
if (isPathAbsolute) {
|
|
37731
|
+
return "/";
|
|
37732
|
+
}
|
|
37733
|
+
return trailingSeparator ? "./" : ".";
|
|
37734
|
+
}
|
|
37735
|
+
if (trailingSeparator) {
|
|
37736
|
+
path6 += "/";
|
|
37737
|
+
}
|
|
37738
|
+
if (_DRIVE_LETTER_RE2.test(path6)) {
|
|
37739
|
+
path6 += "/";
|
|
37740
|
+
}
|
|
37741
|
+
if (isUNCPath) {
|
|
37742
|
+
if (!isPathAbsolute) {
|
|
37743
|
+
return `//./${path6}`;
|
|
37744
|
+
}
|
|
37745
|
+
return `//${path6}`;
|
|
37746
|
+
}
|
|
37747
|
+
return isPathAbsolute && !isAbsolute2(path6) ? `/${path6}` : path6;
|
|
37748
|
+
};
|
|
37749
|
+
join5 = function(...segments) {
|
|
37750
|
+
let path6 = "";
|
|
37751
|
+
for (const seg of segments) {
|
|
37752
|
+
if (!seg) {
|
|
37753
|
+
continue;
|
|
37754
|
+
}
|
|
37755
|
+
if (path6.length > 0) {
|
|
37756
|
+
const pathTrailing = path6[path6.length - 1] === "/";
|
|
37757
|
+
const segLeading = seg[0] === "/";
|
|
37758
|
+
const both = pathTrailing && segLeading;
|
|
37759
|
+
if (both) {
|
|
37760
|
+
path6 += seg.slice(1);
|
|
37761
|
+
} else {
|
|
37762
|
+
path6 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
37763
|
+
}
|
|
37764
|
+
} else {
|
|
37765
|
+
path6 += seg;
|
|
37766
|
+
}
|
|
37767
|
+
}
|
|
37768
|
+
return normalize2(path6);
|
|
37769
|
+
};
|
|
37770
|
+
resolve3 = function(...arguments_) {
|
|
37771
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
37772
|
+
let resolvedPath = "";
|
|
37773
|
+
let resolvedAbsolute = false;
|
|
37774
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
37775
|
+
const path6 = index >= 0 ? arguments_[index] : cwd2();
|
|
37776
|
+
if (!path6 || path6.length === 0) {
|
|
37777
|
+
continue;
|
|
37778
|
+
}
|
|
37779
|
+
resolvedPath = `${path6}/${resolvedPath}`;
|
|
37780
|
+
resolvedAbsolute = isAbsolute2(path6);
|
|
37781
|
+
}
|
|
37782
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
37783
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
37784
|
+
return `/${resolvedPath}`;
|
|
37785
|
+
}
|
|
37786
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
37787
|
+
};
|
|
37788
|
+
isAbsolute2 = function(p2) {
|
|
37789
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
37790
|
+
};
|
|
37791
|
+
dirname2 = function(p2) {
|
|
37792
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
37793
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
37794
|
+
segments[0] += "/";
|
|
37795
|
+
}
|
|
37796
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
37797
|
+
};
|
|
37798
|
+
}
|
|
37799
|
+
});
|
|
37800
|
+
|
|
37801
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
37802
|
+
var init_dist3 = __esm({
|
|
37803
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
37804
|
+
init_pathe_BLwDEnA5();
|
|
37805
|
+
}
|
|
37806
|
+
});
|
|
37807
|
+
|
|
37640
37808
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
37641
37809
|
function g(e2, t2) {
|
|
37642
37810
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -40270,17 +40438,17 @@ ${f2}`, i2);
|
|
|
40270
40438
|
});
|
|
40271
40439
|
|
|
40272
40440
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
40273
|
-
var
|
|
40441
|
+
var init_dist4 = __esm({
|
|
40274
40442
|
"node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
40275
40443
|
init_confbox_f9f03f05();
|
|
40276
40444
|
}
|
|
40277
40445
|
});
|
|
40278
40446
|
|
|
40279
|
-
// node_modules/.pnpm/pkg-types@1.3.
|
|
40447
|
+
// node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
40280
40448
|
async function findFile(filename, _options = {}) {
|
|
40281
40449
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
40282
40450
|
const options = { ...defaultFindOptions, ..._options };
|
|
40283
|
-
const basePath =
|
|
40451
|
+
const basePath = resolve3(options.startingFrom);
|
|
40284
40452
|
const leadingSlash = basePath[0] === "/";
|
|
40285
40453
|
const segments = basePath.split("/").filter(Boolean);
|
|
40286
40454
|
if (leadingSlash) {
|
|
@@ -40293,7 +40461,7 @@ async function findFile(filename, _options = {}) {
|
|
|
40293
40461
|
if (options.reverse) {
|
|
40294
40462
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
40295
40463
|
for (const filename2 of filenames) {
|
|
40296
|
-
const filePath =
|
|
40464
|
+
const filePath = join5(...segments.slice(0, index), filename2);
|
|
40297
40465
|
if (await options.test(filePath)) {
|
|
40298
40466
|
return filePath;
|
|
40299
40467
|
}
|
|
@@ -40302,7 +40470,7 @@ async function findFile(filename, _options = {}) {
|
|
|
40302
40470
|
} else {
|
|
40303
40471
|
for (let index = segments.length; index > root; index--) {
|
|
40304
40472
|
for (const filename2 of filenames) {
|
|
40305
|
-
const filePath =
|
|
40473
|
+
const filePath = join5(...segments.slice(0, index), filename2);
|
|
40306
40474
|
if (await options.test(filePath)) {
|
|
40307
40475
|
return filePath;
|
|
40308
40476
|
}
|
|
@@ -40333,14 +40501,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
40333
40501
|
return parsed;
|
|
40334
40502
|
}
|
|
40335
40503
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
40336
|
-
const resolvedPath =
|
|
40504
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
40337
40505
|
return findNearestFile("package.json", {
|
|
40338
40506
|
startingFrom: resolvedPath,
|
|
40339
40507
|
...options
|
|
40340
40508
|
});
|
|
40341
40509
|
}
|
|
40342
40510
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
40343
|
-
const resolvedPath =
|
|
40511
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
40344
40512
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
40345
40513
|
try {
|
|
40346
40514
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -40349,11 +40517,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
40349
40517
|
throw new Error("No lockfile found from " + id);
|
|
40350
40518
|
}
|
|
40351
40519
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
40352
|
-
const resolvedPath =
|
|
40520
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
40353
40521
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
40354
40522
|
try {
|
|
40355
40523
|
const r4 = await findNearestFile(".git/config", _options);
|
|
40356
|
-
return
|
|
40524
|
+
return resolve3(r4, "../..");
|
|
40357
40525
|
} catch {
|
|
40358
40526
|
}
|
|
40359
40527
|
try {
|
|
@@ -40361,23 +40529,23 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
40361
40529
|
..._options,
|
|
40362
40530
|
reverse: true
|
|
40363
40531
|
});
|
|
40364
|
-
return
|
|
40532
|
+
return dirname2(r4);
|
|
40365
40533
|
} catch {
|
|
40366
40534
|
}
|
|
40367
40535
|
try {
|
|
40368
40536
|
const r4 = await findFile(resolvedPath, _options);
|
|
40369
|
-
return
|
|
40537
|
+
return dirname2(r4);
|
|
40370
40538
|
} catch {
|
|
40371
40539
|
}
|
|
40372
40540
|
throw new Error("Cannot detect workspace root from " + id);
|
|
40373
40541
|
}
|
|
40374
40542
|
var import_node_fs7, defaultFindOptions, FileCache, lockFiles;
|
|
40375
|
-
var
|
|
40376
|
-
"node_modules/.pnpm/pkg-types@1.3.
|
|
40543
|
+
var init_dist5 = __esm({
|
|
40544
|
+
"node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
40377
40545
|
import_node_fs7 = require("node:fs");
|
|
40378
|
-
init_dist();
|
|
40379
|
-
init_dist5();
|
|
40380
40546
|
init_dist3();
|
|
40547
|
+
init_dist6();
|
|
40548
|
+
init_dist4();
|
|
40381
40549
|
defaultFindOptions = {
|
|
40382
40550
|
startingFrom: ".",
|
|
40383
40551
|
rootPattern: /^node_modules$/,
|
|
@@ -40397,12 +40565,13 @@ var init_dist4 = __esm({
|
|
|
40397
40565
|
"package-lock.json",
|
|
40398
40566
|
"pnpm-lock.yaml",
|
|
40399
40567
|
"npm-shrinkwrap.json",
|
|
40400
|
-
"bun.lockb"
|
|
40568
|
+
"bun.lockb",
|
|
40569
|
+
"bun.lock"
|
|
40401
40570
|
];
|
|
40402
40571
|
}
|
|
40403
40572
|
});
|
|
40404
40573
|
|
|
40405
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
40574
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
40406
40575
|
function normalizeSlash(path6) {
|
|
40407
40576
|
return path6.replace(/\\/g, "/");
|
|
40408
40577
|
}
|
|
@@ -40609,7 +40778,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
40609
40778
|
) || [null, null, null];
|
|
40610
40779
|
return mimeToFormat(mime);
|
|
40611
40780
|
}
|
|
40612
|
-
function
|
|
40781
|
+
function extname3(url) {
|
|
40613
40782
|
const pathname = url.pathname;
|
|
40614
40783
|
let index = pathname.length;
|
|
40615
40784
|
while (index--) {
|
|
@@ -40624,7 +40793,7 @@ function extname2(url) {
|
|
|
40624
40793
|
return "";
|
|
40625
40794
|
}
|
|
40626
40795
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
40627
|
-
const value2 =
|
|
40796
|
+
const value2 = extname3(url);
|
|
40628
40797
|
if (value2 === ".js") {
|
|
40629
40798
|
const packageType = getPackageType(url);
|
|
40630
40799
|
if (packageType !== "none") {
|
|
@@ -40639,8 +40808,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
40639
40808
|
}
|
|
40640
40809
|
return "module";
|
|
40641
40810
|
}
|
|
40642
|
-
const
|
|
40643
|
-
if (
|
|
40811
|
+
const format4 = extensionFormatMap[value2];
|
|
40812
|
+
if (format4) return format4;
|
|
40644
40813
|
if (ignoreErrors) {
|
|
40645
40814
|
return void 0;
|
|
40646
40815
|
}
|
|
@@ -40672,8 +40841,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
40672
40841
|
if (import_node_process6.default.noDeprecation) {
|
|
40673
40842
|
return;
|
|
40674
40843
|
}
|
|
40675
|
-
const
|
|
40676
|
-
if (
|
|
40844
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
40845
|
+
if (format4 !== "module") return;
|
|
40677
40846
|
const urlPath = (0, import_node_url2.fileURLToPath)(url.href);
|
|
40678
40847
|
const packagePath = (0, import_node_url2.fileURLToPath)(new import_node_url2.URL(".", packageJsonUrl));
|
|
40679
40848
|
const basePath = (0, import_node_url2.fileURLToPath)(base);
|
|
@@ -40790,7 +40959,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
40790
40959
|
error.url = String(resolved);
|
|
40791
40960
|
throw error;
|
|
40792
40961
|
}
|
|
40793
|
-
|
|
40962
|
+
{
|
|
40794
40963
|
const real = (0, import_node_fs8.realpathSync)(filePath);
|
|
40795
40964
|
const { search, hash: hash2 } = resolved;
|
|
40796
40965
|
resolved = (0, import_node_url2.pathToFileURL)(real + (filePath.endsWith(import_node_path5.default.sep) ? "/" : ""));
|
|
@@ -41337,7 +41506,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
41337
41506
|
if (resolved.protocol !== "file:") {
|
|
41338
41507
|
return resolved;
|
|
41339
41508
|
}
|
|
41340
|
-
return finalizeResolution(resolved, base
|
|
41509
|
+
return finalizeResolution(resolved, base);
|
|
41341
41510
|
}
|
|
41342
41511
|
function fileURLToPath2(id) {
|
|
41343
41512
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -41386,7 +41555,7 @@ function _resolve(id, options = {}) {
|
|
|
41386
41555
|
if (id.startsWith("file://")) {
|
|
41387
41556
|
id = fileURLToPath2(id);
|
|
41388
41557
|
}
|
|
41389
|
-
if (
|
|
41558
|
+
if (isAbsolute2(id)) {
|
|
41390
41559
|
try {
|
|
41391
41560
|
const stat2 = (0, import_node_fs8.statSync)(id);
|
|
41392
41561
|
if (stat2.isFile()) {
|
|
@@ -41463,13 +41632,13 @@ function resolvePath(id, options) {
|
|
|
41463
41632
|
}
|
|
41464
41633
|
}
|
|
41465
41634
|
var import_node_module2, import_node_fs8, import_node_url2, import_node_assert, import_node_process6, import_node_path5, import_node_v8, import_node_util5, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty3, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
41466
|
-
var
|
|
41467
|
-
"node_modules/.pnpm/mlly@1.7.
|
|
41635
|
+
var init_dist6 = __esm({
|
|
41636
|
+
"node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
41468
41637
|
init_acorn();
|
|
41469
41638
|
import_node_module2 = require("node:module");
|
|
41470
41639
|
import_node_fs8 = __toESM(require("node:fs"), 1);
|
|
41471
41640
|
init_dist2();
|
|
41472
|
-
|
|
41641
|
+
init_dist3();
|
|
41473
41642
|
import_node_url2 = require("node:url");
|
|
41474
41643
|
import_node_assert = __toESM(require("node:assert"), 1);
|
|
41475
41644
|
import_node_process6 = __toESM(require("node:process"), 1);
|
|
@@ -41842,7 +42011,7 @@ var require_main = __commonJS({
|
|
|
41842
42011
|
var packageJson = require_package();
|
|
41843
42012
|
var version2 = packageJson.version;
|
|
41844
42013
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
41845
|
-
function
|
|
42014
|
+
function parse8(src) {
|
|
41846
42015
|
const obj = {};
|
|
41847
42016
|
let lines = src.toString();
|
|
41848
42017
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -42085,7 +42254,7 @@ var require_main = __commonJS({
|
|
|
42085
42254
|
_parseVault,
|
|
42086
42255
|
config,
|
|
42087
42256
|
decrypt,
|
|
42088
|
-
parse:
|
|
42257
|
+
parse: parse8,
|
|
42089
42258
|
populate
|
|
42090
42259
|
};
|
|
42091
42260
|
module2.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -42569,10 +42738,10 @@ var require_minipass = __commonJS({
|
|
|
42569
42738
|
}
|
|
42570
42739
|
// stream.promise().then(() => done, er => emitted error)
|
|
42571
42740
|
promise() {
|
|
42572
|
-
return new Promise((
|
|
42741
|
+
return new Promise((resolve5, reject) => {
|
|
42573
42742
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
42574
42743
|
this.on("error", (er2) => reject(er2));
|
|
42575
|
-
this.on("end", () =>
|
|
42744
|
+
this.on("end", () => resolve5());
|
|
42576
42745
|
});
|
|
42577
42746
|
}
|
|
42578
42747
|
// for await (let chunk of stream)
|
|
@@ -42588,7 +42757,7 @@ var require_minipass = __commonJS({
|
|
|
42588
42757
|
const res = this.read();
|
|
42589
42758
|
if (res !== null) return Promise.resolve({ done: false, value: res });
|
|
42590
42759
|
if (this[EOF]) return stop();
|
|
42591
|
-
let
|
|
42760
|
+
let resolve5 = null;
|
|
42592
42761
|
let reject = null;
|
|
42593
42762
|
const onerr = (er2) => {
|
|
42594
42763
|
this.removeListener("data", ondata);
|
|
@@ -42602,19 +42771,19 @@ var require_minipass = __commonJS({
|
|
|
42602
42771
|
this.removeListener("end", onend);
|
|
42603
42772
|
this.removeListener(DESTROYED, ondestroy);
|
|
42604
42773
|
this.pause();
|
|
42605
|
-
|
|
42774
|
+
resolve5({ value: value2, done: !!this[EOF] });
|
|
42606
42775
|
};
|
|
42607
42776
|
const onend = () => {
|
|
42608
42777
|
this.removeListener("error", onerr);
|
|
42609
42778
|
this.removeListener("data", ondata);
|
|
42610
42779
|
this.removeListener(DESTROYED, ondestroy);
|
|
42611
42780
|
stop();
|
|
42612
|
-
|
|
42781
|
+
resolve5({ done: true });
|
|
42613
42782
|
};
|
|
42614
42783
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
42615
42784
|
return new Promise((res2, rej) => {
|
|
42616
42785
|
reject = rej;
|
|
42617
|
-
|
|
42786
|
+
resolve5 = res2;
|
|
42618
42787
|
this.once(DESTROYED, ondestroy);
|
|
42619
42788
|
this.once("error", onerr);
|
|
42620
42789
|
this.once("end", onend);
|
|
@@ -43242,10 +43411,10 @@ var require_minipass2 = __commonJS({
|
|
|
43242
43411
|
}
|
|
43243
43412
|
// stream.promise().then(() => done, er => emitted error)
|
|
43244
43413
|
promise() {
|
|
43245
|
-
return new Promise((
|
|
43414
|
+
return new Promise((resolve5, reject) => {
|
|
43246
43415
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
43247
43416
|
this.on("error", (er2) => reject(er2));
|
|
43248
|
-
this.on("end", () =>
|
|
43417
|
+
this.on("end", () => resolve5());
|
|
43249
43418
|
});
|
|
43250
43419
|
}
|
|
43251
43420
|
// for await (let chunk of stream)
|
|
@@ -43256,7 +43425,7 @@ var require_minipass2 = __commonJS({
|
|
|
43256
43425
|
return Promise.resolve({ done: false, value: res });
|
|
43257
43426
|
if (this[EOF])
|
|
43258
43427
|
return Promise.resolve({ done: true });
|
|
43259
|
-
let
|
|
43428
|
+
let resolve5 = null;
|
|
43260
43429
|
let reject = null;
|
|
43261
43430
|
const onerr = (er2) => {
|
|
43262
43431
|
this.removeListener("data", ondata);
|
|
@@ -43267,17 +43436,17 @@ var require_minipass2 = __commonJS({
|
|
|
43267
43436
|
this.removeListener("error", onerr);
|
|
43268
43437
|
this.removeListener("end", onend);
|
|
43269
43438
|
this.pause();
|
|
43270
|
-
|
|
43439
|
+
resolve5({ value: value2, done: !!this[EOF] });
|
|
43271
43440
|
};
|
|
43272
43441
|
const onend = () => {
|
|
43273
43442
|
this.removeListener("error", onerr);
|
|
43274
43443
|
this.removeListener("data", ondata);
|
|
43275
|
-
|
|
43444
|
+
resolve5({ done: true });
|
|
43276
43445
|
};
|
|
43277
43446
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
43278
43447
|
return new Promise((res2, rej) => {
|
|
43279
43448
|
reject = rej;
|
|
43280
|
-
|
|
43449
|
+
resolve5 = res2;
|
|
43281
43450
|
this.once(DESTROYED, ondestroy);
|
|
43282
43451
|
this.once("error", onerr);
|
|
43283
43452
|
this.once("end", onend);
|
|
@@ -43775,7 +43944,7 @@ var require_large_numbers = __commonJS({
|
|
|
43775
43944
|
}
|
|
43776
43945
|
}
|
|
43777
43946
|
};
|
|
43778
|
-
var
|
|
43947
|
+
var parse8 = (buf) => {
|
|
43779
43948
|
const pre = buf[0];
|
|
43780
43949
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
43781
43950
|
if (value2 === null) {
|
|
@@ -43822,7 +43991,7 @@ var require_large_numbers = __commonJS({
|
|
|
43822
43991
|
var twosComp = (byte) => (255 ^ byte) + 1 & 255;
|
|
43823
43992
|
module2.exports = {
|
|
43824
43993
|
encode,
|
|
43825
|
-
parse:
|
|
43994
|
+
parse: parse8
|
|
43826
43995
|
};
|
|
43827
43996
|
}
|
|
43828
43997
|
});
|
|
@@ -44217,15 +44386,15 @@ var require_winchars = __commonJS({
|
|
|
44217
44386
|
// node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js
|
|
44218
44387
|
var require_strip_absolute_path = __commonJS({
|
|
44219
44388
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
44220
|
-
var { isAbsolute:
|
|
44389
|
+
var { isAbsolute: isAbsolute3, parse: parse8 } = require("path").win32;
|
|
44221
44390
|
module2.exports = (path6) => {
|
|
44222
44391
|
let r4 = "";
|
|
44223
|
-
let parsed =
|
|
44224
|
-
while (
|
|
44392
|
+
let parsed = parse8(path6);
|
|
44393
|
+
while (isAbsolute3(path6) || parsed.root) {
|
|
44225
44394
|
const root = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
44226
44395
|
path6 = path6.slice(root.length);
|
|
44227
44396
|
r4 += root;
|
|
44228
|
-
parsed =
|
|
44397
|
+
parsed = parse8(path6);
|
|
44229
44398
|
}
|
|
44230
44399
|
return [r4, path6];
|
|
44231
44400
|
};
|
|
@@ -46364,12 +46533,12 @@ var require_list = __commonJS({
|
|
|
46364
46533
|
}
|
|
46365
46534
|
};
|
|
46366
46535
|
var listFile = (opt, cb) => {
|
|
46367
|
-
const
|
|
46536
|
+
const parse8 = new Parser3(opt);
|
|
46368
46537
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
46369
46538
|
const file = opt.file;
|
|
46370
|
-
const p2 = new Promise((
|
|
46371
|
-
|
|
46372
|
-
|
|
46539
|
+
const p2 = new Promise((resolve5, reject) => {
|
|
46540
|
+
parse8.on("error", reject);
|
|
46541
|
+
parse8.on("end", resolve5);
|
|
46373
46542
|
fs7.stat(file, (er2, stat2) => {
|
|
46374
46543
|
if (er2) {
|
|
46375
46544
|
reject(er2);
|
|
@@ -46379,7 +46548,7 @@ var require_list = __commonJS({
|
|
|
46379
46548
|
size: stat2.size
|
|
46380
46549
|
});
|
|
46381
46550
|
stream.on("error", reject);
|
|
46382
|
-
stream.pipe(
|
|
46551
|
+
stream.pipe(parse8);
|
|
46383
46552
|
}
|
|
46384
46553
|
});
|
|
46385
46554
|
});
|
|
@@ -46631,7 +46800,7 @@ var require_replace = __commonJS({
|
|
|
46631
46800
|
};
|
|
46632
46801
|
fs7.read(fd, headBuf, 0, 512, position, onread);
|
|
46633
46802
|
};
|
|
46634
|
-
const promise = new Promise((
|
|
46803
|
+
const promise = new Promise((resolve5, reject) => {
|
|
46635
46804
|
p2.on("error", reject);
|
|
46636
46805
|
let flag = "r+";
|
|
46637
46806
|
const onopen = (er2, fd) => {
|
|
@@ -46656,7 +46825,7 @@ var require_replace = __commonJS({
|
|
|
46656
46825
|
});
|
|
46657
46826
|
p2.pipe(stream);
|
|
46658
46827
|
stream.on("error", reject);
|
|
46659
|
-
stream.on("close",
|
|
46828
|
+
stream.on("close", resolve5);
|
|
46660
46829
|
addFilesAsync(p2, files);
|
|
46661
46830
|
});
|
|
46662
46831
|
});
|
|
@@ -46761,7 +46930,7 @@ var require_opts_arg = __commonJS({
|
|
|
46761
46930
|
var require_path_arg = __commonJS({
|
|
46762
46931
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
46763
46932
|
var platform2 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
46764
|
-
var { resolve:
|
|
46933
|
+
var { resolve: resolve5, parse: parse8 } = require("path");
|
|
46765
46934
|
var pathArg = (path6) => {
|
|
46766
46935
|
if (/\0/.test(path6)) {
|
|
46767
46936
|
throw Object.assign(
|
|
@@ -46772,10 +46941,10 @@ var require_path_arg = __commonJS({
|
|
|
46772
46941
|
}
|
|
46773
46942
|
);
|
|
46774
46943
|
}
|
|
46775
|
-
path6 =
|
|
46944
|
+
path6 = resolve5(path6);
|
|
46776
46945
|
if (platform2 === "win32") {
|
|
46777
46946
|
const badWinChars = /[*|"<>?:]/;
|
|
46778
|
-
const { root } =
|
|
46947
|
+
const { root } = parse8(path6);
|
|
46779
46948
|
if (badWinChars.test(path6.substr(root.length))) {
|
|
46780
46949
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
46781
46950
|
path: path6,
|
|
@@ -46792,14 +46961,14 @@ var require_path_arg = __commonJS({
|
|
|
46792
46961
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js
|
|
46793
46962
|
var require_find_made = __commonJS({
|
|
46794
46963
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
46795
|
-
var { dirname:
|
|
46964
|
+
var { dirname: dirname4 } = require("path");
|
|
46796
46965
|
var findMade = (opts, parent, path6 = void 0) => {
|
|
46797
46966
|
if (path6 === parent)
|
|
46798
46967
|
return Promise.resolve();
|
|
46799
46968
|
return opts.statAsync(parent).then(
|
|
46800
46969
|
(st) => st.isDirectory() ? path6 : void 0,
|
|
46801
46970
|
// will fail later
|
|
46802
|
-
(er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
46971
|
+
(er2) => er2.code === "ENOENT" ? findMade(opts, dirname4(parent), parent) : void 0
|
|
46803
46972
|
);
|
|
46804
46973
|
};
|
|
46805
46974
|
var findMadeSync = (opts, parent, path6 = void 0) => {
|
|
@@ -46808,7 +46977,7 @@ var require_find_made = __commonJS({
|
|
|
46808
46977
|
try {
|
|
46809
46978
|
return opts.statSync(parent).isDirectory() ? path6 : void 0;
|
|
46810
46979
|
} catch (er2) {
|
|
46811
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
46980
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname4(parent), parent) : void 0;
|
|
46812
46981
|
}
|
|
46813
46982
|
};
|
|
46814
46983
|
module2.exports = { findMade, findMadeSync };
|
|
@@ -46818,10 +46987,10 @@ var require_find_made = __commonJS({
|
|
|
46818
46987
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js
|
|
46819
46988
|
var require_mkdirp_manual = __commonJS({
|
|
46820
46989
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
46821
|
-
var { dirname:
|
|
46990
|
+
var { dirname: dirname4 } = require("path");
|
|
46822
46991
|
var mkdirpManual = (path6, opts, made) => {
|
|
46823
46992
|
opts.recursive = false;
|
|
46824
|
-
const parent =
|
|
46993
|
+
const parent = dirname4(path6);
|
|
46825
46994
|
if (parent === path6) {
|
|
46826
46995
|
return opts.mkdirAsync(path6, opts).catch((er2) => {
|
|
46827
46996
|
if (er2.code !== "EISDIR")
|
|
@@ -46844,7 +47013,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
46844
47013
|
});
|
|
46845
47014
|
};
|
|
46846
47015
|
var mkdirpManualSync = (path6, opts, made) => {
|
|
46847
|
-
const parent =
|
|
47016
|
+
const parent = dirname4(path6);
|
|
46848
47017
|
opts.recursive = false;
|
|
46849
47018
|
if (parent === path6) {
|
|
46850
47019
|
try {
|
|
@@ -46879,12 +47048,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
46879
47048
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js
|
|
46880
47049
|
var require_mkdirp_native = __commonJS({
|
|
46881
47050
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
46882
|
-
var { dirname:
|
|
47051
|
+
var { dirname: dirname4 } = require("path");
|
|
46883
47052
|
var { findMade, findMadeSync } = require_find_made();
|
|
46884
47053
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
46885
47054
|
var mkdirpNative = (path6, opts) => {
|
|
46886
47055
|
opts.recursive = true;
|
|
46887
|
-
const parent =
|
|
47056
|
+
const parent = dirname4(path6);
|
|
46888
47057
|
if (parent === path6)
|
|
46889
47058
|
return opts.mkdirAsync(path6, opts);
|
|
46890
47059
|
return findMade(opts, path6).then((made) => opts.mkdirAsync(path6, opts).then(() => made).catch((er2) => {
|
|
@@ -46896,7 +47065,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
46896
47065
|
};
|
|
46897
47066
|
var mkdirpNativeSync = (path6, opts) => {
|
|
46898
47067
|
opts.recursive = true;
|
|
46899
|
-
const parent =
|
|
47068
|
+
const parent = dirname4(path6);
|
|
46900
47069
|
if (parent === path6)
|
|
46901
47070
|
return opts.mkdirSync(path6, opts);
|
|
46902
47071
|
const made = findMadeSync(opts, path6);
|
|
@@ -47135,7 +47304,7 @@ var require_mkdir = __commonJS({
|
|
|
47135
47304
|
const preserve = opt.preserve;
|
|
47136
47305
|
const unlink = opt.unlink;
|
|
47137
47306
|
const cache2 = opt.cache;
|
|
47138
|
-
const
|
|
47307
|
+
const cwd3 = normPath(opt.cwd);
|
|
47139
47308
|
const done = (er2, created) => {
|
|
47140
47309
|
if (er2) {
|
|
47141
47310
|
cb(er2);
|
|
@@ -47153,41 +47322,41 @@ var require_mkdir = __commonJS({
|
|
|
47153
47322
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
47154
47323
|
return done();
|
|
47155
47324
|
}
|
|
47156
|
-
if (dir ===
|
|
47325
|
+
if (dir === cwd3) {
|
|
47157
47326
|
return checkCwd(dir, done);
|
|
47158
47327
|
}
|
|
47159
47328
|
if (preserve) {
|
|
47160
47329
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
47161
47330
|
}
|
|
47162
|
-
const sub = normPath(path6.relative(
|
|
47331
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
47163
47332
|
const parts = sub.split("/");
|
|
47164
|
-
mkdir_(
|
|
47333
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
47165
47334
|
};
|
|
47166
|
-
var mkdir_ = (base, parts, mode, cache2, unlink,
|
|
47335
|
+
var mkdir_ = (base, parts, mode, cache2, unlink, cwd3, created, cb) => {
|
|
47167
47336
|
if (!parts.length) {
|
|
47168
47337
|
return cb(null, created);
|
|
47169
47338
|
}
|
|
47170
47339
|
const p2 = parts.shift();
|
|
47171
47340
|
const part = normPath(path6.resolve(base + "/" + p2));
|
|
47172
47341
|
if (cGet(cache2, part)) {
|
|
47173
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
47342
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
47174
47343
|
}
|
|
47175
|
-
fs7.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
47344
|
+
fs7.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
47176
47345
|
};
|
|
47177
|
-
var onmkdir = (part, parts, mode, cache2, unlink,
|
|
47346
|
+
var onmkdir = (part, parts, mode, cache2, unlink, cwd3, created, cb) => (er2) => {
|
|
47178
47347
|
if (er2) {
|
|
47179
47348
|
fs7.lstat(part, (statEr, st) => {
|
|
47180
47349
|
if (statEr) {
|
|
47181
47350
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
47182
47351
|
cb(statEr);
|
|
47183
47352
|
} else if (st.isDirectory()) {
|
|
47184
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
47353
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
47185
47354
|
} else if (unlink) {
|
|
47186
47355
|
fs7.unlink(part, (er3) => {
|
|
47187
47356
|
if (er3) {
|
|
47188
47357
|
return cb(er3);
|
|
47189
47358
|
}
|
|
47190
|
-
fs7.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
47359
|
+
fs7.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
47191
47360
|
});
|
|
47192
47361
|
} else if (st.isSymbolicLink()) {
|
|
47193
47362
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -47197,7 +47366,7 @@ var require_mkdir = __commonJS({
|
|
|
47197
47366
|
});
|
|
47198
47367
|
} else {
|
|
47199
47368
|
created = created || part;
|
|
47200
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
47369
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
47201
47370
|
}
|
|
47202
47371
|
};
|
|
47203
47372
|
var checkCwdSync = (dir) => {
|
|
@@ -47224,7 +47393,7 @@ var require_mkdir = __commonJS({
|
|
|
47224
47393
|
const preserve = opt.preserve;
|
|
47225
47394
|
const unlink = opt.unlink;
|
|
47226
47395
|
const cache2 = opt.cache;
|
|
47227
|
-
const
|
|
47396
|
+
const cwd3 = normPath(opt.cwd);
|
|
47228
47397
|
const done = (created2) => {
|
|
47229
47398
|
cSet(cache2, dir, true);
|
|
47230
47399
|
if (created2 && doChown) {
|
|
@@ -47237,17 +47406,17 @@ var require_mkdir = __commonJS({
|
|
|
47237
47406
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
47238
47407
|
return done();
|
|
47239
47408
|
}
|
|
47240
|
-
if (dir ===
|
|
47241
|
-
checkCwdSync(
|
|
47409
|
+
if (dir === cwd3) {
|
|
47410
|
+
checkCwdSync(cwd3);
|
|
47242
47411
|
return done();
|
|
47243
47412
|
}
|
|
47244
47413
|
if (preserve) {
|
|
47245
47414
|
return done(mkdirp.sync(dir, mode));
|
|
47246
47415
|
}
|
|
47247
|
-
const sub = normPath(path6.relative(
|
|
47416
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
47248
47417
|
const parts = sub.split("/");
|
|
47249
47418
|
let created = null;
|
|
47250
|
-
for (let p2 = parts.shift(), part =
|
|
47419
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
47251
47420
|
part = normPath(path6.resolve(part));
|
|
47252
47421
|
if (cGet(cache2, part)) {
|
|
47253
47422
|
continue;
|
|
@@ -47295,9 +47464,9 @@ var require_normalize_unicode = __commonJS({
|
|
|
47295
47464
|
var require_path_reservations = __commonJS({
|
|
47296
47465
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports2, module2) {
|
|
47297
47466
|
var assert2 = require("assert");
|
|
47298
|
-
var
|
|
47467
|
+
var normalize3 = require_normalize_unicode();
|
|
47299
47468
|
var stripSlashes = require_strip_trailing_slashes();
|
|
47300
|
-
var { join:
|
|
47469
|
+
var { join: join8 } = require("path");
|
|
47301
47470
|
var platform2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
47302
47471
|
var isWindows = platform2 === "win32";
|
|
47303
47472
|
module2.exports = () => {
|
|
@@ -47306,7 +47475,7 @@ var require_path_reservations = __commonJS({
|
|
|
47306
47475
|
const getDirs = (path6) => {
|
|
47307
47476
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
47308
47477
|
if (set.length) {
|
|
47309
|
-
path7 =
|
|
47478
|
+
path7 = join8(set[set.length - 1], path7);
|
|
47310
47479
|
}
|
|
47311
47480
|
set.push(path7 || "/");
|
|
47312
47481
|
return set;
|
|
@@ -47374,7 +47543,7 @@ var require_path_reservations = __commonJS({
|
|
|
47374
47543
|
};
|
|
47375
47544
|
const reserve = (paths, fn2) => {
|
|
47376
47545
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
|
|
47377
|
-
return stripSlashes(
|
|
47546
|
+
return stripSlashes(join8(normalize3(p2))).toLowerCase();
|
|
47378
47547
|
});
|
|
47379
47548
|
const dirs = new Set(
|
|
47380
47549
|
paths.map((path6) => getDirs(path6)).reduce((a2, b6) => a2.concat(b6))
|
|
@@ -47434,7 +47603,7 @@ var require_unpack = __commonJS({
|
|
|
47434
47603
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
47435
47604
|
var normPath = require_normalize_windows_path();
|
|
47436
47605
|
var stripSlash = require_strip_trailing_slashes();
|
|
47437
|
-
var
|
|
47606
|
+
var normalize3 = require_normalize_unicode();
|
|
47438
47607
|
var ONENTRY = Symbol("onEntry");
|
|
47439
47608
|
var CHECKFS = Symbol("checkFs");
|
|
47440
47609
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -47486,7 +47655,7 @@ var require_unpack = __commonJS({
|
|
|
47486
47655
|
fs7.unlinkSync(name);
|
|
47487
47656
|
};
|
|
47488
47657
|
var uint32 = (a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c;
|
|
47489
|
-
var cacheKeyNormalize = (path7) => stripSlash(normPath(
|
|
47658
|
+
var cacheKeyNormalize = (path7) => stripSlash(normPath(normalize3(path7))).toLowerCase();
|
|
47490
47659
|
var pruneCache = (cache2, abs) => {
|
|
47491
47660
|
abs = cacheKeyNormalize(abs);
|
|
47492
47661
|
for (const path7 of cache2.keys()) {
|
|
@@ -48175,9 +48344,9 @@ var require_extract = __commonJS({
|
|
|
48175
48344
|
const u3 = new Unpack(opt);
|
|
48176
48345
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
48177
48346
|
const file = opt.file;
|
|
48178
|
-
const p2 = new Promise((
|
|
48347
|
+
const p2 = new Promise((resolve5, reject) => {
|
|
48179
48348
|
u3.on("error", reject);
|
|
48180
|
-
u3.on("close",
|
|
48349
|
+
u3.on("close", resolve5);
|
|
48181
48350
|
fs7.stat(file, (er2, stat2) => {
|
|
48182
48351
|
if (er2) {
|
|
48183
48352
|
reject(er2);
|
|
@@ -48312,12 +48481,12 @@ var require_isexe = __commonJS({
|
|
|
48312
48481
|
if (typeof Promise !== "function") {
|
|
48313
48482
|
throw new TypeError("callback not provided");
|
|
48314
48483
|
}
|
|
48315
|
-
return new Promise(function(
|
|
48484
|
+
return new Promise(function(resolve5, reject) {
|
|
48316
48485
|
isexe(path6, options || {}, function(er2, is) {
|
|
48317
48486
|
if (er2) {
|
|
48318
48487
|
reject(er2);
|
|
48319
48488
|
} else {
|
|
48320
|
-
|
|
48489
|
+
resolve5(is);
|
|
48321
48490
|
}
|
|
48322
48491
|
});
|
|
48323
48492
|
});
|
|
@@ -48383,27 +48552,27 @@ var require_which = __commonJS({
|
|
|
48383
48552
|
opt = {};
|
|
48384
48553
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
48385
48554
|
const found = [];
|
|
48386
|
-
const step = (i2) => new Promise((
|
|
48555
|
+
const step = (i2) => new Promise((resolve5, reject) => {
|
|
48387
48556
|
if (i2 === pathEnv.length)
|
|
48388
|
-
return opt.all && found.length ?
|
|
48557
|
+
return opt.all && found.length ? resolve5(found) : reject(getNotFoundError(cmd));
|
|
48389
48558
|
const ppRaw = pathEnv[i2];
|
|
48390
48559
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
48391
48560
|
const pCmd = path6.join(pathPart, cmd);
|
|
48392
48561
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
48393
|
-
|
|
48562
|
+
resolve5(subStep(p2, i2, 0));
|
|
48394
48563
|
});
|
|
48395
|
-
const subStep = (p2, i2, ii2) => new Promise((
|
|
48564
|
+
const subStep = (p2, i2, ii2) => new Promise((resolve5, reject) => {
|
|
48396
48565
|
if (ii2 === pathExt.length)
|
|
48397
|
-
return
|
|
48566
|
+
return resolve5(step(i2 + 1));
|
|
48398
48567
|
const ext = pathExt[ii2];
|
|
48399
48568
|
isexe(p2 + ext, { pathExt: pathExtExe }, (er2, is) => {
|
|
48400
48569
|
if (!er2 && is) {
|
|
48401
48570
|
if (opt.all)
|
|
48402
48571
|
found.push(p2 + ext);
|
|
48403
48572
|
else
|
|
48404
|
-
return
|
|
48573
|
+
return resolve5(p2 + ext);
|
|
48405
48574
|
}
|
|
48406
|
-
return
|
|
48575
|
+
return resolve5(subStep(p2, i2, ii2 + 1));
|
|
48407
48576
|
});
|
|
48408
48577
|
});
|
|
48409
48578
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -48468,7 +48637,7 @@ var require_resolveCommand = __commonJS({
|
|
|
48468
48637
|
var getPathKey = require_path_key();
|
|
48469
48638
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
48470
48639
|
const env = parsed.options.env || process.env;
|
|
48471
|
-
const
|
|
48640
|
+
const cwd3 = process.cwd();
|
|
48472
48641
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
48473
48642
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
48474
48643
|
if (shouldSwitchCwd) {
|
|
@@ -48486,7 +48655,7 @@ var require_resolveCommand = __commonJS({
|
|
|
48486
48655
|
} catch (e2) {
|
|
48487
48656
|
} finally {
|
|
48488
48657
|
if (shouldSwitchCwd) {
|
|
48489
|
-
process.chdir(
|
|
48658
|
+
process.chdir(cwd3);
|
|
48490
48659
|
}
|
|
48491
48660
|
}
|
|
48492
48661
|
if (resolved) {
|
|
@@ -48615,7 +48784,7 @@ var require_parse2 = __commonJS({
|
|
|
48615
48784
|
}
|
|
48616
48785
|
return parsed;
|
|
48617
48786
|
}
|
|
48618
|
-
function
|
|
48787
|
+
function parse8(command, args, options) {
|
|
48619
48788
|
if (args && !Array.isArray(args)) {
|
|
48620
48789
|
options = args;
|
|
48621
48790
|
args = null;
|
|
@@ -48634,7 +48803,7 @@ var require_parse2 = __commonJS({
|
|
|
48634
48803
|
};
|
|
48635
48804
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
48636
48805
|
}
|
|
48637
|
-
module2.exports =
|
|
48806
|
+
module2.exports = parse8;
|
|
48638
48807
|
}
|
|
48639
48808
|
});
|
|
48640
48809
|
|
|
@@ -48693,16 +48862,16 @@ var require_cross_spawn = __commonJS({
|
|
|
48693
48862
|
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
48694
48863
|
"use strict";
|
|
48695
48864
|
var cp = require("child_process");
|
|
48696
|
-
var
|
|
48865
|
+
var parse8 = require_parse2();
|
|
48697
48866
|
var enoent = require_enoent();
|
|
48698
48867
|
function spawn(command, args, options) {
|
|
48699
|
-
const parsed =
|
|
48868
|
+
const parsed = parse8(command, args, options);
|
|
48700
48869
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
48701
48870
|
enoent.hookChildProcess(spawned, parsed);
|
|
48702
48871
|
return spawned;
|
|
48703
48872
|
}
|
|
48704
48873
|
function spawnSync2(command, args, options) {
|
|
48705
|
-
const parsed =
|
|
48874
|
+
const parsed = parse8(command, args, options);
|
|
48706
48875
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
48707
48876
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
48708
48877
|
return result;
|
|
@@ -48710,7 +48879,7 @@ var require_cross_spawn = __commonJS({
|
|
|
48710
48879
|
module2.exports = spawn;
|
|
48711
48880
|
module2.exports.spawn = spawn;
|
|
48712
48881
|
module2.exports.sync = spawnSync2;
|
|
48713
|
-
module2.exports._parse =
|
|
48882
|
+
module2.exports._parse = parse8;
|
|
48714
48883
|
module2.exports._enoent = enoent;
|
|
48715
48884
|
}
|
|
48716
48885
|
});
|
|
@@ -48757,13 +48926,13 @@ var init_npm_run_path = __esm({
|
|
|
48757
48926
|
import_node_url3 = require("node:url");
|
|
48758
48927
|
init_path_key();
|
|
48759
48928
|
npmRunPath = ({
|
|
48760
|
-
cwd:
|
|
48929
|
+
cwd: cwd3 = import_node_process7.default.cwd(),
|
|
48761
48930
|
path: pathOption = import_node_process7.default.env[pathKey()],
|
|
48762
48931
|
preferLocal = true,
|
|
48763
48932
|
execPath = import_node_process7.default.execPath,
|
|
48764
48933
|
addExecPath = true
|
|
48765
48934
|
} = {}) => {
|
|
48766
|
-
const cwdString =
|
|
48935
|
+
const cwdString = cwd3 instanceof URL ? (0, import_node_url3.fileURLToPath)(cwd3) : cwd3;
|
|
48767
48936
|
const cwdPath = import_node_path7.default.resolve(cwdString);
|
|
48768
48937
|
const result = [];
|
|
48769
48938
|
if (preferLocal) {
|
|
@@ -49306,7 +49475,7 @@ var init_error = __esm({
|
|
|
49306
49475
|
timedOut,
|
|
49307
49476
|
isCanceled,
|
|
49308
49477
|
killed,
|
|
49309
|
-
parsed: { options: { timeout, cwd:
|
|
49478
|
+
parsed: { options: { timeout, cwd: cwd3 = import_node_process8.default.cwd() } }
|
|
49310
49479
|
}) => {
|
|
49311
49480
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
49312
49481
|
signal = signal === null ? void 0 : signal;
|
|
@@ -49332,7 +49501,7 @@ ${error.message}` : execaMessage;
|
|
|
49332
49501
|
error.signalDescription = signalDescription;
|
|
49333
49502
|
error.stdout = stdout;
|
|
49334
49503
|
error.stderr = stderr;
|
|
49335
|
-
error.cwd =
|
|
49504
|
+
error.cwd = cwd3;
|
|
49336
49505
|
if (all !== void 0) {
|
|
49337
49506
|
error.all = all;
|
|
49338
49507
|
}
|
|
@@ -49708,7 +49877,7 @@ var init_kill = __esm({
|
|
|
49708
49877
|
return spawnedPromise;
|
|
49709
49878
|
}
|
|
49710
49879
|
let timeoutId;
|
|
49711
|
-
const timeoutPromise = new Promise((
|
|
49880
|
+
const timeoutPromise = new Promise((resolve5, reject) => {
|
|
49712
49881
|
timeoutId = setTimeout(() => {
|
|
49713
49882
|
timeoutKill(spawned, killSignal, reject);
|
|
49714
49883
|
}, timeout);
|
|
@@ -50181,9 +50350,9 @@ var init_promise = __esm({
|
|
|
50181
50350
|
Reflect.defineProperty(spawned, property, { ...descriptor, value: value2 });
|
|
50182
50351
|
}
|
|
50183
50352
|
};
|
|
50184
|
-
getSpawnedPromise = (spawned) => new Promise((
|
|
50353
|
+
getSpawnedPromise = (spawned) => new Promise((resolve5, reject) => {
|
|
50185
50354
|
spawned.on("exit", (exitCode, signal) => {
|
|
50186
|
-
|
|
50355
|
+
resolve5({ exitCode, signal });
|
|
50187
50356
|
});
|
|
50188
50357
|
spawned.on("error", (error) => {
|
|
50189
50358
|
reject(error);
|
|
@@ -50578,8 +50747,8 @@ var init_execa = __esm({
|
|
|
50578
50747
|
});
|
|
50579
50748
|
|
|
50580
50749
|
// node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
50581
|
-
async function findup(
|
|
50582
|
-
const segments = normalize(
|
|
50750
|
+
async function findup(cwd3, match, options = {}) {
|
|
50751
|
+
const segments = normalize(cwd3).split("/");
|
|
50583
50752
|
while (segments.length > 0) {
|
|
50584
50753
|
const path6 = segments.join("/") || "/";
|
|
50585
50754
|
const result = await match(path6);
|
|
@@ -50610,13 +50779,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
50610
50779
|
});
|
|
50611
50780
|
}
|
|
50612
50781
|
async function resolveOperationOptions(options = {}) {
|
|
50613
|
-
const
|
|
50782
|
+
const cwd3 = options.cwd || process.cwd();
|
|
50614
50783
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
50615
50784
|
if (!packageManager) {
|
|
50616
50785
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
50617
50786
|
}
|
|
50618
50787
|
return {
|
|
50619
|
-
cwd:
|
|
50788
|
+
cwd: cwd3,
|
|
50620
50789
|
silent: options.silent ?? false,
|
|
50621
50790
|
packageManager,
|
|
50622
50791
|
dev: options.dev ?? false,
|
|
@@ -50624,9 +50793,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
50624
50793
|
global: options.global ?? false
|
|
50625
50794
|
};
|
|
50626
50795
|
}
|
|
50627
|
-
async function detectPackageManager(
|
|
50796
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
50628
50797
|
const detected = await findup(
|
|
50629
|
-
resolve2(
|
|
50798
|
+
resolve2(cwd3 || "."),
|
|
50630
50799
|
async (path6) => {
|
|
50631
50800
|
if (!options.ignorePackageJSON) {
|
|
50632
50801
|
const packageJSONPath = join4(path6, "package.json");
|
|
@@ -50696,7 +50865,7 @@ async function installDependencies(options = {}) {
|
|
|
50696
50865
|
});
|
|
50697
50866
|
}
|
|
50698
50867
|
var import_node_fs12, import_promises7, importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
50699
|
-
var
|
|
50868
|
+
var init_dist7 = __esm({
|
|
50700
50869
|
"node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
50701
50870
|
import_node_fs12 = require("node:fs");
|
|
50702
50871
|
import_promises7 = require("node:fs/promises");
|
|
@@ -60822,10 +60991,10 @@ ${f2.toString(16)}\r
|
|
|
60822
60991
|
return Q5(U5, "getHeadersList"), util$3 = { isCTLExcludingHtab: t2, validateCookieName: r4, validateCookiePath: o, validateCookieValue: n, toIMFDate: c, stringify: y3, getHeadersList: U5 }, util$3;
|
|
60823
60992
|
}
|
|
60824
60993
|
Q5(requireUtil$2, "requireUtil$2");
|
|
60825
|
-
var
|
|
60994
|
+
var parse8;
|
|
60826
60995
|
var hasRequiredParse;
|
|
60827
60996
|
function requireParse() {
|
|
60828
|
-
if (hasRequiredParse) return
|
|
60997
|
+
if (hasRequiredParse) return parse8;
|
|
60829
60998
|
hasRequiredParse = 1;
|
|
60830
60999
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
60831
61000
|
function o(l2) {
|
|
@@ -60878,7 +61047,7 @@ ${f2.toString(16)}\r
|
|
|
60878
61047
|
} else C4.unparsed ?? (C4.unparsed = []), C4.unparsed.push(`${c}=${I4}`);
|
|
60879
61048
|
return B3(l2, C4);
|
|
60880
61049
|
}
|
|
60881
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
61050
|
+
return Q5(B3, "parseUnparsedAttributes"), parse8 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse8;
|
|
60882
61051
|
}
|
|
60883
61052
|
Q5(requireParse, "requireParse");
|
|
60884
61053
|
var cookies;
|
|
@@ -62563,14 +62732,14 @@ function currentShell() {
|
|
|
62563
62732
|
}
|
|
62564
62733
|
return "/bin/bash";
|
|
62565
62734
|
}
|
|
62566
|
-
function startShell(
|
|
62567
|
-
|
|
62735
|
+
function startShell(cwd3) {
|
|
62736
|
+
cwd3 = resolve2(cwd3);
|
|
62568
62737
|
const shell = currentShell();
|
|
62569
62738
|
console.info(
|
|
62570
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
62739
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
62571
62740
|
);
|
|
62572
62741
|
(0, import_node_child_process9.spawnSync)(shell, [], {
|
|
62573
|
-
cwd:
|
|
62742
|
+
cwd: cwd3,
|
|
62574
62743
|
shell: true,
|
|
62575
62744
|
stdio: "inherit"
|
|
62576
62745
|
});
|
|
@@ -62645,8 +62814,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
62645
62814
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
62646
62815
|
);
|
|
62647
62816
|
}
|
|
62648
|
-
const
|
|
62649
|
-
const extractPath = resolve2(
|
|
62817
|
+
const cwd3 = resolve2(options.cwd || ".");
|
|
62818
|
+
const extractPath = resolve2(cwd3, options.dir || template.defaultDir);
|
|
62650
62819
|
if (options.forceClean) {
|
|
62651
62820
|
await (0, import_promises8.rm)(extractPath, { recursive: true, force: true });
|
|
62652
62821
|
}
|
|
@@ -62685,14 +62854,14 @@ async function downloadTemplate(input, options = {}) {
|
|
|
62685
62854
|
};
|
|
62686
62855
|
}
|
|
62687
62856
|
var import_promises8, import_node_fs13, import_tar, import_defu2, import_node_stream, import_node_child_process9, import_node_os7, import_node_util7, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
62688
|
-
var
|
|
62857
|
+
var init_dist8 = __esm({
|
|
62689
62858
|
"node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
62690
62859
|
import_promises8 = require("node:fs/promises");
|
|
62691
62860
|
import_node_fs13 = require("node:fs");
|
|
62692
62861
|
import_tar = __toESM(require_tar(), 1);
|
|
62693
62862
|
init_dist();
|
|
62694
62863
|
import_defu2 = require("defu");
|
|
62695
|
-
|
|
62864
|
+
init_dist7();
|
|
62696
62865
|
import_node_stream = require("node:stream");
|
|
62697
62866
|
import_node_child_process9 = require("node:child_process");
|
|
62698
62867
|
import_node_os7 = require("node:os");
|
|
@@ -65124,14 +65293,14 @@ var baseOpen = async (options) => {
|
|
|
65124
65293
|
}
|
|
65125
65294
|
const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
|
|
65126
65295
|
if (options.wait) {
|
|
65127
|
-
return new Promise((
|
|
65296
|
+
return new Promise((resolve5, reject) => {
|
|
65128
65297
|
subprocess.once("error", reject);
|
|
65129
65298
|
subprocess.once("close", (exitCode) => {
|
|
65130
65299
|
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
65131
65300
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
65132
65301
|
return;
|
|
65133
65302
|
}
|
|
65134
|
-
|
|
65303
|
+
resolve5(subprocess);
|
|
65135
65304
|
});
|
|
65136
65305
|
});
|
|
65137
65306
|
}
|
|
@@ -65240,7 +65409,7 @@ async function sum(array, fn2) {
|
|
|
65240
65409
|
return (await Promise.all(array.map(fn2))).reduce((all, i2) => all + i2, 0);
|
|
65241
65410
|
}
|
|
65242
65411
|
function brotliSize(path6) {
|
|
65243
|
-
return new Promise((
|
|
65412
|
+
return new Promise((resolve5, reject) => {
|
|
65244
65413
|
let size = 0;
|
|
65245
65414
|
let pipe = (0, import_node_fs6.createReadStream)(path6).pipe(
|
|
65246
65415
|
(0, import_node_zlib.createBrotliCompress)({
|
|
@@ -65254,12 +65423,12 @@ function brotliSize(path6) {
|
|
|
65254
65423
|
size += buf.length;
|
|
65255
65424
|
});
|
|
65256
65425
|
pipe.on("end", () => {
|
|
65257
|
-
|
|
65426
|
+
resolve5(size);
|
|
65258
65427
|
});
|
|
65259
65428
|
});
|
|
65260
65429
|
}
|
|
65261
65430
|
function gzipSize(path6) {
|
|
65262
|
-
return new Promise((
|
|
65431
|
+
return new Promise((resolve5, reject) => {
|
|
65263
65432
|
let size = 0;
|
|
65264
65433
|
let pipe = (0, import_node_fs6.createReadStream)(path6).pipe((0, import_node_zlib.createGzip)({ level: 9 }));
|
|
65265
65434
|
pipe.on("error", reject);
|
|
@@ -65267,7 +65436,7 @@ function gzipSize(path6) {
|
|
|
65267
65436
|
size += buf.length;
|
|
65268
65437
|
});
|
|
65269
65438
|
pipe.on("end", () => {
|
|
65270
|
-
|
|
65439
|
+
resolve5(size);
|
|
65271
65440
|
});
|
|
65272
65441
|
});
|
|
65273
65442
|
}
|
|
@@ -65313,7 +65482,7 @@ function createJiti(id, opts = {}) {
|
|
|
65313
65482
|
}
|
|
65314
65483
|
|
|
65315
65484
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
65316
|
-
|
|
65485
|
+
init_dist6();
|
|
65317
65486
|
|
|
65318
65487
|
// node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
65319
65488
|
var import_node_fs9 = require("node:fs");
|
|
@@ -65509,7 +65678,7 @@ function withDefaults(options) {
|
|
|
65509
65678
|
}
|
|
65510
65679
|
return { ...defaults, ...options };
|
|
65511
65680
|
}
|
|
65512
|
-
function
|
|
65681
|
+
function parse6(contents, options = {}) {
|
|
65513
65682
|
const config = {};
|
|
65514
65683
|
const lines = contents.split(RE_LINES);
|
|
65515
65684
|
for (const line of lines) {
|
|
@@ -65538,7 +65707,7 @@ function parseFile(path6, options) {
|
|
|
65538
65707
|
if (!(0, import_node_fs9.existsSync)(path6)) {
|
|
65539
65708
|
return {};
|
|
65540
65709
|
}
|
|
65541
|
-
return
|
|
65710
|
+
return parse6((0, import_node_fs9.readFileSync)(path6, "utf8"), options);
|
|
65542
65711
|
}
|
|
65543
65712
|
function read2(options) {
|
|
65544
65713
|
options = withDefaults(options);
|
|
@@ -66178,7 +66347,7 @@ function hash(object, options = {}) {
|
|
|
66178
66347
|
}
|
|
66179
66348
|
|
|
66180
66349
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
66181
|
-
|
|
66350
|
+
init_dist5();
|
|
66182
66351
|
var dotenv = __toESM(require_main(), 1);
|
|
66183
66352
|
async function setupDotenv(options) {
|
|
66184
66353
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -66211,7 +66380,7 @@ async function loadDotenv(options) {
|
|
|
66211
66380
|
}
|
|
66212
66381
|
return environment;
|
|
66213
66382
|
}
|
|
66214
|
-
function interpolate(target, source = {},
|
|
66383
|
+
function interpolate(target, source = {}, parse8 = (v4) => v4) {
|
|
66215
66384
|
function getValue(key) {
|
|
66216
66385
|
return source[key] === void 0 ? target[key] : source[key];
|
|
66217
66386
|
}
|
|
@@ -66220,7 +66389,7 @@ function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
|
66220
66389
|
return value2;
|
|
66221
66390
|
}
|
|
66222
66391
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
66223
|
-
return
|
|
66392
|
+
return parse8(
|
|
66224
66393
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
66225
66394
|
matches.reduce((newValue, match) => {
|
|
66226
66395
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -66454,7 +66623,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
66454
66623
|
}
|
|
66455
66624
|
const _merger = options.merger || import_defu3.defu;
|
|
66456
66625
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
66457
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
66626
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
66458
66627
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
66459
66628
|
let cloneDir;
|
|
66460
66629
|
const localNodeModules = resolve2(options.cwd, "node_modules");
|
|
@@ -66488,18 +66657,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
66488
66657
|
}
|
|
66489
66658
|
const ext = extname(source);
|
|
66490
66659
|
const isDir = !ext || ext === basename(source);
|
|
66491
|
-
const
|
|
66660
|
+
const cwd3 = resolve2(options.cwd, isDir ? source : dirname(source));
|
|
66492
66661
|
if (isDir) {
|
|
66493
66662
|
source = options.configFile;
|
|
66494
66663
|
}
|
|
66495
66664
|
const res = {
|
|
66496
66665
|
config: void 0,
|
|
66497
66666
|
configFile: void 0,
|
|
66498
|
-
cwd:
|
|
66667
|
+
cwd: cwd3,
|
|
66499
66668
|
source,
|
|
66500
66669
|
sourceOptions
|
|
66501
66670
|
};
|
|
66502
|
-
res.configFile = tryResolve(resolve2(
|
|
66671
|
+
res.configFile = tryResolve(resolve2(cwd3, source)) || tryResolve(resolve2(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve2(cwd3, ".config", source)) || source;
|
|
66503
66672
|
if (!(0, import_node_fs14.existsSync)(res.configFile)) {
|
|
66504
66673
|
return res;
|
|
66505
66674
|
}
|