@storm-software/config-tools 1.93.0 → 1.93.2

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/index.js CHANGED
@@ -229,363 +229,11 @@ var init_dist = __esm({
229
229
  }
230
230
  });
231
231
 
232
- // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
233
- var require_package = __commonJS({
234
- "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
235
- module.exports = {
236
- name: "dotenv",
237
- version: "16.4.5",
238
- description: "Loads environment variables from .env file",
239
- main: "lib/main.js",
240
- types: "lib/main.d.ts",
241
- exports: {
242
- ".": {
243
- types: "./lib/main.d.ts",
244
- require: "./lib/main.js",
245
- default: "./lib/main.js"
246
- },
247
- "./config": "./config.js",
248
- "./config.js": "./config.js",
249
- "./lib/env-options": "./lib/env-options.js",
250
- "./lib/env-options.js": "./lib/env-options.js",
251
- "./lib/cli-options": "./lib/cli-options.js",
252
- "./lib/cli-options.js": "./lib/cli-options.js",
253
- "./package.json": "./package.json"
254
- },
255
- scripts: {
256
- "dts-check": "tsc --project tests/types/tsconfig.json",
257
- lint: "standard",
258
- "lint-readme": "standard-markdown",
259
- pretest: "npm run lint && npm run dts-check",
260
- test: "tap tests/*.js --100 -Rspec",
261
- "test:coverage": "tap --coverage-report=lcov",
262
- prerelease: "npm test",
263
- release: "standard-version"
264
- },
265
- repository: {
266
- type: "git",
267
- url: "git://github.com/motdotla/dotenv.git"
268
- },
269
- funding: "https://dotenvx.com",
270
- keywords: [
271
- "dotenv",
272
- "env",
273
- ".env",
274
- "environment",
275
- "variables",
276
- "config",
277
- "settings"
278
- ],
279
- readmeFilename: "README.md",
280
- license: "BSD-2-Clause",
281
- devDependencies: {
282
- "@definitelytyped/dtslint": "^0.0.133",
283
- "@types/node": "^18.11.3",
284
- decache: "^4.6.1",
285
- sinon: "^14.0.1",
286
- standard: "^17.0.0",
287
- "standard-markdown": "^7.1.0",
288
- "standard-version": "^9.5.0",
289
- tap: "^16.3.0",
290
- tar: "^6.1.11",
291
- typescript: "^4.8.4"
292
- },
293
- engines: {
294
- node: ">=12"
295
- },
296
- browser: {
297
- fs: false
298
- }
299
- };
300
- }
301
- });
302
-
303
- // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
304
- var require_main = __commonJS({
305
- "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
306
- var fs2 = __require("fs");
307
- var path5 = __require("path");
308
- var os2 = __require("os");
309
- var crypto = __require("crypto");
310
- var packageJson = require_package();
311
- var version2 = packageJson.version;
312
- var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
313
- function parse6(src) {
314
- const obj = {};
315
- let lines = src.toString();
316
- lines = lines.replace(/\r\n?/mg, "\n");
317
- let match;
318
- while ((match = LINE.exec(lines)) != null) {
319
- const key = match[1];
320
- let value2 = match[2] || "";
321
- value2 = value2.trim();
322
- const maybeQuote = value2[0];
323
- value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
324
- if (maybeQuote === '"') {
325
- value2 = value2.replace(/\\n/g, "\n");
326
- value2 = value2.replace(/\\r/g, "\r");
327
- }
328
- obj[key] = value2;
329
- }
330
- return obj;
331
- }
332
- function _parseVault(options) {
333
- const vaultPath = _vaultPath(options);
334
- const result = DotenvModule.configDotenv({ path: vaultPath });
335
- if (!result.parsed) {
336
- const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
337
- err.code = "MISSING_DATA";
338
- throw err;
339
- }
340
- const keys = _dotenvKey(options).split(",");
341
- const length = keys.length;
342
- let decrypted;
343
- for (let i2 = 0; i2 < length; i2++) {
344
- try {
345
- const key = keys[i2].trim();
346
- const attrs = _instructions(result, key);
347
- decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
348
- break;
349
- } catch (error) {
350
- if (i2 + 1 >= length) {
351
- throw error;
352
- }
353
- }
354
- }
355
- return DotenvModule.parse(decrypted);
356
- }
357
- function _log(message) {
358
- console.log(`[dotenv@${version2}][INFO] ${message}`);
359
- }
360
- function _warn(message) {
361
- console.log(`[dotenv@${version2}][WARN] ${message}`);
362
- }
363
- function _debug(message) {
364
- console.log(`[dotenv@${version2}][DEBUG] ${message}`);
365
- }
366
- function _dotenvKey(options) {
367
- if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
368
- return options.DOTENV_KEY;
369
- }
370
- if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
371
- return process.env.DOTENV_KEY;
372
- }
373
- return "";
374
- }
375
- function _instructions(result, dotenvKey) {
376
- let uri;
377
- try {
378
- uri = new URL(dotenvKey);
379
- } catch (error) {
380
- if (error.code === "ERR_INVALID_URL") {
381
- 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");
382
- err.code = "INVALID_DOTENV_KEY";
383
- throw err;
384
- }
385
- throw error;
386
- }
387
- const key = uri.password;
388
- if (!key) {
389
- const err = new Error("INVALID_DOTENV_KEY: Missing key part");
390
- err.code = "INVALID_DOTENV_KEY";
391
- throw err;
392
- }
393
- const environment = uri.searchParams.get("environment");
394
- if (!environment) {
395
- const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
396
- err.code = "INVALID_DOTENV_KEY";
397
- throw err;
398
- }
399
- const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
400
- const ciphertext = result.parsed[environmentKey];
401
- if (!ciphertext) {
402
- const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
403
- err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
404
- throw err;
405
- }
406
- return { ciphertext, key };
407
- }
408
- function _vaultPath(options) {
409
- let possibleVaultPath = null;
410
- if (options && options.path && options.path.length > 0) {
411
- if (Array.isArray(options.path)) {
412
- for (const filepath of options.path) {
413
- if (fs2.existsSync(filepath)) {
414
- possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
415
- }
416
- }
417
- } else {
418
- possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
419
- }
420
- } else {
421
- possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
422
- }
423
- if (fs2.existsSync(possibleVaultPath)) {
424
- return possibleVaultPath;
425
- }
426
- return null;
427
- }
428
- function _resolveHome(envPath) {
429
- return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
430
- }
431
- function _configVault(options) {
432
- _log("Loading env from encrypted .env.vault");
433
- const parsed = DotenvModule._parseVault(options);
434
- let processEnv = process.env;
435
- if (options && options.processEnv != null) {
436
- processEnv = options.processEnv;
437
- }
438
- DotenvModule.populate(processEnv, parsed, options);
439
- return { parsed };
440
- }
441
- function configDotenv(options) {
442
- const dotenvPath = path5.resolve(process.cwd(), ".env");
443
- let encoding = "utf8";
444
- const debug2 = Boolean(options && options.debug);
445
- if (options && options.encoding) {
446
- encoding = options.encoding;
447
- } else {
448
- if (debug2) {
449
- _debug("No encoding is specified. UTF-8 is used by default");
450
- }
451
- }
452
- let optionPaths = [dotenvPath];
453
- if (options && options.path) {
454
- if (!Array.isArray(options.path)) {
455
- optionPaths = [_resolveHome(options.path)];
456
- } else {
457
- optionPaths = [];
458
- for (const filepath of options.path) {
459
- optionPaths.push(_resolveHome(filepath));
460
- }
461
- }
462
- }
463
- let lastError;
464
- const parsedAll = {};
465
- for (const path6 of optionPaths) {
466
- try {
467
- const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
468
- DotenvModule.populate(parsedAll, parsed, options);
469
- } catch (e2) {
470
- if (debug2) {
471
- _debug(`Failed to load ${path6} ${e2.message}`);
472
- }
473
- lastError = e2;
474
- }
475
- }
476
- let processEnv = process.env;
477
- if (options && options.processEnv != null) {
478
- processEnv = options.processEnv;
479
- }
480
- DotenvModule.populate(processEnv, parsedAll, options);
481
- if (lastError) {
482
- return { parsed: parsedAll, error: lastError };
483
- } else {
484
- return { parsed: parsedAll };
485
- }
486
- }
487
- function config(options) {
488
- if (_dotenvKey(options).length === 0) {
489
- return DotenvModule.configDotenv(options);
490
- }
491
- const vaultPath = _vaultPath(options);
492
- if (!vaultPath) {
493
- _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
494
- return DotenvModule.configDotenv(options);
495
- }
496
- return DotenvModule._configVault(options);
497
- }
498
- function decrypt(encrypted, keyStr) {
499
- const key = Buffer.from(keyStr.slice(-64), "hex");
500
- let ciphertext = Buffer.from(encrypted, "base64");
501
- const nonce = ciphertext.subarray(0, 12);
502
- const authTag = ciphertext.subarray(-16);
503
- ciphertext = ciphertext.subarray(12, -16);
504
- try {
505
- const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
506
- aesgcm.setAuthTag(authTag);
507
- return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
508
- } catch (error) {
509
- const isRange = error instanceof RangeError;
510
- const invalidKeyLength = error.message === "Invalid key length";
511
- const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
512
- if (isRange || invalidKeyLength) {
513
- const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
514
- err.code = "INVALID_DOTENV_KEY";
515
- throw err;
516
- } else if (decryptionFailed) {
517
- const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
518
- err.code = "DECRYPTION_FAILED";
519
- throw err;
520
- } else {
521
- throw error;
522
- }
523
- }
524
- }
525
- function populate(processEnv, parsed, options = {}) {
526
- const debug2 = Boolean(options && options.debug);
527
- const override = Boolean(options && options.override);
528
- if (typeof parsed !== "object") {
529
- const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
530
- err.code = "OBJECT_REQUIRED";
531
- throw err;
532
- }
533
- for (const key of Object.keys(parsed)) {
534
- if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
535
- if (override === true) {
536
- processEnv[key] = parsed[key];
537
- }
538
- if (debug2) {
539
- if (override === true) {
540
- _debug(`"${key}" is already defined and WAS overwritten`);
541
- } else {
542
- _debug(`"${key}" is already defined and was NOT overwritten`);
543
- }
544
- }
545
- } else {
546
- processEnv[key] = parsed[key];
547
- }
548
- }
549
- }
550
- var DotenvModule = {
551
- configDotenv,
552
- _configVault,
553
- _parseVault,
554
- config,
555
- decrypt,
556
- parse: parse6,
557
- populate
558
- };
559
- module.exports.configDotenv = DotenvModule.configDotenv;
560
- module.exports._configVault = DotenvModule._configVault;
561
- module.exports._parseVault = DotenvModule._parseVault;
562
- module.exports.config = DotenvModule.config;
563
- module.exports.decrypt = DotenvModule.decrypt;
564
- module.exports.parse = DotenvModule.parse;
565
- module.exports.populate = DotenvModule.populate;
566
- module.exports = DotenvModule;
567
- }
568
- });
569
-
570
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js
232
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs
571
233
  var require_jiti = __commonJS({
572
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/jiti.js"(exports, module) {
234
+ "node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/jiti.cjs"(exports, module) {
573
235
  (() => {
574
- var __webpack_modules__ = { "./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
575
- const nativeModule = __webpack_require__2("module"), path5 = __webpack_require__2("path"), fs2 = __webpack_require__2("fs");
576
- module2.exports = function(filename) {
577
- return filename || (filename = process.cwd()), function(path6) {
578
- try {
579
- return fs2.lstatSync(path6).isDirectory();
580
- } catch (e2) {
581
- return false;
582
- }
583
- }(filename) && (filename = path5.join(filename, "index.js")), nativeModule.createRequire ? nativeModule.createRequire(filename) : nativeModule.createRequireFromPath ? nativeModule.createRequireFromPath(filename) : function(filename2) {
584
- const mod = new nativeModule.Module(filename2, null);
585
- return mod.filename = filename2, mod.paths = nativeModule.Module._nodeModulePaths(path5.dirname(filename2)), mod._compile("module.exports = require;", filename2), mod.exports;
586
- }(filename);
587
- };
588
- }, "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
236
+ var __webpack_modules__ = { "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive": (module2) => {
589
237
  function webpackEmptyAsyncContext(req) {
590
238
  return Promise.resolve().then(() => {
591
239
  var e2 = new Error("Cannot find module '" + req + "'");
@@ -593,893 +241,24 @@ var require_jiti = __commonJS({
593
241
  });
594
242
  }
595
243
  webpackEmptyAsyncContext.keys = () => [], webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext, webpackEmptyAsyncContext.id = "./node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist lazy recursive", module2.exports = webpackEmptyAsyncContext;
596
- }, "./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js": (module2, exports2, __webpack_require__2) => {
597
- "use strict";
598
- var crypto = __webpack_require__2("crypto");
599
- function objectHash2(object, options) {
600
- return function(object2, options2) {
601
- var hashingStream;
602
- hashingStream = "passthrough" !== options2.algorithm ? crypto.createHash(options2.algorithm) : new PassThrough();
603
- void 0 === hashingStream.write && (hashingStream.write = hashingStream.update, hashingStream.end = hashingStream.update);
604
- var hasher = typeHasher(options2, hashingStream);
605
- hasher.dispatch(object2), hashingStream.update || hashingStream.end("");
606
- if (hashingStream.digest) return hashingStream.digest("buffer" === options2.encoding ? void 0 : options2.encoding);
607
- var buf = hashingStream.read();
608
- if ("buffer" === options2.encoding) return buf;
609
- return buf.toString(options2.encoding);
610
- }(object, options = applyDefaults(object, options));
611
- }
612
- (exports2 = module2.exports = objectHash2).sha1 = function(object) {
613
- return objectHash2(object);
614
- }, exports2.keys = function(object) {
615
- return objectHash2(object, { excludeValues: true, algorithm: "sha1", encoding: "hex" });
616
- }, exports2.MD5 = function(object) {
617
- return objectHash2(object, { algorithm: "md5", encoding: "hex" });
618
- }, exports2.keysMD5 = function(object) {
619
- return objectHash2(object, { algorithm: "md5", encoding: "hex", excludeValues: true });
620
- };
621
- var hashes = crypto.getHashes ? crypto.getHashes().slice() : ["sha1", "md5"];
622
- hashes.push("passthrough");
623
- var encodings = ["buffer", "hex", "binary", "base64"];
624
- function applyDefaults(object, sourceOptions) {
625
- sourceOptions = sourceOptions || {};
626
- var options = {};
627
- if (options.algorithm = sourceOptions.algorithm || "sha1", options.encoding = sourceOptions.encoding || "hex", options.excludeValues = !!sourceOptions.excludeValues, options.algorithm = options.algorithm.toLowerCase(), options.encoding = options.encoding.toLowerCase(), options.ignoreUnknown = true === sourceOptions.ignoreUnknown, options.respectType = false !== sourceOptions.respectType, options.respectFunctionNames = false !== sourceOptions.respectFunctionNames, options.respectFunctionProperties = false !== sourceOptions.respectFunctionProperties, options.unorderedArrays = true === sourceOptions.unorderedArrays, options.unorderedSets = false !== sourceOptions.unorderedSets, options.unorderedObjects = false !== sourceOptions.unorderedObjects, options.replacer = sourceOptions.replacer || void 0, options.excludeKeys = sourceOptions.excludeKeys || void 0, void 0 === object) throw new Error("Object argument required.");
628
- for (var i2 = 0; i2 < hashes.length; ++i2) hashes[i2].toLowerCase() === options.algorithm.toLowerCase() && (options.algorithm = hashes[i2]);
629
- if (-1 === hashes.indexOf(options.algorithm)) throw new Error('Algorithm "' + options.algorithm + '" not supported. supported values: ' + hashes.join(", "));
630
- if (-1 === encodings.indexOf(options.encoding) && "passthrough" !== options.algorithm) throw new Error('Encoding "' + options.encoding + '" not supported. supported values: ' + encodings.join(", "));
631
- return options;
632
- }
633
- function isNativeFunction2(f2) {
634
- if ("function" != typeof f2) return false;
635
- return null != /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(f2));
636
- }
637
- function typeHasher(options, writeTo, context) {
638
- context = context || [];
639
- var write = function(str) {
640
- return writeTo.update ? writeTo.update(str, "utf8") : writeTo.write(str, "utf8");
641
- };
642
- return { dispatch: function(value2) {
643
- options.replacer && (value2 = options.replacer(value2));
644
- var type = typeof value2;
645
- return null === value2 && (type = "null"), this["_" + type](value2);
646
- }, _object: function(object) {
647
- var objString = Object.prototype.toString.call(object), objType = /\[object (.*)\]/i.exec(objString);
648
- objType = (objType = objType ? objType[1] : "unknown:[" + objString + "]").toLowerCase();
649
- var objectNumber;
650
- if ((objectNumber = context.indexOf(object)) >= 0) return this.dispatch("[CIRCULAR:" + objectNumber + "]");
651
- if (context.push(object), "undefined" != typeof Buffer && Buffer.isBuffer && Buffer.isBuffer(object)) return write("buffer:"), write(object);
652
- if ("object" === objType || "function" === objType || "asyncfunction" === objType) {
653
- var keys = Object.keys(object);
654
- options.unorderedObjects && (keys = keys.sort()), false === options.respectType || isNativeFunction2(object) || keys.splice(0, 0, "prototype", "__proto__", "constructor"), options.excludeKeys && (keys = keys.filter(function(key) {
655
- return !options.excludeKeys(key);
656
- })), write("object:" + keys.length + ":");
657
- var self2 = this;
658
- return keys.forEach(function(key) {
659
- self2.dispatch(key), write(":"), options.excludeValues || self2.dispatch(object[key]), write(",");
660
- });
661
- }
662
- if (!this["_" + objType]) {
663
- if (options.ignoreUnknown) return write("[" + objType + "]");
664
- throw new Error('Unknown object type "' + objType + '"');
665
- }
666
- this["_" + objType](object);
667
- }, _array: function(arr, unordered) {
668
- unordered = void 0 !== unordered ? unordered : false !== options.unorderedArrays;
669
- var self2 = this;
670
- if (write("array:" + arr.length + ":"), !unordered || arr.length <= 1) return arr.forEach(function(entry) {
671
- return self2.dispatch(entry);
672
- });
673
- var contextAdditions = [], entries = arr.map(function(entry) {
674
- var strm = new PassThrough(), localContext = context.slice();
675
- return typeHasher(options, strm, localContext).dispatch(entry), contextAdditions = contextAdditions.concat(localContext.slice(context.length)), strm.read().toString();
676
- });
677
- return context = context.concat(contextAdditions), entries.sort(), this._array(entries, false);
678
- }, _date: function(date) {
679
- return write("date:" + date.toJSON());
680
- }, _symbol: function(sym) {
681
- return write("symbol:" + sym.toString());
682
- }, _error: function(err) {
683
- return write("error:" + err.toString());
684
- }, _boolean: function(bool) {
685
- return write("bool:" + bool.toString());
686
- }, _string: function(string) {
687
- write("string:" + string.length + ":"), write(string.toString());
688
- }, _function: function(fn2) {
689
- write("fn:"), isNativeFunction2(fn2) ? this.dispatch("[native]") : this.dispatch(fn2.toString()), false !== options.respectFunctionNames && this.dispatch("function-name:" + String(fn2.name)), options.respectFunctionProperties && this._object(fn2);
690
- }, _number: function(number) {
691
- return write("number:" + number.toString());
692
- }, _xml: function(xml) {
693
- return write("xml:" + xml.toString());
694
- }, _null: function() {
695
- return write("Null");
696
- }, _undefined: function() {
697
- return write("Undefined");
698
- }, _regexp: function(regex) {
699
- return write("regex:" + regex.toString());
700
- }, _uint8array: function(arr) {
701
- return write("uint8array:"), this.dispatch(Array.prototype.slice.call(arr));
702
- }, _uint8clampedarray: function(arr) {
703
- return write("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(arr));
704
- }, _int8array: function(arr) {
705
- return write("int8array:"), this.dispatch(Array.prototype.slice.call(arr));
706
- }, _uint16array: function(arr) {
707
- return write("uint16array:"), this.dispatch(Array.prototype.slice.call(arr));
708
- }, _int16array: function(arr) {
709
- return write("int16array:"), this.dispatch(Array.prototype.slice.call(arr));
710
- }, _uint32array: function(arr) {
711
- return write("uint32array:"), this.dispatch(Array.prototype.slice.call(arr));
712
- }, _int32array: function(arr) {
713
- return write("int32array:"), this.dispatch(Array.prototype.slice.call(arr));
714
- }, _float32array: function(arr) {
715
- return write("float32array:"), this.dispatch(Array.prototype.slice.call(arr));
716
- }, _float64array: function(arr) {
717
- return write("float64array:"), this.dispatch(Array.prototype.slice.call(arr));
718
- }, _arraybuffer: function(arr) {
719
- return write("arraybuffer:"), this.dispatch(new Uint8Array(arr));
720
- }, _url: function(url) {
721
- return write("url:" + url.toString());
722
- }, _map: function(map) {
723
- write("map:");
724
- var arr = Array.from(map);
725
- return this._array(arr, false !== options.unorderedSets);
726
- }, _set: function(set) {
727
- write("set:");
728
- var arr = Array.from(set);
729
- return this._array(arr, false !== options.unorderedSets);
730
- }, _file: function(file) {
731
- return write("file:"), this.dispatch([file.name, file.size, file.type, file.lastModfied]);
732
- }, _blob: function() {
733
- if (options.ignoreUnknown) return write("[blob]");
734
- 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');
735
- }, _domwindow: function() {
736
- return write("domwindow");
737
- }, _bigint: function(number) {
738
- return write("bigint:" + number.toString());
739
- }, _process: function() {
740
- return write("process");
741
- }, _timer: function() {
742
- return write("timer");
743
- }, _pipe: function() {
744
- return write("pipe");
745
- }, _tcp: function() {
746
- return write("tcp");
747
- }, _udp: function() {
748
- return write("udp");
749
- }, _tty: function() {
750
- return write("tty");
751
- }, _statwatcher: function() {
752
- return write("statwatcher");
753
- }, _securecontext: function() {
754
- return write("securecontext");
755
- }, _connection: function() {
756
- return write("connection");
757
- }, _zlib: function() {
758
- return write("zlib");
759
- }, _context: function() {
760
- return write("context");
761
- }, _nodescript: function() {
762
- return write("nodescript");
763
- }, _httpparser: function() {
764
- return write("httpparser");
765
- }, _dataview: function() {
766
- return write("dataview");
767
- }, _signal: function() {
768
- return write("signal");
769
- }, _fsevent: function() {
770
- return write("fsevent");
771
- }, _tlswrap: function() {
772
- return write("tlswrap");
773
- } };
774
- }
775
- function PassThrough() {
776
- return { buf: "", write: function(b6) {
777
- this.buf += b6;
778
- }, end: function(b6) {
779
- this.buf += b6;
780
- }, read: function() {
781
- return this.buf;
782
- } };
783
- }
784
- exports2.writeToStream = function(object, options, stream) {
785
- return void 0 === stream && (stream = options, options = {}), typeHasher(options = applyDefaults(object, options), stream).dispatch(object);
786
- };
787
- }, "./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js": (module2, exports2, __webpack_require__2) => {
788
- "use strict";
789
- module2 = __webpack_require__2.nmd(module2), Object.defineProperty(exports2, "__esModule", { value: true }), exports2.addHook = function(hook, opts = {}) {
790
- let reverted = false;
791
- const loaders = [], oldLoaders = [];
792
- let exts;
793
- const originalJSLoader = Module._extensions[".js"], matcher = opts.matcher || null, ignoreNodeModules = false !== opts.ignoreNodeModules;
794
- exts = opts.extensions || opts.exts || opts.extension || opts.ext || [".js"], Array.isArray(exts) || (exts = [exts]);
795
- return exts.forEach((ext) => {
796
- if ("string" != typeof ext) throw new TypeError(`Invalid Extension: ${ext}`);
797
- const oldLoader = Module._extensions[ext] || originalJSLoader;
798
- oldLoaders[ext] = Module._extensions[ext], loaders[ext] = Module._extensions[ext] = function(mod, filename) {
799
- let compile;
800
- reverted || function(filename2, exts2, matcher2, ignoreNodeModules2) {
801
- if ("string" != typeof filename2) return false;
802
- if (-1 === exts2.indexOf(_path.default.extname(filename2))) return false;
803
- const resolvedFilename = _path.default.resolve(filename2);
804
- if (ignoreNodeModules2 && nodeModulesRegex.test(resolvedFilename)) return false;
805
- if (matcher2 && "function" == typeof matcher2) return !!matcher2(resolvedFilename);
806
- return true;
807
- }(filename, exts, matcher, ignoreNodeModules) && (compile = mod._compile, mod._compile = function(code) {
808
- mod._compile = compile;
809
- const newCode = hook(code, filename);
810
- if ("string" != typeof newCode) throw new Error(HOOK_RETURNED_NOTHING_ERROR_MESSAGE);
811
- return mod._compile(newCode, filename);
812
- }), oldLoader(mod, filename);
813
- };
814
- }), function() {
815
- reverted || (reverted = true, exts.forEach((ext) => {
816
- Module._extensions[ext] === loaders[ext] && (oldLoaders[ext] ? Module._extensions[ext] = oldLoaders[ext] : delete Module._extensions[ext]);
817
- }));
818
- };
819
- };
820
- var _module = _interopRequireDefault(__webpack_require__2("module")), _path = _interopRequireDefault(__webpack_require__2("path"));
821
- function _interopRequireDefault(obj) {
822
- return obj && obj.__esModule ? obj : { default: obj };
823
- }
824
- 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.";
825
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/comparator.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
826
- const ANY = Symbol("SemVer ANY");
827
- class Comparator {
828
- static get ANY() {
829
- return ANY;
830
- }
831
- constructor(comp, options) {
832
- if (options = parseOptions(options), comp instanceof Comparator) {
833
- if (comp.loose === !!options.loose) return comp;
834
- comp = comp.value;
835
- }
836
- comp = comp.trim().split(/\s+/).join(" "), debug2("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug2("comp", this);
837
- }
838
- parse(comp) {
839
- const r3 = this.options.loose ? re3[t2.COMPARATORLOOSE] : re3[t2.COMPARATOR], m3 = comp.match(r3);
840
- if (!m3) throw new TypeError(`Invalid comparator: ${comp}`);
841
- this.operator = void 0 !== m3[1] ? m3[1] : "", "=" === this.operator && (this.operator = ""), m3[2] ? this.semver = new SemVer(m3[2], this.options.loose) : this.semver = ANY;
842
- }
843
- toString() {
844
- return this.value;
845
- }
846
- test(version2) {
847
- if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) return true;
848
- if ("string" == typeof version2) try {
849
- version2 = new SemVer(version2, this.options);
850
- } catch (er2) {
851
- return false;
852
- }
853
- return cmp(version2, this.operator, this.semver, this.options);
854
- }
855
- intersects(comp, options) {
856
- if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
857
- return "" === this.operator ? "" === this.value || new Range(comp.value, options).test(this.value) : "" === comp.operator ? "" === comp.value || new Range(this.value, options).test(comp.semver) : (!(options = parseOptions(options)).includePrerelease || "<0.0.0-0" !== this.value && "<0.0.0-0" !== comp.value) && (!(!options.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, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) || !!(cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")))))));
858
- }
859
- }
860
- module2.exports = Comparator;
861
- const parseOptions = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"), { safeRe: re3, t: t2 } = __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");
862
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
863
- class Range {
864
- constructor(range, options) {
865
- if (options = parseOptions(options), range instanceof Range) return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new Range(range.raw, options);
866
- if (range instanceof Comparator) return this.raw = range.value, this.set = [[range]], this.format(), this;
867
- if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c) => c.length), !this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
868
- if (this.set.length > 1) {
869
- const first = this.set[0];
870
- if (this.set = this.set.filter((c) => !isNullSet(c[0])), 0 === this.set.length) this.set = [first];
871
- else if (this.set.length > 1) {
872
- for (const c of this.set) if (1 === c.length && isAny(c[0])) {
873
- this.set = [c];
874
- break;
875
- }
876
- }
877
- }
878
- this.format();
879
- }
880
- format() {
881
- return this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim(), this.range;
882
- }
883
- toString() {
884
- return this.range;
885
- }
886
- parseRange(range) {
887
- const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached2 = cache2.get(memoKey);
888
- if (cached2) return cached2;
889
- const loose = this.options.loose, hr2 = loose ? re3[t2.HYPHENRANGELOOSE] : re3[t2.HYPHENRANGE];
890
- range = range.replace(hr2, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range), range = range.replace(re3[t2.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range), range = range.replace(re3[t2.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range), range = range.replace(re3[t2.CARETTRIM], caretTrimReplace), debug2("caret trim", range);
891
- let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
892
- loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re3[t2.COMPARATORLOOSE])))), debug2("range list", rangeList);
893
- const rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
894
- for (const comp of comparators) {
895
- if (isNullSet(comp)) return [comp];
896
- rangeMap.set(comp.value, comp);
897
- }
898
- rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
899
- const result = [...rangeMap.values()];
900
- return cache2.set(memoKey, result), result;
901
- }
902
- intersects(range, options) {
903
- if (!(range instanceof Range)) throw new TypeError("a Range is required");
904
- return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
905
- }
906
- test(version2) {
907
- if (!version2) return false;
908
- if ("string" == typeof version2) try {
909
- version2 = new SemVer(version2, this.options);
910
- } catch (er2) {
911
- return false;
912
- }
913
- for (let i2 = 0; i2 < this.set.length; i2++) if (testSet(this.set[i2], version2, this.options)) return true;
914
- return false;
915
- }
916
- }
917
- module2.exports = Range;
918
- const cache2 = 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: re3, t: t2, 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 = (c) => "<0.0.0-0" === c.value, isAny = (c) => "" === c.value, isSatisfiable = (comparators, options) => {
919
- let result = true;
920
- const remainingComparators = comparators.slice();
921
- let testComparator = remainingComparators.pop();
922
- for (; result && remainingComparators.length; ) result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
923
- return result;
924
- }, parseComparator = (comp, options) => (debug2("comp", comp, options), comp = replaceCarets(comp, options), debug2("caret", comp), comp = replaceTildes(comp, options), debug2("tildes", comp), comp = replaceXRanges(comp, options), debug2("xrange", comp), comp = replaceStars(comp, options), debug2("stars", comp), comp), isX = (id) => !id || "x" === id.toLowerCase() || "*" === id, replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
925
- const r3 = options.loose ? re3[t2.TILDELOOSE] : re3[t2.TILDE];
926
- return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
927
- let ret;
928
- return debug2("tilde", comp, _6, M4, m3, p2, pr2), isX(M4) ? ret = "" : isX(m3) ? ret = `>=${M4}.0.0 <${+M4 + 1}.0.0-0` : isX(p2) ? ret = `>=${M4}.${m3}.0 <${M4}.${+m3 + 1}.0-0` : pr2 ? (debug2("replaceTilde pr", pr2), ret = `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${+m3 + 1}.0-0`) : ret = `>=${M4}.${m3}.${p2} <${M4}.${+m3 + 1}.0-0`, debug2("tilde return", ret), ret;
929
- });
930
- }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
931
- debug2("caret", comp, options);
932
- const r3 = options.loose ? re3[t2.CARETLOOSE] : re3[t2.CARET], z3 = options.includePrerelease ? "-0" : "";
933
- return comp.replace(r3, (_6, M4, m3, p2, pr2) => {
934
- let ret;
935
- return debug2("caret", comp, _6, M4, m3, p2, pr2), isX(M4) ? ret = "" : isX(m3) ? ret = `>=${M4}.0.0${z3} <${+M4 + 1}.0.0-0` : isX(p2) ? ret = "0" === M4 ? `>=${M4}.${m3}.0${z3} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.0${z3} <${+M4 + 1}.0.0-0` : pr2 ? (debug2("replaceCaret pr", pr2), ret = "0" === M4 ? "0" === m3 ? `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${m3}.${+p2 + 1}-0` : `>=${M4}.${m3}.${p2}-${pr2} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.${p2}-${pr2} <${+M4 + 1}.0.0-0`) : (debug2("no pr"), ret = "0" === M4 ? "0" === m3 ? `>=${M4}.${m3}.${p2}${z3} <${M4}.${m3}.${+p2 + 1}-0` : `>=${M4}.${m3}.${p2}${z3} <${M4}.${+m3 + 1}.0-0` : `>=${M4}.${m3}.${p2} <${+M4 + 1}.0.0-0`), debug2("caret return", ret), ret;
936
- });
937
- }, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
938
- comp = comp.trim();
939
- const r3 = options.loose ? re3[t2.XRANGELOOSE] : re3[t2.XRANGE];
940
- return comp.replace(r3, (ret, gtlt, M4, m3, p2, pr2) => {
941
- debug2("xRange", comp, ret, gtlt, M4, m3, p2, pr2);
942
- const xM = isX(M4), xm = xM || isX(m3), xp = xm || isX(p2), anyX = xp;
943
- return "=" === gtlt && anyX && (gtlt = ""), pr2 = options.includePrerelease ? "-0" : "", xM ? ret = ">" === gtlt || "<" === gtlt ? "<0.0.0-0" : "*" : gtlt && anyX ? (xm && (m3 = 0), p2 = 0, ">" === gtlt ? (gtlt = ">=", xm ? (M4 = +M4 + 1, m3 = 0, p2 = 0) : (m3 = +m3 + 1, p2 = 0)) : "<=" === gtlt && (gtlt = "<", xm ? M4 = +M4 + 1 : m3 = +m3 + 1), "<" === gtlt && (pr2 = "-0"), ret = `${gtlt + M4}.${m3}.${p2}${pr2}`) : xm ? ret = `>=${M4}.0.0${pr2} <${+M4 + 1}.0.0-0` : xp && (ret = `>=${M4}.${m3}.0${pr2} <${M4}.${+m3 + 1}.0-0`), debug2("xRange return", ret), ret;
944
- });
945
- }, replaceStars = (comp, options) => (debug2("replaceStars", comp, options), comp.trim().replace(re3[t2.STAR], "")), replaceGTE0 = (comp, options) => (debug2("replaceGTE0", comp, options), comp.trim().replace(re3[options.includePrerelease ? t2.GTE0PRE : t2.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => `${from = isX(fM) ? "" : isX(fm) ? `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? `>=${from}` : `>=${from}${incPr ? "-0" : ""}`} ${to = isX(tM) ? "" : isX(tm) ? `<${+tM + 1}.0.0-0` : isX(tp) ? `<${tM}.${+tm + 1}.0-0` : tpr ? `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? `<${tM}.${tm}.${+tp + 1}-0` : `<=${to}`}`.trim(), testSet = (set, version2, options) => {
946
- for (let i2 = 0; i2 < set.length; i2++) if (!set[i2].test(version2)) return false;
947
- if (version2.prerelease.length && !options.includePrerelease) {
948
- for (let i2 = 0; i2 < set.length; i2++) if (debug2(set[i2].semver), set[i2].semver !== Comparator.ANY && set[i2].semver.prerelease.length > 0) {
949
- const allowed = set[i2].semver;
950
- if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) return true;
951
- }
952
- return false;
953
- }
954
- return true;
955
- };
956
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
957
- 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: re3, t: t2 } = __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");
958
- class SemVer {
959
- constructor(version2, options) {
960
- if (options = parseOptions(options), version2 instanceof SemVer) {
961
- if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) return version2;
962
- version2 = version2.version;
963
- } else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
964
- if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
965
- debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
966
- const m3 = version2.trim().match(options.loose ? re3[t2.LOOSE] : re3[t2.FULL]);
967
- if (!m3) throw new TypeError(`Invalid Version: ${version2}`);
968
- if (this.raw = version2, this.major = +m3[1], this.minor = +m3[2], this.patch = +m3[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
969
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
970
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
971
- m3[4] ? this.prerelease = m3[4].split(".").map((id) => {
972
- if (/^[0-9]+$/.test(id)) {
973
- const num = +id;
974
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
975
- }
976
- return id;
977
- }) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
978
- }
979
- format() {
980
- return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
981
- }
982
- toString() {
983
- return this.version;
984
- }
985
- compare(other) {
986
- if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof SemVer)) {
987
- if ("string" == typeof other && other === this.version) return 0;
988
- other = new SemVer(other, this.options);
989
- }
990
- return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
991
- }
992
- compareMain(other) {
993
- 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);
994
- }
995
- comparePre(other) {
996
- if (other instanceof SemVer || (other = new SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) return -1;
997
- if (!this.prerelease.length && other.prerelease.length) return 1;
998
- if (!this.prerelease.length && !other.prerelease.length) return 0;
999
- let i2 = 0;
1000
- do {
1001
- const a2 = this.prerelease[i2], b6 = other.prerelease[i2];
1002
- if (debug2("prerelease compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
1003
- if (void 0 === b6) return 1;
1004
- if (void 0 === a2) return -1;
1005
- if (a2 !== b6) return compareIdentifiers(a2, b6);
1006
- } while (++i2);
1007
- }
1008
- compareBuild(other) {
1009
- other instanceof SemVer || (other = new SemVer(other, this.options));
1010
- let i2 = 0;
1011
- do {
1012
- const a2 = this.build[i2], b6 = other.build[i2];
1013
- if (debug2("build compare", i2, a2, b6), void 0 === a2 && void 0 === b6) return 0;
1014
- if (void 0 === b6) return 1;
1015
- if (void 0 === a2) return -1;
1016
- if (a2 !== b6) return compareIdentifiers(a2, b6);
1017
- } while (++i2);
1018
- }
1019
- inc(release, identifier, identifierBase) {
1020
- switch (release) {
1021
- case "premajor":
1022
- this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
1023
- break;
1024
- case "preminor":
1025
- this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
1026
- break;
1027
- case "prepatch":
1028
- this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
1029
- break;
1030
- case "prerelease":
1031
- 0 === this.prerelease.length && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
1032
- break;
1033
- case "major":
1034
- 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
1035
- break;
1036
- case "minor":
1037
- 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = [];
1038
- break;
1039
- case "patch":
1040
- 0 === this.prerelease.length && this.patch++, this.prerelease = [];
1041
- break;
1042
- case "pre": {
1043
- const base = Number(identifierBase) ? 1 : 0;
1044
- if (!identifier && false === identifierBase) throw new Error("invalid increment argument: identifier is empty");
1045
- if (0 === this.prerelease.length) this.prerelease = [base];
1046
- else {
1047
- let i2 = this.prerelease.length;
1048
- for (; --i2 >= 0; ) "number" == typeof this.prerelease[i2] && (this.prerelease[i2]++, i2 = -2);
1049
- if (-1 === i2) {
1050
- if (identifier === this.prerelease.join(".") && false === identifierBase) throw new Error("invalid increment argument: identifier already exists");
1051
- this.prerelease.push(base);
1052
- }
1053
- }
1054
- if (identifier) {
1055
- let prerelease = [identifier, base];
1056
- false === identifierBase && (prerelease = [identifier]), 0 === compareIdentifiers(this.prerelease[0], identifier) ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
1057
- }
1058
- break;
1059
- }
1060
- default:
1061
- throw new Error(`invalid increment argument: ${release}`);
1062
- }
1063
- return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
1064
- }
1065
- }
1066
- module2.exports = SemVer;
1067
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1068
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1069
- module2.exports = (version2, options) => {
1070
- const s2 = parse6(version2.trim().replace(/^[=v]+/, ""), options);
1071
- return s2 ? s2.version : null;
1072
- };
1073
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/cmp.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1074
- const eq = __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"), gt = __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"), lt = __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");
1075
- module2.exports = (a2, op, b6, loose) => {
1076
- switch (op) {
1077
- case "===":
1078
- return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 === b6;
1079
- case "!==":
1080
- return "object" == typeof a2 && (a2 = a2.version), "object" == typeof b6 && (b6 = b6.version), a2 !== b6;
1081
- case "":
1082
- case "=":
1083
- case "==":
1084
- return eq(a2, b6, loose);
1085
- case "!=":
1086
- return neq(a2, b6, loose);
1087
- case ">":
1088
- return gt(a2, b6, loose);
1089
- case ">=":
1090
- return gte(a2, b6, loose);
1091
- case "<":
1092
- return lt(a2, b6, loose);
1093
- case "<=":
1094
- return lte(a2, b6, loose);
1095
- default:
1096
- throw new TypeError(`Invalid operator: ${op}`);
1097
- }
1098
- };
1099
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1100
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"), parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"), { safeRe: re3, t: t2 } = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js");
1101
- module2.exports = (version2, options) => {
1102
- if (version2 instanceof SemVer) return version2;
1103
- if ("number" == typeof version2 && (version2 = String(version2)), "string" != typeof version2) return null;
1104
- let match = null;
1105
- if ((options = options || {}).rtl) {
1106
- const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
1107
- let next;
1108
- 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;
1109
- coerceRtlRegex.lastIndex = -1;
1110
- } else match = version2.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
1111
- if (null === match) return null;
1112
- const major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
1113
- return parse6(`${major}.${minor}.${patch}${prerelease}${build}`, options);
1114
- };
1115
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1116
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1117
- module2.exports = (a2, b6, loose) => {
1118
- const versionA = new SemVer(a2, loose), versionB = new SemVer(b6, loose);
1119
- return versionA.compare(versionB) || versionA.compareBuild(versionB);
1120
- };
1121
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-loose.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1122
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1123
- module2.exports = (a2, b6) => compare(a2, b6, true);
1124
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1125
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1126
- module2.exports = (a2, b6, loose) => new SemVer(a2, loose).compare(new SemVer(b6, loose));
1127
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1128
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1129
- module2.exports = (version1, version2) => {
1130
- const v1 = parse6(version1, null, true), v22 = parse6(version2, null, true), comparison = v1.compare(v22);
1131
- if (0 === comparison) return null;
1132
- const v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v22, lowVersion = v1Higher ? v22 : v1, highHasPre = !!highVersion.prerelease.length;
1133
- if (!!lowVersion.prerelease.length && !highHasPre) return lowVersion.patch || lowVersion.minor ? highVersion.patch ? "patch" : highVersion.minor ? "minor" : "major" : "major";
1134
- const prefix = highHasPre ? "pre" : "";
1135
- return v1.major !== v22.major ? prefix + "major" : v1.minor !== v22.minor ? prefix + "minor" : v1.patch !== v22.patch ? prefix + "patch" : "prerelease";
1136
- };
1137
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/eq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1138
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1139
- module2.exports = (a2, b6, loose) => 0 === compare(a2, b6, loose);
1140
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1141
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1142
- module2.exports = (a2, b6, loose) => compare(a2, b6, loose) > 0;
1143
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1144
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1145
- module2.exports = (a2, b6, loose) => compare(a2, b6, loose) >= 0;
1146
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/inc.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1147
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1148
- module2.exports = (version2, release, options, identifier, identifierBase) => {
1149
- "string" == typeof options && (identifierBase = identifier, identifier = options, options = void 0);
1150
- try {
1151
- return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier, identifierBase).version;
1152
- } catch (er2) {
1153
- return null;
1154
- }
1155
- };
1156
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1157
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1158
- module2.exports = (a2, b6, loose) => compare(a2, b6, loose) < 0;
1159
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lte.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1160
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1161
- module2.exports = (a2, b6, loose) => compare(a2, b6, loose) <= 0;
1162
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/major.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1163
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1164
- module2.exports = (a2, loose) => new SemVer(a2, loose).major;
1165
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/minor.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1166
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1167
- module2.exports = (a2, loose) => new SemVer(a2, loose).minor;
1168
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/neq.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1169
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1170
- module2.exports = (a2, b6, loose) => 0 !== compare(a2, b6, loose);
1171
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1172
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1173
- module2.exports = (version2, options, throwErrors = false) => {
1174
- if (version2 instanceof SemVer) return version2;
1175
- try {
1176
- return new SemVer(version2, options);
1177
- } catch (er2) {
1178
- if (!throwErrors) return null;
1179
- throw er2;
1180
- }
1181
- };
1182
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/patch.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1183
- const SemVer = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js");
1184
- module2.exports = (a2, loose) => new SemVer(a2, loose).patch;
1185
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1186
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1187
- module2.exports = (version2, options) => {
1188
- const parsed = parse6(version2, options);
1189
- return parsed && parsed.prerelease.length ? parsed.prerelease : null;
1190
- };
1191
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rcompare.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1192
- const compare = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare.js");
1193
- module2.exports = (a2, b6, loose) => compare(b6, a2, loose);
1194
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/rsort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1195
- const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
1196
- module2.exports = (list, loose) => list.sort((a2, b6) => compareBuild(b6, a2, loose));
1197
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/satisfies.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1198
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1199
- module2.exports = (version2, range, options) => {
1200
- try {
1201
- range = new Range(range, options);
1202
- } catch (er2) {
1203
- return false;
1204
- }
1205
- return range.test(version2);
1206
- };
1207
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/sort.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1208
- const compareBuild = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/compare-build.js");
1209
- module2.exports = (list, loose) => list.sort((a2, b6) => compareBuild(a2, b6, loose));
1210
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1211
- const parse6 = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js");
1212
- module2.exports = (version2, options) => {
1213
- const v5 = parse6(version2, options);
1214
- return v5 ? v5.version : null;
1215
- };
1216
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1217
- 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"), parse6 = __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"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/lt.js"), eq = __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");
1218
- module2.exports = { parse: parse6, valid, clean, inc, diff: diff2, major, minor, patch, prerelease, compare, rcompare, compareLoose, compareBuild, sort, rsort, gt, lt, eq, 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 };
1219
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js": (module2) => {
1220
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
1221
- 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 };
1222
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js": (module2) => {
1223
- const debug2 = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
1224
- };
1225
- module2.exports = debug2;
1226
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js": (module2) => {
1227
- const numeric = /^[0-9]+$/, compareIdentifiers = (a2, b6) => {
1228
- const anum = numeric.test(a2), bnum = numeric.test(b6);
1229
- return anum && bnum && (a2 = +a2, b6 = +b6), a2 === b6 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b6 ? -1 : 1;
1230
- };
1231
- module2.exports = { compareIdentifiers, rcompareIdentifiers: (a2, b6) => compareIdentifiers(b6, a2) };
1232
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/lrucache.js": (module2) => {
1233
- module2.exports = class {
1234
- constructor() {
1235
- this.max = 1e3, this.map = /* @__PURE__ */ new Map();
1236
- }
1237
- get(key) {
1238
- const value2 = this.map.get(key);
1239
- return void 0 === value2 ? void 0 : (this.map.delete(key), this.map.set(key, value2), value2);
1240
- }
1241
- delete(key) {
1242
- return this.map.delete(key);
1243
- }
1244
- set(key, value2) {
1245
- if (!this.delete(key) && void 0 !== value2) {
1246
- if (this.map.size >= this.max) {
1247
- const firstKey = this.map.keys().next().value;
1248
- this.delete(firstKey);
1249
- }
1250
- this.map.set(key, value2);
1251
- }
1252
- return this;
1253
- }
1254
- };
1255
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js": (module2) => {
1256
- const looseOption = Object.freeze({ loose: true }), emptyOpts = Object.freeze({});
1257
- module2.exports = (options) => options ? "object" != typeof options ? looseOption : options : emptyOpts;
1258
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js": (module2, exports2, __webpack_require__2) => {
1259
- 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"), re3 = (exports2 = module2.exports = {}).re = [], safeRe = exports2.safeRe = [], src = exports2.src = [], t2 = exports2.t = {};
1260
- let R4 = 0;
1261
- const safeRegexReplacements = [["\\s", 1], ["\\d", MAX_LENGTH], ["[a-zA-Z0-9-]", MAX_SAFE_BUILD_LENGTH]], createToken = (name, value2, isGlobal) => {
1262
- const safe = ((value3) => {
1263
- for (const [token, max] of safeRegexReplacements) value3 = value3.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
1264
- return value3;
1265
- })(value2), index = R4++;
1266
- debug2(name, index, value2), t2[name] = index, src[index] = value2, re3[index] = new RegExp(value2, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
1267
- };
1268
- createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"), createToken("NUMERICIDENTIFIERLOOSE", "\\d+"), createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"), createToken("MAINVERSION", `(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})\\.(${src[t2.NUMERICIDENTIFIER]})`), createToken("MAINVERSIONLOOSE", `(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})`), createToken("PRERELEASEIDENTIFIER", `(?:${src[t2.NUMERICIDENTIFIER]}|${src[t2.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t2.NUMERICIDENTIFIERLOOSE]}|${src[t2.NONNUMERICIDENTIFIER]})`), createToken("PRERELEASE", `(?:-(${src[t2.PRERELEASEIDENTIFIER]}(?:\\.${src[t2.PRERELEASEIDENTIFIER]})*))`), createToken("PRERELEASELOOSE", `(?:-?(${src[t2.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t2.PRERELEASEIDENTIFIERLOOSE]})*))`), createToken("BUILDIDENTIFIER", "[a-zA-Z0-9-]+"), createToken("BUILD", `(?:\\+(${src[t2.BUILDIDENTIFIER]}(?:\\.${src[t2.BUILDIDENTIFIER]})*))`), createToken("FULLPLAIN", `v?${src[t2.MAINVERSION]}${src[t2.PRERELEASE]}?${src[t2.BUILD]}?`), createToken("FULL", `^${src[t2.FULLPLAIN]}$`), createToken("LOOSEPLAIN", `[v=\\s]*${src[t2.MAINVERSIONLOOSE]}${src[t2.PRERELEASELOOSE]}?${src[t2.BUILD]}?`), createToken("LOOSE", `^${src[t2.LOOSEPLAIN]}$`), createToken("GTLT", "((?:<|>)?=?)"), createToken("XRANGEIDENTIFIERLOOSE", `${src[t2.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), createToken("XRANGEIDENTIFIER", `${src[t2.NUMERICIDENTIFIER]}|x|X|\\*`), createToken("XRANGEPLAIN", `[v=\\s]*(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:\\.(${src[t2.XRANGEIDENTIFIER]})(?:${src[t2.PRERELEASE]})?${src[t2.BUILD]}?)?)?`), createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:${src[t2.PRERELEASELOOSE]})?${src[t2.BUILD]}?)?)?`), createToken("XRANGE", `^${src[t2.GTLT]}\\s*${src[t2.XRANGEPLAIN]}$`), createToken("XRANGELOOSE", `^${src[t2.GTLT]}\\s*${src[t2.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[t2.COERCEPLAIN]}(?:$|[^\\d])`), createToken("COERCEFULL", src[t2.COERCEPLAIN] + `(?:${src[t2.PRERELEASE]})?(?:${src[t2.BUILD]})?(?:$|[^\\d])`), createToken("COERCERTL", src[t2.COERCE], true), createToken("COERCERTLFULL", src[t2.COERCEFULL], true), createToken("LONETILDE", "(?:~>?)"), createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true), exports2.tildeTrimReplace = "$1~", createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`), createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`), createToken("LONECARET", "(?:\\^)"), createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true), exports2.caretTrimReplace = "$1^", createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`), createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`), createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`), createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`), createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true), exports2.comparatorTrimReplace = "$1$2$3", createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`), createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`), createToken("STAR", "(<|>)?=?\\s*\\*"), createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
1269
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/gtr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1270
- const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
1271
- module2.exports = (version2, range, options) => outside(version2, range, ">", options);
1272
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/intersects.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1273
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1274
- module2.exports = (r1, r22, options) => (r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22, options));
1275
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/ltr.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1276
- const outside = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js");
1277
- module2.exports = (version2, range, options) => outside(version2, range, "<", options);
1278
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/max-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1279
- 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");
1280
- module2.exports = (versions, range, options) => {
1281
- let max = null, maxSV = null, rangeObj = null;
1282
- try {
1283
- rangeObj = new Range(range, options);
1284
- } catch (er2) {
1285
- return null;
1286
- }
1287
- return versions.forEach((v5) => {
1288
- rangeObj.test(v5) && (max && -1 !== maxSV.compare(v5) || (max = v5, maxSV = new SemVer(max, options)));
1289
- }), max;
1290
- };
1291
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-satisfying.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1292
- 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");
1293
- module2.exports = (versions, range, options) => {
1294
- let min = null, minSV = null, rangeObj = null;
1295
- try {
1296
- rangeObj = new Range(range, options);
1297
- } catch (er2) {
1298
- return null;
1299
- }
1300
- return versions.forEach((v5) => {
1301
- rangeObj.test(v5) && (min && 1 !== minSV.compare(v5) || (min = v5, minSV = new SemVer(min, options)));
1302
- }), min;
1303
- };
1304
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/min-version.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1305
- 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"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js");
1306
- module2.exports = (range, loose) => {
1307
- range = new Range(range, loose);
1308
- let minver = new SemVer("0.0.0");
1309
- if (range.test(minver)) return minver;
1310
- if (minver = new SemVer("0.0.0-0"), range.test(minver)) return minver;
1311
- minver = null;
1312
- for (let i2 = 0; i2 < range.set.length; ++i2) {
1313
- const comparators = range.set[i2];
1314
- let setMin = null;
1315
- comparators.forEach((comparator) => {
1316
- const compver = new SemVer(comparator.semver.version);
1317
- switch (comparator.operator) {
1318
- case ">":
1319
- 0 === compver.prerelease.length ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
1320
- case "":
1321
- case ">=":
1322
- setMin && !gt(compver, setMin) || (setMin = compver);
1323
- break;
1324
- case "<":
1325
- case "<=":
1326
- break;
1327
- default:
1328
- throw new Error(`Unexpected operation: ${comparator.operator}`);
1329
- }
1330
- }), !setMin || minver && !gt(minver, setMin) || (minver = setMin);
1331
- }
1332
- return minver && range.test(minver) ? minver : null;
1333
- };
1334
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/outside.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1335
- 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"), gt = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/gt.js"), lt = __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");
1336
- module2.exports = (version2, range, hilo, options) => {
1337
- let gtfn, ltefn, ltfn, comp, ecomp;
1338
- switch (version2 = new SemVer(version2, options), range = new Range(range, options), hilo) {
1339
- case ">":
1340
- gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
1341
- break;
1342
- case "<":
1343
- gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
1344
- break;
1345
- default:
1346
- throw new TypeError('Must provide a hilo val of "<" or ">"');
1347
- }
1348
- if (satisfies(version2, range, options)) return false;
1349
- for (let i2 = 0; i2 < range.set.length; ++i2) {
1350
- const comparators = range.set[i2];
1351
- let high = null, low = null;
1352
- if (comparators.forEach((comparator) => {
1353
- comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
1354
- }), high.operator === comp || high.operator === ecomp) return false;
1355
- if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) return false;
1356
- if (low.operator === ecomp && ltfn(version2, low.semver)) return false;
1357
- }
1358
- return true;
1359
- };
1360
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/simplify.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1361
- 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");
1362
- module2.exports = (versions, range, options) => {
1363
- const set = [];
1364
- let first = null, prev = null;
1365
- const v5 = versions.sort((a2, b6) => compare(a2, b6, options));
1366
- for (const version2 of v5) {
1367
- satisfies(version2, range, options) ? (prev = version2, first || (first = version2)) : (prev && set.push([first, prev]), prev = null, first = null);
1368
- }
1369
- first && set.push([first, null]);
1370
- const ranges = [];
1371
- for (const [min, max] of set) min === max ? ranges.push(min) : max || min !== v5[0] ? max ? min === v5[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`) : ranges.push("*");
1372
- const simplified = ranges.join(" || "), original = "string" == typeof range.raw ? range.raw : String(range);
1373
- return simplified.length < original.length ? simplified : range;
1374
- };
1375
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/subset.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1376
- 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, options) => {
1377
- if (sub === dom) return true;
1378
- if (1 === sub.length && sub[0].semver === ANY) {
1379
- if (1 === dom.length && dom[0].semver === ANY) return true;
1380
- sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
1381
- }
1382
- if (1 === dom.length && dom[0].semver === ANY) {
1383
- if (options.includePrerelease) return true;
1384
- dom = minimumVersion;
1385
- }
1386
- const eqSet = /* @__PURE__ */ new Set();
1387
- let gt, lt, gtltComp, higher, lower, hasDomLT, hasDomGT;
1388
- for (const c of sub) ">" === c.operator || ">=" === c.operator ? gt = higherGT(gt, c, options) : "<" === c.operator || "<=" === c.operator ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
1389
- if (eqSet.size > 1) return null;
1390
- if (gt && lt) {
1391
- if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0) return null;
1392
- if (0 === gtltComp && (">=" !== gt.operator || "<=" !== lt.operator)) return null;
1393
- }
1394
- for (const eq of eqSet) {
1395
- if (gt && !satisfies(eq, String(gt), options)) return null;
1396
- if (lt && !satisfies(eq, String(lt), options)) return null;
1397
- for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
1398
- return true;
1399
- }
1400
- let needDomLTPre = !(!lt || options.includePrerelease || !lt.semver.prerelease.length) && lt.semver, needDomGTPre = !(!gt || options.includePrerelease || !gt.semver.prerelease.length) && gt.semver;
1401
- needDomLTPre && 1 === needDomLTPre.prerelease.length && "<" === lt.operator && 0 === needDomLTPre.prerelease[0] && (needDomLTPre = false);
1402
- for (const c of dom) {
1403
- if (hasDomGT = hasDomGT || ">" === c.operator || ">=" === c.operator, hasDomLT = hasDomLT || "<" === c.operator || "<=" === c.operator, gt) {
1404
- if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = false), ">" === c.operator || ">=" === c.operator) {
1405
- if (higher = higherGT(gt, c, options), higher === c && higher !== gt) return false;
1406
- } else if (">=" === gt.operator && !satisfies(gt.semver, String(c), options)) return false;
1407
- }
1408
- if (lt) {
1409
- if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = false), "<" === c.operator || "<=" === c.operator) {
1410
- if (lower = lowerLT(lt, c, options), lower === c && lower !== lt) return false;
1411
- } else if ("<=" === lt.operator && !satisfies(lt.semver, String(c), options)) return false;
1412
- }
1413
- if (!c.operator && (lt || gt) && 0 !== gtltComp) return false;
1414
- }
1415
- return !(gt && hasDomLT && !lt && 0 !== gtltComp) && (!(lt && hasDomGT && !gt && 0 !== gtltComp) && (!needDomGTPre && !needDomLTPre));
1416
- }, higherGT = (a2, b6, options) => {
1417
- if (!a2) return b6;
1418
- const comp = compare(a2.semver, b6.semver, options);
1419
- return comp > 0 ? a2 : comp < 0 || ">" === b6.operator && ">=" === a2.operator ? b6 : a2;
1420
- }, lowerLT = (a2, b6, options) => {
1421
- if (!a2) return b6;
1422
- const comp = compare(a2.semver, b6.semver, options);
1423
- return comp < 0 ? a2 : comp > 0 || "<" === b6.operator && "<=" === a2.operator ? b6 : a2;
1424
- };
1425
- module2.exports = (sub, dom, options = {}) => {
1426
- if (sub === dom) return true;
1427
- sub = new Range(sub, options), dom = new Range(dom, options);
1428
- let sawNonNull = false;
1429
- OUTER: for (const simpleSub of sub.set) {
1430
- for (const simpleDom of dom.set) {
1431
- const isSub = simpleSubset(simpleSub, simpleDom, options);
1432
- if (sawNonNull = sawNonNull || null !== isSub, isSub) continue OUTER;
1433
- }
1434
- if (sawNonNull) return false;
1435
- }
1436
- return true;
1437
- };
1438
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/to-comparators.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1439
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1440
- module2.exports = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1441
- }, "./node_modules/.pnpm/semver@7.6.2/node_modules/semver/ranges/valid.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
1442
- const Range = __webpack_require__2("./node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/range.js");
1443
- module2.exports = (range, options) => {
1444
- try {
1445
- return new Range(range, options).range || "*";
1446
- } catch (er2) {
1447
- return null;
1448
- }
1449
- };
1450
- }, crypto: (module2) => {
1451
- "use strict";
1452
- module2.exports = __require("crypto");
1453
- }, fs: (module2) => {
1454
- "use strict";
1455
- module2.exports = __require("fs");
1456
- }, module: (module2) => {
1457
- "use strict";
1458
- module2.exports = __require("module");
1459
- }, path: (module2) => {
1460
- "use strict";
1461
- module2.exports = __require("path");
1462
244
  } }, __webpack_module_cache__ = {};
1463
245
  function __webpack_require__(moduleId) {
1464
246
  var cachedModule = __webpack_module_cache__[moduleId];
1465
247
  if (void 0 !== cachedModule) return cachedModule.exports;
1466
- var module2 = __webpack_module_cache__[moduleId] = { id: moduleId, loaded: false, exports: {} };
1467
- return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.loaded = true, module2.exports;
248
+ var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
249
+ return __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__), module2.exports;
1468
250
  }
1469
251
  __webpack_require__.n = (module2) => {
1470
252
  var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
1471
253
  return __webpack_require__.d(getter, { a: getter }), getter;
1472
254
  }, __webpack_require__.d = (exports2, definition) => {
1473
255
  for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key) && Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
1474
- }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.nmd = (module2) => (module2.paths = [], module2.children || (module2.children = []), module2);
256
+ }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
1475
257
  var __webpack_exports__ = {};
1476
258
  (() => {
1477
259
  "use strict";
1478
- __webpack_require__.d(__webpack_exports__, { default: () => createJITI });
1479
- var external_fs_ = __webpack_require__("fs"), external_module_ = __webpack_require__("module");
1480
- const external_perf_hooks_namespaceObject = __require("perf_hooks"), external_os_namespaceObject = __require("os"), external_vm_namespaceObject = __require("vm");
1481
- var external_vm_default = __webpack_require__.n(external_vm_namespaceObject);
1482
- const external_url_namespaceObject = __require("url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
260
+ __webpack_require__.d(__webpack_exports__, { default: () => createJiti2 });
261
+ const external_node_os_namespaceObject = __require("node:os"), external_node_url_namespaceObject = __require("node:url"), _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
1483
262
  function normalizeWindowsPath2(input = "") {
1484
263
  return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r3) => r3.toUpperCase()) : input;
1485
264
  }
@@ -1493,6 +272,14 @@ var require_jiti = __commonJS({
1493
272
  for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
1494
273
  return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
1495
274
  };
275
+ const resolve3 = function(...arguments_) {
276
+ let resolvedPath = "", resolvedAbsolute = false;
277
+ for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
278
+ const path5 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
279
+ path5 && 0 !== path5.length && (resolvedPath = `${path5}/${resolvedPath}`, resolvedAbsolute = isAbsolute2(path5));
280
+ }
281
+ return resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute2(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
282
+ };
1496
283
  function normalizeString2(path5, allowAboveRoot) {
1497
284
  let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
1498
285
  for (let index = 0; index <= path5.length; ++index) {
@@ -1522,72 +309,38 @@ var require_jiti = __commonJS({
1522
309
  }
1523
310
  return res;
1524
311
  }
1525
- const isAbsolute2 = function(p2) {
1526
- return _IS_ABSOLUTE_RE2.test(p2);
1527
- }, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(p2) {
1528
- const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p2));
312
+ const isAbsolute2 = function(p3) {
313
+ return _IS_ABSOLUTE_RE2.test(p3);
314
+ }, _EXTNAME_RE2 = /.(\.[^./]+)$/, extname3 = function(p3) {
315
+ const match = _EXTNAME_RE2.exec(normalizeWindowsPath2(p3));
1529
316
  return match && match[1] || "";
1530
- }, pathe_ff20891b_dirname = function(p2) {
1531
- const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
1532
- return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
1533
- }, basename2 = function(p2, extension) {
1534
- const lastSegment = normalizeWindowsPath2(p2).split("/").pop();
317
+ }, pathe_ff20891b_dirname = function(p3) {
318
+ const segments = normalizeWindowsPath2(p3).replace(/\/$/, "").split("/").slice(0, -1);
319
+ return 1 === segments.length && _DRIVE_LETTER_RE2.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute2(p3) ? "/" : ".");
320
+ }, basename2 = function(p3, extension) {
321
+ const lastSegment = normalizeWindowsPath2(p3).split("/").pop();
1535
322
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
1536
- }, suspectProtoRx2 = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, suspectConstructorRx2 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, JsonSigRx2 = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
1537
- function jsonParseTransform2(key, value2) {
1538
- if (!("__proto__" === key || "constructor" === key && value2 && "object" == typeof value2 && "prototype" in value2)) return value2;
1539
- !function(key2) {
1540
- console.warn(`[destr] Dropping "${key2}" key to prevent prototype pollution.`);
1541
- }(key);
1542
- }
1543
- function destr2(value2, options = {}) {
1544
- if ("string" != typeof value2) return value2;
1545
- const _value = value2.trim();
1546
- if ('"' === value2[0] && value2.endsWith('"') && !value2.includes("\\")) return _value.slice(1, -1);
1547
- if (_value.length <= 9) {
1548
- const _lval = _value.toLowerCase();
1549
- if ("true" === _lval) return true;
1550
- if ("false" === _lval) return false;
1551
- if ("undefined" === _lval) return;
1552
- if ("null" === _lval) return null;
1553
- if ("nan" === _lval) return Number.NaN;
1554
- if ("infinity" === _lval) return Number.POSITIVE_INFINITY;
1555
- if ("-infinity" === _lval) return Number.NEGATIVE_INFINITY;
1556
- }
1557
- if (!JsonSigRx2.test(value2)) {
1558
- if (options.strict) throw new SyntaxError("[destr] Invalid JSON");
1559
- return value2;
1560
- }
1561
- try {
1562
- if (suspectProtoRx2.test(value2) || suspectConstructorRx2.test(value2)) {
1563
- if (options.strict) throw new Error("[destr] Possible prototype pollution");
1564
- return JSON.parse(value2, jsonParseTransform2);
1565
- }
1566
- return JSON.parse(value2);
1567
- } catch (error) {
1568
- if (options.strict) throw error;
1569
- return value2;
1570
- }
1571
- }
323
+ };
1572
324
  function escapeStringRegexp(string) {
1573
325
  if ("string" != typeof string) throw new TypeError("Expected a string");
1574
326
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
1575
327
  }
1576
- 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");
1577
328
  const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]), normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
1578
329
  function normalizeAliases(_aliases) {
1579
330
  if (_aliases[normalizedAliasSymbol]) return _aliases;
1580
- const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a2], [b6]) => function(a3, b7) {
1581
- return b7.split("/").length - a3.split("/").length;
1582
- }(a2, b6)));
331
+ const aliases2 = Object.fromEntries(Object.entries(_aliases).sort(([a3], [b6]) => function(a4, b7) {
332
+ return b7.split("/").length - a4.split("/").length;
333
+ }(a3, b6)));
1583
334
  for (const key in aliases2) for (const alias in aliases2) alias === key || key.startsWith(alias) || aliases2[key].startsWith(alias) && pathSeparators.has(aliases2[key][alias.length]) && (aliases2[key] = aliases2[alias] + aliases2[key].slice(alias.length));
1584
335
  return Object.defineProperty(aliases2, normalizedAliasSymbol, { value: true, enumerable: false }), aliases2;
1585
336
  }
337
+ const FILENAME_RE = /(^|[/\\])([^/\\]+?)(?=(\.[^.]+)?$)/;
1586
338
  function hasTrailingSlash2(path5 = "/") {
1587
339
  const lastChar = path5[path5.length - 1];
1588
340
  return "/" === lastChar || "\\" === lastChar;
1589
341
  }
1590
- 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]");
342
+ 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");
343
+ 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]");
1591
344
  function isInAstralSet2(code, set) {
1592
345
  for (var pos = 65536, i3 = 0; i3 < set.length; i3 += 2) {
1593
346
  if ((pos += set[i3]) > code) return false;
@@ -1640,8 +393,8 @@ var require_jiti = __commonJS({
1640
393
  Position3.prototype.offset = function(n) {
1641
394
  return new Position3(this.line, this.column + n);
1642
395
  };
1643
- var SourceLocation3 = function(p2, start, end) {
1644
- this.start = start, this.end = end, null !== p2.sourceFile && (this.source = p2.sourceFile);
396
+ var SourceLocation3 = function(p3, start, end) {
397
+ this.start = start, this.end = end, null !== p3.sourceFile && (this.source = p3.sourceFile);
1645
398
  };
1646
399
  function getLineInfo2(input, offset2) {
1647
400
  for (var line = 1, cur = 0; ; ) {
@@ -1717,7 +470,7 @@ var require_jiti = __commonJS({
1717
470
  }, Parser3.tokenizer = function(input, options) {
1718
471
  return new this(options, input);
1719
472
  }, Object.defineProperties(Parser3.prototype, prototypeAccessors2);
1720
- var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
473
+ var pp$92 = Parser3.prototype, literal2 = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/s;
1721
474
  pp$92.strictDirective = function(start) {
1722
475
  if (this.options.ecmaVersion < 5) return false;
1723
476
  for (; ; ) {
@@ -1878,8 +631,8 @@ var require_jiti = __commonJS({
1878
631
  var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
1879
632
  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));
1880
633
  }
1881
- var startsWithLet = this.isContextual("let"), isForOf = false, refDestructuringErrors = new DestructuringErrors3(), init = this.parseExpression(!(awaitAt > -1) || "await", refDestructuringErrors);
1882
- return this.type === types$12._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (this.options.ecmaVersion >= 9 && (this.type === types$12._in ? awaitAt > -1 && this.unexpected(awaitAt) : node.await = awaitAt > -1), 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));
634
+ 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);
635
+ 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));
1883
636
  }, pp$82.parseFunctionStatement = function(node, isAsync2, declarationPosition) {
1884
637
  return this.next(), this.parseFunction(node, FUNC_STATEMENT2 | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT2), false, isAsync2);
1885
638
  }, pp$82.parseIfStatement = function(node) {
@@ -2261,8 +1014,8 @@ var require_jiti = __commonJS({
2261
1014
  };
2262
1015
  var TokContext3 = function(token, isExpr, preserveSpace, override, generator) {
2263
1016
  this.token = token, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
2264
- }, 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(p2) {
2265
- return p2.tryReadTemplateToken();
1017
+ }, 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(p3) {
1018
+ return p3.tryReadTemplateToken();
2266
1019
  }), 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 = Parser3.prototype;
2267
1020
  pp$62.initialContext = function() {
2268
1021
  return [types2.b_stat];
@@ -2312,8 +1065,11 @@ var require_jiti = __commonJS({
2312
1065
  this.options.ecmaVersion >= 6 && prevType !== types$12.dot && ("of" === this.value && !this.exprAllowed || "yield" === this.value && this.inGeneratorContext()) && (allowed = true), this.exprAllowed = allowed;
2313
1066
  };
2314
1067
  var pp$52 = Parser3.prototype;
1068
+ function isLocalVariableAccess2(node) {
1069
+ return "Identifier" === node.type || "ParenthesizedExpression" === node.type && isLocalVariableAccess2(node.expression);
1070
+ }
2315
1071
  function isPrivateFieldAccess2(node) {
2316
- return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression);
1072
+ return "MemberExpression" === node.type && "PrivateIdentifier" === node.property.type || "ChainExpression" === node.type && isPrivateFieldAccess2(node.expression) || "ParenthesizedExpression" === node.type && isPrivateFieldAccess2(node.expression);
2317
1073
  }
2318
1074
  pp$52.checkPropClash = function(prop, propHash, refDestructuringErrors) {
2319
1075
  if (!(this.options.ecmaVersion >= 9 && "SpreadElement" === prop.type || this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))) {
@@ -2391,7 +1147,7 @@ var require_jiti = __commonJS({
2391
1147
  if (this.isContextual("await") && this.canAwait) expr = this.parseAwait(forInit), sawUnary = true;
2392
1148
  else if (this.type.prefix) {
2393
1149
  var node = this.startNode(), update = this.type === types$12.incDec;
2394
- 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 && "Identifier" === node.argument.type ? 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");
1150
+ 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");
2395
1151
  } else if (sawUnary || this.type !== types$12.privateId) {
2396
1152
  if (expr = this.parseExprSubscripts(refDestructuringErrors, forInit), this.checkExpressionErrors(refDestructuringErrors)) return expr;
2397
1153
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
@@ -2561,7 +1317,7 @@ var require_jiti = __commonJS({
2561
1317
  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 = empty2, this.finishNode(node, "NewExpression");
2562
1318
  }, pp$52.parseTemplateElement = function(ref3) {
2563
1319
  var isTagged = ref3.isTagged, elem = this.startNode();
2564
- 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");
1320
+ 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");
2565
1321
  }, pp$52.parseTemplate = function(ref3) {
2566
1322
  void 0 === ref3 && (ref3 = {});
2567
1323
  var isTagged = ref3.isTagged;
@@ -2739,8 +1495,17 @@ var require_jiti = __commonJS({
2739
1495
  for (var i2 = 0, list = [9, 10, 11, 12, 13, 14]; i2 < list.length; i2 += 1) {
2740
1496
  buildUnicodeData2(list[i2]);
2741
1497
  }
2742
- var pp$12 = Parser3.prototype, RegExpValidationState3 = function(parser) {
2743
- 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 = [], this.backReferenceNames = [];
1498
+ var pp$12 = Parser3.prototype, BranchID3 = function(parent, base) {
1499
+ this.parent = parent, this.base = base || this;
1500
+ };
1501
+ BranchID3.prototype.separatedFrom = function(alt) {
1502
+ 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;
1503
+ return false;
1504
+ }, BranchID3.prototype.sibling = function() {
1505
+ return new BranchID3(this.parent, this.base);
1506
+ };
1507
+ var RegExpValidationState3 = function(parser) {
1508
+ 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;
2744
1509
  };
2745
1510
  function isSyntaxCharacter2(ch) {
2746
1511
  return 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
@@ -2755,18 +1520,18 @@ var require_jiti = __commonJS({
2755
1520
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
2756
1521
  }, RegExpValidationState3.prototype.at = function(i3, forceU) {
2757
1522
  void 0 === forceU && (forceU = false);
2758
- var s2 = this.source, l2 = s2.length;
2759
- if (i3 >= l2) return -1;
1523
+ var s2 = this.source, l3 = s2.length;
1524
+ if (i3 >= l3) return -1;
2760
1525
  var c = s2.charCodeAt(i3);
2761
- if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l2) return c;
1526
+ if (!forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3) return c;
2762
1527
  var next = s2.charCodeAt(i3 + 1);
2763
1528
  return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
2764
1529
  }, RegExpValidationState3.prototype.nextIndex = function(i3, forceU) {
2765
1530
  void 0 === forceU && (forceU = false);
2766
- var s2 = this.source, l2 = s2.length;
2767
- if (i3 >= l2) return l2;
1531
+ var s2 = this.source, l3 = s2.length;
1532
+ if (i3 >= l3) return l3;
2768
1533
  var next, c = s2.charCodeAt(i3);
2769
- return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l2 || (next = s2.charCodeAt(i3 + 1)) < 56320 || next > 57343 ? i3 + 1 : i3 + 2;
1534
+ return !forceU && !this.switchU || c <= 55295 || c >= 57344 || i3 + 1 >= l3 || (next = s2.charCodeAt(i3 + 1)) < 56320 || next > 57343 ? i3 + 1 : i3 + 2;
2770
1535
  }, RegExpValidationState3.prototype.current = function(forceU) {
2771
1536
  return void 0 === forceU && (forceU = false), this.at(this.pos, forceU);
2772
1537
  }, RegExpValidationState3.prototype.lookahead = function(forceU) {
@@ -2790,16 +1555,20 @@ var require_jiti = __commonJS({
2790
1555
  }
2791
1556
  this.options.ecmaVersion >= 15 && u3 && v5 && this.raise(state.start, "Invalid regular expression flag");
2792
1557
  }, pp$12.validateRegExpPattern = function(state) {
2793
- this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0 && (state.switchN = true, this.regexp_pattern(state));
1558
+ this.regexp_pattern(state), !state.switchN && this.options.ecmaVersion >= 9 && function(obj) {
1559
+ for (var _7 in obj) return true;
1560
+ return false;
1561
+ }(state.groupNames) && (state.switchN = true, this.regexp_pattern(state));
2794
1562
  }, pp$12.regexp_pattern = function(state) {
2795
- state.pos = 0, state.lastIntValue = 0, state.lastStringValue = "", state.lastAssertionIsQuantifiable = false, state.numCapturingParens = 0, state.maxBackReference = 0, state.groupNames.length = 0, state.backReferenceNames.length = 0, 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");
1563
+ 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");
2796
1564
  for (var i3 = 0, list2 = state.backReferenceNames; i3 < list2.length; i3 += 1) {
2797
1565
  var name = list2[i3];
2798
- -1 === state.groupNames.indexOf(name) && state.raise("Invalid named capture referenced");
1566
+ state.groupNames[name] || state.raise("Invalid named capture referenced");
2799
1567
  }
2800
1568
  }, pp$12.regexp_disjunction = function(state) {
2801
- for (this.regexp_alternative(state); state.eat(124); ) this.regexp_alternative(state);
2802
- this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
1569
+ var trackDisjunction = this.options.ecmaVersion >= 16;
1570
+ 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);
1571
+ trackDisjunction && (state.branchID = state.branchID.parent), this.regexp_eatQuantifier(state, true) && state.raise("Nothing to repeat"), state.eat(123) && state.raise("Lone quantifier brackets");
2803
1572
  }, pp$12.regexp_alternative = function(state) {
2804
1573
  for (; state.pos < state.source.length && this.regexp_eatTerm(state); ) ;
2805
1574
  }, pp$12.regexp_eatTerm = function(state) {
@@ -2868,8 +1637,13 @@ var require_jiti = __commonJS({
2868
1637
  return !(-1 === ch || 36 === ch || ch >= 40 && ch <= 43 || 46 === ch || 63 === ch || 91 === ch || 94 === ch || 124 === ch) && (state.advance(), true);
2869
1638
  }, pp$12.regexp_groupSpecifier = function(state) {
2870
1639
  if (state.eat(63)) {
2871
- if (this.regexp_eatGroupName(state)) return -1 !== state.groupNames.indexOf(state.lastStringValue) && state.raise("Duplicate capture group name"), void state.groupNames.push(state.lastStringValue);
2872
- state.raise("Invalid group");
1640
+ this.regexp_eatGroupName(state) || state.raise("Invalid group");
1641
+ var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
1642
+ if (known) if (trackDisjunction) for (var i3 = 0, list2 = known; i3 < list2.length; i3 += 1) {
1643
+ list2[i3].separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
1644
+ }
1645
+ else state.raise("Duplicate capture group name");
1646
+ trackDisjunction ? (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID) : state.groupNames[state.lastStringValue] = true;
2873
1647
  }
2874
1648
  }, pp$12.regexp_eatGroupName = function(state) {
2875
1649
  if (state.lastStringValue = "", state.eat(60)) {
@@ -3168,8 +1942,8 @@ var require_jiti = __commonJS({
3168
1942
  }
3169
1943
  return true;
3170
1944
  };
3171
- var Token3 = function(p2) {
3172
- this.type = p2.type, this.value = p2.value, this.start = p2.start, this.end = p2.end, p2.options.locations && (this.loc = new SourceLocation3(p2, p2.startLoc, p2.endLoc)), p2.options.ranges && (this.range = [p2.start, p2.end]);
1945
+ var Token3 = function(p3) {
1946
+ this.type = p3.type, this.value = p3.value, this.start = p3.start, this.end = p3.end, p3.options.locations && (this.loc = new SourceLocation3(p3, p3.startLoc, p3.endLoc)), p3.options.ranges && (this.range = [p3.start, p3.end]);
3173
1947
  }, pp2 = Parser3.prototype;
3174
1948
  function stringToBigInt2(str) {
3175
1949
  return "function" != typeof BigInt ? null : BigInt(str.replace(/_/g, ""));
@@ -3474,6 +2248,12 @@ var require_jiti = __commonJS({
3474
2248
  if ("{" !== this.input[this.pos + 1]) break;
3475
2249
  case "`":
3476
2250
  return this.finishToken(types$12.invalidTemplate, this.input.slice(this.start, this.pos));
2251
+ case "\r":
2252
+ "\n" === this.input[this.pos + 1] && ++this.pos;
2253
+ case "\n":
2254
+ case "\u2028":
2255
+ case "\u2029":
2256
+ ++this.curLine, this.lineStart = this.pos + 1;
3477
2257
  }
3478
2258
  this.raise(this.start, "Unterminated template");
3479
2259
  }, pp2.readEscapedChar = function(inTemplate) {
@@ -3510,7 +2290,7 @@ var require_jiti = __commonJS({
3510
2290
  var octalStr = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], octal = parseInt(octalStr, 8);
3511
2291
  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);
3512
2292
  }
