@storm-software/workspace-tools 1.226.3 → 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 +7 -0
- 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
|
@@ -2298,29 +2298,29 @@ var require_jiti = __commonJS({
|
|
|
2298
2298
|
}
|
|
2299
2299
|
Symbol.for("ufo:protocolRelative");
|
|
2300
2300
|
Object.defineProperty;
|
|
2301
|
-
const
|
|
2302
|
-
function
|
|
2303
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2301
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2302
|
+
function normalizeWindowsPath3(input = "") {
|
|
2303
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2304
2304
|
}
|
|
2305
|
-
const
|
|
2305
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = function(path5) {
|
|
2306
2306
|
if (0 === path5.length) return ".";
|
|
2307
|
-
const isUNCPath = (path5 =
|
|
2308
|
-
return 0 === (path5 =
|
|
2309
|
-
},
|
|
2307
|
+
const isUNCPath = (path5 = normalizeWindowsPath3(path5)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute3(path5), trailingSeparator = "/" === path5[path5.length - 1];
|
|
2308
|
+
return 0 === (path5 = normalizeString3(path5, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path5 += "/"), _DRIVE_LETTER_RE3.test(path5) && (path5 += "/"), isUNCPath ? isPathAbsolute ? `//${path5}` : `//./${path5}` : isPathAbsolute && !isAbsolute3(path5) ? `/${path5}` : path5);
|
|
2309
|
+
}, join5 = function(...arguments_) {
|
|
2310
2310
|
if (0 === arguments_.length) return ".";
|
|
2311
2311
|
let joined;
|
|
2312
2312
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2313
2313
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2314
2314
|
};
|
|
2315
|
-
const
|
|
2315
|
+
const resolve4 = function(...arguments_) {
|
|
2316
2316
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2317
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2317
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2318
2318
|
const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2319
|
-
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute =
|
|
2319
|
+
path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path5));
|
|
2320
2320
|
}
|
|
2321
|
-
return resolvedPath =
|
|
2321
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2322
2322
|
};
|
|
2323
|
-
function
|
|
2323
|
+
function normalizeString3(path5, allowAboveRoot) {
|
|
2324
2324
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2325
2325
|
for (let index = 0; index <= path5.length; ++index) {
|
|
2326
2326
|
if (index < path5.length) char = path5[index];
|
|
@@ -2349,16 +2349,16 @@ var require_jiti = __commonJS({
|
|
|
2349
2349
|
}
|
|
2350
2350
|
return res;
|
|
2351
2351
|
}
|
|
2352
|
-
const
|
|
2353
|
-
return
|
|
2354
|
-
}, _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2355
|
-
const match = _EXTNAME_RE2.exec(
|
|
2352
|
+
const isAbsolute3 = function(p2) {
|
|
2353
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2354
|
+
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname4 = function(p2) {
|
|
2355
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2356
2356
|
return match && match[1] || "";
|
|
2357
2357
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
2358
|
-
const segments =
|
|
2359
|
-
return 1 === segments.length &&
|
|
2360
|
-
},
|
|
2361
|
-
const lastSegment =
|
|
2358
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2359
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p2) ? "/" : ".");
|
|
2360
|
+
}, basename3 = function(p2, extension) {
|
|
2361
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2362
2362
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2363
2363
|
}, 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);
|
|
2364
2364
|
function normalizeSlash2(path5) {
|
|
@@ -2501,8 +2501,8 @@ var require_jiti = __commonJS({
|
|
|
2501
2501
|
const packageType = getPackageType2(url);
|
|
2502
2502
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2505
|
-
if (
|
|
2504
|
+
const format4 = extensionFormatMap2[value2];
|
|
2505
|
+
if (format4) return format4;
|
|
2506
2506
|
if (ignoreErrors) return;
|
|
2507
2507
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2508
2508
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -2517,11 +2517,11 @@ var require_jiti = __commonJS({
|
|
|
2517
2517
|
}
|
|
2518
2518
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
2519
2519
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2520
|
-
const
|
|
2520
|
+
const format4 = function(url2, context) {
|
|
2521
2521
|
const protocol = url2.protocol;
|
|
2522
2522
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
2523
2523
|
}(url, { parentURL: base.href });
|
|
2524
|
-
if ("module" !==
|
|
2524
|
+
if ("module" !== format4) return;
|
|
2525
2525
|
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);
|
|
2526
2526
|
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}.
|
|
2527
2527
|
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}.
|
|
@@ -2818,7 +2818,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2818
2818
|
}
|
|
2819
2819
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2820
2820
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2821
|
-
if (id.startsWith("file://") && (id = fileURLToPath3(id)),
|
|
2821
|
+
if (id.startsWith("file://") && (id = fileURLToPath3(id)), isAbsolute3(id)) try {
|
|
2822
2822
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2823
2823
|
} catch (error) {
|
|
2824
2824
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -2922,8 +2922,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2922
2922
|
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]") };
|
|
2923
2923
|
function debug2(ctx, ...args) {
|
|
2924
2924
|
if (!ctx.opts.debug) return;
|
|
2925
|
-
const
|
|
2926
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
2925
|
+
const cwd3 = process.cwd();
|
|
2926
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
2927
2927
|
}
|
|
2928
2928
|
function jitiInteropDefault(ctx, mod) {
|
|
2929
2929
|
return ctx.opts.interopDefault ? function(mod2) {
|
|
@@ -2961,17 +2961,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2961
2961
|
let resolved, lastError;
|
|
2962
2962
|
if (ctx.isNativeRe.test(id)) return id;
|
|
2963
2963
|
ctx.alias && (id = function(path5, aliases2) {
|
|
2964
|
-
const _path =
|
|
2964
|
+
const _path = normalizeWindowsPath3(path5);
|
|
2965
2965
|
aliases2 = normalizeAliases(aliases2);
|
|
2966
2966
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
2967
2967
|
if (!_path.startsWith(alias)) continue;
|
|
2968
2968
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
2969
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
2969
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join5(to, _path.slice(alias.length));
|
|
2970
2970
|
}
|
|
2971
2971
|
return _path;
|
|
2972
2972
|
}(id, ctx.alias));
|
|
2973
2973
|
let parentURL = options?.parentURL || ctx.url;
|
|
2974
|
-
isDir(parentURL) && (parentURL =
|
|
2974
|
+
isDir(parentURL) && (parentURL = join5(parentURL, "_index.js"));
|
|
2975
2975
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
2976
2976
|
for (const conditions of conditionSets) {
|
|
2977
2977
|
try {
|
|
@@ -3021,7 +3021,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3021
3021
|
}
|
|
3022
3022
|
const filename = jitiResolve(ctx, id, opts);
|
|
3023
3023
|
if (!filename && opts.try) return;
|
|
3024
|
-
const ext =
|
|
3024
|
+
const ext = extname4(filename);
|
|
3025
3025
|
if (".json" === ext) {
|
|
3026
3026
|
debug2(ctx, "[json]", filename);
|
|
3027
3027
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3039,7 +3039,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3039
3039
|
}
|
|
3040
3040
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3041
3041
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3042
|
-
return _5 &&
|
|
3042
|
+
return _5 && isAbsolute3(id2) ? pathToFileURL2(id2) : id2;
|
|
3043
3043
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3044
3044
|
}
|
|
3045
3045
|
const CACHE_VERSION = "9";
|
|
@@ -3047,11 +3047,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3047
3047
|
if (!ctx.opts.fsCache || !topts.filename) return get2();
|
|
3048
3048
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3049
3049
|
`;
|
|
3050
|
-
let cacheName = `${
|
|
3050
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
|
|
3051
3051
|
return path5.match(FILENAME_RE)?.[2];
|
|
3052
3052
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3053
3053
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3054
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3054
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join5(cacheDir, cacheName);
|
|
3055
3055
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3056
3056
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3057
3057
|
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3062,14 +3062,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3062
3062
|
}
|
|
3063
3063
|
function prepareCacheDir(ctx) {
|
|
3064
3064
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3065
|
-
const nmDir = ctx2.filename &&
|
|
3066
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3065
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3066
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join5(nmDir, ".cache/jiti");
|
|
3067
3067
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3068
3068
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3069
3069
|
const _env = process.env.TMPDIR;
|
|
3070
3070
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3071
3071
|
}
|
|
3072
|
-
return
|
|
3072
|
+
return join5(_tmpDir, "jiti");
|
|
3073
3073
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3074
3074
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3075
3075
|
try {
|
|
@@ -3090,11 +3090,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3090
3090
|
return code.startsWith("#!") && (code = "// " + code), code;
|
|
3091
3091
|
}
|
|
3092
3092
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3093
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3093
|
+
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(path5) {
|
|
3094
3094
|
for (; path5 && "." !== path5 && "/" !== path5; ) {
|
|
3095
|
-
path5 =
|
|
3095
|
+
path5 = join5(path5, "..");
|
|
3096
3096
|
try {
|
|
3097
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3097
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join5(path5, "package.json"), "utf8");
|
|
3098
3098
|
try {
|
|
3099
3099
|
return JSON.parse(pkg);
|
|
3100
3100
|
} catch {
|
|
@@ -3158,7 +3158,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3158
3158
|
const deprecatOverrides = {};
|
|
3159
3159
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3160
3160
|
}(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("|")})/`);
|
|
3161
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3161
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join5(filename, "_index.js"));
|
|
3162
3162
|
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 };
|
|
3163
3163
|
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3164
3164
|
const jiti = Object.assign(function(id) {
|
|
@@ -3432,7 +3432,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3432
3432
|
for (let i2 = 1; i2 < pointer; i2++) path5 += "/" + pieces[i2];
|
|
3433
3433
|
(!path5 || addTrailingSlash && !path5.endsWith("/..")) && (path5 += "/"), url.path = path5;
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function resolve4(input, base) {
|
|
3436
3436
|
if (!input && !base) return "";
|
|
3437
3437
|
const url = parseUrl(input);
|
|
3438
3438
|
let inputType = url.type;
|
|
@@ -3469,7 +3469,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3469
3469
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
|
-
return
|
|
3472
|
+
return resolve4;
|
|
3473
3473
|
}();
|
|
3474
3474
|
}, "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": function(__unused_webpack_module, exports3) {
|
|
3475
3475
|
!function(exports4) {
|
|
@@ -3515,17 +3515,17 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3515
3515
|
const c = chars.charCodeAt(i2);
|
|
3516
3516
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
3517
3517
|
}
|
|
3518
|
-
function decodeInteger(reader,
|
|
3518
|
+
function decodeInteger(reader, relative4) {
|
|
3519
3519
|
let value2 = 0, shift = 0, integer = 0;
|
|
3520
3520
|
do {
|
|
3521
3521
|
const c = reader.next();
|
|
3522
3522
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
3523
3523
|
} while (32 & integer);
|
|
3524
3524
|
const shouldNegate = 1 & value2;
|
|
3525
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
3525
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative4 + value2;
|
|
3526
3526
|
}
|
|
3527
|
-
function encodeInteger(builder, num,
|
|
3528
|
-
let delta = num -
|
|
3527
|
+
function encodeInteger(builder, num, relative4) {
|
|
3528
|
+
let delta = num - relative4;
|
|
3529
3529
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3530
3530
|
do {
|
|
3531
3531
|
let clamped = 31 & delta;
|
|
@@ -3733,7 +3733,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3733
3733
|
}, "./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) {
|
|
3734
3734
|
!function(exports4, sourcemapCodec, resolveUri) {
|
|
3735
3735
|
"use strict";
|
|
3736
|
-
function
|
|
3736
|
+
function resolve4(input, base) {
|
|
3737
3737
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
3738
3738
|
}
|
|
3739
3739
|
function stripFilename(path5) {
|
|
@@ -3814,12 +3814,12 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3814
3814
|
return { __proto__: null };
|
|
3815
3815
|
}
|
|
3816
3816
|
const AnyMap = function(map, mapUrl) {
|
|
3817
|
-
const parsed =
|
|
3817
|
+
const parsed = parse8(map);
|
|
3818
3818
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
3819
3819
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
3820
3820
|
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 });
|
|
3821
3821
|
};
|
|
3822
|
-
function
|
|
3822
|
+
function parse8(map) {
|
|
3823
3823
|
return "string" == typeof map ? JSON.parse(map) : map;
|
|
3824
3824
|
}
|
|
3825
3825
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
@@ -3835,7 +3835,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3835
3835
|
}
|
|
3836
3836
|
}
|
|
3837
3837
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
3838
|
-
const parsed =
|
|
3838
|
+
const parsed = parse8(input);
|
|
3839
3839
|
if ("sections" in parsed) return recurse(...arguments);
|
|
3840
3840
|
const map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
|
|
3841
3841
|
if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
|
|
@@ -3871,8 +3871,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3871
3871
|
if (!isString2 && map._decodedMemo) return map;
|
|
3872
3872
|
const parsed = isString2 ? JSON.parse(map) : map, { version: version3, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
3873
3873
|
this.version = version3, 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;
|
|
3874
|
-
const from =
|
|
3875
|
-
this.resolvedSources = sources.map((s2) =>
|
|
3874
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
3875
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
3876
3876
|
const { mappings } = parsed;
|
|
3877
3877
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString2)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
3878
3878
|
}
|
|
@@ -4289,10 +4289,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4289
4289
|
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4290
4290
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4291
4291
|
let index = 0;
|
|
4292
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4292
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4293
4293
|
if ("%%" === match) return "%";
|
|
4294
4294
|
index++;
|
|
4295
|
-
const formatter = createDebug.formatters[
|
|
4295
|
+
const formatter = createDebug.formatters[format4];
|
|
4296
4296
|
if ("function" == typeof formatter) {
|
|
4297
4297
|
const val = args[index];
|
|
4298
4298
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4422,7 +4422,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4422
4422
|
for (; !({ value: value2 } = gen.next()).done; ) assertStart(value2, gen);
|
|
4423
4423
|
return value2;
|
|
4424
4424
|
}
|
|
4425
|
-
function evaluateAsync(gen,
|
|
4425
|
+
function evaluateAsync(gen, resolve4, reject) {
|
|
4426
4426
|
!function step() {
|
|
4427
4427
|
try {
|
|
4428
4428
|
let value2;
|
|
@@ -4434,7 +4434,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4434
4434
|
});
|
|
4435
4435
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4436
4436
|
}
|
|
4437
|
-
return
|
|
4437
|
+
return resolve4(value2);
|
|
4438
4438
|
} catch (err) {
|
|
4439
4439
|
return reject(err);
|
|
4440
4440
|
}
|
|
@@ -4471,10 +4471,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4471
4471
|
"number" != typeof arity && (arity = sync.length);
|
|
4472
4472
|
return buildOperation({ name, arity, sync: function(args) {
|
|
4473
4473
|
return sync.apply(this, args);
|
|
4474
|
-
}, async: function(args,
|
|
4475
|
-
async ? async.apply(this, args).then(
|
|
4476
|
-
null == err ?
|
|
4477
|
-
}) :
|
|
4474
|
+
}, async: function(args, resolve4, reject) {
|
|
4475
|
+
async ? async.apply(this, args).then(resolve4, reject) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4476
|
+
null == err ? resolve4(value2) : reject(err);
|
|
4477
|
+
}) : resolve4(sync.apply(this, args));
|
|
4478
4478
|
} });
|
|
4479
4479
|
}(optsOrFn) : function(genFn2) {
|
|
4480
4480
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4484,8 +4484,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4484
4484
|
const fns = { sync: function(...args) {
|
|
4485
4485
|
return evaluateSync(genFn2.apply(this, args));
|
|
4486
4486
|
}, async: function(...args) {
|
|
4487
|
-
return new Promise((
|
|
4488
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4487
|
+
return new Promise((resolve4, reject) => {
|
|
4488
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject);
|
|
4489
4489
|
});
|
|
4490
4490
|
}, errback: function(...args) {
|
|
4491
4491
|
const cb = args.pop();
|
|
@@ -4502,25 +4502,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4502
4502
|
}(genFn));
|
|
4503
4503
|
}, { all: buildOperation({ name: "all", arity: 1, sync: function(args) {
|
|
4504
4504
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4505
|
-
}, async: function(args,
|
|
4505
|
+
}, async: function(args, resolve4, reject) {
|
|
4506
4506
|
const items = Array.from(args[0]);
|
|
4507
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4507
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
4508
4508
|
let count = 0;
|
|
4509
4509
|
const results = items.map(() => {
|
|
4510
4510
|
});
|
|
4511
4511
|
items.forEach((item, i2) => {
|
|
4512
4512
|
evaluateAsync(item, (val) => {
|
|
4513
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
4513
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
4514
4514
|
}, reject);
|
|
4515
4515
|
});
|
|
4516
4516
|
} }), race: buildOperation({ name: "race", arity: 1, sync: function(args) {
|
|
4517
4517
|
const items = Array.from(args[0]);
|
|
4518
4518
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4519
4519
|
return evaluateSync(items[0]);
|
|
4520
|
-
}, async: function(args,
|
|
4520
|
+
}, async: function(args, resolve4, reject) {
|
|
4521
4521
|
const items = Array.from(args[0]);
|
|
4522
4522
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4523
|
-
for (const item of items) evaluateAsync(item,
|
|
4523
|
+
for (const item of items) evaluateAsync(item, resolve4, reject);
|
|
4524
4524
|
} }) });
|
|
4525
4525
|
}, "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
4526
4526
|
"use strict";
|
|
@@ -4702,7 +4702,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4702
4702
|
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");
|
|
4703
4703
|
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*\\*";
|
|
4704
4704
|
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])));
|
|
4705
|
-
function
|
|
4705
|
+
function parse8(version3, options) {
|
|
4706
4706
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version3 instanceof SemVer) return version3;
|
|
4707
4707
|
if ("string" != typeof version3) return null;
|
|
4708
4708
|
if (version3.length > MAX_LENGTH) return null;
|
|
@@ -4734,11 +4734,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4734
4734
|
return id;
|
|
4735
4735
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
4736
4736
|
}
|
|
4737
|
-
exports3.parse =
|
|
4738
|
-
var v4 =
|
|
4737
|
+
exports3.parse = parse8, exports3.valid = function(version3, options) {
|
|
4738
|
+
var v4 = parse8(version3, options);
|
|
4739
4739
|
return v4 ? v4.version : null;
|
|
4740
4740
|
}, exports3.clean = function(version3, options) {
|
|
4741
|
-
var s2 =
|
|
4741
|
+
var s2 = parse8(version3.trim().replace(/^[=v]+/, ""), options);
|
|
4742
4742
|
return s2 ? s2.version : null;
|
|
4743
4743
|
}, exports3.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
4744
4744
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -4814,7 +4814,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4814
4814
|
}
|
|
4815
4815
|
}, exports3.diff = function(version1, version22) {
|
|
4816
4816
|
if (eq(version1, version22)) return null;
|
|
4817
|
-
var v1 =
|
|
4817
|
+
var v1 = parse8(version1), v22 = parse8(version22), prefix = "";
|
|
4818
4818
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
4819
4819
|
prefix = "pre";
|
|
4820
4820
|
var defaultResult = "prerelease";
|
|
@@ -5128,7 +5128,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5128
5128
|
}, exports3.gtr = function(version3, range, options) {
|
|
5129
5129
|
return outside(version3, range, ">", options);
|
|
5130
5130
|
}, exports3.outside = outside, exports3.prerelease = function(version3, options) {
|
|
5131
|
-
var parsed =
|
|
5131
|
+
var parsed = parse8(version3, options);
|
|
5132
5132
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5133
5133
|
}, exports3.intersects = function(r1, r22, options) {
|
|
5134
5134
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5142,7 +5142,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5142
5142
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5143
5143
|
} else match = version3.match(safeRe[t2.COERCE]);
|
|
5144
5144
|
if (null === match) return null;
|
|
5145
|
-
return
|
|
5145
|
+
return parse8(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5146
5146
|
};
|
|
5147
5147
|
}, "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": (module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
5148
5148
|
"use strict";
|
|
@@ -5336,8 +5336,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5336
5336
|
}
|
|
5337
5337
|
class Lock {
|
|
5338
5338
|
constructor() {
|
|
5339
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5340
|
-
this._resolve =
|
|
5339
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
5340
|
+
this._resolve = resolve4;
|
|
5341
5341
|
});
|
|
5342
5342
|
}
|
|
5343
5343
|
release(value2) {
|
|
@@ -5419,54 +5419,54 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5419
5419
|
return null == chain || chain.files.add(input.filepath), chain;
|
|
5420
5420
|
}
|
|
5421
5421
|
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))));
|
|
5422
|
-
function buildRootDescriptors({ dirname:
|
|
5423
|
-
return descriptors2(
|
|
5422
|
+
function buildRootDescriptors({ dirname: dirname4, options }, alias, descriptors2) {
|
|
5423
|
+
return descriptors2(dirname4, options, alias);
|
|
5424
5424
|
}
|
|
5425
|
-
function buildEnvDescriptors({ dirname:
|
|
5425
|
+
function buildEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, envName) {
|
|
5426
5426
|
var _options$env;
|
|
5427
5427
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5428
|
-
return opts ? descriptors2(
|
|
5428
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.env["${envName}"]`) : null;
|
|
5429
5429
|
}
|
|
5430
|
-
function buildOverrideDescriptors({ dirname:
|
|
5430
|
+
function buildOverrideDescriptors({ dirname: dirname4, options }, alias, descriptors2, index) {
|
|
5431
5431
|
var _options$overrides;
|
|
5432
5432
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5433
5433
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5434
|
-
return descriptors2(
|
|
5434
|
+
return descriptors2(dirname4, opts, `${alias}.overrides[${index}]`);
|
|
5435
5435
|
}
|
|
5436
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5436
|
+
function buildOverrideEnvDescriptors({ dirname: dirname4, options }, alias, descriptors2, index, envName) {
|
|
5437
5437
|
var _options$overrides2, _override$env;
|
|
5438
5438
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5439
5439
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5440
5440
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5441
|
-
return opts ? descriptors2(
|
|
5441
|
+
return opts ? descriptors2(dirname4, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5442
5442
|
}
|
|
5443
5443
|
function makeChainWalker({ root, env, overrides, overridesEnv, createLogger }) {
|
|
5444
5444
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5445
|
-
const { dirname:
|
|
5446
|
-
if (configIsApplicable(rootOpts,
|
|
5445
|
+
const { dirname: dirname4 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
5446
|
+
if (configIsApplicable(rootOpts, dirname4, context, input.filepath)) {
|
|
5447
5447
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5448
5448
|
const envOpts = env(input, context.envName);
|
|
5449
|
-
envOpts && configIsApplicable(envOpts,
|
|
5449
|
+
envOpts && configIsApplicable(envOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_5, index) => {
|
|
5450
5450
|
const overrideOps = overrides(input, index);
|
|
5451
|
-
if (configIsApplicable(overrideOps,
|
|
5451
|
+
if (configIsApplicable(overrideOps, dirname4, context, input.filepath)) {
|
|
5452
5452
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5453
5453
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5454
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5454
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5455
5455
|
}
|
|
5456
5456
|
});
|
|
5457
5457
|
}
|
|
5458
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5458
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname4))) return null;
|
|
5459
5459
|
const chain = emptyChain(), logger2 = createLogger(input, context, baseLogger);
|
|
5460
5460
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5461
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
5461
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname4, context, files, baseLogger))) return null;
|
|
5462
5462
|
logger2(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
5463
5463
|
}
|
|
5464
5464
|
return chain;
|
|
5465
5465
|
};
|
|
5466
5466
|
}
|
|
5467
|
-
function* mergeExtendsChain(chain, opts,
|
|
5467
|
+
function* mergeExtendsChain(chain, opts, dirname4, context, files, baseLogger) {
|
|
5468
5468
|
if (void 0 === opts.extends) return true;
|
|
5469
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5469
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname4, context.envName, context.caller);
|
|
5470
5470
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5471
5471
|
File already loaded following the config chain:
|
|
5472
5472
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5500,35 +5500,35 @@ File already loaded following the config chain:
|
|
|
5500
5500
|
} else descriptors2.push({ value: item });
|
|
5501
5501
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5502
5502
|
}
|
|
5503
|
-
function configIsApplicable({ options },
|
|
5504
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5503
|
+
function configIsApplicable({ options }, dirname4, context, configName) {
|
|
5504
|
+
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));
|
|
5505
5505
|
}
|
|
5506
|
-
function configFieldIsApplicable(context, test2,
|
|
5507
|
-
return matchesPatterns(context, Array.isArray(test2) ? test2 : [test2],
|
|
5506
|
+
function configFieldIsApplicable(context, test2, dirname4, configName) {
|
|
5507
|
+
return matchesPatterns(context, Array.isArray(test2) ? test2 : [test2], dirname4, configName);
|
|
5508
5508
|
}
|
|
5509
5509
|
function ignoreListReplacer(_key, value2) {
|
|
5510
5510
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5511
5511
|
}
|
|
5512
|
-
function shouldIgnore(context, ignore, only,
|
|
5513
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
5512
|
+
function shouldIgnore(context, ignore, only, dirname4) {
|
|
5513
|
+
if (ignore && matchesPatterns(context, ignore, dirname4)) {
|
|
5514
5514
|
var _context$filename;
|
|
5515
|
-
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 "${
|
|
5515
|
+
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}"`;
|
|
5516
5516
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5517
5517
|
}
|
|
5518
|
-
if (only && !matchesPatterns(context, only,
|
|
5518
|
+
if (only && !matchesPatterns(context, only, dirname4)) {
|
|
5519
5519
|
var _context$filename2;
|
|
5520
|
-
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 "${
|
|
5520
|
+
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}"`;
|
|
5521
5521
|
return debug2(message), context.showConfig && console.log(message), true;
|
|
5522
5522
|
}
|
|
5523
5523
|
return false;
|
|
5524
5524
|
}
|
|
5525
|
-
function matchesPatterns(context, patterns,
|
|
5526
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
5525
|
+
function matchesPatterns(context, patterns, dirname4, configName) {
|
|
5526
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname4, context.filename, context, configName));
|
|
5527
5527
|
}
|
|
5528
|
-
function matchPattern(pattern,
|
|
5529
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
5528
|
+
function matchPattern(pattern, dirname4, pathToTest, context, configName) {
|
|
5529
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname4, envName: context.envName, caller: context.caller });
|
|
5530
5530
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
5531
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
5531
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname4)), pattern.test(pathToTest);
|
|
5532
5532
|
}
|
|
5533
5533
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
5534
5534
|
"use strict";
|
|
@@ -5538,28 +5538,28 @@ File already loaded following the config chain:
|
|
|
5538
5538
|
return data2;
|
|
5539
5539
|
}, data2;
|
|
5540
5540
|
}
|
|
5541
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(
|
|
5541
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(dirname4, options, alias) {
|
|
5542
5542
|
const { plugins, presets, passPerPreset } = options;
|
|
5543
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5544
|
-
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(
|
|
5545
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5543
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname4)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname4)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
5544
|
+
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(dirname4, options, alias) {
|
|
5545
|
+
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)) };
|
|
5546
5546
|
};
|
|
5547
5547
|
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");
|
|
5548
5548
|
function* handlerOf(value2) {
|
|
5549
5549
|
return value2;
|
|
5550
5550
|
}
|
|
5551
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
5552
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
5551
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname4) {
|
|
5552
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname4)), options;
|
|
5553
5553
|
}
|
|
5554
5554
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5555
|
-
const
|
|
5555
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5556
5556
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
5557
|
-
return (yield* createPresetDescriptors(items,
|
|
5557
|
+
return (yield* createPresetDescriptors(items, dirname4, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
5558
5558
|
}));
|
|
5559
5559
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5560
|
-
const
|
|
5560
|
+
const dirname4 = cache2.using((dir) => dir);
|
|
5561
5561
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
5562
|
-
return (yield* createPluginDescriptors(items,
|
|
5562
|
+
return (yield* createPluginDescriptors(items, dirname4, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
5563
5563
|
});
|
|
5564
5564
|
}), DEFAULT_OPTIONS = {};
|
|
5565
5565
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -5578,14 +5578,14 @@ File already loaded following the config chain:
|
|
|
5578
5578
|
}
|
|
5579
5579
|
return desc;
|
|
5580
5580
|
}
|
|
5581
|
-
function* createPresetDescriptors(items,
|
|
5582
|
-
return yield* createDescriptors("preset", items,
|
|
5581
|
+
function* createPresetDescriptors(items, dirname4, alias, passPerPreset) {
|
|
5582
|
+
return yield* createDescriptors("preset", items, dirname4, alias, passPerPreset);
|
|
5583
5583
|
}
|
|
5584
|
-
function* createPluginDescriptors(items,
|
|
5585
|
-
return yield* createDescriptors("plugin", items,
|
|
5584
|
+
function* createPluginDescriptors(items, dirname4, alias) {
|
|
5585
|
+
return yield* createDescriptors("plugin", items, dirname4, alias);
|
|
5586
5586
|
}
|
|
5587
|
-
function* createDescriptors(type, items,
|
|
5588
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
5587
|
+
function* createDescriptors(type, items, dirname4, alias, ownPass) {
|
|
5588
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname4, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
5589
5589
|
return function(items2) {
|
|
5590
5590
|
const map = /* @__PURE__ */ new Map();
|
|
5591
5591
|
for (const item of items2) {
|
|
@@ -5599,7 +5599,7 @@ File already loaded following the config chain:
|
|
|
5599
5599
|
}
|
|
5600
5600
|
}(descriptors2), descriptors2;
|
|
5601
5601
|
}
|
|
5602
|
-
function* createDescriptor(pair,
|
|
5602
|
+
function* createDescriptor(pair, dirname4, { type, alias, ownPass }) {
|
|
5603
5603
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
5604
5604
|
if (desc) return desc;
|
|
5605
5605
|
let name, options, file, value2 = pair;
|
|
@@ -5608,7 +5608,7 @@ File already loaded following the config chain:
|
|
|
5608
5608
|
if ("string" == typeof value2) {
|
|
5609
5609
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
5610
5610
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
5611
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
5611
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname4)), file = { request, resolved: filepath };
|
|
5612
5612
|
}
|
|
5613
5613
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
5614
5614
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -5617,7 +5617,7 @@ File already loaded following the config chain:
|
|
|
5617
5617
|
}
|
|
5618
5618
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
5619
5619
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
5620
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
5620
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname4, ownPass, file };
|
|
5621
5621
|
}
|
|
5622
5622
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
5623
5623
|
"use strict";
|
|
@@ -5652,41 +5652,41 @@ File already loaded following the config chain:
|
|
|
5652
5652
|
}, data2;
|
|
5653
5653
|
}
|
|
5654
5654
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.ROOT_CONFIG_FILENAMES = void 0, exports3.findConfigUpwards = function(rootDir) {
|
|
5655
|
-
let
|
|
5655
|
+
let dirname4 = rootDir;
|
|
5656
5656
|
for (; ; ) {
|
|
5657
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
5658
|
-
const nextDir = _path().dirname(
|
|
5659
|
-
if (
|
|
5660
|
-
|
|
5657
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname4, filename))) return dirname4;
|
|
5658
|
+
const nextDir = _path().dirname(dirname4);
|
|
5659
|
+
if (dirname4 === nextDir) break;
|
|
5660
|
+
dirname4 = nextDir;
|
|
5661
5661
|
}
|
|
5662
5662
|
return null;
|
|
5663
5663
|
}, exports3.findRelativeConfig = function* (packageData, envName, caller) {
|
|
5664
5664
|
let config = null, ignore = null;
|
|
5665
|
-
const
|
|
5665
|
+
const dirname4 = _path().dirname(packageData.filepath);
|
|
5666
5666
|
for (const loc of packageData.directories) {
|
|
5667
5667
|
var _packageData$pkg;
|
|
5668
5668
|
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);
|
|
5669
5669
|
if (!ignore) {
|
|
5670
5670
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
5671
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath,
|
|
5671
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug2("Found ignore %o from %o.", ignore.filepath, dirname4);
|
|
5672
5672
|
}
|
|
5673
5673
|
}
|
|
5674
5674
|
return { config, ignore };
|
|
5675
|
-
}, exports3.findRootConfig = function(
|
|
5676
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
5677
|
-
}, exports3.loadConfig = function* (name,
|
|
5675
|
+
}, exports3.findRootConfig = function(dirname4, envName, caller) {
|
|
5676
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname4, envName, caller);
|
|
5677
|
+
}, exports3.loadConfig = function* (name, dirname4, envName, caller) {
|
|
5678
5678
|
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")) => {
|
|
5679
5679
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
5680
5680
|
if (f2) return f2;
|
|
5681
5681
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
5682
|
-
})(name, { paths: [
|
|
5682
|
+
})(name, { paths: [dirname4] }), conf = yield* readConfig(filepath, envName, caller);
|
|
5683
5683
|
var v4, w5;
|
|
5684
5684
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
5685
|
-
return debug2("Loaded config %o from %o.", name,
|
|
5686
|
-
}, exports3.resolveShowConfigPath = function* (
|
|
5685
|
+
return debug2("Loaded config %o from %o.", name, dirname4), conf;
|
|
5686
|
+
}, exports3.resolveShowConfigPath = function* (dirname4) {
|
|
5687
5687
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
5688
5688
|
if (null != targetPath) {
|
|
5689
|
-
const absolutePath = _path().resolve(
|
|
5689
|
+
const absolutePath = _path().resolve(dirname4, targetPath);
|
|
5690
5690
|
if (!(yield* fs2.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
5691
5691
|
return absolutePath;
|
|
5692
5692
|
}
|
|
@@ -5766,15 +5766,15 @@ module.exports = function(api) {
|
|
|
5766
5766
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
5767
5767
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
5768
5768
|
});
|
|
5769
|
-
function* loadOneConfig(names,
|
|
5770
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
5769
|
+
function* loadOneConfig(names, dirname4, envName, caller, previousConfig = null) {
|
|
5770
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname4, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
5771
5771
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
5772
5772
|
- ${_path().basename(previousConfig2.filepath)}
|
|
5773
5773
|
- ${config2.filepath}
|
|
5774
|
-
from ${
|
|
5774
|
+
from ${dirname4}`);
|
|
5775
5775
|
return config2 || previousConfig2;
|
|
5776
5776
|
}, previousConfig);
|
|
5777
|
-
return config && debug2("Found configuration %o from %o.", config.filepath,
|
|
5777
|
+
return config && debug2("Found configuration %o from %o.", config.filepath, dirname4), config;
|
|
5778
5778
|
}
|
|
5779
5779
|
function readConfig(filepath, envName, caller) {
|
|
5780
5780
|
switch (_path().extname(filepath)) {
|
|
@@ -5970,15 +5970,15 @@ packageExtensions:
|
|
|
5970
5970
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.findPackageData = function* (filepath) {
|
|
5971
5971
|
let pkg = null;
|
|
5972
5972
|
const directories = [];
|
|
5973
|
-
let isPackage = true,
|
|
5974
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
5975
|
-
directories.push(
|
|
5976
|
-
const nextLoc = _path().dirname(
|
|
5977
|
-
if (
|
|
5973
|
+
let isPackage = true, dirname4 = _path().dirname(filepath);
|
|
5974
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname4); ) {
|
|
5975
|
+
directories.push(dirname4), pkg = yield* readConfigPackage(_path().join(dirname4, PACKAGE_FILENAME));
|
|
5976
|
+
const nextLoc = _path().dirname(dirname4);
|
|
5977
|
+
if (dirname4 === nextLoc) {
|
|
5978
5978
|
isPackage = false;
|
|
5979
5979
|
break;
|
|
5980
5980
|
}
|
|
5981
|
-
|
|
5981
|
+
dirname4 = nextLoc;
|
|
5982
5982
|
}
|
|
5983
5983
|
return { filepath, directories, pkg, isPackage };
|
|
5984
5984
|
};
|
|
@@ -6009,12 +6009,12 @@ packageExtensions:
|
|
|
6009
6009
|
return data2;
|
|
6010
6010
|
}, data2;
|
|
6011
6011
|
}
|
|
6012
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name,
|
|
6013
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6014
|
-
return debug2("Loaded plugin %o from %o.", name,
|
|
6015
|
-
}, exports3.loadPreset = function* (name,
|
|
6016
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6017
|
-
return debug2("Loaded preset %o from %o.", name,
|
|
6012
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name, dirname4) {
|
|
6013
|
+
const { filepath, loader } = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6014
|
+
return debug2("Loaded plugin %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6015
|
+
}, exports3.loadPreset = function* (name, dirname4) {
|
|
6016
|
+
const { filepath, loader } = resolvePreset(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6017
|
+
return debug2("Loaded preset %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
6018
6018
|
}, exports3.resolvePreset = exports3.resolvePlugin = void 0;
|
|
6019
6019
|
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");
|
|
6020
6020
|
function _url() {
|
|
@@ -6052,13 +6052,13 @@ packageExtensions:
|
|
|
6052
6052
|
}
|
|
6053
6053
|
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;
|
|
6054
6054
|
}
|
|
6055
|
-
function tryRequireResolve(id,
|
|
6055
|
+
function tryRequireResolve(id, dirname4) {
|
|
6056
6056
|
try {
|
|
6057
|
-
return
|
|
6057
|
+
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")) => {
|
|
6058
6058
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6059
6059
|
if (f2) return f2;
|
|
6060
6060
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6061
|
-
})(id, { paths: [
|
|
6061
|
+
})(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) };
|
|
6062
6062
|
} catch (error) {
|
|
6063
6063
|
return { error, value: null };
|
|
6064
6064
|
}
|
|
@@ -6071,26 +6071,26 @@ packageExtensions:
|
|
|
6071
6071
|
return { error, value: null };
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
6074
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6074
|
+
function resolveStandardizedNameForRequire(type, name, dirname4) {
|
|
6075
6075
|
const it = resolveAlternativesHelper(type, name);
|
|
6076
6076
|
let res = it.next();
|
|
6077
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6077
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname4));
|
|
6078
6078
|
return { loader: "require", filepath: res.value };
|
|
6079
6079
|
}
|
|
6080
|
-
function resolveStandardizedName(type, name,
|
|
6081
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6080
|
+
function resolveStandardizedName(type, name, dirname4, allowAsync) {
|
|
6081
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6082
6082
|
try {
|
|
6083
|
-
const resolved = function(type2, name2,
|
|
6084
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6083
|
+
const resolved = function(type2, name2, dirname5) {
|
|
6084
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname5, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6085
6085
|
let res = it.next();
|
|
6086
6086
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6087
6087
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6088
|
-
}(type, name,
|
|
6089
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6088
|
+
}(type, name, dirname4);
|
|
6089
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname4}.`), { type: "MODULE_NOT_FOUND" });
|
|
6090
6090
|
return resolved;
|
|
6091
6091
|
} catch (e2) {
|
|
6092
6092
|
try {
|
|
6093
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6093
|
+
return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
6094
6094
|
} catch (e22) {
|
|
6095
6095
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6096
6096
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6220,7 +6220,7 @@ packageExtensions:
|
|
|
6220
6220
|
}
|
|
6221
6221
|
};
|
|
6222
6222
|
}
|
|
6223
|
-
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6223
|
+
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias }, cache2) {
|
|
6224
6224
|
if (false === options) throw new Error("Assertion failure");
|
|
6225
6225
|
options = options || {};
|
|
6226
6226
|
const externalDependencies = [];
|
|
@@ -6228,7 +6228,7 @@ packageExtensions:
|
|
|
6228
6228
|
if ("function" == typeof value2) {
|
|
6229
6229
|
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));
|
|
6230
6230
|
try {
|
|
6231
|
-
item = yield* factory(api, options,
|
|
6231
|
+
item = yield* factory(api, options, dirname4);
|
|
6232
6232
|
} catch (e2) {
|
|
6233
6233
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6234
6234
|
}
|
|
@@ -6240,11 +6240,11 @@ packageExtensions:
|
|
|
6240
6240
|
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()\`
|
|
6241
6241
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6242
6242
|
}
|
|
6243
|
-
return { value: item, options, dirname:
|
|
6244
|
-
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6243
|
+
return { value: item, options, dirname: dirname4, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6244
|
+
}), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname4, alias, externalDependencies }, cache2) {
|
|
6245
6245
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6246
6246
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6247
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6247
|
+
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)));
|
|
6248
6248
|
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]));
|
|
6249
6249
|
}
|
|
6250
6250
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6267,7 +6267,7 @@ packageExtensions:
|
|
|
6267
6267
|
const { options } = preset;
|
|
6268
6268
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6269
6269
|
}
|
|
6270
|
-
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6270
|
+
}, instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname4, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname4, externalDependencies }));
|
|
6271
6271
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6272
6272
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6273
6273
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6387,8 +6387,8 @@ packageExtensions:
|
|
|
6387
6387
|
return data2;
|
|
6388
6388
|
}, data2;
|
|
6389
6389
|
}
|
|
6390
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname:
|
|
6391
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6390
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname: dirname4 = ".", type } = {}) {
|
|
6391
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname4), { type, alias: "programmatic item" }));
|
|
6392
6392
|
}, exports3.createItemFromDescriptor = createItemFromDescriptor, exports3.getItemDescriptor = function(item) {
|
|
6393
6393
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6394
6394
|
return;
|
|
@@ -6438,7 +6438,7 @@ packageExtensions:
|
|
|
6438
6438
|
const _excluded = ["showIgnoredFiles"];
|
|
6439
6439
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6440
6440
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6441
|
-
const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6441
|
+
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) {
|
|
6442
6442
|
switch (rootMode2) {
|
|
6443
6443
|
case "root":
|
|
6444
6444
|
return rootDir2;
|
|
@@ -6455,7 +6455,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6455
6455
|
default:
|
|
6456
6456
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6457
6457
|
}
|
|
6458
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6458
|
+
}(_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);
|
|
6459
6459
|
if (!configChain) return null;
|
|
6460
6460
|
const merged = { assumptions: {} };
|
|
6461
6461
|
configChain.options.forEach((opts) => {
|
|
@@ -6480,14 +6480,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6480
6480
|
return data2;
|
|
6481
6481
|
}, data2;
|
|
6482
6482
|
}
|
|
6483
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern,
|
|
6484
|
-
const parts = _path().resolve(
|
|
6483
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern, dirname4) {
|
|
6484
|
+
const parts = _path().resolve(dirname4, pattern).split(_path().sep);
|
|
6485
6485
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6486
6486
|
const last = i2 === parts.length - 1;
|
|
6487
|
-
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep :
|
|
6487
|
+
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);
|
|
6488
6488
|
})].join(""));
|
|
6489
6489
|
};
|
|
6490
|
-
const
|
|
6490
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6491
6491
|
function escapeRegExp(string) {
|
|
6492
6492
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6493
6493
|
}
|
|
@@ -7014,12 +7014,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7014
7014
|
if (!result) {
|
|
7015
7015
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7016
7016
|
if (yield* (0, _async.isAsync)()) {
|
|
7017
|
-
let
|
|
7017
|
+
let resolve4, reject;
|
|
7018
7018
|
resultP = new Promise((res, rej) => {
|
|
7019
|
-
|
|
7019
|
+
resolve4 = res, reject = rej;
|
|
7020
7020
|
});
|
|
7021
7021
|
try {
|
|
7022
|
-
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7022
|
+
result = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result.value);
|
|
7023
7023
|
} catch (error) {
|
|
7024
7024
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
7025
7025
|
}
|
|
@@ -7122,8 +7122,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7122
7122
|
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");
|
|
7123
7123
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7124
7124
|
exports3.version = "7.26.0";
|
|
7125
|
-
exports3.resolvePlugin = (name,
|
|
7126
|
-
exports3.resolvePreset = (name,
|
|
7125
|
+
exports3.resolvePlugin = (name, dirname4) => resolvers.resolvePlugin(name, dirname4, false).filepath;
|
|
7126
|
+
exports3.resolvePreset = (name, dirname4) => resolvers.resolvePreset(name, dirname4, false).filepath;
|
|
7127
7127
|
exports3.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7128
7128
|
exports3.OptionManager = class {
|
|
7129
7129
|
init(opts) {
|
|
@@ -7735,7 +7735,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
7735
7735
|
}, data2;
|
|
7736
7736
|
}
|
|
7737
7737
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(config) {
|
|
7738
|
-
const { filename, cwd:
|
|
7738
|
+
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) });
|
|
7739
7739
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
7740
7740
|
return options;
|
|
7741
7741
|
};
|
|
@@ -8047,8 +8047,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8047
8047
|
const packageType = getPackageType2(url);
|
|
8048
8048
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8049
8049
|
}
|
|
8050
|
-
const
|
|
8051
|
-
if (
|
|
8050
|
+
const format4 = extensionFormatMap2[value2];
|
|
8051
|
+
if (format4) return format4;
|
|
8052
8052
|
if (ignoreErrors) return;
|
|
8053
8053
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8054
8054
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9384,11 +9384,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9384
9384
|
function maybePrintTrailingCommaOrSemicolon(printer, node) {
|
|
9385
9385
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9386
9386
|
}
|
|
9387
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9387
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9388
9388
|
var _printer$tokenMap;
|
|
9389
9389
|
let hasLeadingToken = 0;
|
|
9390
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9391
|
-
this.space(), this.token(
|
|
9390
|
+
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) {
|
|
9391
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9392
9392
|
});
|
|
9393
9393
|
}
|
|
9394
9394
|
function tokenIfPlusMinus(self2, tok) {
|
|
@@ -9608,8 +9608,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9608
9608
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": (__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
9609
9609
|
"use strict";
|
|
9610
9610
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(ast, opts = {}, code) {
|
|
9611
|
-
const
|
|
9612
|
-
return new _printer.default(
|
|
9611
|
+
const format4 = normalizeOptions(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
9612
|
+
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
9613
9613
|
};
|
|
9614
9614
|
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");
|
|
9615
9615
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -9621,11 +9621,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9621
9621
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
9622
9622
|
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.");
|
|
9623
9623
|
}
|
|
9624
|
-
const
|
|
9624
|
+
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 };
|
|
9625
9625
|
var _opts$recordAndTupleS;
|
|
9626
|
-
|
|
9627
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
9628
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
9626
|
+
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);
|
|
9627
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
9628
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
9629
9629
|
}
|
|
9630
9630
|
exports3.CodeGenerator = class {
|
|
9631
9631
|
constructor(ast, opts = {}, code) {
|
|
@@ -9881,8 +9881,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9881
9881
|
}
|
|
9882
9882
|
const { needsParens } = n;
|
|
9883
9883
|
class Printer {
|
|
9884
|
-
constructor(
|
|
9885
|
-
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 =
|
|
9884
|
+
constructor(format4, map, tokens, originalCode) {
|
|
9885
|
+
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]);
|
|
9886
9886
|
}
|
|
9887
9887
|
enterForStatementInit() {
|
|
9888
9888
|
return this.inForStatementInit ? () => {
|
|
@@ -9901,12 +9901,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9901
9901
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
9902
9902
|
}
|
|
9903
9903
|
indent() {
|
|
9904
|
-
const { format:
|
|
9905
|
-
|
|
9904
|
+
const { format: format4 } = this;
|
|
9905
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
9906
9906
|
}
|
|
9907
9907
|
dedent() {
|
|
9908
|
-
const { format:
|
|
9909
|
-
|
|
9908
|
+
const { format: format4 } = this;
|
|
9909
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
9910
9910
|
}
|
|
9911
9911
|
semicolon(force = false) {
|
|
9912
9912
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -9927,8 +9927,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9927
9927
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
9928
9928
|
}
|
|
9929
9929
|
space(force = false) {
|
|
9930
|
-
const { format:
|
|
9931
|
-
if (!
|
|
9930
|
+
const { format: format4 } = this;
|
|
9931
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
9932
9932
|
if (force) this._space();
|
|
9933
9933
|
else if (this._buf.hasContent()) {
|
|
9934
9934
|
const lastCp = this.getLastChar();
|
|
@@ -10027,8 +10027,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10027
10027
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10028
10028
|
}
|
|
10029
10029
|
_catchUp(prop, loc) {
|
|
10030
|
-
const { format:
|
|
10031
|
-
if (!
|
|
10030
|
+
const { format: format4 } = this;
|
|
10031
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10032
10032
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10033
10033
|
null != pos && this._catchUpTo(pos);
|
|
10034
10034
|
}
|
|
@@ -10052,8 +10052,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10052
10052
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10053
10053
|
if (!node) return;
|
|
10054
10054
|
this._endsWithInnerRaw = false;
|
|
10055
|
-
const nodeType = node.type,
|
|
10056
|
-
node._compact && (
|
|
10055
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10056
|
+
node._compact && (format4.concise = true);
|
|
10057
10057
|
const printMethod = this[nodeType];
|
|
10058
10058
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10059
10059
|
const parent = this._currentNode;
|
|
@@ -10061,7 +10061,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10061
10061
|
const oldInAux = this._insideAux;
|
|
10062
10062
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10063
10063
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10064
|
-
let shouldPrintParens = parenthesized &&
|
|
10064
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10065
10065
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10066
10066
|
switch (null == parent ? void 0 : parent.type) {
|
|
10067
10067
|
case "ExpressionStatement":
|
|
@@ -10082,7 +10082,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10082
10082
|
(!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)));
|
|
10083
10083
|
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);
|
|
10084
10084
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10085
|
-
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,
|
|
10085
|
+
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;
|
|
10086
10086
|
}
|
|
10087
10087
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10088
10088
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10168,9 +10168,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10168
10168
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10169
10169
|
}
|
|
10170
10170
|
_printNewline(newLine, opts) {
|
|
10171
|
-
const
|
|
10172
|
-
if (
|
|
10173
|
-
if (
|
|
10171
|
+
const format4 = this.format;
|
|
10172
|
+
if (format4.retainLines || format4.compact) return;
|
|
10173
|
+
if (format4.concise) return void this.space();
|
|
10174
10174
|
if (!newLine) return;
|
|
10175
10175
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10176
10176
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -12655,13 +12655,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
12655
12655
|
}(range, api.version);
|
|
12656
12656
|
} };
|
|
12657
12657
|
function declare(builder) {
|
|
12658
|
-
return (api, options,
|
|
12658
|
+
return (api, options, dirname4) => {
|
|
12659
12659
|
var _clonedApi2;
|
|
12660
12660
|
let clonedApi;
|
|
12661
12661
|
for (const name of Object.keys(apiPolyfills)) {
|
|
12662
12662
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
12663
12663
|
}
|
|
12664
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
12664
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname4);
|
|
12665
12665
|
};
|
|
12666
12666
|
}
|
|
12667
12667
|
Object.assign(apiPolyfills, { targets: () => () => ({}), assumption: () => () => {
|
|
@@ -15871,9 +15871,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
15871
15871
|
var _node$extra;
|
|
15872
15872
|
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();
|
|
15873
15873
|
}
|
|
15874
|
-
forwardNoArrowParamsConversionAt(node,
|
|
15874
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
15875
15875
|
let result;
|
|
15876
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result =
|
|
15876
|
+
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;
|
|
15877
15877
|
}
|
|
15878
15878
|
parseParenItem(node, startLoc) {
|
|
15879
15879
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23081,8 +23081,8 @@ ${str}
|
|
|
23081
23081
|
}
|
|
23082
23082
|
}
|
|
23083
23083
|
dump() {
|
|
23084
|
-
const
|
|
23085
|
-
console.log(
|
|
23084
|
+
const sep3 = "-".repeat(60);
|
|
23085
|
+
console.log(sep3);
|
|
23086
23086
|
let scope = this;
|
|
23087
23087
|
do {
|
|
23088
23088
|
console.log("#", scope.block.type);
|
|
@@ -23091,7 +23091,7 @@ ${str}
|
|
|
23091
23091
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23092
23092
|
}
|
|
23093
23093
|
} while (scope = scope.parent);
|
|
23094
|
-
console.log(
|
|
23094
|
+
console.log(sep3);
|
|
23095
23095
|
}
|
|
23096
23096
|
hasLabel(name) {
|
|
23097
23097
|
return !!this.getLabel(name);
|
|
@@ -29305,16 +29305,16 @@ ${trace}`);
|
|
|
29305
29305
|
} } };
|
|
29306
29306
|
}
|
|
29307
29307
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
29308
|
-
const
|
|
29309
|
-
function
|
|
29310
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
29308
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
29309
|
+
function normalizeWindowsPath3(input = "") {
|
|
29310
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
29311
29311
|
}
|
|
29312
|
-
const
|
|
29312
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
29313
29313
|
const pathe_ff20891b_isAbsolute = function(p2) {
|
|
29314
|
-
return
|
|
29314
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
29315
29315
|
}, pathe_ff20891b_dirname = function(p2) {
|
|
29316
|
-
const segments =
|
|
29317
|
-
return 1 === segments.length &&
|
|
29316
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
29317
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
29318
29318
|
};
|
|
29319
29319
|
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]");
|
|
29320
29320
|
function isInAstralSet2(code, set2) {
|
|
@@ -37149,6 +37149,174 @@ var init_dist2 = __esm({
|
|
|
37149
37149
|
}
|
|
37150
37150
|
});
|
|
37151
37151
|
|
|
37152
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
37153
|
+
function normalizeWindowsPath2(input = "") {
|
|
37154
|
+
if (!input) {
|
|
37155
|
+
return input;
|
|
37156
|
+
}
|
|
37157
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
37158
|
+
}
|
|
37159
|
+
function cwd2() {
|
|
37160
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
37161
|
+
return process.cwd().replace(/\\/g, "/");
|
|
37162
|
+
}
|
|
37163
|
+
return "/";
|
|
37164
|
+
}
|
|
37165
|
+
function normalizeString2(path5, allowAboveRoot) {
|
|
37166
|
+
let res = "";
|
|
37167
|
+
let lastSegmentLength = 0;
|
|
37168
|
+
let lastSlash = -1;
|
|
37169
|
+
let dots = 0;
|
|
37170
|
+
let char = null;
|
|
37171
|
+
for (let index = 0; index <= path5.length; ++index) {
|
|
37172
|
+
if (index < path5.length) {
|
|
37173
|
+
char = path5[index];
|
|
37174
|
+
} else if (char === "/") {
|
|
37175
|
+
break;
|
|
37176
|
+
} else {
|
|
37177
|
+
char = "/";
|
|
37178
|
+
}
|
|
37179
|
+
if (char === "/") {
|
|
37180
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
37181
|
+
else if (dots === 2) {
|
|
37182
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
37183
|
+
if (res.length > 2) {
|
|
37184
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
37185
|
+
if (lastSlashIndex === -1) {
|
|
37186
|
+
res = "";
|
|
37187
|
+
lastSegmentLength = 0;
|
|
37188
|
+
} else {
|
|
37189
|
+
res = res.slice(0, lastSlashIndex);
|
|
37190
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
37191
|
+
}
|
|
37192
|
+
lastSlash = index;
|
|
37193
|
+
dots = 0;
|
|
37194
|
+
continue;
|
|
37195
|
+
} else if (res.length > 0) {
|
|
37196
|
+
res = "";
|
|
37197
|
+
lastSegmentLength = 0;
|
|
37198
|
+
lastSlash = index;
|
|
37199
|
+
dots = 0;
|
|
37200
|
+
continue;
|
|
37201
|
+
}
|
|
37202
|
+
}
|
|
37203
|
+
if (allowAboveRoot) {
|
|
37204
|
+
res += res.length > 0 ? "/.." : "..";
|
|
37205
|
+
lastSegmentLength = 2;
|
|
37206
|
+
}
|
|
37207
|
+
} else {
|
|
37208
|
+
if (res.length > 0) {
|
|
37209
|
+
res += `/${path5.slice(lastSlash + 1, index)}`;
|
|
37210
|
+
} else {
|
|
37211
|
+
res = path5.slice(lastSlash + 1, index);
|
|
37212
|
+
}
|
|
37213
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
37214
|
+
}
|
|
37215
|
+
lastSlash = index;
|
|
37216
|
+
dots = 0;
|
|
37217
|
+
} else if (char === "." && dots !== -1) {
|
|
37218
|
+
++dots;
|
|
37219
|
+
} else {
|
|
37220
|
+
dots = -1;
|
|
37221
|
+
}
|
|
37222
|
+
}
|
|
37223
|
+
return res;
|
|
37224
|
+
}
|
|
37225
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join2, resolve2, isAbsolute2, dirname2;
|
|
37226
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
37227
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
37228
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
37229
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
37230
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
37231
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
37232
|
+
normalize2 = function(path5) {
|
|
37233
|
+
if (path5.length === 0) {
|
|
37234
|
+
return ".";
|
|
37235
|
+
}
|
|
37236
|
+
path5 = normalizeWindowsPath2(path5);
|
|
37237
|
+
const isUNCPath = path5.match(_UNC_REGEX2);
|
|
37238
|
+
const isPathAbsolute = isAbsolute2(path5);
|
|
37239
|
+
const trailingSeparator = path5[path5.length - 1] === "/";
|
|
37240
|
+
path5 = normalizeString2(path5, !isPathAbsolute);
|
|
37241
|
+
if (path5.length === 0) {
|
|
37242
|
+
if (isPathAbsolute) {
|
|
37243
|
+
return "/";
|
|
37244
|
+
}
|
|
37245
|
+
return trailingSeparator ? "./" : ".";
|
|
37246
|
+
}
|
|
37247
|
+
if (trailingSeparator) {
|
|
37248
|
+
path5 += "/";
|
|
37249
|
+
}
|
|
37250
|
+
if (_DRIVE_LETTER_RE2.test(path5)) {
|
|
37251
|
+
path5 += "/";
|
|
37252
|
+
}
|
|
37253
|
+
if (isUNCPath) {
|
|
37254
|
+
if (!isPathAbsolute) {
|
|
37255
|
+
return `//./${path5}`;
|
|
37256
|
+
}
|
|
37257
|
+
return `//${path5}`;
|
|
37258
|
+
}
|
|
37259
|
+
return isPathAbsolute && !isAbsolute2(path5) ? `/${path5}` : path5;
|
|
37260
|
+
};
|
|
37261
|
+
join2 = function(...segments) {
|
|
37262
|
+
let path5 = "";
|
|
37263
|
+
for (const seg of segments) {
|
|
37264
|
+
if (!seg) {
|
|
37265
|
+
continue;
|
|
37266
|
+
}
|
|
37267
|
+
if (path5.length > 0) {
|
|
37268
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
37269
|
+
const segLeading = seg[0] === "/";
|
|
37270
|
+
const both = pathTrailing && segLeading;
|
|
37271
|
+
if (both) {
|
|
37272
|
+
path5 += seg.slice(1);
|
|
37273
|
+
} else {
|
|
37274
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
37275
|
+
}
|
|
37276
|
+
} else {
|
|
37277
|
+
path5 += seg;
|
|
37278
|
+
}
|
|
37279
|
+
}
|
|
37280
|
+
return normalize2(path5);
|
|
37281
|
+
};
|
|
37282
|
+
resolve2 = function(...arguments_) {
|
|
37283
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
37284
|
+
let resolvedPath = "";
|
|
37285
|
+
let resolvedAbsolute = false;
|
|
37286
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
37287
|
+
const path5 = index >= 0 ? arguments_[index] : cwd2();
|
|
37288
|
+
if (!path5 || path5.length === 0) {
|
|
37289
|
+
continue;
|
|
37290
|
+
}
|
|
37291
|
+
resolvedPath = `${path5}/${resolvedPath}`;
|
|
37292
|
+
resolvedAbsolute = isAbsolute2(path5);
|
|
37293
|
+
}
|
|
37294
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
37295
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
37296
|
+
return `/${resolvedPath}`;
|
|
37297
|
+
}
|
|
37298
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
37299
|
+
};
|
|
37300
|
+
isAbsolute2 = function(p2) {
|
|
37301
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
37302
|
+
};
|
|
37303
|
+
dirname2 = function(p2) {
|
|
37304
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
37305
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
37306
|
+
segments[0] += "/";
|
|
37307
|
+
}
|
|
37308
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
37309
|
+
};
|
|
37310
|
+
}
|
|
37311
|
+
});
|
|
37312
|
+
|
|
37313
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
37314
|
+
var init_dist3 = __esm({
|
|
37315
|
+
"node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
37316
|
+
init_pathe_BLwDEnA5();
|
|
37317
|
+
}
|
|
37318
|
+
});
|
|
37319
|
+
|
|
37152
37320
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
37153
37321
|
function g(e2, t2) {
|
|
37154
37322
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -39782,17 +39950,17 @@ ${f2}`, i2);
|
|
|
39782
39950
|
});
|
|
39783
39951
|
|
|
39784
39952
|
// node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
39785
|
-
var
|
|
39953
|
+
var init_dist4 = __esm({
|
|
39786
39954
|
"node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
39787
39955
|
init_confbox_f9f03f05();
|
|
39788
39956
|
}
|
|
39789
39957
|
});
|
|
39790
39958
|
|
|
39791
|
-
// node_modules/.pnpm/pkg-types@1.3.
|
|
39959
|
+
// node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
39792
39960
|
async function findFile(filename, _options = {}) {
|
|
39793
39961
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
39794
39962
|
const options = { ...defaultFindOptions, ..._options };
|
|
39795
|
-
const basePath =
|
|
39963
|
+
const basePath = resolve2(options.startingFrom);
|
|
39796
39964
|
const leadingSlash = basePath[0] === "/";
|
|
39797
39965
|
const segments = basePath.split("/").filter(Boolean);
|
|
39798
39966
|
if (leadingSlash) {
|
|
@@ -39805,7 +39973,7 @@ async function findFile(filename, _options = {}) {
|
|
|
39805
39973
|
if (options.reverse) {
|
|
39806
39974
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
39807
39975
|
for (const filename2 of filenames) {
|
|
39808
|
-
const filePath =
|
|
39976
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
39809
39977
|
if (await options.test(filePath)) {
|
|
39810
39978
|
return filePath;
|
|
39811
39979
|
}
|
|
@@ -39814,7 +39982,7 @@ async function findFile(filename, _options = {}) {
|
|
|
39814
39982
|
} else {
|
|
39815
39983
|
for (let index = segments.length; index > root; index--) {
|
|
39816
39984
|
for (const filename2 of filenames) {
|
|
39817
|
-
const filePath =
|
|
39985
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
39818
39986
|
if (await options.test(filePath)) {
|
|
39819
39987
|
return filePath;
|
|
39820
39988
|
}
|
|
@@ -39845,14 +40013,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
39845
40013
|
return parsed;
|
|
39846
40014
|
}
|
|
39847
40015
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
39848
|
-
const resolvedPath =
|
|
40016
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
39849
40017
|
return findNearestFile("package.json", {
|
|
39850
40018
|
startingFrom: resolvedPath,
|
|
39851
40019
|
...options
|
|
39852
40020
|
});
|
|
39853
40021
|
}
|
|
39854
40022
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
39855
|
-
const resolvedPath =
|
|
40023
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
39856
40024
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
39857
40025
|
try {
|
|
39858
40026
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -39861,11 +40029,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
39861
40029
|
throw new Error("No lockfile found from " + id);
|
|
39862
40030
|
}
|
|
39863
40031
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
39864
|
-
const resolvedPath =
|
|
40032
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
39865
40033
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
39866
40034
|
try {
|
|
39867
40035
|
const r4 = await findNearestFile(".git/config", _options);
|
|
39868
|
-
return
|
|
40036
|
+
return resolve2(r4, "../..");
|
|
39869
40037
|
} catch {
|
|
39870
40038
|
}
|
|
39871
40039
|
try {
|
|
@@ -39873,23 +40041,23 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
39873
40041
|
..._options,
|
|
39874
40042
|
reverse: true
|
|
39875
40043
|
});
|
|
39876
|
-
return
|
|
40044
|
+
return dirname2(r4);
|
|
39877
40045
|
} catch {
|
|
39878
40046
|
}
|
|
39879
40047
|
try {
|
|
39880
40048
|
const r4 = await findFile(resolvedPath, _options);
|
|
39881
|
-
return
|
|
40049
|
+
return dirname2(r4);
|
|
39882
40050
|
} catch {
|
|
39883
40051
|
}
|
|
39884
40052
|
throw new Error("Cannot detect workspace root from " + id);
|
|
39885
40053
|
}
|
|
39886
40054
|
var import_node_fs, defaultFindOptions, FileCache, lockFiles;
|
|
39887
|
-
var
|
|
39888
|
-
"node_modules/.pnpm/pkg-types@1.3.
|
|
40055
|
+
var init_dist5 = __esm({
|
|
40056
|
+
"node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
39889
40057
|
import_node_fs = require("node:fs");
|
|
39890
|
-
init_dist();
|
|
39891
|
-
init_dist5();
|
|
39892
40058
|
init_dist3();
|
|
40059
|
+
init_dist6();
|
|
40060
|
+
init_dist4();
|
|
39893
40061
|
defaultFindOptions = {
|
|
39894
40062
|
startingFrom: ".",
|
|
39895
40063
|
rootPattern: /^node_modules$/,
|
|
@@ -39909,12 +40077,13 @@ var init_dist4 = __esm({
|
|
|
39909
40077
|
"package-lock.json",
|
|
39910
40078
|
"pnpm-lock.yaml",
|
|
39911
40079
|
"npm-shrinkwrap.json",
|
|
39912
|
-
"bun.lockb"
|
|
40080
|
+
"bun.lockb",
|
|
40081
|
+
"bun.lock"
|
|
39913
40082
|
];
|
|
39914
40083
|
}
|
|
39915
40084
|
});
|
|
39916
40085
|
|
|
39917
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
40086
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
39918
40087
|
function normalizeSlash(path5) {
|
|
39919
40088
|
return path5.replace(/\\/g, "/");
|
|
39920
40089
|
}
|
|
@@ -40121,7 +40290,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
40121
40290
|
) || [null, null, null];
|
|
40122
40291
|
return mimeToFormat(mime);
|
|
40123
40292
|
}
|
|
40124
|
-
function
|
|
40293
|
+
function extname3(url) {
|
|
40125
40294
|
const pathname = url.pathname;
|
|
40126
40295
|
let index = pathname.length;
|
|
40127
40296
|
while (index--) {
|
|
@@ -40136,7 +40305,7 @@ function extname2(url) {
|
|
|
40136
40305
|
return "";
|
|
40137
40306
|
}
|
|
40138
40307
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
40139
|
-
const value2 =
|
|
40308
|
+
const value2 = extname3(url);
|
|
40140
40309
|
if (value2 === ".js") {
|
|
40141
40310
|
const packageType = getPackageType(url);
|
|
40142
40311
|
if (packageType !== "none") {
|
|
@@ -40151,8 +40320,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
40151
40320
|
}
|
|
40152
40321
|
return "module";
|
|
40153
40322
|
}
|
|
40154
|
-
const
|
|
40155
|
-
if (
|
|
40323
|
+
const format4 = extensionFormatMap[value2];
|
|
40324
|
+
if (format4) return format4;
|
|
40156
40325
|
if (ignoreErrors) {
|
|
40157
40326
|
return void 0;
|
|
40158
40327
|
}
|
|
@@ -40184,8 +40353,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
40184
40353
|
if (import_node_process.default.noDeprecation) {
|
|
40185
40354
|
return;
|
|
40186
40355
|
}
|
|
40187
|
-
const
|
|
40188
|
-
if (
|
|
40356
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
40357
|
+
if (format4 !== "module") return;
|
|
40189
40358
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
40190
40359
|
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
40191
40360
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
@@ -40302,7 +40471,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
40302
40471
|
error.url = String(resolved);
|
|
40303
40472
|
throw error;
|
|
40304
40473
|
}
|
|
40305
|
-
|
|
40474
|
+
{
|
|
40306
40475
|
const real = (0, import_node_fs2.realpathSync)(filePath);
|
|
40307
40476
|
const { search, hash: hash2 } = resolved;
|
|
40308
40477
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -40849,7 +41018,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
40849
41018
|
if (resolved.protocol !== "file:") {
|
|
40850
41019
|
return resolved;
|
|
40851
41020
|
}
|
|
40852
|
-
return finalizeResolution(resolved, base
|
|
41021
|
+
return finalizeResolution(resolved, base);
|
|
40853
41022
|
}
|
|
40854
41023
|
function fileURLToPath(id) {
|
|
40855
41024
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -40898,7 +41067,7 @@ function _resolve(id, options = {}) {
|
|
|
40898
41067
|
if (id.startsWith("file://")) {
|
|
40899
41068
|
id = fileURLToPath(id);
|
|
40900
41069
|
}
|
|
40901
|
-
if (
|
|
41070
|
+
if (isAbsolute2(id)) {
|
|
40902
41071
|
try {
|
|
40903
41072
|
const stat = (0, import_node_fs2.statSync)(id);
|
|
40904
41073
|
if (stat.isFile()) {
|
|
@@ -40975,13 +41144,13 @@ function resolvePath(id, options) {
|
|
|
40975
41144
|
}
|
|
40976
41145
|
}
|
|
40977
41146
|
var import_node_module2, import_node_fs2, import_node_url, import_node_assert, import_node_process, import_node_path, import_node_v8, import_node_util, 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;
|
|
40978
|
-
var
|
|
40979
|
-
"node_modules/.pnpm/mlly@1.7.
|
|
41147
|
+
var init_dist6 = __esm({
|
|
41148
|
+
"node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
40980
41149
|
init_acorn();
|
|
40981
41150
|
import_node_module2 = require("node:module");
|
|
40982
41151
|
import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
40983
41152
|
init_dist2();
|
|
40984
|
-
|
|
41153
|
+
init_dist3();
|
|
40985
41154
|
import_node_url = require("node:url");
|
|
40986
41155
|
import_node_assert = __toESM(require("node:assert"), 1);
|
|
40987
41156
|
import_node_process = __toESM(require("node:process"), 1);
|
|
@@ -41354,7 +41523,7 @@ var require_main = __commonJS({
|
|
|
41354
41523
|
var packageJson = require_package();
|
|
41355
41524
|
var version3 = packageJson.version;
|
|
41356
41525
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
41357
|
-
function
|
|
41526
|
+
function parse8(src) {
|
|
41358
41527
|
const obj = {};
|
|
41359
41528
|
let lines = src.toString();
|
|
41360
41529
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -41597,7 +41766,7 @@ var require_main = __commonJS({
|
|
|
41597
41766
|
_parseVault,
|
|
41598
41767
|
config,
|
|
41599
41768
|
decrypt,
|
|
41600
|
-
parse:
|
|
41769
|
+
parse: parse8,
|
|
41601
41770
|
populate
|
|
41602
41771
|
};
|
|
41603
41772
|
module2.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -42081,10 +42250,10 @@ var require_minipass = __commonJS({
|
|
|
42081
42250
|
}
|
|
42082
42251
|
// stream.promise().then(() => done, er => emitted error)
|
|
42083
42252
|
promise() {
|
|
42084
|
-
return new Promise((
|
|
42253
|
+
return new Promise((resolve4, reject) => {
|
|
42085
42254
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
42086
42255
|
this.on("error", (er2) => reject(er2));
|
|
42087
|
-
this.on("end", () =>
|
|
42256
|
+
this.on("end", () => resolve4());
|
|
42088
42257
|
});
|
|
42089
42258
|
}
|
|
42090
42259
|
// for await (let chunk of stream)
|
|
@@ -42100,7 +42269,7 @@ var require_minipass = __commonJS({
|
|
|
42100
42269
|
const res = this.read();
|
|
42101
42270
|
if (res !== null) return Promise.resolve({ done: false, value: res });
|
|
42102
42271
|
if (this[EOF]) return stop();
|
|
42103
|
-
let
|
|
42272
|
+
let resolve4 = null;
|
|
42104
42273
|
let reject = null;
|
|
42105
42274
|
const onerr = (er2) => {
|
|
42106
42275
|
this.removeListener("data", ondata);
|
|
@@ -42114,19 +42283,19 @@ var require_minipass = __commonJS({
|
|
|
42114
42283
|
this.removeListener("end", onend);
|
|
42115
42284
|
this.removeListener(DESTROYED, ondestroy);
|
|
42116
42285
|
this.pause();
|
|
42117
|
-
|
|
42286
|
+
resolve4({ value: value2, done: !!this[EOF] });
|
|
42118
42287
|
};
|
|
42119
42288
|
const onend = () => {
|
|
42120
42289
|
this.removeListener("error", onerr);
|
|
42121
42290
|
this.removeListener("data", ondata);
|
|
42122
42291
|
this.removeListener(DESTROYED, ondestroy);
|
|
42123
42292
|
stop();
|
|
42124
|
-
|
|
42293
|
+
resolve4({ done: true });
|
|
42125
42294
|
};
|
|
42126
42295
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
42127
42296
|
return new Promise((res2, rej) => {
|
|
42128
42297
|
reject = rej;
|
|
42129
|
-
|
|
42298
|
+
resolve4 = res2;
|
|
42130
42299
|
this.once(DESTROYED, ondestroy);
|
|
42131
42300
|
this.once("error", onerr);
|
|
42132
42301
|
this.once("end", onend);
|
|
@@ -42754,10 +42923,10 @@ var require_minipass2 = __commonJS({
|
|
|
42754
42923
|
}
|
|
42755
42924
|
// stream.promise().then(() => done, er => emitted error)
|
|
42756
42925
|
promise() {
|
|
42757
|
-
return new Promise((
|
|
42926
|
+
return new Promise((resolve4, reject) => {
|
|
42758
42927
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
42759
42928
|
this.on("error", (er2) => reject(er2));
|
|
42760
|
-
this.on("end", () =>
|
|
42929
|
+
this.on("end", () => resolve4());
|
|
42761
42930
|
});
|
|
42762
42931
|
}
|
|
42763
42932
|
// for await (let chunk of stream)
|
|
@@ -42768,7 +42937,7 @@ var require_minipass2 = __commonJS({
|
|
|
42768
42937
|
return Promise.resolve({ done: false, value: res });
|
|
42769
42938
|
if (this[EOF])
|
|
42770
42939
|
return Promise.resolve({ done: true });
|
|
42771
|
-
let
|
|
42940
|
+
let resolve4 = null;
|
|
42772
42941
|
let reject = null;
|
|
42773
42942
|
const onerr = (er2) => {
|
|
42774
42943
|
this.removeListener("data", ondata);
|
|
@@ -42779,17 +42948,17 @@ var require_minipass2 = __commonJS({
|
|
|
42779
42948
|
this.removeListener("error", onerr);
|
|
42780
42949
|
this.removeListener("end", onend);
|
|
42781
42950
|
this.pause();
|
|
42782
|
-
|
|
42951
|
+
resolve4({ value: value2, done: !!this[EOF] });
|
|
42783
42952
|
};
|
|
42784
42953
|
const onend = () => {
|
|
42785
42954
|
this.removeListener("error", onerr);
|
|
42786
42955
|
this.removeListener("data", ondata);
|
|
42787
|
-
|
|
42956
|
+
resolve4({ done: true });
|
|
42788
42957
|
};
|
|
42789
42958
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
42790
42959
|
return new Promise((res2, rej) => {
|
|
42791
42960
|
reject = rej;
|
|
42792
|
-
|
|
42961
|
+
resolve4 = res2;
|
|
42793
42962
|
this.once(DESTROYED, ondestroy);
|
|
42794
42963
|
this.once("error", onerr);
|
|
42795
42964
|
this.once("end", onend);
|
|
@@ -43287,7 +43456,7 @@ var require_large_numbers = __commonJS({
|
|
|
43287
43456
|
}
|
|
43288
43457
|
}
|
|
43289
43458
|
};
|
|
43290
|
-
var
|
|
43459
|
+
var parse8 = (buf) => {
|
|
43291
43460
|
const pre = buf[0];
|
|
43292
43461
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
43293
43462
|
if (value2 === null) {
|
|
@@ -43334,7 +43503,7 @@ var require_large_numbers = __commonJS({
|
|
|
43334
43503
|
var twosComp = (byte) => (255 ^ byte) + 1 & 255;
|
|
43335
43504
|
module2.exports = {
|
|
43336
43505
|
encode,
|
|
43337
|
-
parse:
|
|
43506
|
+
parse: parse8
|
|
43338
43507
|
};
|
|
43339
43508
|
}
|
|
43340
43509
|
});
|
|
@@ -43729,15 +43898,15 @@ var require_winchars = __commonJS({
|
|
|
43729
43898
|
// node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js
|
|
43730
43899
|
var require_strip_absolute_path = __commonJS({
|
|
43731
43900
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
43732
|
-
var { isAbsolute:
|
|
43901
|
+
var { isAbsolute: isAbsolute3, parse: parse8 } = require("path").win32;
|
|
43733
43902
|
module2.exports = (path5) => {
|
|
43734
43903
|
let r4 = "";
|
|
43735
|
-
let parsed =
|
|
43736
|
-
while (
|
|
43904
|
+
let parsed = parse8(path5);
|
|
43905
|
+
while (isAbsolute3(path5) || parsed.root) {
|
|
43737
43906
|
const root = path5.charAt(0) === "/" && path5.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
43738
43907
|
path5 = path5.slice(root.length);
|
|
43739
43908
|
r4 += root;
|
|
43740
|
-
parsed =
|
|
43909
|
+
parsed = parse8(path5);
|
|
43741
43910
|
}
|
|
43742
43911
|
return [r4, path5];
|
|
43743
43912
|
};
|
|
@@ -45876,12 +46045,12 @@ var require_list = __commonJS({
|
|
|
45876
46045
|
}
|
|
45877
46046
|
};
|
|
45878
46047
|
var listFile = (opt, cb) => {
|
|
45879
|
-
const
|
|
46048
|
+
const parse8 = new Parser3(opt);
|
|
45880
46049
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
45881
46050
|
const file = opt.file;
|
|
45882
|
-
const p2 = new Promise((
|
|
45883
|
-
|
|
45884
|
-
|
|
46051
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
46052
|
+
parse8.on("error", reject);
|
|
46053
|
+
parse8.on("end", resolve4);
|
|
45885
46054
|
fs2.stat(file, (er2, stat) => {
|
|
45886
46055
|
if (er2) {
|
|
45887
46056
|
reject(er2);
|
|
@@ -45891,7 +46060,7 @@ var require_list = __commonJS({
|
|
|
45891
46060
|
size: stat.size
|
|
45892
46061
|
});
|
|
45893
46062
|
stream.on("error", reject);
|
|
45894
|
-
stream.pipe(
|
|
46063
|
+
stream.pipe(parse8);
|
|
45895
46064
|
}
|
|
45896
46065
|
});
|
|
45897
46066
|
});
|
|
@@ -46143,7 +46312,7 @@ var require_replace = __commonJS({
|
|
|
46143
46312
|
};
|
|
46144
46313
|
fs2.read(fd, headBuf, 0, 512, position, onread);
|
|
46145
46314
|
};
|
|
46146
|
-
const promise = new Promise((
|
|
46315
|
+
const promise = new Promise((resolve4, reject) => {
|
|
46147
46316
|
p2.on("error", reject);
|
|
46148
46317
|
let flag = "r+";
|
|
46149
46318
|
const onopen = (er2, fd) => {
|
|
@@ -46168,7 +46337,7 @@ var require_replace = __commonJS({
|
|
|
46168
46337
|
});
|
|
46169
46338
|
p2.pipe(stream);
|
|
46170
46339
|
stream.on("error", reject);
|
|
46171
|
-
stream.on("close",
|
|
46340
|
+
stream.on("close", resolve4);
|
|
46172
46341
|
addFilesAsync(p2, files);
|
|
46173
46342
|
});
|
|
46174
46343
|
});
|
|
@@ -46273,7 +46442,7 @@ var require_opts_arg = __commonJS({
|
|
|
46273
46442
|
var require_path_arg = __commonJS({
|
|
46274
46443
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
46275
46444
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
46276
|
-
var { resolve:
|
|
46445
|
+
var { resolve: resolve4, parse: parse8 } = require("path");
|
|
46277
46446
|
var pathArg = (path5) => {
|
|
46278
46447
|
if (/\0/.test(path5)) {
|
|
46279
46448
|
throw Object.assign(
|
|
@@ -46284,10 +46453,10 @@ var require_path_arg = __commonJS({
|
|
|
46284
46453
|
}
|
|
46285
46454
|
);
|
|
46286
46455
|
}
|
|
46287
|
-
path5 =
|
|
46456
|
+
path5 = resolve4(path5);
|
|
46288
46457
|
if (platform === "win32") {
|
|
46289
46458
|
const badWinChars = /[*|"<>?:]/;
|
|
46290
|
-
const { root } =
|
|
46459
|
+
const { root } = parse8(path5);
|
|
46291
46460
|
if (badWinChars.test(path5.substr(root.length))) {
|
|
46292
46461
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
46293
46462
|
path: path5,
|
|
@@ -46304,14 +46473,14 @@ var require_path_arg = __commonJS({
|
|
|
46304
46473
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js
|
|
46305
46474
|
var require_find_made = __commonJS({
|
|
46306
46475
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
46307
|
-
var { dirname:
|
|
46476
|
+
var { dirname: dirname4 } = require("path");
|
|
46308
46477
|
var findMade = (opts, parent, path5 = void 0) => {
|
|
46309
46478
|
if (path5 === parent)
|
|
46310
46479
|
return Promise.resolve();
|
|
46311
46480
|
return opts.statAsync(parent).then(
|
|
46312
46481
|
(st) => st.isDirectory() ? path5 : void 0,
|
|
46313
46482
|
// will fail later
|
|
46314
|
-
(er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
46483
|
+
(er2) => er2.code === "ENOENT" ? findMade(opts, dirname4(parent), parent) : void 0
|
|
46315
46484
|
);
|
|
46316
46485
|
};
|
|
46317
46486
|
var findMadeSync = (opts, parent, path5 = void 0) => {
|
|
@@ -46320,7 +46489,7 @@ var require_find_made = __commonJS({
|
|
|
46320
46489
|
try {
|
|
46321
46490
|
return opts.statSync(parent).isDirectory() ? path5 : void 0;
|
|
46322
46491
|
} catch (er2) {
|
|
46323
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
46492
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname4(parent), parent) : void 0;
|
|
46324
46493
|
}
|
|
46325
46494
|
};
|
|
46326
46495
|
module2.exports = { findMade, findMadeSync };
|
|
@@ -46330,10 +46499,10 @@ var require_find_made = __commonJS({
|
|
|
46330
46499
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js
|
|
46331
46500
|
var require_mkdirp_manual = __commonJS({
|
|
46332
46501
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
46333
|
-
var { dirname:
|
|
46502
|
+
var { dirname: dirname4 } = require("path");
|
|
46334
46503
|
var mkdirpManual = (path5, opts, made) => {
|
|
46335
46504
|
opts.recursive = false;
|
|
46336
|
-
const parent =
|
|
46505
|
+
const parent = dirname4(path5);
|
|
46337
46506
|
if (parent === path5) {
|
|
46338
46507
|
return opts.mkdirAsync(path5, opts).catch((er2) => {
|
|
46339
46508
|
if (er2.code !== "EISDIR")
|
|
@@ -46356,7 +46525,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
46356
46525
|
});
|
|
46357
46526
|
};
|
|
46358
46527
|
var mkdirpManualSync = (path5, opts, made) => {
|
|
46359
|
-
const parent =
|
|
46528
|
+
const parent = dirname4(path5);
|
|
46360
46529
|
opts.recursive = false;
|
|
46361
46530
|
if (parent === path5) {
|
|
46362
46531
|
try {
|
|
@@ -46391,12 +46560,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
46391
46560
|
// node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js
|
|
46392
46561
|
var require_mkdirp_native = __commonJS({
|
|
46393
46562
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
46394
|
-
var { dirname:
|
|
46563
|
+
var { dirname: dirname4 } = require("path");
|
|
46395
46564
|
var { findMade, findMadeSync } = require_find_made();
|
|
46396
46565
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
46397
46566
|
var mkdirpNative = (path5, opts) => {
|
|
46398
46567
|
opts.recursive = true;
|
|
46399
|
-
const parent =
|
|
46568
|
+
const parent = dirname4(path5);
|
|
46400
46569
|
if (parent === path5)
|
|
46401
46570
|
return opts.mkdirAsync(path5, opts);
|
|
46402
46571
|
return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er2) => {
|
|
@@ -46408,7 +46577,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
46408
46577
|
};
|
|
46409
46578
|
var mkdirpNativeSync = (path5, opts) => {
|
|
46410
46579
|
opts.recursive = true;
|
|
46411
|
-
const parent =
|
|
46580
|
+
const parent = dirname4(path5);
|
|
46412
46581
|
if (parent === path5)
|
|
46413
46582
|
return opts.mkdirSync(path5, opts);
|
|
46414
46583
|
const made = findMadeSync(opts, path5);
|
|
@@ -46647,7 +46816,7 @@ var require_mkdir = __commonJS({
|
|
|
46647
46816
|
const preserve = opt.preserve;
|
|
46648
46817
|
const unlink = opt.unlink;
|
|
46649
46818
|
const cache2 = opt.cache;
|
|
46650
|
-
const
|
|
46819
|
+
const cwd3 = normPath(opt.cwd);
|
|
46651
46820
|
const done2 = (er2, created) => {
|
|
46652
46821
|
if (er2) {
|
|
46653
46822
|
cb(er2);
|
|
@@ -46665,41 +46834,41 @@ var require_mkdir = __commonJS({
|
|
|
46665
46834
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
46666
46835
|
return done2();
|
|
46667
46836
|
}
|
|
46668
|
-
if (dir ===
|
|
46837
|
+
if (dir === cwd3) {
|
|
46669
46838
|
return checkCwd(dir, done2);
|
|
46670
46839
|
}
|
|
46671
46840
|
if (preserve) {
|
|
46672
46841
|
return mkdirp(dir, { mode }).then((made) => done2(null, made), done2);
|
|
46673
46842
|
}
|
|
46674
|
-
const sub = normPath(path5.relative(
|
|
46843
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
46675
46844
|
const parts = sub.split("/");
|
|
46676
|
-
mkdir_(
|
|
46845
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done2);
|
|
46677
46846
|
};
|
|
46678
|
-
var mkdir_ = (base, parts, mode, cache2, unlink,
|
|
46847
|
+
var mkdir_ = (base, parts, mode, cache2, unlink, cwd3, created, cb) => {
|
|
46679
46848
|
if (!parts.length) {
|
|
46680
46849
|
return cb(null, created);
|
|
46681
46850
|
}
|
|
46682
46851
|
const p2 = parts.shift();
|
|
46683
46852
|
const part = normPath(path5.resolve(base + "/" + p2));
|
|
46684
46853
|
if (cGet(cache2, part)) {
|
|
46685
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
46854
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
46686
46855
|
}
|
|
46687
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
46856
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
46688
46857
|
};
|
|
46689
|
-
var onmkdir = (part, parts, mode, cache2, unlink,
|
|
46858
|
+
var onmkdir = (part, parts, mode, cache2, unlink, cwd3, created, cb) => (er2) => {
|
|
46690
46859
|
if (er2) {
|
|
46691
46860
|
fs2.lstat(part, (statEr, st) => {
|
|
46692
46861
|
if (statEr) {
|
|
46693
46862
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
46694
46863
|
cb(statEr);
|
|
46695
46864
|
} else if (st.isDirectory()) {
|
|
46696
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
46865
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
46697
46866
|
} else if (unlink) {
|
|
46698
46867
|
fs2.unlink(part, (er3) => {
|
|
46699
46868
|
if (er3) {
|
|
46700
46869
|
return cb(er3);
|
|
46701
46870
|
}
|
|
46702
|
-
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
46871
|
+
fs2.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb));
|
|
46703
46872
|
});
|
|
46704
46873
|
} else if (st.isSymbolicLink()) {
|
|
46705
46874
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -46709,7 +46878,7 @@ var require_mkdir = __commonJS({
|
|
|
46709
46878
|
});
|
|
46710
46879
|
} else {
|
|
46711
46880
|
created = created || part;
|
|
46712
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
46881
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb);
|
|
46713
46882
|
}
|
|
46714
46883
|
};
|
|
46715
46884
|
var checkCwdSync = (dir) => {
|
|
@@ -46736,7 +46905,7 @@ var require_mkdir = __commonJS({
|
|
|
46736
46905
|
const preserve = opt.preserve;
|
|
46737
46906
|
const unlink = opt.unlink;
|
|
46738
46907
|
const cache2 = opt.cache;
|
|
46739
|
-
const
|
|
46908
|
+
const cwd3 = normPath(opt.cwd);
|
|
46740
46909
|
const done2 = (created2) => {
|
|
46741
46910
|
cSet(cache2, dir, true);
|
|
46742
46911
|
if (created2 && doChown) {
|
|
@@ -46749,17 +46918,17 @@ var require_mkdir = __commonJS({
|
|
|
46749
46918
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
46750
46919
|
return done2();
|
|
46751
46920
|
}
|
|
46752
|
-
if (dir ===
|
|
46753
|
-
checkCwdSync(
|
|
46921
|
+
if (dir === cwd3) {
|
|
46922
|
+
checkCwdSync(cwd3);
|
|
46754
46923
|
return done2();
|
|
46755
46924
|
}
|
|
46756
46925
|
if (preserve) {
|
|
46757
46926
|
return done2(mkdirp.sync(dir, mode));
|
|
46758
46927
|
}
|
|
46759
|
-
const sub = normPath(path5.relative(
|
|
46928
|
+
const sub = normPath(path5.relative(cwd3, dir));
|
|
46760
46929
|
const parts = sub.split("/");
|
|
46761
46930
|
let created = null;
|
|
46762
|
-
for (let p2 = parts.shift(), part =
|
|
46931
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
46763
46932
|
part = normPath(path5.resolve(part));
|
|
46764
46933
|
if (cGet(cache2, part)) {
|
|
46765
46934
|
continue;
|
|
@@ -46807,9 +46976,9 @@ var require_normalize_unicode = __commonJS({
|
|
|
46807
46976
|
var require_path_reservations = __commonJS({
|
|
46808
46977
|
"node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports2, module2) {
|
|
46809
46978
|
var assert2 = require("assert");
|
|
46810
|
-
var
|
|
46979
|
+
var normalize3 = require_normalize_unicode();
|
|
46811
46980
|
var stripSlashes = require_strip_trailing_slashes();
|
|
46812
|
-
var { join:
|
|
46981
|
+
var { join: join5 } = require("path");
|
|
46813
46982
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
46814
46983
|
var isWindows = platform === "win32";
|
|
46815
46984
|
module2.exports = () => {
|
|
@@ -46818,7 +46987,7 @@ var require_path_reservations = __commonJS({
|
|
|
46818
46987
|
const getDirs = (path5) => {
|
|
46819
46988
|
const dirs = path5.split("/").slice(0, -1).reduce((set2, path6) => {
|
|
46820
46989
|
if (set2.length) {
|
|
46821
|
-
path6 =
|
|
46990
|
+
path6 = join5(set2[set2.length - 1], path6);
|
|
46822
46991
|
}
|
|
46823
46992
|
set2.push(path6 || "/");
|
|
46824
46993
|
return set2;
|
|
@@ -46886,7 +47055,7 @@ var require_path_reservations = __commonJS({
|
|
|
46886
47055
|
};
|
|
46887
47056
|
const reserve = (paths, fn2) => {
|
|
46888
47057
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
|
|
46889
|
-
return stripSlashes(
|
|
47058
|
+
return stripSlashes(join5(normalize3(p2))).toLowerCase();
|
|
46890
47059
|
});
|
|
46891
47060
|
const dirs = new Set(
|
|
46892
47061
|
paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6))
|
|
@@ -46946,7 +47115,7 @@ var require_unpack = __commonJS({
|
|
|
46946
47115
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
46947
47116
|
var normPath = require_normalize_windows_path();
|
|
46948
47117
|
var stripSlash = require_strip_trailing_slashes();
|
|
46949
|
-
var
|
|
47118
|
+
var normalize3 = require_normalize_unicode();
|
|
46950
47119
|
var ONENTRY = Symbol("onEntry");
|
|
46951
47120
|
var CHECKFS = Symbol("checkFs");
|
|
46952
47121
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -46998,7 +47167,7 @@ var require_unpack = __commonJS({
|
|
|
46998
47167
|
fs2.unlinkSync(name);
|
|
46999
47168
|
};
|
|
47000
47169
|
var uint32 = (a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c;
|
|
47001
|
-
var cacheKeyNormalize = (path6) => stripSlash(normPath(
|
|
47170
|
+
var cacheKeyNormalize = (path6) => stripSlash(normPath(normalize3(path6))).toLowerCase();
|
|
47002
47171
|
var pruneCache = (cache2, abs) => {
|
|
47003
47172
|
abs = cacheKeyNormalize(abs);
|
|
47004
47173
|
for (const path6 of cache2.keys()) {
|
|
@@ -47687,9 +47856,9 @@ var require_extract = __commonJS({
|
|
|
47687
47856
|
const u3 = new Unpack(opt);
|
|
47688
47857
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
47689
47858
|
const file = opt.file;
|
|
47690
|
-
const p2 = new Promise((
|
|
47859
|
+
const p2 = new Promise((resolve4, reject) => {
|
|
47691
47860
|
u3.on("error", reject);
|
|
47692
|
-
u3.on("close",
|
|
47861
|
+
u3.on("close", resolve4);
|
|
47693
47862
|
fs2.stat(file, (er2, stat) => {
|
|
47694
47863
|
if (er2) {
|
|
47695
47864
|
reject(er2);
|
|
@@ -47824,12 +47993,12 @@ var require_isexe = __commonJS({
|
|
|
47824
47993
|
if (typeof Promise !== "function") {
|
|
47825
47994
|
throw new TypeError("callback not provided");
|
|
47826
47995
|
}
|
|
47827
|
-
return new Promise(function(
|
|
47996
|
+
return new Promise(function(resolve4, reject) {
|
|
47828
47997
|
isexe(path5, options || {}, function(er2, is2) {
|
|
47829
47998
|
if (er2) {
|
|
47830
47999
|
reject(er2);
|
|
47831
48000
|
} else {
|
|
47832
|
-
|
|
48001
|
+
resolve4(is2);
|
|
47833
48002
|
}
|
|
47834
48003
|
});
|
|
47835
48004
|
});
|
|
@@ -47895,27 +48064,27 @@ var require_which = __commonJS({
|
|
|
47895
48064
|
opt = {};
|
|
47896
48065
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
47897
48066
|
const found = [];
|
|
47898
|
-
const step = (i2) => new Promise((
|
|
48067
|
+
const step = (i2) => new Promise((resolve4, reject) => {
|
|
47899
48068
|
if (i2 === pathEnv.length)
|
|
47900
|
-
return opt.all && found.length ?
|
|
48069
|
+
return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
47901
48070
|
const ppRaw = pathEnv[i2];
|
|
47902
48071
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
47903
48072
|
const pCmd = path5.join(pathPart, cmd);
|
|
47904
48073
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
47905
|
-
|
|
48074
|
+
resolve4(subStep(p2, i2, 0));
|
|
47906
48075
|
});
|
|
47907
|
-
const subStep = (p2, i2, ii2) => new Promise((
|
|
48076
|
+
const subStep = (p2, i2, ii2) => new Promise((resolve4, reject) => {
|
|
47908
48077
|
if (ii2 === pathExt.length)
|
|
47909
|
-
return
|
|
48078
|
+
return resolve4(step(i2 + 1));
|
|
47910
48079
|
const ext = pathExt[ii2];
|
|
47911
48080
|
isexe(p2 + ext, { pathExt: pathExtExe }, (er2, is2) => {
|
|
47912
48081
|
if (!er2 && is2) {
|
|
47913
48082
|
if (opt.all)
|
|
47914
48083
|
found.push(p2 + ext);
|
|
47915
48084
|
else
|
|
47916
|
-
return
|
|
48085
|
+
return resolve4(p2 + ext);
|
|
47917
48086
|
}
|
|
47918
|
-
return
|
|
48087
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
47919
48088
|
});
|
|
47920
48089
|
});
|
|
47921
48090
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -47980,7 +48149,7 @@ var require_resolveCommand = __commonJS({
|
|
|
47980
48149
|
var getPathKey = require_path_key();
|
|
47981
48150
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
47982
48151
|
const env = parsed.options.env || process.env;
|
|
47983
|
-
const
|
|
48152
|
+
const cwd3 = process.cwd();
|
|
47984
48153
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
47985
48154
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
47986
48155
|
if (shouldSwitchCwd) {
|
|
@@ -47998,7 +48167,7 @@ var require_resolveCommand = __commonJS({
|
|
|
47998
48167
|
} catch (e2) {
|
|
47999
48168
|
} finally {
|
|
48000
48169
|
if (shouldSwitchCwd) {
|
|
48001
|
-
process.chdir(
|
|
48170
|
+
process.chdir(cwd3);
|
|
48002
48171
|
}
|
|
48003
48172
|
}
|
|
48004
48173
|
if (resolved) {
|
|
@@ -48127,7 +48296,7 @@ var require_parse2 = __commonJS({
|
|
|
48127
48296
|
}
|
|
48128
48297
|
return parsed;
|
|
48129
48298
|
}
|
|
48130
|
-
function
|
|
48299
|
+
function parse8(command, args, options) {
|
|
48131
48300
|
if (args && !Array.isArray(args)) {
|
|
48132
48301
|
options = args;
|
|
48133
48302
|
args = null;
|
|
@@ -48146,7 +48315,7 @@ var require_parse2 = __commonJS({
|
|
|
48146
48315
|
};
|
|
48147
48316
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
48148
48317
|
}
|
|
48149
|
-
module2.exports =
|
|
48318
|
+
module2.exports = parse8;
|
|
48150
48319
|
}
|
|
48151
48320
|
});
|
|
48152
48321
|
|
|
@@ -48205,16 +48374,16 @@ var require_cross_spawn = __commonJS({
|
|
|
48205
48374
|
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
48206
48375
|
"use strict";
|
|
48207
48376
|
var cp = require("child_process");
|
|
48208
|
-
var
|
|
48377
|
+
var parse8 = require_parse2();
|
|
48209
48378
|
var enoent = require_enoent();
|
|
48210
48379
|
function spawn(command, args, options) {
|
|
48211
|
-
const parsed =
|
|
48380
|
+
const parsed = parse8(command, args, options);
|
|
48212
48381
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
48213
48382
|
enoent.hookChildProcess(spawned, parsed);
|
|
48214
48383
|
return spawned;
|
|
48215
48384
|
}
|
|
48216
48385
|
function spawnSync2(command, args, options) {
|
|
48217
|
-
const parsed =
|
|
48386
|
+
const parsed = parse8(command, args, options);
|
|
48218
48387
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
48219
48388
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
48220
48389
|
return result;
|
|
@@ -48222,7 +48391,7 @@ var require_cross_spawn = __commonJS({
|
|
|
48222
48391
|
module2.exports = spawn;
|
|
48223
48392
|
module2.exports.spawn = spawn;
|
|
48224
48393
|
module2.exports.sync = spawnSync2;
|
|
48225
|
-
module2.exports._parse =
|
|
48394
|
+
module2.exports._parse = parse8;
|
|
48226
48395
|
module2.exports._enoent = enoent;
|
|
48227
48396
|
}
|
|
48228
48397
|
});
|
|
@@ -48269,13 +48438,13 @@ var init_npm_run_path = __esm({
|
|
|
48269
48438
|
import_node_url2 = require("node:url");
|
|
48270
48439
|
init_path_key();
|
|
48271
48440
|
npmRunPath = ({
|
|
48272
|
-
cwd:
|
|
48441
|
+
cwd: cwd3 = import_node_process2.default.cwd(),
|
|
48273
48442
|
path: pathOption = import_node_process2.default.env[pathKey()],
|
|
48274
48443
|
preferLocal = true,
|
|
48275
48444
|
execPath = import_node_process2.default.execPath,
|
|
48276
48445
|
addExecPath = true
|
|
48277
48446
|
} = {}) => {
|
|
48278
|
-
const cwdString =
|
|
48447
|
+
const cwdString = cwd3 instanceof URL ? (0, import_node_url2.fileURLToPath)(cwd3) : cwd3;
|
|
48279
48448
|
const cwdPath = import_node_path3.default.resolve(cwdString);
|
|
48280
48449
|
const result = [];
|
|
48281
48450
|
if (preferLocal) {
|
|
@@ -48818,7 +48987,7 @@ var init_error = __esm({
|
|
|
48818
48987
|
timedOut,
|
|
48819
48988
|
isCanceled,
|
|
48820
48989
|
killed,
|
|
48821
|
-
parsed: { options: { timeout, cwd:
|
|
48990
|
+
parsed: { options: { timeout, cwd: cwd3 = import_node_process3.default.cwd() } }
|
|
48822
48991
|
}) => {
|
|
48823
48992
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
48824
48993
|
signal = signal === null ? void 0 : signal;
|
|
@@ -48844,7 +49013,7 @@ ${error.message}` : execaMessage;
|
|
|
48844
49013
|
error.signalDescription = signalDescription;
|
|
48845
49014
|
error.stdout = stdout;
|
|
48846
49015
|
error.stderr = stderr;
|
|
48847
|
-
error.cwd =
|
|
49016
|
+
error.cwd = cwd3;
|
|
48848
49017
|
if (all !== void 0) {
|
|
48849
49018
|
error.all = all;
|
|
48850
49019
|
}
|
|
@@ -49220,7 +49389,7 @@ var init_kill = __esm({
|
|
|
49220
49389
|
return spawnedPromise;
|
|
49221
49390
|
}
|
|
49222
49391
|
let timeoutId;
|
|
49223
|
-
const timeoutPromise = new Promise((
|
|
49392
|
+
const timeoutPromise = new Promise((resolve4, reject) => {
|
|
49224
49393
|
timeoutId = setTimeout(() => {
|
|
49225
49394
|
timeoutKill(spawned, killSignal, reject);
|
|
49226
49395
|
}, timeout);
|
|
@@ -49693,9 +49862,9 @@ var init_promise = __esm({
|
|
|
49693
49862
|
Reflect.defineProperty(spawned, property, { ...descriptor, value: value2 });
|
|
49694
49863
|
}
|
|
49695
49864
|
};
|
|
49696
|
-
getSpawnedPromise = (spawned) => new Promise((
|
|
49865
|
+
getSpawnedPromise = (spawned) => new Promise((resolve4, reject) => {
|
|
49697
49866
|
spawned.on("exit", (exitCode, signal) => {
|
|
49698
|
-
|
|
49867
|
+
resolve4({ exitCode, signal });
|
|
49699
49868
|
});
|
|
49700
49869
|
spawned.on("error", (error) => {
|
|
49701
49870
|
reject(error);
|
|
@@ -50090,8 +50259,8 @@ var init_execa = __esm({
|
|
|
50090
50259
|
});
|
|
50091
50260
|
|
|
50092
50261
|
// node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
50093
|
-
async function findup(
|
|
50094
|
-
const segments = normalize(
|
|
50262
|
+
async function findup(cwd3, match, options = {}) {
|
|
50263
|
+
const segments = normalize(cwd3).split("/");
|
|
50095
50264
|
while (segments.length > 0) {
|
|
50096
50265
|
const path5 = segments.join("/") || "/";
|
|
50097
50266
|
const result = await match(path5);
|
|
@@ -50122,13 +50291,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
50122
50291
|
});
|
|
50123
50292
|
}
|
|
50124
50293
|
async function resolveOperationOptions(options = {}) {
|
|
50125
|
-
const
|
|
50294
|
+
const cwd3 = options.cwd || process.cwd();
|
|
50126
50295
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
50127
50296
|
if (!packageManager) {
|
|
50128
50297
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
50129
50298
|
}
|
|
50130
50299
|
return {
|
|
50131
|
-
cwd:
|
|
50300
|
+
cwd: cwd3,
|
|
50132
50301
|
silent: options.silent ?? false,
|
|
50133
50302
|
packageManager,
|
|
50134
50303
|
dev: options.dev ?? false,
|
|
@@ -50136,9 +50305,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
50136
50305
|
global: options.global ?? false
|
|
50137
50306
|
};
|
|
50138
50307
|
}
|
|
50139
|
-
async function detectPackageManager(
|
|
50308
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
50140
50309
|
const detected = await findup(
|
|
50141
|
-
resolve(
|
|
50310
|
+
resolve(cwd3 || "."),
|
|
50142
50311
|
async (path5) => {
|
|
50143
50312
|
if (!options.ignorePackageJSON) {
|
|
50144
50313
|
const packageJSONPath = join(path5, "package.json");
|
|
@@ -50208,7 +50377,7 @@ async function installDependencies(options = {}) {
|
|
|
50208
50377
|
});
|
|
50209
50378
|
}
|
|
50210
50379
|
var import_node_fs6, import_promises2, importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
50211
|
-
var
|
|
50380
|
+
var init_dist7 = __esm({
|
|
50212
50381
|
"node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
50213
50382
|
import_node_fs6 = require("node:fs");
|
|
50214
50383
|
import_promises2 = require("node:fs/promises");
|
|
@@ -60334,10 +60503,10 @@ ${f2.toString(16)}\r
|
|
|
60334
60503
|
return Q5(U5, "getHeadersList"), util$3 = { isCTLExcludingHtab: t2, validateCookieName: r4, validateCookiePath: o, validateCookieValue: n, toIMFDate: c, stringify: y3, getHeadersList: U5 }, util$3;
|
|
60335
60504
|
}
|
|
60336
60505
|
Q5(requireUtil$2, "requireUtil$2");
|
|
60337
|
-
var
|
|
60506
|
+
var parse8;
|
|
60338
60507
|
var hasRequiredParse;
|
|
60339
60508
|
function requireParse() {
|
|
60340
|
-
if (hasRequiredParse) return
|
|
60509
|
+
if (hasRequiredParse) return parse8;
|
|
60341
60510
|
hasRequiredParse = 1;
|
|
60342
60511
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
60343
60512
|
function o(l2) {
|
|
@@ -60390,7 +60559,7 @@ ${f2.toString(16)}\r
|
|
|
60390
60559
|
} else C4.unparsed ?? (C4.unparsed = []), C4.unparsed.push(`${c}=${I4}`);
|
|
60391
60560
|
return B3(l2, C4);
|
|
60392
60561
|
}
|
|
60393
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
60562
|
+
return Q5(B3, "parseUnparsedAttributes"), parse8 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse8;
|
|
60394
60563
|
}
|
|
60395
60564
|
Q5(requireParse, "requireParse");
|
|
60396
60565
|
var cookies;
|
|
@@ -62075,14 +62244,14 @@ function currentShell() {
|
|
|
62075
62244
|
}
|
|
62076
62245
|
return "/bin/bash";
|
|
62077
62246
|
}
|
|
62078
|
-
function startShell(
|
|
62079
|
-
|
|
62247
|
+
function startShell(cwd3) {
|
|
62248
|
+
cwd3 = resolve(cwd3);
|
|
62080
62249
|
const shell = currentShell();
|
|
62081
62250
|
console.info(
|
|
62082
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
62251
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
62083
62252
|
);
|
|
62084
62253
|
(0, import_node_child_process4.spawnSync)(shell, [], {
|
|
62085
|
-
cwd:
|
|
62254
|
+
cwd: cwd3,
|
|
62086
62255
|
shell: true,
|
|
62087
62256
|
stdio: "inherit"
|
|
62088
62257
|
});
|
|
@@ -62157,8 +62326,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
62157
62326
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
62158
62327
|
);
|
|
62159
62328
|
}
|
|
62160
|
-
const
|
|
62161
|
-
const extractPath = resolve(
|
|
62329
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
62330
|
+
const extractPath = resolve(cwd3, options.dir || template.defaultDir);
|
|
62162
62331
|
if (options.forceClean) {
|
|
62163
62332
|
await (0, import_promises3.rm)(extractPath, { recursive: true, force: true });
|
|
62164
62333
|
}
|
|
@@ -62197,14 +62366,14 @@ async function downloadTemplate(input, options = {}) {
|
|
|
62197
62366
|
};
|
|
62198
62367
|
}
|
|
62199
62368
|
var import_promises3, import_node_fs7, import_tar, import_defu2, import_node_stream, import_node_child_process4, import_node_os5, import_node_util3, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
62200
|
-
var
|
|
62369
|
+
var init_dist8 = __esm({
|
|
62201
62370
|
"node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
62202
62371
|
import_promises3 = require("node:fs/promises");
|
|
62203
62372
|
import_node_fs7 = require("node:fs");
|
|
62204
62373
|
import_tar = __toESM(require_tar(), 1);
|
|
62205
62374
|
init_dist();
|
|
62206
62375
|
import_defu2 = require("defu");
|
|
62207
|
-
|
|
62376
|
+
init_dist7();
|
|
62208
62377
|
import_node_stream = require("node:stream");
|
|
62209
62378
|
import_node_child_process4 = require("node:child_process");
|
|
62210
62379
|
import_node_os5 = require("node:os");
|
|
@@ -64321,7 +64490,7 @@ var require_semver = __commonJS({
|
|
|
64321
64490
|
var require_parse3 = __commonJS({
|
|
64322
64491
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
64323
64492
|
var SemVer = require_semver();
|
|
64324
|
-
var
|
|
64493
|
+
var parse8 = (version3, options, throwErrors = false) => {
|
|
64325
64494
|
if (version3 instanceof SemVer) {
|
|
64326
64495
|
return version3;
|
|
64327
64496
|
}
|
|
@@ -64334,16 +64503,16 @@ var require_parse3 = __commonJS({
|
|
|
64334
64503
|
throw er2;
|
|
64335
64504
|
}
|
|
64336
64505
|
};
|
|
64337
|
-
module2.exports =
|
|
64506
|
+
module2.exports = parse8;
|
|
64338
64507
|
}
|
|
64339
64508
|
});
|
|
64340
64509
|
|
|
64341
64510
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js
|
|
64342
64511
|
var require_valid = __commonJS({
|
|
64343
64512
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
64344
|
-
var
|
|
64513
|
+
var parse8 = require_parse3();
|
|
64345
64514
|
var valid = (version3, options) => {
|
|
64346
|
-
const v4 =
|
|
64515
|
+
const v4 = parse8(version3, options);
|
|
64347
64516
|
return v4 ? v4.version : null;
|
|
64348
64517
|
};
|
|
64349
64518
|
module2.exports = valid;
|
|
@@ -64353,9 +64522,9 @@ var require_valid = __commonJS({
|
|
|
64353
64522
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js
|
|
64354
64523
|
var require_clean = __commonJS({
|
|
64355
64524
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
64356
|
-
var
|
|
64525
|
+
var parse8 = require_parse3();
|
|
64357
64526
|
var clean = (version3, options) => {
|
|
64358
|
-
const s2 =
|
|
64527
|
+
const s2 = parse8(version3.trim().replace(/^[=v]+/, ""), options);
|
|
64359
64528
|
return s2 ? s2.version : null;
|
|
64360
64529
|
};
|
|
64361
64530
|
module2.exports = clean;
|
|
@@ -64388,10 +64557,10 @@ var require_inc = __commonJS({
|
|
|
64388
64557
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js
|
|
64389
64558
|
var require_diff = __commonJS({
|
|
64390
64559
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
64391
|
-
var
|
|
64560
|
+
var parse8 = require_parse3();
|
|
64392
64561
|
var diff = (version1, version22) => {
|
|
64393
|
-
const v1 =
|
|
64394
|
-
const v22 =
|
|
64562
|
+
const v1 = parse8(version1, null, true);
|
|
64563
|
+
const v22 = parse8(version22, null, true);
|
|
64395
64564
|
const comparison = v1.compare(v22);
|
|
64396
64565
|
if (comparison === 0) {
|
|
64397
64566
|
return null;
|
|
@@ -64459,9 +64628,9 @@ var require_patch = __commonJS({
|
|
|
64459
64628
|
// node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js
|
|
64460
64629
|
var require_prerelease = __commonJS({
|
|
64461
64630
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
64462
|
-
var
|
|
64631
|
+
var parse8 = require_parse3();
|
|
64463
64632
|
var prerelease2 = (version3, options) => {
|
|
64464
|
-
const parsed =
|
|
64633
|
+
const parsed = parse8(version3, options);
|
|
64465
64634
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
64466
64635
|
};
|
|
64467
64636
|
module2.exports = prerelease2;
|
|
@@ -64633,7 +64802,7 @@ var require_cmp = __commonJS({
|
|
|
64633
64802
|
var require_coerce = __commonJS({
|
|
64634
64803
|
"node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
64635
64804
|
var SemVer = require_semver();
|
|
64636
|
-
var
|
|
64805
|
+
var parse8 = require_parse3();
|
|
64637
64806
|
var { safeRe: re3, t: t2 } = require_re();
|
|
64638
64807
|
var coerce2 = (version3, options) => {
|
|
64639
64808
|
if (version3 instanceof SemVer) {
|
|
@@ -64668,7 +64837,7 @@ var require_coerce = __commonJS({
|
|
|
64668
64837
|
const patch = match[4] || "0";
|
|
64669
64838
|
const prerelease2 = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
64670
64839
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
64671
|
-
return
|
|
64840
|
+
return parse8(`${major}.${minor}.${patch}${prerelease2}${build}`, options);
|
|
64672
64841
|
};
|
|
64673
64842
|
module2.exports = coerce2;
|
|
64674
64843
|
}
|
|
@@ -65650,7 +65819,7 @@ var require_semver2 = __commonJS({
|
|
|
65650
65819
|
var constants3 = require_constants2();
|
|
65651
65820
|
var SemVer = require_semver();
|
|
65652
65821
|
var identifiers = require_identifiers();
|
|
65653
|
-
var
|
|
65822
|
+
var parse8 = require_parse3();
|
|
65654
65823
|
var valid = require_valid();
|
|
65655
65824
|
var clean = require_clean();
|
|
65656
65825
|
var inc = require_inc();
|
|
@@ -65688,7 +65857,7 @@ var require_semver2 = __commonJS({
|
|
|
65688
65857
|
var simplifyRange = require_simplify();
|
|
65689
65858
|
var subset = require_subset();
|
|
65690
65859
|
module2.exports = {
|
|
65691
|
-
parse:
|
|
65860
|
+
parse: parse8,
|
|
65692
65861
|
valid,
|
|
65693
65862
|
clean,
|
|
65694
65863
|
inc,
|
|
@@ -65774,7 +65943,7 @@ function createJiti(id, opts = {}) {
|
|
|
65774
65943
|
}
|
|
65775
65944
|
|
|
65776
65945
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
65777
|
-
|
|
65946
|
+
init_dist6();
|
|
65778
65947
|
|
|
65779
65948
|
// node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
65780
65949
|
var import_node_fs3 = require("node:fs");
|
|
@@ -65970,7 +66139,7 @@ function withDefaults(options) {
|
|
|
65970
66139
|
}
|
|
65971
66140
|
return { ...defaults, ...options };
|
|
65972
66141
|
}
|
|
65973
|
-
function
|
|
66142
|
+
function parse5(contents, options = {}) {
|
|
65974
66143
|
const config = {};
|
|
65975
66144
|
const lines = contents.split(RE_LINES);
|
|
65976
66145
|
for (const line of lines) {
|
|
@@ -65999,7 +66168,7 @@ function parseFile(path5, options) {
|
|
|
65999
66168
|
if (!(0, import_node_fs3.existsSync)(path5)) {
|
|
66000
66169
|
return {};
|
|
66001
66170
|
}
|
|
66002
|
-
return
|
|
66171
|
+
return parse5((0, import_node_fs3.readFileSync)(path5, "utf8"), options);
|
|
66003
66172
|
}
|
|
66004
66173
|
function read2(options) {
|
|
66005
66174
|
options = withDefaults(options);
|
|
@@ -66639,7 +66808,7 @@ function hash(object, options = {}) {
|
|
|
66639
66808
|
}
|
|
66640
66809
|
|
|
66641
66810
|
// node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
66642
|
-
|
|
66811
|
+
init_dist5();
|
|
66643
66812
|
var dotenv = __toESM(require_main(), 1);
|
|
66644
66813
|
async function setupDotenv(options) {
|
|
66645
66814
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -66672,7 +66841,7 @@ async function loadDotenv(options) {
|
|
|
66672
66841
|
}
|
|
66673
66842
|
return environment;
|
|
66674
66843
|
}
|
|
66675
|
-
function interpolate(target, source = {},
|
|
66844
|
+
function interpolate(target, source = {}, parse8 = (v4) => v4) {
|
|
66676
66845
|
function getValue(key) {
|
|
66677
66846
|
return source[key] === void 0 ? target[key] : source[key];
|
|
66678
66847
|
}
|
|
@@ -66681,7 +66850,7 @@ function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
|
66681
66850
|
return value2;
|
|
66682
66851
|
}
|
|
66683
66852
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
66684
|
-
return
|
|
66853
|
+
return parse8(
|
|
66685
66854
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
66686
66855
|
matches.reduce((newValue, match) => {
|
|
66687
66856
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -66915,7 +67084,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
66915
67084
|
}
|
|
66916
67085
|
const _merger = options.merger || import_defu3.defu;
|
|
66917
67086
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
66918
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
67087
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
66919
67088
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
66920
67089
|
let cloneDir;
|
|
66921
67090
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -66949,18 +67118,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
66949
67118
|
}
|
|
66950
67119
|
const ext = extname(source);
|
|
66951
67120
|
const isDir = !ext || ext === basename(source);
|
|
66952
|
-
const
|
|
67121
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
66953
67122
|
if (isDir) {
|
|
66954
67123
|
source = options.configFile;
|
|
66955
67124
|
}
|
|
66956
67125
|
const res = {
|
|
66957
67126
|
config: void 0,
|
|
66958
67127
|
configFile: void 0,
|
|
66959
|
-
cwd:
|
|
67128
|
+
cwd: cwd3,
|
|
66960
67129
|
source,
|
|
66961
67130
|
sourceOptions
|
|
66962
67131
|
};
|
|
66963
|
-
res.configFile = tryResolve(resolve(
|
|
67132
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
66964
67133
|
if (!(0, import_node_fs8.existsSync)(res.configFile)) {
|
|
66965
67134
|
return res;
|
|
66966
67135
|
}
|
|
@@ -75119,7 +75288,7 @@ var assertFulScalar = (string) => {
|
|
|
75119
75288
|
}
|
|
75120
75289
|
};
|
|
75121
75290
|
var holding = false;
|
|
75122
|
-
var
|
|
75291
|
+
var parse7 = (source, specificationVersion, multilineStringJoiner, bigint, x5, argsMode) => {
|
|
75123
75292
|
let sourcePath2 = "";
|
|
75124
75293
|
if (typeof source === "object" && source) {
|
|
75125
75294
|
if (isArray$1(source)) {
|
|
@@ -75133,11 +75302,11 @@ var parse6 = (source, specificationVersion, multilineStringJoiner, bigint, x5, a
|
|
|
75133
75302
|
}
|
|
75134
75303
|
const { data: data2, require: req = typeof require === "function" ? require : undefined$1 } = source;
|
|
75135
75304
|
if (req) {
|
|
75136
|
-
const { resolve:
|
|
75137
|
-
if (
|
|
75138
|
-
const { paths } =
|
|
75305
|
+
const { resolve: resolve4 } = req;
|
|
75306
|
+
if (resolve4 != null) {
|
|
75307
|
+
const { paths } = resolve4;
|
|
75139
75308
|
if (paths != null) {
|
|
75140
|
-
const ret = apply$1(paths,
|
|
75309
|
+
const ret = apply$1(paths, resolve4, [""]);
|
|
75141
75310
|
if (ret != null) {
|
|
75142
75311
|
const val = ret[0];
|
|
75143
75312
|
if (val != null) {
|
|
@@ -75219,15 +75388,15 @@ var parse6 = (source, specificationVersion, multilineStringJoiner, bigint, x5, a
|
|
|
75219
75388
|
return rootTable;
|
|
75220
75389
|
};
|
|
75221
75390
|
var parse$1 = /* @__PURE__ */ assign$1(
|
|
75222
|
-
(source, specificationVersion, multilineStringJoiner, useBigInt, xOptions) => typeof specificationVersion === "number" ?
|
|
75391
|
+
(source, specificationVersion, multilineStringJoiner, useBigInt, xOptions) => typeof specificationVersion === "number" ? parse7(source, specificationVersion, multilineStringJoiner, useBigInt, xOptions, ",,") : parse7(source, 1, specificationVersion, multilineStringJoiner, useBigInt, ","),
|
|
75223
75392
|
{
|
|
75224
|
-
"1.0": (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75225
|
-
1: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75226
|
-
0.5: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75227
|
-
0.4: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75228
|
-
0.3: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75229
|
-
0.2: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75230
|
-
0.1: (source, multilineStringJoiner, useBigInt, xOptions) =>
|
|
75393
|
+
"1.0": (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.1, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75394
|
+
1: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 1, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75395
|
+
0.5: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.5, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75396
|
+
0.4: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.4, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75397
|
+
0.3: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.3, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75398
|
+
0.2: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.2, multilineStringJoiner, useBigInt, xOptions, ","),
|
|
75399
|
+
0.1: (source, multilineStringJoiner, useBigInt, xOptions) => parse7(source, 0.1, multilineStringJoiner, useBigInt, xOptions, ",")
|
|
75231
75400
|
}
|
|
75232
75401
|
);
|
|
75233
75402
|
var _export = /* @__PURE__ */ Default({
|
|
@@ -75406,7 +75575,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
75406
75575
|
const tag = metadata?.tag ?? "latest";
|
|
75407
75576
|
if (options.releaseGroup.projectsRelationship === "independent") {
|
|
75408
75577
|
try {
|
|
75409
|
-
currentVersion = await new Promise((
|
|
75578
|
+
currentVersion = await new Promise((resolve4, reject) => {
|
|
75410
75579
|
(0, import_node_child_process5.exec)(
|
|
75411
75580
|
`npm view ${packageName} version --registry=${npmRegistry} --tag=${tag}`,
|
|
75412
75581
|
(error, stdout, stderr) => {
|
|
@@ -75416,7 +75585,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
75416
75585
|
if (stderr) {
|
|
75417
75586
|
return reject(stderr);
|
|
75418
75587
|
}
|
|
75419
|
-
return
|
|
75588
|
+
return resolve4(stdout.trim());
|
|
75420
75589
|
}
|
|
75421
75590
|
);
|
|
75422
75591
|
});
|
|
@@ -75426,7 +75595,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
75426
75595
|
} catch (_5) {
|
|
75427
75596
|
try {
|
|
75428
75597
|
currentVersion = await new Promise(
|
|
75429
|
-
(
|
|
75598
|
+
(resolve4, reject) => {
|
|
75430
75599
|
(0, import_node_child_process5.exec)(
|
|
75431
75600
|
`npm view ${packageName} version --registry=${githubRegistry} --tag=${tag}`,
|
|
75432
75601
|
(error, stdout, stderr) => {
|
|
@@ -75436,7 +75605,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
75436
75605
|
if (stderr) {
|
|
75437
75606
|
return reject(stderr);
|
|
75438
75607
|
}
|
|
75439
|
-
return
|
|
75608
|
+
return resolve4(stdout.trim());
|
|
75440
75609
|
}
|
|
75441
75610
|
);
|
|
75442
75611
|
}
|
|
@@ -75766,8 +75935,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
75766
75935
|
data: versionData,
|
|
75767
75936
|
callback: async (tree2, opts) => {
|
|
75768
75937
|
import_devkit3.output.logSingleLine("Updating Cargo.lock file");
|
|
75769
|
-
const
|
|
75770
|
-
const updatedFiles = await (0, import_update_lock_file.updateLockFile)(
|
|
75938
|
+
const cwd3 = tree2.root;
|
|
75939
|
+
const updatedFiles = await (0, import_update_lock_file.updateLockFile)(cwd3, opts) ?? [];
|
|
75771
75940
|
const updatedCargoPackages = [];
|
|
75772
75941
|
for (const [projectName, projectVersionData] of Object.entries(
|
|
75773
75942
|
versionData
|
|
@@ -75820,7 +75989,7 @@ async function getNpmRegistry() {
|
|
|
75820
75989
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
75821
75990
|
return process.env.STORM_REGISTRY_NPM;
|
|
75822
75991
|
}
|
|
75823
|
-
const registry = await new Promise((
|
|
75992
|
+
const registry = await new Promise((resolve4, reject) => {
|
|
75824
75993
|
(0, import_node_child_process5.exec)("npm config get registry", (error, stdout, stderr) => {
|
|
75825
75994
|
if (error) {
|
|
75826
75995
|
return reject(error);
|
|
@@ -75828,7 +75997,7 @@ async function getNpmRegistry() {
|
|
|
75828
75997
|
if (stderr) {
|
|
75829
75998
|
return reject(stderr);
|
|
75830
75999
|
}
|
|
75831
|
-
return
|
|
76000
|
+
return resolve4(stdout.trim());
|
|
75832
76001
|
});
|
|
75833
76002
|
});
|
|
75834
76003
|
return registry ? registry : "https://registry.npmjs.org";
|