@storm-software/git-tools 2.83.4 → 2.84.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/bin/git/index.cjs +779 -605
- package/bin/git/index.js +806 -632
- package/bin/post-checkout/index.cjs +620 -446
- package/bin/post-checkout/index.js +631 -457
- package/bin/post-commit/index.cjs +620 -446
- package/bin/post-commit/index.js +631 -457
- package/bin/post-merge/index.cjs +620 -446
- package/bin/post-merge/index.js +631 -457
- package/bin/pre-commit/index.cjs +618 -444
- package/bin/pre-commit/index.js +629 -455
- package/bin/pre-install/index.cjs +620 -446
- package/bin/pre-install/index.js +631 -457
- package/bin/pre-push/index.cjs +620 -446
- package/bin/pre-push/index.js +631 -457
- package/bin/prepare/index.cjs +620 -446
- package/bin/prepare/index.js +631 -457
- package/bin/version-warning/index.cjs +618 -444
- package/bin/version-warning/index.js +629 -455
- package/package.json +1 -1
package/bin/git/index.js
CHANGED
|
@@ -40,9 +40,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
));
|
|
41
41
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
42
|
|
|
43
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
43
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.6__@swc+core@1.7.26_@swc+helpers_piekaeluhhe3ygikfvobypsjsi/node_modules/tsup/assets/esm_shims.js
|
|
44
44
|
var init_esm_shims = __esm({
|
|
45
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
45
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.6__@swc+core@1.7.26_@swc+helpers_piekaeluhhe3ygikfvobypsjsi/node_modules/tsup/assets/esm_shims.js"() {
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -2352,30 +2352,30 @@ var require_jiti = __commonJS({
|
|
|
2352
2352
|
__name(dist_joinURL, "dist_joinURL");
|
|
2353
2353
|
Symbol.for("ufo:protocolRelative");
|
|
2354
2354
|
Object.defineProperty;
|
|
2355
|
-
const
|
|
2356
|
-
function
|
|
2357
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2355
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2356
|
+
function normalizeWindowsPath3(input = "") {
|
|
2357
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2358
2358
|
}
|
|
2359
|
-
__name(
|
|
2360
|
-
const
|
|
2359
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
2360
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = /* @__PURE__ */ __name(function(path6) {
|
|
2361
2361
|
if (0 === path6.length) return ".";
|
|
2362
|
-
const isUNCPath = (path6 =
|
|
2363
|
-
return 0 === (path6 =
|
|
2364
|
-
}, "pathe_ff20891b_normalize"),
|
|
2362
|
+
const isUNCPath = (path6 = normalizeWindowsPath3(path6)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute4(path6), trailingSeparator = "/" === path6[path6.length - 1];
|
|
2363
|
+
return 0 === (path6 = normalizeString3(path6, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path6 += "/"), _DRIVE_LETTER_RE3.test(path6) && (path6 += "/"), isUNCPath ? isPathAbsolute ? `//${path6}` : `//./${path6}` : isPathAbsolute && !isAbsolute4(path6) ? `/${path6}` : path6);
|
|
2364
|
+
}, "pathe_ff20891b_normalize"), join10 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2365
2365
|
if (0 === arguments_.length) return ".";
|
|
2366
2366
|
let joined;
|
|
2367
2367
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2368
2368
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2369
2369
|
}, "join");
|
|
2370
|
-
const
|
|
2370
|
+
const resolve4 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2371
2371
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2372
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2372
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2373
2373
|
const path6 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2374
|
-
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute =
|
|
2374
|
+
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute = isAbsolute4(path6));
|
|
2375
2375
|
}
|
|
2376
|
-
return resolvedPath =
|
|
2376
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute4(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2377
2377
|
}, "resolve");
|
|
2378
|
-
function
|
|
2378
|
+
function normalizeString3(path6, allowAboveRoot) {
|
|
2379
2379
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2380
2380
|
for (let index = 0; index <= path6.length; ++index) {
|
|
2381
2381
|
if (index < path6.length) char = path6[index];
|
|
@@ -2404,17 +2404,17 @@ var require_jiti = __commonJS({
|
|
|
2404
2404
|
}
|
|
2405
2405
|
return res;
|
|
2406
2406
|
}
|
|
2407
|
-
__name(
|
|
2408
|
-
const
|
|
2409
|
-
return
|
|
2410
|
-
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2411
|
-
const match = _EXTNAME_RE2.exec(
|
|
2407
|
+
__name(normalizeString3, "normalizeString");
|
|
2408
|
+
const isAbsolute4 = /* @__PURE__ */ __name(function(p2) {
|
|
2409
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2410
|
+
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/, extname5 = /* @__PURE__ */ __name(function(p2) {
|
|
2411
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2412
2412
|
return match && match[1] || "";
|
|
2413
2413
|
}, "extname"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
2414
|
-
const segments =
|
|
2415
|
-
return 1 === segments.length &&
|
|
2416
|
-
}, "pathe_ff20891b_dirname"),
|
|
2417
|
-
const lastSegment =
|
|
2414
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2415
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute4(p2) ? "/" : ".");
|
|
2416
|
+
}, "pathe_ff20891b_dirname"), basename3 = /* @__PURE__ */ __name(function(p2, extension) {
|
|
2417
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2418
2418
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2419
2419
|
}, "basename"), 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);
|
|
2420
2420
|
function normalizeSlash2(path6) {
|
|
@@ -2565,8 +2565,8 @@ var require_jiti = __commonJS({
|
|
|
2565
2565
|
const packageType = getPackageType2(url);
|
|
2566
2566
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2567
2567
|
}
|
|
2568
|
-
const
|
|
2569
|
-
if (
|
|
2568
|
+
const format4 = extensionFormatMap2[value2];
|
|
2569
|
+
if (format4) return format4;
|
|
2570
2570
|
if (ignoreErrors) return;
|
|
2571
2571
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2572
2572
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -2583,11 +2583,11 @@ var require_jiti = __commonJS({
|
|
|
2583
2583
|
__name(emitInvalidSegmentDeprecation2, "emitInvalidSegmentDeprecation");
|
|
2584
2584
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
2585
2585
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2586
|
-
const
|
|
2586
|
+
const format4 = function(url2, context) {
|
|
2587
2587
|
const protocol = url2.protocol;
|
|
2588
2588
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
2589
2589
|
}(url, { parentURL: base.href });
|
|
2590
|
-
if ("module" !==
|
|
2590
|
+
if ("module" !== format4) return;
|
|
2591
2591
|
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);
|
|
2592
2592
|
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}.
|
|
2593
2593
|
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}.
|
|
@@ -2902,7 +2902,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2902
2902
|
}
|
|
2903
2903
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2904
2904
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2905
|
-
if (id.startsWith("file://") && (id = fileURLToPath4(id)),
|
|
2905
|
+
if (id.startsWith("file://") && (id = fileURLToPath4(id)), isAbsolute4(id)) try {
|
|
2906
2906
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2907
2907
|
} catch (error) {
|
|
2908
2908
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3016,8 +3016,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3016
3016
|
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]") };
|
|
3017
3017
|
function debug3(ctx, ...args) {
|
|
3018
3018
|
if (!ctx.opts.debug) return;
|
|
3019
|
-
const
|
|
3020
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
3019
|
+
const cwd3 = process.cwd();
|
|
3020
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
3021
3021
|
}
|
|
3022
3022
|
__name(debug3, "debug");
|
|
3023
3023
|
function jitiInteropDefault(ctx, mod) {
|
|
@@ -3059,17 +3059,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3059
3059
|
let resolved, lastError;
|
|
3060
3060
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3061
3061
|
ctx.alias && (id = function(path6, aliases2) {
|
|
3062
|
-
const _path =
|
|
3062
|
+
const _path = normalizeWindowsPath3(path6);
|
|
3063
3063
|
aliases2 = normalizeAliases(aliases2);
|
|
3064
3064
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3065
3065
|
if (!_path.startsWith(alias)) continue;
|
|
3066
3066
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3067
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3067
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join10(to, _path.slice(alias.length));
|
|
3068
3068
|
}
|
|
3069
3069
|
return _path;
|
|
3070
3070
|
}(id, ctx.alias));
|
|
3071
3071
|
let parentURL = options?.parentURL || ctx.url;
|
|
3072
|
-
isDir(parentURL) && (parentURL =
|
|
3072
|
+
isDir(parentURL) && (parentURL = join10(parentURL, "_index.js"));
|
|
3073
3073
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3074
3074
|
for (const conditions of conditionSets) {
|
|
3075
3075
|
try {
|
|
@@ -3121,7 +3121,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3121
3121
|
}
|
|
3122
3122
|
const filename = jitiResolve(ctx, id, opts);
|
|
3123
3123
|
if (!filename && opts.try) return;
|
|
3124
|
-
const ext =
|
|
3124
|
+
const ext = extname5(filename);
|
|
3125
3125
|
if (".json" === ext) {
|
|
3126
3126
|
debug3(ctx, "[json]", filename);
|
|
3127
3127
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3140,7 +3140,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3140
3140
|
__name(jitiRequire, "jitiRequire");
|
|
3141
3141
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3142
3142
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3143
|
-
return _7 &&
|
|
3143
|
+
return _7 && isAbsolute4(id2) ? pathToFileURL2(id2) : id2;
|
|
3144
3144
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3145
3145
|
}
|
|
3146
3146
|
__name(nativeImportOrRequire, "nativeImportOrRequire");
|
|
@@ -3149,11 +3149,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3149
3149
|
if (!ctx.opts.fsCache || !topts.filename) return get2();
|
|
3150
3150
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3151
3151
|
`;
|
|
3152
|
-
let cacheName = `${
|
|
3152
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path6) {
|
|
3153
3153
|
return path6.match(FILENAME_RE)?.[2];
|
|
3154
3154
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3155
3155
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3156
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3156
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join10(cacheDir, cacheName);
|
|
3157
3157
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3158
3158
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3159
3159
|
if (cacheSource.endsWith(sourceHash)) return debug3(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3165,14 +3165,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3165
3165
|
__name(getCache, "getCache");
|
|
3166
3166
|
function prepareCacheDir(ctx) {
|
|
3167
3167
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3168
|
-
const nmDir = ctx2.filename &&
|
|
3169
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3168
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3169
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join10(nmDir, ".cache/jiti");
|
|
3170
3170
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3171
3171
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3172
3172
|
const _env = process.env.TMPDIR;
|
|
3173
3173
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3174
3174
|
}
|
|
3175
|
-
return
|
|
3175
|
+
return join10(_tmpDir, "jiti");
|
|
3176
3176
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3177
3177
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3178
3178
|
try {
|
|
@@ -3195,11 +3195,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3195
3195
|
}
|
|
3196
3196
|
__name(transform3, "transform");
|
|
3197
3197
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3198
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3198
|
+
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 || extname5(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext), isESM = ".mjs" === ext || ".js" === ext && "module" === function(path6) {
|
|
3199
3199
|
for (; path6 && "." !== path6 && "/" !== path6; ) {
|
|
3200
|
-
path6 =
|
|
3200
|
+
path6 = join10(path6, "..");
|
|
3201
3201
|
try {
|
|
3202
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3202
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join10(path6, "package.json"), "utf8");
|
|
3203
3203
|
try {
|
|
3204
3204
|
return JSON.parse(pkg);
|
|
3205
3205
|
} catch {
|
|
@@ -3265,7 +3265,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3265
3265
|
const deprecatOverrides = {};
|
|
3266
3266
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3267
3267
|
}(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("|")})/`);
|
|
3268
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3268
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join10(filename, "_index.js"));
|
|
3269
3269
|
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 };
|
|
3270
3270
|
isNested || debug3(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3271
3271
|
const jiti = Object.assign(function(id) {
|
|
@@ -3589,7 +3589,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3589
3589
|
(!path6 || addTrailingSlash && !path6.endsWith("/..")) && (path6 += "/"), url.path = path6;
|
|
3590
3590
|
}
|
|
3591
3591
|
__name(normalizePath, "normalizePath");
|
|
3592
|
-
function
|
|
3592
|
+
function resolve4(input, base) {
|
|
3593
3593
|
if (!input && !base) return "";
|
|
3594
3594
|
const url = parseUrl(input);
|
|
3595
3595
|
let inputType = url.type;
|
|
@@ -3626,8 +3626,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3626
3626
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
|
-
__name(
|
|
3630
|
-
return
|
|
3629
|
+
__name(resolve4, "resolve");
|
|
3630
|
+
return resolve4;
|
|
3631
3631
|
}();
|
|
3632
3632
|
}, "./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"), "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports2) {
|
|
3633
3633
|
!function(exports3) {
|
|
@@ -3681,18 +3681,18 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3681
3681
|
const c = chars.charCodeAt(i2);
|
|
3682
3682
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
3683
3683
|
}
|
|
3684
|
-
function decodeInteger(reader,
|
|
3684
|
+
function decodeInteger(reader, relative4) {
|
|
3685
3685
|
let value2 = 0, shift = 0, integer = 0;
|
|
3686
3686
|
do {
|
|
3687
3687
|
const c = reader.next();
|
|
3688
3688
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
3689
3689
|
} while (32 & integer);
|
|
3690
3690
|
const shouldNegate = 1 & value2;
|
|
3691
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
3691
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative4 + value2;
|
|
3692
3692
|
}
|
|
3693
3693
|
__name(decodeInteger, "decodeInteger");
|
|
3694
|
-
function encodeInteger(builder, num,
|
|
3695
|
-
let delta = num -
|
|
3694
|
+
function encodeInteger(builder, num, relative4) {
|
|
3695
|
+
let delta = num - relative4;
|
|
3696
3696
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3697
3697
|
do {
|
|
3698
3698
|
let clamped = 31 & delta;
|
|
@@ -3919,10 +3919,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3919
3919
|
}, "./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"), "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports2, __webpack_require__2) {
|
|
3920
3920
|
!function(exports3, sourcemapCodec, resolveUri) {
|
|
3921
3921
|
"use strict";
|
|
3922
|
-
function
|
|
3922
|
+
function resolve4(input, base) {
|
|
3923
3923
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
3924
3924
|
}
|
|
3925
|
-
__name(
|
|
3925
|
+
__name(resolve4, "resolve");
|
|
3926
3926
|
function stripFilename(path6) {
|
|
3927
3927
|
if (!path6) return "";
|
|
3928
3928
|
const index = path6.lastIndexOf("/");
|
|
@@ -4015,15 +4015,15 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4015
4015
|
}
|
|
4016
4016
|
__name(buildNullArray, "buildNullArray");
|
|
4017
4017
|
const AnyMap = /* @__PURE__ */ __name(function(map2, mapUrl) {
|
|
4018
|
-
const parsed =
|
|
4018
|
+
const parsed = parse8(map2);
|
|
4019
4019
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
4020
4020
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
4021
4021
|
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 });
|
|
4022
4022
|
}, "AnyMap");
|
|
4023
|
-
function
|
|
4023
|
+
function parse8(map2) {
|
|
4024
4024
|
return "string" == typeof map2 ? JSON.parse(map2) : map2;
|
|
4025
4025
|
}
|
|
4026
|
-
__name(
|
|
4026
|
+
__name(parse8, "parse");
|
|
4027
4027
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4028
4028
|
const { sections } = input;
|
|
4029
4029
|
for (let i2 = 0; i2 < sections.length; i2++) {
|
|
@@ -4038,7 +4038,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4038
4038
|
}
|
|
4039
4039
|
__name(recurse, "recurse");
|
|
4040
4040
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4041
|
-
const parsed =
|
|
4041
|
+
const parsed = parse8(input);
|
|
4042
4042
|
if ("sections" in parsed) return recurse(...arguments);
|
|
4043
4043
|
const map2 = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map2), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map2;
|
|
4044
4044
|
if (append(sources, resolvedSources), append(names, map2.names), contents) append(sourcesContent, contents);
|
|
@@ -4080,8 +4080,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4080
4080
|
if (!isString && map2._decodedMemo) return map2;
|
|
4081
4081
|
const parsed = isString ? JSON.parse(map2) : map2, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
4082
4082
|
this.version = version2, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
4083
|
-
const from =
|
|
4084
|
-
this.resolvedSources = sources.map((s2) =>
|
|
4083
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
4084
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
4085
4085
|
const { mappings } = parsed;
|
|
4086
4086
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
4087
4087
|
}
|
|
@@ -4522,10 +4522,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4522
4522
|
const self2 = debug3, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4523
4523
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4524
4524
|
let index = 0;
|
|
4525
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4525
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4526
4526
|
if ("%%" === match) return "%";
|
|
4527
4527
|
index++;
|
|
4528
|
-
const formatter = createDebug.formatters[
|
|
4528
|
+
const formatter = createDebug.formatters[format4];
|
|
4529
4529
|
if ("function" == typeof formatter) {
|
|
4530
4530
|
const val = args[index];
|
|
4531
4531
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4663,7 +4663,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4663
4663
|
return value2;
|
|
4664
4664
|
}
|
|
4665
4665
|
__name(evaluateSync, "evaluateSync");
|
|
4666
|
-
function evaluateAsync(gen,
|
|
4666
|
+
function evaluateAsync(gen, resolve4, reject2) {
|
|
4667
4667
|
!(/* @__PURE__ */ __name(function step() {
|
|
4668
4668
|
try {
|
|
4669
4669
|
let value2;
|
|
@@ -4675,7 +4675,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4675
4675
|
});
|
|
4676
4676
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4677
4677
|
}
|
|
4678
|
-
return
|
|
4678
|
+
return resolve4(value2);
|
|
4679
4679
|
} catch (err) {
|
|
4680
4680
|
return reject2(err);
|
|
4681
4681
|
}
|
|
@@ -4717,10 +4717,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4717
4717
|
"number" != typeof arity && (arity = sync.length);
|
|
4718
4718
|
return buildOperation({ name, arity, sync: /* @__PURE__ */ __name(function(args) {
|
|
4719
4719
|
return sync.apply(this, args);
|
|
4720
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4721
|
-
async ? async.apply(this, args).then(
|
|
4722
|
-
null == err ?
|
|
4723
|
-
}) :
|
|
4720
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4721
|
+
async ? async.apply(this, args).then(resolve4, reject2) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4722
|
+
null == err ? resolve4(value2) : reject2(err);
|
|
4723
|
+
}) : resolve4(sync.apply(this, args));
|
|
4724
4724
|
}, "async") });
|
|
4725
4725
|
}(optsOrFn) : function(genFn2) {
|
|
4726
4726
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4730,8 +4730,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4730
4730
|
const fns = { sync: /* @__PURE__ */ __name(function(...args) {
|
|
4731
4731
|
return evaluateSync(genFn2.apply(this, args));
|
|
4732
4732
|
}, "sync"), async: /* @__PURE__ */ __name(function(...args) {
|
|
4733
|
-
return new Promise((
|
|
4734
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4733
|
+
return new Promise((resolve4, reject2) => {
|
|
4734
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject2);
|
|
4735
4735
|
});
|
|
4736
4736
|
}, "async"), errback: /* @__PURE__ */ __name(function(...args) {
|
|
4737
4737
|
const cb2 = args.pop();
|
|
@@ -4748,25 +4748,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4748
4748
|
}(genFn));
|
|
4749
4749
|
}, { all: buildOperation({ name: "all", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4750
4750
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4751
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4751
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4752
4752
|
const items = Array.from(args[0]);
|
|
4753
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4753
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
4754
4754
|
let count = 0;
|
|
4755
4755
|
const results = items.map(() => {
|
|
4756
4756
|
});
|
|
4757
4757
|
items.forEach((item, i2) => {
|
|
4758
4758
|
evaluateAsync(item, (val) => {
|
|
4759
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
4759
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
4760
4760
|
}, reject2);
|
|
4761
4761
|
});
|
|
4762
4762
|
}, "async") }), race: buildOperation({ name: "race", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4763
4763
|
const items = Array.from(args[0]);
|
|
4764
4764
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4765
4765
|
return evaluateSync(items[0]);
|
|
4766
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4766
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4767
4767
|
const items = Array.from(args[0]);
|
|
4768
4768
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4769
|
-
for (const item of items) evaluateAsync(item,
|
|
4769
|
+
for (const item of items) evaluateAsync(item, resolve4, reject2);
|
|
4770
4770
|
}, "async") }) });
|
|
4771
4771
|
}, "./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js"), "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": /* @__PURE__ */ __name((module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
4772
4772
|
"use strict";
|
|
@@ -4952,7 +4952,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4952
4952
|
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");
|
|
4953
4953
|
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*\\*";
|
|
4954
4954
|
for (var i2 = 0; i2 < R3; i2++) debug3(i2, src[i2]), re3[i2] || (re3[i2] = new RegExp(src[i2]), safeRe[i2] = new RegExp(makeSafeRe(src[i2])));
|
|
4955
|
-
function
|
|
4955
|
+
function parse8(version2, options) {
|
|
4956
4956
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
4957
4957
|
if ("string" != typeof version2) return null;
|
|
4958
4958
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -4963,7 +4963,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4963
4963
|
return null;
|
|
4964
4964
|
}
|
|
4965
4965
|
}
|
|
4966
|
-
__name(
|
|
4966
|
+
__name(parse8, "parse");
|
|
4967
4967
|
function SemVer(version2, options) {
|
|
4968
4968
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) {
|
|
4969
4969
|
if (version2.loose === options.loose) return version2;
|
|
@@ -4986,11 +4986,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4986
4986
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
4987
4987
|
}
|
|
4988
4988
|
__name(SemVer, "SemVer");
|
|
4989
|
-
exports2.parse =
|
|
4990
|
-
var v4 =
|
|
4989
|
+
exports2.parse = parse8, exports2.valid = function(version2, options) {
|
|
4990
|
+
var v4 = parse8(version2, options);
|
|
4991
4991
|
return v4 ? v4.version : null;
|
|
4992
4992
|
}, exports2.clean = function(version2, options) {
|
|
4993
|
-
var s2 =
|
|
4993
|
+
var s2 = parse8(version2.trim().replace(/^[=v]+/, ""), options);
|
|
4994
4994
|
return s2 ? s2.version : null;
|
|
4995
4995
|
}, exports2.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
4996
4996
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -5066,7 +5066,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5066
5066
|
}
|
|
5067
5067
|
}, exports2.diff = function(version1, version2) {
|
|
5068
5068
|
if (eq2(version1, version2)) return null;
|
|
5069
|
-
var v1 =
|
|
5069
|
+
var v1 = parse8(version1), v22 = parse8(version2), prefix = "";
|
|
5070
5070
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
5071
5071
|
prefix = "pre";
|
|
5072
5072
|
var defaultResult = "prerelease";
|
|
@@ -5397,7 +5397,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5397
5397
|
}, exports2.gtr = function(version2, range2, options) {
|
|
5398
5398
|
return outside(version2, range2, ">", options);
|
|
5399
5399
|
}, exports2.outside = outside, exports2.prerelease = function(version2, options) {
|
|
5400
|
-
var parsed =
|
|
5400
|
+
var parsed = parse8(version2, options);
|
|
5401
5401
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5402
5402
|
}, exports2.intersects = function(r1, r22, options) {
|
|
5403
5403
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5411,7 +5411,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5411
5411
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5412
5412
|
} else match = version2.match(safeRe[t2.COERCE]);
|
|
5413
5413
|
if (null === match) return null;
|
|
5414
|
-
return
|
|
5414
|
+
return parse8(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5415
5415
|
};
|
|
5416
5416
|
}, "./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"), "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": /* @__PURE__ */ __name((module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
5417
5417
|
"use strict";
|
|
@@ -5622,8 +5622,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5622
5622
|
__name(this, "Lock");
|
|
5623
5623
|
}
|
|
5624
5624
|
constructor() {
|
|
5625
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5626
|
-
this._resolve =
|
|
5625
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
5626
|
+
this._resolve = resolve4;
|
|
5627
5627
|
});
|
|
5628
5628
|
}
|
|
5629
5629
|
release(value2) {
|
|
@@ -5708,59 +5708,59 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5708
5708
|
}
|
|
5709
5709
|
__name(loadFileChain, "loadFileChain");
|
|
5710
5710
|
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))));
|
|
5711
|
-
function buildRootDescriptors({ dirname:
|
|
5712
|
-
return descriptors2(
|
|
5711
|
+
function buildRootDescriptors({ dirname: dirname5, options }, alias, descriptors2) {
|
|
5712
|
+
return descriptors2(dirname5, options, alias);
|
|
5713
5713
|
}
|
|
5714
5714
|
__name(buildRootDescriptors, "buildRootDescriptors");
|
|
5715
|
-
function buildEnvDescriptors({ dirname:
|
|
5715
|
+
function buildEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, envName) {
|
|
5716
5716
|
var _options$env;
|
|
5717
5717
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5718
|
-
return opts ? descriptors2(
|
|
5718
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.env["${envName}"]`) : null;
|
|
5719
5719
|
}
|
|
5720
5720
|
__name(buildEnvDescriptors, "buildEnvDescriptors");
|
|
5721
|
-
function buildOverrideDescriptors({ dirname:
|
|
5721
|
+
function buildOverrideDescriptors({ dirname: dirname5, options }, alias, descriptors2, index) {
|
|
5722
5722
|
var _options$overrides;
|
|
5723
5723
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5724
5724
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5725
|
-
return descriptors2(
|
|
5725
|
+
return descriptors2(dirname5, opts, `${alias}.overrides[${index}]`);
|
|
5726
5726
|
}
|
|
5727
5727
|
__name(buildOverrideDescriptors, "buildOverrideDescriptors");
|
|
5728
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5728
|
+
function buildOverrideEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, index, envName) {
|
|
5729
5729
|
var _options$overrides2, _override$env;
|
|
5730
5730
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5731
5731
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5732
5732
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5733
|
-
return opts ? descriptors2(
|
|
5733
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5734
5734
|
}
|
|
5735
5735
|
__name(buildOverrideEnvDescriptors, "buildOverrideEnvDescriptors");
|
|
5736
5736
|
function makeChainWalker({ root: root2, env: env2, overrides, overridesEnv, createLogger }) {
|
|
5737
5737
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5738
|
-
const { dirname:
|
|
5739
|
-
if (configIsApplicable(rootOpts,
|
|
5738
|
+
const { dirname: dirname5 } = input, flattenedConfigs = [], rootOpts = root2(input);
|
|
5739
|
+
if (configIsApplicable(rootOpts, dirname5, context, input.filepath)) {
|
|
5740
5740
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5741
5741
|
const envOpts = env2(input, context.envName);
|
|
5742
|
-
envOpts && configIsApplicable(envOpts,
|
|
5742
|
+
envOpts && configIsApplicable(envOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_7, index) => {
|
|
5743
5743
|
const overrideOps = overrides(input, index);
|
|
5744
|
-
if (configIsApplicable(overrideOps,
|
|
5744
|
+
if (configIsApplicable(overrideOps, dirname5, context, input.filepath)) {
|
|
5745
5745
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5746
5746
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5747
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5747
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5748
5748
|
}
|
|
5749
5749
|
});
|
|
5750
5750
|
}
|
|
5751
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5751
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname5))) return null;
|
|
5752
5752
|
const chain2 = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
5753
5753
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5754
|
-
if (!(yield* mergeExtendsChain(chain2, config.options,
|
|
5754
|
+
if (!(yield* mergeExtendsChain(chain2, config.options, dirname5, context, files, baseLogger))) return null;
|
|
5755
5755
|
logger(config, index, envName), yield* mergeChainOpts(chain2, config);
|
|
5756
5756
|
}
|
|
5757
5757
|
return chain2;
|
|
5758
5758
|
};
|
|
5759
5759
|
}
|
|
5760
5760
|
__name(makeChainWalker, "makeChainWalker");
|
|
5761
|
-
function* mergeExtendsChain(chain2, opts,
|
|
5761
|
+
function* mergeExtendsChain(chain2, opts, dirname5, context, files, baseLogger) {
|
|
5762
5762
|
if (void 0 === opts.extends) return true;
|
|
5763
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5763
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname5, context.envName, context.caller);
|
|
5764
5764
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5765
5765
|
File already loaded following the config chain:
|
|
5766
5766
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5800,40 +5800,40 @@ File already loaded following the config chain:
|
|
|
5800
5800
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5801
5801
|
}
|
|
5802
5802
|
__name(dedupDescriptors, "dedupDescriptors");
|
|
5803
|
-
function configIsApplicable({ options },
|
|
5804
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5803
|
+
function configIsApplicable({ options }, dirname5, context, configName) {
|
|
5804
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname5, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname5, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname5, configName));
|
|
5805
5805
|
}
|
|
5806
5806
|
__name(configIsApplicable, "configIsApplicable");
|
|
5807
|
-
function configFieldIsApplicable(context, test,
|
|
5808
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
5807
|
+
function configFieldIsApplicable(context, test, dirname5, configName) {
|
|
5808
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname5, configName);
|
|
5809
5809
|
}
|
|
5810
5810
|
__name(configFieldIsApplicable, "configFieldIsApplicable");
|
|
5811
5811
|
function ignoreListReplacer(_key, value2) {
|
|
5812
5812
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5813
5813
|
}
|
|
5814
5814
|
__name(ignoreListReplacer, "ignoreListReplacer");
|
|
5815
|
-
function shouldIgnore(context, ignore, only,
|
|
5816
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
5815
|
+
function shouldIgnore(context, ignore, only, dirname5) {
|
|
5816
|
+
if (ignore && matchesPatterns(context, ignore, dirname5)) {
|
|
5817
5817
|
var _context$filename;
|
|
5818
|
-
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${
|
|
5818
|
+
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname5}"`;
|
|
5819
5819
|
return debug3(message2), context.showConfig && console.log(message2), true;
|
|
5820
5820
|
}
|
|
5821
|
-
if (only && !matchesPatterns(context, only,
|
|
5821
|
+
if (only && !matchesPatterns(context, only, dirname5)) {
|
|
5822
5822
|
var _context$filename2;
|
|
5823
|
-
const message2 = `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 "${
|
|
5823
|
+
const message2 = `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 "${dirname5}"`;
|
|
5824
5824
|
return debug3(message2), context.showConfig && console.log(message2), true;
|
|
5825
5825
|
}
|
|
5826
5826
|
return false;
|
|
5827
5827
|
}
|
|
5828
5828
|
__name(shouldIgnore, "shouldIgnore");
|
|
5829
|
-
function matchesPatterns(context, patterns,
|
|
5830
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
5829
|
+
function matchesPatterns(context, patterns, dirname5, configName) {
|
|
5830
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname5, context.filename, context, configName));
|
|
5831
5831
|
}
|
|
5832
5832
|
__name(matchesPatterns, "matchesPatterns");
|
|
5833
|
-
function matchPattern(pattern,
|
|
5834
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
5833
|
+
function matchPattern(pattern, dirname5, pathToTest, context, configName) {
|
|
5834
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname5, envName: context.envName, caller: context.caller });
|
|
5835
5835
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
5836
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
5836
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname5)), pattern.test(pathToTest);
|
|
5837
5837
|
}
|
|
5838
5838
|
__name(matchPattern, "matchPattern");
|
|
5839
5839
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-chain.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": /* @__PURE__ */ __name((__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
@@ -5845,30 +5845,30 @@ File already loaded following the config chain:
|
|
|
5845
5845
|
}, "_gensync"), data2;
|
|
5846
5846
|
}
|
|
5847
5847
|
__name(_gensync, "_gensync");
|
|
5848
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(
|
|
5848
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(dirname5, options, alias) {
|
|
5849
5849
|
const { plugins, presets, passPerPreset } = options;
|
|
5850
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5851
|
-
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(
|
|
5852
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5850
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname5)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname5)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
5851
|
+
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(dirname5, options, alias) {
|
|
5852
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname5, alias)), presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname5, alias, !!options.passPerPreset)) };
|
|
5853
5853
|
};
|
|
5854
5854
|
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");
|
|
5855
5855
|
function* handlerOf(value2) {
|
|
5856
5856
|
return value2;
|
|
5857
5857
|
}
|
|
5858
5858
|
__name(handlerOf, "handlerOf");
|
|
5859
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
5860
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
5859
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname5) {
|
|
5860
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname5)), options;
|
|
5861
5861
|
}
|
|
5862
5862
|
__name(optionsWithResolvedBrowserslistConfigFile, "optionsWithResolvedBrowserslistConfigFile");
|
|
5863
5863
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5864
|
-
const
|
|
5864
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
5865
5865
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
5866
|
-
return (yield* createPresetDescriptors(items,
|
|
5866
|
+
return (yield* createPresetDescriptors(items, dirname5, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
5867
5867
|
}));
|
|
5868
5868
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5869
|
-
const
|
|
5869
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
5870
5870
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
5871
|
-
return (yield* createPluginDescriptors(items,
|
|
5871
|
+
return (yield* createPluginDescriptors(items, dirname5, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
5872
5872
|
});
|
|
5873
5873
|
}), DEFAULT_OPTIONS = {};
|
|
5874
5874
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -5888,16 +5888,16 @@ File already loaded following the config chain:
|
|
|
5888
5888
|
return desc;
|
|
5889
5889
|
}
|
|
5890
5890
|
__name(loadCachedDescriptor, "loadCachedDescriptor");
|
|
5891
|
-
function* createPresetDescriptors(items,
|
|
5892
|
-
return yield* createDescriptors("preset", items,
|
|
5891
|
+
function* createPresetDescriptors(items, dirname5, alias, passPerPreset) {
|
|
5892
|
+
return yield* createDescriptors("preset", items, dirname5, alias, passPerPreset);
|
|
5893
5893
|
}
|
|
5894
5894
|
__name(createPresetDescriptors, "createPresetDescriptors");
|
|
5895
|
-
function* createPluginDescriptors(items,
|
|
5896
|
-
return yield* createDescriptors("plugin", items,
|
|
5895
|
+
function* createPluginDescriptors(items, dirname5, alias) {
|
|
5896
|
+
return yield* createDescriptors("plugin", items, dirname5, alias);
|
|
5897
5897
|
}
|
|
5898
5898
|
__name(createPluginDescriptors, "createPluginDescriptors");
|
|
5899
|
-
function* createDescriptors(type, items,
|
|
5900
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
5899
|
+
function* createDescriptors(type, items, dirname5, alias, ownPass) {
|
|
5900
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname5, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
5901
5901
|
return function(items2) {
|
|
5902
5902
|
const map2 = /* @__PURE__ */ new Map();
|
|
5903
5903
|
for (const item of items2) {
|
|
@@ -5912,7 +5912,7 @@ File already loaded following the config chain:
|
|
|
5912
5912
|
}(descriptors2), descriptors2;
|
|
5913
5913
|
}
|
|
5914
5914
|
__name(createDescriptors, "createDescriptors");
|
|
5915
|
-
function* createDescriptor(pair,
|
|
5915
|
+
function* createDescriptor(pair, dirname5, { type, alias, ownPass }) {
|
|
5916
5916
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
5917
5917
|
if (desc) return desc;
|
|
5918
5918
|
let name, options, file, value2 = pair;
|
|
@@ -5921,7 +5921,7 @@ File already loaded following the config chain:
|
|
|
5921
5921
|
if ("string" == typeof value2) {
|
|
5922
5922
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
5923
5923
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
5924
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
5924
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname5)), file = { request, resolved: filepath };
|
|
5925
5925
|
}
|
|
5926
5926
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
5927
5927
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -5930,7 +5930,7 @@ File already loaded following the config chain:
|
|
|
5930
5930
|
}
|
|
5931
5931
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
5932
5932
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
5933
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
5933
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname5, ownPass, file };
|
|
5934
5934
|
}
|
|
5935
5935
|
__name(createDescriptor, "createDescriptor");
|
|
5936
5936
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": /* @__PURE__ */ __name((__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
@@ -5971,41 +5971,41 @@ File already loaded following the config chain:
|
|
|
5971
5971
|
}
|
|
5972
5972
|
__name(_gensync, "_gensync");
|
|
5973
5973
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.ROOT_CONFIG_FILENAMES = void 0, exports2.findConfigUpwards = function(rootDir) {
|
|
5974
|
-
let
|
|
5974
|
+
let dirname5 = rootDir;
|
|
5975
5975
|
for (; ; ) {
|
|
5976
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
5977
|
-
const nextDir = _path().dirname(
|
|
5978
|
-
if (
|
|
5979
|
-
|
|
5976
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname5, filename))) return dirname5;
|
|
5977
|
+
const nextDir = _path().dirname(dirname5);
|
|
5978
|
+
if (dirname5 === nextDir) break;
|
|
5979
|
+
dirname5 = nextDir;
|
|
5980
5980
|
}
|
|
5981
5981
|
return null;
|
|
5982
5982
|
}, exports2.findRelativeConfig = function* (packageData, envName, caller) {
|
|
5983
5983
|
let config = null, ignore = null;
|
|
5984
|
-
const
|
|
5984
|
+
const dirname5 = _path().dirname(packageData.filepath);
|
|
5985
5985
|
for (const loc of packageData.directories) {
|
|
5986
5986
|
var _packageData$pkg;
|
|
5987
5987
|
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);
|
|
5988
5988
|
if (!ignore) {
|
|
5989
5989
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
5990
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug3("Found ignore %o from %o.", ignore.filepath,
|
|
5990
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug3("Found ignore %o from %o.", ignore.filepath, dirname5);
|
|
5991
5991
|
}
|
|
5992
5992
|
}
|
|
5993
5993
|
return { config, ignore };
|
|
5994
|
-
}, exports2.findRootConfig = function(
|
|
5995
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
5996
|
-
}, exports2.loadConfig = function* (name,
|
|
5994
|
+
}, exports2.findRootConfig = function(dirname5, envName, caller) {
|
|
5995
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname5, envName, caller);
|
|
5996
|
+
}, exports2.loadConfig = function* (name, dirname5, envName, caller) {
|
|
5997
5997
|
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")) => {
|
|
5998
5998
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
5999
5999
|
if (f2) return f2;
|
|
6000
6000
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6001
|
-
})(name, { paths: [
|
|
6001
|
+
})(name, { paths: [dirname5] }), conf = yield* readConfig(filepath, envName, caller);
|
|
6002
6002
|
var v4, w5;
|
|
6003
6003
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
6004
|
-
return debug3("Loaded config %o from %o.", name,
|
|
6005
|
-
}, exports2.resolveShowConfigPath = function* (
|
|
6004
|
+
return debug3("Loaded config %o from %o.", name, dirname5), conf;
|
|
6005
|
+
}, exports2.resolveShowConfigPath = function* (dirname5) {
|
|
6006
6006
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
6007
6007
|
if (null != targetPath) {
|
|
6008
|
-
const absolutePath = _path().resolve(
|
|
6008
|
+
const absolutePath = _path().resolve(dirname5, targetPath);
|
|
6009
6009
|
if (!(yield* fs3.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
6010
6010
|
return absolutePath;
|
|
6011
6011
|
}
|
|
@@ -6086,15 +6086,15 @@ module.exports = function(api) {
|
|
|
6086
6086
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
6087
6087
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
6088
6088
|
});
|
|
6089
|
-
function* loadOneConfig(names,
|
|
6090
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
6089
|
+
function* loadOneConfig(names, dirname5, envName, caller, previousConfig = null) {
|
|
6090
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname5, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
6091
6091
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
6092
6092
|
- ${_path().basename(previousConfig2.filepath)}
|
|
6093
6093
|
- ${config2.filepath}
|
|
6094
|
-
from ${
|
|
6094
|
+
from ${dirname5}`);
|
|
6095
6095
|
return config2 || previousConfig2;
|
|
6096
6096
|
}, previousConfig);
|
|
6097
|
-
return config && debug3("Found configuration %o from %o.", config.filepath,
|
|
6097
|
+
return config && debug3("Found configuration %o from %o.", config.filepath, dirname5), config;
|
|
6098
6098
|
}
|
|
6099
6099
|
__name(loadOneConfig, "loadOneConfig");
|
|
6100
6100
|
function readConfig(filepath, envName, caller) {
|
|
@@ -6302,15 +6302,15 @@ packageExtensions:
|
|
|
6302
6302
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.findPackageData = function* (filepath) {
|
|
6303
6303
|
let pkg = null;
|
|
6304
6304
|
const directories = [];
|
|
6305
|
-
let isPackage = true,
|
|
6306
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
6307
|
-
directories.push(
|
|
6308
|
-
const nextLoc = _path().dirname(
|
|
6309
|
-
if (
|
|
6305
|
+
let isPackage = true, dirname5 = _path().dirname(filepath);
|
|
6306
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname5); ) {
|
|
6307
|
+
directories.push(dirname5), pkg = yield* readConfigPackage(_path().join(dirname5, PACKAGE_FILENAME));
|
|
6308
|
+
const nextLoc = _path().dirname(dirname5);
|
|
6309
|
+
if (dirname5 === nextLoc) {
|
|
6310
6310
|
isPackage = false;
|
|
6311
6311
|
break;
|
|
6312
6312
|
}
|
|
6313
|
-
|
|
6313
|
+
dirname5 = nextLoc;
|
|
6314
6314
|
}
|
|
6315
6315
|
return { filepath, directories, pkg, isPackage };
|
|
6316
6316
|
};
|
|
@@ -6343,12 +6343,12 @@ packageExtensions:
|
|
|
6343
6343
|
}, "_path"), data2;
|
|
6344
6344
|
}
|
|
6345
6345
|
__name(_path, "_path");
|
|
6346
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name,
|
|
6347
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6348
|
-
return debug3("Loaded plugin %o from %o.", name,
|
|
6349
|
-
}, exports2.loadPreset = function* (name,
|
|
6350
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6351
|
-
return debug3("Loaded preset %o from %o.", name,
|
|
6346
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name, dirname5) {
|
|
6347
|
+
const { filepath, loader } = resolvePlugin(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6348
|
+
return debug3("Loaded plugin %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
6349
|
+
}, exports2.loadPreset = function* (name, dirname5) {
|
|
6350
|
+
const { filepath, loader } = resolvePreset(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6351
|
+
return debug3("Loaded preset %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
6352
6352
|
}, exports2.resolvePreset = exports2.resolvePlugin = void 0;
|
|
6353
6353
|
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");
|
|
6354
6354
|
function _url() {
|
|
@@ -6390,13 +6390,13 @@ packageExtensions:
|
|
|
6390
6390
|
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;
|
|
6391
6391
|
}
|
|
6392
6392
|
__name(resolveAlternativesHelper, "resolveAlternativesHelper");
|
|
6393
|
-
function tryRequireResolve(id,
|
|
6393
|
+
function tryRequireResolve(id, dirname5) {
|
|
6394
6394
|
try {
|
|
6395
|
-
return
|
|
6395
|
+
return dirname5 ? { 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")) => {
|
|
6396
6396
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6397
6397
|
if (f2) return f2;
|
|
6398
6398
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6399
|
-
})(id, { paths: [
|
|
6399
|
+
})(id, { paths: [dirname5] }) } : { 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) };
|
|
6400
6400
|
} catch (error) {
|
|
6401
6401
|
return { error, value: null };
|
|
6402
6402
|
}
|
|
@@ -6411,27 +6411,27 @@ packageExtensions:
|
|
|
6411
6411
|
}
|
|
6412
6412
|
}
|
|
6413
6413
|
__name(tryImportMetaResolve, "tryImportMetaResolve");
|
|
6414
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6414
|
+
function resolveStandardizedNameForRequire(type, name, dirname5) {
|
|
6415
6415
|
const it = resolveAlternativesHelper(type, name);
|
|
6416
6416
|
let res = it.next();
|
|
6417
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6417
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname5));
|
|
6418
6418
|
return { loader: "require", filepath: res.value };
|
|
6419
6419
|
}
|
|
6420
6420
|
__name(resolveStandardizedNameForRequire, "resolveStandardizedNameForRequire");
|
|
6421
|
-
function resolveStandardizedName(type, name,
|
|
6422
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6421
|
+
function resolveStandardizedName(type, name, dirname5, allowAsync) {
|
|
6422
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
6423
6423
|
try {
|
|
6424
|
-
const resolved = function(type2, name2,
|
|
6425
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6424
|
+
const resolved = function(type2, name2, dirname6) {
|
|
6425
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname6, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6426
6426
|
let res = it.next();
|
|
6427
6427
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6428
6428
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6429
|
-
}(type, name,
|
|
6430
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6429
|
+
}(type, name, dirname5);
|
|
6430
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname5}.`), { type: "MODULE_NOT_FOUND" });
|
|
6431
6431
|
return resolved;
|
|
6432
6432
|
} catch (e2) {
|
|
6433
6433
|
try {
|
|
6434
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6434
|
+
return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
6435
6435
|
} catch (e22) {
|
|
6436
6436
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6437
6437
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6567,7 +6567,7 @@ packageExtensions:
|
|
|
6567
6567
|
};
|
|
6568
6568
|
}
|
|
6569
6569
|
__name(enhanceError, "enhanceError");
|
|
6570
|
-
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6570
|
+
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias }, cache2) {
|
|
6571
6571
|
if (false === options) throw new Error("Assertion failure");
|
|
6572
6572
|
options = options || {};
|
|
6573
6573
|
const externalDependencies = [];
|
|
@@ -6575,7 +6575,7 @@ packageExtensions:
|
|
|
6575
6575
|
if ("function" == typeof value2) {
|
|
6576
6576
|
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));
|
|
6577
6577
|
try {
|
|
6578
|
-
item = yield* factory(api, options,
|
|
6578
|
+
item = yield* factory(api, options, dirname5);
|
|
6579
6579
|
} catch (e2) {
|
|
6580
6580
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6581
6581
|
}
|
|
@@ -6587,11 +6587,11 @@ packageExtensions:
|
|
|
6587
6587
|
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()\`
|
|
6588
6588
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6589
6589
|
}
|
|
6590
|
-
return { value: item, options, dirname:
|
|
6591
|
-
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6590
|
+
return { value: item, options, dirname: dirname5, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6591
|
+
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias, externalDependencies }, cache2) {
|
|
6592
6592
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6593
6593
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6594
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6594
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname5 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run2) => cache2.invalidate((data2) => run2(inheritsDescriptor, data2)));
|
|
6595
6595
|
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]));
|
|
6596
6596
|
}
|
|
6597
6597
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6615,7 +6615,7 @@ packageExtensions:
|
|
|
6615
6615
|
const { options } = preset;
|
|
6616
6616
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6617
6617
|
}
|
|
6618
|
-
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6618
|
+
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname5, alias, externalDependencies }) => ({ options: (0, _options2.validate)("preset", value2), alias, dirname: dirname5, externalDependencies }));
|
|
6619
6619
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6620
6620
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6621
6621
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6746,8 +6746,8 @@ packageExtensions:
|
|
|
6746
6746
|
}, "_path"), data2;
|
|
6747
6747
|
}
|
|
6748
6748
|
__name(_path, "_path");
|
|
6749
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname:
|
|
6750
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6749
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname: dirname5 = ".", type } = {}) {
|
|
6750
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname5), { type, alias: "programmatic item" }));
|
|
6751
6751
|
}, exports2.createItemFromDescriptor = createItemFromDescriptor, exports2.getItemDescriptor = function(item) {
|
|
6752
6752
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6753
6753
|
return;
|
|
@@ -6802,7 +6802,7 @@ packageExtensions:
|
|
|
6802
6802
|
const _excluded = ["showIgnoredFiles"];
|
|
6803
6803
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6804
6804
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6805
|
-
const args = inputOpts ? (0, _options2.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6805
|
+
const args = inputOpts ? (0, _options2.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) {
|
|
6806
6806
|
switch (rootMode2) {
|
|
6807
6807
|
case "root":
|
|
6808
6808
|
return rootDir2;
|
|
@@ -6819,7 +6819,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6819
6819
|
default:
|
|
6820
6820
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6821
6821
|
}
|
|
6822
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6822
|
+
}(_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);
|
|
6823
6823
|
if (!configChain) return null;
|
|
6824
6824
|
const merged = { assumptions: {} };
|
|
6825
6825
|
configChain.options.forEach((opts) => {
|
|
@@ -6849,14 +6849,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6849
6849
|
}, "_path"), data2;
|
|
6850
6850
|
}
|
|
6851
6851
|
__name(_path, "_path");
|
|
6852
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern,
|
|
6853
|
-
const parts = _path().resolve(
|
|
6852
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern, dirname5) {
|
|
6853
|
+
const parts = _path().resolve(dirname5, pattern).split(_path().sep);
|
|
6854
6854
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6855
6855
|
const last2 = i2 === parts.length - 1;
|
|
6856
|
-
return "**" === part ? last2 ? starStarPatLast : starStarPat : "*" === part ? last2 ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp2(part.slice(1)) + (last2 ? endSep :
|
|
6856
|
+
return "**" === part ? last2 ? starStarPatLast : starStarPat : "*" === part ? last2 ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp2(part.slice(1)) + (last2 ? endSep : sep3) : escapeRegExp2(part) + (last2 ? endSep : sep3);
|
|
6857
6857
|
})].join(""));
|
|
6858
6858
|
};
|
|
6859
|
-
const
|
|
6859
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6860
6860
|
function escapeRegExp2(string) {
|
|
6861
6861
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6862
6862
|
}
|
|
@@ -7418,12 +7418,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7418
7418
|
if (!result2) {
|
|
7419
7419
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7420
7420
|
if (yield* (0, _async.isAsync)()) {
|
|
7421
|
-
let
|
|
7421
|
+
let resolve4, reject2;
|
|
7422
7422
|
resultP = new Promise((res, rej) => {
|
|
7423
|
-
|
|
7423
|
+
resolve4 = res, reject2 = rej;
|
|
7424
7424
|
});
|
|
7425
7425
|
try {
|
|
7426
|
-
result2 = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7426
|
+
result2 = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result2.value);
|
|
7427
7427
|
} catch (error) {
|
|
7428
7428
|
result2 = { ok: false, value: error }, resultP = null, promiseReferenced && reject2(error);
|
|
7429
7429
|
}
|
|
@@ -7530,8 +7530,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7530
7530
|
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");
|
|
7531
7531
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7532
7532
|
exports2.version = "7.26.0";
|
|
7533
|
-
exports2.resolvePlugin = (name,
|
|
7534
|
-
exports2.resolvePreset = (name,
|
|
7533
|
+
exports2.resolvePlugin = (name, dirname5) => resolvers.resolvePlugin(name, dirname5, false).filepath;
|
|
7534
|
+
exports2.resolvePreset = (name, dirname5) => resolvers.resolvePreset(name, dirname5, false).filepath;
|
|
7535
7535
|
exports2.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7536
7536
|
exports2.OptionManager = class {
|
|
7537
7537
|
init(opts) {
|
|
@@ -8183,7 +8183,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8183
8183
|
}
|
|
8184
8184
|
__name(_path, "_path");
|
|
8185
8185
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(config) {
|
|
8186
|
-
const { filename, cwd:
|
|
8186
|
+
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: compact2 = "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: compact2, minified: opts.minified, sourceMaps, sourceRoot, sourceFileName }, opts.generatorOpts) });
|
|
8187
8187
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
8188
8188
|
return options;
|
|
8189
8189
|
};
|
|
@@ -8515,8 +8515,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8515
8515
|
const packageType = getPackageType2(url);
|
|
8516
8516
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8517
8517
|
}
|
|
8518
|
-
const
|
|
8519
|
-
if (
|
|
8518
|
+
const format4 = extensionFormatMap2[value2];
|
|
8519
|
+
if (format4) return format4;
|
|
8520
8520
|
if (ignoreErrors) return;
|
|
8521
8521
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8522
8522
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9884,11 +9884,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9884
9884
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9885
9885
|
}
|
|
9886
9886
|
__name(maybePrintTrailingCommaOrSemicolon, "maybePrintTrailingCommaOrSemicolon");
|
|
9887
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9887
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9888
9888
|
var _printer$tokenMap;
|
|
9889
9889
|
let hasLeadingToken = 0;
|
|
9890
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9891
|
-
this.space(), this.token(
|
|
9890
|
+
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) {
|
|
9891
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9892
9892
|
});
|
|
9893
9893
|
}
|
|
9894
9894
|
__name(tsPrintUnionOrIntersectionType, "tsPrintUnionOrIntersectionType");
|
|
@@ -10112,8 +10112,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10112
10112
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/generators/typescript.js"), "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": /* @__PURE__ */ __name((__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
10113
10113
|
"use strict";
|
|
10114
10114
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(ast, opts = {}, code) {
|
|
10115
|
-
const
|
|
10116
|
-
return new _printer.default(
|
|
10115
|
+
const format4 = normalizeOptions(code, opts, ast), map2 = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
10116
|
+
return new _printer.default(format4, map2, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
10117
10117
|
};
|
|
10118
10118
|
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");
|
|
10119
10119
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -10125,11 +10125,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10125
10125
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
10126
10126
|
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.");
|
|
10127
10127
|
}
|
|
10128
|
-
const
|
|
10128
|
+
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 };
|
|
10129
10129
|
var _opts$recordAndTupleS;
|
|
10130
|
-
|
|
10131
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
10132
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
10130
|
+
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);
|
|
10131
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
10132
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
10133
10133
|
}
|
|
10134
10134
|
__name(normalizeOptions, "normalizeOptions");
|
|
10135
10135
|
exports2.CodeGenerator = class {
|
|
@@ -10405,8 +10405,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10405
10405
|
static {
|
|
10406
10406
|
__name(this, "Printer");
|
|
10407
10407
|
}
|
|
10408
|
-
constructor(
|
|
10409
|
-
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 =
|
|
10408
|
+
constructor(format4, map2, tokens, originalCode) {
|
|
10409
|
+
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 == map2 ? void 0 : map2._inputMap, this._buf = new _buffer.default(map2, format4.indent.style[0]);
|
|
10410
10410
|
}
|
|
10411
10411
|
enterForStatementInit() {
|
|
10412
10412
|
return this.inForStatementInit ? () => {
|
|
@@ -10425,12 +10425,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10425
10425
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
10426
10426
|
}
|
|
10427
10427
|
indent() {
|
|
10428
|
-
const { format:
|
|
10429
|
-
|
|
10428
|
+
const { format: format4 } = this;
|
|
10429
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
10430
10430
|
}
|
|
10431
10431
|
dedent() {
|
|
10432
|
-
const { format:
|
|
10433
|
-
|
|
10432
|
+
const { format: format4 } = this;
|
|
10433
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
10434
10434
|
}
|
|
10435
10435
|
semicolon(force = false) {
|
|
10436
10436
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -10451,8 +10451,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10451
10451
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
10452
10452
|
}
|
|
10453
10453
|
space(force = false) {
|
|
10454
|
-
const { format:
|
|
10455
|
-
if (!
|
|
10454
|
+
const { format: format4 } = this;
|
|
10455
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
10456
10456
|
if (force) this._space();
|
|
10457
10457
|
else if (this._buf.hasContent()) {
|
|
10458
10458
|
const lastCp = this.getLastChar();
|
|
@@ -10551,8 +10551,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10551
10551
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10552
10552
|
}
|
|
10553
10553
|
_catchUp(prop, loc) {
|
|
10554
|
-
const { format:
|
|
10555
|
-
if (!
|
|
10554
|
+
const { format: format4 } = this;
|
|
10555
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10556
10556
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10557
10557
|
null != pos && this._catchUpTo(pos);
|
|
10558
10558
|
}
|
|
@@ -10576,8 +10576,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10576
10576
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10577
10577
|
if (!node) return;
|
|
10578
10578
|
this._endsWithInnerRaw = false;
|
|
10579
|
-
const nodeType = node.type,
|
|
10580
|
-
node._compact && (
|
|
10579
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10580
|
+
node._compact && (format4.concise = true);
|
|
10581
10581
|
const printMethod = this[nodeType];
|
|
10582
10582
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10583
10583
|
const parent = this._currentNode;
|
|
@@ -10585,7 +10585,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10585
10585
|
const oldInAux = this._insideAux;
|
|
10586
10586
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10587
10587
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10588
|
-
let shouldPrintParens = parenthesized &&
|
|
10588
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10589
10589
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10590
10590
|
switch (null == parent ? void 0 : parent.type) {
|
|
10591
10591
|
case "ExpressionStatement":
|
|
@@ -10606,7 +10606,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10606
10606
|
(!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)));
|
|
10607
10607
|
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);
|
|
10608
10608
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10609
|
-
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,
|
|
10609
|
+
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;
|
|
10610
10610
|
}
|
|
10611
10611
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10612
10612
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10692,9 +10692,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10692
10692
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10693
10693
|
}
|
|
10694
10694
|
_printNewline(newLine, opts) {
|
|
10695
|
-
const
|
|
10696
|
-
if (
|
|
10697
|
-
if (
|
|
10695
|
+
const format4 = this.format;
|
|
10696
|
+
if (format4.retainLines || format4.compact) return;
|
|
10697
|
+
if (format4.concise) return void this.space();
|
|
10698
10698
|
if (!newLine) return;
|
|
10699
10699
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10700
10700
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -13261,13 +13261,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
13261
13261
|
}(range2, api.version);
|
|
13262
13262
|
}, "assertVersion") };
|
|
13263
13263
|
function declare(builder) {
|
|
13264
|
-
return (api, options,
|
|
13264
|
+
return (api, options, dirname5) => {
|
|
13265
13265
|
var _clonedApi2;
|
|
13266
13266
|
let clonedApi;
|
|
13267
13267
|
for (const name of Object.keys(apiPolyfills)) {
|
|
13268
13268
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
13269
13269
|
}
|
|
13270
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
13270
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname5);
|
|
13271
13271
|
};
|
|
13272
13272
|
}
|
|
13273
13273
|
__name(declare, "declare");
|
|
@@ -16627,9 +16627,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16627
16627
|
var _node$extra;
|
|
16628
16628
|
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();
|
|
16629
16629
|
}
|
|
16630
|
-
forwardNoArrowParamsConversionAt(node,
|
|
16630
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
16631
16631
|
let result2;
|
|
16632
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result2 =
|
|
16632
|
+
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result2 = parse8(), this.state.noArrowParamsConversionAt.pop()) : result2 = parse8(), result2;
|
|
16633
16633
|
}
|
|
16634
16634
|
parseParenItem(node, startLoc) {
|
|
16635
16635
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23951,8 +23951,8 @@ ${str}
|
|
|
23951
23951
|
}
|
|
23952
23952
|
}
|
|
23953
23953
|
dump() {
|
|
23954
|
-
const
|
|
23955
|
-
console.log(
|
|
23954
|
+
const sep3 = "-".repeat(60);
|
|
23955
|
+
console.log(sep3);
|
|
23956
23956
|
let scope = this;
|
|
23957
23957
|
do {
|
|
23958
23958
|
console.log("#", scope.block.type);
|
|
@@ -23961,7 +23961,7 @@ ${str}
|
|
|
23961
23961
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23962
23962
|
}
|
|
23963
23963
|
} while (scope = scope.parent);
|
|
23964
|
-
console.log(
|
|
23964
|
+
console.log(sep3);
|
|
23965
23965
|
}
|
|
23966
23966
|
hasLabel(name) {
|
|
23967
23967
|
return !!this.getLabel(name);
|
|
@@ -30254,17 +30254,17 @@ ${trace}`);
|
|
|
30254
30254
|
}
|
|
30255
30255
|
__name(importMetaResolvePlugin, "importMetaResolvePlugin");
|
|
30256
30256
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
30257
|
-
const
|
|
30258
|
-
function
|
|
30259
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
30257
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
30258
|
+
function normalizeWindowsPath3(input = "") {
|
|
30259
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
30260
30260
|
}
|
|
30261
|
-
__name(
|
|
30262
|
-
const
|
|
30261
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
30262
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
30263
30263
|
const pathe_ff20891b_isAbsolute = /* @__PURE__ */ __name(function(p2) {
|
|
30264
|
-
return
|
|
30264
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
30265
30265
|
}, "pathe_ff20891b_isAbsolute"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
30266
|
-
const segments =
|
|
30267
|
-
return 1 === segments.length &&
|
|
30266
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
30267
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
30268
30268
|
}, "pathe_ff20891b_dirname");
|
|
30269
30269
|
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]");
|
|
30270
30270
|
function isInAstralSet2(code, set) {
|
|
@@ -38182,6 +38182,179 @@ var init_dist2 = __esm({
|
|
|
38182
38182
|
}
|
|
38183
38183
|
});
|
|
38184
38184
|
|
|
38185
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
38186
|
+
function normalizeWindowsPath2(input = "") {
|
|
38187
|
+
if (!input) {
|
|
38188
|
+
return input;
|
|
38189
|
+
}
|
|
38190
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
38191
|
+
}
|
|
38192
|
+
function cwd2() {
|
|
38193
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
38194
|
+
return process.cwd().replace(/\\/g, "/");
|
|
38195
|
+
}
|
|
38196
|
+
return "/";
|
|
38197
|
+
}
|
|
38198
|
+
function normalizeString2(path6, allowAboveRoot) {
|
|
38199
|
+
let res = "";
|
|
38200
|
+
let lastSegmentLength = 0;
|
|
38201
|
+
let lastSlash = -1;
|
|
38202
|
+
let dots = 0;
|
|
38203
|
+
let char = null;
|
|
38204
|
+
for (let index = 0; index <= path6.length; ++index) {
|
|
38205
|
+
if (index < path6.length) {
|
|
38206
|
+
char = path6[index];
|
|
38207
|
+
} else if (char === "/") {
|
|
38208
|
+
break;
|
|
38209
|
+
} else {
|
|
38210
|
+
char = "/";
|
|
38211
|
+
}
|
|
38212
|
+
if (char === "/") {
|
|
38213
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
38214
|
+
else if (dots === 2) {
|
|
38215
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
38216
|
+
if (res.length > 2) {
|
|
38217
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
38218
|
+
if (lastSlashIndex === -1) {
|
|
38219
|
+
res = "";
|
|
38220
|
+
lastSegmentLength = 0;
|
|
38221
|
+
} else {
|
|
38222
|
+
res = res.slice(0, lastSlashIndex);
|
|
38223
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
38224
|
+
}
|
|
38225
|
+
lastSlash = index;
|
|
38226
|
+
dots = 0;
|
|
38227
|
+
continue;
|
|
38228
|
+
} else if (res.length > 0) {
|
|
38229
|
+
res = "";
|
|
38230
|
+
lastSegmentLength = 0;
|
|
38231
|
+
lastSlash = index;
|
|
38232
|
+
dots = 0;
|
|
38233
|
+
continue;
|
|
38234
|
+
}
|
|
38235
|
+
}
|
|
38236
|
+
if (allowAboveRoot) {
|
|
38237
|
+
res += res.length > 0 ? "/.." : "..";
|
|
38238
|
+
lastSegmentLength = 2;
|
|
38239
|
+
}
|
|
38240
|
+
} else {
|
|
38241
|
+
if (res.length > 0) {
|
|
38242
|
+
res += `/${path6.slice(lastSlash + 1, index)}`;
|
|
38243
|
+
} else {
|
|
38244
|
+
res = path6.slice(lastSlash + 1, index);
|
|
38245
|
+
}
|
|
38246
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
38247
|
+
}
|
|
38248
|
+
lastSlash = index;
|
|
38249
|
+
dots = 0;
|
|
38250
|
+
} else if (char === "." && dots !== -1) {
|
|
38251
|
+
++dots;
|
|
38252
|
+
} else {
|
|
38253
|
+
dots = -1;
|
|
38254
|
+
}
|
|
38255
|
+
}
|
|
38256
|
+
return res;
|
|
38257
|
+
}
|
|
38258
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join2, resolve2, isAbsolute2, dirname2;
|
|
38259
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
38260
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
38261
|
+
init_esm_shims();
|
|
38262
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
38263
|
+
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
38264
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
38265
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
38266
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
38267
|
+
normalize2 = /* @__PURE__ */ __name(function(path6) {
|
|
38268
|
+
if (path6.length === 0) {
|
|
38269
|
+
return ".";
|
|
38270
|
+
}
|
|
38271
|
+
path6 = normalizeWindowsPath2(path6);
|
|
38272
|
+
const isUNCPath = path6.match(_UNC_REGEX2);
|
|
38273
|
+
const isPathAbsolute = isAbsolute2(path6);
|
|
38274
|
+
const trailingSeparator = path6[path6.length - 1] === "/";
|
|
38275
|
+
path6 = normalizeString2(path6, !isPathAbsolute);
|
|
38276
|
+
if (path6.length === 0) {
|
|
38277
|
+
if (isPathAbsolute) {
|
|
38278
|
+
return "/";
|
|
38279
|
+
}
|
|
38280
|
+
return trailingSeparator ? "./" : ".";
|
|
38281
|
+
}
|
|
38282
|
+
if (trailingSeparator) {
|
|
38283
|
+
path6 += "/";
|
|
38284
|
+
}
|
|
38285
|
+
if (_DRIVE_LETTER_RE2.test(path6)) {
|
|
38286
|
+
path6 += "/";
|
|
38287
|
+
}
|
|
38288
|
+
if (isUNCPath) {
|
|
38289
|
+
if (!isPathAbsolute) {
|
|
38290
|
+
return `//./${path6}`;
|
|
38291
|
+
}
|
|
38292
|
+
return `//${path6}`;
|
|
38293
|
+
}
|
|
38294
|
+
return isPathAbsolute && !isAbsolute2(path6) ? `/${path6}` : path6;
|
|
38295
|
+
}, "normalize");
|
|
38296
|
+
join2 = /* @__PURE__ */ __name(function(...segments) {
|
|
38297
|
+
let path6 = "";
|
|
38298
|
+
for (const seg of segments) {
|
|
38299
|
+
if (!seg) {
|
|
38300
|
+
continue;
|
|
38301
|
+
}
|
|
38302
|
+
if (path6.length > 0) {
|
|
38303
|
+
const pathTrailing = path6[path6.length - 1] === "/";
|
|
38304
|
+
const segLeading = seg[0] === "/";
|
|
38305
|
+
const both = pathTrailing && segLeading;
|
|
38306
|
+
if (both) {
|
|
38307
|
+
path6 += seg.slice(1);
|
|
38308
|
+
} else {
|
|
38309
|
+
path6 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
38310
|
+
}
|
|
38311
|
+
} else {
|
|
38312
|
+
path6 += seg;
|
|
38313
|
+
}
|
|
38314
|
+
}
|
|
38315
|
+
return normalize2(path6);
|
|
38316
|
+
}, "join");
|
|
38317
|
+
__name(cwd2, "cwd");
|
|
38318
|
+
resolve2 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
38319
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
38320
|
+
let resolvedPath = "";
|
|
38321
|
+
let resolvedAbsolute = false;
|
|
38322
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
38323
|
+
const path6 = index >= 0 ? arguments_[index] : cwd2();
|
|
38324
|
+
if (!path6 || path6.length === 0) {
|
|
38325
|
+
continue;
|
|
38326
|
+
}
|
|
38327
|
+
resolvedPath = `${path6}/${resolvedPath}`;
|
|
38328
|
+
resolvedAbsolute = isAbsolute2(path6);
|
|
38329
|
+
}
|
|
38330
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
38331
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
38332
|
+
return `/${resolvedPath}`;
|
|
38333
|
+
}
|
|
38334
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
38335
|
+
}, "resolve");
|
|
38336
|
+
__name(normalizeString2, "normalizeString");
|
|
38337
|
+
isAbsolute2 = /* @__PURE__ */ __name(function(p2) {
|
|
38338
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
38339
|
+
}, "isAbsolute");
|
|
38340
|
+
dirname2 = /* @__PURE__ */ __name(function(p2) {
|
|
38341
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
38342
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
38343
|
+
segments[0] += "/";
|
|
38344
|
+
}
|
|
38345
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
38346
|
+
}, "dirname");
|
|
38347
|
+
}
|
|
38348
|
+
});
|
|
38349
|
+
|
|
38350
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
38351
|
+
var init_dist3 = __esm({
|
|
38352
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
38353
|
+
init_esm_shims();
|
|
38354
|
+
init_pathe_BLwDEnA5();
|
|
38355
|
+
}
|
|
38356
|
+
});
|
|
38357
|
+
|
|
38185
38358
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
38186
38359
|
function g(e2, t2) {
|
|
38187
38360
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -41034,19 +41207,19 @@ ${f2}`, i2);
|
|
|
41034
41207
|
});
|
|
41035
41208
|
|
|
41036
41209
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
41037
|
-
var
|
|
41210
|
+
var init_dist4 = __esm({
|
|
41038
41211
|
"../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
41039
41212
|
init_esm_shims();
|
|
41040
41213
|
init_confbox_f9f03f05();
|
|
41041
41214
|
}
|
|
41042
41215
|
});
|
|
41043
41216
|
|
|
41044
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
41217
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
41045
41218
|
import { statSync, promises } from "node:fs";
|
|
41046
41219
|
async function findFile(filename, _options2 = {}) {
|
|
41047
41220
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
41048
41221
|
const options = { ...defaultFindOptions, ..._options2 };
|
|
41049
|
-
const basePath =
|
|
41222
|
+
const basePath = resolve2(options.startingFrom);
|
|
41050
41223
|
const leadingSlash = basePath[0] === "/";
|
|
41051
41224
|
const segments = basePath.split("/").filter(Boolean);
|
|
41052
41225
|
if (leadingSlash) {
|
|
@@ -41059,7 +41232,7 @@ async function findFile(filename, _options2 = {}) {
|
|
|
41059
41232
|
if (options.reverse) {
|
|
41060
41233
|
for (let index = root2 + 1; index <= segments.length; index++) {
|
|
41061
41234
|
for (const filename2 of filenames) {
|
|
41062
|
-
const filePath =
|
|
41235
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41063
41236
|
if (await options.test(filePath)) {
|
|
41064
41237
|
return filePath;
|
|
41065
41238
|
}
|
|
@@ -41068,7 +41241,7 @@ async function findFile(filename, _options2 = {}) {
|
|
|
41068
41241
|
} else {
|
|
41069
41242
|
for (let index = segments.length; index > root2; index--) {
|
|
41070
41243
|
for (const filename2 of filenames) {
|
|
41071
|
-
const filePath =
|
|
41244
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41072
41245
|
if (await options.test(filePath)) {
|
|
41073
41246
|
return filePath;
|
|
41074
41247
|
}
|
|
@@ -41099,14 +41272,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
41099
41272
|
return parsed;
|
|
41100
41273
|
}
|
|
41101
41274
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
41102
|
-
const resolvedPath =
|
|
41275
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41103
41276
|
return findNearestFile("package.json", {
|
|
41104
41277
|
startingFrom: resolvedPath,
|
|
41105
41278
|
...options
|
|
41106
41279
|
});
|
|
41107
41280
|
}
|
|
41108
41281
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
41109
|
-
const resolvedPath =
|
|
41282
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41110
41283
|
const _options2 = { startingFrom: resolvedPath, ...options };
|
|
41111
41284
|
try {
|
|
41112
41285
|
return await findNearestFile(lockFiles, _options2);
|
|
@@ -41115,11 +41288,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
41115
41288
|
throw new Error("No lockfile found from " + id);
|
|
41116
41289
|
}
|
|
41117
41290
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
41118
|
-
const resolvedPath =
|
|
41291
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41119
41292
|
const _options2 = { startingFrom: resolvedPath, ...options };
|
|
41120
41293
|
try {
|
|
41121
41294
|
const r4 = await findNearestFile(".git/config", _options2);
|
|
41122
|
-
return
|
|
41295
|
+
return resolve2(r4, "../..");
|
|
41123
41296
|
} catch {
|
|
41124
41297
|
}
|
|
41125
41298
|
try {
|
|
@@ -41127,23 +41300,23 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
41127
41300
|
..._options2,
|
|
41128
41301
|
reverse: true
|
|
41129
41302
|
});
|
|
41130
|
-
return
|
|
41303
|
+
return dirname2(r4);
|
|
41131
41304
|
} catch {
|
|
41132
41305
|
}
|
|
41133
41306
|
try {
|
|
41134
41307
|
const r4 = await findFile(resolvedPath, _options2);
|
|
41135
|
-
return
|
|
41308
|
+
return dirname2(r4);
|
|
41136
41309
|
} catch {
|
|
41137
41310
|
}
|
|
41138
41311
|
throw new Error("Cannot detect workspace root from " + id);
|
|
41139
41312
|
}
|
|
41140
41313
|
var defaultFindOptions, FileCache, lockFiles;
|
|
41141
|
-
var
|
|
41142
|
-
"../../node_modules/.pnpm/pkg-types@1.3.
|
|
41314
|
+
var init_dist5 = __esm({
|
|
41315
|
+
"../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
41143
41316
|
init_esm_shims();
|
|
41144
|
-
init_dist();
|
|
41145
|
-
init_dist5();
|
|
41146
41317
|
init_dist3();
|
|
41318
|
+
init_dist6();
|
|
41319
|
+
init_dist4();
|
|
41147
41320
|
defaultFindOptions = {
|
|
41148
41321
|
startingFrom: ".",
|
|
41149
41322
|
rootPattern: /^node_modules$/,
|
|
@@ -41167,22 +41340,23 @@ var init_dist4 = __esm({
|
|
|
41167
41340
|
"package-lock.json",
|
|
41168
41341
|
"pnpm-lock.yaml",
|
|
41169
41342
|
"npm-shrinkwrap.json",
|
|
41170
|
-
"bun.lockb"
|
|
41343
|
+
"bun.lockb",
|
|
41344
|
+
"bun.lock"
|
|
41171
41345
|
];
|
|
41172
41346
|
__name(resolveLockfile, "resolveLockfile");
|
|
41173
41347
|
__name(findWorkspaceDir, "findWorkspaceDir");
|
|
41174
41348
|
}
|
|
41175
41349
|
});
|
|
41176
41350
|
|
|
41177
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
41351
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
41178
41352
|
import { builtinModules, createRequire as createRequire2 } from "node:module";
|
|
41179
41353
|
import fs, { realpathSync, statSync as statSync2, promises as promises2 } from "node:fs";
|
|
41180
41354
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
41181
41355
|
import assert from "node:assert";
|
|
41182
41356
|
import process$1 from "node:process";
|
|
41183
|
-
import path2, { dirname as
|
|
41357
|
+
import path2, { dirname as dirname3 } from "node:path";
|
|
41184
41358
|
import v8 from "node:v8";
|
|
41185
|
-
import { format as
|
|
41359
|
+
import { format as format3, inspect } from "node:util";
|
|
41186
41360
|
function normalizeSlash(path6) {
|
|
41187
41361
|
return path6.replace(/\\/g, "/");
|
|
41188
41362
|
}
|
|
@@ -41264,7 +41438,7 @@ function getMessage(key, parameters, self2) {
|
|
|
41264
41438
|
);
|
|
41265
41439
|
if (parameters.length === 0) return message2;
|
|
41266
41440
|
parameters.unshift(message2);
|
|
41267
|
-
return Reflect.apply(
|
|
41441
|
+
return Reflect.apply(format3, null, parameters);
|
|
41268
41442
|
}
|
|
41269
41443
|
function determineSpecificType(value2) {
|
|
41270
41444
|
if (value2 === null || value2 === void 0) {
|
|
@@ -41390,7 +41564,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
41390
41564
|
) || [null, null, null];
|
|
41391
41565
|
return mimeToFormat(mime);
|
|
41392
41566
|
}
|
|
41393
|
-
function
|
|
41567
|
+
function extname3(url) {
|
|
41394
41568
|
const pathname = url.pathname;
|
|
41395
41569
|
let index = pathname.length;
|
|
41396
41570
|
while (index--) {
|
|
@@ -41405,7 +41579,7 @@ function extname2(url) {
|
|
|
41405
41579
|
return "";
|
|
41406
41580
|
}
|
|
41407
41581
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
41408
|
-
const value2 =
|
|
41582
|
+
const value2 = extname3(url);
|
|
41409
41583
|
if (value2 === ".js") {
|
|
41410
41584
|
const packageType = getPackageType(url);
|
|
41411
41585
|
if (packageType !== "none") {
|
|
@@ -41420,8 +41594,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
41420
41594
|
}
|
|
41421
41595
|
return "module";
|
|
41422
41596
|
}
|
|
41423
|
-
const
|
|
41424
|
-
if (
|
|
41597
|
+
const format4 = extensionFormatMap[value2];
|
|
41598
|
+
if (format4) return format4;
|
|
41425
41599
|
if (ignoreErrors) {
|
|
41426
41600
|
return void 0;
|
|
41427
41601
|
}
|
|
@@ -41453,8 +41627,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
41453
41627
|
if (process$1.noDeprecation) {
|
|
41454
41628
|
return;
|
|
41455
41629
|
}
|
|
41456
|
-
const
|
|
41457
|
-
if (
|
|
41630
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
41631
|
+
if (format4 !== "module") return;
|
|
41458
41632
|
const urlPath = fileURLToPath$1(url.href);
|
|
41459
41633
|
const packagePath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
|
|
41460
41634
|
const basePath = fileURLToPath$1(base);
|
|
@@ -41571,7 +41745,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
41571
41745
|
error.url = String(resolved);
|
|
41572
41746
|
throw error;
|
|
41573
41747
|
}
|
|
41574
|
-
|
|
41748
|
+
{
|
|
41575
41749
|
const real = realpathSync(filePath);
|
|
41576
41750
|
const { search, hash: hash2 } = resolved;
|
|
41577
41751
|
resolved = pathToFileURL$1(real + (filePath.endsWith(path2.sep) ? "/" : ""));
|
|
@@ -42118,7 +42292,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
42118
42292
|
if (resolved.protocol !== "file:") {
|
|
42119
42293
|
return resolved;
|
|
42120
42294
|
}
|
|
42121
|
-
return finalizeResolution(resolved, base
|
|
42295
|
+
return finalizeResolution(resolved, base);
|
|
42122
42296
|
}
|
|
42123
42297
|
function fileURLToPath(id) {
|
|
42124
42298
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -42167,7 +42341,7 @@ function _resolve(id, options = {}) {
|
|
|
42167
42341
|
if (id.startsWith("file://")) {
|
|
42168
42342
|
id = fileURLToPath(id);
|
|
42169
42343
|
}
|
|
42170
|
-
if (
|
|
42344
|
+
if (isAbsolute2(id)) {
|
|
42171
42345
|
try {
|
|
42172
42346
|
const stat = statSync2(id);
|
|
42173
42347
|
if (stat.isFile()) {
|
|
@@ -42244,12 +42418,12 @@ function resolvePath(id, options) {
|
|
|
42244
42418
|
}
|
|
42245
42419
|
}
|
|
42246
42420
|
var 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;
|
|
42247
|
-
var
|
|
42248
|
-
"../../node_modules/.pnpm/mlly@1.7.
|
|
42421
|
+
var init_dist6 = __esm({
|
|
42422
|
+
"../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
42249
42423
|
init_esm_shims();
|
|
42250
42424
|
init_acorn();
|
|
42251
42425
|
init_dist2();
|
|
42252
|
-
|
|
42426
|
+
init_dist3();
|
|
42253
42427
|
BUILTIN_MODULES = new Set(builtinModules);
|
|
42254
42428
|
__name(normalizeSlash, "normalizeSlash");
|
|
42255
42429
|
own$1 = {}.hasOwnProperty;
|
|
@@ -42521,7 +42695,7 @@ var init_dist5 = __esm({
|
|
|
42521
42695
|
}
|
|
42522
42696
|
};
|
|
42523
42697
|
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
42524
|
-
__name(
|
|
42698
|
+
__name(extname3, "extname");
|
|
42525
42699
|
__name(getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
42526
42700
|
__name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
42527
42701
|
__name(defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
@@ -42742,7 +42916,7 @@ var require_main = __commonJS({
|
|
|
42742
42916
|
var packageJson = require_package();
|
|
42743
42917
|
var version2 = packageJson.version;
|
|
42744
42918
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
42745
|
-
function
|
|
42919
|
+
function parse8(src) {
|
|
42746
42920
|
const obj = {};
|
|
42747
42921
|
let lines2 = src.toString();
|
|
42748
42922
|
lines2 = lines2.replace(/\r\n?/mg, "\n");
|
|
@@ -42761,7 +42935,7 @@ var require_main = __commonJS({
|
|
|
42761
42935
|
}
|
|
42762
42936
|
return obj;
|
|
42763
42937
|
}
|
|
42764
|
-
__name(
|
|
42938
|
+
__name(parse8, "parse");
|
|
42765
42939
|
function _parseVault(options) {
|
|
42766
42940
|
const vaultPath = _vaultPath(options);
|
|
42767
42941
|
const result2 = DotenvModule.configDotenv({
|
|
@@ -43017,7 +43191,7 @@ var require_main = __commonJS({
|
|
|
43017
43191
|
_parseVault,
|
|
43018
43192
|
config,
|
|
43019
43193
|
decrypt,
|
|
43020
|
-
parse:
|
|
43194
|
+
parse: parse8,
|
|
43021
43195
|
populate
|
|
43022
43196
|
};
|
|
43023
43197
|
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -43564,10 +43738,10 @@ var require_minipass = __commonJS({
|
|
|
43564
43738
|
}
|
|
43565
43739
|
// stream.promise().then(() => done, er => emitted error)
|
|
43566
43740
|
promise() {
|
|
43567
|
-
return new Promise((
|
|
43741
|
+
return new Promise((resolve4, reject2) => {
|
|
43568
43742
|
this.on(DESTROYED, () => reject2(new Error("stream destroyed")));
|
|
43569
43743
|
this.on("error", (er2) => reject2(er2));
|
|
43570
|
-
this.on("end", () =>
|
|
43744
|
+
this.on("end", () => resolve4());
|
|
43571
43745
|
});
|
|
43572
43746
|
}
|
|
43573
43747
|
// for await (let chunk of stream)
|
|
@@ -43588,7 +43762,7 @@ var require_minipass = __commonJS({
|
|
|
43588
43762
|
value: res
|
|
43589
43763
|
});
|
|
43590
43764
|
if (this[EOF]) return stop();
|
|
43591
|
-
let
|
|
43765
|
+
let resolve4 = null;
|
|
43592
43766
|
let reject2 = null;
|
|
43593
43767
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
43594
43768
|
this.removeListener("data", ondata);
|
|
@@ -43602,7 +43776,7 @@ var require_minipass = __commonJS({
|
|
|
43602
43776
|
this.removeListener("end", onend);
|
|
43603
43777
|
this.removeListener(DESTROYED, ondestroy);
|
|
43604
43778
|
this.pause();
|
|
43605
|
-
|
|
43779
|
+
resolve4({
|
|
43606
43780
|
value: value2,
|
|
43607
43781
|
done: !!this[EOF]
|
|
43608
43782
|
});
|
|
@@ -43612,14 +43786,14 @@ var require_minipass = __commonJS({
|
|
|
43612
43786
|
this.removeListener("data", ondata);
|
|
43613
43787
|
this.removeListener(DESTROYED, ondestroy);
|
|
43614
43788
|
stop();
|
|
43615
|
-
|
|
43789
|
+
resolve4({
|
|
43616
43790
|
done: true
|
|
43617
43791
|
});
|
|
43618
43792
|
}, "onend");
|
|
43619
43793
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
43620
43794
|
return new Promise((res2, rej) => {
|
|
43621
43795
|
reject2 = rej;
|
|
43622
|
-
|
|
43796
|
+
resolve4 = res2;
|
|
43623
43797
|
this.once(DESTROYED, ondestroy);
|
|
43624
43798
|
this.once("error", onerr);
|
|
43625
43799
|
this.once("end", onend);
|
|
@@ -44203,10 +44377,10 @@ var require_minipass2 = __commonJS({
|
|
|
44203
44377
|
}
|
|
44204
44378
|
// stream.promise().then(() => done, er => emitted error)
|
|
44205
44379
|
promise() {
|
|
44206
|
-
return new Promise((
|
|
44380
|
+
return new Promise((resolve4, reject2) => {
|
|
44207
44381
|
this.on(DESTROYED, () => reject2(new Error("stream destroyed")));
|
|
44208
44382
|
this.on("error", (er2) => reject2(er2));
|
|
44209
|
-
this.on("end", () =>
|
|
44383
|
+
this.on("end", () => resolve4());
|
|
44210
44384
|
});
|
|
44211
44385
|
}
|
|
44212
44386
|
// for await (let chunk of stream)
|
|
@@ -44220,7 +44394,7 @@ var require_minipass2 = __commonJS({
|
|
|
44220
44394
|
if (this[EOF]) return Promise.resolve({
|
|
44221
44395
|
done: true
|
|
44222
44396
|
});
|
|
44223
|
-
let
|
|
44397
|
+
let resolve4 = null;
|
|
44224
44398
|
let reject2 = null;
|
|
44225
44399
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
44226
44400
|
this.removeListener("data", ondata);
|
|
@@ -44231,7 +44405,7 @@ var require_minipass2 = __commonJS({
|
|
|
44231
44405
|
this.removeListener("error", onerr);
|
|
44232
44406
|
this.removeListener("end", onend);
|
|
44233
44407
|
this.pause();
|
|
44234
|
-
|
|
44408
|
+
resolve4({
|
|
44235
44409
|
value: value2,
|
|
44236
44410
|
done: !!this[EOF]
|
|
44237
44411
|
});
|
|
@@ -44239,14 +44413,14 @@ var require_minipass2 = __commonJS({
|
|
|
44239
44413
|
const onend = /* @__PURE__ */ __name(() => {
|
|
44240
44414
|
this.removeListener("error", onerr);
|
|
44241
44415
|
this.removeListener("data", ondata);
|
|
44242
|
-
|
|
44416
|
+
resolve4({
|
|
44243
44417
|
done: true
|
|
44244
44418
|
});
|
|
44245
44419
|
}, "onend");
|
|
44246
44420
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
44247
44421
|
return new Promise((res2, rej) => {
|
|
44248
44422
|
reject2 = rej;
|
|
44249
|
-
|
|
44423
|
+
resolve4 = res2;
|
|
44250
44424
|
this.once(DESTROYED, ondestroy);
|
|
44251
44425
|
this.once("error", onerr);
|
|
44252
44426
|
this.once("end", onend);
|
|
@@ -44846,7 +45020,7 @@ var require_large_numbers = __commonJS({
|
|
|
44846
45020
|
}
|
|
44847
45021
|
}
|
|
44848
45022
|
}, "encodeNegative");
|
|
44849
|
-
var
|
|
45023
|
+
var parse8 = /* @__PURE__ */ __name((buf) => {
|
|
44850
45024
|
const pre = buf[0];
|
|
44851
45025
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
44852
45026
|
if (value2 === null) {
|
|
@@ -44893,7 +45067,7 @@ var require_large_numbers = __commonJS({
|
|
|
44893
45067
|
var twosComp = /* @__PURE__ */ __name((byte) => (255 ^ byte) + 1 & 255, "twosComp");
|
|
44894
45068
|
module.exports = {
|
|
44895
45069
|
encode,
|
|
44896
|
-
parse:
|
|
45070
|
+
parse: parse8
|
|
44897
45071
|
};
|
|
44898
45072
|
}
|
|
44899
45073
|
});
|
|
@@ -45319,15 +45493,15 @@ var require_winchars = __commonJS({
|
|
|
45319
45493
|
var require_strip_absolute_path = __commonJS({
|
|
45320
45494
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports, module) {
|
|
45321
45495
|
init_esm_shims();
|
|
45322
|
-
var { isAbsolute:
|
|
45496
|
+
var { isAbsolute: isAbsolute4, parse: parse8 } = __require("path").win32;
|
|
45323
45497
|
module.exports = (path6) => {
|
|
45324
45498
|
let r4 = "";
|
|
45325
|
-
let parsed =
|
|
45326
|
-
while (
|
|
45499
|
+
let parsed = parse8(path6);
|
|
45500
|
+
while (isAbsolute4(path6) || parsed.root) {
|
|
45327
45501
|
const root2 = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
45328
45502
|
path6 = path6.slice(root2.length);
|
|
45329
45503
|
r4 += root2;
|
|
45330
|
-
parsed =
|
|
45504
|
+
parsed = parse8(path6);
|
|
45331
45505
|
}
|
|
45332
45506
|
return [
|
|
45333
45507
|
r4,
|
|
@@ -47506,12 +47680,12 @@ var require_list = __commonJS({
|
|
|
47506
47680
|
}
|
|
47507
47681
|
}, "listFileSync");
|
|
47508
47682
|
var listFile = /* @__PURE__ */ __name((opt, cb2) => {
|
|
47509
|
-
const
|
|
47683
|
+
const parse8 = new Parser4(opt);
|
|
47510
47684
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
47511
47685
|
const file = opt.file;
|
|
47512
|
-
const p2 = new Promise((
|
|
47513
|
-
|
|
47514
|
-
|
|
47686
|
+
const p2 = new Promise((resolve4, reject2) => {
|
|
47687
|
+
parse8.on("error", reject2);
|
|
47688
|
+
parse8.on("end", resolve4);
|
|
47515
47689
|
fs3.stat(file, (er2, stat) => {
|
|
47516
47690
|
if (er2) {
|
|
47517
47691
|
reject2(er2);
|
|
@@ -47521,7 +47695,7 @@ var require_list = __commonJS({
|
|
|
47521
47695
|
size: stat.size
|
|
47522
47696
|
});
|
|
47523
47697
|
stream.on("error", reject2);
|
|
47524
|
-
stream.pipe(
|
|
47698
|
+
stream.pipe(parse8);
|
|
47525
47699
|
}
|
|
47526
47700
|
});
|
|
47527
47701
|
});
|
|
@@ -47762,7 +47936,7 @@ var require_replace = __commonJS({
|
|
|
47762
47936
|
}, "onread");
|
|
47763
47937
|
fs3.read(fd, headBuf, 0, 512, position, onread);
|
|
47764
47938
|
}, "getPos");
|
|
47765
|
-
const promise = new Promise((
|
|
47939
|
+
const promise = new Promise((resolve4, reject2) => {
|
|
47766
47940
|
p2.on("error", reject2);
|
|
47767
47941
|
let flag = "r+";
|
|
47768
47942
|
const onopen = /* @__PURE__ */ __name((er2, fd) => {
|
|
@@ -47787,7 +47961,7 @@ var require_replace = __commonJS({
|
|
|
47787
47961
|
});
|
|
47788
47962
|
p2.pipe(stream);
|
|
47789
47963
|
stream.on("error", reject2);
|
|
47790
|
-
stream.on("close",
|
|
47964
|
+
stream.on("close", resolve4);
|
|
47791
47965
|
addFilesAsync(p2, files);
|
|
47792
47966
|
});
|
|
47793
47967
|
});
|
|
@@ -47903,7 +48077,7 @@ var require_path_arg = __commonJS({
|
|
|
47903
48077
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports, module) {
|
|
47904
48078
|
init_esm_shims();
|
|
47905
48079
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
47906
|
-
var { resolve:
|
|
48080
|
+
var { resolve: resolve4, parse: parse8 } = __require("path");
|
|
47907
48081
|
var pathArg = /* @__PURE__ */ __name((path6) => {
|
|
47908
48082
|
if (/\0/.test(path6)) {
|
|
47909
48083
|
throw Object.assign(new TypeError("path must be a string without null bytes"), {
|
|
@@ -47911,10 +48085,10 @@ var require_path_arg = __commonJS({
|
|
|
47911
48085
|
code: "ERR_INVALID_ARG_VALUE"
|
|
47912
48086
|
});
|
|
47913
48087
|
}
|
|
47914
|
-
path6 =
|
|
48088
|
+
path6 = resolve4(path6);
|
|
47915
48089
|
if (platform === "win32") {
|
|
47916
48090
|
const badWinChars = /[*|"<>?:]/;
|
|
47917
|
-
const { root: root2 } =
|
|
48091
|
+
const { root: root2 } = parse8(path6);
|
|
47918
48092
|
if (badWinChars.test(path6.substr(root2.length))) {
|
|
47919
48093
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
47920
48094
|
path: path6,
|
|
@@ -47932,17 +48106,17 @@ var require_path_arg = __commonJS({
|
|
|
47932
48106
|
var require_find_made = __commonJS({
|
|
47933
48107
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports, module) {
|
|
47934
48108
|
init_esm_shims();
|
|
47935
|
-
var { dirname:
|
|
48109
|
+
var { dirname: dirname5 } = __require("path");
|
|
47936
48110
|
var findMade = /* @__PURE__ */ __name((opts, parent, path6 = void 0) => {
|
|
47937
48111
|
if (path6 === parent) return Promise.resolve();
|
|
47938
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path6 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
48112
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path6 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname5(parent), parent) : void 0);
|
|
47939
48113
|
}, "findMade");
|
|
47940
48114
|
var findMadeSync = /* @__PURE__ */ __name((opts, parent, path6 = void 0) => {
|
|
47941
48115
|
if (path6 === parent) return void 0;
|
|
47942
48116
|
try {
|
|
47943
48117
|
return opts.statSync(parent).isDirectory() ? path6 : void 0;
|
|
47944
48118
|
} catch (er2) {
|
|
47945
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
48119
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname5(parent), parent) : void 0;
|
|
47946
48120
|
}
|
|
47947
48121
|
}, "findMadeSync");
|
|
47948
48122
|
module.exports = {
|
|
@@ -47956,10 +48130,10 @@ var require_find_made = __commonJS({
|
|
|
47956
48130
|
var require_mkdirp_manual = __commonJS({
|
|
47957
48131
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module) {
|
|
47958
48132
|
init_esm_shims();
|
|
47959
|
-
var { dirname:
|
|
48133
|
+
var { dirname: dirname5 } = __require("path");
|
|
47960
48134
|
var mkdirpManual = /* @__PURE__ */ __name((path6, opts, made) => {
|
|
47961
48135
|
opts.recursive = false;
|
|
47962
|
-
const parent =
|
|
48136
|
+
const parent = dirname5(path6);
|
|
47963
48137
|
if (parent === path6) {
|
|
47964
48138
|
return opts.mkdirAsync(path6, opts).catch((er2) => {
|
|
47965
48139
|
if (er2.code !== "EISDIR") throw er2;
|
|
@@ -47977,7 +48151,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
47977
48151
|
});
|
|
47978
48152
|
}, "mkdirpManual");
|
|
47979
48153
|
var mkdirpManualSync = /* @__PURE__ */ __name((path6, opts, made) => {
|
|
47980
|
-
const parent =
|
|
48154
|
+
const parent = dirname5(path6);
|
|
47981
48155
|
opts.recursive = false;
|
|
47982
48156
|
if (parent === path6) {
|
|
47983
48157
|
try {
|
|
@@ -48011,12 +48185,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
48011
48185
|
var require_mkdirp_native = __commonJS({
|
|
48012
48186
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports, module) {
|
|
48013
48187
|
init_esm_shims();
|
|
48014
|
-
var { dirname:
|
|
48188
|
+
var { dirname: dirname5 } = __require("path");
|
|
48015
48189
|
var { findMade, findMadeSync } = require_find_made();
|
|
48016
48190
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
48017
48191
|
var mkdirpNative = /* @__PURE__ */ __name((path6, opts) => {
|
|
48018
48192
|
opts.recursive = true;
|
|
48019
|
-
const parent =
|
|
48193
|
+
const parent = dirname5(path6);
|
|
48020
48194
|
if (parent === path6) return opts.mkdirAsync(path6, opts);
|
|
48021
48195
|
return findMade(opts, path6).then((made) => opts.mkdirAsync(path6, opts).then(() => made).catch((er2) => {
|
|
48022
48196
|
if (er2.code === "ENOENT") return mkdirpManual(path6, opts);
|
|
@@ -48025,7 +48199,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
48025
48199
|
}, "mkdirpNative");
|
|
48026
48200
|
var mkdirpNativeSync = /* @__PURE__ */ __name((path6, opts) => {
|
|
48027
48201
|
opts.recursive = true;
|
|
48028
|
-
const parent =
|
|
48202
|
+
const parent = dirname5(path6);
|
|
48029
48203
|
if (parent === path6) return opts.mkdirSync(path6, opts);
|
|
48030
48204
|
const made = findMadeSync(opts, path6);
|
|
48031
48205
|
try {
|
|
@@ -48259,7 +48433,7 @@ var require_mkdir = __commonJS({
|
|
|
48259
48433
|
const preserve = opt.preserve;
|
|
48260
48434
|
const unlink = opt.unlink;
|
|
48261
48435
|
const cache2 = opt.cache;
|
|
48262
|
-
const
|
|
48436
|
+
const cwd3 = normPath(opt.cwd);
|
|
48263
48437
|
const done = /* @__PURE__ */ __name((er2, created) => {
|
|
48264
48438
|
if (er2) {
|
|
48265
48439
|
cb2(er2);
|
|
@@ -48277,7 +48451,7 @@ var require_mkdir = __commonJS({
|
|
|
48277
48451
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48278
48452
|
return done();
|
|
48279
48453
|
}
|
|
48280
|
-
if (dir ===
|
|
48454
|
+
if (dir === cwd3) {
|
|
48281
48455
|
return checkCwd(dir, done);
|
|
48282
48456
|
}
|
|
48283
48457
|
if (preserve) {
|
|
@@ -48285,35 +48459,35 @@ var require_mkdir = __commonJS({
|
|
|
48285
48459
|
mode
|
|
48286
48460
|
}).then((made) => done(null, made), done);
|
|
48287
48461
|
}
|
|
48288
|
-
const sub = normPath(path6.relative(
|
|
48462
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
48289
48463
|
const parts = sub.split("/");
|
|
48290
|
-
mkdir_(
|
|
48464
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
48291
48465
|
};
|
|
48292
|
-
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink,
|
|
48466
|
+
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink, cwd3, created, cb2) => {
|
|
48293
48467
|
if (!parts.length) {
|
|
48294
48468
|
return cb2(null, created);
|
|
48295
48469
|
}
|
|
48296
48470
|
const p2 = parts.shift();
|
|
48297
48471
|
const part = normPath(path6.resolve(base + "/" + p2));
|
|
48298
48472
|
if (cGet(cache2, part)) {
|
|
48299
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
48473
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48300
48474
|
}
|
|
48301
|
-
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48475
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb2));
|
|
48302
48476
|
}, "mkdir_");
|
|
48303
|
-
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink,
|
|
48477
|
+
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink, cwd3, created, cb2) => (er2) => {
|
|
48304
48478
|
if (er2) {
|
|
48305
48479
|
fs3.lstat(part, (statEr, st) => {
|
|
48306
48480
|
if (statEr) {
|
|
48307
48481
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
48308
48482
|
cb2(statEr);
|
|
48309
48483
|
} else if (st.isDirectory()) {
|
|
48310
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48484
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48311
48485
|
} else if (unlink) {
|
|
48312
48486
|
fs3.unlink(part, (er3) => {
|
|
48313
48487
|
if (er3) {
|
|
48314
48488
|
return cb2(er3);
|
|
48315
48489
|
}
|
|
48316
|
-
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48490
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb2));
|
|
48317
48491
|
});
|
|
48318
48492
|
} else if (st.isSymbolicLink()) {
|
|
48319
48493
|
return cb2(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -48323,7 +48497,7 @@ var require_mkdir = __commonJS({
|
|
|
48323
48497
|
});
|
|
48324
48498
|
} else {
|
|
48325
48499
|
created = created || part;
|
|
48326
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48500
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48327
48501
|
}
|
|
48328
48502
|
}, "onmkdir");
|
|
48329
48503
|
var checkCwdSync = /* @__PURE__ */ __name((dir) => {
|
|
@@ -48350,7 +48524,7 @@ var require_mkdir = __commonJS({
|
|
|
48350
48524
|
const preserve = opt.preserve;
|
|
48351
48525
|
const unlink = opt.unlink;
|
|
48352
48526
|
const cache2 = opt.cache;
|
|
48353
|
-
const
|
|
48527
|
+
const cwd3 = normPath(opt.cwd);
|
|
48354
48528
|
const done = /* @__PURE__ */ __name((created2) => {
|
|
48355
48529
|
cSet(cache2, dir, true);
|
|
48356
48530
|
if (created2 && doChown) {
|
|
@@ -48363,17 +48537,17 @@ var require_mkdir = __commonJS({
|
|
|
48363
48537
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48364
48538
|
return done();
|
|
48365
48539
|
}
|
|
48366
|
-
if (dir ===
|
|
48367
|
-
checkCwdSync(
|
|
48540
|
+
if (dir === cwd3) {
|
|
48541
|
+
checkCwdSync(cwd3);
|
|
48368
48542
|
return done();
|
|
48369
48543
|
}
|
|
48370
48544
|
if (preserve) {
|
|
48371
48545
|
return done(mkdirp.sync(dir, mode));
|
|
48372
48546
|
}
|
|
48373
|
-
const sub = normPath(path6.relative(
|
|
48547
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
48374
48548
|
const parts = sub.split("/");
|
|
48375
48549
|
let created = null;
|
|
48376
|
-
for (let p2 = parts.shift(), part =
|
|
48550
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
48377
48551
|
part = normPath(path6.resolve(part));
|
|
48378
48552
|
if (cGet(cache2, part)) {
|
|
48379
48553
|
continue;
|
|
@@ -48423,9 +48597,9 @@ var require_path_reservations = __commonJS({
|
|
|
48423
48597
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports, module) {
|
|
48424
48598
|
init_esm_shims();
|
|
48425
48599
|
var assert2 = __require("assert");
|
|
48426
|
-
var
|
|
48600
|
+
var normalize3 = require_normalize_unicode();
|
|
48427
48601
|
var stripSlashes = require_strip_trailing_slashes();
|
|
48428
|
-
var { join:
|
|
48602
|
+
var { join: join10 } = __require("path");
|
|
48429
48603
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
48430
48604
|
var isWindows = platform === "win32";
|
|
48431
48605
|
module.exports = () => {
|
|
@@ -48434,7 +48608,7 @@ var require_path_reservations = __commonJS({
|
|
|
48434
48608
|
const getDirs = /* @__PURE__ */ __name((path6) => {
|
|
48435
48609
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
48436
48610
|
if (set.length) {
|
|
48437
|
-
path7 =
|
|
48611
|
+
path7 = join10(set[set.length - 1], path7);
|
|
48438
48612
|
}
|
|
48439
48613
|
set.push(path7 || "/");
|
|
48440
48614
|
return set;
|
|
@@ -48506,7 +48680,7 @@ var require_path_reservations = __commonJS({
|
|
|
48506
48680
|
paths = isWindows ? [
|
|
48507
48681
|
"win32 parallelization disabled"
|
|
48508
48682
|
] : paths.map((p2) => {
|
|
48509
|
-
return stripSlashes(
|
|
48683
|
+
return stripSlashes(join10(normalize3(p2))).toLowerCase();
|
|
48510
48684
|
});
|
|
48511
48685
|
const dirs = new Set(paths.map((path6) => getDirs(path6)).reduce((a2, b6) => a2.concat(b6)));
|
|
48512
48686
|
reservations.set(fn2, {
|
|
@@ -48580,7 +48754,7 @@ var require_unpack = __commonJS({
|
|
|
48580
48754
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
48581
48755
|
var normPath = require_normalize_windows_path();
|
|
48582
48756
|
var stripSlash = require_strip_trailing_slashes();
|
|
48583
|
-
var
|
|
48757
|
+
var normalize3 = require_normalize_unicode();
|
|
48584
48758
|
var ONENTRY = Symbol("onEntry");
|
|
48585
48759
|
var CHECKFS = Symbol("checkFs");
|
|
48586
48760
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -48632,7 +48806,7 @@ var require_unpack = __commonJS({
|
|
|
48632
48806
|
fs3.unlinkSync(name);
|
|
48633
48807
|
}, "unlinkFileSync");
|
|
48634
48808
|
var uint32 = /* @__PURE__ */ __name((a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c, "uint32");
|
|
48635
|
-
var cacheKeyNormalize = /* @__PURE__ */ __name((path7) => stripSlash(normPath(
|
|
48809
|
+
var cacheKeyNormalize = /* @__PURE__ */ __name((path7) => stripSlash(normPath(normalize3(path7))).toLowerCase(), "cacheKeyNormalize");
|
|
48636
48810
|
var pruneCache = /* @__PURE__ */ __name((cache2, abs) => {
|
|
48637
48811
|
abs = cacheKeyNormalize(abs);
|
|
48638
48812
|
for (const path7 of cache2.keys()) {
|
|
@@ -49337,9 +49511,9 @@ var require_extract = __commonJS({
|
|
|
49337
49511
|
const u3 = new Unpack(opt);
|
|
49338
49512
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
49339
49513
|
const file = opt.file;
|
|
49340
|
-
const p2 = new Promise((
|
|
49514
|
+
const p2 = new Promise((resolve4, reject2) => {
|
|
49341
49515
|
u3.on("error", reject2);
|
|
49342
|
-
u3.on("close",
|
|
49516
|
+
u3.on("close", resolve4);
|
|
49343
49517
|
fs3.stat(file, (er2, stat) => {
|
|
49344
49518
|
if (er2) {
|
|
49345
49519
|
reject2(er2);
|
|
@@ -49486,12 +49660,12 @@ var require_isexe = __commonJS({
|
|
|
49486
49660
|
if (typeof Promise !== "function") {
|
|
49487
49661
|
throw new TypeError("callback not provided");
|
|
49488
49662
|
}
|
|
49489
|
-
return new Promise(function(
|
|
49663
|
+
return new Promise(function(resolve4, reject2) {
|
|
49490
49664
|
isexe(path6, options || {}, function(er2, is) {
|
|
49491
49665
|
if (er2) {
|
|
49492
49666
|
reject2(er2);
|
|
49493
49667
|
} else {
|
|
49494
|
-
|
|
49668
|
+
resolve4(is);
|
|
49495
49669
|
}
|
|
49496
49670
|
});
|
|
49497
49671
|
});
|
|
@@ -49566,25 +49740,25 @@ var require_which = __commonJS({
|
|
|
49566
49740
|
if (!opt) opt = {};
|
|
49567
49741
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
49568
49742
|
const found = [];
|
|
49569
|
-
const step = /* @__PURE__ */ __name((i2) => new Promise((
|
|
49570
|
-
if (i2 === pathEnv.length) return opt.all && found.length ?
|
|
49743
|
+
const step = /* @__PURE__ */ __name((i2) => new Promise((resolve4, reject2) => {
|
|
49744
|
+
if (i2 === pathEnv.length) return opt.all && found.length ? resolve4(found) : reject2(getNotFoundError(cmd));
|
|
49571
49745
|
const ppRaw = pathEnv[i2];
|
|
49572
49746
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
49573
49747
|
const pCmd = path6.join(pathPart, cmd);
|
|
49574
49748
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
49575
|
-
|
|
49749
|
+
resolve4(subStep(p2, i2, 0));
|
|
49576
49750
|
}), "step");
|
|
49577
|
-
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((
|
|
49578
|
-
if (ii2 === pathExt.length) return
|
|
49751
|
+
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((resolve4, reject2) => {
|
|
49752
|
+
if (ii2 === pathExt.length) return resolve4(step(i2 + 1));
|
|
49579
49753
|
const ext = pathExt[ii2];
|
|
49580
49754
|
isexe(p2 + ext, {
|
|
49581
49755
|
pathExt: pathExtExe
|
|
49582
49756
|
}, (er2, is) => {
|
|
49583
49757
|
if (!er2 && is) {
|
|
49584
49758
|
if (opt.all) found.push(p2 + ext);
|
|
49585
|
-
else return
|
|
49759
|
+
else return resolve4(p2 + ext);
|
|
49586
49760
|
}
|
|
49587
|
-
return
|
|
49761
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
49588
49762
|
});
|
|
49589
49763
|
}), "subStep");
|
|
49590
49764
|
return cb2 ? step(0).then((res) => cb2(null, res), cb2) : step(0);
|
|
@@ -49649,7 +49823,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49649
49823
|
var getPathKey = require_path_key();
|
|
49650
49824
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
49651
49825
|
const env2 = parsed.options.env || process.env;
|
|
49652
|
-
const
|
|
49826
|
+
const cwd3 = process.cwd();
|
|
49653
49827
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
49654
49828
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
49655
49829
|
if (shouldSwitchCwd) {
|
|
@@ -49669,7 +49843,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49669
49843
|
} catch (e2) {
|
|
49670
49844
|
} finally {
|
|
49671
49845
|
if (shouldSwitchCwd) {
|
|
49672
|
-
process.chdir(
|
|
49846
|
+
process.chdir(cwd3);
|
|
49673
49847
|
}
|
|
49674
49848
|
}
|
|
49675
49849
|
if (resolved) {
|
|
@@ -49817,7 +49991,7 @@ var require_parse2 = __commonJS({
|
|
|
49817
49991
|
return parsed;
|
|
49818
49992
|
}
|
|
49819
49993
|
__name(parseNonShell, "parseNonShell");
|
|
49820
|
-
function
|
|
49994
|
+
function parse8(command, args, options) {
|
|
49821
49995
|
if (args && !Array.isArray(args)) {
|
|
49822
49996
|
options = args;
|
|
49823
49997
|
args = null;
|
|
@@ -49836,8 +50010,8 @@ var require_parse2 = __commonJS({
|
|
|
49836
50010
|
};
|
|
49837
50011
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
49838
50012
|
}
|
|
49839
|
-
__name(
|
|
49840
|
-
module.exports =
|
|
50013
|
+
__name(parse8, "parse");
|
|
50014
|
+
module.exports = parse8;
|
|
49841
50015
|
}
|
|
49842
50016
|
});
|
|
49843
50017
|
|
|
@@ -49902,17 +50076,17 @@ var require_cross_spawn = __commonJS({
|
|
|
49902
50076
|
"use strict";
|
|
49903
50077
|
init_esm_shims();
|
|
49904
50078
|
var cp = __require("child_process");
|
|
49905
|
-
var
|
|
50079
|
+
var parse8 = require_parse2();
|
|
49906
50080
|
var enoent = require_enoent();
|
|
49907
50081
|
function spawn(command, args, options) {
|
|
49908
|
-
const parsed =
|
|
50082
|
+
const parsed = parse8(command, args, options);
|
|
49909
50083
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
49910
50084
|
enoent.hookChildProcess(spawned, parsed);
|
|
49911
50085
|
return spawned;
|
|
49912
50086
|
}
|
|
49913
50087
|
__name(spawn, "spawn");
|
|
49914
50088
|
function spawnSync3(command, args, options) {
|
|
49915
|
-
const parsed =
|
|
50089
|
+
const parsed = parse8(command, args, options);
|
|
49916
50090
|
const result2 = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
49917
50091
|
result2.error = result2.error || enoent.verifyENOENTSync(result2.status, parsed);
|
|
49918
50092
|
return result2;
|
|
@@ -49921,7 +50095,7 @@ var require_cross_spawn = __commonJS({
|
|
|
49921
50095
|
module.exports = spawn;
|
|
49922
50096
|
module.exports.spawn = spawn;
|
|
49923
50097
|
module.exports.sync = spawnSync3;
|
|
49924
|
-
module.exports._parse =
|
|
50098
|
+
module.exports._parse = parse8;
|
|
49925
50099
|
module.exports._enoent = enoent;
|
|
49926
50100
|
}
|
|
49927
50101
|
});
|
|
@@ -49969,8 +50143,8 @@ var init_npm_run_path = __esm({
|
|
|
49969
50143
|
"../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js"() {
|
|
49970
50144
|
init_esm_shims();
|
|
49971
50145
|
init_path_key();
|
|
49972
|
-
npmRunPath = /* @__PURE__ */ __name(({ cwd:
|
|
49973
|
-
const cwdString =
|
|
50146
|
+
npmRunPath = /* @__PURE__ */ __name(({ cwd: cwd3 = process2.cwd(), path: pathOption = process2.env[pathKey()], preferLocal = true, execPath = process2.execPath, addExecPath = true } = {}) => {
|
|
50147
|
+
const cwdString = cwd3 instanceof URL ? fileURLToPath2(cwd3) : cwd3;
|
|
49974
50148
|
const cwdPath = path3.resolve(cwdString);
|
|
49975
50149
|
const result2 = [];
|
|
49976
50150
|
if (preferLocal) {
|
|
@@ -50525,7 +50699,7 @@ var init_error = __esm({
|
|
|
50525
50699
|
}
|
|
50526
50700
|
return "failed";
|
|
50527
50701
|
}, "getErrorPrefix");
|
|
50528
|
-
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd:
|
|
50702
|
+
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd: cwd3 = process3.cwd() } } }) => {
|
|
50529
50703
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
50530
50704
|
signal = signal === null ? void 0 : signal;
|
|
50531
50705
|
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
@@ -50562,7 +50736,7 @@ ${error.message}` : execaMessage;
|
|
|
50562
50736
|
error.signalDescription = signalDescription;
|
|
50563
50737
|
error.stdout = stdout;
|
|
50564
50738
|
error.stderr = stderr;
|
|
50565
|
-
error.cwd =
|
|
50739
|
+
error.cwd = cwd3;
|
|
50566
50740
|
if (all !== void 0) {
|
|
50567
50741
|
error.all = all;
|
|
50568
50742
|
}
|
|
@@ -50955,7 +51129,7 @@ var init_kill = __esm({
|
|
|
50955
51129
|
return spawnedPromise;
|
|
50956
51130
|
}
|
|
50957
51131
|
let timeoutId;
|
|
50958
|
-
const timeoutPromise = new Promise((
|
|
51132
|
+
const timeoutPromise = new Promise((resolve4, reject2) => {
|
|
50959
51133
|
timeoutId = setTimeout(() => {
|
|
50960
51134
|
timeoutKill(spawned, killSignal, reject2);
|
|
50961
51135
|
}, timeout);
|
|
@@ -51523,9 +51697,9 @@ var init_promise = __esm({
|
|
|
51523
51697
|
});
|
|
51524
51698
|
}
|
|
51525
51699
|
}, "mergePromise");
|
|
51526
|
-
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((
|
|
51700
|
+
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((resolve4, reject2) => {
|
|
51527
51701
|
spawned.on("exit", (exitCode, signal) => {
|
|
51528
|
-
|
|
51702
|
+
resolve4({
|
|
51529
51703
|
exitCode,
|
|
51530
51704
|
signal
|
|
51531
51705
|
});
|
|
@@ -51958,8 +52132,8 @@ var init_execa = __esm({
|
|
|
51958
52132
|
// ../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
51959
52133
|
import { existsSync as existsSync2 } from "node:fs";
|
|
51960
52134
|
import { readFile } from "node:fs/promises";
|
|
51961
|
-
async function findup(
|
|
51962
|
-
const segments = normalize(
|
|
52135
|
+
async function findup(cwd3, match, options = {}) {
|
|
52136
|
+
const segments = normalize(cwd3).split("/");
|
|
51963
52137
|
while (segments.length > 0) {
|
|
51964
52138
|
const path6 = segments.join("/") || "/";
|
|
51965
52139
|
const result2 = await match(path6);
|
|
@@ -51990,13 +52164,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
51990
52164
|
});
|
|
51991
52165
|
}
|
|
51992
52166
|
async function resolveOperationOptions(options = {}) {
|
|
51993
|
-
const
|
|
52167
|
+
const cwd3 = options.cwd || process.cwd();
|
|
51994
52168
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
51995
52169
|
if (!packageManager) {
|
|
51996
52170
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
51997
52171
|
}
|
|
51998
52172
|
return {
|
|
51999
|
-
cwd:
|
|
52173
|
+
cwd: cwd3,
|
|
52000
52174
|
silent: options.silent ?? false,
|
|
52001
52175
|
packageManager,
|
|
52002
52176
|
dev: options.dev ?? false,
|
|
@@ -52004,9 +52178,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
52004
52178
|
global: options.global ?? false
|
|
52005
52179
|
};
|
|
52006
52180
|
}
|
|
52007
|
-
async function detectPackageManager(
|
|
52181
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
52008
52182
|
const detected = await findup(
|
|
52009
|
-
resolve(
|
|
52183
|
+
resolve(cwd3 || "."),
|
|
52010
52184
|
async (path6) => {
|
|
52011
52185
|
if (!options.ignorePackageJSON) {
|
|
52012
52186
|
const packageJSONPath = join(path6, "package.json");
|
|
@@ -52076,7 +52250,7 @@ async function installDependencies(options = {}) {
|
|
|
52076
52250
|
});
|
|
52077
52251
|
}
|
|
52078
52252
|
var importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
52079
|
-
var
|
|
52253
|
+
var init_dist7 = __esm({
|
|
52080
52254
|
"../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
52081
52255
|
init_esm_shims();
|
|
52082
52256
|
init_dist();
|
|
@@ -63154,10 +63328,10 @@ ${f2.toString(16)}\r
|
|
|
63154
63328
|
}
|
|
63155
63329
|
__name(requireUtil$2, "requireUtil$2");
|
|
63156
63330
|
Q5(requireUtil$2, "requireUtil$2");
|
|
63157
|
-
var
|
|
63331
|
+
var parse8;
|
|
63158
63332
|
var hasRequiredParse;
|
|
63159
63333
|
function requireParse() {
|
|
63160
|
-
if (hasRequiredParse) return
|
|
63334
|
+
if (hasRequiredParse) return parse8;
|
|
63161
63335
|
hasRequiredParse = 1;
|
|
63162
63336
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
63163
63337
|
function o(l2) {
|
|
@@ -63212,7 +63386,7 @@ ${f2.toString(16)}\r
|
|
|
63212
63386
|
return B3(l2, C4);
|
|
63213
63387
|
}
|
|
63214
63388
|
__name(B3, "B");
|
|
63215
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
63389
|
+
return Q5(B3, "parseUnparsedAttributes"), parse8 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse8;
|
|
63216
63390
|
}
|
|
63217
63391
|
__name(requireParse, "requireParse");
|
|
63218
63392
|
Q5(requireParse, "requireParse");
|
|
@@ -65029,14 +65203,14 @@ function currentShell() {
|
|
|
65029
65203
|
}
|
|
65030
65204
|
return "/bin/bash";
|
|
65031
65205
|
}
|
|
65032
|
-
function startShell(
|
|
65033
|
-
|
|
65206
|
+
function startShell(cwd3) {
|
|
65207
|
+
cwd3 = resolve(cwd3);
|
|
65034
65208
|
const shell = currentShell();
|
|
65035
65209
|
console.info(
|
|
65036
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
65210
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
65037
65211
|
);
|
|
65038
65212
|
spawnSync(shell, [], {
|
|
65039
|
-
cwd:
|
|
65213
|
+
cwd: cwd3,
|
|
65040
65214
|
shell: true,
|
|
65041
65215
|
stdio: "inherit"
|
|
65042
65216
|
});
|
|
@@ -65111,8 +65285,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65111
65285
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
65112
65286
|
);
|
|
65113
65287
|
}
|
|
65114
|
-
const
|
|
65115
|
-
const extractPath = resolve(
|
|
65288
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
65289
|
+
const extractPath = resolve(cwd3, options.dir || template3.defaultDir);
|
|
65116
65290
|
if (options.forceClean) {
|
|
65117
65291
|
await rm(extractPath, { recursive: true, force: true });
|
|
65118
65292
|
}
|
|
@@ -65151,13 +65325,13 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65151
65325
|
};
|
|
65152
65326
|
}
|
|
65153
65327
|
var import_tar, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
65154
|
-
var
|
|
65328
|
+
var init_dist8 = __esm({
|
|
65155
65329
|
"../../node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
65156
65330
|
init_esm_shims();
|
|
65157
65331
|
import_tar = __toESM(require_tar(), 1);
|
|
65158
65332
|
init_dist();
|
|
65159
65333
|
init_defu();
|
|
65160
|
-
|
|
65334
|
+
init_dist7();
|
|
65161
65335
|
import_proxy = __toESM(require_proxy(), 1);
|
|
65162
65336
|
__name(download, "download");
|
|
65163
65337
|
inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
|
|
@@ -65439,12 +65613,12 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
65439
65613
|
}
|
|
65440
65614
|
function __awaiter(thisArg, _arguments, P5, generator) {
|
|
65441
65615
|
function adopt(value2) {
|
|
65442
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
65443
|
-
|
|
65616
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
65617
|
+
resolve4(value2);
|
|
65444
65618
|
});
|
|
65445
65619
|
}
|
|
65446
65620
|
__name(adopt, "adopt");
|
|
65447
|
-
return new (P5 || (P5 = Promise))(function(
|
|
65621
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject2) {
|
|
65448
65622
|
function fulfilled(value2) {
|
|
65449
65623
|
try {
|
|
65450
65624
|
step(generator.next(value2));
|
|
@@ -65462,7 +65636,7 @@ function __awaiter(thisArg, _arguments, P5, generator) {
|
|
|
65462
65636
|
}
|
|
65463
65637
|
__name(rejected, "rejected");
|
|
65464
65638
|
function step(result2) {
|
|
65465
|
-
result2.done ?
|
|
65639
|
+
result2.done ? resolve4(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
65466
65640
|
}
|
|
65467
65641
|
__name(step, "step");
|
|
65468
65642
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -65664,15 +65838,15 @@ function __asyncValues(o) {
|
|
|
65664
65838
|
}, i2);
|
|
65665
65839
|
function verb(n) {
|
|
65666
65840
|
i2[n] = o[n] && function(v4) {
|
|
65667
|
-
return new Promise(function(
|
|
65668
|
-
v4 = o[n](v4), settle(
|
|
65841
|
+
return new Promise(function(resolve4, reject2) {
|
|
65842
|
+
v4 = o[n](v4), settle(resolve4, reject2, v4.done, v4.value);
|
|
65669
65843
|
});
|
|
65670
65844
|
};
|
|
65671
65845
|
}
|
|
65672
65846
|
__name(verb, "verb");
|
|
65673
|
-
function settle(
|
|
65847
|
+
function settle(resolve4, reject2, d4, v4) {
|
|
65674
65848
|
Promise.resolve(v4).then(function(v5) {
|
|
65675
|
-
|
|
65849
|
+
resolve4({ value: v5, done: d4 });
|
|
65676
65850
|
}, reject2);
|
|
65677
65851
|
}
|
|
65678
65852
|
__name(settle, "settle");
|
|
@@ -66515,11 +66689,11 @@ var require_ejs = __commonJS({
|
|
|
66515
66689
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
66516
66690
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
66517
66691
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
66518
|
-
var
|
|
66519
|
-
var
|
|
66520
|
-
var
|
|
66521
|
-
var includePath =
|
|
66522
|
-
var ext =
|
|
66692
|
+
var dirname5 = path6.dirname;
|
|
66693
|
+
var extname5 = path6.extname;
|
|
66694
|
+
var resolve4 = path6.resolve;
|
|
66695
|
+
var includePath = resolve4(isDir ? filename : dirname5(filename), name);
|
|
66696
|
+
var ext = extname5(name);
|
|
66523
66697
|
if (!ext) {
|
|
66524
66698
|
includePath += ".ejs";
|
|
66525
66699
|
}
|
|
@@ -66596,10 +66770,10 @@ var require_ejs = __commonJS({
|
|
|
66596
66770
|
var result2;
|
|
66597
66771
|
if (!cb2) {
|
|
66598
66772
|
if (typeof exports.promiseImpl == "function") {
|
|
66599
|
-
return new exports.promiseImpl(function(
|
|
66773
|
+
return new exports.promiseImpl(function(resolve4, reject2) {
|
|
66600
66774
|
try {
|
|
66601
66775
|
result2 = handleCache(options)(data2);
|
|
66602
|
-
|
|
66776
|
+
resolve4(result2);
|
|
66603
66777
|
} catch (err) {
|
|
66604
66778
|
reject2(err);
|
|
66605
66779
|
}
|
|
@@ -66882,10 +67056,10 @@ var require_ejs = __commonJS({
|
|
|
66882
67056
|
}, "anonymous");
|
|
66883
67057
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
66884
67058
|
var filename = opts.filename;
|
|
66885
|
-
var
|
|
67059
|
+
var basename3 = path6.basename(filename, path6.extname(filename));
|
|
66886
67060
|
try {
|
|
66887
67061
|
Object.defineProperty(returnedFn, "name", {
|
|
66888
|
-
value:
|
|
67062
|
+
value: basename3,
|
|
66889
67063
|
writable: false,
|
|
66890
67064
|
enumerable: false,
|
|
66891
67065
|
configurable: true
|
|
@@ -67587,7 +67761,7 @@ var require_parse3 = __commonJS({
|
|
|
67587
67761
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports, module) {
|
|
67588
67762
|
init_esm_shims();
|
|
67589
67763
|
var SemVer = require_semver();
|
|
67590
|
-
var
|
|
67764
|
+
var parse8 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
|
|
67591
67765
|
if (version2 instanceof SemVer) {
|
|
67592
67766
|
return version2;
|
|
67593
67767
|
}
|
|
@@ -67600,7 +67774,7 @@ var require_parse3 = __commonJS({
|
|
|
67600
67774
|
throw er2;
|
|
67601
67775
|
}
|
|
67602
67776
|
}, "parse");
|
|
67603
|
-
module.exports =
|
|
67777
|
+
module.exports = parse8;
|
|
67604
67778
|
}
|
|
67605
67779
|
});
|
|
67606
67780
|
|
|
@@ -67608,9 +67782,9 @@ var require_parse3 = __commonJS({
|
|
|
67608
67782
|
var require_valid = __commonJS({
|
|
67609
67783
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports, module) {
|
|
67610
67784
|
init_esm_shims();
|
|
67611
|
-
var
|
|
67785
|
+
var parse8 = require_parse3();
|
|
67612
67786
|
var valid = /* @__PURE__ */ __name((version2, options) => {
|
|
67613
|
-
const v4 =
|
|
67787
|
+
const v4 = parse8(version2, options);
|
|
67614
67788
|
return v4 ? v4.version : null;
|
|
67615
67789
|
}, "valid");
|
|
67616
67790
|
module.exports = valid;
|
|
@@ -67621,9 +67795,9 @@ var require_valid = __commonJS({
|
|
|
67621
67795
|
var require_clean = __commonJS({
|
|
67622
67796
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports, module) {
|
|
67623
67797
|
init_esm_shims();
|
|
67624
|
-
var
|
|
67798
|
+
var parse8 = require_parse3();
|
|
67625
67799
|
var clean = /* @__PURE__ */ __name((version2, options) => {
|
|
67626
|
-
const s2 =
|
|
67800
|
+
const s2 = parse8(version2.trim().replace(/^[=v]+/, ""), options);
|
|
67627
67801
|
return s2 ? s2.version : null;
|
|
67628
67802
|
}, "clean");
|
|
67629
67803
|
module.exports = clean;
|
|
@@ -67655,10 +67829,10 @@ var require_inc = __commonJS({
|
|
|
67655
67829
|
var require_diff = __commonJS({
|
|
67656
67830
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports, module) {
|
|
67657
67831
|
init_esm_shims();
|
|
67658
|
-
var
|
|
67832
|
+
var parse8 = require_parse3();
|
|
67659
67833
|
var diff = /* @__PURE__ */ __name((version1, version2) => {
|
|
67660
|
-
const v1 =
|
|
67661
|
-
const v22 =
|
|
67834
|
+
const v1 = parse8(version1, null, true);
|
|
67835
|
+
const v22 = parse8(version2, null, true);
|
|
67662
67836
|
const comparison = v1.compare(v22);
|
|
67663
67837
|
if (comparison === 0) {
|
|
67664
67838
|
return null;
|
|
@@ -67730,9 +67904,9 @@ var require_patch = __commonJS({
|
|
|
67730
67904
|
var require_prerelease = __commonJS({
|
|
67731
67905
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
67732
67906
|
init_esm_shims();
|
|
67733
|
-
var
|
|
67907
|
+
var parse8 = require_parse3();
|
|
67734
67908
|
var prerelease = /* @__PURE__ */ __name((version2, options) => {
|
|
67735
|
-
const parsed =
|
|
67909
|
+
const parsed = parse8(version2, options);
|
|
67736
67910
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
67737
67911
|
}, "prerelease");
|
|
67738
67912
|
module.exports = prerelease;
|
|
@@ -67918,7 +68092,7 @@ var require_coerce = __commonJS({
|
|
|
67918
68092
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
67919
68093
|
init_esm_shims();
|
|
67920
68094
|
var SemVer = require_semver();
|
|
67921
|
-
var
|
|
68095
|
+
var parse8 = require_parse3();
|
|
67922
68096
|
var { safeRe: re3, t: t2 } = require_re();
|
|
67923
68097
|
var coerce2 = /* @__PURE__ */ __name((version2, options) => {
|
|
67924
68098
|
if (version2 instanceof SemVer) {
|
|
@@ -67953,7 +68127,7 @@ var require_coerce = __commonJS({
|
|
|
67953
68127
|
const patch = match[4] || "0";
|
|
67954
68128
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
67955
68129
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
67956
|
-
return
|
|
68130
|
+
return parse8(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
67957
68131
|
}, "coerce");
|
|
67958
68132
|
module.exports = coerce2;
|
|
67959
68133
|
}
|
|
@@ -68976,7 +69150,7 @@ var require_semver2 = __commonJS({
|
|
|
68976
69150
|
var constants3 = require_constants2();
|
|
68977
69151
|
var SemVer = require_semver();
|
|
68978
69152
|
var identifiers = require_identifiers();
|
|
68979
|
-
var
|
|
69153
|
+
var parse8 = require_parse3();
|
|
68980
69154
|
var valid = require_valid();
|
|
68981
69155
|
var clean = require_clean();
|
|
68982
69156
|
var inc = require_inc();
|
|
@@ -69014,7 +69188,7 @@ var require_semver2 = __commonJS({
|
|
|
69014
69188
|
var simplifyRange = require_simplify();
|
|
69015
69189
|
var subset = require_subset();
|
|
69016
69190
|
module.exports = {
|
|
69017
|
-
parse:
|
|
69191
|
+
parse: parse8,
|
|
69018
69192
|
valid,
|
|
69019
69193
|
clean,
|
|
69020
69194
|
inc,
|
|
@@ -69075,17 +69249,17 @@ var require_install_packages_task = __commonJS({
|
|
|
69075
69249
|
var child_process_1 = __require("child_process");
|
|
69076
69250
|
var path_1 = __require("path");
|
|
69077
69251
|
var devkit_exports_1 = __require("nx/src/devkit-exports");
|
|
69078
|
-
function installPackagesTask(tree, alwaysRun = false,
|
|
69079
|
-
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(
|
|
69252
|
+
function installPackagesTask(tree, alwaysRun = false, cwd3 = "", packageManager = (0, devkit_exports_1.detectPackageManager)((0, path_1.join)(tree.root, cwd3))) {
|
|
69253
|
+
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(cwd3, "package.json")) && !alwaysRun) {
|
|
69080
69254
|
return;
|
|
69081
69255
|
}
|
|
69082
|
-
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(
|
|
69256
|
+
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(cwd3, "package.json"), "utf-8");
|
|
69083
69257
|
let storedPackageJsonValue = global["__packageJsonInstallCache__"];
|
|
69084
69258
|
if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
|
|
69085
69259
|
global["__packageJsonInstallCache__"] = packageJsonValue;
|
|
69086
69260
|
const pmc = (0, devkit_exports_1.getPackageManagerCommand)(packageManager);
|
|
69087
69261
|
const execSyncOptions = {
|
|
69088
|
-
cwd: (0, path_1.join)(tree.root,
|
|
69262
|
+
cwd: (0, path_1.join)(tree.root, cwd3),
|
|
69089
69263
|
stdio: process.env.NX_GENERATE_QUIET === "true" ? "ignore" : "inherit",
|
|
69090
69264
|
windowsHide: false
|
|
69091
69265
|
};
|
|
@@ -69404,8 +69578,8 @@ var require_tmp = __commonJS({
|
|
|
69404
69578
|
function _assertIsRelative(name, option, tmpDir) {
|
|
69405
69579
|
if (option === "name") {
|
|
69406
69580
|
if (path6.isAbsolute(name)) throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
69407
|
-
let
|
|
69408
|
-
if (
|
|
69581
|
+
let basename3 = path6.basename(name);
|
|
69582
|
+
if (basename3 === ".." || basename3 === "." || basename3 !== name) throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
69409
69583
|
} else {
|
|
69410
69584
|
if (path6.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
69411
69585
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
@@ -71573,7 +71747,7 @@ var require_Observable = __commonJS({
|
|
|
71573
71747
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
71574
71748
|
var _this = this;
|
|
71575
71749
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71576
|
-
return new promiseCtor(function(
|
|
71750
|
+
return new promiseCtor(function(resolve4, reject2) {
|
|
71577
71751
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
71578
71752
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
71579
71753
|
try {
|
|
@@ -71584,7 +71758,7 @@ var require_Observable = __commonJS({
|
|
|
71584
71758
|
}
|
|
71585
71759
|
}, "next"),
|
|
71586
71760
|
error: reject2,
|
|
71587
|
-
complete:
|
|
71761
|
+
complete: resolve4
|
|
71588
71762
|
});
|
|
71589
71763
|
_this.subscribe(subscriber);
|
|
71590
71764
|
});
|
|
@@ -71606,14 +71780,14 @@ var require_Observable = __commonJS({
|
|
|
71606
71780
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
71607
71781
|
var _this = this;
|
|
71608
71782
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71609
|
-
return new promiseCtor(function(
|
|
71783
|
+
return new promiseCtor(function(resolve4, reject2) {
|
|
71610
71784
|
var value2;
|
|
71611
71785
|
_this.subscribe(function(x4) {
|
|
71612
71786
|
return value2 = x4;
|
|
71613
71787
|
}, function(err) {
|
|
71614
71788
|
return reject2(err);
|
|
71615
71789
|
}, function() {
|
|
71616
|
-
return
|
|
71790
|
+
return resolve4(value2);
|
|
71617
71791
|
});
|
|
71618
71792
|
});
|
|
71619
71793
|
};
|
|
@@ -73996,12 +74170,12 @@ var require_innerFrom = __commonJS({
|
|
|
73996
74170
|
init_esm_shims();
|
|
73997
74171
|
var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
73998
74172
|
function adopt(value2) {
|
|
73999
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
74000
|
-
|
|
74173
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
74174
|
+
resolve4(value2);
|
|
74001
74175
|
});
|
|
74002
74176
|
}
|
|
74003
74177
|
__name(adopt, "adopt");
|
|
74004
|
-
return new (P5 || (P5 = Promise))(function(
|
|
74178
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject2) {
|
|
74005
74179
|
function fulfilled(value2) {
|
|
74006
74180
|
try {
|
|
74007
74181
|
step(generator.next(value2));
|
|
@@ -74019,7 +74193,7 @@ var require_innerFrom = __commonJS({
|
|
|
74019
74193
|
}
|
|
74020
74194
|
__name(rejected, "rejected");
|
|
74021
74195
|
function step(result2) {
|
|
74022
|
-
result2.done ?
|
|
74196
|
+
result2.done ? resolve4(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
74023
74197
|
}
|
|
74024
74198
|
__name(step, "step");
|
|
74025
74199
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -74130,15 +74304,15 @@ var require_innerFrom = __commonJS({
|
|
|
74130
74304
|
}, i2);
|
|
74131
74305
|
function verb(n) {
|
|
74132
74306
|
i2[n] = o[n] && function(v4) {
|
|
74133
|
-
return new Promise(function(
|
|
74134
|
-
v4 = o[n](v4), settle(
|
|
74307
|
+
return new Promise(function(resolve4, reject2) {
|
|
74308
|
+
v4 = o[n](v4), settle(resolve4, reject2, v4.done, v4.value);
|
|
74135
74309
|
});
|
|
74136
74310
|
};
|
|
74137
74311
|
}
|
|
74138
74312
|
__name(verb, "verb");
|
|
74139
|
-
function settle(
|
|
74313
|
+
function settle(resolve4, reject2, d4, v4) {
|
|
74140
74314
|
Promise.resolve(v4).then(function(v5) {
|
|
74141
|
-
|
|
74315
|
+
resolve4({
|
|
74142
74316
|
value: v5,
|
|
74143
74317
|
done: d4
|
|
74144
74318
|
});
|
|
@@ -74887,7 +75061,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
74887
75061
|
var EmptyError_1 = require_EmptyError();
|
|
74888
75062
|
function lastValueFrom(source, config) {
|
|
74889
75063
|
var hasConfig = typeof config === "object";
|
|
74890
|
-
return new Promise(function(
|
|
75064
|
+
return new Promise(function(resolve4, reject2) {
|
|
74891
75065
|
var _hasValue = false;
|
|
74892
75066
|
var _value2;
|
|
74893
75067
|
source.subscribe({
|
|
@@ -74898,9 +75072,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
74898
75072
|
error: reject2,
|
|
74899
75073
|
complete: /* @__PURE__ */ __name(function() {
|
|
74900
75074
|
if (_hasValue) {
|
|
74901
|
-
|
|
75075
|
+
resolve4(_value2);
|
|
74902
75076
|
} else if (hasConfig) {
|
|
74903
|
-
|
|
75077
|
+
resolve4(config.defaultValue);
|
|
74904
75078
|
} else {
|
|
74905
75079
|
reject2(new EmptyError_1.EmptyError());
|
|
74906
75080
|
}
|
|
@@ -74926,16 +75100,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
74926
75100
|
var Subscriber_1 = require_Subscriber();
|
|
74927
75101
|
function firstValueFrom(source, config) {
|
|
74928
75102
|
var hasConfig = typeof config === "object";
|
|
74929
|
-
return new Promise(function(
|
|
75103
|
+
return new Promise(function(resolve4, reject2) {
|
|
74930
75104
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
74931
75105
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
74932
|
-
|
|
75106
|
+
resolve4(value2);
|
|
74933
75107
|
subscriber.unsubscribe();
|
|
74934
75108
|
}, "next"),
|
|
74935
75109
|
error: reject2,
|
|
74936
75110
|
complete: /* @__PURE__ */ __name(function() {
|
|
74937
75111
|
if (hasConfig) {
|
|
74938
|
-
|
|
75112
|
+
resolve4(config.defaultValue);
|
|
74939
75113
|
} else {
|
|
74940
75114
|
reject2(new EmptyError_1.EmptyError());
|
|
74941
75115
|
}
|
|
@@ -87873,7 +88047,7 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
87873
88047
|
init_esm_shims();
|
|
87874
88048
|
var tty2 = __require("node:tty");
|
|
87875
88049
|
var hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
87876
|
-
var
|
|
88050
|
+
var format4 = /* @__PURE__ */ __name((open, close) => {
|
|
87877
88051
|
if (!hasColors) {
|
|
87878
88052
|
return (input) => input;
|
|
87879
88053
|
}
|
|
@@ -87897,47 +88071,47 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
87897
88071
|
};
|
|
87898
88072
|
}, "format");
|
|
87899
88073
|
var colors8 = {};
|
|
87900
|
-
colors8.reset =
|
|
87901
|
-
colors8.bold =
|
|
87902
|
-
colors8.dim =
|
|
87903
|
-
colors8.italic =
|
|
87904
|
-
colors8.underline =
|
|
87905
|
-
colors8.overline =
|
|
87906
|
-
colors8.inverse =
|
|
87907
|
-
colors8.hidden =
|
|
87908
|
-
colors8.strikethrough =
|
|
87909
|
-
colors8.black =
|
|
87910
|
-
colors8.red =
|
|
87911
|
-
colors8.green =
|
|
87912
|
-
colors8.yellow =
|
|
87913
|
-
colors8.blue =
|
|
87914
|
-
colors8.magenta =
|
|
87915
|
-
colors8.cyan =
|
|
87916
|
-
colors8.white =
|
|
87917
|
-
colors8.gray =
|
|
87918
|
-
colors8.bgBlack =
|
|
87919
|
-
colors8.bgRed =
|
|
87920
|
-
colors8.bgGreen =
|
|
87921
|
-
colors8.bgYellow =
|
|
87922
|
-
colors8.bgBlue =
|
|
87923
|
-
colors8.bgMagenta =
|
|
87924
|
-
colors8.bgCyan =
|
|
87925
|
-
colors8.bgWhite =
|
|
87926
|
-
colors8.bgGray =
|
|
87927
|
-
colors8.redBright =
|
|
87928
|
-
colors8.greenBright =
|
|
87929
|
-
colors8.yellowBright =
|
|
87930
|
-
colors8.blueBright =
|
|
87931
|
-
colors8.magentaBright =
|
|
87932
|
-
colors8.cyanBright =
|
|
87933
|
-
colors8.whiteBright =
|
|
87934
|
-
colors8.bgRedBright =
|
|
87935
|
-
colors8.bgGreenBright =
|
|
87936
|
-
colors8.bgYellowBright =
|
|
87937
|
-
colors8.bgBlueBright =
|
|
87938
|
-
colors8.bgMagentaBright =
|
|
87939
|
-
colors8.bgCyanBright =
|
|
87940
|
-
colors8.bgWhiteBright =
|
|
88074
|
+
colors8.reset = format4(0, 0);
|
|
88075
|
+
colors8.bold = format4(1, 22);
|
|
88076
|
+
colors8.dim = format4(2, 22);
|
|
88077
|
+
colors8.italic = format4(3, 23);
|
|
88078
|
+
colors8.underline = format4(4, 24);
|
|
88079
|
+
colors8.overline = format4(53, 55);
|
|
88080
|
+
colors8.inverse = format4(7, 27);
|
|
88081
|
+
colors8.hidden = format4(8, 28);
|
|
88082
|
+
colors8.strikethrough = format4(9, 29);
|
|
88083
|
+
colors8.black = format4(30, 39);
|
|
88084
|
+
colors8.red = format4(31, 39);
|
|
88085
|
+
colors8.green = format4(32, 39);
|
|
88086
|
+
colors8.yellow = format4(33, 39);
|
|
88087
|
+
colors8.blue = format4(34, 39);
|
|
88088
|
+
colors8.magenta = format4(35, 39);
|
|
88089
|
+
colors8.cyan = format4(36, 39);
|
|
88090
|
+
colors8.white = format4(37, 39);
|
|
88091
|
+
colors8.gray = format4(90, 39);
|
|
88092
|
+
colors8.bgBlack = format4(40, 49);
|
|
88093
|
+
colors8.bgRed = format4(41, 49);
|
|
88094
|
+
colors8.bgGreen = format4(42, 49);
|
|
88095
|
+
colors8.bgYellow = format4(43, 49);
|
|
88096
|
+
colors8.bgBlue = format4(44, 49);
|
|
88097
|
+
colors8.bgMagenta = format4(45, 49);
|
|
88098
|
+
colors8.bgCyan = format4(46, 49);
|
|
88099
|
+
colors8.bgWhite = format4(47, 49);
|
|
88100
|
+
colors8.bgGray = format4(100, 49);
|
|
88101
|
+
colors8.redBright = format4(91, 39);
|
|
88102
|
+
colors8.greenBright = format4(92, 39);
|
|
88103
|
+
colors8.yellowBright = format4(93, 39);
|
|
88104
|
+
colors8.blueBright = format4(94, 39);
|
|
88105
|
+
colors8.magentaBright = format4(95, 39);
|
|
88106
|
+
colors8.cyanBright = format4(96, 39);
|
|
88107
|
+
colors8.whiteBright = format4(97, 39);
|
|
88108
|
+
colors8.bgRedBright = format4(101, 49);
|
|
88109
|
+
colors8.bgGreenBright = format4(102, 49);
|
|
88110
|
+
colors8.bgYellowBright = format4(103, 49);
|
|
88111
|
+
colors8.bgBlueBright = format4(104, 49);
|
|
88112
|
+
colors8.bgMagentaBright = format4(105, 49);
|
|
88113
|
+
colors8.bgCyanBright = format4(106, 49);
|
|
88114
|
+
colors8.bgWhiteBright = format4(107, 49);
|
|
87941
88115
|
module.exports = colors8;
|
|
87942
88116
|
}
|
|
87943
88117
|
});
|
|
@@ -88469,7 +88643,7 @@ var require_ansi_escapes = __commonJS({
|
|
|
88469
88643
|
return ret + ":" + buffer.toString("base64") + BEL;
|
|
88470
88644
|
};
|
|
88471
88645
|
ansiEscapes5.iTerm = {
|
|
88472
|
-
setCwd: /* @__PURE__ */ __name((
|
|
88646
|
+
setCwd: /* @__PURE__ */ __name((cwd3 = process.cwd()) => `${OSC}50;CurrentDir=${cwd3}${BEL}`, "setCwd"),
|
|
88473
88647
|
annotation: /* @__PURE__ */ __name((message2, options = {}) => {
|
|
88474
88648
|
let ret = `${OSC}1337;`;
|
|
88475
88649
|
const hasX = typeof options.x !== "undefined";
|
|
@@ -99954,13 +100128,13 @@ var require_ms = __commonJS({
|
|
|
99954
100128
|
options = options || {};
|
|
99955
100129
|
var type = typeof val;
|
|
99956
100130
|
if (type === "string" && val.length > 0) {
|
|
99957
|
-
return
|
|
100131
|
+
return parse8(val);
|
|
99958
100132
|
} else if (type === "number" && isFinite(val)) {
|
|
99959
100133
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
99960
100134
|
}
|
|
99961
100135
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
99962
100136
|
};
|
|
99963
|
-
function
|
|
100137
|
+
function parse8(str) {
|
|
99964
100138
|
str = String(str);
|
|
99965
100139
|
if (str.length > 100) {
|
|
99966
100140
|
return;
|
|
@@ -100014,7 +100188,7 @@ var require_ms = __commonJS({
|
|
|
100014
100188
|
return void 0;
|
|
100015
100189
|
}
|
|
100016
100190
|
}
|
|
100017
|
-
__name(
|
|
100191
|
+
__name(parse8, "parse");
|
|
100018
100192
|
function fmtShort(ms) {
|
|
100019
100193
|
var msAbs = Math.abs(ms);
|
|
100020
100194
|
if (msAbs >= d4) {
|
|
@@ -100107,12 +100281,12 @@ var require_common = __commonJS({
|
|
|
100107
100281
|
args.unshift("%O");
|
|
100108
100282
|
}
|
|
100109
100283
|
let index = 0;
|
|
100110
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
100284
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
100111
100285
|
if (match === "%%") {
|
|
100112
100286
|
return "%";
|
|
100113
100287
|
}
|
|
100114
100288
|
index++;
|
|
100115
|
-
const formatter = createDebug.formatters[
|
|
100289
|
+
const formatter = createDebug.formatters[format4];
|
|
100116
100290
|
if (typeof formatter === "function") {
|
|
100117
100291
|
const val = args[index];
|
|
100118
100292
|
match = formatter.call(self2, val);
|
|
@@ -101111,37 +101285,37 @@ var require_core = __commonJS({
|
|
|
101111
101285
|
return typeof this.path === "string" ? p2.dirname(this.path) : void 0;
|
|
101112
101286
|
}
|
|
101113
101287
|
__name(getDirname, "getDirname");
|
|
101114
|
-
function setDirname(
|
|
101288
|
+
function setDirname(dirname5) {
|
|
101115
101289
|
assertPath(this.path, "dirname");
|
|
101116
|
-
this.path = p2.join(
|
|
101290
|
+
this.path = p2.join(dirname5 || "", this.basename);
|
|
101117
101291
|
}
|
|
101118
101292
|
__name(setDirname, "setDirname");
|
|
101119
101293
|
function getBasename() {
|
|
101120
101294
|
return typeof this.path === "string" ? p2.basename(this.path) : void 0;
|
|
101121
101295
|
}
|
|
101122
101296
|
__name(getBasename, "getBasename");
|
|
101123
|
-
function setBasename(
|
|
101124
|
-
assertNonEmpty(
|
|
101125
|
-
assertPart(
|
|
101126
|
-
this.path = p2.join(this.dirname || "",
|
|
101297
|
+
function setBasename(basename3) {
|
|
101298
|
+
assertNonEmpty(basename3, "basename");
|
|
101299
|
+
assertPart(basename3, "basename");
|
|
101300
|
+
this.path = p2.join(this.dirname || "", basename3);
|
|
101127
101301
|
}
|
|
101128
101302
|
__name(setBasename, "setBasename");
|
|
101129
101303
|
function getExtname() {
|
|
101130
101304
|
return typeof this.path === "string" ? p2.extname(this.path) : void 0;
|
|
101131
101305
|
}
|
|
101132
101306
|
__name(getExtname, "getExtname");
|
|
101133
|
-
function setExtname(
|
|
101134
|
-
assertPart(
|
|
101307
|
+
function setExtname(extname5) {
|
|
101308
|
+
assertPart(extname5, "extname");
|
|
101135
101309
|
assertPath(this.path, "extname");
|
|
101136
|
-
if (
|
|
101137
|
-
if (
|
|
101310
|
+
if (extname5) {
|
|
101311
|
+
if (extname5.charCodeAt(0) !== 46) {
|
|
101138
101312
|
throw new Error("`extname` must start with `.`");
|
|
101139
101313
|
}
|
|
101140
|
-
if (
|
|
101314
|
+
if (extname5.indexOf(".", 1) > -1) {
|
|
101141
101315
|
throw new Error("`extname` cannot contain multiple dots");
|
|
101142
101316
|
}
|
|
101143
101317
|
}
|
|
101144
|
-
this.path = p2.join(this.dirname, this.stem + (
|
|
101318
|
+
this.path = p2.join(this.dirname, this.stem + (extname5 || ""));
|
|
101145
101319
|
}
|
|
101146
101320
|
__name(setExtname, "setExtname");
|
|
101147
101321
|
function getStem() {
|
|
@@ -101281,7 +101455,7 @@ var require_unified = __commonJS({
|
|
|
101281
101455
|
processor.freeze = freeze;
|
|
101282
101456
|
processor.attachers = attachers;
|
|
101283
101457
|
processor.use = use;
|
|
101284
|
-
processor.parse =
|
|
101458
|
+
processor.parse = parse8;
|
|
101285
101459
|
processor.stringify = stringify;
|
|
101286
101460
|
processor.run = run2;
|
|
101287
101461
|
processor.runSync = runSync;
|
|
@@ -101414,7 +101588,7 @@ var require_unified = __commonJS({
|
|
|
101414
101588
|
}
|
|
101415
101589
|
}
|
|
101416
101590
|
__name(find2, "find");
|
|
101417
|
-
function
|
|
101591
|
+
function parse8(doc) {
|
|
101418
101592
|
var file = vfile(doc);
|
|
101419
101593
|
var Parser4;
|
|
101420
101594
|
freeze();
|
|
@@ -101425,7 +101599,7 @@ var require_unified = __commonJS({
|
|
|
101425
101599
|
}
|
|
101426
101600
|
return Parser4(String(file), file);
|
|
101427
101601
|
}
|
|
101428
|
-
__name(
|
|
101602
|
+
__name(parse8, "parse");
|
|
101429
101603
|
function run2(node, file, cb2) {
|
|
101430
101604
|
assertNode(node);
|
|
101431
101605
|
freeze();
|
|
@@ -101437,14 +101611,14 @@ var require_unified = __commonJS({
|
|
|
101437
101611
|
return new Promise(executor);
|
|
101438
101612
|
}
|
|
101439
101613
|
executor(null, cb2);
|
|
101440
|
-
function executor(
|
|
101614
|
+
function executor(resolve4, reject2) {
|
|
101441
101615
|
transformers.run(node, vfile(file), done);
|
|
101442
101616
|
function done(error, tree, file2) {
|
|
101443
101617
|
tree = tree || node;
|
|
101444
101618
|
if (error) {
|
|
101445
101619
|
reject2(error);
|
|
101446
|
-
} else if (
|
|
101447
|
-
|
|
101620
|
+
} else if (resolve4) {
|
|
101621
|
+
resolve4(tree);
|
|
101448
101622
|
} else {
|
|
101449
101623
|
cb2(null, tree, file2);
|
|
101450
101624
|
}
|
|
@@ -101489,7 +101663,7 @@ var require_unified = __commonJS({
|
|
|
101489
101663
|
return new Promise(executor);
|
|
101490
101664
|
}
|
|
101491
101665
|
executor(null, cb2);
|
|
101492
|
-
function executor(
|
|
101666
|
+
function executor(resolve4, reject2) {
|
|
101493
101667
|
var file = vfile(doc);
|
|
101494
101668
|
pipeline2.run(processor, {
|
|
101495
101669
|
file
|
|
@@ -101497,8 +101671,8 @@ var require_unified = __commonJS({
|
|
|
101497
101671
|
function done(error) {
|
|
101498
101672
|
if (error) {
|
|
101499
101673
|
reject2(error);
|
|
101500
|
-
} else if (
|
|
101501
|
-
|
|
101674
|
+
} else if (resolve4) {
|
|
101675
|
+
resolve4(file);
|
|
101502
101676
|
} else {
|
|
101503
101677
|
cb2(null, file);
|
|
101504
101678
|
}
|
|
@@ -102844,12 +103018,12 @@ var require_resolve_all = __commonJS({
|
|
|
102844
103018
|
function resolveAll(constructs, events, context) {
|
|
102845
103019
|
var called = [];
|
|
102846
103020
|
var index = -1;
|
|
102847
|
-
var
|
|
103021
|
+
var resolve4;
|
|
102848
103022
|
while (++index < constructs.length) {
|
|
102849
|
-
|
|
102850
|
-
if (
|
|
102851
|
-
events =
|
|
102852
|
-
called.push(
|
|
103023
|
+
resolve4 = constructs[index].resolveAll;
|
|
103024
|
+
if (resolve4 && called.indexOf(resolve4) < 0) {
|
|
103025
|
+
events = resolve4(events, context);
|
|
103026
|
+
called.push(resolve4);
|
|
102853
103027
|
}
|
|
102854
103028
|
}
|
|
102855
103029
|
return events;
|
|
@@ -111214,7 +111388,7 @@ var require_parse4 = __commonJS({
|
|
|
111214
111388
|
var createTokenizer = require_create_tokenizer();
|
|
111215
111389
|
var miniflat = require_miniflat();
|
|
111216
111390
|
var constructs = require_constructs();
|
|
111217
|
-
function
|
|
111391
|
+
function parse8(options) {
|
|
111218
111392
|
var settings = options || {};
|
|
111219
111393
|
var parser = {
|
|
111220
111394
|
defined: [],
|
|
@@ -111237,8 +111411,8 @@ var require_parse4 = __commonJS({
|
|
|
111237
111411
|
}
|
|
111238
111412
|
__name(create2, "create");
|
|
111239
111413
|
}
|
|
111240
|
-
__name(
|
|
111241
|
-
module.exports =
|
|
111414
|
+
__name(parse8, "parse");
|
|
111415
|
+
module.exports = parse8;
|
|
111242
111416
|
}
|
|
111243
111417
|
});
|
|
111244
111418
|
|
|
@@ -112086,12 +112260,12 @@ var require_remark_parse = __commonJS({
|
|
|
112086
112260
|
"../../node_modules/.pnpm/remark-parse@9.0.0/node_modules/remark-parse/index.js"(exports, module) {
|
|
112087
112261
|
"use strict";
|
|
112088
112262
|
init_esm_shims();
|
|
112089
|
-
module.exports =
|
|
112263
|
+
module.exports = parse8;
|
|
112090
112264
|
var fromMarkdown = require_mdast_util_from_markdown();
|
|
112091
|
-
function
|
|
112265
|
+
function parse8(options) {
|
|
112092
112266
|
var self2 = this;
|
|
112093
|
-
this.Parser =
|
|
112094
|
-
function
|
|
112267
|
+
this.Parser = parse9;
|
|
112268
|
+
function parse9(doc) {
|
|
112095
112269
|
return fromMarkdown(doc, Object.assign({}, self2.data("settings"), options, {
|
|
112096
112270
|
// Note: these options are not in the readme.
|
|
112097
112271
|
// The goal is for them to be set by plugins on `data` instead of being
|
|
@@ -112100,9 +112274,9 @@ var require_remark_parse = __commonJS({
|
|
|
112100
112274
|
mdastExtensions: self2.data("fromMarkdownExtensions") || []
|
|
112101
112275
|
}));
|
|
112102
112276
|
}
|
|
112103
|
-
__name(
|
|
112277
|
+
__name(parse9, "parse");
|
|
112104
112278
|
}
|
|
112105
|
-
__name(
|
|
112279
|
+
__name(parse8, "parse");
|
|
112106
112280
|
}
|
|
112107
112281
|
});
|
|
112108
112282
|
|
|
@@ -112113,28 +112287,28 @@ var require_format = __commonJS({
|
|
|
112113
112287
|
(function() {
|
|
112114
112288
|
var namespace;
|
|
112115
112289
|
if (typeof module !== "undefined") {
|
|
112116
|
-
namespace = module.exports =
|
|
112290
|
+
namespace = module.exports = format4;
|
|
112117
112291
|
} else {
|
|
112118
112292
|
namespace = function() {
|
|
112119
112293
|
return this || (1, eval)("this");
|
|
112120
112294
|
}();
|
|
112121
112295
|
}
|
|
112122
|
-
namespace.format =
|
|
112296
|
+
namespace.format = format4;
|
|
112123
112297
|
namespace.vsprintf = vsprintf;
|
|
112124
112298
|
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
112125
112299
|
namespace.printf = printf;
|
|
112126
112300
|
}
|
|
112127
112301
|
function printf() {
|
|
112128
|
-
console.log(
|
|
112302
|
+
console.log(format4.apply(null, arguments));
|
|
112129
112303
|
}
|
|
112130
112304
|
__name(printf, "printf");
|
|
112131
112305
|
function vsprintf(fmt, replacements2) {
|
|
112132
|
-
return
|
|
112306
|
+
return format4.apply(null, [
|
|
112133
112307
|
fmt
|
|
112134
112308
|
].concat(replacements2));
|
|
112135
112309
|
}
|
|
112136
112310
|
__name(vsprintf, "vsprintf");
|
|
112137
|
-
function
|
|
112311
|
+
function format4(fmt) {
|
|
112138
112312
|
var argIndex = 1, args = [].slice.call(arguments), i2 = 0, n = fmt.length, result2 = "", c, escaped = false, arg, tmp, leadingZero = false, precision, nextArg = /* @__PURE__ */ __name(function() {
|
|
112139
112313
|
return args[argIndex++];
|
|
112140
112314
|
}, "nextArg"), slurpNumber = /* @__PURE__ */ __name(function() {
|
|
@@ -112203,7 +112377,7 @@ var require_format = __commonJS({
|
|
|
112203
112377
|
}
|
|
112204
112378
|
return result2;
|
|
112205
112379
|
}
|
|
112206
|
-
__name(
|
|
112380
|
+
__name(format4, "format");
|
|
112207
112381
|
})();
|
|
112208
112382
|
}
|
|
112209
112383
|
});
|
|
@@ -112226,11 +112400,11 @@ var require_fault = __commonJS({
|
|
|
112226
112400
|
function create2(EConstructor) {
|
|
112227
112401
|
FormattedError.displayName = EConstructor.displayName || EConstructor.name;
|
|
112228
112402
|
return FormattedError;
|
|
112229
|
-
function FormattedError(
|
|
112230
|
-
if (
|
|
112231
|
-
|
|
112403
|
+
function FormattedError(format4) {
|
|
112404
|
+
if (format4) {
|
|
112405
|
+
format4 = formatter.apply(null, arguments);
|
|
112232
112406
|
}
|
|
112233
|
-
return new EConstructor(
|
|
112407
|
+
return new EConstructor(format4);
|
|
112234
112408
|
}
|
|
112235
112409
|
__name(FormattedError, "FormattedError");
|
|
112236
112410
|
}
|
|
@@ -112308,10 +112482,10 @@ var require_syntax5 = __commonJS({
|
|
|
112308
112482
|
matter = settings[index];
|
|
112309
112483
|
code = fence(matter, "open").charCodeAt(0);
|
|
112310
112484
|
if (code in flow) {
|
|
112311
|
-
flow[code].push(
|
|
112485
|
+
flow[code].push(parse8(matter));
|
|
112312
112486
|
} else {
|
|
112313
112487
|
flow[code] = [
|
|
112314
|
-
|
|
112488
|
+
parse8(matter)
|
|
112315
112489
|
];
|
|
112316
112490
|
}
|
|
112317
112491
|
}
|
|
@@ -112320,7 +112494,7 @@ var require_syntax5 = __commonJS({
|
|
|
112320
112494
|
};
|
|
112321
112495
|
}
|
|
112322
112496
|
__name(create2, "create");
|
|
112323
|
-
function
|
|
112497
|
+
function parse8(matter) {
|
|
112324
112498
|
var name = matter.type;
|
|
112325
112499
|
var anywhere = matter.anywhere;
|
|
112326
112500
|
var valueType = name + "Value";
|
|
@@ -112436,7 +112610,7 @@ var require_syntax5 = __commonJS({
|
|
|
112436
112610
|
}
|
|
112437
112611
|
__name(tokenizeFence, "tokenizeFence");
|
|
112438
112612
|
}
|
|
112439
|
-
__name(
|
|
112613
|
+
__name(parse8, "parse");
|
|
112440
112614
|
function fence(matter, prop) {
|
|
112441
112615
|
var marker;
|
|
112442
112616
|
if (matter.marker) {
|
|
@@ -113492,7 +113666,7 @@ var require_update_section = __commonJS({
|
|
|
113492
113666
|
"../../node_modules/.pnpm/update-section@0.3.3/node_modules/update-section/update-section.js"(exports, module) {
|
|
113493
113667
|
"use strict";
|
|
113494
113668
|
init_esm_shims();
|
|
113495
|
-
function
|
|
113669
|
+
function parse8(lines2, matchesStart2, matchesEnd2) {
|
|
113496
113670
|
var startIdx = -1, endIdx = -1, hasStart = false, hasEnd = false, line;
|
|
113497
113671
|
for (var i2 = 0; i2 < lines2.length; i2++) {
|
|
113498
113672
|
line = lines2[i2];
|
|
@@ -113516,12 +113690,12 @@ var require_update_section = __commonJS({
|
|
|
113516
113690
|
endIdx
|
|
113517
113691
|
};
|
|
113518
113692
|
}
|
|
113519
|
-
__name(
|
|
113693
|
+
__name(parse8, "parse");
|
|
113520
113694
|
exports = module.exports = /* @__PURE__ */ __name(function updateSection2(content, section, matchesStart2, matchesEnd2, top) {
|
|
113521
113695
|
if (!content) return section;
|
|
113522
113696
|
var lines2 = content.split("\n");
|
|
113523
113697
|
if (!lines2.length) return section;
|
|
113524
|
-
var info =
|
|
113698
|
+
var info = parse8(lines2, matchesStart2, matchesEnd2);
|
|
113525
113699
|
if (!info.hasStart) return top ? section + "\n\n" + content : content + "\n\n" + section;
|
|
113526
113700
|
var sectionLines = section.split("\n"), dropN = info.endIdx - info.startIdx + 1;
|
|
113527
113701
|
[].splice.apply(lines2, [
|
|
@@ -113530,7 +113704,7 @@ var require_update_section = __commonJS({
|
|
|
113530
113704
|
].concat(sectionLines));
|
|
113531
113705
|
return lines2.join("\n");
|
|
113532
113706
|
}, "updateSection");
|
|
113533
|
-
exports.parse =
|
|
113707
|
+
exports.parse = parse8;
|
|
113534
113708
|
}
|
|
113535
113709
|
});
|
|
113536
113710
|
|
|
@@ -113573,12 +113747,12 @@ function createJiti(id, opts = {}) {
|
|
|
113573
113747
|
__name(createJiti, "createJiti");
|
|
113574
113748
|
|
|
113575
113749
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
113576
|
-
|
|
113750
|
+
init_dist6();
|
|
113577
113751
|
|
|
113578
113752
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
113579
113753
|
init_esm_shims();
|
|
113580
113754
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
113581
|
-
import { resolve as
|
|
113755
|
+
import { resolve as resolve3 } from "node:path";
|
|
113582
113756
|
import { homedir } from "node:os";
|
|
113583
113757
|
|
|
113584
113758
|
// ../../node_modules/.pnpm/destr@2.0.3/node_modules/destr/dist/index.mjs
|
|
@@ -113783,7 +113957,7 @@ function withDefaults(options) {
|
|
|
113783
113957
|
return { ...defaults, ...options };
|
|
113784
113958
|
}
|
|
113785
113959
|
__name(withDefaults, "withDefaults");
|
|
113786
|
-
function
|
|
113960
|
+
function parse5(contents, options = {}) {
|
|
113787
113961
|
const config = {};
|
|
113788
113962
|
const lines2 = contents.split(RE_LINES);
|
|
113789
113963
|
for (const line of lines2) {
|
|
@@ -113808,17 +113982,17 @@ function parse4(contents, options = {}) {
|
|
|
113808
113982
|
}
|
|
113809
113983
|
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
113810
113984
|
}
|
|
113811
|
-
__name(
|
|
113985
|
+
__name(parse5, "parse");
|
|
113812
113986
|
function parseFile(path6, options) {
|
|
113813
113987
|
if (!existsSync(path6)) {
|
|
113814
113988
|
return {};
|
|
113815
113989
|
}
|
|
113816
|
-
return
|
|
113990
|
+
return parse5(readFileSync(path6, "utf8"), options);
|
|
113817
113991
|
}
|
|
113818
113992
|
__name(parseFile, "parseFile");
|
|
113819
113993
|
function read2(options) {
|
|
113820
113994
|
options = withDefaults(options);
|
|
113821
|
-
return parseFile(
|
|
113995
|
+
return parseFile(resolve3(options.dir, options.name), options);
|
|
113822
113996
|
}
|
|
113823
113997
|
__name(read2, "read");
|
|
113824
113998
|
function readUser(options) {
|
|
@@ -114474,7 +114648,7 @@ function hash(object2, options = {}) {
|
|
|
114474
114648
|
__name(hash, "hash");
|
|
114475
114649
|
|
|
114476
114650
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
114477
|
-
|
|
114651
|
+
init_dist5();
|
|
114478
114652
|
var dotenv = __toESM(require_main(), 1);
|
|
114479
114653
|
async function setupDotenv(options) {
|
|
114480
114654
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -114509,7 +114683,7 @@ async function loadDotenv(options) {
|
|
|
114509
114683
|
return environment;
|
|
114510
114684
|
}
|
|
114511
114685
|
__name(loadDotenv, "loadDotenv");
|
|
114512
|
-
function interpolate(target, source = {},
|
|
114686
|
+
function interpolate(target, source = {}, parse8 = (v4) => v4) {
|
|
114513
114687
|
function getValue(key) {
|
|
114514
114688
|
return source[key] === void 0 ? target[key] : source[key];
|
|
114515
114689
|
}
|
|
@@ -114519,7 +114693,7 @@ function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
|
114519
114693
|
return value2;
|
|
114520
114694
|
}
|
|
114521
114695
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
114522
|
-
return
|
|
114696
|
+
return parse8(
|
|
114523
114697
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
114524
114698
|
matches.reduce((newValue, match) => {
|
|
114525
114699
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -114757,7 +114931,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
114757
114931
|
}
|
|
114758
114932
|
const _merger = options.merger || defu;
|
|
114759
114933
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
114760
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
114934
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
114761
114935
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
114762
114936
|
let cloneDir;
|
|
114763
114937
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -114791,18 +114965,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
114791
114965
|
}
|
|
114792
114966
|
const ext = extname(source);
|
|
114793
114967
|
const isDir = !ext || ext === basename(source);
|
|
114794
|
-
const
|
|
114968
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
114795
114969
|
if (isDir) {
|
|
114796
114970
|
source = options.configFile;
|
|
114797
114971
|
}
|
|
114798
114972
|
const res = {
|
|
114799
114973
|
config: void 0,
|
|
114800
114974
|
configFile: void 0,
|
|
114801
|
-
cwd:
|
|
114975
|
+
cwd: cwd3,
|
|
114802
114976
|
source,
|
|
114803
114977
|
sourceOptions
|
|
114804
114978
|
};
|
|
114805
|
-
res.configFile = tryResolve(resolve(
|
|
114979
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
114806
114980
|
if (!existsSync4(res.configFile)) {
|
|
114807
114981
|
return res;
|
|
114808
114982
|
}
|
|
@@ -119245,7 +119419,7 @@ var COLOR_KEYS = [
|
|
|
119245
119419
|
|
|
119246
119420
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
119247
119421
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
119248
|
-
import { join as
|
|
119422
|
+
import { join as join4 } from "node:path";
|
|
119249
119423
|
|
|
119250
119424
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
119251
119425
|
init_esm_shims();
|
|
@@ -119272,16 +119446,16 @@ var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
|
119272
119446
|
// ../config-tools/src/utilities/find-up.ts
|
|
119273
119447
|
init_esm_shims();
|
|
119274
119448
|
import { existsSync as existsSync5 } from "node:fs";
|
|
119275
|
-
import { join as
|
|
119449
|
+
import { join as join3 } from "node:path";
|
|
119276
119450
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
119277
119451
|
var depth = 0;
|
|
119278
119452
|
function findFolderUp(startPath, endFileNames) {
|
|
119279
119453
|
const _startPath = startPath ?? process.cwd();
|
|
119280
|
-
if (endFileNames.some((endFileName) => existsSync5(
|
|
119454
|
+
if (endFileNames.some((endFileName) => existsSync5(join3(_startPath, endFileName)))) {
|
|
119281
119455
|
return _startPath;
|
|
119282
119456
|
}
|
|
119283
119457
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
119284
|
-
const parent =
|
|
119458
|
+
const parent = join3(_startPath, "..");
|
|
119285
119459
|
return findFolderUp(parent, endFileNames);
|
|
119286
119460
|
}
|
|
119287
119461
|
return void 0;
|
|
@@ -119378,8 +119552,8 @@ var getDefaultConfig = /* @__PURE__ */ __name((root2) => {
|
|
|
119378
119552
|
let namespace;
|
|
119379
119553
|
let repository;
|
|
119380
119554
|
const workspaceRoot2 = findWorkspaceRoot(root2);
|
|
119381
|
-
if (existsSync6(
|
|
119382
|
-
const file = readFileSync3(
|
|
119555
|
+
if (existsSync6(join4(workspaceRoot2, "package.json"))) {
|
|
119556
|
+
const file = readFileSync3(join4(workspaceRoot2, "package.json"), {
|
|
119383
119557
|
encoding: "utf8"
|
|
119384
119558
|
});
|
|
119385
119559
|
if (file) {
|
|
@@ -119616,9 +119790,9 @@ Stacktrace: ${error.stack}`, config);
|
|
|
119616
119790
|
init_esm_shims();
|
|
119617
119791
|
import { exec, execSync } from "node:child_process";
|
|
119618
119792
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
119619
|
-
var run = /* @__PURE__ */ __name((config, command,
|
|
119793
|
+
var run = /* @__PURE__ */ __name((config, command, cwd3 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env2 = process.env) => {
|
|
119620
119794
|
return execSync(command, {
|
|
119621
|
-
cwd:
|
|
119795
|
+
cwd: cwd3,
|
|
119622
119796
|
env: {
|
|
119623
119797
|
...process.env,
|
|
119624
119798
|
...env2,
|
|
@@ -120134,16 +120308,16 @@ var {
|
|
|
120134
120308
|
// src/commit/run.ts
|
|
120135
120309
|
init_esm_shims();
|
|
120136
120310
|
|
|
120137
|
-
// ../../node_modules/.pnpm/@inquirer+prompts@7.2.1_@types+node@22.10.
|
|
120311
|
+
// ../../node_modules/.pnpm/@inquirer+prompts@7.2.1_@types+node@22.10.6/node_modules/@inquirer/prompts/dist/esm/index.js
|
|
120138
120312
|
init_esm_shims();
|
|
120139
120313
|
|
|
120140
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.
|
|
120314
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.6/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
120141
120315
|
init_esm_shims();
|
|
120142
120316
|
|
|
120143
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120317
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/index.js
|
|
120144
120318
|
init_esm_shims();
|
|
120145
120319
|
|
|
120146
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120320
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
120147
120321
|
init_esm_shims();
|
|
120148
120322
|
var isUpKey = /* @__PURE__ */ __name((key) => (
|
|
120149
120323
|
// The up key
|
|
@@ -120162,7 +120336,7 @@ var isBackspaceKey = /* @__PURE__ */ __name((key) => key.name === "backspace", "
|
|
|
120162
120336
|
var isNumberKey = /* @__PURE__ */ __name((key) => "123456789".includes(key.name), "isNumberKey");
|
|
120163
120337
|
var isEnterKey = /* @__PURE__ */ __name((key) => key.name === "enter" || key.name === "return", "isEnterKey");
|
|
120164
120338
|
|
|
120165
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120339
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
120166
120340
|
init_esm_shims();
|
|
120167
120341
|
var AbortPromptError = class extends Error {
|
|
120168
120342
|
static {
|
|
@@ -120201,14 +120375,14 @@ var ValidationError = class extends Error {
|
|
|
120201
120375
|
name = "ValidationError";
|
|
120202
120376
|
};
|
|
120203
120377
|
|
|
120204
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120378
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
120205
120379
|
init_esm_shims();
|
|
120206
120380
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
120207
120381
|
|
|
120208
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120382
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
120209
120383
|
init_esm_shims();
|
|
120210
120384
|
|
|
120211
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120385
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
120212
120386
|
init_esm_shims();
|
|
120213
120387
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
120214
120388
|
var hookStorage = new AsyncLocalStorage();
|
|
@@ -120323,7 +120497,7 @@ var effectScheduler = {
|
|
|
120323
120497
|
}
|
|
120324
120498
|
};
|
|
120325
120499
|
|
|
120326
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120500
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
120327
120501
|
function useState(defaultValue) {
|
|
120328
120502
|
return withPointer((pointer) => {
|
|
120329
120503
|
const setFn = /* @__PURE__ */ __name((newValue) => {
|
|
@@ -120348,7 +120522,7 @@ function useState(defaultValue) {
|
|
|
120348
120522
|
}
|
|
120349
120523
|
__name(useState, "useState");
|
|
120350
120524
|
|
|
120351
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120525
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
120352
120526
|
init_esm_shims();
|
|
120353
120527
|
function useEffect(cb2, depArray) {
|
|
120354
120528
|
withPointer((pointer) => {
|
|
@@ -120362,10 +120536,10 @@ function useEffect(cb2, depArray) {
|
|
|
120362
120536
|
}
|
|
120363
120537
|
__name(useEffect, "useEffect");
|
|
120364
120538
|
|
|
120365
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120539
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
120366
120540
|
init_esm_shims();
|
|
120367
120541
|
|
|
120368
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120542
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
120369
120543
|
init_esm_shims();
|
|
120370
120544
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
120371
120545
|
|
|
@@ -120663,7 +120837,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
120663
120837
|
var esm_default = figures;
|
|
120664
120838
|
var replacements = Object.entries(specialMainSymbols);
|
|
120665
120839
|
|
|
120666
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120840
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
120667
120841
|
var defaultTheme = {
|
|
120668
120842
|
prefix: {
|
|
120669
120843
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -120696,7 +120870,7 @@ var defaultTheme = {
|
|
|
120696
120870
|
}
|
|
120697
120871
|
};
|
|
120698
120872
|
|
|
120699
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120873
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
120700
120874
|
function isPlainObject2(value2) {
|
|
120701
120875
|
if (typeof value2 !== "object" || value2 === null) return false;
|
|
120702
120876
|
let proto2 = value2;
|
|
@@ -120726,7 +120900,7 @@ function makeTheme(...themes) {
|
|
|
120726
120900
|
}
|
|
120727
120901
|
__name(makeTheme, "makeTheme");
|
|
120728
120902
|
|
|
120729
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120903
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
120730
120904
|
function usePrefix({ status = "idle", theme }) {
|
|
120731
120905
|
const [showLoader, setShowLoader] = useState(false);
|
|
120732
120906
|
const [tick, setTick] = useState(0);
|
|
@@ -120760,7 +120934,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
120760
120934
|
}
|
|
120761
120935
|
__name(usePrefix, "usePrefix");
|
|
120762
120936
|
|
|
120763
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120937
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
120764
120938
|
init_esm_shims();
|
|
120765
120939
|
function useMemo(fn2, dependencies) {
|
|
120766
120940
|
return withPointer((pointer) => {
|
|
@@ -120778,7 +120952,7 @@ function useMemo(fn2, dependencies) {
|
|
|
120778
120952
|
}
|
|
120779
120953
|
__name(useMemo, "useMemo");
|
|
120780
120954
|
|
|
120781
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120955
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
120782
120956
|
init_esm_shims();
|
|
120783
120957
|
function useRef(val) {
|
|
120784
120958
|
return useState({
|
|
@@ -120787,7 +120961,7 @@ function useRef(val) {
|
|
|
120787
120961
|
}
|
|
120788
120962
|
__name(useRef, "useRef");
|
|
120789
120963
|
|
|
120790
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120964
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
120791
120965
|
init_esm_shims();
|
|
120792
120966
|
function useKeypress(userHandler) {
|
|
120793
120967
|
const signal = useRef(userHandler);
|
|
@@ -120807,10 +120981,10 @@ function useKeypress(userHandler) {
|
|
|
120807
120981
|
}
|
|
120808
120982
|
__name(useKeypress, "useKeypress");
|
|
120809
120983
|
|
|
120810
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120984
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
120811
120985
|
init_esm_shims();
|
|
120812
120986
|
|
|
120813
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120987
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
120814
120988
|
init_esm_shims();
|
|
120815
120989
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
120816
120990
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
@@ -120829,7 +121003,7 @@ function readlineWidth() {
|
|
|
120829
121003
|
}
|
|
120830
121004
|
__name(readlineWidth, "readlineWidth");
|
|
120831
121005
|
|
|
120832
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121006
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
|
120833
121007
|
init_esm_shims();
|
|
120834
121008
|
function split(content, width) {
|
|
120835
121009
|
return breakLines(content, width).split("\n");
|
|
@@ -120880,7 +121054,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
|
|
|
120880
121054
|
}
|
|
120881
121055
|
__name(lines, "lines");
|
|
120882
121056
|
|
|
120883
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121057
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
|
120884
121058
|
init_esm_shims();
|
|
120885
121059
|
function finite({ active, pageSize, total }) {
|
|
120886
121060
|
const middle = Math.floor(pageSize / 2);
|
|
@@ -120898,7 +121072,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
|
|
|
120898
121072
|
}
|
|
120899
121073
|
__name(infinite, "infinite");
|
|
120900
121074
|
|
|
120901
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121075
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
120902
121076
|
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
120903
121077
|
const state = useRef({
|
|
120904
121078
|
position: 0,
|
|
@@ -120928,14 +121102,14 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
120928
121102
|
}
|
|
120929
121103
|
__name(usePagination, "usePagination");
|
|
120930
121104
|
|
|
120931
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121105
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
120932
121106
|
init_esm_shims();
|
|
120933
121107
|
var import_mute_stream = __toESM(require_lib2(), 1);
|
|
120934
121108
|
init_mjs();
|
|
120935
121109
|
import * as readline2 from "node:readline";
|
|
120936
121110
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
120937
121111
|
|
|
120938
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121112
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
120939
121113
|
init_esm_shims();
|
|
120940
121114
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
120941
121115
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
@@ -121005,7 +121179,7 @@ var ScreenManager = class {
|
|
|
121005
121179
|
}
|
|
121006
121180
|
};
|
|
121007
121181
|
|
|
121008
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121182
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
121009
121183
|
init_esm_shims();
|
|
121010
121184
|
var PromisePolyfill = class extends Promise {
|
|
121011
121185
|
static {
|
|
@@ -121014,21 +121188,21 @@ var PromisePolyfill = class extends Promise {
|
|
|
121014
121188
|
// Available starting from Node 22
|
|
121015
121189
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
121016
121190
|
static withResolver() {
|
|
121017
|
-
let
|
|
121191
|
+
let resolve4;
|
|
121018
121192
|
let reject2;
|
|
121019
121193
|
const promise = new Promise((res, rej) => {
|
|
121020
|
-
|
|
121194
|
+
resolve4 = res;
|
|
121021
121195
|
reject2 = rej;
|
|
121022
121196
|
});
|
|
121023
121197
|
return {
|
|
121024
121198
|
promise,
|
|
121025
|
-
resolve:
|
|
121199
|
+
resolve: resolve4,
|
|
121026
121200
|
reject: reject2
|
|
121027
121201
|
};
|
|
121028
121202
|
}
|
|
121029
121203
|
};
|
|
121030
121204
|
|
|
121031
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121205
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
121032
121206
|
function getCallSites() {
|
|
121033
121207
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
121034
121208
|
try {
|
|
@@ -121059,7 +121233,7 @@ function createPrompt(view) {
|
|
|
121059
121233
|
output
|
|
121060
121234
|
});
|
|
121061
121235
|
const screen = new ScreenManager(rl);
|
|
121062
|
-
const { promise, resolve:
|
|
121236
|
+
const { promise, resolve: resolve4, reject: reject2 } = PromisePolyfill.withResolver();
|
|
121063
121237
|
const cancel = /* @__PURE__ */ __name(() => reject2(new CancelPromptError()), "cancel");
|
|
121064
121238
|
if (signal) {
|
|
121065
121239
|
const abort = /* @__PURE__ */ __name(() => reject2(new AbortPromptError({
|
|
@@ -121087,7 +121261,7 @@ function createPrompt(view) {
|
|
|
121087
121261
|
cycle(() => {
|
|
121088
121262
|
try {
|
|
121089
121263
|
const nextView = view(config, (value2) => {
|
|
121090
|
-
setImmediate(() =>
|
|
121264
|
+
setImmediate(() => resolve4(value2));
|
|
121091
121265
|
});
|
|
121092
121266
|
if (nextView === void 0) {
|
|
121093
121267
|
throw new Error(`Prompt functions must return a string.
|
|
@@ -121123,7 +121297,7 @@ function createPrompt(view) {
|
|
|
121123
121297
|
}
|
|
121124
121298
|
__name(createPrompt, "createPrompt");
|
|
121125
121299
|
|
|
121126
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121300
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.6/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
121127
121301
|
init_esm_shims();
|
|
121128
121302
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121129
121303
|
var Separator = class {
|
|
@@ -121144,7 +121318,7 @@ var Separator = class {
|
|
|
121144
121318
|
}
|
|
121145
121319
|
};
|
|
121146
121320
|
|
|
121147
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.
|
|
121321
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.6/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
121148
121322
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121149
121323
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
121150
121324
|
var checkboxTheme = {
|
|
@@ -121336,7 +121510,7 @@ ${theme.style.error(errorMsg)}`;
|
|
|
121336
121510
|
${page}${helpTipBottom}${choiceDescription}${error}${import_ansi_escapes2.default.cursorHide}`;
|
|
121337
121511
|
});
|
|
121338
121512
|
|
|
121339
|
-
// ../../node_modules/.pnpm/@inquirer+editor@4.2.1_@types+node@22.10.
|
|
121513
|
+
// ../../node_modules/.pnpm/@inquirer+editor@4.2.1_@types+node@22.10.6/node_modules/@inquirer/editor/dist/esm/index.js
|
|
121340
121514
|
init_esm_shims();
|
|
121341
121515
|
var import_external_editor = __toESM(require_main2(), 1);
|
|
121342
121516
|
import { AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
@@ -121418,7 +121592,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
121418
121592
|
];
|
|
121419
121593
|
});
|
|
121420
121594
|
|
|
121421
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.1_@types+node@22.10.
|
|
121595
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.1_@types+node@22.10.6/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
121422
121596
|
init_esm_shims();
|
|
121423
121597
|
function getBooleanValue(value2, defaultValue) {
|
|
121424
121598
|
let answer = defaultValue !== false;
|
|
@@ -121466,7 +121640,7 @@ var esm_default4 = createPrompt((config, done) => {
|
|
|
121466
121640
|
return `${prefix} ${message2}${defaultValue} ${formattedValue}`;
|
|
121467
121641
|
});
|
|
121468
121642
|
|
|
121469
|
-
// ../../node_modules/.pnpm/@inquirer+input@4.1.1_@types+node@22.10.
|
|
121643
|
+
// ../../node_modules/.pnpm/@inquirer+input@4.1.1_@types+node@22.10.6/node_modules/@inquirer/input/dist/esm/index.js
|
|
121470
121644
|
init_esm_shims();
|
|
121471
121645
|
var inputTheme = {
|
|
121472
121646
|
validationFailureMode: "keep"
|
|
@@ -121543,7 +121717,7 @@ var esm_default5 = createPrompt((config, done) => {
|
|
|
121543
121717
|
];
|
|
121544
121718
|
});
|
|
121545
121719
|
|
|
121546
|
-
// ../../node_modules/.pnpm/@inquirer+number@3.0.4_@types+node@22.10.
|
|
121720
|
+
// ../../node_modules/.pnpm/@inquirer+number@3.0.4_@types+node@22.10.6/node_modules/@inquirer/number/dist/esm/index.js
|
|
121547
121721
|
init_esm_shims();
|
|
121548
121722
|
function isStepOf(value2, step, min2) {
|
|
121549
121723
|
const valuePow = value2 * Math.pow(10, 6);
|
|
@@ -121643,7 +121817,7 @@ var esm_default6 = createPrompt((config, done) => {
|
|
|
121643
121817
|
];
|
|
121644
121818
|
});
|
|
121645
121819
|
|
|
121646
|
-
// ../../node_modules/.pnpm/@inquirer+expand@4.0.4_@types+node@22.10.
|
|
121820
|
+
// ../../node_modules/.pnpm/@inquirer+expand@4.0.4_@types+node@22.10.6/node_modules/@inquirer/expand/dist/esm/index.js
|
|
121647
121821
|
init_esm_shims();
|
|
121648
121822
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121649
121823
|
function normalizeChoices2(choices) {
|
|
@@ -121752,7 +121926,7 @@ var esm_default7 = createPrompt((config, done) => {
|
|
|
121752
121926
|
];
|
|
121753
121927
|
});
|
|
121754
121928
|
|
|
121755
|
-
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.4_@types+node@22.10.
|
|
121929
|
+
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.4_@types+node@22.10.6/node_modules/@inquirer/rawlist/dist/esm/index.js
|
|
121756
121930
|
init_esm_shims();
|
|
121757
121931
|
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121758
121932
|
var numberRegex = /\d+/;
|
|
@@ -121845,7 +122019,7 @@ var esm_default8 = createPrompt((config, done) => {
|
|
|
121845
122019
|
];
|
|
121846
122020
|
});
|
|
121847
122021
|
|
|
121848
|
-
// ../../node_modules/.pnpm/@inquirer+password@4.0.4_@types+node@22.10.
|
|
122022
|
+
// ../../node_modules/.pnpm/@inquirer+password@4.0.4_@types+node@22.10.6/node_modules/@inquirer/password/dist/esm/index.js
|
|
121849
122023
|
init_esm_shims();
|
|
121850
122024
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
121851
122025
|
var esm_default9 = createPrompt((config, done) => {
|
|
@@ -121906,7 +122080,7 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
121906
122080
|
];
|
|
121907
122081
|
});
|
|
121908
122082
|
|
|
121909
|
-
// ../../node_modules/.pnpm/@inquirer+search@3.0.4_@types+node@22.10.
|
|
122083
|
+
// ../../node_modules/.pnpm/@inquirer+search@3.0.4_@types+node@22.10.6/node_modules/@inquirer/search/dist/esm/index.js
|
|
121910
122084
|
init_esm_shims();
|
|
121911
122085
|
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121912
122086
|
var searchTheme = {
|
|
@@ -122087,7 +122261,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
|
|
|
122087
122261
|
];
|
|
122088
122262
|
});
|
|
122089
122263
|
|
|
122090
|
-
// ../../node_modules/.pnpm/@inquirer+select@4.0.4_@types+node@22.10.
|
|
122264
|
+
// ../../node_modules/.pnpm/@inquirer+select@4.0.4_@types+node@22.10.6/node_modules/@inquirer/select/dist/esm/index.js
|
|
122091
122265
|
init_esm_shims();
|
|
122092
122266
|
var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
|
|
122093
122267
|
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
@@ -124365,15 +124539,15 @@ init_esm_shims();
|
|
|
124365
124539
|
// ../../node_modules/.pnpm/conventional-commits-parser@6.0.0/node_modules/conventional-commits-parser/dist/regex.js
|
|
124366
124540
|
init_esm_shims();
|
|
124367
124541
|
var nomatchRegex = /(?!.*)/;
|
|
124368
|
-
function
|
|
124542
|
+
function join5(parts, joiner) {
|
|
124369
124543
|
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
124370
124544
|
}
|
|
124371
|
-
__name(
|
|
124545
|
+
__name(join5, "join");
|
|
124372
124546
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
124373
124547
|
if (!noteKeywords) {
|
|
124374
124548
|
return nomatchRegex;
|
|
124375
124549
|
}
|
|
124376
|
-
const noteKeywordsSelection =
|
|
124550
|
+
const noteKeywordsSelection = join5(noteKeywords, "|");
|
|
124377
124551
|
if (!notesPattern) {
|
|
124378
124552
|
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
124379
124553
|
}
|
|
@@ -124385,14 +124559,14 @@ function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
|
124385
124559
|
return nomatchRegex;
|
|
124386
124560
|
}
|
|
124387
124561
|
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
124388
|
-
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${
|
|
124562
|
+
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${join5(issuePrefixes, "|")})([\\w-]*\\d+)`, flags);
|
|
124389
124563
|
}
|
|
124390
124564
|
__name(getReferencePartsRegex, "getReferencePartsRegex");
|
|
124391
124565
|
function getReferencesRegex(referenceActions) {
|
|
124392
124566
|
if (!referenceActions) {
|
|
124393
124567
|
return /()(.+)/gi;
|
|
124394
124568
|
}
|
|
124395
|
-
const joinedKeywords =
|
|
124569
|
+
const joinedKeywords = join5(referenceActions, "|");
|
|
124396
124570
|
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
124397
124571
|
}
|
|
124398
124572
|
__name(getReferencesRegex, "getReferencesRegex");
|
|
@@ -125633,12 +125807,12 @@ var RetryTask = class RetryTask2 {
|
|
|
125633
125807
|
* @param {Function} reject The reject function for the promise.
|
|
125634
125808
|
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
|
125635
125809
|
*/
|
|
125636
|
-
constructor(fn2, error,
|
|
125810
|
+
constructor(fn2, error, resolve4, reject2, signal) {
|
|
125637
125811
|
this.fn = fn2;
|
|
125638
125812
|
this.error = error;
|
|
125639
125813
|
this.timestamp = Date.now();
|
|
125640
125814
|
this.lastAttempt = Date.now();
|
|
125641
|
-
this.resolve =
|
|
125815
|
+
this.resolve = resolve4;
|
|
125642
125816
|
this.reject = reject2;
|
|
125643
125817
|
this.signal = signal;
|
|
125644
125818
|
}
|
|
@@ -125720,8 +125894,8 @@ var Retrier = class Retrier2 {
|
|
|
125720
125894
|
if (!this.#check(error)) {
|
|
125721
125895
|
throw error;
|
|
125722
125896
|
}
|
|
125723
|
-
return new Promise((
|
|
125724
|
-
this.#queue.push(new RetryTask(fn2, error,
|
|
125897
|
+
return new Promise((resolve4, reject2) => {
|
|
125898
|
+
this.#queue.push(new RetryTask(fn2, error, resolve4, reject2, signal));
|
|
125725
125899
|
signal?.addEventListener("abort", () => {
|
|
125726
125900
|
reject2(signal.reason);
|
|
125727
125901
|
});
|
|
@@ -126244,11 +126418,11 @@ var formatCommitMessage = /* @__PURE__ */ __name((state) => {
|
|
|
126244
126418
|
const scope = answers.scope ? answers.scope.trim() : "";
|
|
126245
126419
|
const subject = answers.subject?.trim();
|
|
126246
126420
|
const type = answers.type;
|
|
126247
|
-
const
|
|
126421
|
+
const format4 = config.prompt.settings.format || "{type}({scope}): {emoji}{subject}";
|
|
126248
126422
|
const body = answers.body && typeof answers.body === "string" ? (0, import_word_wrap.default)(answers.body || "", wrapOptions) : "";
|
|
126249
126423
|
const breaking = answers.breakingBody && typeof answers.breakingBody === "string" ? (0, import_word_wrap.default)(answers.breakingBody || "", wrapOptions) : "";
|
|
126250
126424
|
const issues = answers.issuesBody && typeof answers.issuesBody === "string" ? (0, import_word_wrap.default)(answers.issuesBody || "", wrapOptions) : "";
|
|
126251
|
-
const head =
|
|
126425
|
+
const head = format4.replace(/\{emoji\}/g, config.prompt.settings.disableEmoji ? "" : `${emoji} `).replace(/\{scope\}/g, scope).replace(/\{subject\}/g, subject || "").replace(/\{type\}/g, type || "");
|
|
126252
126426
|
let msg = head;
|
|
126253
126427
|
if (body) {
|
|
126254
126428
|
msg += `
|
|
@@ -126369,12 +126543,12 @@ var askQuestion = /* @__PURE__ */ __name((index, question) => {
|
|
|
126369
126543
|
// src/readme/run.ts
|
|
126370
126544
|
init_esm_shims();
|
|
126371
126545
|
import { existsSync as existsSync9, readFileSync as readFileSync6, readdirSync as readdirSync3, rmSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
126372
|
-
import { join as
|
|
126546
|
+
import { join as join9 } from "node:path";
|
|
126373
126547
|
import { createProjectGraphAsync as createProjectGraphAsync3, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3 } from "nx/src/project-graph/project-graph.js";
|
|
126374
126548
|
|
|
126375
126549
|
// src/utilities/file-utils.ts
|
|
126376
126550
|
init_esm_shims();
|
|
126377
|
-
import Path2, { dirname as
|
|
126551
|
+
import Path2, { dirname as dirname4, isAbsolute as isAbsolute3, join as join6 } from "node:path";
|
|
126378
126552
|
function findFileName(filePath) {
|
|
126379
126553
|
return filePath?.split(filePath?.includes(Path2.sep) ? Path2.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
126380
126554
|
}
|
|
@@ -126387,7 +126561,7 @@ __name(findFilePath, "findFilePath");
|
|
|
126387
126561
|
// src/readme/doctoc.ts
|
|
126388
126562
|
init_esm_shims();
|
|
126389
126563
|
import { readFileSync as readFileSync4, readdirSync as readdirSync2, statSync as statSync3, writeFileSync as writeFileSync2 } from "node:fs";
|
|
126390
|
-
import { extname as
|
|
126564
|
+
import { extname as extname4, join as join7 } from "node:path";
|
|
126391
126565
|
|
|
126392
126566
|
// src/readme/transform.ts
|
|
126393
126567
|
init_esm_shims();
|
|
@@ -127088,7 +127262,7 @@ var parseMarkdown = /* @__PURE__ */ __name((text) => {
|
|
|
127088
127262
|
|
|
127089
127263
|
// ../../node_modules/.pnpm/@textlint+markdown-to-ast@14.4.2/node_modules/@textlint/markdown-to-ast/module/src/index.js
|
|
127090
127264
|
var debug2 = (0, import_debug.default)("@textlint/markdown-to-ast");
|
|
127091
|
-
function
|
|
127265
|
+
function parse7(text) {
|
|
127092
127266
|
const hasBOM = text.charCodeAt(0) === 65279;
|
|
127093
127267
|
const textWithoutBOM = hasBOM ? text.slice(1) : text;
|
|
127094
127268
|
const ast = parseMarkdown(textWithoutBOM);
|
|
@@ -127132,7 +127306,7 @@ function parse6(text) {
|
|
|
127132
127306
|
});
|
|
127133
127307
|
return ast;
|
|
127134
127308
|
}
|
|
127135
|
-
__name(
|
|
127309
|
+
__name(parse7, "parse");
|
|
127136
127310
|
|
|
127137
127311
|
// src/readme/transform.ts
|
|
127138
127312
|
var import_anchor_markdown_header = __toESM(require_anchor_markdown_header(), 1);
|
|
@@ -138047,7 +138221,7 @@ function getMarkdownHeaders(lines2, maxHeaderLevel) {
|
|
|
138047
138221
|
}).join("");
|
|
138048
138222
|
}
|
|
138049
138223
|
__name(extractText, "extractText");
|
|
138050
|
-
return
|
|
138224
|
+
return parse7(lines2.join("\n")).children.filter(function(x4) {
|
|
138051
138225
|
return x4.type === ASTNodeTypes.Header;
|
|
138052
138226
|
}).map(function(x4) {
|
|
138053
138227
|
return !maxHeaderLevel || x4.depth <= maxHeaderLevel ? {
|
|
@@ -138168,7 +138342,7 @@ function rankify(headers, max2) {
|
|
|
138168
138342
|
}
|
|
138169
138343
|
__name(rankify, "rankify");
|
|
138170
138344
|
function getHtmlHeaders(lines2, maxHeaderLevel) {
|
|
138171
|
-
const source =
|
|
138345
|
+
const source = parse7(lines2.join("\n")).children.filter(function(node) {
|
|
138172
138346
|
return node.type === ASTNodeTypes.Html;
|
|
138173
138347
|
}).map(function(node) {
|
|
138174
138348
|
return node.raw;
|
|
@@ -138271,14 +138445,14 @@ function separateFilesAndDirs(fileInfos) {
|
|
|
138271
138445
|
}),
|
|
138272
138446
|
markdownFiles: fileInfos.filter((x4) => {
|
|
138273
138447
|
const stats = statSync3(x4.path);
|
|
138274
|
-
return stats.isFile() && markdownExts.includes(
|
|
138448
|
+
return stats.isFile() && markdownExts.includes(extname4(x4.name));
|
|
138275
138449
|
})
|
|
138276
138450
|
};
|
|
138277
138451
|
}
|
|
138278
138452
|
__name(separateFilesAndDirs, "separateFilesAndDirs");
|
|
138279
138453
|
function findMarkdownFiles(currentPath) {
|
|
138280
138454
|
function getFileInfo(entry) {
|
|
138281
|
-
const target =
|
|
138455
|
+
const target = join7(currentPath, entry);
|
|
138282
138456
|
return {
|
|
138283
138457
|
name: entry,
|
|
138284
138458
|
path: target
|
|
@@ -138306,7 +138480,7 @@ __name(findMarkdownFiles, "findMarkdownFiles");
|
|
|
138306
138480
|
// src/readme/nx-docs.ts
|
|
138307
138481
|
init_esm_shims();
|
|
138308
138482
|
import { existsSync as existsSync8, readFileSync as readFileSync5 } from "node:fs";
|
|
138309
|
-
import { join as
|
|
138483
|
+
import { join as join8 } from "node:path";
|
|
138310
138484
|
var getExecutorMarkdown = /* @__PURE__ */ __name((_packageName, executorsJsonFile, executorsJson) => {
|
|
138311
138485
|
if (!executorsJson?.executors) {
|
|
138312
138486
|
return "";
|
|
@@ -138320,7 +138494,7 @@ var getExecutorMarkdown = /* @__PURE__ */ __name((_packageName, executorsJsonFil
|
|
|
138320
138494
|
let description = "";
|
|
138321
138495
|
let required = [];
|
|
138322
138496
|
if (executor.schema) {
|
|
138323
|
-
const schemaJsonPath =
|
|
138497
|
+
const schemaJsonPath = join8(findFilePath(executorsJsonFile), executor.schema);
|
|
138324
138498
|
if (existsSync8(schemaJsonPath)) {
|
|
138325
138499
|
const schemaJson = JSON.parse(readFileSync5(schemaJsonPath, "utf8") ?? "{}");
|
|
138326
138500
|
if (schemaJson.title) {
|
|
@@ -138411,7 +138585,7 @@ var getGeneratorMarkdown = /* @__PURE__ */ __name((packageName, generatorsJsonFi
|
|
|
138411
138585
|
let example = "";
|
|
138412
138586
|
const required = [];
|
|
138413
138587
|
if (generator.schema) {
|
|
138414
|
-
const schemaJsonPath =
|
|
138588
|
+
const schemaJsonPath = join8(findFilePath(generatorsJsonFile), generator.schema);
|
|
138415
138589
|
if (existsSync8(schemaJsonPath)) {
|
|
138416
138590
|
const schemaJson = JSON.parse(readFileSync5(schemaJsonPath, "utf8") ?? "{}");
|
|
138417
138591
|
if (schemaJson.title) {
|
|
@@ -138606,10 +138780,10 @@ var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, o
|
|
|
138606
138780
|
});
|
|
138607
138781
|
const projectConfigs = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
138608
138782
|
const project = projectConfigs.projects[projectName];
|
|
138609
|
-
const inputFile =
|
|
138783
|
+
const inputFile = join9(project?.root ?? "./", "README.md");
|
|
138610
138784
|
if (existsSync9(inputFile)) {
|
|
138611
138785
|
console.info(`Formatting ${projectName}'s README file at "${inputFile}"`);
|
|
138612
|
-
const outputFilePath = output ? output.includes("README.md") ? output :
|
|
138786
|
+
const outputFilePath = output ? output.includes("README.md") ? output : join9(findFilePath(output), "README.md") : inputFile;
|
|
138613
138787
|
if (clean && existsSync9(outputFilePath)) {
|
|
138614
138788
|
if (outputFilePath === inputFile) {
|
|
138615
138789
|
console.warn("Skipping cleaning since output directory + file name is the same as input directory + file name.");
|
|
@@ -138620,13 +138794,13 @@ var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, o
|
|
|
138620
138794
|
}
|
|
138621
138795
|
let newContent = readdirSync3(templates).reduce((ret, fileName) => {
|
|
138622
138796
|
console.info(`Using template "${fileName}" to format file...`);
|
|
138623
|
-
const templateFilePath =
|
|
138797
|
+
const templateFilePath = join9(templates, fileName);
|
|
138624
138798
|
const templateContent = readFileSync6(templateFilePath, "utf8");
|
|
138625
138799
|
const section = findFileName(templateFilePath).replace(templates, "").replace("README.", "").replace(".md", "");
|
|
138626
138800
|
return formatReadMeFromSectionName(section, templateContent, ret);
|
|
138627
138801
|
}, readFileSync6(inputFile, "utf8"));
|
|
138628
138802
|
let packageName = projectName;
|
|
138629
|
-
const packageJsonPath =
|
|
138803
|
+
const packageJsonPath = join9(findFilePath(inputFile), "package.json");
|
|
138630
138804
|
if (existsSync9(packageJsonPath)) {
|
|
138631
138805
|
const packageJson = JSON.parse(readFileSync6(packageJsonPath, "utf8") ?? "{}");
|
|
138632
138806
|
if (packageJson?.version) {
|
|
@@ -138638,7 +138812,7 @@ var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, o
|
|
|
138638
138812
|
}
|
|
138639
138813
|
}
|
|
138640
138814
|
if (newContent.includes("<!-- START executors -->")) {
|
|
138641
|
-
const executorsJsonPath =
|
|
138815
|
+
const executorsJsonPath = join9(findFilePath(inputFile), "executors.json");
|
|
138642
138816
|
if (existsSync9(executorsJsonPath)) {
|
|
138643
138817
|
const executorsJson = JSON.parse(readFileSync6(executorsJsonPath, "utf8") ?? "{}");
|
|
138644
138818
|
if (executorsJson?.executors) {
|
|
@@ -138648,7 +138822,7 @@ var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, o
|
|
|
138648
138822
|
}
|
|
138649
138823
|
}
|
|
138650
138824
|
if (newContent.includes("<!-- START generators -->")) {
|
|
138651
|
-
const generatorsJsonPath =
|
|
138825
|
+
const generatorsJsonPath = join9(findFilePath(inputFile), "generators.json");
|
|
138652
138826
|
if (existsSync9(generatorsJsonPath)) {
|
|
138653
138827
|
const generatorsJson = JSON.parse(readFileSync6(generatorsJsonPath, "utf8") ?? "{}");
|
|
138654
138828
|
if (generatorsJson?.generators) {
|
|
@@ -138760,7 +138934,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
138760
138934
|
// src/release/nx-version.ts
|
|
138761
138935
|
init_esm_shims();
|
|
138762
138936
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
138763
|
-
import { relative as
|
|
138937
|
+
import { relative as relative3 } from "node:path";
|
|
138764
138938
|
import { parseGeneratorString } from "nx/src/command-line/generate/generate.js";
|
|
138765
138939
|
import { getGeneratorInformation } from "nx/src/command-line/generate/generator-utils.js";
|
|
138766
138940
|
import { createNxReleaseConfig, handleNxReleaseConfigError } from "nx/src/command-line/release/config/config.js";
|
|
@@ -139008,7 +139182,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
139008
139182
|
releaseGroup,
|
|
139009
139183
|
firstRelease: args.firstRelease ?? false
|
|
139010
139184
|
};
|
|
139011
|
-
const combinedOpts = await combineOptionsForGenerator(generatorOptions, generatorData.collectionName, generatorData.normalizedGeneratorName, readProjectsConfigurationFromProjectGraph4(projectGraph), nxJson, generatorData.schema, false, null,
|
|
139185
|
+
const combinedOpts = await combineOptionsForGenerator(generatorOptions, generatorData.collectionName, generatorData.normalizedGeneratorName, readProjectsConfigurationFromProjectGraph4(projectGraph), nxJson, generatorData.schema, false, null, relative3(process.cwd(), workspaceRoot2), args.verbose);
|
|
139012
139186
|
const releaseVersionGenerator = generatorData.implementationFactory();
|
|
139013
139187
|
const versionResult = await releaseVersionGenerator(tree, combinedOpts);
|
|
139014
139188
|
if (typeof versionResult === "function") {
|