@lobehub/cli 0.0.140 → 0.0.142

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/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import { Buffer as Buffer$1 } from "node:buffer";
15
15
  import * as net$1 from "node:net";
16
16
  import net, { BlockList, connect, createServer, isIP } from "node:net";
17
17
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
18
- import process$1, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
18
+ import _w, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
19
19
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
20
20
  import { finished, pipeline } from "node:stream/promises";
21
21
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark, pipeline as pipeline$1 } from "node:stream";
@@ -21955,7 +21955,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21955
21955
  const childProcess$2 = __require("node:child_process");
21956
21956
  const path$16 = __require("node:path");
21957
21957
  const fs$17 = __require("node:fs");
21958
- const process$3 = __require("node:process");
21958
+ const process$2 = __require("node:process");
21959
21959
  const { Argument, humanReadableArgName } = require_argument();
21960
21960
  const { CommanderError } = require_error$1();
21961
21961
  const { Help, stripColor } = require_help();
@@ -22007,13 +22007,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22007
22007
  this._showSuggestionAfterError = true;
22008
22008
  this._savedState = null;
22009
22009
  this._outputConfiguration = {
22010
- writeOut: (str) => process$3.stdout.write(str),
22011
- writeErr: (str) => process$3.stderr.write(str),
22010
+ writeOut: (str) => process$2.stdout.write(str),
22011
+ writeErr: (str) => process$2.stderr.write(str),
22012
22012
  outputError: (str, write) => write(str),
22013
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22014
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22015
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22016
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
22013
+ getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
22014
+ getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
22015
+ getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
22016
+ getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
22017
22017
  stripColor: (str) => stripColor(str)
22018
22018
  };
22019
22019
  this._hidden = false;
@@ -22371,7 +22371,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22371
22371
  */
22372
22372
  _exit(exitCode, code, message) {
22373
22373
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22374
- process$3.exit(exitCode);
22374
+ process$2.exit(exitCode);
22375
22375
  }
22376
22376
  /**
22377
22377
  * Register callback `fn` for the command.
@@ -22710,11 +22710,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22710
22710
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22711
22711
  parseOptions = parseOptions || {};
22712
22712
  if (argv === void 0 && parseOptions.from === void 0) {
22713
- if (process$3.versions?.electron) parseOptions.from = "electron";
22714
- const execArgv = process$3.execArgv ?? [];
22713
+ if (process$2.versions?.electron) parseOptions.from = "electron";
22714
+ const execArgv = process$2.execArgv ?? [];
22715
22715
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22716
22716
  }
22717
- if (argv === void 0) argv = process$3.argv;
22717
+ if (argv === void 0) argv = process$2.argv;
22718
22718
  this.rawArgs = argv.slice();
22719
22719
  let userArgs;
22720
22720
  switch (parseOptions.from) {
@@ -22724,7 +22724,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22724
22724
  userArgs = argv.slice(2);
22725
22725
  break;
22726
22726
  case "electron":
22727
- if (process$3.defaultApp) {
22727
+ if (process$2.defaultApp) {
22728
22728
  this._scriptPath = argv[1];
22729
22729
  userArgs = argv.slice(2);
22730
22730
  } else userArgs = argv.slice(1);
@@ -22889,16 +22889,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
22889
22889
  }
22890
22890
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
22891
22891
  let proc;
22892
- if (process$3.platform !== "win32") if (launchWithNode) {
22892
+ if (process$2.platform !== "win32") if (launchWithNode) {
22893
22893
  args.unshift(executableFile);
22894
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22895
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
22894
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22895
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
22896
22896
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
22897
22897
  else {
22898
22898
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22899
22899
  args.unshift(executableFile);
22900
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22901
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
22900
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22901
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
22902
22902
  }
22903
22903
  if (!proc.killed) [
22904
22904
  "SIGUSR1",
@@ -22907,20 +22907,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
22907
22907
  "SIGINT",
22908
22908
  "SIGHUP"
22909
22909
  ].forEach((signal) => {
22910
- process$3.on(signal, () => {
22910
+ process$2.on(signal, () => {
22911
22911
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
22912
22912
  });
22913
22913
  });
22914
22914
  const exitCallback = this._exitCallback;
22915
22915
  proc.on("close", (code) => {
22916
22916
  code = code ?? 1;
22917
- if (!exitCallback) process$3.exit(code);
22917
+ if (!exitCallback) process$2.exit(code);
22918
22918
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
22919
22919
  });
22920
22920
  proc.on("error", (err) => {
22921
22921
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22922
22922
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
22923
- if (!exitCallback) process$3.exit(1);
22923
+ if (!exitCallback) process$2.exit(1);
22924
22924
  else {
22925
22925
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
22926
22926
  wrappedError.nestedError = err;
@@ -23329,13 +23329,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23329
23329
  */