3513
- return isNewLine2(ch) ? "" : String.fromCharCode(ch);
2293
+ return isNewLine2(ch) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ch);
3514
2294
  }
3515
2295
  }, pp2.readHexChar = function(len) {
3516
2296
  var codePos = this.pos, n = this.readInt(16, len);
@@ -3535,8 +2315,8 @@ var require_jiti = __commonJS({
3535
2315
  var word = this.readWord1(), type = types$12.name;
3536
2316
  return this.keywords.test(word) && (type = keywords2[word]), this.finishToken(type, word);
3537
2317
  };
3538
- Parser3.acorn = { Parser: Parser3, version: "8.11.3", defaultOptions: defaultOptions2, Position: Position3, SourceLocation: SourceLocation3, getLineInfo: getLineInfo2, 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 };
3539
- const external_node_module_namespaceObject = __require("module"), external_node_fs_namespaceObject = __require("fs");
2318
+ Parser3.acorn = { Parser: Parser3, version: "8.12.0", defaultOptions: defaultOptions2, Position: Position3, SourceLocation: SourceLocation3, getLineInfo: getLineInfo2, 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 };
2319
+ const external_node_module_namespaceObject = __require("node:module");
3540
2320
  Math.floor, String.fromCharCode;
3541
2321
  const TRAILING_SLASH_RE2 = /\/$|\/\?|\/#/, JOIN_LEADING_SLASH_RE2 = /^\.?\//;
3542
2322
  function dist_hasTrailingSlash(input = "", respectQueryAndFragment) {
@@ -3564,7 +2344,7 @@ var require_jiti = __commonJS({
3564
2344
  }
3565
2345
  Symbol.for("ufo:protocolRelative");
3566
2346
  Object.defineProperty;
3567
- const external_node_url_namespaceObject = __require("url"), external_node_assert_namespaceObject = __require("assert"), external_node_process_namespaceObject = __require("process"), external_node_path_namespaceObject = __require("path"), external_node_v8_namespaceObject = __require("v8"), external_node_util_namespaceObject = __require("util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
2347
+ 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);
3568
2348
  function normalizeSlash2(path5) {
3569
2349
  return path5.replace(/\\/g, "/");
3570
2350
  }
@@ -3887,9 +2667,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
3887
2667
  }
3888
2668
  throw exportsNotFound2(packageSubpath, packageJsonUrl, base);
3889
2669
  }
3890
- function patternKeyCompare2(a2, b6) {
3891
- const aPatternIndex = a2.indexOf("*"), bPatternIndex = b6.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a2.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b6.length : bPatternIndex + 1;
3892
- return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a2.length > b6.length ? -1 : b6.length > a2.length ? 1 : 0;
2670
+ function patternKeyCompare2(a3, b6) {
2671
+ const aPatternIndex = a3.indexOf("*"), bPatternIndex = b6.indexOf("*"), baseLengthA = -1 === aPatternIndex ? a3.length : aPatternIndex + 1, baseLengthB = -1 === bPatternIndex ? b6.length : bPatternIndex + 1;
2672
+ return baseLengthA > baseLengthB ? -1 : baseLengthB > baseLengthA || -1 === aPatternIndex ? 1 : -1 === bPatternIndex || a3.length > b6.length ? -1 : b6.length > a3.length ? 1 : 0;
3893
2673
  }
3894
2674
  function packageImportsResolve2(name, base, conditions) {
3895
2675
  if ("#" === name || name.startsWith("#/") || name.endsWith("/")) {
@@ -4058,220 +2838,285 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4058
2838
  function hasESMSyntax(code, opts = {}) {
4059
2839
  return opts.stripComments && (code = code.replace(COMMENT_RE, "")), ESM_RE.test(code);
4060
2840
  }
4061
- var external_crypto_ = __webpack_require__("crypto");
4062
- function md5(content, len = 8) {
4063
- return (0, external_crypto_.createHash)("md5").update(content).digest("hex").slice(0, len);
2841
+ const dist_r = /* @__PURE__ */ Object.create(null), E3 = (e2) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e2 ? dist_r : globalThis), dist_s = new Proxy(dist_r, { get: (e2, o) => E3()[o] ?? dist_r[o], has: (e2, o) => o in E3() || o in dist_r, set: (e2, o, i3) => (E3(true)[o] = i3, true), deleteProperty(e2, o) {
2842
+ if (!o) return false;
2843
+ return delete E3(true)[o], true;
2844
+ }, ownKeys() {
2845
+ const e2 = E3(true);
2846
+ return Object.keys(e2);
2847
+ } }), dist_t = typeof process < "u" && process.env && process.env.NODE_ENV || "", p2 = [["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"]];
2848
+ const l2 = function() {
2849
+ if (globalThis.process?.env) for (const e2 of p2) {
2850
+ const o = e2[1] || e2[0];
2851
+ if (globalThis.process?.env[o]) return { name: e2[0].toLowerCase(), ...e2[2] };
2852
+ }
2853
+ return "/bin/jsh" === globalThis.process?.env?.SHELL && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
2854
+ }();
2855
+ l2.name;
2856
+ function dist_n(e2) {
2857
+ return !!e2 && "false" !== e2;
2858
+ }
2859
+ const I4 = globalThis.process?.platform || "", T5 = dist_n(dist_s.CI) || false !== l2.ci, R4 = dist_n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), C4 = (dist_n(dist_s.DEBUG), "test" === dist_t || dist_n(dist_s.TEST)), a2 = (dist_n(dist_s.MINIMAL), /^win/i.test(I4)), _6 = (/^linux/i.test(I4), /^darwin/i.test(I4), !dist_n(dist_s.NO_COLOR) && (dist_n(dist_s.FORCE_COLOR) || (R4 || a2) && dist_s.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), W6 = (Number(_6?.split(".")[0]), globalThis.process || /* @__PURE__ */ Object.create(null)), dist_c = { versions: {} }, A2 = (new Proxy(W6, { get: (e2, o) => "env" === o ? dist_s : o in e2 ? e2[o] : o in dist_c ? dist_c[o] : void 0 }), "node" === globalThis.process?.release?.name), L2 = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D4 = !!globalThis.Deno, O4 = !!globalThis.fastly, F2 = [[!!globalThis.Netlify, "netlify"], [!!globalThis.EdgeRuntime, "edge-light"], ["Cloudflare-Workers" === globalThis.navigator?.userAgent, "workerd"], [O4, "fastly"], [D4, "deno"], [L2, "bun"], [A2, "node"], [!!globalThis.__lagon__, "lagon"]];
2860
+ !function() {
2861
+ const e2 = F2.find((o) => o[0]);
2862
+ if (e2) e2[1];
2863
+ }();
2864
+ const hasColors = __require("node:tty").WriteStream.prototype.hasColors(), base_format = (open, close) => {
2865
+ if (!hasColors) return (input) => input;
2866
+ const openCode = `\x1B[${open}m`, closeCode = `\x1B[${close}m`;
2867
+ return (input) => {
2868
+ const string = input + "";
2869
+ let index = string.indexOf(closeCode);
2870
+ if (-1 === index) return openCode + string + closeCode;
2871
+ let result = openCode, lastIndex = 0;
2872
+ for (; -1 !== index; ) result += string.slice(lastIndex, index) + openCode, lastIndex = index + closeCode.length, index = string.indexOf(closeCode, lastIndex);
2873
+ return result += string.slice(lastIndex) + closeCode, result;
2874
+ };
2875
+ }, 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));
2876
+ 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);
2877
+ function isDir(filename) {
2878
+ if (filename instanceof URL || filename.startsWith("file://")) return false;
2879
+ try {
2880
+ return (0, external_node_fs_namespaceObject.lstatSync)(filename).isDirectory();
2881
+ } catch {
2882
+ return false;
2883
+ }
4064
2884
  }
4065
- var __awaiter = function(thisArg, _arguments, P5, generator) {
4066
- return new (P5 || (P5 = Promise))(function(resolve3, reject) {
4067
- function fulfilled(value2) {
4068
- try {
4069
- step(generator.next(value2));
4070
- } catch (e2) {
4071
- reject(e2);
4072
- }
4073
- }
4074
- function rejected(value2) {
4075
- try {
4076
- step(generator.throw(value2));
4077
- } catch (e2) {
4078
- reject(e2);
4079
- }
4080
- }
4081
- function step(result) {
4082
- var value2;
4083
- result.done ? resolve3(result.value) : (value2 = result.value, value2 instanceof P5 ? value2 : new P5(function(resolve4) {
4084
- resolve4(value2);
4085
- })).then(fulfilled, rejected);
2885
+ function md5(content, len = 8) {
2886
+ return (0, external_node_crypto_namespaceObject.createHash)("md5").update(content).digest("hex").slice(0, len);
2887
+ }
2888
+ 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]") };
2889
+ function debug2(ctx, ...args) {
2890
+ if (!ctx.opts.debug) return;
2891
+ const cwd2 = process.cwd();
2892
+ console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd2, "."))].join(" ")));
2893
+ }
2894
+ function jitiInteropDefault(ctx, mod) {
2895
+ return ctx.opts.interopDefault ? function(sourceModule, opts = {}) {
2896
+ if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
2897
+ var value2;
2898
+ const defaultValue = sourceModule.default;
2899
+ if (null == defaultValue) return sourceModule;
2900
+ const _defaultType = typeof defaultValue;
2901
+ if ("object" !== _defaultType && ("function" !== _defaultType || opts.preferNamespace)) return opts.preferNamespace ? sourceModule : defaultValue;
2902
+ for (const key in sourceModule) try {
2903
+ key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
2904
+ } catch {
4086
2905
  }
4087
- step((generator = generator.apply(thisArg, _arguments || [])).next());
4088
- });
4089
- };
4090
- 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)(), defaults3 = { 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?)$/;
4091
- function createJITI(_filename, opts = {}, parentModule, parentCache) {
4092
- (opts = Object.assign(Object.assign({}, defaults3), opts)).legacy && (opts.cacheVersion += "-legacy"), opts.transformOptions && (opts.cacheVersion += "-" + object_hash_default()(opts.transformOptions));
4093
- 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((m3) => escapeStringRegexp(m3)).join("|")})/`), isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
4094
- function debug2(...args) {
4095
- opts.debug && console.log("[jiti]", ...args);
4096
- }
4097
- if (_filename || (_filename = process.cwd()), function(filename) {
2906
+ return defaultValue;
2907
+ }(mod) : mod;
2908
+ }
2909
+ function _booleanEnv(name, defaultValue) {
2910
+ const val = _jsonEnv(name, defaultValue);
2911
+ return Boolean(val);
2912
+ }
2913
+ function _jsonEnv(name, defaultValue) {
2914
+ const envValue = process.env[name];
2915
+ if (!(name in process.env)) return defaultValue;
2916
+ try {
2917
+ return JSON.parse(envValue);
2918
+ } catch {
2919
+ return defaultValue;
2920
+ }
2921
+ }
2922
+ const JS_EXT_RE = /\.(c|m)?j(sx?)$/, TS_EXT_RE = /\.(c|m)?t(sx?)$/;
2923
+ function jitiResolve(ctx, id, options) {
2924
+ let resolved, lastError;
2925
+ if (ctx.isNativeRe.test(id)) return id;
2926
+ ctx.alias && (id = function(path5, aliases2) {
2927
+ const _path = normalizeWindowsPath2(path5);
2928
+ aliases2 = normalizeAliases(aliases2);
2929
+ for (const [alias, to] of Object.entries(aliases2)) {
2930
+ if (!_path.startsWith(alias)) continue;
2931
+ const _alias = hasTrailingSlash2(alias) ? alias.slice(0, -1) : alias;
2932
+ if (hasTrailingSlash2(_path[_alias.length])) return join4(to, _path.slice(alias.length));
2933
+ }
2934
+ return _path;
2935
+ }(id, ctx.alias));
2936
+ let parentURL = options?.parentURL || ctx.url;
2937
+ isDir(parentURL) && (parentURL = join4(parentURL, "_index.js"));
2938
+ const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
2939
+ for (const conditions of conditionSets) {
4098
2940
  try {
4099
- return (0, external_fs_.lstatSync)(filename).isDirectory();
4100
- } catch (_a) {
4101
- return false;
2941
+ resolved = resolvePathSync2(id, { url: parentURL, conditions, extensions: ctx.opts.extensions });
2942
+ } catch (error) {
2943
+ lastError = error;
4102
2944
  }
4103
- }(_filename) && (_filename = join4(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
4104
- let _tmpDir = (0, external_os_namespaceObject.tmpdir)();
2945
+ if (resolved) return resolved;
2946
+ }
2947
+ try {
2948
+ return ctx.nativeRequire.resolve(id, options);
2949
+ } catch (error) {
2950
+ lastError = error;
2951
+ }
2952
+ for (const ext of ctx.additionalExts) {
2953
+ if (resolved = tryNativeRequireResolve(ctx, id + ext, parentURL, options) || tryNativeRequireResolve(ctx, id + "/index" + ext, parentURL, options), resolved) return resolved;
2954
+ 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, options), resolved)) return resolved;
2955
+ }
2956
+ if (!options?.try) throw lastError;
2957
+ }
2958
+ function tryNativeRequireResolve(ctx, id, parentURL, options) {
2959
+ try {
2960
+ return ctx.nativeRequire.resolve(id, { ...options, paths: [pathe_ff20891b_dirname(fileURLToPath3(parentURL)), ...options?.paths || []] });
2961
+ } catch {
2962
+ }
2963
+ }
2964
+ const external_node_perf_hooks_namespaceObject = __require("node:perf_hooks"), external_node_vm_namespaceObject = __require("node:vm");
2965
+ var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
2966
+ function jitiRequire(ctx, id, opts) {
2967
+ const cache3 = ctx.parentCache || {};
2968
+ 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);
2969
+ if (ctx.opts.experimentalBun && !ctx.opts.transformOptions) try {
2970
+ if (!(id = jitiResolve(ctx, id, opts)) && opts.try) return;
2971
+ if (debug2(ctx, "[bun]", "[native]", opts.async && ctx.nativeImport ? "[import]" : "[require]", id), opts.async && ctx.nativeImport) return ctx.nativeImport(id).then((m3) => (false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, m3)));
2972
+ {
2973
+ const _mod = ctx.nativeRequire(id);
2974
+ return false === ctx.opts.moduleCache && delete ctx.nativeRequire.cache[id], jitiInteropDefault(ctx, _mod);
2975
+ }
2976
+ } catch (error) {
2977
+ debug2(ctx, `[bun] Using fallback for ${id} because of an error:`, error);
2978
+ }
2979
+ const filename = jitiResolve(ctx, id, opts);
2980
+ if (!filename && opts.try) return;
2981
+ const ext = extname3(filename);
2982
+ if (".json" === ext) {
2983
+ debug2(ctx, "[json]", filename);
2984
+ const jsonModule = ctx.nativeRequire(filename);
2985
+ return jsonModule && !("default" in jsonModule) && Object.defineProperty(jsonModule, "default", { value: jsonModule, enumerable: false }), jsonModule;
2986
+ }
2987
+ if (ext && !ctx.opts.extensions.includes(ext)) return debug2(ctx, "[native]", "[unknown]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
2988
+ if (ctx.isNativeRe.test(filename)) return debug2(ctx, "[native]", opts.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, opts.async);
2989
+ if (cache3[filename]) return jitiInteropDefault(ctx, cache3[filename]?.exports);
2990
+ if (ctx.opts.moduleCache && ctx.nativeRequire.cache[filename]) return jitiInteropDefault(ctx, ctx.nativeRequire.cache[filename]?.exports);
2991
+ const source = (0, external_node_fs_namespaceObject.readFileSync)(filename, "utf8");
2992
+ return eval_evalModule(ctx, source, { id, filename, ext, cache: cache3, async: opts.async });
2993
+ }
2994
+ function nativeImportOrRequire(ctx, id, async) {
2995
+ return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
2996
+ return a2 && isAbsolute2(id2) ? pathToFileURL2(id2) : id2;
2997
+ }(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
2998
+ }
2999
+ const CACHE_VERSION = "8";
3000
+ function getCache(ctx, topts, get) {
3001
+ if (!ctx.opts.fsCache || !topts.filename) return get();
3002
+ const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
3003
+ `, cacheName = `${basename2(pathe_ff20891b_dirname(topts.filename))}-${function(path5) {
3004
+ return path5.match(FILENAME_RE)?.[2];
3005
+ }(topts.filename)}` + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs"), cacheDir = ctx.opts.fsCache, cacheFilePath = join4(cacheDir, cacheName);
3006
+ if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
3007
+ const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
3008
+ if (cacheSource.endsWith(sourceHash)) return debug2(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
3009
+ }
3010
+ debug2(ctx, "[cache]", "[miss]", topts.filename);
3011
+ const result = get();
3012
+ return result.includes("__JITI_ERROR__") || ((0, external_node_fs_namespaceObject.writeFileSync)(cacheFilePath, result + sourceHash, "utf8"), debug2(ctx, "[cache]", "[store]", topts.filename, "~>", cacheFilePath)), result;
3013
+ }
3014
+ function prepareCacheDir(ctx) {
3015
+ if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
3016
+ const nmDir = ctx2.filename && resolve3(ctx2.filename, "../node_modules");
3017
+ if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join4(nmDir, ".cache/jiti");
3018
+ let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
4105
3019
  if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
4106
3020
  const _env = process.env.TMPDIR;
4107
- delete process.env.TMPDIR, _tmpDir = (0, external_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
3021
+ delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
4108
3022
  }
4109
- return join4(_tmpDir, "node-jiti");
4110
- }()), opts.cache) try {
4111
- if ((0, external_fs_.mkdirSync)(opts.cache, { recursive: true }), !function(filename) {
3023
+ return join4(_tmpDir, "jiti");
3024
+ }(ctx)), ctx.opts.fsCache) try {
3025
+ if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
4112
3026
  try {
4113
- return (0, external_fs_.accessSync)(filename, external_fs_.constants.W_OK), true;
4114
- } catch (_a) {
3027
+ return (0, external_node_fs_namespaceObject.accessSync)(filename, external_node_fs_namespaceObject.constants.W_OK), true;
3028
+ } catch {
4115
3029
  return false;
4116
3030
  }
4117
- }(opts.cache)) throw new Error("directory is not writable");
3031
+ }(ctx.opts.fsCache)) throw new Error("directory is not writable!");
4118
3032
  } catch (error) {
4119
- debug2("Error creating cache directory at ", opts.cache, error), opts.cache = false;
3033
+ debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
4120
3034
  }
