@storm-software/git-tools 2.58.2 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/bin/git.js +983 -1838
- package/bin/post-checkout.js +926 -1781
- package/bin/post-commit.js +926 -1781
- package/bin/post-merge.js +926 -1781
- package/bin/pre-commit.js +926 -1781
- package/bin/pre-install.js +926 -1781
- package/bin/pre-push.js +926 -1781
- package/bin/prepare.js +926 -1781
- package/bin/version-warning.js +926 -1781
- package/package.json +3 -3
- package/src/cli/index.js +977 -1832
- package/src/index.js +977 -1832
- /package/commitlint/{commitlint.config.cjs → config.cjs} +0 -0
- /package/lefthook/{lefthook.yml → config.yml} +0 -0
package/src/cli/index.js
CHANGED
|
@@ -230,363 +230,11 @@ var init_dist = __esm({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
|
|
233
|
-
// node_modules/.pnpm/
|
|
234
|
-
var require_package = __commonJS({
|
|
235
|
-
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
|
|
236
|
-
module.exports = {
|
|
237
|
-
name: "dotenv",
|
|
238
|
-
version: "16.4.5",
|
|
239
|
-
description: "Loads environment variables from .env file",
|
|
240
|
-
main: "lib/main.js",
|
|
241
|
-
types: "lib/main.d.ts",
|
|
242
|
-
exports: {
|
|
243
|
-
".": {
|
|
244
|
-
types: "./lib/main.d.ts",
|
|
245
|
-
require: "./lib/main.js",
|
|
246
|
-
default: "./lib/main.js"
|
|
247
|
-
},
|
|
248
|
-
"./config": "./config.js",
|
|
249
|
-
"./config.js": "./config.js",
|
|
250
|
-
"./lib/env-options": "./lib/env-options.js",
|
|
251
|
-
"./lib/env-options.js": "./lib/env-options.js",
|
|
252
|
-
"./lib/cli-options": "./lib/cli-options.js",
|
|
253
|
-
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
254
|
-
"./package.json": "./package.json"
|
|
255
|
-
},
|
|
256
|
-
scripts: {
|
|
257
|
-
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
258
|
-
lint: "standard",
|
|
259
|
-
"lint-readme": "standard-markdown",
|
|
260
|
-
pretest: "npm run lint && npm run dts-check",
|
|
261
|
-
test: "tap tests/*.js --100 -Rspec",
|
|
262
|
-
"test:coverage": "tap --coverage-report=lcov",
|
|
263
|
-
prerelease: "npm test",
|
|
264
|
-
release: "standard-version"
|
|
265
|
-
},
|
|
266
|
-
repository: {
|
|
267
|
-
type: "git",
|
|
268
|
-
url: "git://github.com/motdotla/dotenv.git"
|
|
269
|
-
},
|
|
270
|
-
funding: "https://dotenvx.com",
|
|
271
|
-
keywords: [
|
|
272
|
-
"dotenv",
|
|
273
|
-
"env",
|
|
274
|
-
".env",
|
|
275
|
-
"environment",
|
|
276
|
-
"variables",
|
|
277
|
-
"config",
|
|
278
|
-
"settings"
|
|
279
|
-
],
|
|
280
|
-
readmeFilename: "README.md",
|
|
281
|
-
license: "BSD-2-Clause",
|
|
282
|
-
devDependencies: {
|
|
283
|
-
"@definitelytyped/dtslint": "^0.0.133",
|
|
284
|
-
"@types/node": "^18.11.3",
|
|
285
|
-
decache: "^4.6.1",
|
|
286
|
-
sinon: "^14.0.1",
|
|
287
|
-
standard: "^17.0.0",
|
|
288
|
-
"standard-markdown": "^7.1.0",
|
|
289
|
-
"standard-version": "^9.5.0",
|
|
290
|
-
tap: "^16.3.0",
|
|
291
|
-
tar: "^6.1.11",
|
|
292
|
-
typescript: "^4.8.4"
|
|
293
|
-
},
|
|
294
|
-
engines: {
|
|
295
|
-
node: ">=12"
|
|
296
|
-
},
|
|
297
|
-
browser: {
|
|
298
|
-
fs: false
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
|
|
305
|
-
var require_main = __commonJS({
|
|
306
|
-
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
307
|
-
var fs11 = __require("fs");
|
|
308
|
-
var path13 = __require("path");
|
|
309
|
-
var os8 = __require("os");
|
|
310
|
-
var crypto = __require("crypto");
|
|
311
|
-
var packageJson = require_package();
|
|
312
|
-
var version2 = packageJson.version;
|
|
313
|
-
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
314
|
-
function parse7(src) {
|
|
315
|
-
const obj = {};
|
|
316
|
-
let lines = src.toString();
|
|
317
|
-
lines = lines.replace(/\r\n?/mg, "\n");
|
|
318
|
-
let match;
|
|
319
|
-
while ((match = LINE.exec(lines)) != null) {
|
|
320
|
-
const key2 = match[1];
|
|
321
|
-
let value2 = match[2] || "";
|
|
322
|
-
value2 = value2.trim();
|
|
323
|
-
const maybeQuote = value2[0];
|
|
324
|
-
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
325
|
-
if (maybeQuote === '"') {
|
|
326
|
-
value2 = value2.replace(/\\n/g, "\n");
|
|
327
|
-
value2 = value2.replace(/\\r/g, "\r");
|
|
328
|
-
}
|
|
329
|
-
obj[key2] = value2;
|
|
330
|
-
}
|
|
331
|
-
return obj;
|
|
332
|
-
}
|
|
333
|
-
function _parseVault(options8) {
|
|
334
|
-
const vaultPath = _vaultPath(options8);
|
|
335
|
-
const result2 = DotenvModule.configDotenv({ path: vaultPath });
|
|
336
|
-
if (!result2.parsed) {
|
|
337
|
-
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
338
|
-
err.code = "MISSING_DATA";
|
|
339
|
-
throw err;
|
|
340
|
-
}
|
|
341
|
-
const keys2 = _dotenvKey(options8).split(",");
|
|
342
|
-
const length = keys2.length;
|
|
343
|
-
let decrypted;
|
|
344
|
-
for (let i4 = 0; i4 < length; i4++) {
|
|
345
|
-
try {
|
|
346
|
-
const key2 = keys2[i4].trim();
|
|
347
|
-
const attrs = _instructions(result2, key2);
|
|
348
|
-
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
349
|
-
break;
|
|
350
|
-
} catch (error) {
|
|
351
|
-
if (i4 + 1 >= length) {
|
|
352
|
-
throw error;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
return DotenvModule.parse(decrypted);
|
|
357
|
-
}
|
|
358
|
-
function _log(message) {
|
|
359
|
-
console.log(`[dotenv@${version2}][INFO] ${message}`);
|
|
360
|
-
}
|
|
361
|
-
function _warn(message) {
|
|
362
|
-
console.log(`[dotenv@${version2}][WARN] ${message}`);
|
|
363
|
-
}
|
|
364
|
-
function _debug(message) {
|
|
365
|
-
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
366
|
-
}
|
|
367
|
-
function _dotenvKey(options8) {
|
|
368
|
-
if (options8 && options8.DOTENV_KEY && options8.DOTENV_KEY.length > 0) {
|
|
369
|
-
return options8.DOTENV_KEY;
|
|
370
|
-
}
|
|
371
|
-
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
372
|
-
return process.env.DOTENV_KEY;
|
|
373
|
-
}
|
|
374
|
-
return "";
|
|
375
|
-
}
|
|
376
|
-
function _instructions(result2, dotenvKey) {
|
|
377
|
-
let uri;
|
|
378
|
-
try {
|
|
379
|
-
uri = new URL(dotenvKey);
|
|
380
|
-
} catch (error) {
|
|
381
|
-
if (error.code === "ERR_INVALID_URL") {
|
|
382
|
-
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
383
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
384
|
-
throw err;
|
|
385
|
-
}
|
|
386
|
-
throw error;
|
|
387
|
-
}
|
|
388
|
-
const key2 = uri.password;
|
|
389
|
-
if (!key2) {
|
|
390
|
-
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
391
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
392
|
-
throw err;
|
|
393
|
-
}
|
|
394
|
-
const environment = uri.searchParams.get("environment");
|
|
395
|
-
if (!environment) {
|
|
396
|
-
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
397
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
398
|
-
throw err;
|
|
399
|
-
}
|
|
400
|
-
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
401
|
-
const ciphertext = result2.parsed[environmentKey];
|
|
402
|
-
if (!ciphertext) {
|
|
403
|
-
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
404
|
-
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
405
|
-
throw err;
|
|
406
|
-
}
|
|
407
|
-
return { ciphertext, key: key2 };
|
|
408
|
-
}
|
|
409
|
-
function _vaultPath(options8) {
|
|
410
|
-
let possibleVaultPath = null;
|
|
411
|
-
if (options8 && options8.path && options8.path.length > 0) {
|
|
412
|
-
if (Array.isArray(options8.path)) {
|
|
413
|
-
for (const filepath of options8.path) {
|
|
414
|
-
if (fs11.existsSync(filepath)) {
|
|
415
|
-
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
} else {
|
|
419
|
-
possibleVaultPath = options8.path.endsWith(".vault") ? options8.path : `${options8.path}.vault`;
|
|
420
|
-
}
|
|
421
|
-
} else {
|
|
422
|
-
possibleVaultPath = path13.resolve(process.cwd(), ".env.vault");
|
|
423
|
-
}
|
|
424
|
-
if (fs11.existsSync(possibleVaultPath)) {
|
|
425
|
-
return possibleVaultPath;
|
|
426
|
-
}
|
|
427
|
-
return null;
|
|
428
|
-
}
|
|
429
|
-
function _resolveHome(envPath) {
|
|
430
|
-
return envPath[0] === "~" ? path13.join(os8.homedir(), envPath.slice(1)) : envPath;
|
|
431
|
-
}
|
|
432
|
-
function _configVault(options8) {
|
|
433
|
-
_log("Loading env from encrypted .env.vault");
|
|
434
|
-
const parsed = DotenvModule._parseVault(options8);
|
|
435
|
-
let processEnv = process.env;
|
|
436
|
-
if (options8 && options8.processEnv != null) {
|
|
437
|
-
processEnv = options8.processEnv;
|
|
438
|
-
}
|
|
439
|
-
DotenvModule.populate(processEnv, parsed, options8);
|
|
440
|
-
return { parsed };
|
|
441
|
-
}
|
|
442
|
-
function configDotenv(options8) {
|
|
443
|
-
const dotenvPath = path13.resolve(process.cwd(), ".env");
|
|
444
|
-
let encoding = "utf8";
|
|
445
|
-
const debug2 = Boolean(options8 && options8.debug);
|
|
446
|
-
if (options8 && options8.encoding) {
|
|
447
|
-
encoding = options8.encoding;
|
|
448
|
-
} else {
|
|
449
|
-
if (debug2) {
|
|
450
|
-
_debug("No encoding is specified. UTF-8 is used by default");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
let optionPaths = [dotenvPath];
|
|
454
|
-
if (options8 && options8.path) {
|
|
455
|
-
if (!Array.isArray(options8.path)) {
|
|
456
|
-
optionPaths = [_resolveHome(options8.path)];
|
|
457
|
-
} else {
|
|
458
|
-
optionPaths = [];
|
|
459
|
-
for (const filepath of options8.path) {
|
|
460
|
-
optionPaths.push(_resolveHome(filepath));
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
let lastError;
|
|
465
|
-
const parsedAll = {};
|
|
466
|
-
for (const path14 of optionPaths) {
|
|
467
|
-
try {
|
|
468
|
-
const parsed = DotenvModule.parse(fs11.readFileSync(path14, { encoding }));
|
|
469
|
-
DotenvModule.populate(parsedAll, parsed, options8);
|
|
470
|
-
} catch (e3) {
|
|
471
|
-
if (debug2) {
|
|
472
|
-
_debug(`Failed to load ${path14} ${e3.message}`);
|
|
473
|
-
}
|
|
474
|
-
lastError = e3;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
let processEnv = process.env;
|
|
478
|
-
if (options8 && options8.processEnv != null) {
|
|
479
|
-
processEnv = options8.processEnv;
|
|
480
|
-
}
|
|
481
|
-
DotenvModule.populate(processEnv, parsedAll, options8);
|
|
482
|
-
if (lastError) {
|
|
483
|
-
return { parsed: parsedAll, error: lastError };
|
|
484
|
-
} else {
|
|
485
|
-
return { parsed: parsedAll };
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
function config2(options8) {
|
|
489
|
-
if (_dotenvKey(options8).length === 0) {
|
|
490
|
-
return DotenvModule.configDotenv(options8);
|
|
491
|
-
}
|
|
492
|
-
const vaultPath = _vaultPath(options8);
|
|
493
|
-
if (!vaultPath) {
|
|
494
|
-
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
495
|
-
return DotenvModule.configDotenv(options8);
|
|
496
|
-
}
|
|
497
|
-
return DotenvModule._configVault(options8);
|
|
498
|
-
}
|
|
499
|
-
function decrypt(encrypted, keyStr) {
|
|
500
|
-
const key2 = Buffer.from(keyStr.slice(-64), "hex");
|
|
501
|
-
let ciphertext = Buffer.from(encrypted, "base64");
|
|
502
|
-
const nonce = ciphertext.subarray(0, 12);
|
|
503
|
-
const authTag = ciphertext.subarray(-16);
|
|
504
|
-
ciphertext = ciphertext.subarray(12, -16);
|
|
505
|
-
try {
|
|
506
|
-
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key2, nonce);
|
|
507
|
-
aesgcm.setAuthTag(authTag);
|
|
508
|
-
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
509
|
-
} catch (error) {
|
|
510
|
-
const isRange = error instanceof RangeError;
|
|
511
|
-
const invalidKeyLength = error.message === "Invalid key length";
|
|
512
|
-
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
513
|
-
if (isRange || invalidKeyLength) {
|
|
514
|
-
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
515
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
516
|
-
throw err;
|
|
517
|
-
} else if (decryptionFailed) {
|
|
518
|
-
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
519
|
-
err.code = "DECRYPTION_FAILED";
|
|
520
|
-
throw err;
|
|
521
|
-
} else {
|
|
522
|
-
throw error;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
function populate(processEnv, parsed, options8 = {}) {
|
|
527
|
-
const debug2 = Boolean(options8 && options8.debug);
|
|
528
|
-
const override = Boolean(options8 && options8.override);
|
|
529
|
-
if (typeof parsed !== "object") {
|
|
530
|
-
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
531
|
-
err.code = "OBJECT_REQUIRED";
|
|
532
|
-
throw err;
|
|
533
|
-
}
|
|
534
|
-
for (const key2 of Object.keys(parsed)) {
|
|
535
|
-
if (Object.prototype.hasOwnProperty.call(processEnv, key2)) {
|
|
536
|
-
if (override === true) {
|
|
537
|
-
processEnv[key2] = parsed[key2];
|
|
538
|
-
}
|
|
539
|
-
if (debug2) {
|
|
540
|
-
if (override === true) {
|
|
541
|
-
_debug(`"${key2}" is already defined and WAS overwritten`);
|
|
542
|
-
} else {
|
|
543
|
-
_debug(`"${key2}" is already defined and was NOT overwritten`);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
} else {
|
|
547
|
-
processEnv[key2] = parsed[key2];
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
var DotenvModule = {
|
|
552
|
-
configDotenv,
|
|
553
|
-
_configVault,
|
|
554
|
-
_parseVault,
|
|
555
|
-
config: config2,
|
|
556
|
-
decrypt,
|
|
557
|
-
parse: parse7,
|
|
558
|
-
populate
|
|
559
|
-
};
|
|
560
|
-
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
561
|
-
module.exports._configVault = DotenvModule._configVault;
|
|
562
|
-
module.exports._parseVault = DotenvModule._parseVault;
|
|
563
|
-
module.exports.config = DotenvModule.config;
|
|
564
|
-
module.exports.decrypt = DotenvModule.decrypt;
|
|
565
|
-
module.exports.parse = DotenvModule.parse;
|
|
566
|
-
module.exports.populate = DotenvModule.populate;
|
|
567
|
-
module.exports = DotenvModule;
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
// node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js
|
|
233
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs
|
|
572
234
|
var require_jiti = __commonJS({
|
|
573
|
-
"node_modules/.pnpm/jiti@
|
|
235
|
+
"node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs"(exports, module) {
|
|
574
236
|
(() => {
|
|
575
|
-
var __webpack_modules__ = { "./node_modules/.pnpm/
|
|
576
|
-
const nativeModule = __webpack_require__2("module"), path13 = __webpack_require__2("path"), fs11 = __webpack_require__2("fs");
|
|
577
|
-
module2.exports = function(filename) {
|
|
578
|
-
return filename || (filename = process.cwd()), function(path14) {
|
|
579
|
-
try {
|
|
580
|
-
return fs11.lstatSync(path14).isDirectory();
|
|
581
|
-
} catch (e3) {
|
|
582
|
-
return false;
|
|
583
|
-
}
|
|
584
|
-
}(filename) && (filename = path13.join(filename, "index.js")), nativeModule.createRequire ? nativeModule.createRequire(filename) : nativeModule.createRequireFromPath ? nativeModule.createRequireFromPath(filename) : function(filename2) {
|
|
585
|
-
const mod = new nativeModule.Module(filename2, null);
|
|
586
|
-
return mod.filename = filename2, mod.paths = nativeModule.Module._nodeModulePaths(path13.dirname(filename2)), mod._compile("module.exports = require;", filename2), mod.exports;
|
|
587
|
-
}(filename);
|
|
588
|
-
};
|
|
589
|
-
}, "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
|
|
237
|
+
var __webpack_modules__ = { "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
|
|
590
238
|
function webpackEmptyAsyncContext(req) {
|
|
591
239
|
return Promise.resolve().then(() => {
|
|
592
240
|
var e3 = new Error("Cannot find module '" + req + "'");
|
|
@@ -594,893 +242,24 @@ var require_jiti = __commonJS({
|
|
|
594
242
|
});
|
|
595
243
|
}
|
|
596
244
|
webpackEmptyAsyncContext.keys = () => [], webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext, webpackEmptyAsyncContext.id = "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive", module2.exports = webpackEmptyAsyncContext;
|
|
597
|
-
}, "./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js": (module2, exports2, __webpack_require__2) => {
|
|
598
|
-
"use strict";
|
|
599
|
-
var crypto = __webpack_require__2("crypto");
|
|
600
|
-
function objectHash2(object2, options8) {
|
|
601
|
-
return function(object3, options9) {
|
|
602
|
-
var hashingStream;
|
|
603
|
-
hashingStream = "passthrough" !== options9.algorithm ? crypto.createHash(options9.algorithm) : new PassThrough();
|
|
604
|
-
void 0 === hashingStream.write && (hashingStream.write = hashingStream.update, hashingStream.end = hashingStream.update);
|
|
605
|
-
var hasher = typeHasher(options9, hashingStream);
|
|
606
|
-
hasher.dispatch(object3), hashingStream.update || hashingStream.end("");
|
|
607
|
-
if (hashingStream.digest) return hashingStream.digest("buffer" === options9.encoding ? void 0 : options9.encoding);
|
|
608
|
-
var buf = hashingStream.read();
|
|
609
|
-
if ("buffer" === options9.encoding) return buf;
|
|
610
|
-
return buf.toString(options9.encoding);
|
|
611
|
-
}(object2, options8 = applyDefaults(object2, options8));
|
|
612
|
-
}
|
|
613
|
-
(exports2 = module2.exports = objectHash2).sha1 = function(object2) {
|
|
614
|
-
return objectHash2(object2);
|
|
615
|
-
}, exports2.keys = function(object2) {
|
|
616
|
-
return objectHash2(object2, { excludeValues: true, algorithm: "sha1", encoding: "hex" });
|
|
617
|
-
}, exports2.MD5 = function(object2) {
|
|
618
|
-
return objectHash2(object2, { algorithm: "md5", encoding: "hex" });
|
|
619
|
-
}, exports2.keysMD5 = function(object2) {
|
|
620
|
-
return objectHash2(object2, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
621
|
-
};
|
|
622
|
-
var hashes = crypto.getHashes ? crypto.getHashes().slice() : ["sha1", "md5"];
|
|
623
|
-
hashes.push("passthrough");
|
|
624
|
-
var encodings = ["buffer", "hex", "binary", "base64"];
|
|
625
|
-
function applyDefaults(object2, sourceOptions) {
|
|
626
|
-
sourceOptions = sourceOptions || {};
|
|
627
|
-
var options8 = {};
|
|
628
|
-
if (options8.algorithm = sourceOptions.algorithm || "sha1", options8.encoding = sourceOptions.encoding || "hex", options8.excludeValues = !!sourceOptions.excludeValues, options8.algorithm = options8.algorithm.toLowerCase(), options8.encoding = options8.encoding.toLowerCase(), options8.ignoreUnknown = true === sourceOptions.ignoreUnknown, options8.respectType = false !== sourceOptions.respectType, options8.respectFunctionNames = false !== sourceOptions.respectFunctionNames, options8.respectFunctionProperties = false !== sourceOptions.respectFunctionProperties, options8.unorderedArrays = true === sourceOptions.unorderedArrays, options8.unorderedSets = false !== sourceOptions.unorderedSets, options8.unorderedObjects = false !== sourceOptions.unorderedObjects, options8.replacer = sourceOptions.replacer || void 0, options8.excludeKeys = sourceOptions.excludeKeys || void 0, void 0 === object2) throw new Error("Object argument required.");
|
|
629
|
-
for (var i4 = 0; i4 < hashes.length; ++i4) hashes[i4].toLowerCase() === options8.algorithm.toLowerCase() && (options8.algorithm = hashes[i4]);
|
|
630
|
-
if (-1 === hashes.indexOf(options8.algorithm)) throw new Error('Algorithm "' + options8.algorithm + '" not supported. supported values: ' + hashes.join(", "));
|
|
631
|
-
if (-1 === encodings.indexOf(options8.encoding) && "passthrough" !== options8.algorithm) throw new Error('Encoding "' + options8.encoding + '" not supported. supported values: ' + encodings.join(", "));
|
|
632
|
-
return options8;
|
|
633
|
-
}
|
|
634
|
-
function isNativeFunction2(f7) {
|
|
635
|
-
if ("function" != typeof f7) return false;
|
|
636
|
-
return null != /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(f7));
|
|
637
|
-
}
|
|
638
|
-
function typeHasher(options8, writeTo, context) {
|
|
639
|
-
context = context || [];
|
|
640
|
-
var write = function(str2) {
|
|
641
|
-
return writeTo.update ? writeTo.update(str2, "utf8") : writeTo.write(str2, "utf8");
|
|
642
|
-
};
|
|
643
|
-
return { dispatch: function(value2) {
|
|
644
|
-
options8.replacer && (value2 = options8.replacer(value2));
|
|
645
|
-
var type2 = typeof value2;
|
|
646
|
-
return null === value2 && (type2 = "null"), this["_" + type2](value2);
|
|
647
|
-
}, _object: function(object2) {
|
|
648
|
-
var objString = Object.prototype.toString.call(object2), objType = /\[object (.*)\]/i.exec(objString);
|
|
649
|
-
objType = (objType = objType ? objType[1] : "unknown:[" + objString + "]").toLowerCase();
|
|
650
|
-
var objectNumber;
|
|
651
|
-
if ((objectNumber = context.indexOf(object2)) >= 0) return this.dispatch("[CIRCULAR:" + objectNumber + "]");
|
|
652
|
-
if (context.push(object2), "undefined" != typeof Buffer && Buffer.isBuffer && Buffer.isBuffer(object2)) return write("buffer:"), write(object2);
|
|
653
|
-
if ("object" === objType || "function" === objType || "asyncfunction" === objType) {
|
|
654
|
-
var keys2 = Object.keys(object2);
|
|
655
|
-
options8.unorderedObjects && (keys2 = keys2.sort()), false === options8.respectType || isNativeFunction2(object2) || keys2.splice(0, 0, "prototype", "__proto__", "constructor"), options8.excludeKeys && (keys2 = keys2.filter(function(key2) {
|
|
656
|
-
return !options8.excludeKeys(key2);
|
|
657
|
-
})), write("object:" + keys2.length + ":");
|
|
658
|
-
var self2 = this;
|
|
659
|
-
return keys2.forEach(function(key2) {
|
|
660
|
-
self2.dispatch(key2), write(":"), options8.excludeValues || self2.dispatch(object2[key2]), write(",");
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
if (!this["_" + objType]) {
|
|
664
|
-
if (options8.ignoreUnknown) return write("[" + objType + "]");
|
|
665
|
-
throw new Error('Unknown object type "' + objType + '"');
|
|
666
|
-
}
|
|
667
|
-
this["_" + objType](object2);
|
|
668
|
-
}, _array: function(arr, unordered) {
|
|
669
|
-
unordered = void 0 !== unordered ? unordered : false !== options8.unorderedArrays;
|
|
670
|
-
var self2 = this;
|
|
671
|
-
if (write("array:" + arr.length + ":"), !unordered || arr.length <= 1) return arr.forEach(function(entry) {
|
|
672
|
-
return self2.dispatch(entry);
|
|
673
|
-
});
|
|
674
|
-
var contextAdditions = [], entries = arr.map(function(entry) {
|
|
675
|
-
var strm = new PassThrough(), localContext = context.slice();
|
|
676
|
-
return typeHasher(options8, strm, localContext).dispatch(entry), contextAdditions = contextAdditions.concat(localContext.slice(context.length)), strm.read().toString();
|
|
677
|
-
});
|
|
678
|
-
return context = context.concat(contextAdditions), entries.sort(), this._array(entries, false);
|
|
679
|
-
}, _date: function(date) {
|
|
680
|
-
return write("date:" + date.toJSON());
|
|
681
|
-
}, _symbol: function(sym) {
|
|
682
|
-
return write("symbol:" + sym.toString());
|
|
683
|
-
}, _error: function(err) {
|
|
684
|
-
return write("error:" + err.toString());
|
|
685
|
-
}, _boolean: function(bool2) {
|
|
686
|
-
return write("bool:" + bool2.toString());
|
|
687
|
-
}, _string: function(string) {
|
|
688
|
-
write("string:" + string.length + ":"), write(string.toString());
|
|
689
|
-
}, _function: function(fn7) {
|
|
690
|
-
write("fn:"), isNativeFunction2(fn7) ? this.dispatch("[native]") : this.dispatch(fn7.toString()), false !== options8.respectFunctionNames && this.dispatch("function-name:" + String(fn7.name)), options8.respectFunctionProperties && this._object(fn7);
|
|
691
|
-
}, _number: function(number) {
|
|
692
|
-
return write("number:" + number.toString());
|
|
693
|
-
}, _xml: function(xml) {
|
|
694
|
-
return write("xml:" + xml.toString());
|
|
695
|
-
}, _null: function() {
|
|
696
|
-
return write("Null");
|
|
697
|
-
}, _undefined: function() {
|
|
698
|
-
return write("Undefined");
|
|
699
|
-
}, _regexp: function(regex) {
|
|
700
|
-
return write("regex:" + regex.toString());
|
|
701
|
-
}, _uint8array: function(arr) {
|
|
702
|
-
return write("uint8array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
703
|
-
}, _uint8clampedarray: function(arr) {
|
|
704
|
-
return write("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
705
|
-
}, _int8array: function(arr) {
|
|
706
|
-
return write("int8array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
707
|
-
}, _uint16array: function(arr) {
|
|
708
|
-
return write("uint16array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
709
|
-
}, _int16array: function(arr) {
|
|
710
|
-
return write("int16array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
711
|
-
}, _uint32array: function(arr) {
|
|
712
|
-
return write("uint32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
713
|
-
}, _int32array: function(arr) {
|
|
714
|
-
return write("int32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
715
|
-
}, _float32array: function(arr) {
|
|
716
|
-
return write("float32array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
717
|
-
}, _float64array: function(arr) {
|
|
718
|
-
return write("float64array:"), this.dispatch(Array.prototype.slice.call(arr));
|
|
719
|
-
}, _arraybuffer: function(arr) {
|
|
720
|
-
return write("arraybuffer:"), this.dispatch(new Uint8Array(arr));
|
|
721
|
-
}, _url: function(url2) {
|
|
722
|
-
return write("url:" + url2.toString());
|
|
723
|
-
}, _map: function(map11) {
|
|
724
|
-
write("map:");
|
|
725
|
-
var arr = Array.from(map11);
|
|
726
|
-
return this._array(arr, false !== options8.unorderedSets);
|
|
727
|
-
}, _set: function(set3) {
|
|
728
|
-
write("set:");
|
|
729
|
-
var arr = Array.from(set3);
|
|
730
|
-
return this._array(arr, false !== options8.unorderedSets);
|
|
731
|
-
}, _file: function(file) {
|
|
732
|
-
return write("file:"), this.dispatch([file.name, file.size, file.type, file.lastModfied]);
|
|
733
|
-
}, _blob: function() {
|
|
734
|
-
if (options8.ignoreUnknown) return write("[blob]");
|
|
735
|
-
throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n');
|
|
736
|
-
}, _domwindow: function() {
|
|
737
|
-
return write("domwindow");
|
|
738
|
-
}, _bigint: function(number) {
|
|
739
|
-
return write("bigint:" + number.toString());
|
|
740
|
-
}, _process: function() {
|
|
741
|
-
return write("process");
|
|
742
|
-
}, _timer: function() {
|
|
743
|
-
return write("timer");
|
|
744
|
-
}, _pipe: function() {
|
|
745
|
-
return write("pipe");
|
|
746
|
-
}, _tcp: function() {
|
|
747
|
-
return write("tcp");
|
|
748
|
-
}, _udp: function() {
|
|
749
|
-
return write("udp");
|
|
750
|
-
}, _tty: function() {
|
|
751
|
-
return write("tty");
|
|
752
|
-
}, _statwatcher: function() {
|
|
753
|
-
return write("statwatcher");
|
|
754
|
-
}, _securecontext: function() {
|
|
755
|
-
return write("securecontext");
|
|
756
|
-
}, _connection: function() {
|
|
757
|
-
return write("connection");
|
|
758
|
-
}, _zlib: function() {
|
|
759
|
-
return write("zlib");
|
|
760
|
-
}, _context: function() {
|
|
761
|
-
return write("context");
|
|
762
|
-
}, _nodescript: function() {
|
|
763
|
-
return write("nodescript");
|
|
764
|
-
}, _httpparser: function() {
|
|
765
|
-
return write("httpparser");
|
|
766
|
-
}, _dataview: function() {
|
|
767
|
-
return write("dataview");
|
|
768
|
-
}, _signal: function() {
|
|
769
|
-
return write("signal");
|
|
770
|
-
}, _fsevent: function() {
|
|
771
|
-
return write("fsevent");
|
|
772
|
-
}, _tlswrap: function() {
|
|
773
|
-
return write("tlswrap");
|
|
774
|
-
} };
|
|
775
|
-
}
|
|
776
|
-
function PassThrough() {
|
|
777
|
-
return { buf: "", write: function(b11) {
|
|
778
|
-
this.buf += b11;
|
|
779
|
-
}, end: function(b11) {
|
|
780
|
-
this.buf += b11;
|
|
781
|
-
}, read: function() {
|
|
782
|
-
return this.buf;
|
|
783
|
-
} };
|
|
784
|
-
}
|
|
785
|
-
exports2.writeToStream = function(object2, options8, stream) {
|
|
786
|
-
return void 0 === stream && (stream = options8, options8 = {}), typeHasher(options8 = applyDefaults(object2, options8), stream).dispatch(object2);
|
|
787
|
-
};
|
|
788
|
-
}, "./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js": (module2, exports2, __webpack_require__2) => {
|
|
789
|
-
"use strict";
|
|
790
|
-
module2 = __webpack_require__2.nmd(module2), Object.defineProperty(exports2, "__esModule", { value: true }), exports2.addHook = function(hook, opts = {}) {
|
|
791
|
-
let reverted = false;
|
|
792
|
-
const loaders2 = [], oldLoaders = [];
|
|
793
|
-
let exts;
|
|
794
|
-
const originalJSLoader = Module._extensions[".js"], matcher2 = opts.matcher || null, ignoreNodeModules = false !== opts.ignoreNodeModules;
|
|
795
|
-
exts = opts.extensions || opts.exts || opts.extension || opts.ext || [".js"], Array.isArray(exts) || (exts = [exts]);
|
|
796
|
-
return exts.forEach((ext) => {
|
|
797
|
-
if ("string" != typeof ext) throw new TypeError(`Invalid Extension: ${ext}`);
|
|
798
|
-
const oldLoader = Module._extensions[ext] || originalJSLoader;
|
|
799
|
-
oldLoaders[ext] = Module._extensions[ext], loaders2[ext] = Module._extensions[ext] = function(mod, filename) {
|
|
800
|
-
let compile;
|
|
801
|
-
reverted || function(filename2, exts2, matcher3, ignoreNodeModules2) {
|
|
802
|
-
if ("string" != typeof filename2) return false;
|
|
803
|
-
if (-1 === exts2.indexOf(_path.default.extname(filename2))) return false;
|
|
804
|
-
const resolvedFilename = _path.default.resolve(filename2);
|
|
805
|
-
if (ignoreNodeModules2 && nodeModulesRegex.test(resolvedFilename)) return false;
|
|
806
|
-
if (matcher3 && "function" == typeof matcher3) return !!matcher3(resolvedFilename);
|
|
807
|
-
return true;
|
|
808
|
-
}(filename, exts, matcher2, ignoreNodeModules) && (compile = mod._compile, mod._compile = function(code) {
|
|
809
|
-
mod._compile = compile;
|
|
810
|
-
const newCode = hook(code, filename);
|
|
811
|
-
if ("string" != typeof newCode) throw new Error(HOOK_RETURNED_NOTHING_ERROR_MESSAGE);
|
|
812
|
-
return mod._compile(newCode, filename);
|
|
813
|
-
}), oldLoader(mod, filename);
|
|
814
|
-
};
|
|
815
|
-
}), function() {
|
|
816
|
-
reverted || (reverted = true, exts.forEach((ext) => {
|
|
817
|
-
Module._extensions[ext] === loaders2[ext] && (oldLoaders[ext] ? Module._extensions[ext] = oldLoaders[ext] : delete Module._extensions[ext]);
|
|
818
|
-
}));
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
var _module = _interopRequireDefault(__webpack_require__2("module")), _path = _interopRequireDefault(__webpack_require__2("path"));
|
|
822
|
-
function _interopRequireDefault(obj) {
|
|
823
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
824
|
-
}
|
|
825
|
-
const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/, Module = module2.constructor.length > 1 ? module2.constructor : _module.default, HOOK_RETURNED_NOTHING_ERROR_MESSAGE = "[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!\n--------------------\nIf you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.";
|
|
826
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
827
|
-
const ANY = Symbol("SemVer ANY");
|
|
828
|
-
class Comparator {
|
|
829
|
-
static get ANY() {
|
|
830
|
-
return ANY;
|
|
831
|
-
}
|
|
832
|
-
constructor(comp, options8) {
|
|
833
|
-
if (options8 = parseOptions(options8), comp instanceof Comparator) {
|
|
834
|
-
if (comp.loose === !!options8.loose) return comp;
|
|
835
|
-
comp = comp.value;
|
|
836
|
-
}
|
|
837
|
-
comp = comp.trim().split(/\s+/).join(" "), debug2("comparator", comp, options8), this.options = options8, this.loose = !!options8.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug2("comp", this);
|
|
838
|
-
}
|
|
839
|
-
parse(comp) {
|
|
840
|
-
const r5 = this.options.loose ? re12[t14.COMPARATORLOOSE] : re12[t14.COMPARATOR], m5 = comp.match(r5);
|
|
841
|
-
if (!m5) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
842
|
-
this.operator = void 0 !== m5[1] ? m5[1] : "", "=" === this.operator && (this.operator = ""), m5[2] ? this.semver = new SemVer(m5[2], this.options.loose) : this.semver = ANY;
|
|
843
|
-
}
|
|
844
|
-
toString() {
|
|
845
|
-
return this.value;
|
|
846
|
-
}
|
|
847
|
-
test(version2) {
|
|
848
|
-
if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) return true;
|
|
849
|
-
if ("string" == typeof version2) try {
|
|
850
|
-
version2 = new SemVer(version2, this.options);
|
|
851
|
-
} catch (er8) {
|
|
852
|
-
return false;
|
|
853
|
-
}
|
|
854
|
-
return cmp(version2, this.operator, this.semver, this.options);
|
|
855
|
-
}
|
|
856
|
-
intersects(comp, options8) {
|
|
857
|
-
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
858
|
-
return "" === this.operator ? "" === this.value || new Range(comp.value, options8).test(this.value) : "" === comp.operator ? "" === comp.value || new Range(this.value, options8).test(comp.semver) : (!(options8 = parseOptions(options8)).includePrerelease || "<0.0.0-0" !== this.value && "<0.0.0-0" !== comp.value) && (!(!options8.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) && (!(!this.operator.startsWith(">") || !comp.operator.startsWith(">")) || (!(!this.operator.startsWith("<") || !comp.operator.startsWith("<")) || (!(this.semver.version !== comp.semver.version || !this.operator.includes("=") || !comp.operator.includes("=")) || (!!(cmp(this.semver, "<", comp.semver, options8) && this.operator.startsWith(">") && comp.operator.startsWith("<")) || !!(cmp(this.semver, ">", comp.semver, options8) && this.operator.startsWith("<") && comp.operator.startsWith(">")))))));
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
module2.exports = Comparator;
|
|
862
|
-
const parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), { safeRe: re12, t: t14 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), cmp = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
863
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
864
|
-
class Range {
|
|
865
|
-
constructor(range2, options8) {
|
|
866
|
-
if (options8 = parseOptions(options8), range2 instanceof Range) return range2.loose === !!options8.loose && range2.includePrerelease === !!options8.includePrerelease ? range2 : new Range(range2.raw, options8);
|
|
867
|
-
if (range2 instanceof Comparator) return this.raw = range2.value, this.set = [[range2]], this.format(), this;
|
|
868
|
-
if (this.options = options8, this.loose = !!options8.loose, this.includePrerelease = !!options8.includePrerelease, this.raw = range2.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map((r5) => this.parseRange(r5.trim())).filter((c5) => c5.length), !this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
869
|
-
if (this.set.length > 1) {
|
|
870
|
-
const first2 = this.set[0];
|
|
871
|
-
if (this.set = this.set.filter((c5) => !isNullSet(c5[0])), 0 === this.set.length) this.set = [first2];
|
|
872
|
-
else if (this.set.length > 1) {
|
|
873
|
-
for (const c5 of this.set) if (1 === c5.length && isAny(c5[0])) {
|
|
874
|
-
this.set = [c5];
|
|
875
|
-
break;
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
this.format();
|
|
880
|
-
}
|
|
881
|
-
format() {
|
|
882
|
-
return this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim(), this.range;
|
|
883
|
-
}
|
|
884
|
-
toString() {
|
|
885
|
-
return this.range;
|
|
886
|
-
}
|
|
887
|
-
parseRange(range2) {
|
|
888
|
-
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range2, cached2 = cache3.get(memoKey);
|
|
889
|
-
if (cached2) return cached2;
|
|
890
|
-
const loose = this.options.loose, hr6 = loose ? re12[t14.HYPHENRANGELOOSE] : re12[t14.HYPHENRANGE];
|
|
891
|
-
range2 = range2.replace(hr6, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range2), range2 = range2.replace(re12[t14.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range2), range2 = range2.replace(re12[t14.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range2), range2 = range2.replace(re12[t14.CARETTRIM], caretTrimReplace), debug2("caret trim", range2);
|
|
892
|
-
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
893
|
-
loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re12[t14.COMPARATORLOOSE])))), debug2("range list", rangeList);
|
|
894
|
-
const rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
895
|
-
for (const comp of comparators) {
|
|
896
|
-
if (isNullSet(comp)) return [comp];
|
|
897
|
-
rangeMap.set(comp.value, comp);
|
|
898
|
-
}
|
|
899
|
-
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
900
|
-
const result2 = [...rangeMap.values()];
|
|
901
|
-
return cache3.set(memoKey, result2), result2;
|
|
902
|
-
}
|
|
903
|
-
intersects(range2, options8) {
|
|
904
|
-
if (!(range2 instanceof Range)) throw new TypeError("a Range is required");
|
|
905
|
-
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options8) && range2.set.some((rangeComparators) => isSatisfiable(rangeComparators, options8) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options8)))));
|
|
906
|
-
}
|
|
907
|
-
test(version2) {
|
|
908
|
-
if (!version2) return false;
|
|
909
|
-
if ("string" == typeof version2) try {
|
|
910
|
-
version2 = new SemVer(version2, this.options);
|
|
911
|
-
} catch (er8) {
|
|
912
|
-
return false;
|
|
913
|
-
}
|
|
914
|
-
for (let i4 = 0; i4 < this.set.length; i4++) if (testSet(this.set[i4], version2, this.options)) return true;
|
|
915
|
-
return false;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
module2.exports = Range;
|
|
919
|
-
const cache3 = new (__webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js"))(), parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), { safeRe: re12, t: t14, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), isNullSet = (c5) => "<0.0.0-0" === c5.value, isAny = (c5) => "" === c5.value, isSatisfiable = (comparators, options8) => {
|
|
920
|
-
let result2 = true;
|
|
921
|
-
const remainingComparators = comparators.slice();
|
|
922
|
-
let testComparator = remainingComparators.pop();
|
|
923
|
-
for (; result2 && remainingComparators.length; ) result2 = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options8)), testComparator = remainingComparators.pop();
|
|
924
|
-
return result2;
|
|
925
|
-
}, parseComparator = (comp, options8) => (debug2("comp", comp, options8), comp = replaceCarets(comp, options8), debug2("caret", comp), comp = replaceTildes(comp, options8), debug2("tildes", comp), comp = replaceXRanges(comp, options8), debug2("xrange", comp), comp = replaceStars(comp, options8), debug2("stars", comp), comp), isX = (id) => !id || "x" === id.toLowerCase() || "*" === id, replaceTildes = (comp, options8) => comp.trim().split(/\s+/).map((c5) => replaceTilde(c5, options8)).join(" "), replaceTilde = (comp, options8) => {
|
|
926
|
-
const r5 = options8.loose ? re12[t14.TILDELOOSE] : re12[t14.TILDE];
|
|
927
|
-
return comp.replace(r5, (_15, M11, m5, p4, pr8) => {
|
|
928
|
-
let ret;
|
|
929
|
-
return debug2("tilde", comp, _15, M11, m5, p4, pr8), isX(M11) ? ret = "" : isX(m5) ? ret = `>=${M11}.0.0 <${+M11 + 1}.0.0-0` : isX(p4) ? ret = `>=${M11}.${m5}.0 <${M11}.${+m5 + 1}.0-0` : pr8 ? (debug2("replaceTilde pr", pr8), ret = `>=${M11}.${m5}.${p4}-${pr8} <${M11}.${+m5 + 1}.0-0`) : ret = `>=${M11}.${m5}.${p4} <${M11}.${+m5 + 1}.0-0`, debug2("tilde return", ret), ret;
|
|
930
|
-
});
|
|
931
|
-
}, replaceCarets = (comp, options8) => comp.trim().split(/\s+/).map((c5) => replaceCaret(c5, options8)).join(" "), replaceCaret = (comp, options8) => {
|
|
932
|
-
debug2("caret", comp, options8);
|
|
933
|
-
const r5 = options8.loose ? re12[t14.CARETLOOSE] : re12[t14.CARET], z10 = options8.includePrerelease ? "-0" : "";
|
|
934
|
-
return comp.replace(r5, (_15, M11, m5, p4, pr8) => {
|
|
935
|
-
let ret;
|
|
936
|
-
return debug2("caret", comp, _15, M11, m5, p4, pr8), isX(M11) ? ret = "" : isX(m5) ? ret = `>=${M11}.0.0${z10} <${+M11 + 1}.0.0-0` : isX(p4) ? ret = "0" === M11 ? `>=${M11}.${m5}.0${z10} <${M11}.${+m5 + 1}.0-0` : `>=${M11}.${m5}.0${z10} <${+M11 + 1}.0.0-0` : pr8 ? (debug2("replaceCaret pr", pr8), ret = "0" === M11 ? "0" === m5 ? `>=${M11}.${m5}.${p4}-${pr8} <${M11}.${m5}.${+p4 + 1}-0` : `>=${M11}.${m5}.${p4}-${pr8} <${M11}.${+m5 + 1}.0-0` : `>=${M11}.${m5}.${p4}-${pr8} <${+M11 + 1}.0.0-0`) : (debug2("no pr"), ret = "0" === M11 ? "0" === m5 ? `>=${M11}.${m5}.${p4}${z10} <${M11}.${m5}.${+p4 + 1}-0` : `>=${M11}.${m5}.${p4}${z10} <${M11}.${+m5 + 1}.0-0` : `>=${M11}.${m5}.${p4} <${+M11 + 1}.0.0-0`), debug2("caret return", ret), ret;
|
|
937
|
-
});
|
|
938
|
-
}, replaceXRanges = (comp, options8) => (debug2("replaceXRanges", comp, options8), comp.split(/\s+/).map((c5) => replaceXRange(c5, options8)).join(" ")), replaceXRange = (comp, options8) => {
|
|
939
|
-
comp = comp.trim();
|
|
940
|
-
const r5 = options8.loose ? re12[t14.XRANGELOOSE] : re12[t14.XRANGE];
|
|
941
|
-
return comp.replace(r5, (ret, gtlt, M11, m5, p4, pr8) => {
|
|
942
|
-
debug2("xRange", comp, ret, gtlt, M11, m5, p4, pr8);
|
|
943
|
-
const xM = isX(M11), xm2 = xM || isX(m5), xp2 = xm2 || isX(p4), anyX = xp2;
|
|
944
|
-
return "=" === gtlt && anyX && (gtlt = ""), pr8 = options8.includePrerelease ? "-0" : "", xM ? ret = ">" === gtlt || "<" === gtlt ? "<0.0.0-0" : "*" : gtlt && anyX ? (xm2 && (m5 = 0), p4 = 0, ">" === gtlt ? (gtlt = ">=", xm2 ? (M11 = +M11 + 1, m5 = 0, p4 = 0) : (m5 = +m5 + 1, p4 = 0)) : "<=" === gtlt && (gtlt = "<", xm2 ? M11 = +M11 + 1 : m5 = +m5 + 1), "<" === gtlt && (pr8 = "-0"), ret = `${gtlt + M11}.${m5}.${p4}${pr8}`) : xm2 ? ret = `>=${M11}.0.0${pr8} <${+M11 + 1}.0.0-0` : xp2 && (ret = `>=${M11}.${m5}.0${pr8} <${M11}.${+m5 + 1}.0-0`), debug2("xRange return", ret), ret;
|
|
945
|
-
});
|
|
946
|
-
}, replaceStars = (comp, options8) => (debug2("replaceStars", comp, options8), comp.trim().replace(re12[t14.STAR], "")), replaceGTE0 = (comp, options8) => (debug2("replaceGTE0", comp, options8), comp.trim().replace(re12[options8.includePrerelease ? t14.GTE0PRE : t14.GTE0], "")), hyphenReplace = (incPr) => ($0, from3, fM, fm, fp3, fpr, fb, to3, tM, tm2, tp2, tpr) => `${from3 = isX(fM) ? "" : isX(fm) ? `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp3) ? `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? `>=${from3}` : `>=${from3}${incPr ? "-0" : ""}`} ${to3 = isX(tM) ? "" : isX(tm2) ? `<${+tM + 1}.0.0-0` : isX(tp2) ? `<${tM}.${+tm2 + 1}.0-0` : tpr ? `<=${tM}.${tm2}.${tp2}-${tpr}` : incPr ? `<${tM}.${tm2}.${+tp2 + 1}-0` : `<=${to3}`}`.trim(), testSet = (set3, version2, options8) => {
|
|
947
|
-
for (let i4 = 0; i4 < set3.length; i4++) if (!set3[i4].test(version2)) return false;
|
|
948
|
-
if (version2.prerelease.length && !options8.includePrerelease) {
|
|
949
|
-
for (let i4 = 0; i4 < set3.length; i4++) if (debug2(set3[i4].semver), set3[i4].semver !== Comparator.ANY && set3[i4].semver.prerelease.length > 0) {
|
|
950
|
-
const allowed = set3[i4].semver;
|
|
951
|
-
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) return true;
|
|
952
|
-
}
|
|
953
|
-
return false;
|
|
954
|
-
}
|
|
955
|
-
return true;
|
|
956
|
-
};
|
|
957
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
958
|
-
const debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), { MAX_LENGTH, MAX_SAFE_INTEGER } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), { safeRe: re12, t: t14 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), { compareIdentifiers } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js");
|
|
959
|
-
class SemVer {
|
|
960
|
-
constructor(version2, options8) {
|
|
961
|
-
if (options8 = parseOptions(options8), version2 instanceof SemVer) {
|
|
962
|
-
if (version2.loose === !!options8.loose && version2.includePrerelease === !!options8.includePrerelease) return version2;
|
|
963
|
-
version2 = version2.version;
|
|
964
|
-
} else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
965
|
-
if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
966
|
-
debug2("SemVer", version2, options8), this.options = options8, this.loose = !!options8.loose, this.includePrerelease = !!options8.includePrerelease;
|
|
967
|
-
const m5 = version2.trim().match(options8.loose ? re12[t14.LOOSE] : re12[t14.FULL]);
|
|
968
|
-
if (!m5) throw new TypeError(`Invalid Version: ${version2}`);
|
|
969
|
-
if (this.raw = version2, this.major = +m5[1], this.minor = +m5[2], this.patch = +m5[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
970
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
971
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
972
|
-
m5[4] ? this.prerelease = m5[4].split(".").map((id) => {
|
|
973
|
-
if (/^[0-9]+$/.test(id)) {
|
|
974
|
-
const num = +id;
|
|
975
|
-
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
976
|
-
}
|
|
977
|
-
return id;
|
|
978
|
-
}) : this.prerelease = [], this.build = m5[5] ? m5[5].split(".") : [], this.format();
|
|
979
|
-
}
|
|
980
|
-
format() {
|
|
981
|
-
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
982
|
-
}
|
|
983
|
-
toString() {
|
|
984
|
-
return this.version;
|
|
985
|
-
}
|
|
986
|
-
compare(other) {
|
|
987
|
-
if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof SemVer)) {
|
|
988
|
-
if ("string" == typeof other && other === this.version) return 0;
|
|
989
|
-
other = new SemVer(other, this.options);
|
|
990
|
-
}
|
|
991
|
-
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
992
|
-
}
|
|
993
|
-
compareMain(other) {
|
|
994
|
-
return other instanceof SemVer || (other = new SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
995
|
-
}
|
|
996
|
-
comparePre(other) {
|
|
997
|
-
if (other instanceof SemVer || (other = new SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) return -1;
|
|
998
|
-
if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
999
|
-
if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
1000
|
-
let i4 = 0;
|
|
1001
|
-
do {
|
|
1002
|
-
const a3 = this.prerelease[i4], b11 = other.prerelease[i4];
|
|
1003
|
-
if (debug2("prerelease compare", i4, a3, b11), void 0 === a3 && void 0 === b11) return 0;
|
|
1004
|
-
if (void 0 === b11) return 1;
|
|
1005
|
-
if (void 0 === a3) return -1;
|
|
1006
|
-
if (a3 !== b11) return compareIdentifiers(a3, b11);
|
|
1007
|
-
} while (++i4);
|
|
1008
|
-
}
|
|
1009
|
-
compareBuild(other) {
|
|
1010
|
-
other instanceof SemVer || (other = new SemVer(other, this.options));
|
|
1011
|
-
let i4 = 0;
|
|
1012
|
-
do {
|
|
1013
|
-
const a3 = this.build[i4], b11 = other.build[i4];
|
|
1014
|
-
if (debug2("build compare", i4, a3, b11), void 0 === a3 && void 0 === b11) return 0;
|
|
1015
|
-
if (void 0 === b11) return 1;
|
|
1016
|
-
if (void 0 === a3) return -1;
|
|
1017
|
-
if (a3 !== b11) return compareIdentifiers(a3, b11);
|
|
1018
|
-
} while (++i4);
|
|
1019
|
-
}
|
|
1020
|
-
inc(release, identifier, identifierBase) {
|
|
1021
|
-
switch (release) {
|
|
1022
|
-
case "premajor":
|
|
1023
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
1024
|
-
break;
|
|
1025
|
-
case "preminor":
|
|
1026
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
1027
|
-
break;
|
|
1028
|
-
case "prepatch":
|
|
1029
|
-
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
1030
|
-
break;
|
|
1031
|
-
case "prerelease":
|
|
1032
|
-
0 === this.prerelease.length && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
1033
|
-
break;
|
|
1034
|
-
case "major":
|
|
1035
|
-
0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
1036
|
-
break;
|
|
1037
|
-
case "minor":
|
|
1038
|
-
0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = [];
|
|
1039
|
-
break;
|
|
1040
|
-
case "patch":
|
|
1041
|
-
0 === this.prerelease.length && this.patch++, this.prerelease = [];
|
|
1042
|
-
break;
|
|
1043
|
-
case "pre": {
|
|
1044
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
1045
|
-
if (!identifier && false === identifierBase) throw new Error("invalid increment argument: identifier is empty");
|
|
1046
|
-
if (0 === this.prerelease.length) this.prerelease = [base];
|
|
1047
|
-
else {
|
|
1048
|
-
let i4 = this.prerelease.length;
|
|
1049
|
-
for (; --i4 >= 0; ) "number" == typeof this.prerelease[i4] && (this.prerelease[i4]++, i4 = -2);
|
|
1050
|
-
if (-1 === i4) {
|
|
1051
|
-
if (identifier === this.prerelease.join(".") && false === identifierBase) throw new Error("invalid increment argument: identifier already exists");
|
|
1052
|
-
this.prerelease.push(base);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
if (identifier) {
|
|
1056
|
-
let prerelease = [identifier, base];
|
|
1057
|
-
false === identifierBase && (prerelease = [identifier]), 0 === compareIdentifiers(this.prerelease[0], identifier) ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
1058
|
-
}
|
|
1059
|
-
break;
|
|
1060
|
-
}
|
|
1061
|
-
default:
|
|
1062
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
1063
|
-
}
|
|
1064
|
-
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
module2.exports = SemVer;
|
|
1068
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1069
|
-
const parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1070
|
-
module2.exports = (version2, options8) => {
|
|
1071
|
-
const s3 = parse7(version2.trim().replace(/^[=v]+/, ""), options8);
|
|
1072
|
-
return s3 ? s3.version : null;
|
|
1073
|
-
};
|
|
1074
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1075
|
-
const eq2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js"), neq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js"), gt8 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js"), lt6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js");
|
|
1076
|
-
module2.exports = (a3, op2, b11, loose) => {
|
|
1077
|
-
switch (op2) {
|
|
1078
|
-
case "===":
|
|
1079
|
-
return "object" == typeof a3 && (a3 = a3.version), "object" == typeof b11 && (b11 = b11.version), a3 === b11;
|
|
1080
|
-
case "!==":
|
|
1081
|
-
return "object" == typeof a3 && (a3 = a3.version), "object" == typeof b11 && (b11 = b11.version), a3 !== b11;
|
|
1082
|
-
case "":
|
|
1083
|
-
case "=":
|
|
1084
|
-
case "==":
|
|
1085
|
-
return eq2(a3, b11, loose);
|
|
1086
|
-
case "!=":
|
|
1087
|
-
return neq(a3, b11, loose);
|
|
1088
|
-
case ">":
|
|
1089
|
-
return gt8(a3, b11, loose);
|
|
1090
|
-
case ">=":
|
|
1091
|
-
return gte(a3, b11, loose);
|
|
1092
|
-
case "<":
|
|
1093
|
-
return lt6(a3, b11, loose);
|
|
1094
|
-
case "<=":
|
|
1095
|
-
return lte(a3, b11, loose);
|
|
1096
|
-
default:
|
|
1097
|
-
throw new TypeError(`Invalid operator: ${op2}`);
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1101
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"), { safeRe: re12, t: t14 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js");
|
|
1102
|
-
module2.exports = (version2, options8) => {
|
|
1103
|
-
if (version2 instanceof SemVer) return version2;
|
|
1104
|
-
if ("number" == typeof version2 && (version2 = String(version2)), "string" != typeof version2) return null;
|
|
1105
|
-
let match = null;
|
|
1106
|
-
if ((options8 = options8 || {}).rtl) {
|
|
1107
|
-
const coerceRtlRegex = options8.includePrerelease ? re12[t14.COERCERTLFULL] : re12[t14.COERCERTL];
|
|
1108
|
-
let next;
|
|
1109
|
-
for (; (next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length); ) match && next.index + next[0].length === match.index + match[0].length || (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
1110
|
-
coerceRtlRegex.lastIndex = -1;
|
|
1111
|
-
} else match = version2.match(options8.includePrerelease ? re12[t14.COERCEFULL] : re12[t14.COERCE]);
|
|
1112
|
-
if (null === match) return null;
|
|
1113
|
-
const major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options8.includePrerelease && match[5] ? `-${match[5]}` : "", build = options8.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
1114
|
-
return parse7(`${major}.${minor}.${patch}${prerelease}${build}`, options8);
|
|
1115
|
-
};
|
|
1116
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1117
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1118
|
-
module2.exports = (a3, b11, loose) => {
|
|
1119
|
-
const versionA = new SemVer(a3, loose), versionB = new SemVer(b11, loose);
|
|
1120
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
1121
|
-
};
|
|
1122
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1123
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1124
|
-
module2.exports = (a3, b11) => compare(a3, b11, true);
|
|
1125
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1126
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1127
|
-
module2.exports = (a3, b11, loose) => new SemVer(a3, loose).compare(new SemVer(b11, loose));
|
|
1128
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1129
|
-
const parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1130
|
-
module2.exports = (version1, version2) => {
|
|
1131
|
-
const v12 = parse7(version1, null, true), v23 = parse7(version2, null, true), comparison = v12.compare(v23);
|
|
1132
|
-
if (0 === comparison) return null;
|
|
1133
|
-
const v1Higher = comparison > 0, highVersion = v1Higher ? v12 : v23, lowVersion = v1Higher ? v23 : v12, highHasPre = !!highVersion.prerelease.length;
|
|
1134
|
-
if (!!lowVersion.prerelease.length && !highHasPre) return lowVersion.patch || lowVersion.minor ? highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major" : "major";
|
|
1135
|
-
const prefix = highHasPre ? "pre" : "";
|
|
1136
|
-
return v12.major !== v23.major ? prefix + "major" : v12.minor !== v23.minor ? prefix + "minor" : v12.patch !== v23.patch ? prefix + "patch" : "prerelease";
|
|
1137
|
-
};
|
|
1138
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1139
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1140
|
-
module2.exports = (a3, b11, loose) => 0 === compare(a3, b11, loose);
|
|
1141
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1142
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1143
|
-
module2.exports = (a3, b11, loose) => compare(a3, b11, loose) > 0;
|
|
1144
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1145
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1146
|
-
module2.exports = (a3, b11, loose) => compare(a3, b11, loose) >= 0;
|
|
1147
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1148
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1149
|
-
module2.exports = (version2, release, options8, identifier, identifierBase) => {
|
|
1150
|
-
"string" == typeof options8 && (identifierBase = identifier, identifier = options8, options8 = void 0);
|
|
1151
|
-
try {
|
|
1152
|
-
return new SemVer(version2 instanceof SemVer ? version2.version : version2, options8).inc(release, identifier, identifierBase).version;
|
|
1153
|
-
} catch (er8) {
|
|
1154
|
-
return null;
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1158
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1159
|
-
module2.exports = (a3, b11, loose) => compare(a3, b11, loose) < 0;
|
|
1160
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1161
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1162
|
-
module2.exports = (a3, b11, loose) => compare(a3, b11, loose) <= 0;
|
|
1163
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1164
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1165
|
-
module2.exports = (a3, loose) => new SemVer(a3, loose).major;
|
|
1166
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1167
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1168
|
-
module2.exports = (a3, loose) => new SemVer(a3, loose).minor;
|
|
1169
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1170
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1171
|
-
module2.exports = (a3, b11, loose) => 0 !== compare(a3, b11, loose);
|
|
1172
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1173
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1174
|
-
module2.exports = (version2, options8, throwErrors = false) => {
|
|
1175
|
-
if (version2 instanceof SemVer) return version2;
|
|
1176
|
-
try {
|
|
1177
|
-
return new SemVer(version2, options8);
|
|
1178
|
-
} catch (er8) {
|
|
1179
|
-
if (!throwErrors) return null;
|
|
1180
|
-
throw er8;
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1184
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
|
|
1185
|
-
module2.exports = (a3, loose) => new SemVer(a3, loose).patch;
|
|
1186
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1187
|
-
const parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1188
|
-
module2.exports = (version2, options8) => {
|
|
1189
|
-
const parsed = parse7(version2, options8);
|
|
1190
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
1191
|
-
};
|
|
1192
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1193
|
-
const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1194
|
-
module2.exports = (a3, b11, loose) => compare(b11, a3, loose);
|
|
1195
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1196
|
-
const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
|
|
1197
|
-
module2.exports = (list, loose) => list.sort((a3, b11) => compareBuild(b11, a3, loose));
|
|
1198
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1199
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1200
|
-
module2.exports = (version2, range2, options8) => {
|
|
1201
|
-
try {
|
|
1202
|
-
range2 = new Range(range2, options8);
|
|
1203
|
-
} catch (er8) {
|
|
1204
|
-
return false;
|
|
1205
|
-
}
|
|
1206
|
-
return range2.test(version2);
|
|
1207
|
-
};
|
|
1208
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1209
|
-
const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
|
|
1210
|
-
module2.exports = (list, loose) => list.sort((a3, b11) => compareBuild(a3, b11, loose));
|
|
1211
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1212
|
-
const parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
|
|
1213
|
-
module2.exports = (version2, options8) => {
|
|
1214
|
-
const v10 = parse7(version2, options8);
|
|
1215
|
-
return v10 ? v10.version : null;
|
|
1216
|
-
};
|
|
1217
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1218
|
-
const internalRe = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"), constants3 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), identifiers = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js"), parse7 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"), valid = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"), clean = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"), inc = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js"), diff2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"), major = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js"), minor = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js"), patch = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js"), prerelease = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js"), rcompare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js"), compareLoose = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js"), compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js"), sort = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js"), rsort = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js"), gt8 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), eq2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js"), neq = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js"), cmp = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js"), coerce2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), toComparators = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js"), maxSatisfying = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js"), minSatisfying = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js"), minVersion = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js"), validRange = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js"), outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js"), gtr = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js"), ltr = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js"), intersects = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js"), simplifyRange = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js"), subset = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js");
|
|
1219
|
-
module2.exports = { parse: parse7, valid, clean, inc, diff: diff2, major, minor, patch, prerelease, compare, rcompare, compareLoose, compareBuild, sort, rsort, gt: gt8, lt: lt6, eq: eq2, neq, gte, lte, cmp, coerce: coerce2, Comparator, Range, satisfies, toComparators, maxSatisfying, minSatisfying, minVersion, validRange, outside, gtr, ltr, intersects, simplifyRange, subset, SemVer, re: internalRe.re, src: internalRe.src, tokens: internalRe.t, SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION, RELEASE_TYPES: constants3.RELEASE_TYPES, compareIdentifiers: identifiers.compareIdentifiers, rcompareIdentifiers: identifiers.rcompareIdentifiers };
|
|
1220
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js": (module2) => {
|
|
1221
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
1222
|
-
module2.exports = { MAX_LENGTH: 256, MAX_SAFE_COMPONENT_LENGTH: 16, MAX_SAFE_BUILD_LENGTH: 250, MAX_SAFE_INTEGER, RELEASE_TYPES: ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease"], SEMVER_SPEC_VERSION: "2.0.0", FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2 };
|
|
1223
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js": (module2) => {
|
|
1224
|
-
const debug2 = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
1225
|
-
};
|
|
1226
|
-
module2.exports = debug2;
|
|
1227
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js": (module2) => {
|
|
1228
|
-
const numeric = /^[0-9]+$/, compareIdentifiers = (a3, b11) => {
|
|
1229
|
-
const anum = numeric.test(a3), bnum = numeric.test(b11);
|
|
1230
|
-
return anum && bnum && (a3 = +a3, b11 = +b11), a3 === b11 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b11 ? -1 : 1;
|
|
1231
|
-
};
|
|
1232
|
-
module2.exports = { compareIdentifiers, rcompareIdentifiers: (a3, b11) => compareIdentifiers(b11, a3) };
|
|
1233
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js": (module2) => {
|
|
1234
|
-
module2.exports = class {
|
|
1235
|
-
constructor() {
|
|
1236
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
1237
|
-
}
|
|
1238
|
-
get(key2) {
|
|
1239
|
-
const value2 = this.map.get(key2);
|
|
1240
|
-
return void 0 === value2 ? void 0 : (this.map.delete(key2), this.map.set(key2, value2), value2);
|
|
1241
|
-
}
|
|
1242
|
-
delete(key2) {
|
|
1243
|
-
return this.map.delete(key2);
|
|
1244
|
-
}
|
|
1245
|
-
set(key2, value2) {
|
|
1246
|
-
if (!this.delete(key2) && void 0 !== value2) {
|
|
1247
|
-
if (this.map.size >= this.max) {
|
|
1248
|
-
const firstKey = this.map.keys().next().value;
|
|
1249
|
-
this.delete(firstKey);
|
|
1250
|
-
}
|
|
1251
|
-
this.map.set(key2, value2);
|
|
1252
|
-
}
|
|
1253
|
-
return this;
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js": (module2) => {
|
|
1257
|
-
const looseOption = Object.freeze({ loose: true }), emptyOpts = Object.freeze({});
|
|
1258
|
-
module2.exports = (options8) => options8 ? "object" != typeof options8 ? looseOption : options8 : emptyOpts;
|
|
1259
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js": (module2, exports2, __webpack_require__2) => {
|
|
1260
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"), debug2 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"), re12 = (exports2 = module2.exports = {}).re = [], safeRe = exports2.safeRe = [], src = exports2.src = [], t14 = exports2.t = {};
|
|
1261
|
-
let R12 = 0;
|
|
1262
|
-
const safeRegexReplacements = [["\\s", 1], ["\\d", MAX_LENGTH], ["[a-zA-Z0-9-]", MAX_SAFE_BUILD_LENGTH]], createToken = (name, value2, isGlobal) => {
|
|
1263
|
-
const safe = ((value3) => {
|
|
1264
|
-
for (const [token2, max2] of safeRegexReplacements) value3 = value3.split(`${token2}*`).join(`${token2}{0,${max2}}`).split(`${token2}+`).join(`${token2}{1,${max2}}`);
|
|
1265
|
-
return value3;
|
|
1266
|
-
})(value2), index = R12++;
|
|
1267
|
-
debug2(name, index, value2), t14[name] = index, src[index] = value2, re12[index] = new RegExp(value2, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
1268
|
-
};
|
|
1269
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"), createToken("NUMERICIDENTIFIERLOOSE", "\\d+"), createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"), createToken("MAINVERSION", `(${src[t14.NUMERICIDENTIFIER]})\\.(${src[t14.NUMERICIDENTIFIER]})\\.(${src[t14.NUMERICIDENTIFIER]})`), createToken("MAINVERSIONLOOSE", `(${src[t14.NUMERICIDENTIFIERLOOSE]})\\.(${src[t14.NUMERICIDENTIFIERLOOSE]})\\.(${src[t14.NUMERICIDENTIFIERLOOSE]})`), createToken("PRERELEASEIDENTIFIER", `(?:${src[t14.NUMERICIDENTIFIER]}|${src[t14.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t14.NUMERICIDENTIFIERLOOSE]}|${src[t14.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASE", `(?:-(${src[t14.PRERELEASEIDENTIFIER]}(?:\\.${src[t14.PRERELEASEIDENTIFIER]})*))`), createToken("PRERELEASELOOSE", `(?:-?(${src[t14.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t14.PRERELEASEIDENTIFIERLOOSE]})*))`), createToken("BUILDIDENTIFIER", "[a-zA-Z0-9-]+"), createToken("BUILD", `(?:\\+(${src[t14.BUILDIDENTIFIER]}(?:\\.${src[t14.BUILDIDENTIFIER]})*))`), createToken("FULLPLAIN", `v?${src[t14.MAINVERSION]}${src[t14.PRERELEASE]}?${src[t14.BUILD]}?`), createToken("FULL", `^${src[t14.FULLPLAIN]}$`), createToken("LOOSEPLAIN", `[v=\\s]*${src[t14.MAINVERSIONLOOSE]}${src[t14.PRERELEASELOOSE]}?${src[t14.BUILD]}?`), createToken("LOOSE", `^${src[t14.LOOSEPLAIN]}$`), createToken("GTLT", "((?:<|>)?=?)"), createToken("XRANGEIDENTIFIERLOOSE", `${src[t14.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), createToken("XRANGEIDENTIFIER", `${src[t14.NUMERICIDENTIFIER]}|x|X|\\*`), createToken("XRANGEPLAIN", `[v=\\s]*(${src[t14.XRANGEIDENTIFIER]})(?:\\.(${src[t14.XRANGEIDENTIFIER]})(?:\\.(${src[t14.XRANGEIDENTIFIER]})(?:${src[t14.PRERELEASE]})?${src[t14.BUILD]}?)?)?`), createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t14.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t14.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t14.XRANGEIDENTIFIERLOOSE]})(?:${src[t14.PRERELEASELOOSE]})?${src[t14.BUILD]}?)?)?`), createToken("XRANGE", `^${src[t14.GTLT]}\\s*${src[t14.XRANGEPLAIN]}$`), createToken("XRANGELOOSE", `^${src[t14.GTLT]}\\s*${src[t14.XRANGEPLAINLOOSE]}$`), createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`), createToken("COERCE", `${src[t14.COERCEPLAIN]}(?:$|[^\\d])`), createToken("COERCEFULL", src[t14.COERCEPLAIN] + `(?:${src[t14.PRERELEASE]})?(?:${src[t14.BUILD]})?(?:$|[^\\d])`), createToken("COERCERTL", src[t14.COERCE], true), createToken("COERCERTLFULL", src[t14.COERCEFULL], true), createToken("LONETILDE", "(?:~>?)"), createToken("TILDETRIM", `(\\s*)${src[t14.LONETILDE]}\\s+`, true), exports2.tildeTrimReplace = "$1~", createToken("TILDE", `^${src[t14.LONETILDE]}${src[t14.XRANGEPLAIN]}$`), createToken("TILDELOOSE", `^${src[t14.LONETILDE]}${src[t14.XRANGEPLAINLOOSE]}$`), createToken("LONECARET", "(?:\\^)"), createToken("CARETTRIM", `(\\s*)${src[t14.LONECARET]}\\s+`, true), exports2.caretTrimReplace = "$1^", createToken("CARET", `^${src[t14.LONECARET]}${src[t14.XRANGEPLAIN]}$`), createToken("CARETLOOSE", `^${src[t14.LONECARET]}${src[t14.XRANGEPLAINLOOSE]}$`), createToken("COMPARATORLOOSE", `^${src[t14.GTLT]}\\s*(${src[t14.LOOSEPLAIN]})$|^$`), createToken("COMPARATOR", `^${src[t14.GTLT]}\\s*(${src[t14.FULLPLAIN]})$|^$`), createToken("COMPARATORTRIM", `(\\s*)${src[t14.GTLT]}\\s*(${src[t14.LOOSEPLAIN]}|${src[t14.XRANGEPLAIN]})`, true), exports2.comparatorTrimReplace = "$1$2$3", createToken("HYPHENRANGE", `^\\s*(${src[t14.XRANGEPLAIN]})\\s+-\\s+(${src[t14.XRANGEPLAIN]})\\s*$`), createToken("HYPHENRANGELOOSE", `^\\s*(${src[t14.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t14.XRANGEPLAINLOOSE]})\\s*$`), createToken("STAR", "(<|>)?=?\\s*\\*"), createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
1270
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1271
|
-
const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
|
|
1272
|
-
module2.exports = (version2, range2, options8) => outside(version2, range2, ">", options8);
|
|
1273
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1274
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1275
|
-
module2.exports = (r12, r23, options8) => (r12 = new Range(r12, options8), r23 = new Range(r23, options8), r12.intersects(r23, options8));
|
|
1276
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1277
|
-
const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
|
|
1278
|
-
module2.exports = (version2, range2, options8) => outside(version2, range2, "<", options8);
|
|
1279
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1280
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1281
|
-
module2.exports = (versions, range2, options8) => {
|
|
1282
|
-
let max2 = null, maxSV = null, rangeObj = null;
|
|
1283
|
-
try {
|
|
1284
|
-
rangeObj = new Range(range2, options8);
|
|
1285
|
-
} catch (er8) {
|
|
1286
|
-
return null;
|
|
1287
|
-
}
|
|
1288
|
-
return versions.forEach((v10) => {
|
|
1289
|
-
rangeObj.test(v10) && (max2 && -1 !== maxSV.compare(v10) || (max2 = v10, maxSV = new SemVer(max2, options8)));
|
|
1290
|
-
}), max2;
|
|
1291
|
-
};
|
|
1292
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1293
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1294
|
-
module2.exports = (versions, range2, options8) => {
|
|
1295
|
-
let min2 = null, minSV = null, rangeObj = null;
|
|
1296
|
-
try {
|
|
1297
|
-
rangeObj = new Range(range2, options8);
|
|
1298
|
-
} catch (er8) {
|
|
1299
|
-
return null;
|
|
1300
|
-
}
|
|
1301
|
-
return versions.forEach((v10) => {
|
|
1302
|
-
rangeObj.test(v10) && (min2 && 1 !== minSV.compare(v10) || (min2 = v10, minSV = new SemVer(min2, options8)));
|
|
1303
|
-
}), min2;
|
|
1304
|
-
};
|
|
1305
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1306
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), gt8 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js");
|
|
1307
|
-
module2.exports = (range2, loose) => {
|
|
1308
|
-
range2 = new Range(range2, loose);
|
|
1309
|
-
let minver = new SemVer("0.0.0");
|
|
1310
|
-
if (range2.test(minver)) return minver;
|
|
1311
|
-
if (minver = new SemVer("0.0.0-0"), range2.test(minver)) return minver;
|
|
1312
|
-
minver = null;
|
|
1313
|
-
for (let i4 = 0; i4 < range2.set.length; ++i4) {
|
|
1314
|
-
const comparators = range2.set[i4];
|
|
1315
|
-
let setMin = null;
|
|
1316
|
-
comparators.forEach((comparator) => {
|
|
1317
|
-
const compver = new SemVer(comparator.semver.version);
|
|
1318
|
-
switch (comparator.operator) {
|
|
1319
|
-
case ">":
|
|
1320
|
-
0 === compver.prerelease.length ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
1321
|
-
case "":
|
|
1322
|
-
case ">=":
|
|
1323
|
-
setMin && !gt8(compver, setMin) || (setMin = compver);
|
|
1324
|
-
break;
|
|
1325
|
-
case "<":
|
|
1326
|
-
case "<=":
|
|
1327
|
-
break;
|
|
1328
|
-
default:
|
|
1329
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1330
|
-
}
|
|
1331
|
-
}), !setMin || minver && !gt8(minver, setMin) || (minver = setMin);
|
|
1332
|
-
}
|
|
1333
|
-
return minver && range2.test(minver) ? minver : null;
|
|
1334
|
-
};
|
|
1335
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1336
|
-
const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), { ANY } = Comparator, Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), gt8 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), lte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js"), gte = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js");
|
|
1337
|
-
module2.exports = (version2, range2, hilo, options8) => {
|
|
1338
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1339
|
-
switch (version2 = new SemVer(version2, options8), range2 = new Range(range2, options8), hilo) {
|
|
1340
|
-
case ">":
|
|
1341
|
-
gtfn = gt8, ltefn = lte, ltfn = lt6, comp = ">", ecomp = ">=";
|
|
1342
|
-
break;
|
|
1343
|
-
case "<":
|
|
1344
|
-
gtfn = lt6, ltefn = gte, ltfn = gt8, comp = "<", ecomp = "<=";
|
|
1345
|
-
break;
|
|
1346
|
-
default:
|
|
1347
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1348
|
-
}
|
|
1349
|
-
if (satisfies(version2, range2, options8)) return false;
|
|
1350
|
-
for (let i4 = 0; i4 < range2.set.length; ++i4) {
|
|
1351
|
-
const comparators = range2.set[i4];
|
|
1352
|
-
let high = null, low = null;
|
|
1353
|
-
if (comparators.forEach((comparator) => {
|
|
1354
|
-
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options8) ? high = comparator : ltfn(comparator.semver, low.semver, options8) && (low = comparator);
|
|
1355
|
-
}), high.operator === comp || high.operator === ecomp) return false;
|
|
1356
|
-
if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) return false;
|
|
1357
|
-
if (low.operator === ecomp && ltfn(version2, low.semver)) return false;
|
|
1358
|
-
}
|
|
1359
|
-
return true;
|
|
1360
|
-
};
|
|
1361
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1362
|
-
const satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
|
|
1363
|
-
module2.exports = (versions, range2, options8) => {
|
|
1364
|
-
const set3 = [];
|
|
1365
|
-
let first2 = null, prev = null;
|
|
1366
|
-
const v10 = versions.sort((a3, b11) => compare(a3, b11, options8));
|
|
1367
|
-
for (const version2 of v10) {
|
|
1368
|
-
satisfies(version2, range2, options8) ? (prev = version2, first2 || (first2 = version2)) : (prev && set3.push([first2, prev]), prev = null, first2 = null);
|
|
1369
|
-
}
|
|
1370
|
-
first2 && set3.push([first2, null]);
|
|
1371
|
-
const ranges = [];
|
|
1372
|
-
for (const [min2, max2] of set3) min2 === max2 ? ranges.push(min2) : max2 || min2 !== v10[0] ? max2 ? min2 === v10[0] ? ranges.push(`<=${max2}`) : ranges.push(`${min2} - ${max2}`) : ranges.push(`>=${min2}`) : ranges.push("*");
|
|
1373
|
-
const simplified = ranges.join(" || "), original = "string" == typeof range2.raw ? range2.raw : String(range2);
|
|
1374
|
-
return simplified.length < original.length ? simplified : range2;
|
|
1375
|
-
};
|
|
1376
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1377
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js"), Comparator = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js"), { ANY } = Comparator, satisfies = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js"), compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js"), minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options8) => {
|
|
1378
|
-
if (sub === dom) return true;
|
|
1379
|
-
if (1 === sub.length && sub[0].semver === ANY) {
|
|
1380
|
-
if (1 === dom.length && dom[0].semver === ANY) return true;
|
|
1381
|
-
sub = options8.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
|
|
1382
|
-
}
|
|
1383
|
-
if (1 === dom.length && dom[0].semver === ANY) {
|
|
1384
|
-
if (options8.includePrerelease) return true;
|
|
1385
|
-
dom = minimumVersion;
|
|
1386
|
-
}
|
|
1387
|
-
const eqSet = /* @__PURE__ */ new Set();
|
|
1388
|
-
let gt8, lt6, gtltComp, higher, lower, hasDomLT, hasDomGT;
|
|
1389
|
-
for (const c5 of sub) ">" === c5.operator || ">=" === c5.operator ? gt8 = higherGT(gt8, c5, options8) : "<" === c5.operator || "<=" === c5.operator ? lt6 = lowerLT(lt6, c5, options8) : eqSet.add(c5.semver);
|
|
1390
|
-
if (eqSet.size > 1) return null;
|
|
1391
|
-
if (gt8 && lt6) {
|
|
1392
|
-
if (gtltComp = compare(gt8.semver, lt6.semver, options8), gtltComp > 0) return null;
|
|
1393
|
-
if (0 === gtltComp && (">=" !== gt8.operator || "<=" !== lt6.operator)) return null;
|
|
1394
|
-
}
|
|
1395
|
-
for (const eq2 of eqSet) {
|
|
1396
|
-
if (gt8 && !satisfies(eq2, String(gt8), options8)) return null;
|
|
1397
|
-
if (lt6 && !satisfies(eq2, String(lt6), options8)) return null;
|
|
1398
|
-
for (const c5 of dom) if (!satisfies(eq2, String(c5), options8)) return false;
|
|
1399
|
-
return true;
|
|
1400
|
-
}
|
|
1401
|
-
let needDomLTPre = !(!lt6 || options8.includePrerelease || !lt6.semver.prerelease.length) && lt6.semver, needDomGTPre = !(!gt8 || options8.includePrerelease || !gt8.semver.prerelease.length) && gt8.semver;
|
|
1402
|
-
needDomLTPre && 1 === needDomLTPre.prerelease.length && "<" === lt6.operator && 0 === needDomLTPre.prerelease[0] && (needDomLTPre = false);
|
|
1403
|
-
for (const c5 of dom) {
|
|
1404
|
-
if (hasDomGT = hasDomGT || ">" === c5.operator || ">=" === c5.operator, hasDomLT = hasDomLT || "<" === c5.operator || "<=" === c5.operator, gt8) {
|
|
1405
|
-
if (needDomGTPre && c5.semver.prerelease && c5.semver.prerelease.length && c5.semver.major === needDomGTPre.major && c5.semver.minor === needDomGTPre.minor && c5.semver.patch === needDomGTPre.patch && (needDomGTPre = false), ">" === c5.operator || ">=" === c5.operator) {
|
|
1406
|
-
if (higher = higherGT(gt8, c5, options8), higher === c5 && higher !== gt8) return false;
|
|
1407
|
-
} else if (">=" === gt8.operator && !satisfies(gt8.semver, String(c5), options8)) return false;
|
|
1408
|
-
}
|
|
1409
|
-
if (lt6) {
|
|
1410
|
-
if (needDomLTPre && c5.semver.prerelease && c5.semver.prerelease.length && c5.semver.major === needDomLTPre.major && c5.semver.minor === needDomLTPre.minor && c5.semver.patch === needDomLTPre.patch && (needDomLTPre = false), "<" === c5.operator || "<=" === c5.operator) {
|
|
1411
|
-
if (lower = lowerLT(lt6, c5, options8), lower === c5 && lower !== lt6) return false;
|
|
1412
|
-
} else if ("<=" === lt6.operator && !satisfies(lt6.semver, String(c5), options8)) return false;
|
|
1413
|
-
}
|
|
1414
|
-
if (!c5.operator && (lt6 || gt8) && 0 !== gtltComp) return false;
|
|
1415
|
-
}
|
|
1416
|
-
return !(gt8 && hasDomLT && !lt6 && 0 !== gtltComp) && (!(lt6 && hasDomGT && !gt8 && 0 !== gtltComp) && (!needDomGTPre && !needDomLTPre));
|
|
1417
|
-
}, higherGT = (a3, b11, options8) => {
|
|
1418
|
-
if (!a3) return b11;
|
|
1419
|
-
const comp = compare(a3.semver, b11.semver, options8);
|
|
1420
|
-
return comp > 0 ? a3 : comp < 0 || ">" === b11.operator && ">=" === a3.operator ? b11 : a3;
|
|
1421
|
-
}, lowerLT = (a3, b11, options8) => {
|
|
1422
|
-
if (!a3) return b11;
|
|
1423
|
-
const comp = compare(a3.semver, b11.semver, options8);
|
|
1424
|
-
return comp < 0 ? a3 : comp > 0 || "<" === b11.operator && "<=" === a3.operator ? b11 : a3;
|
|
1425
|
-
};
|
|
1426
|
-
module2.exports = (sub, dom, options8 = {}) => {
|
|
1427
|
-
if (sub === dom) return true;
|
|
1428
|
-
sub = new Range(sub, options8), dom = new Range(dom, options8);
|
|
1429
|
-
let sawNonNull = false;
|
|
1430
|
-
OUTER: for (const simpleSub of sub.set) {
|
|
1431
|
-
for (const simpleDom of dom.set) {
|
|
1432
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options8);
|
|
1433
|
-
if (sawNonNull = sawNonNull || null !== isSub, isSub) continue OUTER;
|
|
1434
|
-
}
|
|
1435
|
-
if (sawNonNull) return false;
|
|
1436
|
-
}
|
|
1437
|
-
return true;
|
|
1438
|
-
};
|
|
1439
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1440
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1441
|
-
module2.exports = (range2, options8) => new Range(range2, options8).set.map((comp) => comp.map((c5) => c5.value).join(" ").trim().split(" "));
|
|
1442
|
-
}, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
1443
|
-
const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
|
|
1444
|
-
module2.exports = (range2, options8) => {
|
|
1445
|
-
try {
|
|
1446
|
-
return new Range(range2, options8).range || "*";
|
|
1447
|
-
} catch (er8) {
|
|
1448
|
-
return null;
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
}, crypto: (module2) => {
|
|
1452
|
-
"use strict";
|
|
1453
|
-
module2.exports = __require("crypto");
|
|
1454
|
-
}, fs: (module2) => {
|
|
1455
|
-
"use strict";
|
|
1456
|
-
module2.exports = __require("fs");
|
|
1457
|
-
}, module: (module2) => {
|
|
1458
|
-
"use strict";
|
|
1459
|
-
module2.exports = __require("module");
|
|
1460
|
-
}, path: (module2) => {
|
|
1461
|
-
"use strict";
|
|
1462
|
-
module2.exports = __require("path");
|
|
1463
245
|
} }, __webpack_module_cache__ = {};
|
|
1464
246
|
function __webpack_require__(moduleId) {
|
|
1465
247
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1466
248
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
1467
|
-
var module2 = __webpack_module_cache__[moduleId] = {
|
|
1468
|
-
return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.
|
|
249
|
+
var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
|
|
250
|
+
return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.exports;
|
|
1469
251
|
}
|
|
1470
252
|
__webpack_require__.n = (module2) => {
|
|
1471
253
|
var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
|
|
1472
254
|
return __webpack_require__.d(getter, { a: getter }), getter;
|
|
1473
255
|
}, __webpack_require__.d = (exports2, definition) => {
|
|
1474
256
|
for (var key2 in definition) __webpack_require__.o(definition, key2) && !__webpack_require__.o(exports2, key2) && Object.defineProperty(exports2, key2, { enumerable: true, get: definition[key2] });
|
|
1475
|
-
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
|
257
|
+
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1476
258
|
var __webpack_exports__ = {};
|
|
1477
259
|
(() => {
|
|
1478
260
|
"use strict";
|
|
1479
|
-
__webpack_require__.d(__webpack_exports__, { default: () =>
|
|
1480
|
-
|
|
1481
|
-
const external_perf_hooks_namespaceObject = __require("perf_hooks"), external_os_namespaceObject = __require("os"), external_vm_namespaceObject = __require("vm");
|
|
1482
|
-
var external_vm_default = __webpack_require__.n(external_vm_namespaceObject);
|
|
1483
|
-
const external_url_namespaceObject = __require("url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
261
|
+
__webpack_require__.d(__webpack_exports__, { default: () => createJiti2 });
|
|
262
|
+
const external_node_os_namespaceObject = __require("node:os"), external_node_url_namespaceObject = __require("node:url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
1484
263
|
function normalizeWindowsPath2(input = "") {
|
|
1485
264
|
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r5) => r5.toUpperCase()) : input;
|
|
1486
265
|
}
|
|
@@ -1494,6 +273,14 @@ var require_jiti = __commonJS({
|
|
|
1494
273
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
1495
274
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
1496
275
|
};
|
|
276
|
+
const resolve4 = function(...arguments_) {
|
|
277
|
+
let resolvedPath = "", resolvedAbsolute = false;
|
|
278
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
279
|
+
const path13 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
280
|
+
path13 && 0 !== path13.length && (resolvedPath = `${path13}/${resolvedPath}`, resolvedAbsolute = isAbsolute3(path13));
|
|
281
|
+
}
|
|
282
|
+
return resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute3(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
283
|
+
};
|
|
1497
284
|
function normalizeString2(path13, allowAboveRoot) {
|
|
1498
285
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
1499
286
|
for (let index = 0; index <= path13.length; ++index) {
|
|
@@ -1523,72 +310,38 @@ var require_jiti = __commonJS({
|
|
|
1523
310
|
}
|
|
1524
311
|
return res;
|
|
1525
312
|
}
|
|
1526
|
-
const isAbsolute3 = function(
|
|
1527
|
-
return _IS_ABSOLUTE_RE2.test(
|
|
1528
|
-
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname5 = function(
|
|
1529
|
-
const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(
|
|
313
|
+
const isAbsolute3 = function(p5) {
|
|
314
|
+
return _IS_ABSOLUTE_RE2.test(p5);
|
|
315
|
+
}, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname5 = function(p5) {
|
|
316
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p5));
|
|
1530
317
|
return match && match[1] || "";
|
|
1531
|
-
}, pathe_ff20891b_dirname = function(
|
|
1532
|
-
const segments = normalizeWindowsPath2(
|
|
1533
|
-
return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(
|
|
1534
|
-
}, basename2 = function(
|
|
1535
|
-
const lastSegment = normalizeWindowsPath2(
|
|
318
|
+
}, pathe_ff20891b_dirname = function(p5) {
|
|
319
|
+
const segments = normalizeWindowsPath2(p5).replace(/\/$/, "").split("/").slice(0, -1);
|
|
320
|
+
return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute3(p5) ? "/" : ".");
|
|
321
|
+
}, basename2 = function(p5, extension) {
|
|
322
|
+
const lastSegment = normalizeWindowsPath2(p5).split("/").pop();
|
|
1536
323
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
1537
|
-
}
|
|
1538
|
-
function jsonParseTransform2(key2, value2) {
|
|
1539
|
-
if (!("__proto__" === key2 || "constructor" === key2 && value2 && "object" == typeof value2 && "prototype" in value2)) return value2;
|
|
1540
|
-
!function(key3) {
|
|
1541
|
-
console.warn(`[destr] Dropping "${key3}" key to prevent prototype pollution.`);
|
|
1542
|
-
}(key2);
|
|
1543
|
-
}
|
|
1544
|
-
function destr2(value2, options8 = {}) {
|
|
1545
|
-
if ("string" != typeof value2) return value2;
|
|
1546
|
-
const _value = value2.trim();
|
|
1547
|
-
if ('"' === value2[0] && value2.endsWith('"') && !value2.includes("\\")) return _value.slice(1, -1);
|
|
1548
|
-
if (_value.length <= 9) {
|
|
1549
|
-
const _lval = _value.toLowerCase();
|
|
1550
|
-
if ("true" === _lval) return true;
|
|
1551
|
-
if ("false" === _lval) return false;
|
|
1552
|
-
if ("undefined" === _lval) return;
|
|
1553
|
-
if ("null" === _lval) return null;
|
|
1554
|
-
if ("nan" === _lval) return Number.NaN;
|
|
1555
|
-
if ("infinity" === _lval) return Number.POSITIVE_INFINITY;
|
|
1556
|
-
if ("-infinity" === _lval) return Number.NEGATIVE_INFINITY;
|
|
1557
|
-
}
|
|
1558
|
-
if (!JsonSigRx2.test(value2)) {
|
|
1559
|
-
if (options8.strict) throw new SyntaxError("[destr] Invalid JSON");
|
|
1560
|
-
return value2;
|
|
1561
|
-
}
|
|
1562
|
-
try {
|
|
1563
|
-
if (suspectProtoRx2.test(value2) || suspectConstructorRx2.test(value2)) {
|
|
1564
|
-
if (options8.strict) throw new Error("[destr] Possible prototype pollution");
|
|
1565
|
-
return JSON.parse(value2, jsonParseTransform2);
|
|
1566
|
-
}
|
|
1567
|
-
return JSON.parse(value2);
|
|
1568
|
-
} catch (error) {
|
|
1569
|
-
if (options8.strict) throw error;
|
|
1570
|
-
return value2;
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
324
|
+
};
|
|
1573
325
|
function escapeStringRegexp2(string) {
|
|
1574
326
|
if ("string" != typeof string) throw new TypeError("Expected a string");
|
|
1575
327
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
1576
328
|
}
|
|
1577
|
-
var create_require = __webpack_require__("./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js"), create_require_default = __webpack_require__.n(create_require), semver = __webpack_require__("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js");
|
|
1578
329
|
const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]), normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
|
|
1579
330
|
function normalizeAliases(_aliases) {
|
|
1580
331
|
if (_aliases[normalizedAliasSymbol]) return _aliases;
|
|
1581
|
-
const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([
|
|
1582
|
-
return b12.split("/").length -
|
|
1583
|
-
}(
|
|
332
|
+
const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a4], [b11]) => function(a5, b12) {
|
|
333
|
+
return b12.split("/").length - a5.split("/").length;
|
|
334
|
+
}(a4, b11)));
|
|
1584
335
|
for (const key2 in aliases2) for (const alias in aliases2) alias === key2 || key2.startsWith(alias) || aliases2[key2].startsWith(alias) && pathSeparators.has(aliases2[key2][alias.length]) && (aliases2[key2] = aliases2[alias] + aliases2[key2].slice(alias.length));
|
|
1585
336
|
return Object.defineProperty(aliases2, normalizedAliasSymbol, { value: true, enumerable: false }), aliases2;
|
|
1586
337
|
}
|
|
338
|
+
const FILENAME_RE = /(^|[/\\])([^/\\]+?)(?=(\.[^.]+)?$)/;
|
|
1587
339
|
function hasTrailingSlash2(path13 = "/") {
|
|
1588
340
|
const lastChar = path13[path13.length - 1];
|
|
1589
341
|
return "/" === lastChar || "\\" === lastChar;
|
|
1590
342
|
}
|
|
1591
|
-
var lib = __webpack_require__("./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js"), object_hash = __webpack_require__("./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js"), object_hash_default = __webpack_require__.n(object_hash), 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, 370, 1, 81, 2, 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, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 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, 983, 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, 68, 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, 349, 41, 7, 1, 79, 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, 159, 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, 264, 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, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 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, 757, 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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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\u0898-\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]");
|
|
343
|
+
const package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.3"}'), external_node_fs_namespaceObject = __require("node:fs"), external_node_crypto_namespaceObject = __require("node:crypto");
|
|
344
|
+
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, 370, 1, 81, 2, 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, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 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, 983, 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, 68, 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, 349, 41, 7, 1, 79, 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, 159, 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, 264, 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, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 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, 757, 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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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\u0898-\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]");
|
|
1592
345
|
function isInAstralSet2(code, set3) {
|
|
1593
346
|
for (var pos2 = 65536, i5 = 0; i5 < set3.length; i5 += 2) {
|
|
1594
347
|
if ((pos2 += set3[i5]) > code) return false;
|
|
@@ -1641,8 +394,8 @@ var require_jiti = __commonJS({
|
|
|
1641
394
|
Position3.prototype.offset = function(n) {
|
|
1642
395
|
return new Position3(this.line, this.column + n);
|
|
1643
396
|
};
|
|
1644
|
-
var SourceLocation3 = function(
|
|
1645
|
-
this.start = start2, this.end = end2, null !==
|
|
397
|
+
var SourceLocation3 = function(p5, start2, end2) {
|
|
398
|
+
this.start = start2, this.end = end2, null !== p5.sourceFile && (this.source = p5.sourceFile);
|
|
1646
399
|
};
|
|
1647
400
|
function getLineInfo3(input, offset2) {
|
|
1648
401
|
for (var line3 = 1, cur = 0; ; ) {
|
|
@@ -1718,7 +471,7 @@ var require_jiti = __commonJS({
|
|
|
1718
471
|
}, Parser4.tokenizer = function(input, options8) {
|
|
1719
472
|
return new this(options8, input);
|
|
1720
473
|
}, Object.defineProperties(Parser4.prototype, prototypeAccessors2);
|
|
1721
|
-
var pp$92 = Parser4.prototype, literal3 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")
|
|
474
|
+
var pp$92 = Parser4.prototype, literal3 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/s;
|
|
1722
475
|
pp$92.strictDirective = function(start2) {
|
|
1723
476
|
if (this.options.ecmaVersion < 5) return false;
|
|
1724
477
|
for (; ; ) {
|
|
@@ -1879,8 +632,8 @@ var require_jiti = __commonJS({
|
|
|
1879
632
|
var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
|
|
1880
633
|
return this.next(), this.parseVar(init$1, true, kind), this.finishNode(init$1, "VariableDeclaration"), (this.type === types$12._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && 1 === init$1.declarations.length ? (this.options.ecmaVersion >= 9 && (this.type === types$12._in ? awaitAt > -1 && this.unexpected(awaitAt) : node.await = awaitAt > -1), this.parseForIn(node, init$1)) : (awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init$1));
|
|
1881
634
|
}
|
|
1882
|
-
var startsWithLet = this.isContextual("let"), isForOf = false, refDestructuringErrors = new DestructuringErrors3(),
|
|
1883
|
-
return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (
|
|
635
|
+
var startsWithLet = this.isContextual("let"), isForOf = false, containsEsc = this.containsEsc, refDestructuringErrors = new DestructuringErrors3(), initPos = this.start, init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(true, refDestructuringErrors);
|
|
636
|
+
return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (awaitAt > -1 ? (this.type === types$12._in && this.unexpected(awaitAt), node.await = true) : isForOf && this.options.ecmaVersion >= 8 && (init.start !== initPos || containsEsc || "Identifier" !== init.type || "async" !== init.name ? this.options.ecmaVersion >= 9 && (node.await = false) : this.unexpected()), startsWithLet && isForOf && this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(init, false, refDestructuringErrors), this.checkLValPattern(init), this.parseForIn(node, init)) : (this.checkExpressionErrors(refDestructuringErrors, true), awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init));
|
|
1884
637
|
}, pp$82.parseFunctionStatement = function(node, isAsync2, declarationPosition) {
|
|
1885
638
|
return this.next(), this.parseFunction(node, FUNC_STATEMENT2 | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT2), false, isAsync2);
|
|
1886
639
|
}, pp$82.parseIfStatement = function(node) {
|
|
@@ -2262,8 +1015,8 @@ var require_jiti = __commonJS({
|
|
|
2262
1015
|
};
|
|
2263
1016
|
var TokContext3 = function(token2, isExpr, preserveSpace, override, generator) {
|
|
2264
1017
|
this.token = token2, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
|
|
2265
|
-
}, types2 = { b_stat: new TokContext3("{", false), b_expr: new TokContext3("{", true), b_tmpl: new TokContext3("${", false), p_stat: new TokContext3("(", false), p_expr: new TokContext3("(", true), q_tmpl: new TokContext3("`", true, true, function(
|
|
2266
|
-
return
|
|
1018
|
+
}, types2 = { b_stat: new TokContext3("{", false), b_expr: new TokContext3("{", true), b_tmpl: new TokContext3("${", false), p_stat: new TokContext3("(", false), p_expr: new TokContext3("(", true), q_tmpl: new TokContext3("`", true, true, function(p5) {
|
|
1019
|
+
return p5.tryReadTemplateToken();
|
|
2267
1020
|
}), f_stat: new TokContext3("function", false), f_expr: new TokContext3("function", true), f_expr_gen: new TokContext3("function", true, false, null, true), f_gen: new TokContext3("function", false, false, null, true) }, pp$62 = Parser4.prototype;
|
|
2268
1021
|
pp$62.initialContext = function() {
|
|
2269
1022
|
return [types2.b_stat];
|
|
@@ -2313,8 +1066,11 @@ var require_jiti = __commonJS({
|
|
|
2313
1066
|
this.options.ecmaVersion >= 6 && prevType !== types$12.dot && ("of" === this.value && !this.exprAllowed || "yield" === this.value && this.inGeneratorContext()) && (allowed = true), this.exprAllowed = allowed;
|
|
2314
1067
|
};
|
|
2315
1068
|
var pp$52 = Parser4.prototype;
|
|
1069
|
+
function isLocalVariableAccess2(node) {
|
|
1070
|
+
return "Identifier" === node.type || "ParenthesizedExpression" === node.type && isLocalVariableAccess2(node.expression);
|
|
1071
|
+
}
|
|
2316
1072
|
function isPrivateFieldAccess2(node) {
|
|
2317
|
-
return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression);
|
|
1073
|
+
return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression) || "ParenthesizedExpression" === node.type && isPrivateFieldAccess2(node.expression);
|
|
2318
1074
|
}
|
|
2319
1075
|
pp$52.checkPropClash = function(prop, propHash, refDestructuringErrors) {
|
|
2320
1076
|
if (!(this.options.ecmaVersion >= 9 && "SpreadElement" === prop.type || this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))) {
|
|
@@ -2392,7 +1148,7 @@ var require_jiti = __commonJS({
|
|
|
2392
1148
|
if (this.isContextual("await") && this.canAwait) expr = this.parseAwait(forInit), sawUnary = true;
|
|
2393
1149
|
else if (this.type.prefix) {
|
|
2394
1150
|
var node = this.startNode(), update = this.type === types$12.incDec;
|
|
2395
|
-
node.operator = this.value, node.prefix = true, this.next(), node.argument = this.parseMaybeUnary(null, true, update, forInit), this.checkExpressionErrors(refDestructuringErrors, true), update ? this.checkLValSimple(node.argument) : this.strict && "delete" === node.operator &&
|
|
1151
|
+
node.operator = this.value, node.prefix = true, this.next(), node.argument = this.parseMaybeUnary(null, true, update, forInit), this.checkExpressionErrors(refDestructuringErrors, true), update ? this.checkLValSimple(node.argument) : this.strict && "delete" === node.operator && isLocalVariableAccess2(node.argument) ? this.raiseRecoverable(node.start, "Deleting local variable in strict mode") : "delete" === node.operator && isPrivateFieldAccess2(node.argument) ? this.raiseRecoverable(node.start, "Private fields can not be deleted") : sawUnary = true, expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
|
|
2396
1152
|
} else if (sawUnary || this.type !== types$12.privateId) {
|
|
2397
1153
|
if (expr = this.parseExprSubscripts(refDestructuringErrors, forInit), this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
|
2398
1154
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
@@ -2562,7 +1318,7 @@ var require_jiti = __commonJS({
|
|
|
2562
1318
|
return node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false), this.eat(types$12.parenL) ? node.arguments = this.parseExprList(types$12.parenR, this.options.ecmaVersion >= 8, false) : node.arguments = empty3, this.finishNode(node, "NewExpression");
|
|
2563
1319
|
}, pp$52.parseTemplateElement = function(ref3) {
|
|
2564
1320
|
var isTagged = ref3.isTagged, elem = this.startNode();
|
|
2565
|
-
return this.type === types$12.invalidTemplate ? (isTagged || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), elem.value = { raw: this.value, cooked: null }) : elem.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), cooked: this.value }, this.next(), elem.tail = this.type === types$12.backQuote, this.finishNode(elem, "TemplateElement");
|
|
1321
|
+
return this.type === types$12.invalidTemplate ? (isTagged || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), elem.value = { raw: this.value.replace(/\r\n?/g, "\n"), cooked: null }) : elem.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), cooked: this.value }, this.next(), elem.tail = this.type === types$12.backQuote, this.finishNode(elem, "TemplateElement");
|
|
2566
1322
|
}, pp$52.parseTemplate = function(ref3) {
|
|
2567
1323
|
void 0 === ref3 && (ref3 = {});
|
|
2568
1324
|
var isTagged = ref3.isTagged;
|
|
@@ -2740,8 +1496,17 @@ var require_jiti = __commonJS({
|
|
|
2740
1496
|
for (var i4 = 0, list = [9, 10, 11, 12, 13, 14]; i4 < list.length; i4 += 1) {
|
|
2741
1497
|
buildUnicodeData2(list[i4]);
|
|
2742
1498
|
}
|
|
2743
|
-
var pp$12 = Parser4.prototype,
|
|
2744
|
-
this.
|
|
1499
|
+
var pp$12 = Parser4.prototype, BranchID3 = function(parent, base) {
|
|
1500
|
+
this.parent = parent, this.base = base || this;
|
|
1501
|
+
};
|
|
1502
|
+
BranchID3.prototype.separatedFrom = function(alt) {
|
|
1503
|
+
for (var self2 = this; self2; self2 = self2.parent) for (var other = alt; other; other = other.parent) if (self2.base === other.base && self2 !== other) return true;
|
|
1504
|
+
return false;
|
|
1505
|
+
}, BranchID3.prototype.sibling = function() {
|
|
1506
|
+
return new BranchID3(this.parent, this.base);
|
|
1507
|
+
};
|
|
1508
|
+
var RegExpValidationState3 = function(parser) {
|
|
1509
|
+
this.parser = parser, this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = data2[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
2745
1510
|
};
|
|
2746
1511
|
function isSyntaxCharacter2(ch) {
|
|
2747
1512
|
return 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
@@ -2756,18 +1521,18 @@ var require_jiti = __commonJS({
|
|
|
2756
1521
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
2757
1522
|
}, RegExpValidationState3.prototype.at = function(i5, forceU) {
|
|
2758
1523
|
void 0 === forceU && (forceU = false);
|
|
2759
|
-
var s3 = this.source,
|
|
2760
|
-
if (i5 >=
|
|
1524
|
+
var s3 = this.source, l5 = s3.length;
|
|
1525
|
+
if (i5 >= l5) return -1;
|
|
2761
1526
|
var c5 = s3.charCodeAt(i5);
|
|
2762
|
-
if (!forceU && !this.switchU || c5 <= 55295 || c5 >= 57344 || i5 + 1 >=
|
|
1527
|
+
if (!forceU && !this.switchU || c5 <= 55295 || c5 >= 57344 || i5 + 1 >= l5) return c5;
|
|
2763
1528
|
var next = s3.charCodeAt(i5 + 1);
|
|
2764
1529
|
return next >= 56320 && next <= 57343 ? (c5 << 10) + next - 56613888 : c5;
|
|
2765
1530
|
}, RegExpValidationState3.prototype.nextIndex = function(i5, forceU) {
|
|
2766
1531
|
void 0 === forceU && (forceU = false);
|
|
2767
|
-
var s3 = this.source,
|
|
2768
|
-
if (i5 >=
|
|
1532
|
+
var s3 = this.source, l5 = s3.length;
|
|
1533
|
+
if (i5 >= l5) return l5;
|
|
2769
1534
|
var next, c5 = s3.charCodeAt(i5);
|
|
2770
|
-
return !forceU && !this.switchU || c5 <= 55295 || c5 >= 57344 || i5 + 1 >=
|
|
1535
|
+
return !forceU && !this.switchU || c5 <= 55295 || c5 >= 57344 || i5 + 1 >= l5 || (next = s3.charCodeAt(i5 + 1)) < 56320 || next > 57343 ? i5 + 1 : i5 + 2;
|
|
2771
1536
|
}, RegExpValidationState3.prototype.current = function(forceU) {
|
|
2772
1537
|
return void 0 === forceU && (forceU = false), this.at(this.pos, forceU);
|
|
2773
1538
|
}, RegExpValidationState3.prototype.lookahead = function(forceU) {
|
|
@@ -2791,16 +1556,20 @@ var require_jiti = __commonJS({
|
|
|
2791
1556
|
}
|
|
2792
1557
|
this.options.ecmaVersion >= 15 && u3 && v10 && this.raise(state.start, "Invalid regular expression flag");
|
|
2793
1558
|
}, pp$12.validateRegExpPattern = function(state) {
|
|
2794
|
-
this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 &&
|
|
1559
|
+
this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && function(obj) {
|
|
1560
|
+
for (var _16 in obj) return true;
|
|
1561
|
+
return false;
|
|
1562
|
+
}(state.groupNames) && (state.switchN = true, this.regexp_pattern(state));
|
|
2795
1563
|
}, pp$12.regexp_pattern = function(state) {
|
|
2796
|
-
state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames
|
|
1564
|
+
state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames = /* @__PURE__ */ Object.create(null), state.backReferenceNames.length = 0, state.branchID = null, this.regexp_disjunction(state), state.pos !== state.source.length && (state.eat(41) && state.raise("Unmatched ')'"), (state.eat(93) || state.eat(125)) && state.raise("Lone quantifier brackets")), state.maxBackReference > state.numCapturingParens && state.raise("Invalid escape");
|
|
2797
1565
|
for (var i5 = 0, list2 = state.backReferenceNames; i5 < list2.length; i5 += 1) {
|
|
2798
1566
|
var name = list2[i5];
|
|
2799
|
-
|
|
1567
|
+
state.groupNames[name] || state.raise("Invalid named capture referenced");
|
|
2800
1568
|
}
|
|
2801
1569
|
}, pp$12.regexp_disjunction = function(state) {
|
|
2802
|
-
|
|
2803
|
-
|
|
1570
|
+
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
1571
|
+
for (trackDisjunction && (state.branchID = new BranchID3(state.branchID, null)), this.regexp_alternative(state); state.eat(124); ) trackDisjunction && (state.branchID = state.branchID.sibling()), this.regexp_alternative(state);
|
|
1572
|
+
trackDisjunction && (state.branchID = state.branchID.parent), this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
|
|
2804
1573
|
}, pp$12.regexp_alternative = function(state) {
|
|
2805
1574
|
for (; state.pos < state.source.length && this.regexp_eatTerm(state); ) ;
|
|
2806
1575
|
}, pp$12.regexp_eatTerm = function(state) {
|
|
@@ -2869,8 +1638,13 @@ var require_jiti = __commonJS({
|
|
|
2869
1638
|
return !(-1 === ch || 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || 91 === ch || 94 === ch || 124 === ch) && (state.advance(), true);
|
|
2870
1639
|
}, pp$12.regexp_groupSpecifier = function(state) {
|
|
2871
1640
|
if (state.eat(63)) {
|
|
2872
|
-
|
|
2873
|
-
state.
|
|
1641
|
+
this.regexp_eatGroupName(state) || state.raise("Invalid group");
|
|
1642
|
+
var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
|
|
1643
|
+
if (known) if (trackDisjunction) for (var i5 = 0, list2 = known; i5 < list2.length; i5 += 1) {
|
|
1644
|
+
list2[i5].separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
|
|
1645
|
+
}
|
|
1646
|
+
else state.raise("Duplicate capture group name");
|
|
1647
|
+
trackDisjunction ? (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID) : state.groupNames[state.lastStringValue] = true;
|
|
2874
1648
|
}
|
|
2875
1649
|
}, pp$12.regexp_eatGroupName = function(state) {
|
|
2876
1650
|
if (state.lastStringValue = "", state.eat(60)) {
|
|
@@ -3169,8 +1943,8 @@ var require_jiti = __commonJS({
|
|
|
3169
1943
|
}
|
|
3170
1944
|
return true;
|
|
3171
1945
|
};
|
|
3172
|
-
var Token3 = function(
|
|
3173
|
-
this.type =
|
|
1946
|
+
var Token3 = function(p5) {
|
|
1947
|
+
this.type = p5.type, this.value = p5.value, this.start = p5.start, this.end = p5.end, p5.options.locations && (this.loc = new SourceLocation3(p5, p5.startLoc, p5.endLoc)), p5.options.ranges && (this.range = [p5.start, p5.end]);
|
|
3174
1948
|
}, pp4 = Parser4.prototype;
|
|
3175
1949
|
function stringToBigInt2(str2) {
|
|
3176
1950
|
return "function" != typeof BigInt ? null : BigInt(str2.replace(/_/g, ""));
|
|
@@ -3475,6 +2249,12 @@ var require_jiti = __commonJS({
|
|
|
3475
2249
|
if ("{" !== this.input[this.pos + 1]) break;
|
|
3476
2250
|
case "`":
|
|
3477
2251
|
return this.finishToken(types$12.invalidTemplate, this.input.slice(this.start, this.pos));
|
|
2252
|
+
case "\r":
|
|
2253
|
+
"\n" === this.input[this.pos + 1] && ++this.pos;
|
|
2254
|
+
case "\n":
|
|
2255
|
+
case "\u2028":
|
|
2256
|
+
case "\u2029":
|
|
2257
|
+
++this.curLine, this.lineStart = this.pos + 1;
|
|
3478
2258
|
}
|
|
3479
2259
|
this.raise(this.start, "Unterminated template");
|
|
3480
2260
|
}, pp4.readEscapedChar = function(inTemplate) {
|
|
@@ -3511,7 +2291,7 @@ var require_jiti = __commonJS({
|
|
|
3511
2291
|
var octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], octal = parseInt(octalStr, 8);
|
|
3512
2292
|
return octal > 255 && (octalStr = octalStr.slice(0, -1), octal = parseInt(octalStr, 8)), this.pos += octalStr.length - 1, ch = this.input.charCodeAt(this.pos), "0" === octalStr && 56 !== ch && 57 !== ch || !this.strict && !inTemplate || this.invalidStringToken(this.pos - 1 - octalStr.length, inTemplate ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(octal);
|
|
3513
2293
|
}
|
|
3514
|
-
return isNewLine2(ch) ? "" : String.fromCharCode(ch);
|
|
2294
|
+
return isNewLine2(ch) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ch);
|
|
3515
2295
|
}
|
|
3516
2296
|
}, pp4.readHexChar = function(len) {
|
|
3517
2297
|
var codePos = this.pos, n = this.readInt(16, len);
|
|
@@ -3536,8 +2316,8 @@ var require_jiti = __commonJS({
|
|
|
3536
2316
|
var word = this.readWord1(), type2 = types$12.name;
|
|
3537
2317
|
return this.keywords.test(word) && (type2 = keywords2[word]), this.finishToken(type2, word);
|
|
3538
2318
|
};
|
|
3539
|
-
Parser4.acorn = { Parser: Parser4, version: "8.
|
|
3540
|
-
const external_node_module_namespaceObject = __require("module")
|
|
2319
|
+
Parser4.acorn = { Parser: Parser4, version: "8.12.0", defaultOptions: defaultOptions2, Position: Position3, SourceLocation: SourceLocation3, getLineInfo: getLineInfo3, Node: Node3, TokenType: TokenType3, tokTypes: types$12, keywordTypes: keywords2, TokContext: TokContext3, tokContexts: types2, isIdentifierChar: isIdentifierChar2, isIdentifierStart: isIdentifierStart2, Token: Token3, isNewLine: isNewLine2, lineBreak: lineBreak2, lineBreakG: lineBreakG2, nonASCIIwhitespace: nonASCIIwhitespace2 };
|
|
2320
|
+
const external_node_module_namespaceObject = __require("node:module");
|
|
3541
2321
|
Math.floor, String.fromCharCode;
|
|
3542
2322
|
const TRAILING_SLASH_RE2 = /\/$|\/\?|\/#/, JOIN_LEADING_SLASH_RE2 = /^\.?\//;
|
|
3543
2323
|
function dist_hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
@@ -3565,7 +2345,7 @@ var require_jiti = __commonJS({
|
|
|
3565
2345
|
}
|
|
3566
2346
|
Symbol.for("ufo:protocolRelative");
|
|
3567
2347
|
Object.defineProperty;
|
|
3568
|
-
const
|
|
2348
|
+
const 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);
|
|
3569
2349
|
function normalizeSlash2(path13) {
|
|
3570
2350
|
return path13.replace(/\\/g, "/");
|
|
3571
2351
|
}
|
|
@@ -3888,9 +2668,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3888
2668
|
}
|
|
3889
2669
|
throw exportsNotFound3(packageSubpath, packageJsonUrl, base);
|
|
3890
2670
|
}
|
|
3891
|
-
function patternKeyCompare3(
|
|
3892
|
-
const aPatternIndex =
|
|
3893
|
-
return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex ||
|
|
2671
|
+
function patternKeyCompare3(a4, b11) {
|
|
2672
|
+
const aPatternIndex = a4.indexOf("*"), bPatternIndex = b11.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a4.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b11.length : bPatternIndex + 1;
|
|
2673
|
+
return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a4.length > b11.length ? -1 : b11.length > a4.length ? 1 : 0;
|
|
3894
2674
|
}
|
|
3895
2675
|
function packageImportsResolve3(name, base, conditions) {
|
|
3896
2676
|
if ("#" === name || name.startsWith("#/") || name.endsWith("/")) {
|
|
@@ -4059,220 +2839,285 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
4059
2839
|
function hasESMSyntax(code, opts = {}) {
|
|
4060
2840
|
return opts.stripComments && (code = code.replace(COMMENT_RE, "")), ESM_RE.test(code);
|
|
4061
2841
|
}
|
|
4062
|
-
|
|
2842
|
+
const dist_r = /* @__PURE__ */ Object.create(null), E8 = (e3) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e3 ? dist_r : globalThis), dist_s = new Proxy(dist_r, { get: (e3, o2) => E8()[o2] ?? dist_r[o2], has: (e3, o2) => o2 in E8() || o2 in dist_r, set: (e3, o2, i5) => (E8(true)[o2] = i5, true), deleteProperty(e3, o2) {
|
|
2843
|
+
if (!o2) return false;
|
|
2844
|
+
return delete E8(true)[o2], true;
|
|
2845
|
+
}, ownKeys() {
|
|
2846
|
+
const e3 = E8(true);
|
|
2847
|
+
return Object.keys(e3);
|
|
2848
|
+
} }), dist_t = typeof process < "u" && process.env && process.env.NODE_ENV || "", p4 = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"]];
|
|
2849
|
+
const l4 = function() {
|
|
2850
|
+
if (globalThis.process?.env) for (const e3 of p4) {
|
|
2851
|
+
const o2 = e3[1] || e3[0];
|
|
2852
|
+
if (globalThis.process?.env[o2]) return { name: e3[0].toLowerCase(), ...e3[2] };
|
|
2853
|
+
}
|
|
2854
|
+
return "/bin/jsh" === globalThis.process?.env?.SHELL && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
|
|
2855
|
+
}();
|
|
2856
|
+
l4.name;
|
|
2857
|
+
function dist_n(e3) {
|
|
2858
|
+
return !!e3 && "false" !== e3;
|
|
2859
|
+
}
|
|
2860
|
+
const I8 = globalThis.process?.platform || "", T8 = dist_n(dist_s.CI) || false !== l4.ci, R12 = dist_n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), C7 = (dist_n(dist_s.DEBUG), "test" === dist_t || dist_n(dist_s.TEST)), a3 = (dist_n(dist_s.MINIMAL), /^win/i.test(I8)), _15 = (/^linux/i.test(I8), /^darwin/i.test(I8), !dist_n(dist_s.NO_COLOR) && (dist_n(dist_s.FORCE_COLOR) || (R12 || a3) && dist_s.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), W13 = (Number(_15?.split(".")[0]), globalThis.process || /* @__PURE__ */ Object.create(null)), dist_c = { versions: {} }, A8 = (new Proxy(W13, { get: (e3, o2) => "env" === o2 ? dist_s : o2 in e3 ? e3[o2] : o2 in dist_c ? dist_c[o2] : void 0 }), "node" === globalThis.process?.release?.name), L9 = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D10 = !!globalThis.Deno, O10 = !!globalThis.fastly, F9 = [[!!globalThis.Netlify, "netlify"], [!!globalThis.EdgeRuntime, "edge-light"], ["Cloudflare-Workers" === globalThis.navigator?.userAgent, "workerd"], [O10, "fastly"], [D10, "deno"], [L9, "bun"], [A8, "node"], [!!globalThis.__lagon__, "lagon"]];
|
|
2861
|
+
!function() {
|
|
2862
|
+
const e3 = F9.find((o2) => o2[0]);
|
|
2863
|
+
if (e3) e3[1];
|
|
2864
|
+
}();
|
|
2865
|
+
const hasColors = __require("node:tty").WriteStream.prototype.hasColors(), base_format = (open, close) => {
|
|
2866
|
+
if (!hasColors) return (input) => input;
|
|
2867
|
+
const openCode = `\x1B[${open}m`, closeCode = `\x1B[${close}m`;
|
|
2868
|
+
return (input) => {
|
|
2869
|
+
const string = input + "";
|
|
2870
|
+
let index = string.indexOf(closeCode);
|
|
2871
|
+
if (-1 === index) return openCode + string + closeCode;
|
|
2872
|
+
let result2 = openCode, lastIndex = 0;
|
|
2873
|
+
for (; -1 !== index; ) result2 += string.slice(lastIndex, index) + openCode, lastIndex = index + closeCode.length, index = string.indexOf(closeCode, lastIndex);
|
|
2874
|
+
return result2 += string.slice(lastIndex) + closeCode, result2;
|
|
2875
|
+
};
|
|
2876
|
+
}, red = (base_format(0, 0), base_format(1, 22), base_format(2, 22), base_format(3, 23), base_format(4, 24), base_format(53, 55), base_format(7, 27), base_format(8, 28), base_format(9, 29), base_format(30, 39), base_format(31, 39)), green = base_format(32, 39), yellow = base_format(33, 39), blue = base_format(34, 39), cyan = (base_format(35, 39), base_format(36, 39)), gray = (base_format(37, 39), base_format(90, 39));
|
|
2877
|
+
base_format(40, 49), base_format(41, 49), base_format(42, 49), base_format(43, 49), base_format(44, 49), base_format(45, 49), base_format(46, 49), base_format(47, 49), base_format(100, 49), base_format(91, 39), base_format(92, 39), base_format(93, 39), base_format(94, 39), base_format(95, 39), base_format(96, 39), base_format(97, 39), base_format(101, 49), base_format(102, 49), base_format(103, 49), base_format(104, 49), base_format(105, 49), base_format(106, 49), base_format(107, 49);
|
|
2878
|
+
function isDir(filename) {
|
|
2879
|
+
if (filename instanceof URL || filename.startsWith("file://")) return false;
|
|
2880
|
+
try {
|
|
2881
|
+
return (0, external_node_fs_namespaceObject.lstatSync)(filename).isDirectory();
|
|
2882
|
+
} catch {
|
|
2883
|
+
return false;
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
4063
2886
|
function md5(content, len = 8) {
|
|
4064
|
-
return (0,
|
|
2887
|
+
return (0, external_node_crypto_namespaceObject.createHash)("md5").update(content).digest("hex").slice(0, len);
|
|
4065
2888
|
}
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
2889
|
+
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]") };
|
|
2890
|
+
function debug2(ctx, ...args) {
|
|
2891
|
+
if (!ctx.opts.debug) return;
|
|
2892
|
+
const cwd2 = process.cwd();
|
|
2893
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd2, "."))].join(" ")));
|
|
2894
|
+
}
|
|
2895
|
+
function jitiInteropDefault(ctx, mod) {
|
|
2896
|
+
return ctx.opts.interopDefault ? function(sourceModule, opts = {}) {
|
|
2897
|
+
if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
|
|
2898
|
+
var value2;
|
|
2899
|
+
const defaultValue = sourceModule.default;
|
|
2900
|
+
if (null == defaultValue) return sourceModule;
|
|
2901
|
+
const _defaultType = typeof defaultValue;
|
|
2902
|
+
if ("object" !== _defaultType && ("function" !== _defaultType || opts.preferNamespace)) return opts.preferNamespace ? sourceModule : defaultValue;
|
|
2903
|
+
for (const key2 in sourceModule) try {
|
|
2904
|
+
key2 in defaultValue || Object.defineProperty(defaultValue, key2, { enumerable: "default" !== key2, configurable: "default" !== key2, get: () => sourceModule[key2] });
|
|
2905
|
+
} catch {
|
|
4081
2906
|
}
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
2907
|
+
return defaultValue;
|
|
2908
|
+
}(mod) : mod;
|
|
2909
|
+
}
|
|
2910
|
+
function _booleanEnv(name, defaultValue) {
|
|
2911
|
+
const val = _jsonEnv(name, defaultValue);
|
|
2912
|
+
return Boolean(val);
|
|
2913
|
+
}
|
|
2914
|
+
function _jsonEnv(name, defaultValue) {
|
|
2915
|
+
const envValue = process.env[name];
|
|
2916
|
+
if (!(name in process.env)) return defaultValue;
|
|
2917
|
+
try {
|
|
2918
|
+
return JSON.parse(envValue);
|
|
2919
|
+
} catch {
|
|
2920
|
+
return defaultValue;
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
const JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
|
|
2924
|
+
function jitiResolve(ctx, id, options8) {
|
|
2925
|
+
let resolved, lastError;
|
|
2926
|
+
if (ctx.isNativeRe.test(id)) return id;
|
|
2927
|
+
ctx.alias && (id = function(path13, aliases2) {
|
|
2928
|
+
const _path = normalizeWindowsPath2(path13);
|
|
2929
|
+
aliases2 = normalizeAliases(aliases2);
|
|
2930
|
+
for (const [alias, to3] of Object.entries(aliases2)) {
|
|
2931
|
+
if (!_path.startsWith(alias)) continue;
|
|
2932
|
+
const _alias = hasTrailingSlash2(alias) ? alias.slice(0, -1) : alias;
|
|
2933
|
+
if (hasTrailingSlash2(_path[_alias.length])) return join12(to3, _path.slice(alias.length));
|
|
2934
|
+
}
|
|
2935
|
+
return _path;
|
|
2936
|
+
}(id, ctx.alias));
|
|
2937
|
+
let parentURL = options8?.parentURL || ctx.url;
|
|
2938
|
+
isDir(parentURL) && (parentURL = join12(parentURL, "_index.js"));
|
|
2939
|
+
const conditionSets = (options8?.async ? [options8?.conditions, ["node", "import"], ["node", "require"]] : [options8?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
2940
|
+
for (const conditions of conditionSets) {
|
|
2941
|
+
try {
|
|
2942
|
+
resolved = resolvePathSync2(id, { url: parentURL, conditions, extensions: ctx.opts.extensions });
|
|
2943
|
+
} catch (error) {
|
|
2944
|
+
lastError = error;
|
|
4087
2945
|
}
|
|
4088
|
-
|
|
4089
|
-
});
|
|
4090
|
-
};
|
|
4091
|
-
const _EnvDebug = destr2(process.env.JITI_DEBUG), _EnvCache = destr2(process.env.JITI_CACHE), _EnvESMResolve = destr2(process.env.JITI_ESM_RESOLVE), _EnvRequireCache = destr2(process.env.JITI_REQUIRE_CACHE), _EnvSourceMaps = destr2(process.env.JITI_SOURCE_MAPS), _EnvAlias = destr2(process.env.JITI_ALIAS), _EnvTransform = destr2(process.env.JITI_TRANSFORM_MODULES), _EnvNative = destr2(process.env.JITI_NATIVE_MODULES), _ExpBun = destr2(process.env.JITI_EXPERIMENTAL_BUN), isWindows = "win32" === (0, external_os_namespaceObject.platform)(), defaults4 = { debug: _EnvDebug, cache: void 0 === _EnvCache || !!_EnvCache, requireCache: void 0 === _EnvRequireCache || !!_EnvRequireCache, sourceMaps: void 0 !== _EnvSourceMaps && !!_EnvSourceMaps, interopDefault: false, esmResolve: _EnvESMResolve || false, cacheVersion: "7", legacy: (0, semver.lt)(process.version || "0.0.0", "14.0.0"), extensions: [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts", ".json"], alias: _EnvAlias, nativeModules: _EnvNative || [], transformModules: _EnvTransform || [], experimentalBun: void 0 === _ExpBun ? !!process.versions.bun : !!_ExpBun }, JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
|
|
4092
|
-
function createJITI(_filename, opts = {}, parentModule, parentCache) {
|
|
4093
|
-
(opts = Object.assign(Object.assign({}, defaults4), opts)).legacy && (opts.cacheVersion += "-legacy"), opts.transformOptions && (opts.cacheVersion += "-" + object_hash_default()(opts.transformOptions));
|
|
4094
|
-
const alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : null, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], transformModules = [...opts.transformModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m5) => escapeStringRegexp2(m5)).join("|")})/`), isTransformRe = new RegExp(`node_modules/(${transformModules.map((m5) => escapeStringRegexp2(m5)).join("|")})/`);
|
|
4095
|
-
function debug2(...args) {
|
|
4096
|
-
opts.debug && console.log("[jiti]", ...args);
|
|
2946
|
+
if (resolved) return resolved;
|
|
4097
2947
|
}
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
2948
|
+
try {
|
|
2949
|
+
return ctx.nativeRequire.resolve(id, options8);
|
|
2950
|
+
} catch (error) {
|
|
2951
|
+
lastError = error;
|
|
2952
|
+
}
|
|
2953
|
+
for (const ext of ctx.additionalExts) {
|
|
2954
|
+
if (resolved = tryNativeRequireResolve(ctx, id + ext, parentURL, options8) || tryNativeRequireResolve(ctx, id + "/index" + ext, parentURL, options8), resolved) return resolved;
|
|
2955
|
+
if ((TS_EXT_RE.test(ctx.filename) || TS_EXT_RE.test(ctx.parentModule?.filename || "")) && (resolved = tryNativeRequireResolve(ctx, id.replace(JS_EXT_RE, ".$1t$2"), parentURL, options8), resolved)) return resolved;
|
|
2956
|
+
}
|
|
2957
|
+
if (!options8?.try) throw lastError;
|
|
2958
|
+
}
|
|
2959
|
+
function tryNativeRequireResolve(ctx, id, parentURL, options8) {
|
|
2960
|
+
try {
|
|
2961
|
+
return ctx.nativeRequire.resolve(id, { ...options8, paths: [pathe_ff20891b_dirname(fileURLToPath5(parentURL)), ...options8?.paths || []] });
|
|
2962
|
+
} catch {
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
const external_node_perf_hooks_namespaceObject = __require("node:perf_hooks"), external_node_vm_namespaceObject = __require("node:vm");
|
|
2966
|
+
var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
|
|
2967
|
+
function jitiRequire(ctx, id, opts) {
|
|
2968
|
+
const cache4 = ctx.parentCache || {};
|
|
2969
|
+
if (id.startsWith("node:") ? id = id.slice(5) : id.startsWith("file:") && (id = (0, external_node_url_namespaceObject.fileURLToPath)(id)), external_node_module_namespaceObject.builtinModules.includes(id) || ".pnp.js" === id) return nativeImportOrRequire(ctx, id, opts.async);
|
|
2970
|
+
if (ctx.opts.experimentalBun && !ctx.opts.transformOptions) try {
|
|
2971
|
+
if (!(id = jitiResolve(ctx, id, opts)) && opts.try) return;
|
|
2972
|
+
if (debug2(ctx, "[bun]", "[native]", opts.async && ctx.nativeImport ? "[import]" : "[require]", id), opts.async && ctx.nativeImport) return ctx.nativeImport(id).then((m5) => (false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, m5)));
|
|
2973
|
+
{
|
|
2974
|
+
const _mod = ctx.nativeRequire(id);
|
|
2975
|
+
return false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, _mod);
|
|
4103
2976
|
}
|
|
4104
|
-
}
|
|
4105
|
-
|
|
2977
|
+
} catch (error) {
|
|
2978
|
+
debug2(ctx, `[bun] Using fallback for ${id} because of an error:`, error);
|
|
2979
|
+
}
|
|
2980
|
+
const filename = jitiResolve(ctx, id, opts);
|
|
2981
|
+
if (!filename && opts.try) return;
|
|
2982
|
+
const ext = extname5(filename);
|
|
2983
|
+
if (".json" === ext) {
|
|
2984
|
+
debug2(ctx, "[json]", filename);
|
|
2985
|
+
const jsonModule = ctx.nativeRequire(filename);
|
|
2986
|
+
return jsonModule && !("default" in jsonModule) && Object.defineProperty(jsonModule, "default", { value: jsonModule, enumerable: false }), jsonModule;
|
|
2987
|
+
}
|
|
2988
|
+
if (ext && !ctx.opts.extensions.includes(ext)) return debug2(ctx, "[native]", "[unknown]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
|
|
2989
|
+
if (ctx.isNativeRe.test(filename)) return debug2(ctx, "[native]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
|
|
2990
|
+
if (cache4[filename]) return jitiInteropDefault(ctx, cache4[filename]?.exports);
|
|
2991
|
+
if (ctx.opts.moduleCache && ctx.nativeRequire.cache[filename]) return jitiInteropDefault(ctx, ctx.nativeRequire.cache[filename]?.exports);
|
|
2992
|
+
const source2 = (0, external_node_fs_namespaceObject.readFileSync)(filename, "utf8");
|
|
2993
|
+
return eval_evalModule(ctx, source2, { id, filename, ext, cache: cache4, async: opts.async });
|
|
2994
|
+
}
|
|
2995
|
+
function nativeImportOrRequire(ctx, id, async) {
|
|
2996
|
+
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
2997
|
+
return a3 && isAbsolute3(id2) ? pathToFileURL6(id2) : id2;
|
|
2998
|
+
}(id)).then((m5) => jitiInteropDefault(ctx, m5)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
2999
|
+
}
|
|
3000
|
+
const CACHE_VERSION = "8";
|
|
3001
|
+
function getCache(ctx, topts, get3) {
|
|
3002
|
+
if (!ctx.opts.fsCache || !topts.filename) return get3();
|
|
3003
|
+
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3004
|
+
`, cacheName = `${basename2(pathe_ff20891b_dirname(topts.filename))}-${function(path13) {
|
|
3005
|
+
return path13.match(FILENAME_RE)?.[2];
|
|
3006
|
+
}(topts.filename)}` + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs"), cacheDir = ctx.opts.fsCache, cacheFilePath = join12(cacheDir, cacheName);
|
|
3007
|
+
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3008
|
+
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3009
|
+
if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
3010
|
+
}
|
|
3011
|
+
debug2(ctx, "[cache]", "[miss]", topts.filename);
|
|
3012
|
+
const result2 = get3();
|
|
3013
|
+
return result2.includes("__JITI_ERROR__") || ((0, external_node_fs_namespaceObject.writeFileSync)(cacheFilePath, result2 + sourceHash, "utf8"), debug2(ctx, "[cache]", "[store]", topts.filename, "~>", cacheFilePath)), result2;
|
|
3014
|
+
}
|
|
3015
|
+
function prepareCacheDir(ctx) {
|
|
3016
|
+
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3017
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3018
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join12(nmDir, ".cache/jiti");
|
|
3019
|
+
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
4106
3020
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
4107
3021
|
const _env = process.env.TMPDIR;
|
|
4108
|
-
delete process.env.TMPDIR, _tmpDir = (0,
|
|
3022
|
+
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
4109
3023
|
}
|
|
4110
|
-
return join12(_tmpDir, "
|
|
4111
|
-
}()), opts.
|
|
4112
|
-
if ((0,
|
|
3024
|
+
return join12(_tmpDir, "jiti");
|
|
3025
|
+
}(ctx)), ctx.opts.fsCache) try {
|
|
3026
|
+
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
4113
3027
|
try {
|
|
4114
|
-
return (0,
|
|
4115
|
-
} catch
|
|
3028
|
+
return (0, external_node_fs_namespaceObject.accessSync)(filename, external_node_fs_namespaceObject.constants.W_OK), true;
|
|
3029
|
+
} catch {
|
|
4116
3030
|
return false;
|
|
4117
3031
|
}
|
|
4118
|
-
}(opts.
|
|
3032
|
+
}(ctx.opts.fsCache)) throw new Error("directory is not writable!");
|
|
4119
3033
|
} catch (error) {
|
|
4120
|
-
debug2("Error creating cache directory at ", opts.
|
|
3034
|
+
debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
|
|
4121
3035
|
}
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
}
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
}
|
|
4137
|
-
return _path;
|
|
4138
|
-
}(id, alias)), opts.esmResolve) {
|
|
4139
|
-
const conditionSets = [["node", "require"], ["node", "import"]];
|
|
4140
|
-
for (const conditions of conditionSets) {
|
|
3036
|
+
}
|
|
3037
|
+
function transform4(ctx, topts) {
|
|
3038
|
+
let code = getCache(ctx, topts, () => {
|
|
3039
|
+
const res = ctx.opts.transform({ ...ctx.opts.transformOptions, babel: { ...ctx.opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}, ...ctx.opts.transformOptions?.babel }, interopDefault: ctx.opts.interopDefault, ...topts });
|
|
3040
|
+
return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
|
|
3041
|
+
});
|
|
3042
|
+
return code.startsWith("#!") && (code = "// " + code), code;
|
|
3043
|
+
}
|
|
3044
|
+
function eval_evalModule(ctx, source2, evalOptions = {}) {
|
|
3045
|
+
const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname5(filename), cache4 = evalOptions.cache || ctx.parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isESM = ".mjs" === ext || ".js" === ext && "module" === function(path13) {
|
|
3046
|
+
for (; path13 && "." !== path13 && "/" !== path13; ) {
|
|
3047
|
+
path13 = join12(path13, "..");
|
|
3048
|
+
try {
|
|
3049
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join12(path13, "package.json"), "utf8");
|
|
4141
3050
|
try {
|
|
4142
|
-
|
|
4143
|
-
} catch
|
|
4144
|
-
err = error;
|
|
3051
|
+
return JSON.parse(pkg);
|
|
3052
|
+
} catch {
|
|
4145
3053
|
}
|
|
4146
|
-
|
|
4147
|
-
}
|
|
4148
|
-
}
|
|
4149
|
-
try {
|
|
4150
|
-
return nativeRequire.resolve(id, options8);
|
|
4151
|
-
} catch (error) {
|
|
4152
|
-
err = error;
|
|
4153
|
-
}
|
|
4154
|
-
for (const ext of _additionalExts) {
|
|
4155
|
-
if (resolved = tryResolve(id + ext, options8) || tryResolve(id + "/index" + ext, options8), resolved) return resolved;
|
|
4156
|
-
if (TS_EXT_RE.test((null == parentModule ? void 0 : parentModule.filename) || "") && (resolved = tryResolve(id.replace(JS_EXT_RE, ".$1t$2"), options8), resolved)) return resolved;
|
|
4157
|
-
}
|
|
4158
|
-
throw err;
|
|
4159
|
-
};
|
|
4160
|
-
function transform3(topts) {
|
|
4161
|
-
let code = function(filename, source2, get3) {
|
|
4162
|
-
if (!opts.cache || !filename) return get3();
|
|
4163
|
-
const sourceHash = ` /* v${opts.cacheVersion}-${md5(source2, 16)} */`, filebase = basename2(pathe_ff20891b_dirname(filename)) + "-" + basename2(filename), cacheFile = join12(opts.cache, filebase + "." + md5(filename) + ".js");
|
|
4164
|
-
if ((0, external_fs_.existsSync)(cacheFile)) {
|
|
4165
|
-
const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
|
|
4166
|
-
if (cacheSource.endsWith(sourceHash)) return debug2("[cache hit]", filename, "~>", cacheFile), cacheSource;
|
|
4167
|
-
}
|
|
4168
|
-
debug2("[cache miss]", filename);
|
|
4169
|
-
const result2 = get3();
|
|
4170
|
-
return result2.includes("__JITI_ERROR__") || (0, external_fs_.writeFileSync)(cacheFile, result2 + sourceHash, "utf8"), result2;
|
|
4171
|
-
}(topts.filename, topts.source, () => {
|
|
4172
|
-
var _a4;
|
|
4173
|
-
const res = opts.transform(Object.assign(Object.assign(Object.assign({ legacy: opts.legacy }, opts.transformOptions), { babel: Object.assign(Object.assign({}, opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}), null === (_a4 = opts.transformOptions) || void 0 === _a4 ? void 0 : _a4.babel) }), topts));
|
|
4174
|
-
return res.error && opts.debug && debug2(res.error), res.code;
|
|
4175
|
-
});
|
|
4176
|
-
return code.startsWith("#!") && (code = "// " + code), code;
|
|
4177
|
-
}
|
|
4178
|
-
function _interopDefault(mod) {
|
|
4179
|
-
return opts.interopDefault ? function(sourceModule, opts2 = {}) {
|
|
4180
|
-
if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
|
|
4181
|
-
var value2;
|
|
4182
|
-
const defaultValue = sourceModule.default;
|
|
4183
|
-
if (null == defaultValue) return sourceModule;
|
|
4184
|
-
const _defaultType = typeof defaultValue;
|
|
4185
|
-
if ("object" !== _defaultType && ("function" !== _defaultType || opts2.preferNamespace)) return opts2.preferNamespace ? sourceModule : defaultValue;
|
|
4186
|
-
for (const key2 in sourceModule) try {
|
|
4187
|
-
key2 in defaultValue || Object.defineProperty(defaultValue, key2, { enumerable: "default" !== key2, configurable: "default" !== key2, get: () => sourceModule[key2] });
|
|
3054
|
+
break;
|
|
4188
3055
|
} catch {
|
|
4189
3056
|
}
|
|
4190
|
-
return defaultValue;
|
|
4191
|
-
}(mod) : mod;
|
|
4192
|
-
}
|
|
4193
|
-
function jiti(id, _importOptions) {
|
|
4194
|
-
var _a4, _b;
|
|
4195
|
-
const cache4 = parentCache || {};
|
|
4196
|
-
if (id.startsWith("node:") ? id = id.slice(5) : id.startsWith("file:") && (id = (0, external_url_namespaceObject.fileURLToPath)(id)), external_module_.builtinModules.includes(id) || ".pnp.js" === id) return nativeRequire(id);
|
|
4197
|
-
if (opts.experimentalBun && !opts.transformOptions) try {
|
|
4198
|
-
debug2(`[bun] [native] ${id}`);
|
|
4199
|
-
const _mod = nativeRequire(id);
|
|
4200
|
-
return false === opts.requireCache && delete nativeRequire.cache[id], _interopDefault(_mod);
|
|
4201
|
-
} catch (error) {
|
|
4202
|
-
debug2(`[bun] Using fallback for ${id} because of an error:`, error);
|
|
4203
3057
|
}
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
if (opts.requireCache && nativeRequire.cache[filename]) return _interopDefault(null === (_b = nativeRequire.cache[filename]) || void 0 === _b ? void 0 : _b.exports);
|
|
4214
|
-
return evalModule((0, external_fs_.readFileSync)(filename, "utf8"), { id, filename, ext, cache: cache4 });
|
|
3058
|
+
}(filename)?.type, needsTranspile = !(".cjs" === ext) && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source2)), start2 = external_node_perf_hooks_namespaceObject.performance.now();
|
|
3059
|
+
if (needsTranspile) {
|
|
3060
|
+
source2 = transform4(ctx, { filename, source: source2, ts: isTypescript, async: evalOptions.async ?? false });
|
|
3061
|
+
const time = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start2)) / 1e3;
|
|
3062
|
+
debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time}ms)`);
|
|
3063
|
+
} else try {
|
|
3064
|
+
return debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, evalOptions.async);
|
|
3065
|
+
} catch (error) {
|
|
3066
|
+
debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source2 = transform4(ctx, { filename, source: source2, ts: isTypescript, async: evalOptions.async ?? false });
|
|
4215
3067
|
}
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
debug2("[transpile]" + (isNativeModule ? " [esm]" : ""), filename, `(${Math.round(1e3 * (external_perf_hooks_namespaceObject.performance.now() - start2)) / 1e3}ms)`);
|
|
4236
|
-
} else try {
|
|
4237
|
-
return debug2("[native]", filename), _interopDefault(nativeRequire(id));
|
|
4238
|
-
} catch (error) {
|
|
4239
|
-
debug2("Native require error:", error), debug2("[fallback]", filename), source2 = transform3({ filename, source: source2, ts: isTypescript });
|
|
4240
|
-
}
|
|
4241
|
-
const mod = new external_module_.Module(filename);
|
|
4242
|
-
let compiled;
|
|
4243
|
-
mod.filename = filename, parentModule && (mod.parent = parentModule, Array.isArray(parentModule.children) && !parentModule.children.includes(mod) && parentModule.children.push(mod)), mod.require = createJITI(filename, opts, mod, cache4), mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_module_.Module._nodeModulePaths(mod.path), cache4[filename] = mod, opts.requireCache && (nativeRequire.cache[filename] = mod);
|
|
4244
|
-
try {
|
|
4245
|
-
compiled = external_vm_default().runInThisContext(external_module_.Module.wrap(source2), { filename, lineOffset: 0, displayErrors: false });
|
|
4246
|
-
} catch (error) {
|
|
4247
|
-
opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
|
|
4248
|
-
}
|
|
4249
|
-
try {
|
|
4250
|
-
compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename));
|
|
4251
|
-
} catch (error) {
|
|
4252
|
-
opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
|
|
4253
|
-
}
|
|
3068
|
+
const mod = new external_node_module_namespaceObject.Module(filename);
|
|
3069
|
+
mod.filename = filename, ctx.parentModule && (mod.parent = ctx.parentModule, Array.isArray(ctx.parentModule.children) && !ctx.parentModule.children.includes(mod) && ctx.parentModule.children.push(mod));
|
|
3070
|
+
const _jiti = createJiti2(filename, ctx.opts, { parentModule: mod, parentCache: cache4, nativeImport: ctx.nativeImport, onError: ctx.onError, createRequire: ctx.createRequire }, true);
|
|
3071
|
+
let compiled, evalResult;
|
|
3072
|
+
mod.require = _jiti, mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_node_module_namespaceObject.Module._nodeModulePaths(mod.path), cache4[filename] = mod, ctx.opts.moduleCache && (ctx.nativeRequire.cache[filename] = mod);
|
|
3073
|
+
try {
|
|
3074
|
+
compiled = external_node_vm_default().runInThisContext(function(source3, opts) {
|
|
3075
|
+
return `(${opts?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport) { ${source3}
|
|
3076
|
+
});`;
|
|
3077
|
+
}(source2, { async: evalOptions.async }), { filename, lineOffset: 0, displayErrors: false });
|
|
3078
|
+
} catch (error) {
|
|
3079
|
+
ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
|
|
3080
|
+
}
|
|
3081
|
+
try {
|
|
3082
|
+
evalResult = compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename), _jiti.import);
|
|
3083
|
+
} catch (error) {
|
|
3084
|
+
ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
|
|
3085
|
+
}
|
|
3086
|
+
function next() {
|
|
4254
3087
|
if (mod.exports && mod.exports.__JITI_ERROR__) {
|
|
4255
3088
|
const { filename: filename2, line: line3, column: column2, code, message } = mod.exports.__JITI_ERROR__, err = new Error(`${code}: ${message}
|
|
4256
3089
|
${`${filename2}:${line3}:${column2}`}`);
|
|
4257
|
-
Error.captureStackTrace(err,
|
|
3090
|
+
Error.captureStackTrace(err, jitiRequire), ctx.onError(err);
|
|
4258
3091
|
}
|
|
4259
3092
|
mod.loaded = true;
|
|
4260
|
-
return
|
|
4261
|
-
}
|
|
4262
|
-
return
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
3093
|
+
return jitiInteropDefault(ctx, mod.exports);
|
|
3094
|
+
}
|
|
3095
|
+
return evalOptions.async ? Promise.resolve(evalResult).then(next) : next();
|
|
3096
|
+
}
|
|
3097
|
+
const isWindows = "win32" === (0, external_node_os_namespaceObject.platform)();
|
|
3098
|
+
function createJiti2(filename, userOptions = {}, parentContext, isNested = false) {
|
|
3099
|
+
const opts = isNested ? userOptions : function(userOptions2) {
|
|
3100
|
+
const jitiDefaults = { fsCache: _booleanEnv("JITI_FS_CACHE", _booleanEnv("JITI_CACHE", true)), moduleCache: _booleanEnv("JITI_MODULE_CACHE", _booleanEnv("JITI_REQUIRE_CACHE", true)), debug: _booleanEnv("JITI_DEBUG", false), sourceMaps: _booleanEnv("JITI_SOURCE_MAPS", false), interopDefault: _booleanEnv("JITI_INTEROP_DEFAULT", false), extensions: _jsonEnv("JITI_EXTENSIONS", [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts"]), alias: _jsonEnv("JITI_ALIAS", {}), nativeModules: _jsonEnv("JITI_NATIVE_MODULES", []), transformModules: _jsonEnv("JITI_TRANSFORM_MODULES", []), experimentalBun: _jsonEnv("JITI_EXPERIMENTAL_BUN", !!process.versions.bun) }, deprecatOverrides = {};
|
|
3101
|
+
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3102
|
+
}(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((m5) => escapeStringRegexp2(m5)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m5) => escapeStringRegexp2(m5)).join("|")})/`);
|
|
3103
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join12(filename, "_index.js"));
|
|
3104
|
+
const url2 = (0, external_node_url_namespaceObject.pathToFileURL)(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url: url2, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3105
|
+
isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3106
|
+
const jiti = Object.assign(function(id) {
|
|
3107
|
+
return jitiRequire(ctx, id, { async: false });
|
|
3108
|
+
}, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, resolve: Object.assign(function(path13) {
|
|
3109
|
+
return jitiResolve(ctx, path13, { async: false });
|
|
3110
|
+
}, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform4(ctx, opts2), evalModule: (source2, options8) => eval_evalModule(ctx, source2, options8), import: async (id, opts2) => await jitiRequire(ctx, id, { ...opts2, async: true }), esmResolve: (id, opts2) => jitiResolve(ctx, id, { ...opts2, async: true }) });
|
|
3111
|
+
return jiti;
|
|
4267
3112
|
}
|
|
4268
3113
|
})(), module.exports = __webpack_exports__.default;
|
|
4269
3114
|
})();
|
|
4270
3115
|
}
|
|
4271
3116
|
});
|
|
4272
3117
|
|
|
4273
|
-
// node_modules/.pnpm/jiti@
|
|
3118
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs
|
|
4274
3119
|
var require_babel = __commonJS({
|
|
4275
|
-
"node_modules/.pnpm/jiti@
|
|
3120
|
+
"node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs"(exports, module) {
|
|
4276
3121
|
(() => {
|
|
4277
3122
|
var __webpack_modules__ = { "./node_modules/.pnpm/@ampproject+remapping@2.3.0/node_modules/@ampproject/remapping/dist/remapping.umd.js": function(module2, __unused_webpack_exports, __webpack_require__2) {
|
|
4278
3123
|
module2.exports = function(traceMapping, genMapping) {
|
|
@@ -4358,11 +3203,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4358
3203
|
webpackEmptyContext.keys = () => [], webpackEmptyContext.resolve = webpackEmptyContext, webpackEmptyContext.id = "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/files sync recursive", module2.exports = webpackEmptyContext;
|
|
4359
3204
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-class-properties/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4360
3205
|
"use strict";
|
|
4361
|
-
|
|
3206
|
+
exports2.A = void 0;
|
|
4362
3207
|
var _default2 = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-class-properties", manipulateOptions(opts, parserOpts) {
|
|
4363
3208
|
parserOpts.plugins.push("classProperties", "classPrivateProperties", "classPrivateMethods");
|
|
4364
3209
|
} }));
|
|
4365
|
-
exports2.
|
|
3210
|
+
exports2.A = _default2;
|
|
4366
3211
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4367
3212
|
"use strict";
|
|
4368
3213
|
exports2.A = void 0;
|
|
@@ -4370,20 +3215,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4370
3215
|
parserOpts.plugins.push("exportNamespaceFrom");
|
|
4371
3216
|
} }));
|
|
4372
3217
|
exports2.A = _default2;
|
|
4373
|
-
}, "./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4374
|
-
"use strict";
|
|
4375
|
-
exports2.A = void 0;
|
|
4376
|
-
var _default2 = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-nullish-coalescing-operator", manipulateOptions(opts, parserOpts) {
|
|
4377
|
-
parserOpts.plugins.push("nullishCoalescingOperator");
|
|
4378
|
-
} }));
|
|
4379
|
-
exports2.A = _default2;
|
|
4380
|
-
}, "./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
4381
|
-
"use strict";
|
|
4382
|
-
exports2.A = void 0;
|
|
4383
|
-
var _default2 = (0, __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api) => (api.assertVersion(7), { name: "syntax-optional-chaining", manipulateOptions(opts, parserOpts) {
|
|
4384
|
-
parserOpts.plugins.push("optionalChaining");
|
|
4385
|
-
} }));
|
|
4386
|
-
exports2.A = _default2;
|
|
4387
3218
|
}, "./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.5/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js": function(__unused_webpack_module, exports2, __webpack_require__2) {
|
|
4388
3219
|
!function(exports3, setArray, sourcemapCodec, traceMapping) {
|
|
4389
3220
|
"use strict";
|
|
@@ -4963,55 +3794,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4963
3794
|
}
|
|
4964
3795
|
exports3.AnyMap = AnyMap, exports3.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND, exports3.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND, exports3.TraceMap = TraceMap, exports3.allGeneratedPositionsFor = allGeneratedPositionsFor, exports3.decodedMap = decodedMap, exports3.decodedMappings = decodedMappings, exports3.eachMapping = eachMapping, exports3.encodedMap = encodedMap, exports3.encodedMappings = encodedMappings, exports3.generatedPositionFor = generatedPositionFor, exports3.isIgnored = isIgnored2, exports3.originalPositionFor = originalPositionFor, exports3.presortedDecodedMap = presortedDecodedMap, exports3.sourceContentFor = sourceContentFor, exports3.traceSegment = traceSegment;
|
|
4965
3796
|
}(exports2, __webpack_require__2("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"), __webpack_require__2("./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"));
|
|
4966
|
-
}, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js": (module2, exports2, __webpack_require__2) => {
|
|
4967
|
-
"use strict";
|
|
4968
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(api) {
|
|
4969
|
-
var transformImport = (0, _utils.createDynamicImportTransform)(api);
|
|
4970
|
-
return { manipulateOptions: function(opts, parserOpts) {
|
|
4971
|
-
parserOpts.plugins.push("dynamicImport");
|
|
4972
|
-
}, visitor: { Import: function(path13) {
|
|
4973
|
-
transformImport(this, path13);
|
|
4974
|
-
} } };
|
|
4975
|
-
};
|
|
4976
|
-
var _utils = __webpack_require__2("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js");
|
|
4977
|
-
module2.exports = exports2.default;
|
|
4978
|
-
}, "./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js": (__unused_webpack_module, exports2) => {
|
|
4979
|
-
"use strict";
|
|
4980
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4981
|
-
var _slicedToArray = function(arr, i4) {
|
|
4982
|
-
if (Array.isArray(arr)) return arr;
|
|
4983
|
-
if (Symbol.iterator in Object(arr)) return function(arr2, i5) {
|
|
4984
|
-
var _arr = [], _n7 = true, _d = false, _e13 = void 0;
|
|
4985
|
-
try {
|
|
4986
|
-
for (var _s7, _i7 = arr2[Symbol.iterator](); !(_n7 = (_s7 = _i7.next()).done) && (_arr.push(_s7.value), !i5 || _arr.length !== i5); _n7 = true) ;
|
|
4987
|
-
} catch (err) {
|
|
4988
|
-
_d = true, _e13 = err;
|
|
4989
|
-
} finally {
|
|
4990
|
-
try {
|
|
4991
|
-
!_n7 && _i7.return && _i7.return();
|
|
4992
|
-
} finally {
|
|
4993
|
-
if (_d) throw _e13;
|
|
4994
|
-
}
|
|
4995
|
-
}
|
|
4996
|
-
return _arr;
|
|
4997
|
-
}(arr, i4);
|
|
4998
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
4999
|
-
};
|
|
5000
|
-
function getImportSource(t14, callNode) {
|
|
5001
|
-
var importArguments = callNode.arguments, importPath = _slicedToArray(importArguments, 1)[0];
|
|
5002
|
-
return t14.isStringLiteral(importPath) || t14.isTemplateLiteral(importPath) ? (t14.removeComments(importPath), importPath) : t14.templateLiteral([t14.templateElement({ raw: "", cooked: "" }), t14.templateElement({ raw: "", cooked: "" }, true)], importArguments);
|
|
5003
|
-
}
|
|
5004
|
-
exports2.getImportSource = getImportSource, exports2.createDynamicImportTransform = function(_ref) {
|
|
5005
|
-
var template2 = _ref.template, t14 = _ref.types, builders2 = { static: { interop: template2("Promise.resolve().then(() => INTEROP(require(SOURCE)))"), noInterop: template2("Promise.resolve().then(() => require(SOURCE))") }, dynamic: { interop: template2("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"), noInterop: template2("Promise.resolve(SOURCE).then(s => require(s))") } }, visited = "function" == typeof WeakSet && /* @__PURE__ */ new WeakSet();
|
|
5006
|
-
return function(context, path13) {
|
|
5007
|
-
if (visited) {
|
|
5008
|
-
if (visited.has(path13)) return;
|
|
5009
|
-
visited.add(path13);
|
|
5010
|
-
}
|
|
5011
|
-
var node, SOURCE = getImportSource(t14, path13.parent), builder = (node = SOURCE, t14.isStringLiteral(node) || t14.isTemplateLiteral(node) && 0 === node.expressions.length ? builders2.static : builders2.dynamic), newImport = context.opts.noInterop ? builder.noInterop({ SOURCE }) : builder.interop({ SOURCE, INTEROP: context.addHelper("interopRequireWildcard") });
|
|
5012
|
-
path13.parentPath.replaceWith(newImport);
|
|
5013
|
-
};
|
|
5014
|
-
};
|
|
5015
3797
|
}, "./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
5016
3798
|
"use strict";
|
|
5017
3799
|
var _path = __webpack_require__2("path");
|
|
@@ -5307,14 +4089,14 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5307
4089
|
}
|
|
5308
4090
|
}, "./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/plugin.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
5309
4091
|
"use strict";
|
|
5310
|
-
|
|
4092
|
+
exports2.A = void 0;
|
|
5311
4093
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _parameterVisitor = __webpack_require__2("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/parameter/parameterVisitor.js"), _metadataVisitor = __webpack_require__2("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/metadata/metadataVisitor.js"), _default2 = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { visitor: { Program(programPath) {
|
|
5312
4094
|
programPath.traverse({ ClassDeclaration(path13) {
|
|
5313
4095
|
for (const field of path13.get("body").get("body")) "ClassMethod" !== field.type && "ClassProperty" !== field.type || ((0, _parameterVisitor.parameterVisitor)(path13, field), (0, _metadataVisitor.metadataVisitor)(path13, field));
|
|
5314
4096
|
path13.parentPath.scope.crawl();
|
|
5315
4097
|
} });
|
|
5316
4098
|
} } }));
|
|
5317
|
-
exports2.
|
|
4099
|
+
exports2.A = _default2;
|
|
5318
4100
|
}, "./node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": (__unused_webpack_module, exports2) => {
|
|
5319
4101
|
"use strict";
|
|
5320
4102
|
var decodeBase64;
|
|
@@ -6380,18 +5162,6 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
6380
5162
|
FastObject(), module2.exports = function(o2) {
|
|
6381
5163
|
return FastObject(o2);
|
|
6382
5164
|
};
|
|
6383
|
-
}, "./stubs/babel-codeframe.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
|
|
6384
|
-
"use strict";
|
|
6385
|
-
function codeFrameColumns() {
|
|
6386
|
-
return "";
|
|
6387
|
-
}
|
|
6388
|
-
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
|
|
6389
|
-
}, "./stubs/helper-compilation-targets.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
|
|
6390
|
-
"use strict";
|
|
6391
|
-
function getTargets() {
|
|
6392
|
-
return {};
|
|
6393
|
-
}
|
|
6394
|
-
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
|
|
6395
5165
|
}, assert: (module2) => {
|
|
6396
5166
|
"use strict";
|
|
6397
5167
|
module2.exports = __require("assert");
|
|
@@ -7759,7 +6529,7 @@ ${yield* Formatter.optionsAndDescriptors(config2.content)}`;
|
|
|
7759
6529
|
}, data2;
|
|
7760
6530
|
}
|
|
7761
6531
|
function _helperCompilationTargets() {
|
|
7762
|
-
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.
|
|
6532
|
+
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
|
|
7763
6533
|
return _helperCompilationTargets = function() {
|
|
7764
6534
|
return data2;
|
|
7765
6535
|
}, data2;
|
|
@@ -7797,7 +6567,7 @@ ${yield* Formatter.optionsAndDescriptors(config2.content)}`;
|
|
|
7797
6567
|
}, "./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/validation/option-assertions.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
7798
6568
|
"use strict";
|
|
7799
6569
|
function _helperCompilationTargets() {
|
|
7800
|
-
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.
|
|
6570
|
+
const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
|
|
7801
6571
|
return _helperCompilationTargets = function() {
|
|
7802
6572
|
return data2;
|
|
7803
6573
|
}, data2;
|
|
@@ -8363,7 +7133,7 @@ To be a valid ${type2}, its name and options should be wrapped in a pair of brac
|
|
|
8363
7133
|
}, data2;
|
|
8364
7134
|
}
|
|
8365
7135
|
function _codeFrame() {
|
|
8366
|
-
const data2 = __webpack_require__2("./stubs/babel-codeframe.
|
|
7136
|
+
const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
8367
7137
|
return _codeFrame = function() {
|
|
8368
7138
|
return data2;
|
|
8369
7139
|
}, data2;
|
|
@@ -8636,7 +7406,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8636
7406
|
}, data2;
|
|
8637
7407
|
}
|
|
8638
7408
|
function _codeFrame() {
|
|
8639
|
-
const data2 = __webpack_require__2("./stubs/babel-codeframe.
|
|
7409
|
+
const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
8640
7410
|
return _codeFrame = function() {
|
|
8641
7411
|
return data2;
|
|
8642
7412
|
}, data2;
|
|
@@ -20557,9 +19327,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20557
19327
|
}, exports2.tokTypes = tokTypes;
|
|
20558
19328
|
}, "./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20559
19329
|
"use strict";
|
|
20560
|
-
|
|
19330
|
+
exports2.A = void 0;
|
|
20561
19331
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _pluginSyntaxDecorators = __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-decorators/lib/index.js"), _helperCreateClassFeaturesPlugin = __webpack_require__2("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"), _transformerLegacy = __webpack_require__2("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js");
|
|
20562
|
-
exports2.
|
|
19332
|
+
exports2.A = (0, _helperPluginUtils.declare)((api, options8) => {
|
|
20563
19333
|
api.assertVersion(7);
|
|
20564
19334
|
var { legacy } = options8;
|
|
20565
19335
|
const { version: version2 } = options8;
|
|
@@ -20676,9 +19446,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20676
19446
|
});
|
|
20677
19447
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20678
19448
|
"use strict";
|
|
20679
|
-
|
|
19449
|
+
exports2.A = void 0;
|
|
20680
19450
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js");
|
|
20681
|
-
exports2.
|
|
19451
|
+
exports2.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
|
|
20682
19452
|
parserOpts.plugins.push("importAssertions");
|
|
20683
19453
|
} }));
|
|
20684
19454
|
}, "./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-jsx/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
@@ -20712,9 +19482,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20712
19482
|
});
|
|
20713
19483
|
}, "./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20714
19484
|
"use strict";
|
|
20715
|
-
|
|
19485
|
+
exports2.A = void 0;
|
|
20716
19486
|
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
20717
|
-
exports2.
|
|
19487
|
+
exports2.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "transform-export-namespace-from", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js").A, visitor: { ExportNamedDeclaration(path13) {
|
|
20718
19488
|
var _exported$name;
|
|
20719
19489
|
const { node, scope } = path13, { specifiers } = node, index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;
|
|
20720
19490
|
if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return;
|
|
@@ -20854,118 +19624,6 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
20854
19624
|
}, wrapReference(ref2, payload) {
|
|
20855
19625
|
if ("lazy/function" === payload) return _core.types.callExpression(ref2, []);
|
|
20856
19626
|
} });
|
|
20857
|
-
}, "./node_modules/.pnpm/@babel+plugin-transform-nullish-coalescing-operator@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20858
|
-
"use strict";
|
|
20859
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
|
|
20860
|
-
var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
20861
|
-
exports2.default = (0, _helperPluginUtils.declare)((api, { loose = false }) => {
|
|
20862
|
-
var _api$assumption;
|
|
20863
|
-
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
|
|
20864
|
-
const noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose;
|
|
20865
|
-
return { name: "transform-nullish-coalescing-operator", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js").A, visitor: { LogicalExpression(path13) {
|
|
20866
|
-
const { node, scope } = path13;
|
|
20867
|
-
if ("??" !== node.operator) return;
|
|
20868
|
-
let ref2, assignment;
|
|
20869
|
-
if (scope.isStatic(node.left)) ref2 = node.left, assignment = _core.types.cloneNode(node.left);
|
|
20870
|
-
else {
|
|
20871
|
-
if (scope.path.isPattern()) return void path13.replaceWith(_core.template.statement.ast`(() => ${path13.node})()`);
|
|
20872
|
-
ref2 = scope.generateUidIdentifierBasedOnNode(node.left), scope.push({ id: _core.types.cloneNode(ref2) }), assignment = _core.types.assignmentExpression("=", ref2, node.left);
|
|
20873
|
-
}
|
|
20874
|
-
path13.replaceWith(_core.types.conditionalExpression(noDocumentAll ? _core.types.binaryExpression("!=", assignment, _core.types.nullLiteral()) : _core.types.logicalExpression("&&", _core.types.binaryExpression("!==", assignment, _core.types.nullLiteral()), _core.types.binaryExpression("!==", _core.types.cloneNode(ref2), scope.buildUndefinedNode())), _core.types.cloneNode(ref2), node.right));
|
|
20875
|
-
} } };
|
|
20876
|
-
});
|
|
20877
|
-
}, "./node_modules/.pnpm/@babel+plugin-transform-optional-chaining@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20878
|
-
"use strict";
|
|
20879
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20880
|
-
var helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), core2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), helperSkipTransparentExpressionWrappers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.24.7/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");
|
|
20881
|
-
function willPathCastToBoolean(path13) {
|
|
20882
|
-
const maybeWrapped = findOutermostTransparentParent(path13), { node, parentPath } = maybeWrapped;
|
|
20883
|
-
if (parentPath.isLogicalExpression()) {
|
|
20884
|
-
const { operator, right: right2 } = parentPath.node;
|
|
20885
|
-
if ("&&" === operator || "||" === operator || "??" === operator && node === right2) return willPathCastToBoolean(parentPath);
|
|
20886
|
-
}
|
|
20887
|
-
if (parentPath.isSequenceExpression()) {
|
|
20888
|
-
const { expressions } = parentPath.node;
|
|
20889
|
-
return expressions[expressions.length - 1] !== node || willPathCastToBoolean(parentPath);
|
|
20890
|
-
}
|
|
20891
|
-
return parentPath.isConditional({ test: node }) || parentPath.isUnaryExpression({ operator: "!" }) || parentPath.isLoop({ test: node });
|
|
20892
|
-
}
|
|
20893
|
-
function findOutermostTransparentParent(path13) {
|
|
20894
|
-
let maybeWrapped = path13;
|
|
20895
|
-
return path13.findParent((p4) => {
|
|
20896
|
-
if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p4.node)) return true;
|
|
20897
|
-
maybeWrapped = p4;
|
|
20898
|
-
}), maybeWrapped;
|
|
20899
|
-
}
|
|
20900
|
-
const last2 = (arr) => arr[arr.length - 1];
|
|
20901
|
-
function isSimpleMemberExpression(expression) {
|
|
20902
|
-
return expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression), core2.types.isIdentifier(expression) || core2.types.isSuper(expression) || core2.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object);
|
|
20903
|
-
}
|
|
20904
|
-
const NULLISH_CHECK = core2.template.expression("%%check%% === null || %%ref%% === void 0"), NULLISH_CHECK_NO_DDA = core2.template.expression("%%check%% == null"), NULLISH_CHECK_NEG = core2.template.expression("%%check%% !== null && %%ref%% !== void 0"), NULLISH_CHECK_NO_DDA_NEG = core2.template.expression("%%check%% != null");
|
|
20905
|
-
function transformOptionalChain(path13, { pureGetters, noDocumentAll }, replacementPath, ifNullish, wrapLast) {
|
|
20906
|
-
const { scope } = path13;
|
|
20907
|
-
if (scope.path.isPattern() && function(path14) {
|
|
20908
|
-
let optionalPath2 = path14;
|
|
20909
|
-
const { scope: scope2 } = path14;
|
|
20910
|
-
for (; optionalPath2.isOptionalMemberExpression() || optionalPath2.isOptionalCallExpression(); ) {
|
|
20911
|
-
const { node } = optionalPath2, childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath2.isOptionalMemberExpression() ? optionalPath2.get("object") : optionalPath2.get("callee"));
|
|
20912
|
-
if (node.optional) return !scope2.isStatic(childPath.node);
|
|
20913
|
-
optionalPath2 = childPath;
|
|
20914
|
-
}
|
|
20915
|
-
}(path13)) return void replacementPath.replaceWith(core2.template.expression.ast`(() => ${replacementPath.node})()`);
|
|
20916
|
-
const optionals = [];
|
|
20917
|
-
let optionalPath = path13;
|
|
20918
|
-
for (; optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression(); ) {
|
|
20919
|
-
const { node } = optionalPath;
|
|
20920
|
-
node.optional && optionals.push(node), optionalPath.isOptionalMemberExpression() ? (optionalPath.node.type = "MemberExpression", optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object"))) : optionalPath.isOptionalCallExpression() && (optionalPath.node.type = "CallExpression", optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")));
|
|
20921
|
-
}
|
|
20922
|
-
if (0 === optionals.length) return;
|
|
20923
|
-
const checks = [];
|
|
20924
|
-
let tmpVar;
|
|
20925
|
-
for (let i4 = optionals.length - 1; i4 >= 0; i4--) {
|
|
20926
|
-
const node = optionals[i4], isCall = core2.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object, chain2 = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);
|
|
20927
|
-
let ref2, check3;
|
|
20928
|
-
if (isCall && core2.types.isIdentifier(chain2, { name: "eval" }) ? (check3 = ref2 = chain2, node.callee = core2.types.sequenceExpression([core2.types.numericLiteral(0), ref2])) : pureGetters && isCall && isSimpleMemberExpression(chain2) ? check3 = ref2 = node.callee : scope.isStatic(chain2) ? check3 = ref2 = chainWithTypes : (tmpVar && !isCall || (tmpVar = scope.generateUidIdentifierBasedOnNode(chain2), scope.push({ id: core2.types.cloneNode(tmpVar) })), ref2 = tmpVar, check3 = core2.types.assignmentExpression("=", core2.types.cloneNode(tmpVar), chainWithTypes), isCall ? node.callee = ref2 : node.object = ref2), isCall && core2.types.isMemberExpression(chain2)) if (pureGetters && isSimpleMemberExpression(chain2)) node.callee = chainWithTypes;
|
|
20929
|
-
else {
|
|
20930
|
-
const { object: object2 } = chain2;
|
|
20931
|
-
let context;
|
|
20932
|
-
if (core2.types.isSuper(object2)) context = core2.types.thisExpression();
|
|
20933
|
-
else {
|
|
20934
|
-
const memoized = scope.maybeGenerateMemoised(object2);
|
|
20935
|
-
memoized ? (context = memoized, chain2.object = core2.types.assignmentExpression("=", memoized, object2)) : context = object2;
|
|
20936
|
-
}
|
|
20937
|
-
node.arguments.unshift(core2.types.cloneNode(context)), node.callee = core2.types.memberExpression(node.callee, core2.types.identifier("call"));
|
|
20938
|
-
}
|
|
20939
|
-
const data2 = { check: core2.types.cloneNode(check3), ref: core2.types.cloneNode(ref2) };
|
|
20940
|
-
Object.defineProperty(data2, "ref", { enumerable: false }), checks.push(data2);
|
|
20941
|
-
}
|
|
20942
|
-
let result2 = replacementPath.node;
|
|
20943
|
-
wrapLast && (result2 = wrapLast(result2));
|
|
20944
|
-
const ifNullishBoolean = core2.types.isBooleanLiteral(ifNullish), ifNullishFalse = ifNullishBoolean && false === ifNullish.value, ifNullishVoid = !ifNullishBoolean && core2.types.isUnaryExpression(ifNullish, { operator: "void" }), isEvaluationValueIgnored = core2.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core2.types.isSequenceExpression(replacementPath.parent) && last2(replacementPath.parent.expressions) !== replacementPath.node, tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK, logicalOp = ifNullishFalse ? "&&" : "||", check2 = checks.map(tpl).reduce((expr, check3) => core2.types.logicalExpression(logicalOp, expr, check3));
|
|
20945
|
-
replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core2.types.logicalExpression(logicalOp, check2, result2) : core2.types.conditionalExpression(check2, ifNullish, result2));
|
|
20946
|
-
}
|
|
20947
|
-
function transform3(path13, assumptions) {
|
|
20948
|
-
const { scope } = path13, maybeWrapped = findOutermostTransparentParent(path13), { parentPath } = maybeWrapped;
|
|
20949
|
-
if (parentPath.isUnaryExpression({ operator: "delete" })) transformOptionalChain(path13, assumptions, parentPath, core2.types.booleanLiteral(true));
|
|
20950
|
-
else {
|
|
20951
|
-
let wrapLast;
|
|
20952
|
-
parentPath.isCallExpression({ callee: maybeWrapped.node }) && path13.isOptionalMemberExpression() && (wrapLast = (replacement) => {
|
|
20953
|
-
var _baseRef;
|
|
20954
|
-
const object2 = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);
|
|
20955
|
-
let baseRef;
|
|
20956
|
-
return assumptions.pureGetters && isSimpleMemberExpression(object2) || (baseRef = scope.maybeGenerateMemoised(object2), baseRef && (replacement.object = core2.types.assignmentExpression("=", baseRef, object2))), core2.types.callExpression(core2.types.memberExpression(replacement, core2.types.identifier("bind")), [core2.types.cloneNode(null != (_baseRef = baseRef) ? _baseRef : object2)]);
|
|
20957
|
-
}), transformOptionalChain(path13, assumptions, path13, willPathCastToBoolean(maybeWrapped) ? core2.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast);
|
|
20958
|
-
}
|
|
20959
|
-
}
|
|
20960
|
-
var index = helperPluginUtils.declare((api, options8) => {
|
|
20961
|
-
var _api$assumption, _api$assumption2;
|
|
20962
|
-
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
|
|
20963
|
-
const { loose = false } = options8, noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose, pureGetters = null != (_api$assumption2 = api.assumption("pureGetters")) ? _api$assumption2 : loose;
|
|
20964
|
-
return { name: "transform-optional-chaining", inherits: "8" === api.version[0] ? void 0 : __webpack_require__2("./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js").A, visitor: { "OptionalCallExpression|OptionalMemberExpression"(path13) {
|
|
20965
|
-
transform3(path13, { noDocumentAll, pureGetters });
|
|
20966
|
-
} } };
|
|
20967
|
-
});
|
|
20968
|
-
exports2.default = index, exports2.transform = transform3, exports2.transformOptionalChain = transformOptionalChain;
|
|
20969
19627
|
}, "./node_modules/.pnpm/@babel+plugin-transform-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
20970
19628
|
"use strict";
|
|
20971
19629
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(path13, t14) {
|
|
@@ -21661,7 +20319,7 @@ ${str2}
|
|
|
21661
20319
|
const state = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist, placeholderPattern, syntacticPlaceholders };
|
|
21662
20320
|
return traverse(ast, placeholderVisitorHandler, state), Object.assign({ ast }, state.syntactic.placeholders.length ? state.syntactic : state.legacy);
|
|
21663
20321
|
};
|
|
21664
|
-
var _t8 = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _codeFrame = __webpack_require__2("./stubs/babel-codeframe.
|
|
20322
|
+
var _t8 = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _codeFrame = __webpack_require__2("./stubs/babel-codeframe.mjs");
|
|
21665
20323
|
const { isCallExpression, isExpressionStatement, isFunction: isFunction2, isIdentifier, isJSXIdentifier, isNewExpression, isPlaceholder, isStatement, isStringLiteral, removePropertiesDeep, traverse } = _t8, PATTERN = /^[_$A-Z0-9]+$/;
|
|
21666
20324
|
function placeholderVisitorHandler(node, ancestors, state) {
|
|
21667
20325
|
var _state$placeholderWhi;
|
|
@@ -21749,7 +20407,7 @@ ${str2}
|
|
|
21749
20407
|
clearPath(), clearScope();
|
|
21750
20408
|
}, exports2.clearPath = clearPath, exports2.clearScope = clearScope, exports2.getCachedPaths = function(hub, parent) {
|
|
21751
20409
|
var _pathsCache$get;
|
|
21752
|
-
return null
|
|
20410
|
+
return null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
|
|
21753
20411
|
}, exports2.getOrCreateCachedPaths = function(hub, parent) {
|
|
21754
20412
|
null;
|
|
21755
20413
|
let parents = pathsCache.get(false ? null : nullHub);
|
|
@@ -23515,7 +22173,7 @@ ${str2}
|
|
|
23515
22173
|
const expressionAST = ast.program.body[0].expression;
|
|
23516
22174
|
return _index.default.removeProperties(expressionAST), this.replaceWith(expressionAST);
|
|
23517
22175
|
};
|
|
23518
|
-
var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.
|
|
22176
|
+
var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.mjs"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/index.js"), _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/path/index.js"), _cache2 = __webpack_require__2("./node_modules/.pnpm/@babel+traverse@7.24.7/node_modules/@babel/traverse/lib/cache.js"), _parser = __webpack_require__2("./node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/lib/index.js"), _t8 = __webpack_require__2("./node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.js"), _helperHoistVariables = __webpack_require__2("./node_modules/.pnpm/@babel+helper-hoist-variables@7.24.7/node_modules/@babel/helper-hoist-variables/lib/index.js");
|
|
23519
22177
|
const { FUNCTION_TYPES, arrowFunctionExpression, assignmentExpression, awaitExpression, blockStatement, buildUndefinedNode, callExpression, cloneNode, conditionalExpression, expressionStatement, getBindingIdentifiers, identifier, inheritLeadingComments, inheritTrailingComments, inheritsComments, isBlockStatement, isEmptyStatement, isExpression, isExpressionStatement, isIfStatement, isProgram, isStatement, isVariableDeclaration, removeComments, returnStatement, sequenceExpression, validate, yieldExpression } = _t8;
|
|
23520
22178
|
function gatherSequenceExpressions(nodes, declars) {
|
|
23521
22179
|
const exprs = [];
|
|
@@ -29528,6 +28186,18 @@ ${trace2}`);
|
|
|
29528
28186
|
}
|
|
29529
28187
|
} };
|
|
29530
28188
|
const __WEBPACK_DEFAULT_EXPORT__ = JSON5;
|
|
28189
|
+
}, "./stubs/babel-codeframe.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
|
|
28190
|
+
"use strict";
|
|
28191
|
+
function codeFrameColumns() {
|
|
28192
|
+
return "";
|
|
28193
|
+
}
|
|
28194
|
+
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
|
|
28195
|
+
}, "./stubs/helper-compilation-targets.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
|
|
28196
|
+
"use strict";
|
|
28197
|
+
function getTargets() {
|
|
28198
|
+
return {};
|
|
28199
|
+
}
|
|
28200
|
+
__webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
|
|
29531
28201
|
}, "./node_modules/.pnpm/@babel+preset-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/preset-typescript/package.json": (module2) => {
|
|
29532
28202
|
"use strict";
|
|
29533
28203
|
module2.exports = JSON.parse('{"name":"@babel/preset-typescript","version":"7.24.7","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.24.7","@babel/helper-validator-option":"^7.24.7","@babel/plugin-syntax-jsx":"^7.24.7","@babel/plugin-transform-modules-commonjs":"^7.24.7","@babel/plugin-transform-typescript":"^7.24.7"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.24.7","@babel/helper-plugin-test-runner":"^7.24.7"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}');
|
|
@@ -29541,7 +28211,10 @@ ${trace2}`);
|
|
|
29541
28211
|
var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
|
|
29542
28212
|
return __webpack_modules__[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__), module2.exports;
|
|
29543
28213
|
}
|
|
29544
|
-
__webpack_require__.
|
|
28214
|
+
__webpack_require__.n = (module2) => {
|
|
28215
|
+
var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
|
|
28216
|
+
return __webpack_require__.d(getter, { a: getter }), getter;
|
|
28217
|
+
}, __webpack_require__.d = (exports2, definition) => {
|
|
29545
28218
|
for (var key2 in definition) __webpack_require__.o(definition, key2) && !__webpack_require__.o(exports2, key2) && Object.defineProperty(exports2, key2, { enumerable: true, get: definition[key2] });
|
|
29546
28219
|
}, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports2) => {
|
|
29547
28220
|
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -29549,15 +28222,17 @@ ${trace2}`);
|
|
|
29549
28222
|
var __webpack_exports__ = {};
|
|
29550
28223
|
(() => {
|
|
29551
28224
|
"use strict";
|
|
29552
|
-
__webpack_require__.d(__webpack_exports__, { default: () =>
|
|
29553
|
-
var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js")
|
|
28225
|
+
__webpack_require__.d(__webpack_exports__, { default: () => transform4 });
|
|
28226
|
+
var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
|
|
28227
|
+
const external_node_url_namespaceObject = __require("node:url");
|
|
28228
|
+
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
|
|
29554
28229
|
function TransformImportMetaPlugin(_ctx, opts) {
|
|
29555
28230
|
return { name: "transform-import-meta", visitor: { Program(path13) {
|
|
29556
28231
|
const metas = [];
|
|
29557
28232
|
if (path13.traverse({ MemberExpression(memberExpPath) {
|
|
29558
28233
|
const { node } = memberExpPath;
|
|
29559
28234
|
"MetaProperty" === node.object.type && "import" === node.object.meta.name && "meta" === node.object.property.name && "Identifier" === node.property.type && "url" === node.property.name && metas.push(memberExpPath);
|
|
29560
|
-
} }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0,
|
|
28235
|
+
} }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0, external_node_url_namespaceObject.pathToFileURL)(opts.filename)) : "require('url').pathToFileURL(__filename).toString()"}`);
|
|
29561
28236
|
} } };
|
|
29562
28237
|
}
|
|
29563
28238
|
function importMetaEnvPlugin({ template: template2, types: types2 }) {
|
|
@@ -29571,14 +28246,124 @@ ${trace2}`);
|
|
|
29571
28246
|
"import" === parentNodeObjMeta.meta.name && "meta" === parentNodeObjMeta.property.name && "env" === parentNode.property.name && path13.parentPath.replaceWith(template2.expression.ast("process.env"));
|
|
29572
28247
|
} } };
|
|
29573
28248
|
}
|
|
29574
|
-
|
|
29575
|
-
|
|
29576
|
-
|
|
29577
|
-
|
|
28249
|
+
var helper_plugin_utils_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js"), helper_module_transforms_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-module-transforms/lib/index.js"), helper_simple_access_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.24.7/node_modules/@babel/helper-simple-access/lib/index.js");
|
|
28250
|
+
function transformDynamicImport(path13, noInterop, file) {
|
|
28251
|
+
path13.replaceWith((0, helper_module_transforms_lib.buildDynamicImport)(path13.node, true, false, (specifier) => ((source2, file2, noInterop2) => {
|
|
28252
|
+
const exp = lib.template.expression.ast`jitiImport(${source2})`;
|
|
28253
|
+
return noInterop2 ? exp : lib.types.callExpression(lib.types.memberExpression(exp, lib.types.identifier("then")), [lib.types.arrowFunctionExpression([lib.types.identifier("m")], lib.types.callExpression(file2.addHelper("interopRequireWildcard"), [lib.types.identifier("m")]))]);
|
|
28254
|
+
})(specifier, file, noInterop)));
|
|
28255
|
+
}
|
|
28256
|
+
const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin";
|
|
28257
|
+
function findMap(arr, cb2) {
|
|
28258
|
+
if (arr) for (const el5 of arr) {
|
|
28259
|
+
const res = cb2(el5);
|
|
28260
|
+
if (null != res) return res;
|
|
28261
|
+
}
|
|
28262
|
+
}
|
|
28263
|
+
const transform_module = (0, helper_plugin_utils_lib.declare)((api, options8) => {
|
|
28264
|
+
const { strictNamespace = false, mjsStrictNamespace = strictNamespace, allowTopLevelThis, strict, strictMode, noInterop, importInterop, lazy = false, allowCommonJSExports = true, loose = false, async = false } = options8, constantReexports = api.assumption("constantReexports") ?? loose, enumerableModuleMeta = api.assumption("enumerableModuleMeta") ?? loose, noIncompleteNsImportDetection = api.assumption("noIncompleteNsImportDetection") ?? false;
|
|
28265
|
+
if (!("boolean" == typeof lazy || "function" == typeof lazy || Array.isArray(lazy) && lazy.every((item) => "string" == typeof item))) throw new Error(".lazy must be a boolean, array of strings, or a function");
|
|
28266
|
+
if ("boolean" != typeof strictNamespace) throw new TypeError(".strictNamespace must be a boolean, or undefined");
|
|
28267
|
+
if ("boolean" != typeof mjsStrictNamespace) throw new TypeError(".mjsStrictNamespace must be a boolean, or undefined");
|
|
28268
|
+
const getAssertion = (localName) => lib.template.expression.ast`
|
|
28269
|
+
(function(){
|
|
28270
|
+
throw new Error(
|
|
28271
|
+
"The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
|
|
28272
|
+
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
|
28273
|
+
"Babel config for this file.");
|
|
28274
|
+
})()
|
|
28275
|
+
`, moduleExportsVisitor = { ReferencedIdentifier(path13) {
|
|
28276
|
+
const localName = path13.node.name;
|
|
28277
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28278
|
+
const localBinding = path13.scope.getBinding(localName);
|
|
28279
|
+
this.scope.getBinding(localName) !== localBinding || path13.parentPath.isObjectProperty({ value: path13.node }) && path13.parentPath.parentPath.isObjectPattern() || path13.parentPath.isAssignmentExpression({ left: path13.node }) || path13.isAssignmentExpression({ left: path13.node }) || path13.replaceWith(getAssertion(localName));
|
|
28280
|
+
}, UpdateExpression(path13) {
|
|
28281
|
+
const arg = path13.get("argument");
|
|
28282
|
+
if (!arg.isIdentifier()) return;
|
|
28283
|
+
const localName = arg.node.name;
|
|
28284
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28285
|
+
const localBinding = path13.scope.getBinding(localName);
|
|
28286
|
+
this.scope.getBinding(localName) === localBinding && path13.replaceWith(lib.types.assignmentExpression(path13.node.operator[0] + "=", arg.node, getAssertion(localName)));
|
|
28287
|
+
}, AssignmentExpression(path13) {
|
|
28288
|
+
const left2 = path13.get("left");
|
|
28289
|
+
if (left2.isIdentifier()) {
|
|
28290
|
+
const localName = left2.node.name;
|
|
28291
|
+
if ("module" !== localName && "exports" !== localName) return;
|
|
28292
|
+
const localBinding = path13.scope.getBinding(localName);
|
|
28293
|
+
if (this.scope.getBinding(localName) !== localBinding) return;
|
|
28294
|
+
const right2 = path13.get("right");
|
|
28295
|
+
right2.replaceWith(lib.types.sequenceExpression([right2.node, getAssertion(localName)]));
|
|
28296
|
+
} else if (left2.isPattern()) {
|
|
28297
|
+
const ids = left2.getOuterBindingIdentifiers(), localName = Object.keys(ids).find((localName2) => ("module" === localName2 || "exports" === localName2) && this.scope.getBinding(localName2) === path13.scope.getBinding(localName2));
|
|
28298
|
+
if (localName) {
|
|
28299
|
+
const right2 = path13.get("right");
|
|
28300
|
+
right2.replaceWith(lib.types.sequenceExpression([right2.node, getAssertion(localName)]));
|
|
28301
|
+
}
|
|
28302
|
+
}
|
|
28303
|
+
} };
|
|
28304
|
+
return { name: "transform-modules-commonjs", pre() {
|
|
28305
|
+
this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && function(file, hook) {
|
|
28306
|
+
let hooks = file.get(commonJSHooksKey);
|
|
28307
|
+
hooks || file.set(commonJSHooksKey, hooks = []), hooks.push(hook);
|
|
28308
|
+
}(this.file, /* @__PURE__ */ ((lazy2) => ({ name: "babel-plugin-transform-modules-commonjs/lazy", version: "7.24.7", getWrapperPayload: (source2, metadata) => (0, helper_module_transforms_lib.isSideEffectImport)(metadata) || metadata.reexportAll ? null : true === lazy2 ? source2.includes(".") ? null : "lazy/function" : Array.isArray(lazy2) ? lazy2.includes(source2) ? "lazy/function" : null : "function" == typeof lazy2 ? lazy2(source2) ? "lazy/function" : null : void 0, buildRequireWrapper(name, init, payload, referenced) {
|
|
28309
|
+
if ("lazy/function" === payload) return !!referenced && lib.template.statement.ast`
|
|
28310
|
+
function ${name}() {
|
|
28311
|
+
const data = ${init};
|
|
28312
|
+
${name} = function(){ return data; };
|
|
28313
|
+
return data;
|
|
28314
|
+
}
|
|
28315
|
+
`;
|
|
28316
|
+
}, wrapReference(ref2, payload) {
|
|
28317
|
+
if ("lazy/function" === payload) return lib.types.callExpression(ref2, []);
|
|
28318
|
+
} }))(lazy));
|
|
28319
|
+
}, visitor: { ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path13) {
|
|
28320
|
+
if (path13.isCallExpression() && !lib.types.isImport(path13.node.callee)) return;
|
|
28321
|
+
let { scope } = path13;
|
|
28322
|
+
do {
|
|
28323
|
+
scope.rename("require");
|
|
28324
|
+
} while (scope = scope.parent);
|
|
28325
|
+
transformDynamicImport(path13, noInterop, this.file);
|
|
28326
|
+
}, Program: { exit(path13, state) {
|
|
28327
|
+
if (!(0, helper_module_transforms_lib.isModule)(path13)) return;
|
|
28328
|
+
path13.scope.rename("exports"), path13.scope.rename("module"), path13.scope.rename("require"), path13.scope.rename("__filename"), path13.scope.rename("__dirname"), allowCommonJSExports || (process.env.BABEL_8_BREAKING ? (0, helper_simple_access_lib.default)(path13, /* @__PURE__ */ new Set(["module", "exports"])) : (0, helper_simple_access_lib.default)(path13, /* @__PURE__ */ new Set(["module", "exports"]), false), path13.traverse(moduleExportsVisitor, { scope: path13.scope }));
|
|
28329
|
+
let moduleName = (0, helper_module_transforms_lib.getModuleName)(this.file.opts, options8);
|
|
28330
|
+
moduleName && (moduleName = lib.types.stringLiteral(moduleName));
|
|
28331
|
+
const hooks = function(file) {
|
|
28332
|
+
const hooks2 = file.get(commonJSHooksKey);
|
|
28333
|
+
return { getWrapperPayload: (...args) => findMap(hooks2, (hook) => hook.getWrapperPayload?.(...args)), wrapReference: (...args) => findMap(hooks2, (hook) => hook.wrapReference?.(...args)), buildRequireWrapper: (...args) => findMap(hooks2, (hook) => hook.buildRequireWrapper?.(...args)) };
|
|
28334
|
+
}(this.file), { meta, headers } = (0, helper_module_transforms_lib.rewriteModuleStatementsAndPrepareHeader)(path13, { exportName: "exports", constantReexports, enumerableModuleMeta, strict, strictMode, allowTopLevelThis, noInterop, importInterop, wrapReference: hooks.wrapReference, getWrapperPayload: hooks.getWrapperPayload, esNamespaceOnly: "string" == typeof state.filename && /\.mjs$/.test(state.filename) ? mjsStrictNamespace : strictNamespace, noIncompleteNsImportDetection, filename: this.file.opts.filename });
|
|
28335
|
+
for (const [source2, metadata] of meta.source) {
|
|
28336
|
+
const loadExpr = async ? lib.types.awaitExpression(lib.types.callExpression(lib.types.identifier("jitiImport"), [lib.types.stringLiteral(source2)])) : lib.types.callExpression(lib.types.identifier("require"), [lib.types.stringLiteral(source2)]);
|
|
28337
|
+
let header;
|
|
28338
|
+
if ((0, helper_module_transforms_lib.isSideEffectImport)(metadata)) {
|
|
28339
|
+
if (lazy && "function" === metadata.wrap) throw new Error("Assertion failure");
|
|
28340
|
+
header = lib.types.expressionStatement(loadExpr);
|
|
28341
|
+
} else {
|
|
28342
|
+
const init = (0, helper_module_transforms_lib.wrapInterop)(path13, loadExpr, metadata.interop) || loadExpr;
|
|
28343
|
+
if (metadata.wrap) {
|
|
28344
|
+
const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced);
|
|
28345
|
+
if (false === res) continue;
|
|
28346
|
+
header = res;
|
|
28347
|
+
}
|
|
28348
|
+
header ??= lib.template.statement.ast`
|
|
28349
|
+
var ${metadata.name} = ${init};
|
|
28350
|
+
`;
|
|
28351
|
+
}
|
|
28352
|
+
header.loc = metadata.loc, headers.push(header), headers.push(...(0, helper_module_transforms_lib.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference));
|
|
28353
|
+
}
|
|
28354
|
+
(0, helper_module_transforms_lib.ensureStatementsHoisted)(headers), path13.unshiftContainer("body", headers), path13.get("body").forEach((path14) => {
|
|
28355
|
+
headers.includes(path14.node) && path14.isVariableDeclaration() && path14.scope.registerDeclaration(path14);
|
|
28356
|
+
});
|
|
28357
|
+
} } } };
|
|
28358
|
+
});
|
|
28359
|
+
var lib_plugin = __webpack_require__("./node_modules/.pnpm/babel-plugin-transform-typescript-metadata@0.3.2_@babel+core@7.24.7_@babel+traverse@7.24.7/node_modules/babel-plugin-transform-typescript-metadata/lib/plugin.js"), plugin_syntax_class_properties_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"), plugin_transform_export_namespace_from_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"), plugin_transform_typescript_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-typescript/lib/index.js"), plugin_proposal_decorators_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-proposal-decorators/lib/index.js"), babel_plugin_parameter_decorator_lib = __webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"), babel_plugin_parameter_decorator_lib_default = __webpack_require__.n(babel_plugin_parameter_decorator_lib), plugin_syntax_import_assertions_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js");
|
|
28360
|
+
function transform4(opts) {
|
|
28361
|
+
const _opts = { babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/", ...opts.babel, plugins: [[transform_module, { allowTopLevelThis: true, noInterop: !opts.interopDefault, async: opts.async }], [TransformImportMetaPlugin, { filename: opts.filename }], [plugin_syntax_class_properties_lib.A], [plugin_transform_export_namespace_from_lib.A], [importMetaEnvPlugin]] };
|
|
28362
|
+
opts.ts && (_opts.plugins.push([plugin_transform_typescript_lib.default, { allowDeclareFields: true }]), _opts.plugins.unshift([lib_plugin.A], [plugin_proposal_decorators_lib.A, { legacy: true }]), _opts.plugins.push(babel_plugin_parameter_decorator_lib_default()), _opts.plugins.push(plugin_syntax_import_assertions_lib.A)), opts.babel && Array.isArray(opts.babel.plugins) && _opts.plugins?.push(...opts.babel.plugins);
|
|
29578
28363
|
try {
|
|
29579
|
-
return { code: (
|
|
28364
|
+
return { code: (0, lib.transformSync)(opts.source, _opts)?.code || "" };
|
|
29580
28365
|
} catch (error) {
|
|
29581
|
-
return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line:
|
|
28366
|
+
return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: error.loc?.line || 0, column: error.loc?.column || 0, code: error.code?.replace("BABEL_", "").replace("PARSE_ERROR", "ParseError"), message: error.message?.replace("/: ", "").replace(/\(.+\)\s*$/, "") }) };
|
|
29582
28367
|
}
|
|
29583
28368
|
}
|
|
29584
28369
|
})(), module.exports = __webpack_exports__.default;
|
|
@@ -29586,23 +28371,6 @@ ${trace2}`);
|
|
|
29586
28371
|
}
|
|
29587
28372
|
});
|
|
29588
28373
|
|
|
29589
|
-
// node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js
|
|
29590
|
-
var require_lib = __commonJS({
|
|
29591
|
-
"node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js"(exports, module) {
|
|
29592
|
-
function onError(err) {
|
|
29593
|
-
throw err;
|
|
29594
|
-
}
|
|
29595
|
-
module.exports = function jiti(filename, opts) {
|
|
29596
|
-
const jiti2 = require_jiti();
|
|
29597
|
-
opts = { onError, ...opts };
|
|
29598
|
-
if (!opts.transform) {
|
|
29599
|
-
opts.transform = require_babel();
|
|
29600
|
-
}
|
|
29601
|
-
return jiti2(filename, opts);
|
|
29602
|
-
};
|
|
29603
|
-
}
|
|
29604
|
-
});
|
|
29605
|
-
|
|
29606
28374
|
// node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
29607
28375
|
function isPlainObject(value2) {
|
|
29608
28376
|
if (value2 === null || typeof value2 !== "object") {
|
|
@@ -32569,6 +31337,344 @@ ${f7}`, i4);
|
|
|
32569
31337
|
}
|
|
32570
31338
|
});
|
|
32571
31339
|
|
|
31340
|
+
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
|
|
31341
|
+
var require_package = __commonJS({
|
|
31342
|
+
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
|
|
31343
|
+
module.exports = {
|
|
31344
|
+
name: "dotenv",
|
|
31345
|
+
version: "16.4.5",
|
|
31346
|
+
description: "Loads environment variables from .env file",
|
|
31347
|
+
main: "lib/main.js",
|
|
31348
|
+
types: "lib/main.d.ts",
|
|
31349
|
+
exports: {
|
|
31350
|
+
".": {
|
|
31351
|
+
types: "./lib/main.d.ts",
|
|
31352
|
+
require: "./lib/main.js",
|
|
31353
|
+
default: "./lib/main.js"
|
|
31354
|
+
},
|
|
31355
|
+
"./config": "./config.js",
|
|
31356
|
+
"./config.js": "./config.js",
|
|
31357
|
+
"./lib/env-options": "./lib/env-options.js",
|
|
31358
|
+
"./lib/env-options.js": "./lib/env-options.js",
|
|
31359
|
+
"./lib/cli-options": "./lib/cli-options.js",
|
|
31360
|
+
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
31361
|
+
"./package.json": "./package.json"
|
|
31362
|
+
},
|
|
31363
|
+
scripts: {
|
|
31364
|
+
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
31365
|
+
lint: "standard",
|
|
31366
|
+
"lint-readme": "standard-markdown",
|
|
31367
|
+
pretest: "npm run lint && npm run dts-check",
|
|
31368
|
+
test: "tap tests/*.js --100 -Rspec",
|
|
31369
|
+
"test:coverage": "tap --coverage-report=lcov",
|
|
31370
|
+
prerelease: "npm test",
|
|
31371
|
+
release: "standard-version"
|
|
31372
|
+
},
|
|
31373
|
+
repository: {
|
|
31374
|
+
type: "git",
|
|
31375
|
+
url: "git://github.com/motdotla/dotenv.git"
|
|
31376
|
+
},
|
|
31377
|
+
funding: "https://dotenvx.com",
|
|
31378
|
+
keywords: [
|
|
31379
|
+
"dotenv",
|
|
31380
|
+
"env",
|
|
31381
|
+
".env",
|
|
31382
|
+
"environment",
|
|
31383
|
+
"variables",
|
|
31384
|
+
"config",
|
|
31385
|
+
"settings"
|
|
31386
|
+
],
|
|
31387
|
+
readmeFilename: "README.md",
|
|
31388
|
+
license: "BSD-2-Clause",
|
|
31389
|
+
devDependencies: {
|
|
31390
|
+
"@definitelytyped/dtslint": "^0.0.133",
|
|
31391
|
+
"@types/node": "^18.11.3",
|
|
31392
|
+
decache: "^4.6.1",
|
|
31393
|
+
sinon: "^14.0.1",
|
|
31394
|
+
standard: "^17.0.0",
|
|
31395
|
+
"standard-markdown": "^7.1.0",
|
|
31396
|
+
"standard-version": "^9.5.0",
|
|
31397
|
+
tap: "^16.3.0",
|
|
31398
|
+
tar: "^6.1.11",
|
|
31399
|
+
typescript: "^4.8.4"
|
|
31400
|
+
},
|
|
31401
|
+
engines: {
|
|
31402
|
+
node: ">=12"
|
|
31403
|
+
},
|
|
31404
|
+
browser: {
|
|
31405
|
+
fs: false
|
|
31406
|
+
}
|
|
31407
|
+
};
|
|
31408
|
+
}
|
|
31409
|
+
});
|
|
31410
|
+
|
|
31411
|
+
// node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
|
|
31412
|
+
var require_main = __commonJS({
|
|
31413
|
+
"node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
31414
|
+
var fs11 = __require("fs");
|
|
31415
|
+
var path13 = __require("path");
|
|
31416
|
+
var os8 = __require("os");
|
|
31417
|
+
var crypto = __require("crypto");
|
|
31418
|
+
var packageJson = require_package();
|
|
31419
|
+
var version2 = packageJson.version;
|
|
31420
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
31421
|
+
function parse7(src) {
|
|
31422
|
+
const obj = {};
|
|
31423
|
+
let lines = src.toString();
|
|
31424
|
+
lines = lines.replace(/\r\n?/mg, "\n");
|
|
31425
|
+
let match;
|
|
31426
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
31427
|
+
const key2 = match[1];
|
|
31428
|
+
let value2 = match[2] || "";
|
|
31429
|
+
value2 = value2.trim();
|
|
31430
|
+
const maybeQuote = value2[0];
|
|
31431
|
+
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
31432
|
+
if (maybeQuote === '"') {
|
|
31433
|
+
value2 = value2.replace(/\\n/g, "\n");
|
|
31434
|
+
value2 = value2.replace(/\\r/g, "\r");
|
|
31435
|
+
}
|
|
31436
|
+
obj[key2] = value2;
|
|
31437
|
+
}
|
|
31438
|
+
return obj;
|
|
31439
|
+
}
|
|
31440
|
+
function _parseVault(options8) {
|
|
31441
|
+
const vaultPath = _vaultPath(options8);
|
|
31442
|
+
const result2 = DotenvModule.configDotenv({ path: vaultPath });
|
|
31443
|
+
if (!result2.parsed) {
|
|
31444
|
+
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
31445
|
+
err.code = "MISSING_DATA";
|
|
31446
|
+
throw err;
|
|
31447
|
+
}
|
|
31448
|
+
const keys2 = _dotenvKey(options8).split(",");
|
|
31449
|
+
const length = keys2.length;
|
|
31450
|
+
let decrypted;
|
|
31451
|
+
for (let i4 = 0; i4 < length; i4++) {
|
|
31452
|
+
try {
|
|
31453
|
+
const key2 = keys2[i4].trim();
|
|
31454
|
+
const attrs = _instructions(result2, key2);
|
|
31455
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
31456
|
+
break;
|
|
31457
|
+
} catch (error) {
|
|
31458
|
+
if (i4 + 1 >= length) {
|
|
31459
|
+
throw error;
|
|
31460
|
+
}
|
|
31461
|
+
}
|
|
31462
|
+
}
|
|
31463
|
+
return DotenvModule.parse(decrypted);
|
|
31464
|
+
}
|
|
31465
|
+
function _log(message) {
|
|
31466
|
+
console.log(`[dotenv@${version2}][INFO] ${message}`);
|
|
31467
|
+
}
|
|
31468
|
+
function _warn(message) {
|
|
31469
|
+
console.log(`[dotenv@${version2}][WARN] ${message}`);
|
|
31470
|
+
}
|
|
31471
|
+
function _debug(message) {
|
|
31472
|
+
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
31473
|
+
}
|
|
31474
|
+
function _dotenvKey(options8) {
|
|
31475
|
+
if (options8 && options8.DOTENV_KEY && options8.DOTENV_KEY.length > 0) {
|
|
31476
|
+
return options8.DOTENV_KEY;
|
|
31477
|
+
}
|
|
31478
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
31479
|
+
return process.env.DOTENV_KEY;
|
|
31480
|
+
}
|
|
31481
|
+
return "";
|
|
31482
|
+
}
|
|
31483
|
+
function _instructions(result2, dotenvKey) {
|
|
31484
|
+
let uri;
|
|
31485
|
+
try {
|
|
31486
|
+
uri = new URL(dotenvKey);
|
|
31487
|
+
} catch (error) {
|
|
31488
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
31489
|
+
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
31490
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31491
|
+
throw err;
|
|
31492
|
+
}
|
|
31493
|
+
throw error;
|
|
31494
|
+
}
|
|
31495
|
+
const key2 = uri.password;
|
|
31496
|
+
if (!key2) {
|
|
31497
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
31498
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31499
|
+
throw err;
|
|
31500
|
+
}
|
|
31501
|
+
const environment = uri.searchParams.get("environment");
|
|
31502
|
+
if (!environment) {
|
|
31503
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
31504
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31505
|
+
throw err;
|
|
31506
|
+
}
|
|
31507
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
31508
|
+
const ciphertext = result2.parsed[environmentKey];
|
|
31509
|
+
if (!ciphertext) {
|
|
31510
|
+
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
31511
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
31512
|
+
throw err;
|
|
31513
|
+
}
|
|
31514
|
+
return { ciphertext, key: key2 };
|
|
31515
|
+
}
|
|
31516
|
+
function _vaultPath(options8) {
|
|
31517
|
+
let possibleVaultPath = null;
|
|
31518
|
+
if (options8 && options8.path && options8.path.length > 0) {
|
|
31519
|
+
if (Array.isArray(options8.path)) {
|
|
31520
|
+
for (const filepath of options8.path) {
|
|
31521
|
+
if (fs11.existsSync(filepath)) {
|
|
31522
|
+
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
31523
|
+
}
|
|
31524
|
+
}
|
|
31525
|
+
} else {
|
|
31526
|
+
possibleVaultPath = options8.path.endsWith(".vault") ? options8.path : `${options8.path}.vault`;
|
|
31527
|
+
}
|
|
31528
|
+
} else {
|
|
31529
|
+
possibleVaultPath = path13.resolve(process.cwd(), ".env.vault");
|
|
31530
|
+
}
|
|
31531
|
+
if (fs11.existsSync(possibleVaultPath)) {
|
|
31532
|
+
return possibleVaultPath;
|
|
31533
|
+
}
|
|
31534
|
+
return null;
|
|
31535
|
+
}
|
|
31536
|
+
function _resolveHome(envPath) {
|
|
31537
|
+
return envPath[0] === "~" ? path13.join(os8.homedir(), envPath.slice(1)) : envPath;
|
|
31538
|
+
}
|
|
31539
|
+
function _configVault(options8) {
|
|
31540
|
+
_log("Loading env from encrypted .env.vault");
|
|
31541
|
+
const parsed = DotenvModule._parseVault(options8);
|
|
31542
|
+
let processEnv = process.env;
|
|
31543
|
+
if (options8 && options8.processEnv != null) {
|
|
31544
|
+
processEnv = options8.processEnv;
|
|
31545
|
+
}
|
|
31546
|
+
DotenvModule.populate(processEnv, parsed, options8);
|
|
31547
|
+
return { parsed };
|
|
31548
|
+
}
|
|
31549
|
+
function configDotenv(options8) {
|
|
31550
|
+
const dotenvPath = path13.resolve(process.cwd(), ".env");
|
|
31551
|
+
let encoding = "utf8";
|
|
31552
|
+
const debug2 = Boolean(options8 && options8.debug);
|
|
31553
|
+
if (options8 && options8.encoding) {
|
|
31554
|
+
encoding = options8.encoding;
|
|
31555
|
+
} else {
|
|
31556
|
+
if (debug2) {
|
|
31557
|
+
_debug("No encoding is specified. UTF-8 is used by default");
|
|
31558
|
+
}
|
|
31559
|
+
}
|
|
31560
|
+
let optionPaths = [dotenvPath];
|
|
31561
|
+
if (options8 && options8.path) {
|
|
31562
|
+
if (!Array.isArray(options8.path)) {
|
|
31563
|
+
optionPaths = [_resolveHome(options8.path)];
|
|
31564
|
+
} else {
|
|
31565
|
+
optionPaths = [];
|
|
31566
|
+
for (const filepath of options8.path) {
|
|
31567
|
+
optionPaths.push(_resolveHome(filepath));
|
|
31568
|
+
}
|
|
31569
|
+
}
|
|
31570
|
+
}
|
|
31571
|
+
let lastError;
|
|
31572
|
+
const parsedAll = {};
|
|
31573
|
+
for (const path14 of optionPaths) {
|
|
31574
|
+
try {
|
|
31575
|
+
const parsed = DotenvModule.parse(fs11.readFileSync(path14, { encoding }));
|
|
31576
|
+
DotenvModule.populate(parsedAll, parsed, options8);
|
|
31577
|
+
} catch (e3) {
|
|
31578
|
+
if (debug2) {
|
|
31579
|
+
_debug(`Failed to load ${path14} ${e3.message}`);
|
|
31580
|
+
}
|
|
31581
|
+
lastError = e3;
|
|
31582
|
+
}
|
|
31583
|
+
}
|
|
31584
|
+
let processEnv = process.env;
|
|
31585
|
+
if (options8 && options8.processEnv != null) {
|
|
31586
|
+
processEnv = options8.processEnv;
|
|
31587
|
+
}
|
|
31588
|
+
DotenvModule.populate(processEnv, parsedAll, options8);
|
|
31589
|
+
if (lastError) {
|
|
31590
|
+
return { parsed: parsedAll, error: lastError };
|
|
31591
|
+
} else {
|
|
31592
|
+
return { parsed: parsedAll };
|
|
31593
|
+
}
|
|
31594
|
+
}
|
|
31595
|
+
function config2(options8) {
|
|
31596
|
+
if (_dotenvKey(options8).length === 0) {
|
|
31597
|
+
return DotenvModule.configDotenv(options8);
|
|
31598
|
+
}
|
|
31599
|
+
const vaultPath = _vaultPath(options8);
|
|
31600
|
+
if (!vaultPath) {
|
|
31601
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
31602
|
+
return DotenvModule.configDotenv(options8);
|
|
31603
|
+
}
|
|
31604
|
+
return DotenvModule._configVault(options8);
|
|
31605
|
+
}
|
|
31606
|
+
function decrypt(encrypted, keyStr) {
|
|
31607
|
+
const key2 = Buffer.from(keyStr.slice(-64), "hex");
|
|
31608
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
31609
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
31610
|
+
const authTag = ciphertext.subarray(-16);
|
|
31611
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
31612
|
+
try {
|
|
31613
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key2, nonce);
|
|
31614
|
+
aesgcm.setAuthTag(authTag);
|
|
31615
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
31616
|
+
} catch (error) {
|
|
31617
|
+
const isRange = error instanceof RangeError;
|
|
31618
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
31619
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
31620
|
+
if (isRange || invalidKeyLength) {
|
|
31621
|
+
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
31622
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
31623
|
+
throw err;
|
|
31624
|
+
} else if (decryptionFailed) {
|
|
31625
|
+
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
31626
|
+
err.code = "DECRYPTION_FAILED";
|
|
31627
|
+
throw err;
|
|
31628
|
+
} else {
|
|
31629
|
+
throw error;
|
|
31630
|
+
}
|
|
31631
|
+
}
|
|
31632
|
+
}
|
|
31633
|
+
function populate(processEnv, parsed, options8 = {}) {
|
|
31634
|
+
const debug2 = Boolean(options8 && options8.debug);
|
|
31635
|
+
const override = Boolean(options8 && options8.override);
|
|
31636
|
+
if (typeof parsed !== "object") {
|
|
31637
|
+
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
31638
|
+
err.code = "OBJECT_REQUIRED";
|
|
31639
|
+
throw err;
|
|
31640
|
+
}
|
|
31641
|
+
for (const key2 of Object.keys(parsed)) {
|
|
31642
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key2)) {
|
|
31643
|
+
if (override === true) {
|
|
31644
|
+
processEnv[key2] = parsed[key2];
|
|
31645
|
+
}
|
|
31646
|
+
if (debug2) {
|
|
31647
|
+
if (override === true) {
|
|
31648
|
+
_debug(`"${key2}" is already defined and WAS overwritten`);
|
|
31649
|
+
} else {
|
|
31650
|
+
_debug(`"${key2}" is already defined and was NOT overwritten`);
|
|
31651
|
+
}
|
|
31652
|
+
}
|
|
31653
|
+
} else {
|
|
31654
|
+
processEnv[key2] = parsed[key2];
|
|
31655
|
+
}
|
|
31656
|
+
}
|
|
31657
|
+
}
|
|
31658
|
+
var DotenvModule = {
|
|
31659
|
+
configDotenv,
|
|
31660
|
+
_configVault,
|
|
31661
|
+
_parseVault,
|
|
31662
|
+
config: config2,
|
|
31663
|
+
decrypt,
|
|
31664
|
+
parse: parse7,
|
|
31665
|
+
populate
|
|
31666
|
+
};
|
|
31667
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
31668
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
31669
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
31670
|
+
module.exports.config = DotenvModule.config;
|
|
31671
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
31672
|
+
module.exports.parse = DotenvModule.parse;
|
|
31673
|
+
module.exports.populate = DotenvModule.populate;
|
|
31674
|
+
module.exports = DotenvModule;
|
|
31675
|
+
}
|
|
31676
|
+
});
|
|
31677
|
+
|
|
32572
31678
|
// node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/jsonc.mjs
|
|
32573
31679
|
var jsonc_exports = {};
|
|
32574
31680
|
__export(jsonc_exports, {
|
|
@@ -44987,7 +44093,7 @@ var require_dist = __commonJS({
|
|
|
44987
44093
|
});
|
|
44988
44094
|
|
|
44989
44095
|
// node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs
|
|
44990
|
-
var
|
|
44096
|
+
var require_lib = __commonJS({
|
|
44991
44097
|
"node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs"(exports, module) {
|
|
44992
44098
|
var nodeFetch = require_dist();
|
|
44993
44099
|
function fetch2(input, options8) {
|
|
@@ -45094,7 +44200,7 @@ var require_proxy = __commonJS({
|
|
|
45094
44200
|
var require$$3 = __require("events");
|
|
45095
44201
|
var require$$5$2 = __require("url");
|
|
45096
44202
|
var require$$2$1 = __require("assert");
|
|
45097
|
-
var nodeFetchNative =
|
|
44203
|
+
var nodeFetchNative = require_lib();
|
|
45098
44204
|
function _interopDefaultCompat(e3) {
|
|
45099
44205
|
return e3 && typeof e3 == "object" && "default" in e3 ? e3.default : e3;
|
|
45100
44206
|
}
|
|
@@ -48131,7 +47237,7 @@ ${f7.toString(16)}\r
|
|
|
48131
47237
|
if (J12 != null && typeof J12 != "boolean") throw new InvalidArgumentError$e("allowH2 must be a valid boolean value");
|
|
48132
47238
|
if (W13 != null && (typeof W13 != "number" || W13 < 1)) throw new InvalidArgumentError$e("maxConcurrentStreams must be a positive integer, greater than 0");
|
|
48133
47239
|
typeof Y13 != "function" && (Y13 = buildConnector$2({ ...S10, maxCachedSessions: p4, allowH2: J12, socketPath: k11, timeout: l4, ...util$f.nodeHasAutoSelectFamily && D10 ? { autoSelectFamily: D10, autoSelectFamilyAttemptTimeout: b11 } : void 0, ...Y13 })), t14?.Client && Array.isArray(t14.Client) ? (this[kInterceptors$3] = t14.Client, deprecatedInterceptorWarned || (deprecatedInterceptorWarned = true, process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.", { code: "UNDICI-CLIENT-INTERCEPTOR-DEPRECATED" }))) : this[kInterceptors$3] = [createRedirectInterceptor$1({ maxRedirections: V10 })], this[kUrl$2] = util$f.parseOrigin(A8), this[kConnector] = Y13, this[kPipelining] = F9 ?? 1, this[kMaxHeadersSize] = r5 || http$1.maxHeaderSize, this[kKeepAliveDefaultTimeout] = I8 ?? 4e3, this[kKeepAliveMaxTimeout] = w10 ?? 6e5, this[kKeepAliveTimeoutThreshold] = U11 ?? 1e3, this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout], this[kServerName] = null, this[kLocalAddress] = m5 ?? null, this[kResuming] = 0, this[kNeedDrain$2] = 0, this[kHostHeader] = `host: ${this[kUrl$2].hostname}${this[kUrl$2].port ? `:${this[kUrl$2].port}` : ""}\r
|
|
48134
|
-
`, this[kBodyTimeout] = C7 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M11 ?? true, this[kMaxRedirections$1] = V10, this[kMaxRequests] = R12, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _15 > -1 ? _15 : -1, this[kMaxConcurrentStreams] = W13 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N13) => resume$1(this, N13), this[kOnError] = (N13) =>
|
|
47240
|
+
`, this[kBodyTimeout] = C7 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M11 ?? true, this[kMaxRedirections$1] = V10, this[kMaxRequests] = R12, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _15 > -1 ? _15 : -1, this[kMaxConcurrentStreams] = W13 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N13) => resume$1(this, N13), this[kOnError] = (N13) => onError2(this, N13);
|
|
48135
47241
|
}
|
|
48136
47242
|
get pipelining() {
|
|
48137
47243
|
return this[kPipelining];
|
|
@@ -48181,7 +47287,7 @@ ${f7.toString(16)}\r
|
|
|
48181
47287
|
}
|
|
48182
47288
|
}, Q13(Xe10, "Client"), Xe10);
|
|
48183
47289
|
var createRedirectInterceptor$1 = redirectInterceptor;
|
|
48184
|
-
function
|
|
47290
|
+
function onError2(e3, A8) {
|
|
48185
47291
|
if (e3[kRunning$3] === 0 && A8.code !== "UND_ERR_INFO" && A8.code !== "UND_ERR_SOCKET") {
|
|
48186
47292
|
assert$4(e3[kPendingIdx] === e3[kRunningIdx]);
|
|
48187
47293
|
const t14 = e3[kQueue$1].splice(e3[kRunningIdx]);
|
|
@@ -48192,7 +47298,7 @@ ${f7.toString(16)}\r
|
|
|
48192
47298
|
assert$4(e3[kSize$3] === 0);
|
|
48193
47299
|
}
|
|
48194
47300
|
}
|
|
48195
|
-
Q13(
|
|
47301
|
+
Q13(onError2, "onError");
|
|
48196
47302
|
async function connect$1(e3) {
|
|
48197
47303
|
assert$4(!e3[kConnecting]), assert$4(!e3[kHTTPContext]);
|
|
48198
47304
|
let { host: A8, hostname: t14, protocol: r5, port: n } = e3[kUrl$2];
|
|
@@ -48228,7 +47334,7 @@ ${f7.toString(16)}\r
|
|
|
48228
47334
|
const B8 = e3[kQueue$1][e3[kPendingIdx]++];
|
|
48229
47335
|
errorRequest(e3, B8, o2);
|
|
48230
47336
|
}
|
|
48231
|
-
else
|
|
47337
|
+
else onError2(e3, o2);
|
|
48232
47338
|
e3.emit("connectionError", e3[kUrl$2], [e3], o2);
|
|
48233
47339
|
}
|
|
48234
47340
|
e3[kResume$1]();
|
|
@@ -53661,15 +52767,15 @@ var require_conversions = __commonJS({
|
|
|
53661
52767
|
const g6 = rgb[1] / 255;
|
|
53662
52768
|
const b11 = rgb[2] / 255;
|
|
53663
52769
|
const v10 = Math.max(r5, g6, b11);
|
|
53664
|
-
const
|
|
52770
|
+
const diff = v10 - Math.min(r5, g6, b11);
|
|
53665
52771
|
const diffc = function(c5) {
|
|
53666
|
-
return (v10 - c5) / 6 /
|
|
52772
|
+
return (v10 - c5) / 6 / diff + 1 / 2;
|
|
53667
52773
|
};
|
|
53668
|
-
if (
|
|
52774
|
+
if (diff === 0) {
|
|
53669
52775
|
h8 = 0;
|
|
53670
52776
|
s3 = 0;
|
|
53671
52777
|
} else {
|
|
53672
|
-
s3 =
|
|
52778
|
+
s3 = diff / v10;
|
|
53673
52779
|
rdif = diffc(r5);
|
|
53674
52780
|
gdif = diffc(g6);
|
|
53675
52781
|
bdif = diffc(b11);
|
|
@@ -59558,13 +58664,13 @@ var require_OperatorSubscriber = __commonJS({
|
|
|
59558
58664
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59559
58665
|
exports.OperatorSubscriber = exports.createOperatorSubscriber = void 0;
|
|
59560
58666
|
var Subscriber_1 = require_Subscriber();
|
|
59561
|
-
function createOperatorSubscriber(destination, onNext, onComplete,
|
|
59562
|
-
return new OperatorSubscriber(destination, onNext, onComplete,
|
|
58667
|
+
function createOperatorSubscriber(destination, onNext, onComplete, onError2, onFinalize) {
|
|
58668
|
+
return new OperatorSubscriber(destination, onNext, onComplete, onError2, onFinalize);
|
|
59563
58669
|
}
|
|
59564
58670
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
59565
58671
|
var OperatorSubscriber = function(_super) {
|
|
59566
58672
|
__extends(OperatorSubscriber2, _super);
|
|
59567
|
-
function OperatorSubscriber2(destination, onNext, onComplete,
|
|
58673
|
+
function OperatorSubscriber2(destination, onNext, onComplete, onError2, onFinalize, shouldUnsubscribe) {
|
|
59568
58674
|
var _this = _super.call(this, destination) || this;
|
|
59569
58675
|
_this.onFinalize = onFinalize;
|
|
59570
58676
|
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
@@ -59575,9 +58681,9 @@ var require_OperatorSubscriber = __commonJS({
|
|
|
59575
58681
|
destination.error(err);
|
|
59576
58682
|
}
|
|
59577
58683
|
} : _super.prototype._next;
|
|
59578
|
-
_this._error =
|
|
58684
|
+
_this._error = onError2 ? function(err) {
|
|
59579
58685
|
try {
|
|
59580
|
-
|
|
58686
|
+
onError2(err);
|
|
59581
58687
|
} catch (err2) {
|
|
59582
58688
|
destination.error(err2);
|
|
59583
58689
|
} finally {
|
|
@@ -68282,7 +67388,7 @@ var require_overRest = __commonJS({
|
|
|
68282
67388
|
"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports, module) {
|
|
68283
67389
|
var apply = require_apply();
|
|
68284
67390
|
var nativeMax = Math.max;
|
|
68285
|
-
function overRest(func, start2,
|
|
67391
|
+
function overRest(func, start2, transform4) {
|
|
68286
67392
|
start2 = nativeMax(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
68287
67393
|
return function() {
|
|
68288
67394
|
var args = arguments, index = -1, length = nativeMax(args.length - start2, 0), array2 = Array(length);
|
|
@@ -68294,7 +67400,7 @@ var require_overRest = __commonJS({
|
|
|
68294
67400
|
while (++index < start2) {
|
|
68295
67401
|
otherArgs[index] = args[index];
|
|
68296
67402
|
}
|
|
68297
|
-
otherArgs[start2] =
|
|
67403
|
+
otherArgs[start2] = transform4(array2);
|
|
68298
67404
|
return apply(func, this, otherArgs);
|
|
68299
67405
|
};
|
|
68300
67406
|
}
|
|
@@ -69504,9 +68610,9 @@ var require_copyObject = __commonJS({
|
|
|
69504
68610
|
// node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
|
|
69505
68611
|
var require_overArg = __commonJS({
|
|
69506
68612
|
"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
|
|
69507
|
-
function overArg(func,
|
|
68613
|
+
function overArg(func, transform4) {
|
|
69508
68614
|
return function(arg) {
|
|
69509
|
-
return func(
|
|
68615
|
+
return func(transform4(arg));
|
|
69510
68616
|
};
|
|
69511
68617
|
}
|
|
69512
68618
|
module.exports = overArg;
|
|
@@ -87224,7 +86330,7 @@ var require_extend_node = __commonJS({
|
|
|
87224
86330
|
});
|
|
87225
86331
|
|
|
87226
86332
|
// node_modules/.pnpm/iconv-lite@0.4.24/node_modules/iconv-lite/lib/index.js
|
|
87227
|
-
var
|
|
86333
|
+
var require_lib2 = __commonJS({
|
|
87228
86334
|
"node_modules/.pnpm/iconv-lite@0.4.24/node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
87229
86335
|
"use strict";
|
|
87230
86336
|
var Buffer4 = require_safer().Buffer;
|
|
@@ -87813,7 +86919,7 @@ var require_main2 = __commonJS({
|
|
|
87813
86919
|
var chardet_1 = require_chardet();
|
|
87814
86920
|
var child_process_1 = __require("child_process");
|
|
87815
86921
|
var fs_1 = __require("fs");
|
|
87816
|
-
var iconv_lite_1 =
|
|
86922
|
+
var iconv_lite_1 = require_lib2();
|
|
87817
86923
|
var tmp_1 = require_tmp();
|
|
87818
86924
|
var CreateFileError_1 = require_CreateFileError();
|
|
87819
86925
|
exports.CreateFileError = CreateFileError_1.CreateFileError;
|
|
@@ -88933,7 +88039,7 @@ var require_through = __commonJS({
|
|
|
88933
88039
|
});
|
|
88934
88040
|
|
|
88935
88041
|
// node_modules/.pnpm/mute-stream@1.0.0/node_modules/mute-stream/lib/index.js
|
|
88936
|
-
var
|
|
88042
|
+
var require_lib3 = __commonJS({
|
|
88937
88043
|
"node_modules/.pnpm/mute-stream@1.0.0/node_modules/mute-stream/lib/index.js"(exports, module) {
|
|
88938
88044
|
var Stream = __require("stream");
|
|
88939
88045
|
var MuteStream2 = class extends Stream {
|
|
@@ -89079,7 +88185,7 @@ function setupReadlineOptions(opt = {}) {
|
|
|
89079
88185
|
var import_mute_stream, UI;
|
|
89080
88186
|
var init_baseUI = __esm({
|
|
89081
88187
|
"node_modules/.pnpm/inquirer@9.2.23/node_modules/inquirer/lib/ui/baseUI.js"() {
|
|
89082
|
-
import_mute_stream = __toESM(
|
|
88188
|
+
import_mute_stream = __toESM(require_lib3(), 1);
|
|
89083
88189
|
UI = class {
|
|
89084
88190
|
constructor(opt) {
|
|
89085
88191
|
this.rl ||= readline.createInterface(setupReadlineOptions(opt));
|
|
@@ -95283,7 +94389,7 @@ var require_core = __commonJS({
|
|
|
95283
94389
|
});
|
|
95284
94390
|
|
|
95285
94391
|
// node_modules/.pnpm/vfile@4.2.1/node_modules/vfile/lib/index.js
|
|
95286
|
-
var
|
|
94392
|
+
var require_lib4 = __commonJS({
|
|
95287
94393
|
"node_modules/.pnpm/vfile@4.2.1/node_modules/vfile/lib/index.js"(exports, module) {
|
|
95288
94394
|
"use strict";
|
|
95289
94395
|
var VMessage = require_vfile_message();
|
|
@@ -95319,7 +94425,7 @@ var require_lib5 = __commonJS({
|
|
|
95319
94425
|
var require_vfile = __commonJS({
|
|
95320
94426
|
"node_modules/.pnpm/vfile@4.2.1/node_modules/vfile/index.js"(exports, module) {
|
|
95321
94427
|
"use strict";
|
|
95322
|
-
module.exports =
|
|
94428
|
+
module.exports = require_lib4();
|
|
95323
94429
|
}
|
|
95324
94430
|
});
|
|
95325
94431
|
|
|
@@ -192244,7 +191350,7 @@ import { fileURLToPath as fileURLToPath22 } from "url";
|
|
|
192244
191350
|
import v82 from "v8";
|
|
192245
191351
|
import assert22 from "assert";
|
|
192246
191352
|
import { format as format3, inspect as inspect2 } from "util";
|
|
192247
|
-
import { createRequire as
|
|
191353
|
+
import { createRequire as createRequire3 } from "module";
|
|
192248
191354
|
import path10 from "path";
|
|
192249
191355
|
import url from "url";
|
|
192250
191356
|
import fs62 from "fs";
|
|
@@ -195934,7 +195040,7 @@ function importFromFile(specifier, parent) {
|
|
|
195934
195040
|
return import(url2);
|
|
195935
195041
|
}
|
|
195936
195042
|
function requireFromFile(id, parent) {
|
|
195937
|
-
const require22 =
|
|
195043
|
+
const require22 = createRequire3(parent);
|
|
195938
195044
|
return require22(id);
|
|
195939
195045
|
}
|
|
195940
195046
|
async function loadExternalConfig(externalConfig, configFile) {
|
|
@@ -199199,7 +198305,7 @@ async function clearCache3() {
|
|
|
199199
198305
|
clearCache();
|
|
199200
198306
|
clearCache2();
|
|
199201
198307
|
}
|
|
199202
|
-
var require2, __filename, __dirname, __create2, __defProp3, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __typeError, __defNormalProp, __require2, __esm2, __commonJS2, __export3, __copyProps2, __toESM2, __toCommonJS, __publicField, __accessCheck, __privateGet, __privateAdd, __privateSet, __privateMethod, require_base, require_params, require_line, require_create2, require_array, require_errno, require_fs, require_path, require_is_extglob, require_is_glob, require_glob_parent, require_utils, require_stringify, require_is_number, require_to_regex_range, require_fill_range, require_compile, require_expand2, require_constants2, require_parse4, require_braces, require_constants22, require_utils2, require_scan2, require_parse22, require_picomatch, require_picomatch2, require_micromatch, require_pattern, require_merge22, require_stream2, require_string, require_utils3, require_tasks, require_async2, require_sync, require_fs2, require_settings, require_out, require_queue_microtask, require_run_parallel, require_constants3, require_fs3, require_utils4, require_common2, require_async22, require_sync2, require_fs4, require_settings2, require_out2, require_reusify, require_queue2, require_common22, require_reader, require_async3, require_async4, require_stream22, require_sync3, require_sync4, require_settings3, require_out3, require_reader2, require_stream3, require_async5, require_matcher, require_partial, require_deep, require_entry, require_error2, require_entry2, require_provider, require_async6, require_stream4, require_sync5, require_sync6, require_settings4, require_out4, ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, source_exports, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk13, chalkStderr, source_default, init_source2, require_debug, require_constants4, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map3, require_yallist2, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package2, require_src4, require_vendors, require_ci_info, require_parser, require_create_datetime, require_format_num, require_create_datetime_float, require_create_date, require_create_time, require_toml_parser, require_parse_pretty_error, require_parse_async, require_js_tokens, require_identifier, require_keyword,
|
|
198308
|
+
var require2, __filename, __dirname, __create2, __defProp3, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __typeError, __defNormalProp, __require2, __esm2, __commonJS2, __export3, __copyProps2, __toESM2, __toCommonJS, __publicField, __accessCheck, __privateGet, __privateAdd, __privateSet, __privateMethod, require_base, require_params, require_line, require_create2, require_array, require_errno, require_fs, require_path, require_is_extglob, require_is_glob, require_glob_parent, require_utils, require_stringify, require_is_number, require_to_regex_range, require_fill_range, require_compile, require_expand2, require_constants2, require_parse4, require_braces, require_constants22, require_utils2, require_scan2, require_parse22, require_picomatch, require_picomatch2, require_micromatch, require_pattern, require_merge22, require_stream2, require_string, require_utils3, require_tasks, require_async2, require_sync, require_fs2, require_settings, require_out, require_queue_microtask, require_run_parallel, require_constants3, require_fs3, require_utils4, require_common2, require_async22, require_sync2, require_fs4, require_settings2, require_out2, require_reusify, require_queue2, require_common22, require_reader, require_async3, require_async4, require_stream22, require_sync3, require_sync4, require_settings3, require_out3, require_reader2, require_stream3, require_async5, require_matcher, require_partial, require_deep, require_entry, require_error2, require_entry2, require_provider, require_async6, require_stream4, require_sync5, require_sync6, require_settings4, require_out4, ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, source_exports, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk13, chalkStderr, source_default, init_source2, require_debug, require_constants4, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map3, require_yallist2, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package2, require_src4, require_vendors, require_ci_info, require_parser, require_create_datetime, require_format_num, require_create_datetime_float, require_create_date, require_create_time, require_toml_parser, require_parse_pretty_error, require_parse_async, require_js_tokens, require_identifier, require_keyword, require_lib5, require_picocolors, require_lib22, require_lib32, require_ignore, require_readlines, require_array2, src_exports, import_create2, import_fast_glob, apiDescriptor, commonDeprecatedHandler, VALUE_NOT_EXIST, VALUE_UNCHANGED, INDENTATION, commonInvalidHandler, array, characterCodeCache, levenUnknownHandler, HANDLER_KEYS, Schema, AliasSchema, AnySchema, ArraySchema, BooleanSchema, ChoiceSchema, NumberSchema, IntegerSchema, StringSchema, defaultDescriptor, defaultUnknownHandler, defaultInvalidHandler, defaultDeprecatedHandler, Normalizer, errors_exports, ConfigError, UndefinedParserError, ArgExpansionBailout, import_micromatch, isUrlInstance, isUrlString, isUrl, toPath3, partition_default2, import_editorconfig, is_directory_default, toAbsolutePath, iterate_directory_up_default, _names, _filter, _stopDirectory, _cache, _Searcher_instances, searchInDirectory_fn, Searcher, searcher_default, MARKERS, searcher, searchOptions, editorconfig_to_prettier_default, editorconfigCache, import_ci_info, stdin, mockable, mockable_default, is_file_default, import_parse_async, isNothing_1, isObject_1, toArray_1, repeat_1, isNegativeZero_1, extend_1, common2, exception, snippet, TYPE_CONSTRUCTOR_OPTIONS, YAML_NODE_KINDS, type, schema, str, seq, map10, failsafe, _null, bool, int, YAML_FLOAT_PATTERN, SCIENTIFIC_WITHOUT_DOT, float, json, core, YAML_DATE_REGEXP, YAML_TIMESTAMP_REGEXP, timestamp, merge3, BASE64_MAP, binary, _hasOwnProperty$3, _toString$2, omap, _toString$1, pairs2, _hasOwnProperty$2, set2, _default, _hasOwnProperty$1, CONTEXT_FLOW_IN, CONTEXT_FLOW_OUT, CONTEXT_BLOCK_IN, CONTEXT_BLOCK_OUT, CHOMPING_CLIP, CHOMPING_STRIP, CHOMPING_KEEP, PATTERN_NON_PRINTABLE, PATTERN_NON_ASCII_LINE_BREAKS, PATTERN_FLOW_INDICATORS, PATTERN_TAG_HANDLE, PATTERN_TAG_URI, simpleEscapeCheck, simpleEscapeMap, i3, directiveHandlers, loadAll_1, load_1, loader, ESCAPE_SEQUENCES, load2, loadAll, safeLoad, safeLoadAll, safeDump, Space_Separator, ID_Start, ID_Continue, unicode, util2, source, parseState, stack, pos, line2, column, token, key, root2, parse22, lexState, buffer, doubleQuote, sign, c4, lexStates, parseStates, dist_default, import_code_frame, safeLastIndexOf, getCodePoint2, _message, _JSONError, JSONError, generateCodeFrame, getErrorLocation, addCodePointToUnexpectedToken, read_file_default, loaders, loaders_default, CONFIG_FILE_NAMES, config_searcher_default, own2, classRegExp2, kTypes2, codes2, messages2, nodeInternalPrefix2, userStackTraceLimit2, captureLargerStackTrace2, hasOwnProperty5, ERR_INVALID_PACKAGE_CONFIG2, cache2, ERR_UNKNOWN_FILE_EXTENSION2, hasOwnProperty22, extensionFormatMap2, protocolHandlers2, ERR_INVALID_ARG_VALUE, DEFAULT_CONDITIONS, DEFAULT_CONDITIONS_SET2, RegExpPrototypeSymbolReplace2, ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG22, ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_RESOLVE_REQUEST2, own22, invalidSegmentRegEx2, deprecatedInvalidSegmentRegEx2, invalidPackageNameRegEx2, patternRegEx2, encodedSeparatorRegEx2, emittedPackageWarnings2, doubleSlashRegEx2, import_from_file_default, require_from_file_default, requireErrorCodesShouldBeIgnored, load_external_config_default, load_config_default, loadCache, searchCache, stringReplaceAll22, string_replace_all_default2, import_ignore, createIgnore, slash, import_n_readlines, get_interpreter_default, getFileBasename, infer_parser_default, get_file_info_default, import_array2, DOC_TYPE_STRING2, DOC_TYPE_ARRAY2, DOC_TYPE_CURSOR2, DOC_TYPE_INDENT2, DOC_TYPE_ALIGN2, DOC_TYPE_TRIM2, DOC_TYPE_GROUP2, DOC_TYPE_FILL2, DOC_TYPE_IF_BREAK2, DOC_TYPE_INDENT_IF_BREAK2, DOC_TYPE_LINE_SUFFIX2, DOC_TYPE_LINE_SUFFIX_BOUNDARY2, DOC_TYPE_LINE2, DOC_TYPE_LABEL2, DOC_TYPE_BREAK_PARENT2, VALID_OBJECT_DOC_TYPES2, get_doc_type_default2, disjunctionListFormat2, InvalidDocError2, invalid_doc_error_default2, traverseDocOnExitStackMarker2, traverse_doc_default2, noop4, assertDoc2, assertDocArray2, breakParent2, hardlineWithoutBreakParent2, line22, hardline2, cursor2, at10, at_default2, emoji_regex_default2, _isNarrowWidth2, notAsciiRegex2, get_string_width_default2, MODE_BREAK2, MODE_FLAT2, CURSOR_PLACEHOLDER2, get_alignment_size_default, _AstPath_instances, getNodeStackIndex_fn, getAncestors_fn, AstPath, ast_path_default, is_object_default, skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine, skip_newline_default, has_newline_default, is_non_empty_array_default, nonTraversableKeys, defaultGetVisitorKeys, create_get_visitor_keys_function_default, childNodesCache, returnFalse, isAllEmptyAndNoLineBreak, is_previous_line_empty_default, create_print_pre_check_function_default, core_options_evaluate_default, hasDeprecationWarned, normalize_options_default, arrayFindLast, array_find_last_default, formatOptionsHiddenDefaults, normalize_format_options_default, import_code_frame2, parse_default, print_ignored_default, get_cursor_node_default, massage_ast_default, isJsonParser, jsonSourceElements, graphqlSourceElements, BOM, CURSOR, option_categories_exports, CATEGORY_CONFIG, CATEGORY_EDITOR, CATEGORY_FORMAT, CATEGORY_OTHER, CATEGORY_OUTPUT, CATEGORY_GLOBAL, CATEGORY_SPECIAL, builtin_plugins_proxy_exports, languages_evaluate_default, common_options_evaluate_default, options, options_default, languages_evaluate_default2, options2, options_default2, languages_evaluate_default3, languages_evaluate_default4, CATEGORY_HTML, options3, options_default3, languages_evaluate_default5, CATEGORY_JAVASCRIPT, options4, options_default4, languages_evaluate_default6, languages_evaluate_default7, options5, options_default5, languages_evaluate_default8, options6, options_default6, options7, languages, parsers, printers, load_builtin_plugins_default, import_from_directory_default, cache22, load_plugins_default, object_omit_default, version_evaluate_default, public_exports2, skip_inline_comment_default, skip_trailing_comment_default, get_next_non_space_non_comment_character_index_default, is_next_line_empty_default, get_indent_size_default, get_max_continuous_count_default, get_next_non_space_non_comment_character_default, has_newline_in_range_default, has_spaces_default, make_string_default, formatWithCursor2, getFileInfo2, getSupportInfo2, sharedWithCli, debugApis, src_default;
|
|
199203
198309
|
var init_prettier = __esm({
|
|
199204
198310
|
"node_modules/.pnpm/prettier@3.3.2/node_modules/prettier/index.mjs"() {
|
|
199205
198311
|
init_doc();
|
|
@@ -199267,7 +198373,7 @@ var init_prettier = __esm({
|
|
|
199267
198373
|
Diff.prototype = {
|
|
199268
198374
|
/*istanbul ignore start*/
|
|
199269
198375
|
/*istanbul ignore end*/
|
|
199270
|
-
diff: function
|
|
198376
|
+
diff: function diff(oldString, newString) {
|
|
199271
198377
|
var _options$timeout;
|
|
199272
198378
|
var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
199273
198379
|
var callback = options8.callback;
|
|
@@ -199455,7 +198561,7 @@ var init_prettier = __esm({
|
|
|
199455
198561
|
return chars.join("");
|
|
199456
198562
|
}
|
|
199457
198563
|
};
|
|
199458
|
-
function buildValues(
|
|
198564
|
+
function buildValues(diff, lastComponent, newString, oldString, useLongestToken) {
|
|
199459
198565
|
var components = [];
|
|
199460
198566
|
var nextComponent;
|
|
199461
198567
|
while (lastComponent) {
|
|
@@ -199475,16 +198581,16 @@ var init_prettier = __esm({
|
|
|
199475
198581
|
var oldValue = oldString[oldPos + i4];
|
|
199476
198582
|
return oldValue.length > value22.length ? oldValue : value22;
|
|
199477
198583
|
});
|
|
199478
|
-
component.value =
|
|
198584
|
+
component.value = diff.join(value2);
|
|
199479
198585
|
} else {
|
|
199480
|
-
component.value =
|
|
198586
|
+
component.value = diff.join(newString.slice(newPos, newPos + component.count));
|
|
199481
198587
|
}
|
|
199482
198588
|
newPos += component.count;
|
|
199483
198589
|
if (!component.added) {
|
|
199484
198590
|
oldPos += component.count;
|
|
199485
198591
|
}
|
|
199486
198592
|
} else {
|
|
199487
|
-
component.value =
|
|
198593
|
+
component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));
|
|
199488
198594
|
oldPos += component.count;
|
|
199489
198595
|
if (componentPos && components[componentPos - 1].added) {
|
|
199490
198596
|
var tmp = components[componentPos - 1];
|
|
@@ -199494,7 +198600,7 @@ var init_prettier = __esm({
|
|
|
199494
198600
|
}
|
|
199495
198601
|
}
|
|
199496
198602
|
var finalComponent = components[componentLen - 1];
|
|
199497
|
-
if (componentLen > 1 && typeof finalComponent.value === "string" && (finalComponent.added || finalComponent.removed) &&
|
|
198603
|
+
if (componentLen > 1 && typeof finalComponent.value === "string" && (finalComponent.added || finalComponent.removed) && diff.equals("", finalComponent.value)) {
|
|
199498
198604
|
components[componentLen - 2].value += finalComponent.value;
|
|
199499
198605
|
components.pop();
|
|
199500
198606
|
}
|
|
@@ -199626,16 +198732,16 @@ var init_prettier = __esm({
|
|
|
199626
198732
|
if (typeof options8.context === "undefined") {
|
|
199627
198733
|
options8.context = 4;
|
|
199628
198734
|
}
|
|
199629
|
-
var
|
|
198735
|
+
var diff = (
|
|
199630
198736
|
/*istanbul ignore start*/
|
|
199631
198737
|
(0, /*istanbul ignore end*/
|
|
199632
198738
|
/*istanbul ignore start*/
|
|
199633
198739
|
_line.diffLines)(oldStr, newStr, options8)
|
|
199634
198740
|
);
|
|
199635
|
-
if (!
|
|
198741
|
+
if (!diff) {
|
|
199636
198742
|
return;
|
|
199637
198743
|
}
|
|
199638
|
-
|
|
198744
|
+
diff.push({
|
|
199639
198745
|
value: "",
|
|
199640
198746
|
lines: []
|
|
199641
198747
|
});
|
|
@@ -199647,12 +198753,12 @@ var init_prettier = __esm({
|
|
|
199647
198753
|
var hunks = [];
|
|
199648
198754
|
var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1;
|
|
199649
198755
|
var _loop = function _loop2(i22) {
|
|
199650
|
-
var current2 =
|
|
198756
|
+
var current2 = diff[i22], lines = current2.lines || current2.value.replace(/\n$/, "").split("\n");
|
|
199651
198757
|
current2.lines = lines;
|
|
199652
198758
|
if (current2.added || current2.removed) {
|
|
199653
198759
|
var _curRange;
|
|
199654
198760
|
if (!oldRangeStart) {
|
|
199655
|
-
var prev =
|
|
198761
|
+
var prev = diff[i22 - 1];
|
|
199656
198762
|
oldRangeStart = oldLine;
|
|
199657
198763
|
newRangeStart = newLine;
|
|
199658
198764
|
if (prev) {
|
|
@@ -199680,7 +198786,7 @@ var init_prettier = __esm({
|
|
|
199680
198786
|
}
|
|
199681
198787
|
} else {
|
|
199682
198788
|
if (oldRangeStart) {
|
|
199683
|
-
if (lines.length <= options8.context * 2 && i22 <
|
|
198789
|
+
if (lines.length <= options8.context * 2 && i22 < diff.length - 2) {
|
|
199684
198790
|
var _curRange2;
|
|
199685
198791
|
(_curRange2 = /*istanbul ignore end*/
|
|
199686
198792
|
curRange).push.apply(
|
|
@@ -199712,7 +198818,7 @@ var init_prettier = __esm({
|
|
|
199712
198818
|
newLines: newLine - newRangeStart + contextSize,
|
|
199713
198819
|
lines: curRange
|
|
199714
198820
|
};
|
|
199715
|
-
if (i22 >=
|
|
198821
|
+
if (i22 >= diff.length - 2 && lines.length <= options8.context) {
|
|
199716
198822
|
var oldEOFNewline = /\n$/.test(oldStr);
|
|
199717
198823
|
var newEOFNewline = /\n$/.test(newStr);
|
|
199718
198824
|
var noNlBeforeAdds = lines.length == 0 && curRange.length > hunk.oldLines;
|
|
@@ -199733,7 +198839,7 @@ var init_prettier = __esm({
|
|
|
199733
198839
|
newLine += lines.length;
|
|
199734
198840
|
}
|
|
199735
198841
|
};
|
|
199736
|
-
for (var i4 = 0; i4 <
|
|
198842
|
+
for (var i4 = 0; i4 < diff.length; i4++) {
|
|
199737
198843
|
_loop(
|
|
199738
198844
|
/*istanbul ignore end*/
|
|
199739
198845
|
i4
|
|
@@ -199747,19 +198853,19 @@ var init_prettier = __esm({
|
|
|
199747
198853
|
hunks
|
|
199748
198854
|
};
|
|
199749
198855
|
}
|
|
199750
|
-
function formatPatch(
|
|
199751
|
-
if (Array.isArray(
|
|
199752
|
-
return
|
|
198856
|
+
function formatPatch(diff) {
|
|
198857
|
+
if (Array.isArray(diff)) {
|
|
198858
|
+
return diff.map(formatPatch).join("\n");
|
|
199753
198859
|
}
|
|
199754
198860
|
var ret = [];
|
|
199755
|
-
if (
|
|
199756
|
-
ret.push("Index: " +
|
|
198861
|
+
if (diff.oldFileName == diff.newFileName) {
|
|
198862
|
+
ret.push("Index: " + diff.oldFileName);
|
|
199757
198863
|
}
|
|
199758
198864
|
ret.push("===================================================================");
|
|
199759
|
-
ret.push("--- " +
|
|
199760
|
-
ret.push("+++ " +
|
|
199761
|
-
for (var i4 = 0; i4 <
|
|
199762
|
-
var hunk =
|
|
198865
|
+
ret.push("--- " + diff.oldFileName + (typeof diff.oldHeader === "undefined" ? "" : " " + diff.oldHeader));
|
|
198866
|
+
ret.push("+++ " + diff.newFileName + (typeof diff.newHeader === "undefined" ? "" : " " + diff.newHeader));
|
|
198867
|
+
for (var i4 = 0; i4 < diff.hunks.length; i4++) {
|
|
198868
|
+
var hunk = diff.hunks[i4];
|
|
199763
198869
|
if (hunk.oldLines === 0) {
|
|
199764
198870
|
hunk.oldStart -= 1;
|
|
199765
198871
|
}
|
|
@@ -200373,9 +199479,9 @@ var init_prettier = __esm({
|
|
|
200373
199479
|
if (!tok.isPadded) {
|
|
200374
199480
|
return value2;
|
|
200375
199481
|
}
|
|
200376
|
-
let
|
|
199482
|
+
let diff = Math.abs(tok.maxLen - String(value2).length);
|
|
200377
199483
|
let relax = options8.relaxZeros !== false;
|
|
200378
|
-
switch (
|
|
199484
|
+
switch (diff) {
|
|
200379
199485
|
case 0:
|
|
200380
199486
|
return "";
|
|
200381
199487
|
case 1:
|
|
@@ -200383,7 +199489,7 @@ var init_prettier = __esm({
|
|
|
200383
199489
|
case 2:
|
|
200384
199490
|
return relax ? "0{0,2}" : "00";
|
|
200385
199491
|
default: {
|
|
200386
|
-
return relax ? `0{0,${
|
|
199492
|
+
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
|
200387
199493
|
}
|
|
200388
199494
|
}
|
|
200389
199495
|
}
|
|
@@ -200398,7 +199504,7 @@ var init_prettier = __esm({
|
|
|
200398
199504
|
var util22 = __require2("util");
|
|
200399
199505
|
var toRegexRange = require_to_regex_range();
|
|
200400
199506
|
var isObject32 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
200401
|
-
var
|
|
199507
|
+
var transform4 = (toNumber) => {
|
|
200402
199508
|
return (value2) => toNumber === true ? Number(value2) : String(value2);
|
|
200403
199509
|
};
|
|
200404
199510
|
var isValidValue = (value2) => {
|
|
@@ -200509,7 +199615,7 @@ var init_prettier = __esm({
|
|
|
200509
199615
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
200510
199616
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
200511
199617
|
let toNumber = padded === false && stringify(start2, end2, options8) === false;
|
|
200512
|
-
let format32 = options8.transform ||
|
|
199618
|
+
let format32 = options8.transform || transform4(toNumber);
|
|
200513
199619
|
if (options8.toRegex && step === 1) {
|
|
200514
199620
|
return toRange(toMaxLen(start2, maxLen), toMaxLen(end2, maxLen), true, options8);
|
|
200515
199621
|
}
|
|
@@ -206510,11 +205616,11 @@ var init_prettier = __esm({
|
|
|
206510
205616
|
return false;
|
|
206511
205617
|
}
|
|
206512
205618
|
var stale = false;
|
|
206513
|
-
var
|
|
205619
|
+
var diff = Date.now() - hit.now;
|
|
206514
205620
|
if (hit.maxAge) {
|
|
206515
|
-
stale =
|
|
205621
|
+
stale = diff > hit.maxAge;
|
|
206516
205622
|
} else {
|
|
206517
|
-
stale = self2[MAX_AGE] &&
|
|
205623
|
+
stale = self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
206518
205624
|
}
|
|
206519
205625
|
return stale;
|
|
206520
205626
|
}
|
|
@@ -209851,7 +208957,7 @@ var init_prettier = __esm({
|
|
|
209851
208957
|
}
|
|
209852
208958
|
}
|
|
209853
208959
|
});
|
|
209854
|
-
|
|
208960
|
+
require_lib5 = __commonJS2({
|
|
209855
208961
|
"node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
209856
208962
|
"use strict";
|
|
209857
208963
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -209973,7 +209079,7 @@ var init_prettier = __esm({
|
|
|
209973
209079
|
exports.default = highlight;
|
|
209974
209080
|
exports.shouldHighlight = shouldHighlight;
|
|
209975
209081
|
var _jsTokens = require_js_tokens();
|
|
209976
|
-
var _helperValidatorIdentifier =
|
|
209082
|
+
var _helperValidatorIdentifier = require_lib5();
|
|
209977
209083
|
var _picocolors = _interopRequireWildcard(require_picocolors(), true);
|
|
209978
209084
|
function _getRequireWildcardCache(e3) {
|
|
209979
209085
|
if ("function" != typeof WeakMap) return null;
|
|
@@ -214489,14 +213595,31 @@ ${error.message}`;
|
|
|
214489
213595
|
}
|
|
214490
213596
|
});
|
|
214491
213597
|
|
|
214492
|
-
// node_modules/.pnpm/c12@
|
|
213598
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
214493
213599
|
init_dist();
|
|
214494
|
-
var dotenv = __toESM(require_main(), 1);
|
|
214495
|
-
var import_jiti = __toESM(require_lib(), 1);
|
|
214496
213600
|
import { existsSync as existsSync4, promises as promises3 } from "node:fs";
|
|
214497
213601
|
import { rm as rm2, readFile as readFile3 } from "node:fs/promises";
|
|
214498
213602
|
import { homedir as homedir3 } from "node:os";
|
|
214499
213603
|
|
|
213604
|
+
// node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/lib/jiti.mjs
|
|
213605
|
+
var import_jiti = __toESM(require_jiti(), 1);
|
|
213606
|
+
var import_babel = __toESM(require_babel(), 1);
|
|
213607
|
+
import { createRequire } from "node:module";
|
|
213608
|
+
function onError(err) {
|
|
213609
|
+
throw err;
|
|
213610
|
+
}
|
|
213611
|
+
var nativeImport = (id) => import(id);
|
|
213612
|
+
function createJiti(id, opts = {}) {
|
|
213613
|
+
if (!opts.transform) {
|
|
213614
|
+
opts = { ...opts, transform: import_babel.default };
|
|
213615
|
+
}
|
|
213616
|
+
return (0, import_jiti.default)(id, opts, {
|
|
213617
|
+
onError,
|
|
213618
|
+
nativeImport,
|
|
213619
|
+
createRequire
|
|
213620
|
+
});
|
|
213621
|
+
}
|
|
213622
|
+
|
|
214500
213623
|
// node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
214501
213624
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
214502
213625
|
import { resolve as resolve2 } from "node:path";
|
|
@@ -214732,7 +213855,7 @@ function readUser(options8) {
|
|
|
214732
213855
|
return read(options8);
|
|
214733
213856
|
}
|
|
214734
213857
|
|
|
214735
|
-
// node_modules/.pnpm/c12@
|
|
213858
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
214736
213859
|
init_defu();
|
|
214737
213860
|
|
|
214738
213861
|
// node_modules/.pnpm/ohash@1.1.3/node_modules/ohash/dist/index.mjs
|
|
@@ -215337,7 +214460,7 @@ function hash(object2, options8 = {}) {
|
|
|
215337
214460
|
return sha256base64(hashed).slice(0, 10);
|
|
215338
214461
|
}
|
|
215339
214462
|
|
|
215340
|
-
// node_modules/.pnpm/pkg-types@1.
|
|
214463
|
+
// node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
|
|
215341
214464
|
init_dist();
|
|
215342
214465
|
import { statSync as statSync2, promises as promises2 } from "node:fs";
|
|
215343
214466
|
|
|
@@ -220738,8 +219861,13 @@ Parser.acorn = {
|
|
|
220738
219861
|
// node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
|
|
220739
219862
|
init_dist2();
|
|
220740
219863
|
init_dist();
|
|
220741
|
-
import { builtinModules, createRequire } from "node:module";
|
|
219864
|
+
import { builtinModules, createRequire as createRequire2 } from "node:module";
|
|
220742
219865
|
import fs, { realpathSync, statSync, promises } from "node:fs";
|
|
219866
|
+
|
|
219867
|
+
// node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
|
|
219868
|
+
init_confbox_bcd59e75();
|
|
219869
|
+
|
|
219870
|
+
// node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
|
|
220743
219871
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
220744
219872
|
import assert from "node:assert";
|
|
220745
219873
|
import process$1 from "node:process";
|
|
@@ -222093,10 +221221,7 @@ function resolvePath(id, options8) {
|
|
|
222093
221221
|
}
|
|
222094
221222
|
}
|
|
222095
221223
|
|
|
222096
|
-
// node_modules/.pnpm/
|
|
222097
|
-
init_confbox_bcd59e75();
|
|
222098
|
-
|
|
222099
|
-
// node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
|
|
221224
|
+
// node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
|
|
222100
221225
|
var defaultFindOptions = {
|
|
222101
221226
|
startingFrom: ".",
|
|
222102
221227
|
rootPattern: /^node_modules$/,
|
|
@@ -222213,7 +221338,8 @@ async function findWorkspaceDir(id = process.cwd(), options8 = {}) {
|
|
|
222213
221338
|
throw new Error("Cannot detect workspace root from " + id);
|
|
222214
221339
|
}
|
|
222215
221340
|
|
|
222216
|
-
// node_modules/.pnpm/c12@
|
|
221341
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
|
|
221342
|
+
var dotenv = __toESM(require_main(), 1);
|
|
222217
221343
|
async function setupDotenv(options8) {
|
|
222218
221344
|
const targetEnvironment = options8.env ?? process.env;
|
|
222219
221345
|
const environment = await loadDotenv({
|
|
@@ -222262,7 +221388,7 @@ function interpolate(target, source2 = {}, parse7 = (v10) => v10) {
|
|
|
222262
221388
|
let value22, replacePart;
|
|
222263
221389
|
if (prefix === "\\") {
|
|
222264
221390
|
replacePart = parts[0] || "";
|
|
222265
|
-
value22 = replacePart.replace(
|
|
221391
|
+
value22 = replacePart.replace(String.raw`\$`, "$");
|
|
222266
221392
|
} else {
|
|
222267
221393
|
const key2 = parts[2];
|
|
222268
221394
|
replacePart = (parts[0] || "").slice(prefix.length);
|
|
@@ -222321,10 +221447,10 @@ async function loadConfig(options8) {
|
|
|
222321
221447
|
...options8.extend
|
|
222322
221448
|
};
|
|
222323
221449
|
}
|
|
222324
|
-
|
|
221450
|
+
const _merger = options8.merger || defu;
|
|
221451
|
+
options8.jiti = options8.jiti || createJiti(join(options8.cwd, options8.configFile), {
|
|
222325
221452
|
interopDefault: true,
|
|
222326
|
-
|
|
222327
|
-
esmResolve: true,
|
|
221453
|
+
moduleCache: false,
|
|
222328
221454
|
extensions: [...SUPPORTED_EXTENSIONS],
|
|
222329
221455
|
...options8.jitiOptions
|
|
222330
221456
|
});
|
|
@@ -222334,17 +221460,24 @@ async function loadConfig(options8) {
|
|
|
222334
221460
|
configFile: resolve(options8.cwd, options8.configFile),
|
|
222335
221461
|
layers: []
|
|
222336
221462
|
};
|
|
221463
|
+
const _configs = {
|
|
221464
|
+
overrides: options8.overrides,
|
|
221465
|
+
main: void 0,
|
|
221466
|
+
rc: void 0,
|
|
221467
|
+
packageJson: void 0,
|
|
221468
|
+
defaultConfig: options8.defaultConfig
|
|
221469
|
+
};
|
|
222337
221470
|
if (options8.dotenv) {
|
|
222338
221471
|
await setupDotenv({
|
|
222339
221472
|
cwd: options8.cwd,
|
|
222340
221473
|
...options8.dotenv === true ? {} : options8.dotenv
|
|
222341
221474
|
});
|
|
222342
221475
|
}
|
|
222343
|
-
const
|
|
222344
|
-
if (configFile) {
|
|
222345
|
-
|
|
221476
|
+
const _mainConfig = await resolveConfig(".", options8);
|
|
221477
|
+
if (_mainConfig.configFile) {
|
|
221478
|
+
_configs.main = _mainConfig.config;
|
|
221479
|
+
r5.configFile = _mainConfig.configFile;
|
|
222346
221480
|
}
|
|
222347
|
-
const configRC = {};
|
|
222348
221481
|
if (options8.rcFile) {
|
|
222349
221482
|
const rcSources = [];
|
|
222350
221483
|
rcSources.push(read({ name: options8.rcFile, dir: options8.cwd }));
|
|
@@ -222356,9 +221489,8 @@ async function loadConfig(options8) {
|
|
|
222356
221489
|
}
|
|
222357
221490
|
rcSources.push(readUser({ name: options8.rcFile, dir: options8.cwd }));
|
|
222358
221491
|
}
|
|
222359
|
-
|
|
221492
|
+
_configs.rc = _merger({}, ...rcSources);
|
|
222360
221493
|
}
|
|
222361
|
-
const pkgJson = {};
|
|
222362
221494
|
if (options8.packageJson) {
|
|
222363
221495
|
const keys2 = (Array.isArray(options8.packageJson) ? options8.packageJson : [
|
|
222364
221496
|
typeof options8.packageJson === "string" ? options8.packageJson : options8.name
|
|
@@ -222366,34 +221498,42 @@ async function loadConfig(options8) {
|
|
|
222366
221498
|
const pkgJsonFile = await readPackageJSON(options8.cwd).catch(() => {
|
|
222367
221499
|
});
|
|
222368
221500
|
const values2 = keys2.map((key2) => pkgJsonFile?.[key2]);
|
|
222369
|
-
|
|
222370
|
-
}
|
|
222371
|
-
|
|
222372
|
-
|
|
222373
|
-
|
|
222374
|
-
|
|
222375
|
-
|
|
222376
|
-
|
|
221501
|
+
_configs.packageJson = _merger({}, ...values2);
|
|
221502
|
+
}
|
|
221503
|
+
const configs = {};
|
|
221504
|
+
for (const key2 in _configs) {
|
|
221505
|
+
const value2 = _configs[key2];
|
|
221506
|
+
configs[key2] = await (typeof value2 === "function" ? value2({ configs }) : value2);
|
|
221507
|
+
}
|
|
221508
|
+
r5.config = _merger(
|
|
221509
|
+
configs.overrides,
|
|
221510
|
+
configs.main,
|
|
221511
|
+
configs.rc,
|
|
221512
|
+
configs.packageJson,
|
|
221513
|
+
configs.defaultConfig
|
|
222377
221514
|
);
|
|
222378
221515
|
if (options8.extend) {
|
|
222379
221516
|
await extendConfig(r5.config, options8);
|
|
222380
221517
|
r5.layers = r5.config._layers;
|
|
222381
221518
|
delete r5.config._layers;
|
|
222382
|
-
r5.config =
|
|
221519
|
+
r5.config = _merger(r5.config, ...r5.layers.map((e3) => e3.config));
|
|
222383
221520
|
}
|
|
222384
221521
|
const baseLayers = [
|
|
222385
|
-
|
|
222386
|
-
config:
|
|
221522
|
+
configs.overrides && {
|
|
221523
|
+
config: configs.overrides,
|
|
222387
221524
|
configFile: void 0,
|
|
222388
221525
|
cwd: void 0
|
|
222389
221526
|
},
|
|
222390
|
-
{ config:
|
|
222391
|
-
|
|
222392
|
-
|
|
221527
|
+
{ config: configs.main, configFile: options8.configFile, cwd: options8.cwd },
|
|
221528
|
+
configs.rc && { config: configs.rc, configFile: options8.rcFile },
|
|
221529
|
+
configs.packageJson && {
|
|
221530
|
+
config: configs.packageJson,
|
|
221531
|
+
configFile: "package.json"
|
|
221532
|
+
}
|
|
222393
221533
|
].filter((l4) => l4 && l4.config);
|
|
222394
221534
|
r5.layers = [...baseLayers, ...r5.layers];
|
|
222395
221535
|
if (options8.defaults) {
|
|
222396
|
-
r5.config =
|
|
221536
|
+
r5.config = _merger(r5.config, options8.defaults);
|
|
222397
221537
|
}
|
|
222398
221538
|
if (options8.omit$Keys) {
|
|
222399
221539
|
for (const key2 in r5.config) {
|
|
@@ -222472,7 +221612,8 @@ async function resolveConfig(source2, options8, sourceOptions = {}) {
|
|
|
222472
221612
|
return res2;
|
|
222473
221613
|
}
|
|
222474
221614
|
}
|
|
222475
|
-
|
|
221615
|
+
const _merger = options8.merger || defu;
|
|
221616
|
+
if (options8.giget !== false && GIGET_PREFIXES.some((prefix) => source2.startsWith(prefix))) {
|
|
222476
221617
|
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist4(), dist_exports));
|
|
222477
221618
|
const cloneName = source2.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source2);
|
|
222478
221619
|
let cloneDir;
|
|
@@ -222500,7 +221641,7 @@ async function resolveConfig(source2, options8, sourceOptions = {}) {
|
|
|
222500
221641
|
}
|
|
222501
221642
|
const tryResolve = (id) => {
|
|
222502
221643
|
try {
|
|
222503
|
-
return options8.jiti.
|
|
221644
|
+
return options8.jiti.esmResolve(id, { try: true });
|
|
222504
221645
|
} catch {
|
|
222505
221646
|
}
|
|
222506
221647
|
};
|
|
@@ -222530,7 +221671,7 @@ async function resolveConfig(source2, options8, sourceOptions = {}) {
|
|
|
222530
221671
|
const contents = await readFile3(res.configFile, "utf8");
|
|
222531
221672
|
res.config = asyncLoader(contents);
|
|
222532
221673
|
} else {
|
|
222533
|
-
res.config = options8.jiti(res.configFile);
|
|
221674
|
+
res.config = await options8.jiti.import(res.configFile);
|
|
222534
221675
|
}
|
|
222535
221676
|
if (res.config instanceof Function) {
|
|
222536
221677
|
res.config = await res.config();
|
|
@@ -222541,19 +221682,23 @@ async function resolveConfig(source2, options8, sourceOptions = {}) {
|
|
|
222541
221682
|
...res.config.$env?.[options8.envName]
|
|
222542
221683
|
};
|
|
222543
221684
|
if (Object.keys(envConfig).length > 0) {
|
|
222544
|
-
res.config =
|
|
221685
|
+
res.config = _merger(envConfig, res.config);
|
|
222545
221686
|
}
|
|
222546
221687
|
}
|
|
222547
221688
|
res.meta = defu(res.sourceOptions.meta, res.config.$meta);
|
|
222548
221689
|
delete res.config.$meta;
|
|
222549
221690
|
if (res.sourceOptions.overrides) {
|
|
222550
|
-
res.config =
|
|
221691
|
+
res.config = _merger(res.sourceOptions.overrides, res.config);
|
|
222551
221692
|
}
|
|
222552
221693
|
res.configFile = _normalize(res.configFile);
|
|
222553
221694
|
res.source = _normalize(res.source);
|
|
222554
221695
|
return res;
|
|
222555
221696
|
}
|
|
222556
221697
|
|
|
221698
|
+
// node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs
|
|
221699
|
+
init_defu();
|
|
221700
|
+
var import_dotenv = __toESM(require_main(), 1);
|
|
221701
|
+
|
|
222557
221702
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
222558
221703
|
var import_deepmerge = __toESM(require_cjs());
|
|
222559
221704
|
|
|
@@ -223401,12 +222546,12 @@ var ZodType = class {
|
|
|
223401
222546
|
and(incoming) {
|
|
223402
222547
|
return ZodIntersection.create(this, incoming, this._def);
|
|
223403
222548
|
}
|
|
223404
|
-
transform(
|
|
222549
|
+
transform(transform4) {
|
|
223405
222550
|
return new ZodEffects({
|
|
223406
222551
|
...processCreateParams(this._def),
|
|
223407
222552
|
schema: this,
|
|
223408
222553
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
223409
|
-
effect: { type: "transform", transform:
|
|
222554
|
+
effect: { type: "transform", transform: transform4 }
|
|
223410
222555
|
});
|
|
223411
222556
|
}
|
|
223412
222557
|
default(def) {
|
|
@@ -231766,7 +230911,7 @@ function determineTitle(title, notitle, lines, info) {
|
|
|
231766
230911
|
if (title) return title;
|
|
231767
230912
|
return info.hasStart ? lines[info.startIdx + 2] : defaultTitle;
|
|
231768
230913
|
}
|
|
231769
|
-
function
|
|
230914
|
+
function transform3(content, mode, maxHeaderLevel, title, notitle, entryPrefix, processAll, updateOnly) {
|
|
231770
230915
|
if (content.indexOf(skipTag) !== -1) return { transformed: false };
|
|
231771
230916
|
mode = mode || "github.com";
|
|
231772
230917
|
entryPrefix = entryPrefix || "-";
|
|
@@ -231883,7 +231028,7 @@ async function transformAndSave(files, mode = "github.com", maxHeaderLevel = 3,
|
|
|
231883
231028
|
}
|
|
231884
231029
|
console.log("\n==================\n");
|
|
231885
231030
|
const transformed = files.map((x9) => {
|
|
231886
|
-
const result2 =
|
|
231031
|
+
const result2 = transform3(
|
|
231887
231032
|
readFileSync4(x9.path, "utf8"),
|
|
231888
231033
|
mode,
|
|
231889
231034
|
maxHeaderLevel,
|