23330
23330
  _parseOptionsEnv() {
23331
23331
  this.options.forEach((option) => {
23332
- if (option.envVar && option.envVar in process$3.env) {
23332
+ if (option.envVar && option.envVar in process$2.env) {
23333
23333
  const optionKey = option.attributeName();
23334
23334
  if (this.getOptionValue(optionKey) === void 0 || [
23335
23335
  "default",
23336
23336
  "config",
23337
23337
  "env"
23338
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23338
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23339
23339
  else this.emit(`optionEnv:${option.name()}`);
23340
23340
  }
23341
23341
  });
@@ -23752,7 +23752,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23752
23752
  */
23753
23753
  help(contextOptions) {
23754
23754
  this.outputHelp(contextOptions);
23755
- let exitCode = Number(process$3.exitCode ?? 0);
23755
+ let exitCode = Number(process$2.exitCode ?? 0);
23756
23756
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
23757
23757
  this._exit(exitCode, "commander.help", "(outputHelp)");
23758
23758
  }
@@ -23842,8 +23842,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
23842
23842
  * @package
23843
23843
  */
23844
23844
  function useColor() {
23845
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
23846
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
23845
+ if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
23846
+ if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
23847
23847
  }
23848
23848
  exports.Command = Command;
23849
23849
  exports.useColor = useColor;
@@ -328105,7 +328105,7 @@ var init_stream = __esmMin((() => {
328105
328105
  }));
328106
328106
 
328107
328107
  //#endregion
328108
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/buffer_utils.js
328108
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/buffer_utils.js
328109
328109
  function concat(...buffers) {
328110
328110
  const size = buffers.reduce((acc, { length }) => acc + length, 0), buf = new Uint8Array(size);
328111
328111
  let i = 0;
@@ -328173,7 +328173,7 @@ var init_buffer_utils = __esmMin((() => {
328173
328173
  }));
328174
328174
 
328175
328175
  //#endregion
328176
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/errors.js
328176
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/errors.js
328177
328177
  var errors_exports = /* @__PURE__ */ __exportAll$2({
328178
328178
  JOSEAlgNotAllowed: () => JOSEAlgNotAllowed,
328179
328179
  JOSEError: () => JOSEError,
@@ -328295,7 +328295,7 @@ var init_errors = __esmMin((() => {
328295
328295
  }));
328296
328296
 
328297
328297
  //#endregion
328298
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/base64url.js
328298
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/base64url.js
328299
328299
  var base64url_exports = /* @__PURE__ */ __exportAll$2({
328300
328300
  decode: () => decode$1,
328301
328301
  encode: () => encode$1
@@ -328317,7 +328317,7 @@ var init_base64url = __esmMin((() => {
328317
328317
  }));
328318
328318
 
328319
328319
  //#endregion
328320
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/validate.js
328320
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/validate.js
328321
328321
  function assertUint8Array(input, label) {
328322
328322
  if (!(input instanceof Uint8Array)) throw new TypeError(`${label} must be an instance of Uint8Array`);
328323
328323
  }
@@ -328418,7 +328418,7 @@ var init_validate = __esmMin((() => {
328418
328418
  }));
328419
328419
 
328420
328420
  //#endregion
328421
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key.js
328421
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key.js
328422
328422
  async function prepareKey(entry, key, usage) {
328423
328423
  const { alg, secret } = entry, requiresPrivateKey = usage === "decrypt" || usage === "sign";
328424
328424
  if (secret && key instanceof Uint8Array) return key;
@@ -328533,6 +328533,7 @@ var init_key = __esmMin((() => {
328533
328533
  const expected = usage === "sign" || usage === "verify" ? "sig" : "enc";
328534
328534
  if (key.use !== expected) throw new TypeError(`Invalid key for this operation, its "use" must be "${expected}" when present`);
328535
328535
  }
328536
+ if (key.kty === "AKP" && key.alg === void 0) throw new TypeError("missing \"alg\" (Algorithm) Parameter value");
328536
328537
  if (key.alg !== void 0 && key.alg !== alg) throw new TypeError(`Invalid key for this operation, its "alg" must be "${alg}" when present`);
328537
328538
  if (Array.isArray(key.key_ops)) {
328538
328539
  const expectedKeyOp = usage === "encrypt" || usage === "decrypt" ? entry.ops?.[usage === "encrypt" ? 0 : 1] : usage;
@@ -328559,7 +328560,7 @@ var init_key = __esmMin((() => {
328559
328560
  }));
328560
328561
 
328561
328562
  //#endregion
328562
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/content_encryption.js
328563
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/content_encryption.js
328563
328564
  function checkCekLength(cek, expected) {
328564
328565
  const actual = cek.byteLength << 3;
328565
328566
  if (actual !== expected) throw new JWEInvalid(`Invalid Content Encryption Key length. Expected ${expected} bits, got ${actual} bits`);
@@ -328653,7 +328654,7 @@ var init_content_encryption = __esmMin((() => {
328653
328654
  }));
328654
328655
 
328655
328656
  //#endregion
328656
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_descriptor.js
328657
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_descriptor.js
328657
328658
  function table(entries) {
328658
328659
  const out = { __proto__: null };
328659
328660
  for (const alg in entries) out[alg] = {
@@ -328665,7 +328666,7 @@ function table(entries) {
328665
328666
  var init_key_descriptor = __esmMin((() => {}));
328666
328667
 
328667
328668
  //#endregion
328668
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_algorithms.js
328669
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_algorithms.js
328669
328670
  function rsaes(bits) {
328670
328671
  return {
328671
328672
  kty: ["RSA"],
@@ -328788,7 +328789,7 @@ var init_jwe_algorithms = __esmMin((() => {
328788
328789
  }));
328789
328790
 
328790
328791
  //#endregion
328791
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_management.js
328792
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_management.js
328792
328793
  function checkEcdhCryptoKey(key, usage) {
328793
328794
  if (key.algorithm.name !== "ECDH" && key.algorithm.name !== "X25519") throw new TypeError("CryptoKey does not support this operation, its algorithm.name must be ECDH or X25519");
328794
328795
  checkUsage(key, usage);
@@ -328992,7 +328993,7 @@ var init_key_management = __esmMin((() => {
328992
328993
  }));
328993
328994
 
328994
328995
  //#endregion
328995
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/deflate.js
328996
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/deflate.js
328996
328997
  function validateZip(joseHeader, protectedHeader) {
328997
328998
  if (joseHeader.zip !== void 0 && joseHeader.zip !== "DEF") throw new JOSENotSupported("Unsupported JWE \"zip\" (Compression Algorithm) Header Parameter value.");
328998
328999
  if (joseHeader.zip !== void 0 && !protectedHeader?.zip) throw new JWEInvalid("JWE \"zip\" (Compression Algorithm) Header Parameter MUST be in a protected header.");
@@ -329025,7 +329026,7 @@ var init_deflate = __esmMin((() => {
329025
329026
  }));
329026
329027
 
329027
329028
  //#endregion
329028
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
329029
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
329029
329030
  function snapshotSharedJWE(jwe) {
329030
329031
  const { aad, ciphertext, iv, protected: encodedProtected, tag, unprotected } = jwe;
329031
329032
  if (iv !== void 0 && (typeof iv != "string" || !iv)) throw new JWEInvalid("JWE Initialization Vector incorrect type");
@@ -329153,7 +329154,7 @@ async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
329153
329154
  const decompressionLimit = maxDecompressedLength ?? 25e4;
329154
329155
  if (decompressionLimit === 0) throw new JOSENotSupported("JWE \"zip\" (Compression Algorithm) Header Parameter is not supported.");
329155
329156
  plaintext = await decompress(plaintext, decompressionLimit).catch((cause) => {
329156
- throw cause instanceof JWEInvalid ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
329157
+ throw cause instanceof JWEInvalid || cause instanceof JOSENotSupported ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
329157
329158
  });
329158
329159
  }
329159
329160
  return {
@@ -329189,7 +329190,7 @@ var init_jwe_decrypt = __esmMin((() => {
329189
329190
  }));
329190
329191
 
329191
329192
  //#endregion
329192
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
329193
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
329193
329194
  async function compactDecrypt(jwe, key, options) {
329194
329195
  return decryptCompact(jwe, prepareDecrypt(options), key);
329195
329196
  }
@@ -329198,7 +329199,7 @@ var init_decrypt$3 = __esmMin((() => {
329198
329199
  }));
329199
329200
 
329200
329201
  //#endregion
329201
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
329202
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
329202
329203
  async function flattenedDecrypt(jwe, key, options) {
329203
329204
  if (!isObject$1(jwe)) throw new JWEInvalid("Flattened JWE must be an object");
329204
329205
  const shared = snapshotSharedJWE(jwe), [recipient, , error] = snapshotRecipientJWE(jwe);
@@ -329216,7 +329217,7 @@ var init_decrypt$2 = __esmMin((() => {
329216
329217
  }));
329217
329218
 
329218
329219
  //#endregion
329219
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/general/decrypt.js
329220
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/general/decrypt.js
329220
329221
  async function generalDecrypt(jwe, key, options) {
329221
329222
  if (!isObject$1(jwe)) throw new JWEInvalid("General JWE must be an object");
329222
329223
  const inputRecipients = jwe.recipients;
@@ -329253,7 +329254,7 @@ var init_decrypt$1 = __esmMin((() => {
329253
329254
  }));
329254
329255
 
329255
329256
  //#endregion
329256
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
329257
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
329257
329258
  function checkDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader) {
329258
329259
  if (!isDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader)) throw new JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");
329259
329260
  }
@@ -329304,7 +329305,7 @@ async function encryptJWE(input, checked, key) {
329304
329305
  const encodedProtectedHeader = protectedHeader ? encode$1(JSON.stringify(protectedHeader)) : "", encodedAad = aad?.byteLength ? encode$1(aad) : void 0, additionalAuthenticatedData = encode$2(encodedAad ? `${encodedProtectedHeader}.${encodedAad}` : encodedProtectedHeader);
329305
329306
  let plaintext = inputPlaintext;
329306
329307
  joseHeader.zip === "DEF" && (plaintext = await compress(plaintext).catch((cause) => {
329307
- throw new JWEInvalid("Failed to compress plaintext", { cause });
329308
+ throw cause instanceof JOSENotSupported ? cause : new JWEInvalid("Failed to compress plaintext", { cause });
329308
329309
  }));
329309
329310
  let ciphertext, tag, iv;
329310
329311
  algEntry.mode === "integrated-encryption" ? [encryptedKey, ciphertext] = await algEntry.encrypt(cek, plaintext, additionalAuthenticatedData, protectedHeader, joseHeader, keyManagementParameters) : {ciphertext, tag, iv} = await encrypt(encEntry, plaintext, cek, inputIv, additionalAuthenticatedData);
@@ -329336,7 +329337,7 @@ var init_jwe_encrypt = __esmMin((() => {
329336
329337
  }));
329337
329338
 
329338
329339
  //#endregion
329339
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/general/encrypt.js
329340
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/general/encrypt.js
329340
329341
  var IndividualRecipient, GeneralEncrypt;
329341
329342
  var init_encrypt$3 = __esmMin((() => {
329342
329343
  init_validate();
@@ -329449,7 +329450,7 @@ var init_encrypt$3 = __esmMin((() => {
329449
329450
  }));
329450
329451
 
329451
329452
  //#endregion
329452
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_algorithms.js
329453
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_algorithms.js
329453
329454
  function hmac(bits) {
329454
329455
  const subtle = {
329455
329456
  name: "HMAC",
@@ -329545,7 +329546,7 @@ var init_jws_algorithms = __esmMin((() => {
329545
329546
  }));
329546
329547
 
329547
329548
  //#endregion
329548
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_verify.js
329549
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_verify.js
329549
329550
  function snapshotJws(jws, sharedPayload) {
329550
329551
  const encodedProtectedHeader = jws.protected, inputHeader = jws.header, header = isObject$1(inputHeader) ? { ...inputHeader } : inputHeader;
329551
329552
  let payload = sharedPayload ? sharedPayload[0] : jws.payload;
@@ -329628,7 +329629,7 @@ var init_jws_verify = __esmMin((() => {
329628
329629
  }));
329629
329630
 
329630
329631
  //#endregion
329631
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/compact/verify.js
329632
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/compact/verify.js
329632
329633
  async function compactVerify(jws, key, options) {
329633
329634
  const [result] = await verifyCompact(jws, prepareVerify(options), key);
329634
329635
  return result;
@@ -329638,7 +329639,7 @@ var init_verify$3 = __esmMin((() => {
329638
329639
  }));
329639
329640
 
329640
329641
  //#endregion
329641
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/flattened/verify.js
329642
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/flattened/verify.js
329642
329643
  async function flattenedVerify(jws, key, options) {
329643
329644
  if (!isObject$1(jws)) throw new JWSInvalid("Flattened JWS must be an object");
329644
329645
  const [result] = await verifySignature(snapshotJws(jws), prepareVerify(options), key, encodeJsonUnencodedPayload);
@@ -329651,7 +329652,7 @@ var init_verify$2 = __esmMin((() => {
329651
329652
  }));
329652
329653
 
329653
329654
  //#endregion
329654
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/general/verify.js
329655
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/general/verify.js
329655
329656
  function snapshotSignature(signature, payload) {
329656
329657
  try {
329657
329658
  const jws = snapshotJws(signature, [payload]), protectedHeader = parseProtectedHeader(jws.protected), { b64, crit } = protectedHeader;
@@ -329687,7 +329688,7 @@ var init_verify$1 = __esmMin((() => {
329687
329688
  }));
329688
329689
 
329689
329690
  //#endregion
329690
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
329691
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
329691
329692
  function invalidDuration() {
329692
329693
  throw new TypeError("Invalid time period format");
329693
329694
  }
@@ -329696,7 +329697,7 @@ function secs(str) {
329696
329697
  const matched = REGEX.exec(str);
329697
329698
  (!matched || matched[4] && matched[1]) && invalidDuration();
329698
329699
  const value = parseFloat(matched[2]), durationSeconds = Math.round(value * multipliers[matched[3][0].toLowerCase()]);
329699
- return Number.isFinite(durationSeconds) || invalidDuration(), matched[1] === "-" || matched[4] === "ago" ? -durationSeconds : durationSeconds;
329700
+ return Number.isFinite(durationSeconds) || invalidDuration(), matched[1] === "-" || matched[4]?.toLowerCase() === "ago" ? -durationSeconds : durationSeconds;
329700
329701
  }
329701
329702
  function validateInput(label, input) {
329702
329703
  if (!Number.isFinite(input)) throw new TypeError(`Invalid ${label} input`);
@@ -329822,7 +329823,7 @@ var init_jwt_claims_set = __esmMin((() => {
329822
329823
  }));
329823
329824
 
329824
329825
  //#endregion
329825
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/verify.js
329826
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/verify.js
329826
329827
  async function jwtVerify(jwt, key, options) {
329827
329828
  const [verified, b64] = await verifyCompact(jwt, prepareVerify(options), key);
329828
329829
  if (!b64) throw new JWTInvalid("JWTs MUST NOT use unencoded payload");
@@ -329839,7 +329840,7 @@ var init_verify = __esmMin((() => {
329839
329840
  }));
329840
329841
 
329841
329842
  //#endregion
329842
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/decrypt.js
329843
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/decrypt.js
329843
329844
  async function jwtDecrypt(jwt, key, options) {
329844
329845
  const { plaintext, ...result } = await decryptCompact(jwt, prepareDecrypt(options), key), { protectedHeader } = result, payload = validateClaimsSet(protectedHeader, plaintext, options);
329845
329846
  for (const claim of [
@@ -329859,7 +329860,7 @@ var init_decrypt = __esmMin((() => {
329859
329860
  }));
329860
329861
 
329861
329862
  //#endregion
329862
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
329863
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
329863
329864
  var CompactEncrypt;
329864
329865
  var init_encrypt$2 = __esmMin((() => {
329865
329866
  init_validate();
@@ -329888,7 +329889,7 @@ var init_encrypt$2 = __esmMin((() => {
329888
329889
  }));
329889
329890
 
329890
329891
  //#endregion
329891
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
329892
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
329892
329893
  var FlattenedEncrypt;
329893
329894
  var init_encrypt$1 = __esmMin((() => {
329894
329895
  init_validate();
@@ -329926,7 +329927,7 @@ var init_encrypt$1 = __esmMin((() => {
329926
329927
  }));
329927
329928
 
329928
329929
  //#endregion
329929
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_sign.js
329930
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_sign.js
329930
329931
  async function createSignature(input, key, rejectUnencoded) {
329931
329932
  let [payload, protectedHeader, unprotectedHeader, crit] = input, encodedProtectedHeader = "";
329932
329933
  if (protectedHeader !== void 0) {
@@ -329978,7 +329979,7 @@ var init_jws_sign = __esmMin((() => {
329978
329979
  }));
329979
329980
 
329980
329981
  //#endregion
329981
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/compact/sign.js
329982
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/compact/sign.js
329982
329983
  var CompactSign;
329983
329984
  var init_sign$3 = __esmMin((() => {
329984
329985
  init_jws_sign();
@@ -330001,7 +330002,7 @@ var init_sign$3 = __esmMin((() => {
330001
330002
  }));
330002
330003
 
330003
330004
  //#endregion
330004
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/flattened/sign.js
330005
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/flattened/sign.js
330005
330006
  var FlattenedSign;
330006
330007
  var init_sign$2 = __esmMin((() => {
330007
330008
  init_jws_sign();
@@ -330027,7 +330028,7 @@ var init_sign$2 = __esmMin((() => {
330027
330028
  }));
330028
330029
 
330029
330030
  //#endregion
330030
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/general/sign.js
330031
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/general/sign.js
330031
330032
  var IndividualSignature, GeneralSign;
330032
330033
  var init_sign$1 = __esmMin((() => {
330033
330034
  init_jws_sign();
@@ -330096,7 +330097,7 @@ var init_sign$1 = __esmMin((() => {
330096
330097
  }));
330097
330098
 
330098
330099
  //#endregion
330099
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/sign.js
330100
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/sign.js
330100
330101
  var SignJWT_base, SignJWT;
330101
330102
  var init_sign = __esmMin((() => {
330102
330103
  init_jws_sign();
@@ -330118,7 +330119,7 @@ var init_sign = __esmMin((() => {
330118
330119
  }));
330119
330120
 
330120
330121
  //#endregion
330121
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/encrypt.js
330122
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/encrypt.js
330122
330123
  var EncryptJWT_base, EncryptJWT;
330123
330124
  var init_encrypt = __esmMin((() => {
330124
330125
  init_jwe_encrypt();
@@ -330152,21 +330153,18 @@ var init_encrypt = __esmMin((() => {
330152
330153
  return this.#replicateAudienceAsHeader = !0, this;
330153
330154
  }
330154
330155
  async encrypt(key, options) {
330155
- const plaintext = jwtClaimsSetBytes(this);
330156
- this.#input[1] && (this.#replicateIssuerAsHeader || this.#replicateSubjectAsHeader || this.#replicateAudienceAsHeader) && (this.#input[1] = {
330157
- ...this.#input[1],
330158
- iss: this.#replicateIssuerAsHeader ? jwtClaim(this, "iss") : void 0,
330159
- sub: this.#replicateSubjectAsHeader ? jwtClaim(this, "sub") : void 0,
330160
- aud: this.#replicateAudienceAsHeader ? jwtClaim(this, "aud") : void 0
330161
- });
330162
330156
  const input = [...this.#input];
330163
- return input[0] = plaintext, compactJWE(await createJWE(input, key, options));
330157
+ if (input[0] = jwtClaimsSetBytes(this), input[1] && (this.#replicateIssuerAsHeader || this.#replicateSubjectAsHeader || this.#replicateAudienceAsHeader)) {
330158
+ const header = { ...input[1] };
330159
+ this.#replicateIssuerAsHeader && (header.iss = jwtClaim(this, "iss")), this.#replicateSubjectAsHeader && (header.sub = jwtClaim(this, "sub")), this.#replicateAudienceAsHeader && (header.aud = jwtClaim(this, "aud")), input[1] = header;
330160
+ }
330161
+ return compactJWE(await createJWE(input, key, options));
330164
330162
  }
330165
330163
  };
330166
330164
  }));
330167
330165
 
330168
330166
  //#endregion
330169
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_algorithm.js
330167
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_algorithm.js
330170
330168
  function unsupportedAlg(source = "JWK \"alg\" (Algorithm) Parameter") {
330171
330169
  throw new JOSENotSupported(`Invalid or unsupported ${source} value`);
330172
330170
  }
@@ -330182,7 +330180,7 @@ var init_key_algorithm = __esmMin((() => {
330182
330180
  }));
330183
330181
 
330184
330182
  //#endregion
330185
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/asn1.js
330183
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/asn1.js
330186
330184
  function parseKeyHeader(state, keyFormat) {
330187
330185
  if (expectTag(state, 48, `Invalid ${keyFormat === "spki" ? "SPKI" : "PKCS#8"} structure`), parseLength(state), keyFormat === "pkcs8") {
330188
330186
  expectTag(state, 2, "Expected version field");
@@ -330334,7 +330332,7 @@ ${(b64.match(/.{1,64}/g) || []).join(`
330334
330332
  }));
330335
330333
 
330336
330334
  //#endregion
330337
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/export.js
330335
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/export.js
330338
330336
  function exportSPKI(key) {
330339
330337
  return toSPKI(key);
330340
330338
  }
@@ -330362,7 +330360,7 @@ var init_export = __esmMin((() => {
330362
330360
  }));
330363
330361
 
330364
330362
  //#endregion
330365
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwk/thumbprint.js
330363
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwk/thumbprint.js
330366
330364
  async function calculateJwkThumbprint(key, digestAlgorithm) {
330367
330365
  let jwk;
330368
330366
  if (isObject$1(key)) {
@@ -330432,7 +330430,7 @@ var init_thumbprint = __esmMin((() => {
330432
330430
  }));
330433
330431
 
330434
330432
  //#endregion
330435
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwk/embedded.js
330433
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwk/embedded.js
330436
330434
  async function EmbeddedJWK(protectedHeader, token) {
330437
330435
  const joseHeader = {
330438
330436
  ...protectedHeader,
@@ -330460,7 +330458,7 @@ var init_embedded = __esmMin((() => {
330460
330458
  }));
330461
330459
 
330462
330460
  //#endregion
330463
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwks/local.js
330461
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwks/local.js
330464
330462
  function isUsableJWK(jwk, entry, alg, kid) {
330465
330463
  const { kty, key_ops: keyOps, ext, kid: jwkKid, alg: jwkAlg, use, crv } = jwk;
330466
330464
  return (ext === void 0 || typeof ext == "boolean") && (keyOps === void 0 || Array.isArray(keyOps) && keyOps.every((operation, index) => typeof operation == "string" && keyOps.indexOf(operation) === index) && keyOps.includes("verify")) && entry.kty.includes(kty) && (kid === void 0 || typeof kid == "string" && kid === jwkKid) && (jwkAlg === void 0 ? kty !== "AKP" : alg === jwkAlg) && (use === void 0 || use === "sig") && (!entry.crv || crv === entry.crv);
@@ -330517,7 +330515,7 @@ var init_local = __esmMin((() => {
330517
330515
  }));
330518
330516
 
330519
330517
  //#endregion
330520
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwks/remote.js
330518
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwks/remote.js
330521
330519
  function isCloudflareWorkers() {
330522
330520
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
330523
330521
  }
@@ -330534,7 +330532,7 @@ async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
330534
330532
  try {
330535
330533
  return await response.json();
330536
330534
  } catch (cause) {
330537
- throw new JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON", { cause });
330535
+ throw signal.aborted ? new JWKSTimeout(void 0, { cause }) : new JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON", { cause });
330538
330536
  }
330539
330537
  }
330540
330538
  function isFreshFor(timestamp, duration) {
@@ -330608,13 +330606,13 @@ var init_remote = __esmMin((() => {
330608
330606
  init_local();
330609
330607
  init_validate();
330610
330608
  ;
330611
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
330609
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.18");
330612
330610
  customFetch = /* @__PURE__ */ Symbol();
330613
330611
  jwksCache = /* @__PURE__ */ Symbol();
330614
330612
  }));
330615
330613
 
330616
330614
  //#endregion
330617
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/unsecured.js
330615
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/unsecured.js
330618
330616
  var UnsecuredJWT_base, UnsecuredJWT;
330619
330617
  var init_unsecured = __esmMin((() => {
330620
330618
  init_base64url();
@@ -330649,7 +330647,7 @@ var init_unsecured = __esmMin((() => {
330649
330647
  }));
330650
330648
 
330651
330649
  //#endregion
330652
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/import.js
330650
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/import.js
330653
330651
  async function importSPKI(spki, alg, options) {
330654
330652
  if (typeof spki != "string" || spki.indexOf("-----BEGIN PUBLIC KEY-----") !== 0) throw new TypeError("\"spki\" must be SPKI formatted string");
330655
330653
  return fromSPKI(spki, alg, options);
@@ -330690,7 +330688,7 @@ var init_import = __esmMin((() => {
330690
330688
  }));
330691
330689
 
330692
330690
  //#endregion
330693
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/decode_protected_header.js
330691
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/decode_protected_header.js
330694
330692
  function decodeProtectedHeader(token) {
330695
330693
  let encodedProtectedHeader;
330696
330694
  if (typeof token == "string") {
@@ -330707,7 +330705,7 @@ var init_decode_protected_header = __esmMin((() => {
330707
330705
  }));
330708
330706
 
330709
330707
  //#endregion
330710
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/decode_jwt.js
330708
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/decode_jwt.js
330711
330709
  function decodeJwt(jwt) {
330712
330710
  if (typeof jwt != "string") throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
330713
330711
  const { 1: encodedPayload, length } = jwt.split(".");
@@ -330737,7 +330735,7 @@ var init_decode_jwt = __esmMin((() => {
330737
330735
  }));
330738
330736
 
330739
330737
  //#endregion
330740
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/generate_key_pair.js
330738
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/generate_key_pair.js
330741
330739
  function getModulusLengthOption(options) {
330742
330740
  const modulusLength = options?.modulusLength ?? 2048;
330743
330741
  if (typeof modulusLength != "number" || !Number.isInteger(modulusLength) || modulusLength < 2048) throw new JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");
@@ -330773,7 +330771,7 @@ var init_generate_key_pair = __esmMin((() => {
330773
330771
  }));
330774
330772
 
330775
330773
  //#endregion
330776
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/generate_secret.js
330774
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/generate_secret.js
330777
330775
  async function generateSecret(alg, options) {
330778
330776
  const extractable = validateExtractableOption(options?.extractable);
330779
330777
  let keyLengthBits, algorithm, keyUsages;
@@ -330819,7 +330817,7 @@ var init_generate_secret = __esmMin((() => {
330819
330817
  }));
330820
330818
 
330821
330819
  //#endregion
330822
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/index.js
330820
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/index.js
330823
330821
  var webapi_exports = /* @__PURE__ */ __exportAll$2({
330824
330822
  CompactEncrypt: () => CompactEncrypt,
330825
330823
  CompactSign: () => CompactSign,
@@ -333049,7 +333047,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
333049
333047
  function getDefaultEnvironment() {
333050
333048
  const env = {};
333051
333049
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
333052
- const value = process$1.env[key];
333050
+ const value = _w.env[key];
333053
333051
  if (value === void 0) continue;
333054
333052
  if (value.startsWith("()")) continue;
333055
333053
  env[key] = value;
@@ -333060,7 +333058,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
333060
333058
  var init_stdio = __esmMin((() => {
333061
333059
  init_src_CeKsbNLO();
333062
333060
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
333063
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
333061
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
333064
333062
  "APPDATA",
333065
333063
  "COMSPEC",
333066
333064
  "HOMEDRIVE",
@@ -333117,7 +333115,7 @@ var init_stdio = __esmMin((() => {
333117
333115
  this._serverParams.stderr ?? "inherit"
333118
333116
  ],
333119
333117
  shell: false,
333120
- windowsHide: process$1.platform === "win32",
333118
+ windowsHide: _w.platform === "win32",
333121
333119
  cwd: this._serverParams.cwd
333122
333120
  });
333123
333121
  this._process.on("error", (error) => {
@@ -336151,9 +336149,9 @@ const getSubprocessResult = ({ stdout }) => {
336151
336149
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
336152
336150
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
336153
336151
  const STANDARD_STREAMS = [
336154
- process$1.stdin,
336155
- process$1.stdout,
336156
- process$1.stderr
336152
+ _w.stdin,
336153
+ _w.stdout,
336154
+ _w.stderr
336157
336155
  ];
336158
336156
  const STANDARD_STREAMS_ALIASES = [
336159
336157
  "stdin",
@@ -336278,9 +336276,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
336278
336276
  //#endregion
336279
336277
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
336280
336278
  function isUnicodeSupported() {
336281
- const { env } = process$1;
336279
+ const { env } = _w;
336282
336280
  const { TERM, TERM_PROGRAM } = env;
336283
- if (process$1.platform !== "win32") return TERM !== "linux";
336281
+ if (_w.platform !== "win32") return TERM !== "linux";
336284
336282
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
336285
336283
  }
336286
336284
 
@@ -336815,7 +336813,7 @@ function traversePathUp(startPath) {
336815
336813
 
336816
336814
  //#endregion
336817
336815
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
336818
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
336816
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
336819
336817
  const cwdPath = path.resolve(toPath(cwd));
336820
336818
  const result = [];
336821
336819
  const pathParts = pathOption.split(path.delimiter);
@@ -336833,7 +336831,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
336833
336831
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
336834
336832
  if (!pathParts.includes(pathPart)) result.push(pathPart);
336835
336833
  };
336836
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
336834
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
336837
336835
  env = { ...env };
336838
336836
  const pathName = pathKey({ env });
336839
336837
  options.path = env[pathName];
@@ -337968,7 +337966,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
337968
337966
  };
337969
337967
  const getDefaultCwd = () => {
337970
337968
  try {
337971
- return process$1.cwd();
337969
+ return _w.cwd();
337972
337970
  } catch (error) {
337973
337971
  error.message = `The current directory does not exist.\n${error.message}`;
337974
337972
  throw error;
@@ -338004,7 +338002,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
338004
338002
  options.killSignal = normalizeKillSignal(options.killSignal);
338005
338003
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
338006
338004
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
338007
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
338005
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
338008
338006
  return {
338009
338007
  file,
338010
338008
  commandArguments,
@@ -338031,7 +338029,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
338031
338029
  });
338032
338030
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
338033
338031
  const env = extendEnv ? {
338034
- ...process$1.env,
338032
+ ..._w.env,
338035
338033
  ...envOption
338036
338034
  } : envOption;
338037
338035
  if (preferLocal || node) return npmRunPathEnv({
@@ -339033,12 +339031,12 @@ const guessStreamDirection = {
339033
339031
  }
339034
339032
  };
339035
339033
  const getStandardStreamDirection = (value) => {
339036
- if ([0, process$1.stdin].includes(value)) return "input";
339034
+ if ([0, _w.stdin].includes(value)) return "input";
339037
339035
  if ([
339038
339036
  1,
339039
339037
  2,
339040
- process$1.stdout,
339041
- process$1.stderr
339038
+ _w.stdout,
339039
+ _w.stderr
339042
339040
  ].includes(value)) return "output";
339043
339041
  };
339044
339042
  const DEFAULT_DIRECTION = "output";
@@ -340102,9 +340100,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
340102
340100
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
340103
340101
  };
340104
340102
  const getIpcExport = () => {
340105
- const anyProcess = process$1;
340103
+ const anyProcess = _w;
340106
340104
  const isSubprocess = true;
340107
- const ipc = process$1.channel !== void 0;
340105
+ const ipc = _w.channel !== void 0;
340108
340106
  return {
340109
340107
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
340110
340108
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -340581,7 +340579,7 @@ var SignalExitFallback = class extends SignalExitBase {
340581
340579
  };
340582
340580
  var SignalExit = class extends SignalExitBase {
340583
340581
  /* c8 ignore start */
340584
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
340582
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
340585
340583
  /* c8 ignore stop */
340586
340584
  #emitter = new Emitter();
340587
340585
  #process;
@@ -340676,8 +340674,8 @@ var SignalExit = class extends SignalExitBase {
340676
340674
  } else return og.call(this.#process, ev, ...args);
340677
340675
  }
340678
340676
  };
340679
- const process$2 = globalThis.process;
340680
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
340677
+ const process$1 = globalThis.process;
340678
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
340681
340679
 
340682
340680
  //#endregion
340683
340681
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js