4121
- const nativeRequire = create_require_default()(isWindows ? _filename.replace(/\//g, "\\") : _filename), tryResolve = (id, options) => {
4122
- try {
4123
- return nativeRequire.resolve(id, options);
4124
- } catch (_a) {
4125
- }
4126
- }, _url = (0, external_url_namespaceObject.pathToFileURL)(_filename), _additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), _resolve3 = (id, options) => {
4127
- let resolved, err;
4128
- if (alias && (id = function(path5, aliases2) {
4129
- const _path = normalizeWindowsPath2(path5);
4130
- aliases2 = normalizeAliases(aliases2);
4131
- for (const [alias2, to] of Object.entries(aliases2)) {
4132
- if (!_path.startsWith(alias2)) continue;
4133
- const _alias = hasTrailingSlash2(alias2) ? alias2.slice(0, -1) : alias2;
4134
- if (hasTrailingSlash2(_path[_alias.length])) return join4(to, _path.slice(alias2.length));
4135
- }
4136
- return _path;
4137
- }(id, alias)), opts.esmResolve) {
4138
- const conditionSets = [["node", "require"], ["node", "import"]];
4139
- for (const conditions of conditionSets) {
3035
+ }
3036
+ function transform2(ctx, topts) {
3037
+ let code = getCache(ctx, topts, () => {
3038
+ 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 });
3039
+ return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
3040
+ });
3041
+ return code.startsWith("#!") && (code = "// " + code), code;
3042
+ }
3043
+ function eval_evalModule(ctx, source, evalOptions = {}) {
3044
+ 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 || extname3(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isESM = ".mjs" === ext || ".js" === ext && "module" === function(path5) {
3045
+ for (; path5 && "." !== path5 && "/" !== path5; ) {
3046
+ path5 = join4(path5, "..");
3047
+ try {
3048
+ const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join4(path5, "package.json"), "utf8");
4140
3049
  try {
4141
- resolved = resolvePathSync2(id, { url: _url, conditions, extensions: opts.extensions });
4142
- } catch (error) {
4143
- err = error;
3050
+ return JSON.parse(pkg);
3051
+ } catch {
4144
3052
  }
4145
- if (resolved) return resolved;
4146
- }
4147
- }
4148
- try {
4149
- return nativeRequire.resolve(id, options);
4150
- } catch (error) {
4151
- err = error;
4152
- }
4153
- for (const ext of _additionalExts) {
4154
- if (resolved = tryResolve(id + ext, options) || tryResolve(id + "/index" + ext, options), resolved) return resolved;
4155
- if (TS_EXT_RE.test((null == parentModule ? void 0 : parentModule.filename) || "") && (resolved = tryResolve(id.replace(JS_EXT_RE, ".$1t$2"), options), resolved)) return resolved;
4156
- }
4157
- throw err;
4158
- };
4159
- function transform(topts) {
4160
- let code = function(filename, source, get) {
4161
- if (!opts.cache || !filename) return get();
4162
- const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_ff20891b_dirname(filename)) + "-" + basename2(filename), cacheFile = join4(opts.cache, filebase + "." + md5(filename) + ".js");
4163
- if ((0, external_fs_.existsSync)(cacheFile)) {
4164
- const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
4165
- if (cacheSource.endsWith(sourceHash)) return debug2("[cache hit]", filename, "~>", cacheFile), cacheSource;
4166
- }
4167
- debug2("[cache miss]", filename);
4168
- const result = get();
4169
- return result.includes("__JITI_ERROR__") || (0, external_fs_.writeFileSync)(cacheFile, result + sourceHash, "utf8"), result;
4170
- }(topts.filename, topts.source, () => {
4171
- var _a;
4172
- 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 === (_a = opts.transformOptions) || void 0 === _a ? void 0 : _a.babel) }), topts));
4173
- return res.error && opts.debug && debug2(res.error), res.code;
4174
- });
4175
- return code.startsWith("#!") && (code = "// " + code), code;
4176
- }
4177
- function _interopDefault(mod) {
4178
- return opts.interopDefault ? function(sourceModule, opts2 = {}) {
4179
- if (null === (value2 = sourceModule) || "object" != typeof value2 || !("default" in sourceModule)) return sourceModule;
4180
- var value2;
4181
- const defaultValue = sourceModule.default;
4182
- if (null == defaultValue) return sourceModule;
4183
- const _defaultType = typeof defaultValue;
4184
- if ("object" !== _defaultType && ("function" !== _defaultType || opts2.preferNamespace)) return opts2.preferNamespace ? sourceModule : defaultValue;
4185
- for (const key in sourceModule) try {
4186
- key in defaultValue || Object.defineProperty(defaultValue, key, { enumerable: "default" !== key, configurable: "default" !== key, get: () => sourceModule[key] });
3053
+ break;
4187
3054
  } catch {
4188
3055
  }
4189
- return defaultValue;
4190
- }(mod) : mod;
4191
- }
4192
- function jiti(id, _importOptions) {
4193
- var _a, _b;
4194
- const cache3 = parentCache || {};
4195
- 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);
4196
- if (opts.experimentalBun && !opts.transformOptions) try {
4197
- debug2(`[bun] [native] ${id}`);
4198
- const _mod = nativeRequire(id);
4199
- return false === opts.requireCache && delete nativeRequire.cache[id], _interopDefault(_mod);
4200
- } catch (error) {
4201
- debug2(`[bun] Using fallback for ${id} because of an error:`, error);
4202
3056
  }
4203
- const filename = _resolve3(id), ext = extname3(filename);
4204
- if (".json" === ext) {
4205
- debug2("[json]", filename);
4206
- const jsonModule = nativeRequire(id);
4207
- return Object.defineProperty(jsonModule, "default", { value: jsonModule }), jsonModule;
4208
- }
4209
- if (ext && !opts.extensions.includes(ext)) return debug2("[unknown]", filename), nativeRequire(id);
4210
- if (isNativeRe.test(filename)) return debug2("[native]", filename), nativeRequire(id);
4211
- if (cache3[filename] && (true === cache3[filename].loaded || false === (null == parentModule ? void 0 : parentModule.loaded))) return _interopDefault(null === (_a = cache3[filename]) || void 0 === _a ? void 0 : _a.exports);
4212
- if (opts.requireCache && nativeRequire.cache[filename]) return _interopDefault(null === (_b = nativeRequire.cache[filename]) || void 0 === _b ? void 0 : _b.exports);
4213
- return evalModule((0, external_fs_.readFileSync)(filename, "utf8"), { id, filename, ext, cache: cache3 });
3057
+ }(filename)?.type, needsTranspile = !(".cjs" === ext) && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source)), start = external_node_perf_hooks_namespaceObject.performance.now();
3058
+ if (needsTranspile) {
3059
+ source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
3060
+ const time = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
3061
+ debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time}ms)`);
3062
+ } else try {
3063
+ return debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), nativeImportOrRequire(ctx, filename, evalOptions.async);
3064
+ } catch (error) {
3065
+ debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false });
4214
3066
  }
4215
- function evalModule(source, evalOptions = {}) {
4216
- var _a;
4217
- const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve3(id), ext = evalOptions.ext || extname3(filename), cache3 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a = function(path5) {
4218
- for (; path5 && "." !== path5 && "/" !== path5; ) {
4219
- path5 = join4(path5, "..");
4220
- try {
4221
- const pkg = (0, external_fs_.readFileSync)(join4(path5, "package.json"), "utf8");
4222
- try {
4223
- return JSON.parse(pkg);
4224
- } catch (_a2) {
4225
- }
4226
- break;
4227
- } catch (_b) {
4228
- }
4229
- }
4230
- }(filename)) || void 0 === _a ? void 0 : _a.type), needsTranspile = !(".cjs" === ext) && (isTypescript || isNativeModule || isTransformRe.test(filename) || hasESMSyntax(source) || opts.legacy && source.match(/\?\.|\?\?/));
4231
- const start = external_perf_hooks_namespaceObject.performance.now();
4232
- if (needsTranspile) {
4233
- source = transform({ filename, source, ts: isTypescript });
4234
- debug2("[transpile]" + (isNativeModule ? " [esm]" : ""), filename, `(${Math.round(1e3 * (external_perf_hooks_namespaceObject.performance.now() - start)) / 1e3}ms)`);
4235
- } else try {
4236
- return debug2("[native]", filename), _interopDefault(nativeRequire(id));
4237
- } catch (error) {
4238
- debug2("Native require error:", error), debug2("[fallback]", filename), source = transform({ filename, source, ts: isTypescript });
4239
- }
4240
- const mod = new external_module_.Module(filename);
4241
- let compiled;
4242
- 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, cache3), mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_module_.Module._nodeModulePaths(mod.path), cache3[filename] = mod, opts.requireCache && (nativeRequire.cache[filename] = mod);
4243
- try {
4244
- compiled = external_vm_default().runInThisContext(external_module_.Module.wrap(source), { filename, lineOffset: 0, displayErrors: false });
4245
- } catch (error) {
4246
- opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
4247
- }
4248
- try {
4249
- compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename));
4250
- } catch (error) {
4251
- opts.requireCache && delete nativeRequire.cache[filename], opts.onError(error);
4252
- }
3067
+ const mod = new external_node_module_namespaceObject.Module(filename);
3068
+ mod.filename = filename, ctx.parentModule && (mod.parent = ctx.parentModule, Array.isArray(ctx.parentModule.children) && !ctx.parentModule.children.includes(mod) && ctx.parentModule.children.push(mod));
3069
+ const _jiti = createJiti2(filename, ctx.opts, { parentModule: mod, parentCache: cache3, nativeImport: ctx.nativeImport, onError: ctx.onError, createRequire: ctx.createRequire }, true);
3070
+ let compiled, evalResult;
3071
+ mod.require = _jiti, mod.path = pathe_ff20891b_dirname(filename), mod.paths = external_node_module_namespaceObject.Module._nodeModulePaths(mod.path), cache3[filename] = mod, ctx.opts.moduleCache && (ctx.nativeRequire.cache[filename] = mod);
3072
+ try {
3073
+ compiled = external_node_vm_default().runInThisContext(function(source2, opts) {
3074
+ return `(${opts?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport) { ${source2}
3075
+ });`;
3076
+ }(source, { async: evalOptions.async }), { filename, lineOffset: 0, displayErrors: false });
3077
+ } catch (error) {
3078
+ ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
3079
+ }
3080
+ try {
3081
+ evalResult = compiled(mod.exports, mod.require, mod, mod.filename, pathe_ff20891b_dirname(mod.filename), _jiti.import);
3082
+ } catch (error) {
3083
+ ctx.opts.moduleCache && delete ctx.nativeRequire.cache[filename], ctx.onError(error);
3084
+ }
3085
+ function next() {
4253
3086
  if (mod.exports && mod.exports.__JITI_ERROR__) {
4254
3087
  const { filename: filename2, line, column, code, message } = mod.exports.__JITI_ERROR__, err = new Error(`${code}: ${message}
4255
3088
  ${`${filename2}:${line}:${column}`}`);
4256
- Error.captureStackTrace(err, jiti), opts.onError(err);
3089
+ Error.captureStackTrace(err, jitiRequire), ctx.onError(err);
4257
3090
  }
4258
3091
  mod.loaded = true;
4259
- return _interopDefault(mod.exports);
4260
- }
4261
- return _resolve3.paths = nativeRequire.resolve.paths, jiti.resolve = _resolve3, jiti.cache = opts.requireCache ? nativeRequire.cache : {}, jiti.extensions = nativeRequire.extensions, jiti.main = nativeRequire.main, jiti.transform = transform, jiti.register = function() {
4262
- return (0, lib.addHook)((source, filename) => jiti.transform({ source, filename, ts: !!/\.[cm]?ts$/.test(filename) }), { exts: opts.extensions });
4263
- }, jiti.evalModule = evalModule, jiti.import = (id, importOptions) => __awaiter(this, void 0, void 0, function* () {
4264
- return yield jiti(id);
4265
- }), jiti;
3092
+ return jitiInteropDefault(ctx, mod.exports);
3093
+ }
3094
+ return evalOptions.async ? Promise.resolve(evalResult).then(next) : next();
3095
+ }
3096
+ const isWindows = "win32" === (0, external_node_os_namespaceObject.platform)();
3097
+ function createJiti2(filename, userOptions = {}, parentContext, isNested = false) {
3098
+ const opts = isNested ? userOptions : function(userOptions2) {
3099
+ 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 = {};
3100
+ return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
3101
+ }(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
3102
+ filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join4(filename, "_index.js"));
3103
+ const url = (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, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
3104
+ isNested || debug2(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
3105
+ const jiti = Object.assign(function(id) {
3106
+ return jitiRequire(ctx, id, { async: false });
3107
+ }, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, resolve: Object.assign(function(path5) {
3108
+ return jitiResolve(ctx, path5, { async: false });
3109
+ }, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform2(ctx, opts2), evalModule: (source, options) => eval_evalModule(ctx, source, options), import: async (id, opts2) => await jitiRequire(ctx, id, { ...opts2, async: true }), esmResolve: (id, opts2) => jitiResolve(ctx, id, { ...opts2, async: true }) });
3110
+ return jiti;
4266
3111
  }
4267
3112
  })(), module.exports = __webpack_exports__.default;
4268
3113
  })();
4269
3114
  }
4270
3115
  });
4271
3116
 
4272
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/babel.js
3117
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs
4273
3118
  var require_babel = __commonJS({
4274
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/dist/babel.js"(exports, module) {
3119
+ "node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/dist/babel.cjs"(exports, module) {
4275
3120
  (() => {
4276
3121
  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) {
4277
3122
  module2.exports = function(traceMapping, genMapping) {
@@ -4357,11 +3202,11 @@ Did you specify these with the most recent transformation maps first?`);
4357
3202
  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;
4358
3203
  }, "./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) => {
4359
3204
  "use strict";
4360
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
3205
+ exports2.A = void 0;
4361
3206
  var _default = (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) {
4362
3207
  parserOpts.plugins.push("classProperties", "classPrivateProperties", "classPrivateMethods");
4363
3208
  } }));
4364
- exports2.default = _default;
3209
+ exports2.A = _default;
4365
3210
  }, "./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) => {
4366
3211
  "use strict";
4367
3212
  exports2.A = void 0;
@@ -4369,20 +3214,6 @@ Did you specify these with the most recent transformation maps first?`);
4369
3214
  parserOpts.plugins.push("exportNamespaceFrom");
4370
3215
  } }));
4371
3216
  exports2.A = _default;
4372
- }, "./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) => {
4373
- "use strict";
4374
- exports2.A = void 0;
4375
- var _default = (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) {
4376
- parserOpts.plugins.push("nullishCoalescingOperator");
4377
- } }));
4378
- exports2.A = _default;
4379
- }, "./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) => {
4380
- "use strict";
4381
- exports2.A = void 0;
4382
- var _default = (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) {
4383
- parserOpts.plugins.push("optionalChaining");
4384
- } }));
4385
- exports2.A = _default;
4386
3217
  }, "./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) {
4387
3218
  !function(exports3, setArray, sourcemapCodec, traceMapping) {
4388
3219
  "use strict";
@@ -4962,55 +3793,6 @@ Did you specify these with the most recent transformation maps first?`);
4962
3793
  }
4963
3794
  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 = isIgnored, exports3.originalPositionFor = originalPositionFor, exports3.presortedDecodedMap = presortedDecodedMap, exports3.sourceContentFor = sourceContentFor, exports3.traceSegment = traceSegment;
4964
3795
  }(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"));
4965
- }, "./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) => {
4966
- "use strict";
4967
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(api) {
4968
- var transformImport = (0, _utils.createDynamicImportTransform)(api);
4969
- return { manipulateOptions: function(opts, parserOpts) {
4970
- parserOpts.plugins.push("dynamicImport");
4971
- }, visitor: { Import: function(path5) {
4972
- transformImport(this, path5);
4973
- } } };
4974
- };
4975
- 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");
4976
- module2.exports = exports2.default;
4977
- }, "./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) => {
4978
- "use strict";
4979
- Object.defineProperty(exports2, "__esModule", { value: true });
4980
- var _slicedToArray = function(arr, i2) {
4981
- if (Array.isArray(arr)) return arr;
4982
- if (Symbol.iterator in Object(arr)) return function(arr2, i3) {
4983
- var _arr = [], _n2 = true, _d = false, _e2 = void 0;
4984
- try {
4985
- for (var _s, _i2 = arr2[Symbol.iterator](); !(_n2 = (_s = _i2.next()).done) && (_arr.push(_s.value), !i3 || _arr.length !== i3); _n2 = true) ;
4986
- } catch (err) {
4987
- _d = true, _e2 = err;
4988
- } finally {
4989
- try {
4990
- !_n2 && _i2.return && _i2.return();
4991
- } finally {
4992
- if (_d) throw _e2;
4993
- }
4994
- }
4995
- return _arr;
4996
- }(arr, i2);
4997
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
4998
- };
4999
- function getImportSource(t2, callNode) {
5000
- var importArguments = callNode.arguments, importPath = _slicedToArray(importArguments, 1)[0];
5001
- return t2.isStringLiteral(importPath) || t2.isTemplateLiteral(importPath) ? (t2.removeComments(importPath), importPath) : t2.templateLiteral([t2.templateElement({ raw: "", cooked: "" }), t2.templateElement({ raw: "", cooked: "" }, true)], importArguments);
5002
- }
5003
- exports2.getImportSource = getImportSource, exports2.createDynamicImportTransform = function(_ref) {
5004
- var template = _ref.template, t2 = _ref.types, builders = { static: { interop: template("Promise.resolve().then(() => INTEROP(require(SOURCE)))"), noInterop: template("Promise.resolve().then(() => require(SOURCE))") }, dynamic: { interop: template("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"), noInterop: template("Promise.resolve(SOURCE).then(s => require(s))") } }, visited = "function" == typeof WeakSet && /* @__PURE__ */ new WeakSet();
5005
- return function(context, path5) {
5006
- if (visited) {
5007
- if (visited.has(path5)) return;
5008
- visited.add(path5);
5009
- }
5010
- var node, SOURCE = getImportSource(t2, path5.parent), builder = (node = SOURCE, t2.isStringLiteral(node) || t2.isTemplateLiteral(node) && 0 === node.expressions.length ? builders.static : builders.dynamic), newImport = context.opts.noInterop ? builder.noInterop({ SOURCE }) : builder.interop({ SOURCE, INTEROP: context.addHelper("interopRequireWildcard") });
5011
- path5.parentPath.replaceWith(newImport);
5012
- };
5013
- };
5014
3796
  }, "./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) => {
5015
3797
  "use strict";
5016
3798
  var _path = __webpack_require__2("path");
@@ -5306,14 +4088,14 @@ Did you specify these with the most recent transformation maps first?`);
5306
4088
  }
5307
4089
  }, "./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) => {
5308
4090
  "use strict";
5309
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
4091
+ exports2.A = void 0;
5310
4092
  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"), _default = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { visitor: { Program(programPath) {
5311
4093
  programPath.traverse({ ClassDeclaration(path5) {
5312
4094
  for (const field of path5.get("body").get("body")) "ClassMethod" !== field.type && "ClassProperty" !== field.type || ((0, _parameterVisitor.parameterVisitor)(path5, field), (0, _metadataVisitor.metadataVisitor)(path5, field));
5313
4095
  path5.parentPath.scope.crawl();
5314
4096
  } });
5315
4097
  } } }));
5316
- exports2.default = _default;
4098
+ exports2.A = _default;
5317
4099
  }, "./node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": (__unused_webpack_module, exports2) => {
5318
4100
  "use strict";
5319
4101
  var decodeBase64;
@@ -6379,18 +5161,6 @@ Did you specify these with the most recent transformation maps first?`);
6379
5161
  FastObject(), module2.exports = function(o) {
6380
5162
  return FastObject(o);
6381
5163
  };
6382
- }, "./stubs/babel-codeframe.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
6383
- "use strict";
6384
- function codeFrameColumns() {
6385
- return "";
6386
- }
6387
- __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
6388
- }, "./stubs/helper-compilation-targets.js": (__unused_webpack_module, __webpack_exports__2, __webpack_require__2) => {
6389
- "use strict";
6390
- function getTargets() {
6391
- return {};
6392
- }
6393
- __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
6394
5164
  }, assert: (module2) => {
6395
5165
  "use strict";
6396
5166
  module2.exports = __require("assert");
@@ -7758,7 +6528,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
7758
6528
  }, data2;
7759
6529
  }
7760
6530
  function _helperCompilationTargets() {
7761
- const data2 = __webpack_require__2("./stubs/helper-compilation-targets.js");
6531
+ const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
7762
6532
  return _helperCompilationTargets = function() {
7763
6533
  return data2;
7764
6534
  }, data2;
@@ -7796,7 +6566,7 @@ ${yield* Formatter.optionsAndDescriptors(config.content)}`;
7796
6566
  }, "./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) => {
7797
6567
  "use strict";
7798
6568
  function _helperCompilationTargets() {
7799
- const data2 = __webpack_require__2("./stubs/helper-compilation-targets.js");
6569
+ const data2 = __webpack_require__2("./stubs/helper-compilation-targets.mjs");
7800
6570
  return _helperCompilationTargets = function() {
7801
6571
  return data2;
7802
6572
  }, data2;
@@ -8362,7 +7132,7 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
8362
7132
  }, data2;
8363
7133
  }
8364
7134
  function _codeFrame() {
8365
- const data2 = __webpack_require__2("./stubs/babel-codeframe.js");
7135
+ const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
8366
7136
  return _codeFrame = function() {
8367
7137
  return data2;
8368
7138
  }, data2;
@@ -8635,7 +7405,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
8635
7405
  }, data2;
8636
7406
  }
8637
7407
  function _codeFrame() {
8638
- const data2 = __webpack_require__2("./stubs/babel-codeframe.js");
7408
+ const data2 = __webpack_require__2("./stubs/babel-codeframe.mjs");
8639
7409
  return _codeFrame = function() {
8640
7410
  return data2;
8641
7411
  }, data2;
@@ -20556,9 +19326,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20556
19326
  }, exports2.tokTypes = tokTypes;
20557
19327
  }, "./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) => {
20558
19328
  "use strict";
20559
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
19329
+ exports2.A = void 0;
20560
19330
  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");
20561
- exports2.default = (0, _helperPluginUtils.declare)((api, options) => {
19331
+ exports2.A = (0, _helperPluginUtils.declare)((api, options) => {
20562
19332
  api.assertVersion(7);
20563
19333
  var { legacy } = options;
20564
19334
  const { version: version2 } = options;
@@ -20675,9 +19445,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20675
19445
  });
20676
19446
  }, "./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) => {
20677
19447
  "use strict";
20678
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
19448
+ exports2.A = void 0;
20679
19449
  var _helperPluginUtils = __webpack_require__2("./node_modules/.pnpm/@babel+helper-plugin-utils@7.24.7/node_modules/@babel/helper-plugin-utils/lib/index.js");
20680
- exports2.default = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
19450
+ exports2.A = (0, _helperPluginUtils.declare)((api) => (api.assertVersion(7), { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) {
20681
19451
  parserOpts.plugins.push("importAssertions");
20682
19452
  } }));
20683
19453
  }, "./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) => {
@@ -20711,9 +19481,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20711
19481
  });
20712
19482
  }, "./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) => {
20713
19483
  "use strict";
20714
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
19484
+ exports2.A = void 0;
20715
19485
  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");
20716
- exports2.default = (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(path5) {
19486
+ 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(path5) {
20717
19487
  var _exported$name;
20718
19488
  const { node, scope } = path5, { specifiers } = node, index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;
20719
19489
  if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return;
@@ -20853,118 +19623,6 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
20853
19623
  }, wrapReference(ref2, payload) {
20854
19624
  if ("lazy/function" === payload) return _core.types.callExpression(ref2, []);
20855
19625
  } });
20856
- }, "./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) => {
20857
- "use strict";
20858
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = void 0;
20859
- 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");
20860
- exports2.default = (0, _helperPluginUtils.declare)((api, { loose = false }) => {
20861
- var _api$assumption;
20862
- api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
20863
- const noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose;
20864
- 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(path5) {
20865
- const { node, scope } = path5;
20866
- if ("??" !== node.operator) return;
20867
- let ref2, assignment;
20868
- if (scope.isStatic(node.left)) ref2 = node.left, assignment = _core.types.cloneNode(node.left);
20869
- else {
20870
- if (scope.path.isPattern()) return void path5.replaceWith(_core.template.statement.ast`(() => ${path5.node})()`);
20871
- ref2 = scope.generateUidIdentifierBasedOnNode(node.left), scope.push({ id: _core.types.cloneNode(ref2) }), assignment = _core.types.assignmentExpression("=", ref2, node.left);
20872
- }
20873
- path5.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));
20874
- } } };
20875
- });
20876
- }, "./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) => {
20877
- "use strict";
20878
- Object.defineProperty(exports2, "__esModule", { value: true });
20879
- 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"), 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");
20880
- function willPathCastToBoolean(path5) {
20881
- const maybeWrapped = findOutermostTransparentParent(path5), { node, parentPath } = maybeWrapped;
20882
- if (parentPath.isLogicalExpression()) {
20883
- const { operator, right } = parentPath.node;
20884
- if ("&&" === operator || "||" === operator || "??" === operator && node === right) return willPathCastToBoolean(parentPath);
20885
- }
20886
- if (parentPath.isSequenceExpression()) {
20887
- const { expressions } = parentPath.node;
20888
- return expressions[expressions.length - 1] !== node || willPathCastToBoolean(parentPath);
20889
- }
20890
- return parentPath.isConditional({ test: node }) || parentPath.isUnaryExpression({ operator: "!" }) || parentPath.isLoop({ test: node });
20891
- }
20892
- function findOutermostTransparentParent(path5) {
20893
- let maybeWrapped = path5;
20894
- return path5.findParent((p2) => {
20895
- if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p2.node)) return true;
20896
- maybeWrapped = p2;
20897
- }), maybeWrapped;
20898
- }
20899
- const last = (arr) => arr[arr.length - 1];
20900
- function isSimpleMemberExpression(expression) {
20901
- return expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression), core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object);
20902
- }
20903
- const NULLISH_CHECK = core.template.expression("%%check%% === null || %%ref%% === void 0"), NULLISH_CHECK_NO_DDA = core.template.expression("%%check%% == null"), NULLISH_CHECK_NEG = core.template.expression("%%check%% !== null && %%ref%% !== void 0"), NULLISH_CHECK_NO_DDA_NEG = core.template.expression("%%check%% != null");
20904
- function transformOptionalChain(path5, { pureGetters, noDocumentAll }, replacementPath, ifNullish, wrapLast) {
20905
- const { scope } = path5;
20906
- if (scope.path.isPattern() && function(path6) {
20907
- let optionalPath2 = path6;
20908
- const { scope: scope2 } = path6;
20909
- for (; optionalPath2.isOptionalMemberExpression() || optionalPath2.isOptionalCallExpression(); ) {
20910
- const { node } = optionalPath2, childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath2.isOptionalMemberExpression() ? optionalPath2.get("object") : optionalPath2.get("callee"));
20911
- if (node.optional) return !scope2.isStatic(childPath.node);
20912
- optionalPath2 = childPath;
20913
- }
20914
- }(path5)) return void replacementPath.replaceWith(core.template.expression.ast`(() => ${replacementPath.node})()`);
20915
- const optionals = [];
20916
- let optionalPath = path5;
20917
- for (; optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression(); ) {
20918
- const { node } = optionalPath;
20919
- 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")));
20920
- }
20921
- if (0 === optionals.length) return;
20922
- const checks = [];
20923
- let tmpVar;
20924
- for (let i2 = optionals.length - 1; i2 >= 0; i2--) {
20925
- const node = optionals[i2], isCall = core.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object, chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);
20926
- let ref2, check2;
20927
- if (isCall && core.types.isIdentifier(chain, { name: "eval" }) ? (check2 = ref2 = chain, node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref2])) : pureGetters && isCall && isSimpleMemberExpression(chain) ? check2 = ref2 = node.callee : scope.isStatic(chain) ? check2 = ref2 = chainWithTypes : (tmpVar && !isCall || (tmpVar = scope.generateUidIdentifierBasedOnNode(chain), scope.push({ id: core.types.cloneNode(tmpVar) })), ref2 = tmpVar, check2 = core.types.assignmentExpression("=", core.types.cloneNode(tmpVar), chainWithTypes), isCall ? node.callee = ref2 : node.object = ref2), isCall && core.types.isMemberExpression(chain)) if (pureGetters && isSimpleMemberExpression(chain)) node.callee = chainWithTypes;
20928
- else {
20929
- const { object } = chain;
20930
- let context;
20931
- if (core.types.isSuper(object)) context = core.types.thisExpression();
20932
- else {
20933
- const memoized = scope.maybeGenerateMemoised(object);
20934
- memoized ? (context = memoized, chain.object = core.types.assignmentExpression("=", memoized, object)) : context = object;
20935
- }
20936
- node.arguments.unshift(core.types.cloneNode(context)), node.callee = core.types.memberExpression(node.callee, core.types.identifier("call"));
20937
- }
20938
- const data2 = { check: core.types.cloneNode(check2), ref: core.types.cloneNode(ref2) };
20939
- Object.defineProperty(data2, "ref", { enumerable: false }), checks.push(data2);
20940
- }
20941
- let result = replacementPath.node;
20942
- wrapLast && (result = wrapLast(result));
20943
- const ifNullishBoolean = core.types.isBooleanLiteral(ifNullish), ifNullishFalse = ifNullishBoolean && false === ifNullish.value, ifNullishVoid = !ifNullishBoolean && core.types.isUnaryExpression(ifNullish, { operator: "void" }), isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(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 ? "&&" : "||", check = checks.map(tpl).reduce((expr, check2) => core.types.logicalExpression(logicalOp, expr, check2));
20944
- replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core.types.logicalExpression(logicalOp, check, result) : core.types.conditionalExpression(check, ifNullish, result));
20945
- }
20946
- function transform(path5, assumptions) {
20947
- const { scope } = path5, maybeWrapped = findOutermostTransparentParent(path5), { parentPath } = maybeWrapped;
20948
- if (parentPath.isUnaryExpression({ operator: "delete" })) transformOptionalChain(path5, assumptions, parentPath, core.types.booleanLiteral(true));
20949
- else {
20950
- let wrapLast;
20951
- parentPath.isCallExpression({ callee: maybeWrapped.node }) && path5.isOptionalMemberExpression() && (wrapLast = (replacement) => {
20952
- var _baseRef;
20953
- const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);
20954
- let baseRef;
20955
- return assumptions.pureGetters && isSimpleMemberExpression(object) || (baseRef = scope.maybeGenerateMemoised(object), baseRef && (replacement.object = core.types.assignmentExpression("=", baseRef, object))), core.types.callExpression(core.types.memberExpression(replacement, core.types.identifier("bind")), [core.types.cloneNode(null != (_baseRef = baseRef) ? _baseRef : object)]);
20956
- }), transformOptionalChain(path5, assumptions, path5, willPathCastToBoolean(maybeWrapped) ? core.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast);
20957
- }
20958
- }
20959
- var index = helperPluginUtils.declare((api, options) => {
20960
- var _api$assumption, _api$assumption2;
20961
- api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
20962
- const { loose = false } = options, noDocumentAll = null != (_api$assumption = api.assumption("noDocumentAll")) ? _api$assumption : loose, pureGetters = null != (_api$assumption2 = api.assumption("pureGetters")) ? _api$assumption2 : loose;
20963
- 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"(path5) {
20964
- transform(path5, { noDocumentAll, pureGetters });
20965
- } } };
20966
- });
20967
- exports2.default = index, exports2.transform = transform, exports2.transformOptionalChain = transformOptionalChain;
20968
19626
  }, "./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) => {
20969
19627
  "use strict";
20970
19628
  Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(path5, t2) {
@@ -21660,7 +20318,7 @@ ${str}
21660
20318
  const state = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist, placeholderPattern, syntacticPlaceholders };
21661
20319
  return traverse(ast, placeholderVisitorHandler, state), Object.assign({ ast }, state.syntactic.placeholders.length ? state.syntactic : state.legacy);
21662
20320
  };
21663
- var _t = __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.js");
20321
+ var _t = __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");
21664
20322
  const { isCallExpression, isExpressionStatement, isFunction, isIdentifier, isJSXIdentifier, isNewExpression, isPlaceholder, isStatement, isStringLiteral, removePropertiesDeep, traverse } = _t, PATTERN = /^[_$A-Z0-9]+$/;
21665
20323
  function placeholderVisitorHandler(node, ancestors, state) {
21666
20324
  var _state$placeholderWhi;
@@ -21748,7 +20406,7 @@ ${str}
21748
20406
  clearPath(), clearScope();
21749
20407
  }, exports2.clearPath = clearPath, exports2.clearScope = clearScope, exports2.getCachedPaths = function(hub, parent) {
21750
20408
  var _pathsCache$get;
21751
- return null, null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
20409
+ return null == (_pathsCache$get = pathsCache.get(false ? null : nullHub)) ? void 0 : _pathsCache$get.get(parent);
21752
20410
  }, exports2.getOrCreateCachedPaths = function(hub, parent) {
21753
20411
  null;
21754
20412
  let parents = pathsCache.get(false ? null : nullHub);
@@ -23514,7 +22172,7 @@ ${str}
23514
22172
  const expressionAST = ast.program.body[0].expression;
23515
22173
  return _index.default.removeProperties(expressionAST), this.replaceWith(expressionAST);
23516
22174
  };
23517
- var _codeFrame = __webpack_require__2("./stubs/babel-codeframe.js"), _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"), _cache = __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"), _t = __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");
22175
+ 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"), _cache = __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"), _t = __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");
23518
22176
  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 } = _t;
23519
22177
  function gatherSequenceExpressions(nodes, declars) {
23520
22178
  const exprs = [];
@@ -29527,6 +28185,18 @@ ${trace}`);
29527
28185
  }
29528
28186
  } };
29529
28187
  const __WEBPACK_DEFAULT_EXPORT__ = JSON5;
28188
+ }, "./stubs/babel-codeframe.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
28189
+ "use strict";
28190
+ function codeFrameColumns() {
28191
+ return "";
28192
+ }
28193
+ __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { codeFrameColumns: () => codeFrameColumns });
28194
+ }, "./stubs/helper-compilation-targets.mjs": (__unused_webpack___webpack_module__, __webpack_exports__2, __webpack_require__2) => {
28195
+ "use strict";
28196
+ function getTargets() {
28197
+ return {};
28198
+ }
28199
+ __webpack_require__2.r(__webpack_exports__2), __webpack_require__2.d(__webpack_exports__2, { default: () => getTargets });
29530
28200
  }, "./node_modules/.pnpm/@babel+preset-typescript@7.24.7_@babel+core@7.24.7/node_modules/@babel/preset-typescript/package.json": (module2) => {
29531
28201
  "use strict";
29532
28202
  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"}');
@@ -29540,7 +28210,10 @@ ${trace}`);
29540
28210
  var module2 = __webpack_module_cache__[moduleId] = { exports: {} };
29541
28211
  return __webpack_modules__[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__), module2.exports;
29542
28212
  }
29543
- __webpack_require__.d = (exports2, definition) => {
28213
+ __webpack_require__.n = (module2) => {
28214
+ var getter = module2 && module2.__esModule ? () => module2.default : () => module2;
28215
+ return __webpack_require__.d(getter, { a: getter }), getter;
28216
+ }, __webpack_require__.d = (exports2, definition) => {
29544
28217
  for (var key in definition) __webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key) && Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
29545
28218
  }, __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports2) => {
29546
28219
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(exports2, "__esModule", { value: true });
@@ -29548,15 +28221,17 @@ ${trace}`);
29548
28221
  var __webpack_exports__ = {};
29549
28222
  (() => {
29550
28223
  "use strict";
29551
- __webpack_require__.d(__webpack_exports__, { default: () => transform });
29552
- var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), external_url_ = __webpack_require__("url"), template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
28224
+ __webpack_require__.d(__webpack_exports__, { default: () => transform2 });
28225
+ var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js");
28226
+ const external_node_url_namespaceObject = __require("node:url");
28227
+ var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.24.7/node_modules/@babel/template/lib/index.js");
29553
28228
  function TransformImportMetaPlugin(_ctx, opts) {
29554
28229
  return { name: "transform-import-meta", visitor: { Program(path5) {
29555
28230
  const metas = [];
29556
28231
  if (path5.traverse({ MemberExpression(memberExpPath) {
29557
28232
  const { node } = memberExpPath;
29558
28233
  "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);
29559
- } }), 0 !== metas.length) for (const meta of metas) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify((0, external_url_.pathToFileURL)(opts.filename)) : "require('url').pathToFileURL(__filename).toString()"}`);
28234
+ } }), 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()"}`);
29560
28235
  } } };
29561
28236
  }
29562
28237
  function importMetaEnvPlugin({ template, types: types2 }) {
@@ -29570,14 +28245,124 @@ ${trace}`);
29570
28245
  "import" === parentNodeObjMeta.meta.name && "meta" === parentNodeObjMeta.property.name && "env" === parentNode.property.name && path5.parentPath.replaceWith(template.expression.ast("process.env"));
29571
28246
  } } };
29572
28247
  }
29573
- function transform(opts) {
29574
- var _a, _b, _c, _d, _e2, _f;
29575
- const _opts = Object.assign(Object.assign({ babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/" }, opts.babel), { plugins: [[__webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.24.7_@babel+core@7.24.7/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"), { allowTopLevelThis: true }], [__webpack_require__("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js"), { noInterop: true }], [TransformImportMetaPlugin, { filename: opts.filename }], [__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")], [__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")], [importMetaEnvPlugin]] });
29576
- opts.ts && (_opts.plugins.push([__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"), { allowDeclareFields: true }]), _opts.plugins.unshift([__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")], [__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"), { legacy: true }]), _opts.plugins.push(__webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js")), _opts.plugins.push(__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"))), opts.legacy && (_opts.plugins.push(__webpack_require__("./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")), _opts.plugins.push(__webpack_require__("./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"))), opts.babel && Array.isArray(opts.babel.plugins) && (null === (_a = _opts.plugins) || void 0 === _a || _a.push(...opts.babel.plugins));
28248
+ 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");
28249
+ function transformDynamicImport(path5, noInterop, file) {
28250
+ path5.replaceWith((0, helper_module_transforms_lib.buildDynamicImport)(path5.node, true, false, (specifier) => ((source, file2, noInterop2) => {
28251
+ const exp = lib.template.expression.ast`jitiImport(${source})`;
28252
+ 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")]))]);
28253
+ })(specifier, file, noInterop)));
28254
+ }
28255
+ const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin";
28256
+ function findMap(arr, cb) {
28257
+ if (arr) for (const el of arr) {
28258
+ const res = cb(el);
28259
+ if (null != res) return res;
28260
+ }
28261
+ }
28262
+ const transform_module = (0, helper_plugin_utils_lib.declare)((api, options) => {
28263
+ const { strictNamespace = false, mjsStrictNamespace = strictNamespace, allowTopLevelThis, strict, strictMode, noInterop, importInterop, lazy = false, allowCommonJSExports = true, loose = false, async = false } = options, constantReexports = api.assumption("constantReexports") ?? loose, enumerableModuleMeta = api.assumption("enumerableModuleMeta") ?? loose, noIncompleteNsImportDetection = api.assumption("noIncompleteNsImportDetection") ?? false;
28264
+ 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");
28265
+ if ("boolean" != typeof strictNamespace) throw new TypeError(".strictNamespace must be a boolean, or undefined");
28266
+ if ("boolean" != typeof mjsStrictNamespace) throw new TypeError(".mjsStrictNamespace must be a boolean, or undefined");
28267
+ const getAssertion = (localName) => lib.template.expression.ast`
28268
+ (function(){
28269
+ throw new Error(
28270
+ "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
28271
+ "Consider setting setting sourceType:script or sourceType:unambiguous in your " +
28272
+ "Babel config for this file.");
28273
+ })()
28274
+ `, moduleExportsVisitor = { ReferencedIdentifier(path5) {
28275
+ const localName = path5.node.name;
28276
+ if ("module" !== localName && "exports" !== localName) return;
28277
+ const localBinding = path5.scope.getBinding(localName);
28278
+ this.scope.getBinding(localName) !== localBinding || path5.parentPath.isObjectProperty({ value: path5.node }) && path5.parentPath.parentPath.isObjectPattern() || path5.parentPath.isAssignmentExpression({ left: path5.node }) || path5.isAssignmentExpression({ left: path5.node }) || path5.replaceWith(getAssertion(localName));
28279
+ }, UpdateExpression(path5) {
28280
+ const arg = path5.get("argument");
28281
+ if (!arg.isIdentifier()) return;
28282
+ const localName = arg.node.name;
28283
+ if ("module" !== localName && "exports" !== localName) return;
28284
+ const localBinding = path5.scope.getBinding(localName);
28285
+ this.scope.getBinding(localName) === localBinding && path5.replaceWith(lib.types.assignmentExpression(path5.node.operator[0] + "=", arg.node, getAssertion(localName)));
28286
+ }, AssignmentExpression(path5) {
28287
+ const left = path5.get("left");
28288
+ if (left.isIdentifier()) {
28289
+ const localName = left.node.name;
28290
+ if ("module" !== localName && "exports" !== localName) return;
28291
+ const localBinding = path5.scope.getBinding(localName);
28292
+ if (this.scope.getBinding(localName) !== localBinding) return;
28293
+ const right = path5.get("right");
28294
+ right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
28295
+ } else if (left.isPattern()) {
28296
+ const ids = left.getOuterBindingIdentifiers(), localName = Object.keys(ids).find((localName2) => ("module" === localName2 || "exports" === localName2) && this.scope.getBinding(localName2) === path5.scope.getBinding(localName2));
28297
+ if (localName) {
28298
+ const right = path5.get("right");
28299
+ right.replaceWith(lib.types.sequenceExpression([right.node, getAssertion(localName)]));
28300
+ }
28301
+ }
28302
+ } };
28303
+ return { name: "transform-modules-commonjs", pre() {
28304
+ this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && function(file, hook) {
28305
+ let hooks = file.get(commonJSHooksKey);
28306
+ hooks || file.set(commonJSHooksKey, hooks = []), hooks.push(hook);
28307
+ }(this.file, /* @__PURE__ */ ((lazy2) => ({ name: "babel-plugin-transform-modules-commonjs/lazy", version: "7.24.7", getWrapperPayload: (source, metadata) => (0, helper_module_transforms_lib.isSideEffectImport)(metadata) || metadata.reexportAll ? null : true === lazy2 ? source.includes(".") ? null : "lazy/function" : Array.isArray(lazy2) ? lazy2.includes(source) ? "lazy/function" : null : "function" == typeof lazy2 ? lazy2(source) ? "lazy/function" : null : void 0, buildRequireWrapper(name, init, payload, referenced) {
28308
+ if ("lazy/function" === payload) return !!referenced && lib.template.statement.ast`
28309
+ function ${name}() {
28310
+ const data = ${init};
28311
+ ${name} = function(){ return data; };
28312
+ return data;
28313
+ }
28314
+ `;
28315
+ }, wrapReference(ref2, payload) {
28316
+ if ("lazy/function" === payload) return lib.types.callExpression(ref2, []);
28317
+ } }))(lazy));
28318
+ }, visitor: { ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path5) {
28319
+ if (path5.isCallExpression() && !lib.types.isImport(path5.node.callee)) return;
28320
+ let { scope } = path5;
28321
+ do {
28322
+ scope.rename("require");
28323
+ } while (scope = scope.parent);
28324
+ transformDynamicImport(path5, noInterop, this.file);
28325
+ }, Program: { exit(path5, state) {
28326
+ if (!(0, helper_module_transforms_lib.isModule)(path5)) return;
28327
+ path5.scope.rename("exports"), path5.scope.rename("module"), path5.scope.rename("require"), path5.scope.rename("__filename"), path5.scope.rename("__dirname"), allowCommonJSExports || (process.env.BABEL_8_BREAKING ? (0, helper_simple_access_lib.default)(path5, /* @__PURE__ */ new Set(["module", "exports"])) : (0, helper_simple_access_lib.default)(path5, /* @__PURE__ */ new Set(["module", "exports"]), false), path5.traverse(moduleExportsVisitor, { scope: path5.scope }));
28328
+ let moduleName = (0, helper_module_transforms_lib.getModuleName)(this.file.opts, options);
28329
+ moduleName && (moduleName = lib.types.stringLiteral(moduleName));
28330
+ const hooks = function(file) {
28331
+ const hooks2 = file.get(commonJSHooksKey);
28332
+ 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)) };
28333
+ }(this.file), { meta, headers } = (0, helper_module_transforms_lib.rewriteModuleStatementsAndPrepareHeader)(path5, { 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 });
28334
+ for (const [source, metadata] of meta.source) {
28335
+ const loadExpr = async ? lib.types.awaitExpression(lib.types.callExpression(lib.types.identifier("jitiImport"), [lib.types.stringLiteral(source)])) : lib.types.callExpression(lib.types.identifier("require"), [lib.types.stringLiteral(source)]);
28336
+ let header;
28337
+ if ((0, helper_module_transforms_lib.isSideEffectImport)(metadata)) {
28338
+ if (lazy && "function" === metadata.wrap) throw new Error("Assertion failure");
28339
+ header = lib.types.expressionStatement(loadExpr);
28340
+ } else {
28341
+ const init = (0, helper_module_transforms_lib.wrapInterop)(path5, loadExpr, metadata.interop) || loadExpr;
28342
+ if (metadata.wrap) {
28343
+ const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced);
28344
+ if (false === res) continue;
28345
+ header = res;
28346
+ }
28347
+ header ??= lib.template.statement.ast`
28348
+ var ${metadata.name} = ${init};
28349
+ `;
28350
+ }
28351
+ header.loc = metadata.loc, headers.push(header), headers.push(...(0, helper_module_transforms_lib.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference));
28352
+ }
28353
+ (0, helper_module_transforms_lib.ensureStatementsHoisted)(headers), path5.unshiftContainer("body", headers), path5.get("body").forEach((path6) => {
28354
+ headers.includes(path6.node) && path6.isVariableDeclaration() && path6.scope.registerDeclaration(path6);
28355
+ });
28356
+ } } } };
28357
+ });
28358
+ 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");
28359
+ function transform2(opts) {
28360
+ 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]] };
28361
+ 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);
29577
28362
  try {
29578
- return { code: (null === (_b = (0, lib.transformSync)(opts.source, _opts)) || void 0 === _b ? void 0 : _b.code) || "" };
28363
+ return { code: (0, lib.transformSync)(opts.source, _opts)?.code || "" };
29579
28364
  } catch (error) {
29580
- return { error, code: "exports.__JITI_ERROR__ = " + JSON.stringify({ filename: opts.filename, line: (null === (_c = error.loc) || void 0 === _c ? void 0 : _c.line) || 0, column: (null === (_d = error.loc) || void 0 === _d ? void 0 : _d.column) || 0, code: null === (_e2 = error.code) || void 0 === _e2 ? void 0 : _e2.replace("BABEL_", "").replace("PARSE_ERROR", "ParseError"), message: null === (_f = error.message) || void 0 === _f ? void 0 : _f.replace("/: ", "").replace(/\(.+\)\s*$/, "") }) };
28365
+ 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*$/, "") }) };
29581
28366
  }
29582
28367
  }
29583
28368
  })(), module.exports = __webpack_exports__.default;
@@ -29585,23 +28370,6 @@ ${trace}`);
29585
28370
  }
29586
28371
  });
29587
28372
 
29588
- // node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js
29589
- var require_lib = __commonJS({
29590
- "node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js"(exports, module) {
29591
- function onError(err) {
29592
- throw err;
29593
- }
29594
- module.exports = function jiti(filename, opts) {
29595
- const jiti2 = require_jiti();
29596
- opts = { onError, ...opts };
29597
- if (!opts.transform) {
29598
- opts.transform = require_babel();
29599
- }
29600
- return jiti2(filename, opts);
29601
- };
29602
- }
29603
- });
29604
-
29605
28373
  // node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
29606
28374
  function isPlainObject(value2) {
29607
28375
  if (value2 === null || typeof value2 !== "object") {
@@ -32351,6 +31119,344 @@ ${f2}`, i2);
32351
31119
  }
32352
31120
  });
32353
31121
 
31122
+ // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
31123
+ var require_package = __commonJS({
31124
+ "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
31125
+ module.exports = {
31126
+ name: "dotenv",
31127
+ version: "16.4.5",
31128
+ description: "Loads environment variables from .env file",
31129
+ main: "lib/main.js",
31130
+ types: "lib/main.d.ts",
31131
+ exports: {
31132
+ ".": {
31133
+ types: "./lib/main.d.ts",
31134
+ require: "./lib/main.js",
31135
+ default: "./lib/main.js"
31136
+ },
31137
+ "./config": "./config.js",
31138
+ "./config.js": "./config.js",
31139
+ "./lib/env-options": "./lib/env-options.js",
31140
+ "./lib/env-options.js": "./lib/env-options.js",
31141
+ "./lib/cli-options": "./lib/cli-options.js",
31142
+ "./lib/cli-options.js": "./lib/cli-options.js",
31143
+ "./package.json": "./package.json"
31144
+ },
31145
+ scripts: {
31146
+ "dts-check": "tsc --project tests/types/tsconfig.json",
31147
+ lint: "standard",
31148
+ "lint-readme": "standard-markdown",
31149
+ pretest: "npm run lint && npm run dts-check",
31150
+ test: "tap tests/*.js --100 -Rspec",
31151
+ "test:coverage": "tap --coverage-report=lcov",
31152
+ prerelease: "npm test",
31153
+ release: "standard-version"
31154
+ },
31155
+ repository: {
31156
+ type: "git",
31157
+ url: "git://github.com/motdotla/dotenv.git"
31158
+ },
31159
+ funding: "https://dotenvx.com",
31160
+ keywords: [
31161
+ "dotenv",
31162
+ "env",
31163
+ ".env",
31164
+ "environment",
31165
+ "variables",
31166
+ "config",
31167
+ "settings"
31168
+ ],
31169
+ readmeFilename: "README.md",
31170
+ license: "BSD-2-Clause",
31171
+ devDependencies: {
31172
+ "@definitelytyped/dtslint": "^0.0.133",
31173
+ "@types/node": "^18.11.3",
31174
+ decache: "^4.6.1",
31175
+ sinon: "^14.0.1",
31176
+ standard: "^17.0.0",
31177
+ "standard-markdown": "^7.1.0",
31178
+ "standard-version": "^9.5.0",
31179
+ tap: "^16.3.0",
31180
+ tar: "^6.1.11",
31181
+ typescript: "^4.8.4"
31182
+ },
31183
+ engines: {
31184
+ node: ">=12"
31185
+ },
31186
+ browser: {
31187
+ fs: false
31188
+ }
31189
+ };
31190
+ }
31191
+ });
31192
+
31193
+ // node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
31194
+ var require_main = __commonJS({
31195
+ "node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
31196
+ var fs2 = __require("fs");
31197
+ var path5 = __require("path");
31198
+ var os2 = __require("os");
31199
+ var crypto = __require("crypto");
31200
+ var packageJson = require_package();
31201
+ var version2 = packageJson.version;
31202
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
31203
+ function parse6(src) {
31204
+ const obj = {};
31205
+ let lines = src.toString();
31206
+ lines = lines.replace(/\r\n?/mg, "\n");
31207
+ let match;
31208
+ while ((match = LINE.exec(lines)) != null) {
31209
+ const key = match[1];
31210
+ let value2 = match[2] || "";
31211
+ value2 = value2.trim();
31212
+ const maybeQuote = value2[0];
31213
+ value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
31214
+ if (maybeQuote === '"') {
31215
+ value2 = value2.replace(/\\n/g, "\n");
31216
+ value2 = value2.replace(/\\r/g, "\r");
31217
+ }
31218
+ obj[key] = value2;
31219
+ }
31220
+ return obj;
31221
+ }
31222
+ function _parseVault(options) {
31223
+ const vaultPath = _vaultPath(options);
31224
+ const result = DotenvModule.configDotenv({ path: vaultPath });
31225
+ if (!result.parsed) {
31226
+ const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
31227
+ err.code = "MISSING_DATA";
31228
+ throw err;
31229
+ }
31230
+ const keys = _dotenvKey(options).split(",");
31231
+ const length = keys.length;
31232
+ let decrypted;
31233
+ for (let i2 = 0; i2 < length; i2++) {
31234
+ try {
31235
+ const key = keys[i2].trim();
31236
+ const attrs = _instructions(result, key);
31237
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
31238
+ break;
31239
+ } catch (error) {
31240
+ if (i2 + 1 >= length) {
31241
+ throw error;
31242
+ }
31243
+ }
31244
+ }
31245
+ return DotenvModule.parse(decrypted);
31246
+ }
31247
+ function _log(message) {
31248
+ console.log(`[dotenv@${version2}][INFO] ${message}`);
31249
+ }
31250
+ function _warn(message) {
31251
+ console.log(`[dotenv@${version2}][WARN] ${message}`);
31252
+ }
31253
+ function _debug(message) {
31254
+ console.log(`[dotenv@${version2}][DEBUG] ${message}`);
31255
+ }
31256
+ function _dotenvKey(options) {
31257
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
31258
+ return options.DOTENV_KEY;
31259
+ }
31260
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
31261
+ return process.env.DOTENV_KEY;
31262
+ }
31263
+ return "";
31264
+ }
31265
+ function _instructions(result, dotenvKey) {
31266
+ let uri;
31267
+ try {
31268
+ uri = new URL(dotenvKey);
31269
+ } catch (error) {
31270
+ if (error.code === "ERR_INVALID_URL") {
31271
+ 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");
31272
+ err.code = "INVALID_DOTENV_KEY";
31273
+ throw err;
31274
+ }
31275
+ throw error;
31276
+ }
31277
+ const key = uri.password;
31278
+ if (!key) {
31279
+ const err = new Error("INVALID_DOTENV_KEY: Missing key part");
31280
+ err.code = "INVALID_DOTENV_KEY";
31281
+ throw err;
31282
+ }
31283
+ const environment = uri.searchParams.get("environment");
31284
+ if (!environment) {
31285
+ const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
31286
+ err.code = "INVALID_DOTENV_KEY";
31287
+ throw err;
31288
+ }
31289
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
31290
+ const ciphertext = result.parsed[environmentKey];
31291
+ if (!ciphertext) {
31292
+ const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
31293
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
31294
+ throw err;
31295
+ }
31296
+ return { ciphertext, key };
31297
+ }
31298
+ function _vaultPath(options) {
31299
+ let possibleVaultPath = null;
31300
+ if (options && options.path && options.path.length > 0) {
31301
+ if (Array.isArray(options.path)) {
31302
+ for (const filepath of options.path) {
31303
+ if (fs2.existsSync(filepath)) {
31304
+ possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
31305
+ }
31306
+ }
31307
+ } else {
31308
+ possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
31309
+ }
31310
+ } else {
31311
+ possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
31312
+ }
31313
+ if (fs2.existsSync(possibleVaultPath)) {
31314
+ return possibleVaultPath;
31315
+ }
31316
+ return null;
31317
+ }
31318
+ function _resolveHome(envPath) {
31319
+ return envPath[0] === "~" ? path5.join(os2.homedir(), envPath.slice(1)) : envPath;
31320
+ }
31321
+ function _configVault(options) {
31322
+ _log("Loading env from encrypted .env.vault");
31323
+ const parsed = DotenvModule._parseVault(options);
31324
+ let processEnv = process.env;
31325
+ if (options && options.processEnv != null) {
31326
+ processEnv = options.processEnv;
31327
+ }
31328
+ DotenvModule.populate(processEnv, parsed, options);
31329
+ return { parsed };
31330
+ }
31331
+ function configDotenv(options) {
31332
+ const dotenvPath = path5.resolve(process.cwd(), ".env");
31333
+ let encoding = "utf8";
31334
+ const debug2 = Boolean(options && options.debug);
31335
+ if (options && options.encoding) {
31336
+ encoding = options.encoding;
31337
+ } else {
31338
+ if (debug2) {
31339
+ _debug("No encoding is specified. UTF-8 is used by default");
31340
+ }
31341
+ }
31342
+ let optionPaths = [dotenvPath];
31343
+ if (options && options.path) {
31344
+ if (!Array.isArray(options.path)) {
31345
+ optionPaths = [_resolveHome(options.path)];
31346
+ } else {
31347
+ optionPaths = [];
31348
+ for (const filepath of options.path) {
31349
+ optionPaths.push(_resolveHome(filepath));
31350
+ }
31351
+ }
31352
+ }
31353
+ let lastError;
31354
+ const parsedAll = {};
31355
+ for (const path6 of optionPaths) {
31356
+ try {
31357
+ const parsed = DotenvModule.parse(fs2.readFileSync(path6, { encoding }));
31358
+ DotenvModule.populate(parsedAll, parsed, options);
31359
+ } catch (e2) {
31360
+ if (debug2) {
31361
+ _debug(`Failed to load ${path6} ${e2.message}`);
31362
+ }
31363
+ lastError = e2;
31364
+ }
31365
+ }
31366
+ let processEnv = process.env;
31367
+ if (options && options.processEnv != null) {
31368
+ processEnv = options.processEnv;
31369
+ }
31370
+ DotenvModule.populate(processEnv, parsedAll, options);
31371
+ if (lastError) {
31372
+ return { parsed: parsedAll, error: lastError };
31373
+ } else {
31374
+ return { parsed: parsedAll };
31375
+ }
31376
+ }
31377
+ function config(options) {
31378
+ if (_dotenvKey(options).length === 0) {
31379
+ return DotenvModule.configDotenv(options);
31380
+ }
31381
+ const vaultPath = _vaultPath(options);
31382
+ if (!vaultPath) {
31383
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
31384
+ return DotenvModule.configDotenv(options);
31385
+ }
31386
+ return DotenvModule._configVault(options);
31387
+ }
31388
+ function decrypt(encrypted, keyStr) {
31389
+ const key = Buffer.from(keyStr.slice(-64), "hex");
31390
+ let ciphertext = Buffer.from(encrypted, "base64");
31391
+ const nonce = ciphertext.subarray(0, 12);
31392
+ const authTag = ciphertext.subarray(-16);
31393
+ ciphertext = ciphertext.subarray(12, -16);
31394
+ try {
31395
+ const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
31396
+ aesgcm.setAuthTag(authTag);
31397
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
31398
+ } catch (error) {
31399
+ const isRange = error instanceof RangeError;
31400
+ const invalidKeyLength = error.message === "Invalid key length";
31401
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
31402
+ if (isRange || invalidKeyLength) {
31403
+ const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
31404
+ err.code = "INVALID_DOTENV_KEY";
31405
+ throw err;
31406
+ } else if (decryptionFailed) {
31407
+ const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
31408
+ err.code = "DECRYPTION_FAILED";
31409
+ throw err;
31410
+ } else {
31411
+ throw error;
31412
+ }
31413
+ }
31414
+ }
31415
+ function populate(processEnv, parsed, options = {}) {
31416
+ const debug2 = Boolean(options && options.debug);
31417
+ const override = Boolean(options && options.override);
31418
+ if (typeof parsed !== "object") {
31419
+ const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
31420
+ err.code = "OBJECT_REQUIRED";
31421
+ throw err;
31422
+ }
31423
+ for (const key of Object.keys(parsed)) {
31424
+ if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
31425
+ if (override === true) {
31426
+ processEnv[key] = parsed[key];
31427
+ }
31428
+ if (debug2) {
31429
+ if (override === true) {
31430
+ _debug(`"${key}" is already defined and WAS overwritten`);
31431
+ } else {
31432
+ _debug(`"${key}" is already defined and was NOT overwritten`);
31433
+ }
31434
+ }
31435
+ } else {
31436
+ processEnv[key] = parsed[key];
31437
+ }
31438
+ }
31439
+ }
31440
+ var DotenvModule = {
31441
+ configDotenv,
31442
+ _configVault,
31443
+ _parseVault,
31444
+ config,
31445
+ decrypt,
31446
+ parse: parse6,
31447
+ populate
31448
+ };
31449
+ module.exports.configDotenv = DotenvModule.configDotenv;
31450
+ module.exports._configVault = DotenvModule._configVault;
31451
+ module.exports._parseVault = DotenvModule._parseVault;
31452
+ module.exports.config = DotenvModule.config;
31453
+ module.exports.decrypt = DotenvModule.decrypt;
31454
+ module.exports.parse = DotenvModule.parse;
31455
+ module.exports.populate = DotenvModule.populate;
31456
+ module.exports = DotenvModule;
31457
+ }
31458
+ });
31459
+
32354
31460
  // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/jsonc.mjs
32355
31461
  var jsonc_exports = {};
32356
31462
  __export(jsonc_exports, {
@@ -44759,7 +43865,7 @@ var require_dist = __commonJS({
44759
43865
  });
44760
43866
 
44761
43867
  // node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs
44762
- var require_lib2 = __commonJS({
43868
+ var require_lib = __commonJS({
44763
43869
  "node_modules/.pnpm/node-fetch-native@1.6.4/node_modules/node-fetch-native/lib/index.cjs"(exports, module) {
44764
43870
  var nodeFetch = require_dist();
44765
43871
  function fetch2(input, options) {
@@ -44866,7 +43972,7 @@ var require_proxy = __commonJS({
44866
43972
  var require$$3 = __require("events");
44867
43973
  var require$$5$2 = __require("url");
44868
43974
  var require$$2$1 = __require("assert");
44869
- var nodeFetchNative = require_lib2();
43975
+ var nodeFetchNative = require_lib();
44870
43976
  function _interopDefaultCompat(e2) {
44871
43977
  return e2 && typeof e2 == "object" && "default" in e2 ? e2.default : e2;
44872
43978
  }
@@ -47902,7 +47008,7 @@ ${f2.toString(16)}\r
47902
47008
  if (J4 != null && typeof J4 != "boolean") throw new InvalidArgumentError$e("allowH2 must be a valid boolean value");
47903
47009
  if (W6 != null && (typeof W6 != "number" || W6 < 1)) throw new InvalidArgumentError$e("maxConcurrentStreams must be a positive integer, greater than 0");
47904
47010
  typeof Y5 != "function" && (Y5 = buildConnector$2({ ...S6, maxCachedSessions: p2, allowH2: J4, socketPath: k4, timeout: l2, ...util$f.nodeHasAutoSelectFamily && D4 ? { autoSelectFamily: D4, autoSelectFamilyAttemptTimeout: b6 } : void 0, ...Y5 })), t2?.Client && Array.isArray(t2.Client) ? (this[kInterceptors$3] = t2.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: V5 })], this[kUrl$2] = util$f.parseOrigin(A2), this[kConnector] = Y5, this[kPipelining] = F2 ?? 1, this[kMaxHeadersSize] = r3 || http$1.maxHeaderSize, this[kKeepAliveDefaultTimeout] = I4 ?? 4e3, this[kKeepAliveMaxTimeout] = w5 ?? 6e5, this[kKeepAliveTimeoutThreshold] = U4 ?? 1e3, this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout], this[kServerName] = null, this[kLocalAddress] = m3 ?? null, this[kResuming] = 0, this[kNeedDrain$2] = 0, this[kHostHeader] = `host: ${this[kUrl$2].hostname}${this[kUrl$2].port ? `:${this[kUrl$2].port}` : ""}\r
47905
- `, this[kBodyTimeout] = C4 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M4 ?? true, this[kMaxRedirections$1] = V5, this[kMaxRequests] = R4, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _6 > -1 ? _6 : -1, this[kMaxConcurrentStreams] = W6 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N5) => resume$1(this, N5), this[kOnError] = (N5) => onError(this, N5);
47011
+ `, this[kBodyTimeout] = C4 ?? 3e5, this[kHeadersTimeout] = n ?? 3e5, this[kStrictContentLength] = M4 ?? true, this[kMaxRedirections$1] = V5, this[kMaxRequests] = R4, this[kClosedResolve$1] = null, this[kMaxResponseSize] = _6 > -1 ? _6 : -1, this[kMaxConcurrentStreams] = W6 ?? 100, this[kHTTPContext] = null, this[kQueue$1] = [], this[kRunningIdx] = 0, this[kPendingIdx] = 0, this[kResume$1] = (N5) => resume$1(this, N5), this[kOnError] = (N5) => onError2(this, N5);
47906
47012
  }
47907
47013
  get pipelining() {
47908
47014
  return this[kPipelining];
@@ -47952,7 +47058,7 @@ ${f2.toString(16)}\r
47952
47058
  }
47953
47059
  }, Q5(Xe2, "Client"), Xe2);
47954
47060
  var createRedirectInterceptor$1 = redirectInterceptor;
47955
- function onError(e2, A2) {
47061
+ function onError2(e2, A2) {
47956
47062
  if (e2[kRunning$3] === 0 && A2.code !== "UND_ERR_INFO" && A2.code !== "UND_ERR_SOCKET") {
47957
47063
  assert$4(e2[kPendingIdx] === e2[kRunningIdx]);
47958
47064
  const t2 = e2[kQueue$1].splice(e2[kRunningIdx]);
@@ -47963,7 +47069,7 @@ ${f2.toString(16)}\r
47963
47069
  assert$4(e2[kSize$3] === 0);
47964
47070
  }
47965
47071
  }
47966
- Q5(onError, "onError");
47072
+ Q5(onError2, "onError");
47967
47073
  async function connect$1(e2) {
47968
47074
  assert$4(!e2[kConnecting]), assert$4(!e2[kHTTPContext]);
47969
47075
  let { host: A2, hostname: t2, protocol: r3, port: n } = e2[kUrl$2];
@@ -47999,7 +47105,7 @@ ${f2.toString(16)}\r
47999
47105
  const B3 = e2[kQueue$1][e2[kPendingIdx]++];
48000
47106
  errorRequest(e2, B3, o);
48001
47107
  }
48002
- else onError(e2, o);
47108
+ else onError2(e2, o);
48003
47109
  e2.emit("connectionError", e2[kUrl$2], [e2], o);
48004
47110
  }
48005
47111
  e2[kResume$1]();
@@ -53431,15 +52537,15 @@ var require_conversions = __commonJS({
53431
52537
  const g4 = rgb[1] / 255;
53432
52538
  const b6 = rgb[2] / 255;
53433
52539
  const v5 = Math.max(r3, g4, b6);
53434
- const diff2 = v5 - Math.min(r3, g4, b6);
52540
+ const diff = v5 - Math.min(r3, g4, b6);
53435
52541
  const diffc = function(c) {
53436
- return (v5 - c) / 6 / diff2 + 1 / 2;
52542
+ return (v5 - c) / 6 / diff + 1 / 2;
53437
52543
  };
53438
- if (diff2 === 0) {
52544
+ if (diff === 0) {
53439
52545
  h5 = 0;
53440
52546
  s2 = 0;
53441
52547
  } else {
53442
- s2 = diff2 / v5;
52548
+ s2 = diff / v5;
53443
52549
  rdif = diffc(r3);
53444
52550
  gdif = diffc(g4);
53445
52551
  bdif = diffc(b6);
@@ -54737,14 +53843,31 @@ var require_source = __commonJS({
54737
53843
  }
54738
53844
  });
54739
53845
 
54740
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
53846
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
54741
53847
  init_dist();
54742
- var dotenv = __toESM(require_main(), 1);
54743
- var import_jiti = __toESM(require_lib(), 1);
54744
53848
  import { existsSync as existsSync4, promises as promises3 } from "node:fs";
54745
53849
  import { rm as rm2, readFile as readFile3 } from "node:fs/promises";
54746
53850
  import { homedir as homedir3 } from "node:os";
54747
53851
 
53852
+ // node_modules/.pnpm/jiti@2.0.0-beta.3/node_modules/jiti/lib/jiti.mjs
53853
+ var import_jiti = __toESM(require_jiti(), 1);
53854
+ var import_babel = __toESM(require_babel(), 1);
53855
+ import { createRequire } from "node:module";
53856
+ function onError(err) {
53857
+ throw err;
53858
+ }
53859
+ var nativeImport = (id) => import(id);
53860
+ function createJiti(id, opts = {}) {
53861
+ if (!opts.transform) {
53862
+ opts = { ...opts, transform: import_babel.default };
53863
+ }
53864
+ return (0, import_jiti.default)(id, opts, {
53865
+ onError,
53866
+ nativeImport,
53867
+ createRequire
53868
+ });
53869
+ }
53870
+
54748
53871
  // node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
54749
53872
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
54750
53873
  import { resolve as resolve2 } from "node:path";
@@ -54980,7 +54103,7 @@ function readUser(options) {
54980
54103
  return read(options);
54981
54104
  }
54982
54105
 
54983
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
54106
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
54984
54107
  init_defu();
54985
54108
 
54986
54109
  // node_modules/.pnpm/ohash@1.1.3/node_modules/ohash/dist/index.mjs
@@ -55585,7 +54708,7 @@ function hash(object, options = {}) {
55585
54708
  return sha256base64(hashed).slice(0, 10);
55586
54709
  }
55587
54710
 
55588
- // node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
54711
+ // node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
55589
54712
  init_dist();
55590
54713
  import { statSync as statSync2, promises as promises2 } from "node:fs";
55591
54714
 
@@ -60986,8 +60109,13 @@ Parser.acorn = {
60986
60109
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
60987
60110
  init_dist2();
60988
60111
  init_dist();
60989
- import { builtinModules, createRequire } from "node:module";
60112
+ import { builtinModules, createRequire as createRequire2 } from "node:module";
60990
60113
  import fs, { realpathSync, statSync, promises } from "node:fs";
60114
+
60115
+ // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
60116
+ init_confbox_bcd59e75();
60117
+
60118
+ // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
60991
60119
  import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
60992
60120
  import assert from "node:assert";
60993
60121
  import process$1 from "node:process";
@@ -62341,10 +61469,7 @@ function resolvePath(id, options) {
62341
61469
  }
62342
61470
  }
62343
61471
 
62344
- // node_modules/.pnpm/confbox@0.1.7/node_modules/confbox/dist/index.mjs
62345
- init_confbox_bcd59e75();
62346
-
62347
- // node_modules/.pnpm/pkg-types@1.1.1/node_modules/pkg-types/dist/index.mjs
61472
+ // node_modules/.pnpm/pkg-types@1.2.0/node_modules/pkg-types/dist/index.mjs
62348
61473
  var defaultFindOptions = {
62349
61474
  startingFrom: ".",
62350
61475
  rootPattern: /^node_modules$/,
@@ -62461,7 +61586,8 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
62461
61586
  throw new Error("Cannot detect workspace root from " + id);
62462
61587
  }
62463
61588
 
62464
- // node_modules/.pnpm/c12@1.10.0/node_modules/c12/dist/index.mjs
61589
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs
61590
+ var dotenv = __toESM(require_main(), 1);
62465
61591
  async function setupDotenv(options) {
62466
61592
  const targetEnvironment = options.env ?? process.env;
62467
61593
  const environment = await loadDotenv({
@@ -62510,7 +61636,7 @@ function interpolate(target, source = {}, parse6 = (v5) => v5) {
62510
61636
  let value22, replacePart;
62511
61637
  if (prefix === "\\") {
62512
61638
  replacePart = parts[0] || "";
62513
- value22 = replacePart.replace("\\$", "$");
61639
+ value22 = replacePart.replace(String.raw`\$`, "$");
62514
61640
  } else {
62515
61641
  const key = parts[2];
62516
61642
  replacePart = (parts[0] || "").slice(prefix.length);
@@ -62569,10 +61695,10 @@ async function loadConfig(options) {
62569
61695
  ...options.extend
62570
61696
  };
62571
61697
  }
62572
- options.jiti = options.jiti || (0, import_jiti.default)(void 0, {
61698
+ const _merger = options.merger || defu;
61699
+ options.jiti = options.jiti || createJiti(join(options.cwd, options.configFile), {
62573
61700
  interopDefault: true,
62574
- requireCache: false,
62575
- esmResolve: true,
61701
+ moduleCache: false,
62576
61702
  extensions: [...SUPPORTED_EXTENSIONS],
62577
61703
  ...options.jitiOptions
62578
61704
  });
@@ -62582,17 +61708,24 @@ async function loadConfig(options) {
62582
61708
  configFile: resolve(options.cwd, options.configFile),
62583
61709
  layers: []
62584
61710
  };
61711
+ const _configs = {
61712
+ overrides: options.overrides,
61713
+ main: void 0,
61714
+ rc: void 0,
61715
+ packageJson: void 0,
61716
+ defaultConfig: options.defaultConfig
61717
+ };
62585
61718
  if (options.dotenv) {
62586
61719
  await setupDotenv({
62587
61720
  cwd: options.cwd,
62588
61721
  ...options.dotenv === true ? {} : options.dotenv
62589
61722
  });
62590
61723
  }
62591
- const { config, configFile } = await resolveConfig(".", options);
62592
- if (configFile) {
62593
- r3.configFile = configFile;
61724
+ const _mainConfig = await resolveConfig(".", options);
61725
+ if (_mainConfig.configFile) {
61726
+ _configs.main = _mainConfig.config;
61727
+ r3.configFile = _mainConfig.configFile;
62594
61728
  }
62595
- const configRC = {};
62596
61729
  if (options.rcFile) {
62597
61730
  const rcSources = [];
62598
61731
  rcSources.push(read({ name: options.rcFile, dir: options.cwd }));
@@ -62604,9 +61737,8 @@ async function loadConfig(options) {
62604
61737
  }
62605
61738
  rcSources.push(readUser({ name: options.rcFile, dir: options.cwd }));
62606
61739
  }
62607
- Object.assign(configRC, defu({}, ...rcSources));
61740
+ _configs.rc = _merger({}, ...rcSources);
62608
61741
  }
62609
- const pkgJson = {};
62610
61742
  if (options.packageJson) {
62611
61743
  const keys = (Array.isArray(options.packageJson) ? options.packageJson : [
62612
61744
  typeof options.packageJson === "string" ? options.packageJson : options.name
@@ -62614,34 +61746,42 @@ async function loadConfig(options) {
62614
61746
  const pkgJsonFile = await readPackageJSON(options.cwd).catch(() => {
62615
61747
  });
62616
61748
  const values = keys.map((key) => pkgJsonFile?.[key]);
62617
- Object.assign(pkgJson, defu({}, ...values));
62618
- }
62619
- r3.config = defu(
62620
- options.overrides,
62621
- config,
62622
- configRC,
62623
- pkgJson,
62624
- options.defaultConfig
61749
+ _configs.packageJson = _merger({}, ...values);
61750
+ }
61751
+ const configs = {};
61752
+ for (const key in _configs) {
61753
+ const value2 = _configs[key];
61754
+ configs[key] = await (typeof value2 === "function" ? value2({ configs }) : value2);
61755
+ }
61756
+ r3.config = _merger(
61757
+ configs.overrides,
61758
+ configs.main,
61759
+ configs.rc,
61760
+ configs.packageJson,
61761
+ configs.defaultConfig
62625
61762
  );
62626
61763
  if (options.extend) {
62627
61764
  await extendConfig(r3.config, options);
62628
61765
  r3.layers = r3.config._layers;
62629
61766
  delete r3.config._layers;
62630
- r3.config = defu(r3.config, ...r3.layers.map((e2) => e2.config));
61767
+ r3.config = _merger(r3.config, ...r3.layers.map((e2) => e2.config));
62631
61768
  }
62632
61769
  const baseLayers = [
62633
- options.overrides && {
62634
- config: options.overrides,
61770
+ configs.overrides && {
61771
+ config: configs.overrides,
62635
61772
  configFile: void 0,
62636
61773
  cwd: void 0
62637
61774
  },
62638
- { config, configFile: options.configFile, cwd: options.cwd },
62639
- options.rcFile && { config: configRC, configFile: options.rcFile },
62640
- options.packageJson && { config: pkgJson, configFile: "package.json" }
61775
+ { config: configs.main, configFile: options.configFile, cwd: options.cwd },
61776
+ configs.rc && { config: configs.rc, configFile: options.rcFile },
61777
+ configs.packageJson && {
61778
+ config: configs.packageJson,
61779
+ configFile: "package.json"
61780
+ }
62641
61781
  ].filter((l2) => l2 && l2.config);
62642
61782
  r3.layers = [...baseLayers, ...r3.layers];
62643
61783
  if (options.defaults) {
62644
- r3.config = defu(r3.config, options.defaults);
61784
+ r3.config = _merger(r3.config, options.defaults);
62645
61785
  }
62646
61786
  if (options.omit$Keys) {
62647
61787
  for (const key in r3.config) {
@@ -62720,7 +61860,8 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62720
61860
  return res2;
62721
61861
  }
62722
61862
  }
62723
- if (GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
61863
+ const _merger = options.merger || defu;
61864
+ if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
62724
61865
  const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist4(), dist_exports));
62725
61866
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
62726
61867
  let cloneDir;
@@ -62748,7 +61889,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62748
61889
  }
62749
61890
  const tryResolve = (id) => {
62750
61891
  try {
62751
- return options.jiti.resolve(id, { paths: [options.cwd] });
61892
+ return options.jiti.esmResolve(id, { try: true });
62752
61893
  } catch {
62753
61894
  }
62754
61895
  };
@@ -62778,7 +61919,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62778
61919
  const contents = await readFile3(res.configFile, "utf8");
62779
61920
  res.config = asyncLoader(contents);
62780
61921
  } else {
62781
- res.config = options.jiti(res.configFile);
61922
+ res.config = await options.jiti.import(res.configFile);
62782
61923
  }
62783
61924
  if (res.config instanceof Function) {
62784
61925
  res.config = await res.config();
@@ -62789,19 +61930,23 @@ async function resolveConfig(source, options, sourceOptions = {}) {
62789
61930
  ...res.config.$env?.[options.envName]
62790
61931
  };
62791
61932
  if (Object.keys(envConfig).length > 0) {
62792
- res.config = defu(envConfig, res.config);
61933
+ res.config = _merger(envConfig, res.config);
62793
61934
  }
62794
61935
  }
62795
61936
  res.meta = defu(res.sourceOptions.meta, res.config.$meta);
62796
61937
  delete res.config.$meta;
62797
61938
  if (res.sourceOptions.overrides) {
62798
- res.config = defu(res.sourceOptions.overrides, res.config);
61939
+ res.config = _merger(res.sourceOptions.overrides, res.config);
62799
61940
  }
62800
61941
  res.configFile = _normalize(res.configFile);
62801
61942
  res.source = _normalize(res.source);
62802
61943
  return res;
62803
61944
  }
62804
61945
 
61946
+ // node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs
61947
+ init_defu();
61948
+ var import_dotenv = __toESM(require_main(), 1);
61949
+
62805
61950
  // packages/config-tools/src/config-file/get-config-file.ts
62806
61951
  var import_deepmerge = __toESM(require_cjs());
62807
61952
 
@@ -63739,12 +62884,12 @@ var ZodType = class {
63739
62884
  and(incoming) {
63740
62885
  return ZodIntersection.create(this, incoming, this._def);
63741
62886
  }
63742
- transform(transform) {
62887
+ transform(transform2) {
63743
62888
  return new ZodEffects({
63744
62889
  ...processCreateParams(this._def),
63745
62890
  schema: this,
63746
62891
  typeName: ZodFirstPartyTypeKind.ZodEffects,
63747
- effect: { type: "transform", transform }
62892
+ effect: { type: "transform", transform: transform2 }
63748
62893
  });
63749
62894
  }
63750
62895
  default(def) {