@prisma/query-plan-executor 6.20.0-integration-next.20 → 7.0.1-dev.1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +284 -2178
  2. package/dist/index.js +463 -435
  3. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -8493,10 +8493,10 @@ var require_utils2 = __commonJS({
8493
8493
  var escapeString = (val) => {
8494
8494
  let offset = 0;
8495
8495
  let escaped = "";
8496
- let match;
8497
- while (match = CHARS_GLOBAL_REGEXP.exec(val)) {
8498
- escaped += val.substring(offset, match.index);
8499
- escaped += LITTERAL_ESCAPE[match[0]];
8496
+ let match2;
8497
+ while (match2 = CHARS_GLOBAL_REGEXP.exec(val)) {
8498
+ escaped += val.substring(offset, match2.index);
8499
+ escaped += LITTERAL_ESCAPE[match2[0]];
8500
8500
  offset = CHARS_GLOBAL_REGEXP.lastIndex;
8501
8501
  }
8502
8502
  if (offset === 0) {
@@ -9091,12 +9091,12 @@ var require_packet_output_stream = __commonJS({
9091
9091
  */
9092
9092
  writeDefaultStringEscapeQuote(str) {
9093
9093
  this.writeInt8(QUOTE);
9094
- let match;
9094
+ let match2;
9095
9095
  let lastIndex = 0;
9096
- while ((match = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
9097
- this.writeString(str.slice(lastIndex, match.index));
9096
+ while ((match2 = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
9097
+ this.writeString(str.slice(lastIndex, match2.index));
9098
9098
  this.writeInt8(SLASH);
9099
- this.writeInt8(match[0].charCodeAt(0));
9099
+ this.writeInt8(match2[0].charCodeAt(0));
9100
9100
  lastIndex = CHARS_GLOBAL_REGEXP.lastIndex;
9101
9101
  }
9102
9102
  if (lastIndex === 0) {
@@ -10307,7 +10307,7 @@ var require_handshake = __commonJS({
10307
10307
  var SslRequest = require_ssl_request();
10308
10308
  var Errors2 = require_errors();
10309
10309
  var NativePasswordAuth = require_native_password_auth();
10310
- var os4 = require("os");
10310
+ var os5 = require("os");
10311
10311
  var Iconv = require_lib();
10312
10312
  var Crypto = require("crypto");
10313
10313
  var driverVersion = require_package().version;
@@ -10439,7 +10439,7 @@ var require_handshake = __commonJS({
10439
10439
  _Handshake.writeAttribute(out, "_os", encoding);
10440
10440
  _Handshake.writeAttribute(out, process.platform, encoding);
10441
10441
  _Handshake.writeAttribute(out, "_client_host", encoding);
10442
- _Handshake.writeAttribute(out, os4.hostname(), encoding);
10442
+ _Handshake.writeAttribute(out, os5.hostname(), encoding);
10443
10443
  _Handshake.writeAttribute(out, "_node_version", encoding);
10444
10444
  _Handshake.writeAttribute(out, process.versions.node, encoding);
10445
10445
  if (opts.connectAttributes !== true) {
@@ -21920,14 +21920,14 @@ var require_ms = __commonJS({
21920
21920
  if (str.length > 100) {
21921
21921
  return;
21922
21922
  }
21923
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
21923
+ var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
21924
21924
  str
21925
21925
  );
21926
- if (!match) {
21926
+ if (!match2) {
21927
21927
  return;
21928
21928
  }
21929
- var n2 = parseFloat(match[1]);
21930
- var type2 = (match[2] || "ms").toLowerCase();
21929
+ var n2 = parseFloat(match2[1]);
21930
+ var type2 = (match2[2] || "ms").toLowerCase();
21931
21931
  switch (type2) {
21932
21932
  case "years":
21933
21933
  case "year":
@@ -22010,11 +22010,11 @@ var require_ms = __commonJS({
22010
22010
  }
22011
22011
  });
22012
22012
 
22013
- // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
22013
+ // ../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js
22014
22014
  var require_common = __commonJS({
22015
- "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports2, module2) {
22015
+ "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports2, module2) {
22016
22016
  "use strict";
22017
- function setup(env) {
22017
+ function setup(env2) {
22018
22018
  createDebug.debug = createDebug;
22019
22019
  createDebug.default = createDebug;
22020
22020
  createDebug.coerce = coerce;
@@ -22023,8 +22023,8 @@ var require_common = __commonJS({
22023
22023
  createDebug.enabled = enabled2;
22024
22024
  createDebug.humanize = require_ms();
22025
22025
  createDebug.destroy = destroy2;
22026
- Object.keys(env).forEach((key) => {
22027
- createDebug[key] = env[key];
22026
+ Object.keys(env2).forEach((key) => {
22027
+ createDebug[key] = env2[key];
22028
22028
  });
22029
22029
  createDebug.names = [];
22030
22030
  createDebug.skips = [];
@@ -22059,19 +22059,19 @@ var require_common = __commonJS({
22059
22059
  args.unshift("%O");
22060
22060
  }
22061
22061
  let index = 0;
22062
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
22063
- if (match === "%%") {
22062
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
22063
+ if (match2 === "%%") {
22064
22064
  return "%";
22065
22065
  }
22066
22066
  index++;
22067
22067
  const formatter = createDebug.formatters[format];
22068
22068
  if (typeof formatter === "function") {
22069
22069
  const val = args[index];
22070
- match = formatter.call(self2, val);
22070
+ match2 = formatter.call(self2, val);
22071
22071
  args.splice(index, 1);
22072
22072
  index--;
22073
22073
  }
22074
- return match;
22074
+ return match2;
22075
22075
  });
22076
22076
  createDebug.formatArgs.call(self2, args);
22077
22077
  const logFn = self2.log || createDebug.log;
@@ -22188,9 +22188,9 @@ var require_common = __commonJS({
22188
22188
  }
22189
22189
  });
22190
22190
 
22191
- // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
22191
+ // ../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js
22192
22192
  var require_browser = __commonJS({
22193
- "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports2, module2) {
22193
+ "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports2, module2) {
22194
22194
  "use strict";
22195
22195
  exports2.formatArgs = formatArgs;
22196
22196
  exports2.save = save;
@@ -22307,12 +22307,12 @@ var require_browser = __commonJS({
22307
22307
  args.splice(1, 0, c2, "color: inherit");
22308
22308
  let index = 0;
22309
22309
  let lastC = 0;
22310
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
22311
- if (match === "%%") {
22310
+ args[0].replace(/%[a-zA-Z%]/g, (match2) => {
22311
+ if (match2 === "%%") {
22312
22312
  return;
22313
22313
  }
22314
22314
  index++;
22315
- if (match === "%c") {
22315
+ if (match2 === "%c") {
22316
22316
  lastC = index;
22317
22317
  }
22318
22318
  });
@@ -22359,138 +22359,161 @@ var require_browser = __commonJS({
22359
22359
  }
22360
22360
  });
22361
22361
 
22362
- // ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
22363
- var require_has_flag = __commonJS({
22364
- "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
22365
- "use strict";
22366
- module2.exports = (flag, argv = process.argv) => {
22367
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
22368
- const position = argv.indexOf(prefix + flag);
22369
- const terminatorPosition = argv.indexOf("--");
22370
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
22371
- };
22372
- }
22362
+ // ../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js
22363
+ var supports_color_exports = {};
22364
+ __export(supports_color_exports, {
22365
+ createSupportsColor: () => createSupportsColor,
22366
+ default: () => supports_color_default
22373
22367
  });
22374
-
22375
- // ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
22376
- var require_supports_color = __commonJS({
22377
- "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports2, module2) {
22378
- "use strict";
22379
- var os4 = require("os");
22380
- var tty = require("tty");
22381
- var hasFlag = require_has_flag();
22382
- var { env } = process;
22383
- var flagForceColor;
22384
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
22385
- flagForceColor = 0;
22386
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
22387
- flagForceColor = 1;
22368
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
22369
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
22370
+ const position = argv.indexOf(prefix + flag);
22371
+ const terminatorPosition = argv.indexOf("--");
22372
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
22373
+ }
22374
+ function envForceColor() {
22375
+ if (!("FORCE_COLOR" in env)) {
22376
+ return;
22377
+ }
22378
+ if (env.FORCE_COLOR === "true") {
22379
+ return 1;
22380
+ }
22381
+ if (env.FORCE_COLOR === "false") {
22382
+ return 0;
22383
+ }
22384
+ if (env.FORCE_COLOR.length === 0) {
22385
+ return 1;
22386
+ }
22387
+ const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
22388
+ if (![0, 1, 2, 3].includes(level)) {
22389
+ return;
22390
+ }
22391
+ return level;
22392
+ }
22393
+ function translateLevel(level) {
22394
+ if (level === 0) {
22395
+ return false;
22396
+ }
22397
+ return {
22398
+ level,
22399
+ hasBasic: true,
22400
+ has256: level >= 2,
22401
+ has16m: level >= 3
22402
+ };
22403
+ }
22404
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
22405
+ const noFlagForceColor = envForceColor();
22406
+ if (noFlagForceColor !== void 0) {
22407
+ flagForceColor = noFlagForceColor;
22408
+ }
22409
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
22410
+ if (forceColor === 0) {
22411
+ return 0;
22412
+ }
22413
+ if (sniffFlags) {
22414
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
22415
+ return 3;
22388
22416
  }
22389
- function envForceColor() {
22390
- if ("FORCE_COLOR" in env) {
22391
- if (env.FORCE_COLOR === "true") {
22392
- return 1;
22393
- }
22394
- if (env.FORCE_COLOR === "false") {
22395
- return 0;
22396
- }
22397
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
22398
- }
22417
+ if (hasFlag("color=256")) {
22418
+ return 2;
22399
22419
  }
22400
- function translateLevel(level) {
22401
- if (level === 0) {
22402
- return false;
22403
- }
22404
- return {
22405
- level,
22406
- hasBasic: true,
22407
- has256: level >= 2,
22408
- has16m: level >= 3
22409
- };
22420
+ }
22421
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
22422
+ return 1;
22423
+ }
22424
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
22425
+ return 0;
22426
+ }
22427
+ const min2 = forceColor || 0;
22428
+ if (env.TERM === "dumb") {
22429
+ return min2;
22430
+ }
22431
+ if (import_node_process.default.platform === "win32") {
22432
+ const osRelease = import_node_os.default.release().split(".");
22433
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
22434
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
22410
22435
  }
22411
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
22412
- const noFlagForceColor = envForceColor();
22413
- if (noFlagForceColor !== void 0) {
22414
- flagForceColor = noFlagForceColor;
22415
- }
22416
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
22417
- if (forceColor === 0) {
22418
- return 0;
22419
- }
22420
- if (sniffFlags) {
22421
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
22422
- return 3;
22423
- }
22424
- if (hasFlag("color=256")) {
22425
- return 2;
22426
- }
22427
- }
22428
- if (haveStream && !streamIsTTY && forceColor === void 0) {
22429
- return 0;
22430
- }
22431
- const min2 = forceColor || 0;
22432
- if (env.TERM === "dumb") {
22433
- return min2;
22434
- }
22435
- if (process.platform === "win32") {
22436
- const osRelease = os4.release().split(".");
22437
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
22438
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
22439
- }
22440
- return 1;
22441
- }
22442
- if ("CI" in env) {
22443
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
22444
- return 1;
22445
- }
22446
- return min2;
22447
- }
22448
- if ("TEAMCITY_VERSION" in env) {
22449
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
22450
- }
22451
- if (env.COLORTERM === "truecolor") {
22452
- return 3;
22453
- }
22454
- if ("TERM_PROGRAM" in env) {
22455
- const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
22456
- switch (env.TERM_PROGRAM) {
22457
- case "iTerm.app":
22458
- return version5 >= 3 ? 3 : 2;
22459
- case "Apple_Terminal":
22460
- return 2;
22461
- }
22436
+ return 1;
22437
+ }
22438
+ if ("CI" in env) {
22439
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
22440
+ return 3;
22441
+ }
22442
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
22443
+ return 1;
22444
+ }
22445
+ return min2;
22446
+ }
22447
+ if ("TEAMCITY_VERSION" in env) {
22448
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
22449
+ }
22450
+ if (env.COLORTERM === "truecolor") {
22451
+ return 3;
22452
+ }
22453
+ if (env.TERM === "xterm-kitty") {
22454
+ return 3;
22455
+ }
22456
+ if (env.TERM === "xterm-ghostty") {
22457
+ return 3;
22458
+ }
22459
+ if (env.TERM === "wezterm") {
22460
+ return 3;
22461
+ }
22462
+ if ("TERM_PROGRAM" in env) {
22463
+ const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
22464
+ switch (env.TERM_PROGRAM) {
22465
+ case "iTerm.app": {
22466
+ return version5 >= 3 ? 3 : 2;
22462
22467
  }
22463
- if (/-256(color)?$/i.test(env.TERM)) {
22468
+ case "Apple_Terminal": {
22464
22469
  return 2;
22465
22470
  }
22466
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
22467
- return 1;
22468
- }
22469
- if ("COLORTERM" in env) {
22470
- return 1;
22471
- }
22472
- return min2;
22473
22471
  }
22474
- function getSupportLevel(stream, options = {}) {
22475
- const level = supportsColor(stream, {
22476
- streamIsTTY: stream && stream.isTTY,
22477
- ...options
22478
- });
22479
- return translateLevel(level);
22472
+ }
22473
+ if (/-256(color)?$/i.test(env.TERM)) {
22474
+ return 2;
22475
+ }
22476
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
22477
+ return 1;
22478
+ }
22479
+ if ("COLORTERM" in env) {
22480
+ return 1;
22481
+ }
22482
+ return min2;
22483
+ }
22484
+ function createSupportsColor(stream, options = {}) {
22485
+ const level = _supportsColor(stream, {
22486
+ streamIsTTY: stream && stream.isTTY,
22487
+ ...options
22488
+ });
22489
+ return translateLevel(level);
22490
+ }
22491
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
22492
+ var init_supports_color = __esm({
22493
+ "../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
22494
+ "use strict";
22495
+ import_node_process = __toESM(require("node:process"), 1);
22496
+ import_node_os = __toESM(require("node:os"), 1);
22497
+ import_node_tty = __toESM(require("node:tty"), 1);
22498
+ ({ env } = import_node_process.default);
22499
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
22500
+ flagForceColor = 0;
22501
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
22502
+ flagForceColor = 1;
22480
22503
  }
22481
- module2.exports = {
22482
- supportsColor: getSupportLevel,
22483
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
22484
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
22504
+ supportsColor = {
22505
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
22506
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
22485
22507
  };
22508
+ supports_color_default = supportsColor;
22486
22509
  }
22487
22510
  });
22488
22511
 
22489
- // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
22512
+ // ../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js
22490
22513
  var require_node = __commonJS({
22491
- "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports2, module2) {
22514
+ "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports2, module2) {
22492
22515
  "use strict";
22493
- var tty = require("tty");
22516
+ var tty2 = require("tty");
22494
22517
  var util2 = require("util");
22495
22518
  exports2.init = init3;
22496
22519
  exports2.log = log4;
@@ -22505,8 +22528,8 @@ var require_node = __commonJS({
22505
22528
  );
22506
22529
  exports2.colors = [6, 2, 3, 4, 5, 1];
22507
22530
  try {
22508
- const supportsColor = require_supports_color();
22509
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
22531
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
22532
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
22510
22533
  exports2.colors = [
22511
22534
  20,
22512
22535
  21,
@@ -22608,7 +22631,7 @@ var require_node = __commonJS({
22608
22631
  return obj;
22609
22632
  }, {});
22610
22633
  function useColors() {
22611
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
22634
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
22612
22635
  }
22613
22636
  function formatArgs(args) {
22614
22637
  const { namespace: name6, useColors: useColors2 } = this;
@@ -22661,9 +22684,9 @@ var require_node = __commonJS({
22661
22684
  }
22662
22685
  });
22663
22686
 
22664
- // ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
22687
+ // ../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js
22665
22688
  var require_src2 = __commonJS({
22666
- "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports2, module2) {
22689
+ "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports2, module2) {
22667
22690
  "use strict";
22668
22691
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
22669
22692
  module2.exports = require_browser();
@@ -28696,13 +28719,13 @@ function getHeaderName() {
28696
28719
  }
28697
28720
  function setPlatformSpecificData(map2) {
28698
28721
  map2.set("Node", process.version);
28699
- map2.set("OS", `(${os2.arch()}-${os2.type()}-${os2.release()})`);
28722
+ map2.set("OS", `(${os3.arch()}-${os3.type()}-${os3.release()})`);
28700
28723
  }
28701
- var os2;
28724
+ var os3;
28702
28725
  var init_userAgentPlatform = __esm({
28703
28726
  "../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/util/userAgentPlatform.js"() {
28704
28727
  "use strict";
28705
- os2 = __toESM(require("os"));
28728
+ os3 = __toESM(require("os"));
28706
28729
  }
28707
28730
  });
28708
28731
 
@@ -38023,12 +38046,12 @@ var require_mime_types = __commonJS({
38023
38046
  if (!type2 || typeof type2 !== "string") {
38024
38047
  return false;
38025
38048
  }
38026
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
38027
- var mime = match && db[match[1].toLowerCase()];
38049
+ var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
38050
+ var mime = match2 && db[match2[1].toLowerCase()];
38028
38051
  if (mime && mime.charset) {
38029
38052
  return mime.charset;
38030
38053
  }
38031
- if (match && TEXT_TYPE_REGEXP.test(match[1])) {
38054
+ if (match2 && TEXT_TYPE_REGEXP.test(match2[1])) {
38032
38055
  return "UTF-8";
38033
38056
  }
38034
38057
  return false;
@@ -38051,8 +38074,8 @@ var require_mime_types = __commonJS({
38051
38074
  if (!type2 || typeof type2 !== "string") {
38052
38075
  return false;
38053
38076
  }
38054
- var match = EXTRACT_TYPE_REGEXP.exec(type2);
38055
- var exts = match && exports2.extensions[match[1].toLowerCase()];
38077
+ var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
38078
+ var exts = match2 && exports2.extensions[match2[1].toLowerCase()];
38056
38079
  if (!exts || !exts.length) {
38057
38080
  return false;
38058
38081
  }
@@ -39023,8 +39046,8 @@ var require_get_intrinsic = __commonJS({
39023
39046
  throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
39024
39047
  }
39025
39048
  var result = [];
39026
- $replace(string4, rePropName, function(match, number4, quote, subString) {
39027
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match;
39049
+ $replace(string4, rePropName, function(match2, number4, quote, subString) {
39050
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match2;
39028
39051
  });
39029
39052
  return result;
39030
39053
  };
@@ -39158,9 +39181,9 @@ var require_es_set_tostringtag = __commonJS({
39158
39181
  }
39159
39182
  });
39160
39183
 
39161
- // ../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js
39184
+ // ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js
39162
39185
  var require_populate = __commonJS({
39163
- "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js"(exports2, module2) {
39186
+ "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports2, module2) {
39164
39187
  "use strict";
39165
39188
  module2.exports = function(dst, src) {
39166
39189
  Object.keys(src).forEach(function(prop) {
@@ -39171,9 +39194,9 @@ var require_populate = __commonJS({
39171
39194
  }
39172
39195
  });
39173
39196
 
39174
- // ../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js
39197
+ // ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js
39175
39198
  var require_form_data = __commonJS({
39176
- "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js"(exports2, module2) {
39199
+ "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports2, module2) {
39177
39200
  "use strict";
39178
39201
  var CombinedStream = require_combined_stream();
39179
39202
  var util2 = require("util");
@@ -39183,12 +39206,12 @@ var require_form_data = __commonJS({
39183
39206
  var parseUrl = require("url").parse;
39184
39207
  var fs3 = require("fs");
39185
39208
  var Stream = require("stream").Stream;
39209
+ var crypto7 = require("crypto");
39186
39210
  var mime = require_mime_types();
39187
39211
  var asynckit = require_asynckit();
39188
39212
  var setToStringTag = require_es_set_tostringtag();
39213
+ var hasOwn = require_hasown();
39189
39214
  var populate = require_populate();
39190
- module2.exports = FormData2;
39191
- util2.inherits(FormData2, CombinedStream);
39192
39215
  function FormData2(options) {
39193
39216
  if (!(this instanceof FormData2)) {
39194
39217
  return new FormData2(options);
@@ -39202,16 +39225,17 @@ var require_form_data = __commonJS({
39202
39225
  this[option] = options[option];
39203
39226
  }
39204
39227
  }
39228
+ util2.inherits(FormData2, CombinedStream);
39205
39229
  FormData2.LINE_BREAK = "\r\n";
39206
39230
  FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
39207
39231
  FormData2.prototype.append = function(field, value, options) {
39208
39232
  options = options || {};
39209
- if (typeof options == "string") {
39233
+ if (typeof options === "string") {
39210
39234
  options = { filename: options };
39211
39235
  }
39212
39236
  var append = CombinedStream.prototype.append.bind(this);
39213
- if (typeof value == "number") {
39214
- value = "" + value;
39237
+ if (typeof value === "number" || value == null) {
39238
+ value = String(value);
39215
39239
  }
39216
39240
  if (Array.isArray(value)) {
39217
39241
  this._error(new Error("Arrays are not supported."));
@@ -39227,7 +39251,7 @@ var require_form_data = __commonJS({
39227
39251
  FormData2.prototype._trackLength = function(header, value, options) {
39228
39252
  var valueLength = 0;
39229
39253
  if (options.knownLength != null) {
39230
- valueLength += +options.knownLength;
39254
+ valueLength += Number(options.knownLength);
39231
39255
  } else if (Buffer.isBuffer(value)) {
39232
39256
  valueLength = value.length;
39233
39257
  } else if (typeof value === "string") {
@@ -39235,7 +39259,7 @@ var require_form_data = __commonJS({
39235
39259
  }
39236
39260
  this._valueLength += valueLength;
39237
39261
  this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
39238
- if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
39262
+ if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
39239
39263
  return;
39240
39264
  }
39241
39265
  if (!options.knownLength) {
@@ -39243,26 +39267,25 @@ var require_form_data = __commonJS({
39243
39267
  }
39244
39268
  };
39245
39269
  FormData2.prototype._lengthRetriever = function(value, callback) {
39246
- if (Object.prototype.hasOwnProperty.call(value, "fd")) {
39270
+ if (hasOwn(value, "fd")) {
39247
39271
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
39248
39272
  callback(null, value.end + 1 - (value.start ? value.start : 0));
39249
39273
  } else {
39250
39274
  fs3.stat(value.path, function(err, stat) {
39251
- var fileSize;
39252
39275
  if (err) {
39253
39276
  callback(err);
39254
39277
  return;
39255
39278
  }
39256
- fileSize = stat.size - (value.start ? value.start : 0);
39279
+ var fileSize = stat.size - (value.start ? value.start : 0);
39257
39280
  callback(null, fileSize);
39258
39281
  });
39259
39282
  }
39260
- } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39261
- callback(null, +value.headers["content-length"]);
39262
- } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
39283
+ } else if (hasOwn(value, "httpVersion")) {
39284
+ callback(null, Number(value.headers["content-length"]));
39285
+ } else if (hasOwn(value, "httpModule")) {
39263
39286
  value.on("response", function(response) {
39264
39287
  value.pause();
39265
- callback(null, +response.headers["content-length"]);
39288
+ callback(null, Number(response.headers["content-length"]));
39266
39289
  });
39267
39290
  value.resume();
39268
39291
  } else {
@@ -39270,7 +39293,7 @@ var require_form_data = __commonJS({
39270
39293
  }
39271
39294
  };
39272
39295
  FormData2.prototype._multiPartHeader = function(field, value, options) {
39273
- if (typeof options.header == "string") {
39296
+ if (typeof options.header === "string") {
39274
39297
  return options.header;
39275
39298
  }
39276
39299
  var contentDisposition = this._getContentDisposition(value, options);
@@ -39282,12 +39305,12 @@ var require_form_data = __commonJS({
39282
39305
  // if no content type. allow it to be empty array
39283
39306
  "Content-Type": [].concat(contentType || [])
39284
39307
  };
39285
- if (typeof options.header == "object") {
39308
+ if (typeof options.header === "object") {
39286
39309
  populate(headers, options.header);
39287
39310
  }
39288
39311
  var header;
39289
39312
  for (var prop in headers) {
39290
- if (Object.prototype.hasOwnProperty.call(headers, prop)) {
39313
+ if (hasOwn(headers, prop)) {
39291
39314
  header = headers[prop];
39292
39315
  if (header == null) {
39293
39316
  continue;
@@ -39303,34 +39326,33 @@ var require_form_data = __commonJS({
39303
39326
  return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
39304
39327
  };
39305
39328
  FormData2.prototype._getContentDisposition = function(value, options) {
39306
- var filename, contentDisposition;
39329
+ var filename;
39307
39330
  if (typeof options.filepath === "string") {
39308
39331
  filename = path3.normalize(options.filepath).replace(/\\/g, "/");
39309
- } else if (options.filename || value.name || value.path) {
39310
- filename = path3.basename(options.filename || value.name || value.path);
39311
- } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39332
+ } else if (options.filename || value && (value.name || value.path)) {
39333
+ filename = path3.basename(options.filename || value && (value.name || value.path));
39334
+ } else if (value && value.readable && hasOwn(value, "httpVersion")) {
39312
39335
  filename = path3.basename(value.client._httpMessage.path || "");
39313
39336
  }
39314
39337
  if (filename) {
39315
- contentDisposition = 'filename="' + filename + '"';
39338
+ return 'filename="' + filename + '"';
39316
39339
  }
39317
- return contentDisposition;
39318
39340
  };
39319
39341
  FormData2.prototype._getContentType = function(value, options) {
39320
39342
  var contentType = options.contentType;
39321
- if (!contentType && value.name) {
39343
+ if (!contentType && value && value.name) {
39322
39344
  contentType = mime.lookup(value.name);
39323
39345
  }
39324
- if (!contentType && value.path) {
39346
+ if (!contentType && value && value.path) {
39325
39347
  contentType = mime.lookup(value.path);
39326
39348
  }
39327
- if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39349
+ if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
39328
39350
  contentType = value.headers["content-type"];
39329
39351
  }
39330
39352
  if (!contentType && (options.filepath || options.filename)) {
39331
39353
  contentType = mime.lookup(options.filepath || options.filename);
39332
39354
  }
39333
- if (!contentType && typeof value == "object") {
39355
+ if (!contentType && value && typeof value === "object") {
39334
39356
  contentType = FormData2.DEFAULT_CONTENT_TYPE;
39335
39357
  }
39336
39358
  return contentType;
@@ -39354,13 +39376,16 @@ var require_form_data = __commonJS({
39354
39376
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
39355
39377
  };
39356
39378
  for (header in userHeaders) {
39357
- if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
39379
+ if (hasOwn(userHeaders, header)) {
39358
39380
  formHeaders[header.toLowerCase()] = userHeaders[header];
39359
39381
  }
39360
39382
  }
39361
39383
  return formHeaders;
39362
39384
  };
39363
39385
  FormData2.prototype.setBoundary = function(boundary) {
39386
+ if (typeof boundary !== "string") {
39387
+ throw new TypeError("FormData boundary must be a string");
39388
+ }
39364
39389
  this._boundary = boundary;
39365
39390
  };
39366
39391
  FormData2.prototype.getBoundary = function() {
@@ -39387,11 +39412,7 @@ var require_form_data = __commonJS({
39387
39412
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
39388
39413
  };
39389
39414
  FormData2.prototype._generateBoundary = function() {
39390
- var boundary = "--------------------------";
39391
- for (var i2 = 0; i2 < 24; i2++) {
39392
- boundary += Math.floor(Math.random() * 10).toString(16);
39393
- }
39394
- this._boundary = boundary;
39415
+ this._boundary = "--------------------------" + crypto7.randomBytes(12).toString("hex");
39395
39416
  };
39396
39417
  FormData2.prototype.getLengthSync = function() {
39397
39418
  var knownLength = this._overheadLength + this._valueLength;
@@ -39431,8 +39452,10 @@ var require_form_data = __commonJS({
39431
39452
  });
39432
39453
  };
39433
39454
  FormData2.prototype.submit = function(params, cb) {
39434
- var request3, options, defaults2 = { method: "post" };
39435
- if (typeof params == "string") {
39455
+ var request3;
39456
+ var options;
39457
+ var defaults2 = { method: "post" };
39458
+ if (typeof params === "string") {
39436
39459
  params = parseUrl(params);
39437
39460
  options = populate({
39438
39461
  port: params.port,
@@ -39443,11 +39466,11 @@ var require_form_data = __commonJS({
39443
39466
  } else {
39444
39467
  options = populate(params, defaults2);
39445
39468
  if (!options.port) {
39446
- options.port = options.protocol == "https:" ? 443 : 80;
39469
+ options.port = options.protocol === "https:" ? 443 : 80;
39447
39470
  }
39448
39471
  }
39449
39472
  options.headers = this.getHeaders(params.headers);
39450
- if (options.protocol == "https:") {
39473
+ if (options.protocol === "https:") {
39451
39474
  request3 = https4.request(options);
39452
39475
  } else {
39453
39476
  request3 = http4.request(options);
@@ -39485,7 +39508,8 @@ var require_form_data = __commonJS({
39485
39508
  FormData2.prototype.toString = function() {
39486
39509
  return "[object FormData]";
39487
39510
  };
39488
- setToStringTag(FormData2, "FormData");
39511
+ setToStringTag(FormData2.prototype, "FormData");
39512
+ module2.exports = FormData2;
39489
39513
  }
39490
39514
  });
39491
39515
 
@@ -39565,7 +39589,7 @@ var init_formDataPolicy = __esm({
39565
39589
  var require_common2 = __commonJS({
39566
39590
  "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports2, module2) {
39567
39591
  "use strict";
39568
- function setup(env) {
39592
+ function setup(env2) {
39569
39593
  createDebug.debug = createDebug;
39570
39594
  createDebug.default = createDebug;
39571
39595
  createDebug.coerce = coerce;
@@ -39574,8 +39598,8 @@ var require_common2 = __commonJS({
39574
39598
  createDebug.enabled = enabled2;
39575
39599
  createDebug.humanize = require_ms();
39576
39600
  createDebug.destroy = destroy2;
39577
- Object.keys(env).forEach((key) => {
39578
- createDebug[key] = env[key];
39601
+ Object.keys(env2).forEach((key) => {
39602
+ createDebug[key] = env2[key];
39579
39603
  });
39580
39604
  createDebug.names = [];
39581
39605
  createDebug.skips = [];
@@ -39610,19 +39634,19 @@ var require_common2 = __commonJS({
39610
39634
  args.unshift("%O");
39611
39635
  }
39612
39636
  let index = 0;
39613
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
39614
- if (match === "%%") {
39637
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
39638
+ if (match2 === "%%") {
39615
39639
  return "%";
39616
39640
  }
39617
39641
  index++;
39618
39642
  const formatter = createDebug.formatters[format];
39619
39643
  if (typeof formatter === "function") {
39620
39644
  const val = args[index];
39621
- match = formatter.call(self2, val);
39645
+ match2 = formatter.call(self2, val);
39622
39646
  args.splice(index, 1);
39623
39647
  index--;
39624
39648
  }
39625
- return match;
39649
+ return match2;
39626
39650
  });
39627
39651
  createDebug.formatArgs.call(self2, args);
39628
39652
  const logFn = self2.log || createDebug.log;
@@ -39858,12 +39882,12 @@ var require_browser2 = __commonJS({
39858
39882
  args.splice(1, 0, c2, "color: inherit");
39859
39883
  let index = 0;
39860
39884
  let lastC = 0;
39861
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
39862
- if (match === "%%") {
39885
+ args[0].replace(/%[a-zA-Z%]/g, (match2) => {
39886
+ if (match2 === "%%") {
39863
39887
  return;
39864
39888
  }
39865
39889
  index++;
39866
- if (match === "%c") {
39890
+ if (match2 === "%c") {
39867
39891
  lastC = index;
39868
39892
  }
39869
39893
  });
@@ -39914,7 +39938,7 @@ var require_browser2 = __commonJS({
39914
39938
  var require_node2 = __commonJS({
39915
39939
  "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports2, module2) {
39916
39940
  "use strict";
39917
- var tty = require("tty");
39941
+ var tty2 = require("tty");
39918
39942
  var util2 = require("util");
39919
39943
  exports2.init = init3;
39920
39944
  exports2.log = log4;
@@ -39929,8 +39953,8 @@ var require_node2 = __commonJS({
39929
39953
  );
39930
39954
  exports2.colors = [6, 2, 3, 4, 5, 1];
39931
39955
  try {
39932
- const supportsColor = require_supports_color();
39933
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
39956
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
39957
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
39934
39958
  exports2.colors = [
39935
39959
  20,
39936
39960
  21,
@@ -40032,7 +40056,7 @@ var require_node2 = __commonJS({
40032
40056
  return obj;
40033
40057
  }, {});
40034
40058
  function useColors() {
40035
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
40059
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
40036
40060
  }
40037
40061
  function formatArgs(args) {
40038
40062
  const { namespace: name6, useColors: useColors2 } = this;
@@ -44625,15 +44649,15 @@ var init_UrlString = __esm({
44625
44649
  */
44626
44650
  getUrlComponents() {
44627
44651
  const regEx = RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");
44628
- const match = this.urlString.match(regEx);
44629
- if (!match) {
44652
+ const match2 = this.urlString.match(regEx);
44653
+ if (!match2) {
44630
44654
  throw createClientConfigurationError(urlParseError);
44631
44655
  }
44632
44656
  const urlComponents = {
44633
- Protocol: match[1],
44634
- HostNameAndPort: match[4],
44635
- AbsolutePath: match[5],
44636
- QueryString: match[7]
44657
+ Protocol: match2[1],
44658
+ HostNameAndPort: match2[4],
44659
+ AbsolutePath: match2[5],
44660
+ QueryString: match2[7]
44637
44661
  };
44638
44662
  let pathSegments = urlComponents.AbsolutePath.split("/");
44639
44663
  pathSegments = pathSegments.filter((val) => val && val.length > 0);
@@ -44645,11 +44669,11 @@ var init_UrlString = __esm({
44645
44669
  }
44646
44670
  static getDomainFromUrl(url2) {
44647
44671
  const regEx = RegExp("^([^:/?#]+://)?([^/?#]*)");
44648
- const match = url2.match(regEx);
44649
- if (!match) {
44672
+ const match2 = url2.match(regEx);
44673
+ if (!match2) {
44650
44674
  throw createClientConfigurationError(urlParseError);
44651
44675
  }
44652
- return match[2];
44676
+ return match2[2];
44653
44677
  }
44654
44678
  static getAbsoluteUrl(relativeUrl, baseUrl) {
44655
44679
  if (relativeUrl[0] === Constants.FORWARD_SLASH) {
@@ -46263,7 +46287,7 @@ var init_Authority = __esm({
46263
46287
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
46264
46288
  const instanceDiscoveryEndpoint = `${Constants.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;
46265
46289
  const options = {};
46266
- let match = null;
46290
+ let match2 = null;
46267
46291
  try {
46268
46292
  const response = await this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options);
46269
46293
  let typedResponseBody;
@@ -46288,7 +46312,7 @@ var init_Authority = __esm({
46288
46312
  return null;
46289
46313
  }
46290
46314
  this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
46291
- match = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
46315
+ match2 = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
46292
46316
  } catch (error44) {
46293
46317
  if (error44 instanceof AuthError) {
46294
46318
  this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
@@ -46302,12 +46326,12 @@ Error Description: ${typedError.message}`);
46302
46326
  }
46303
46327
  return null;
46304
46328
  }
46305
- if (!match) {
46329
+ if (!match2) {
46306
46330
  this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
46307
46331
  this.logger.verbose("Creating custom Authority for custom domain scenario.");
46308
- match = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
46332
+ match2 = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
46309
46333
  }
46310
- return match;
46334
+ return match2;
46311
46335
  }
46312
46336
  /**
46313
46337
  * Helper function to determine if this host is included in the knownAuthorities config option
@@ -47194,11 +47218,11 @@ var init_AccountEntity = __esm({
47194
47218
  account.clientInfo = accountDetails.clientInfo;
47195
47219
  account.homeAccountId = accountDetails.homeAccountId;
47196
47220
  account.nativeAccountId = accountDetails.nativeAccountId;
47197
- const env = accountDetails.environment || authority && authority.getPreferredCache();
47198
- if (!env) {
47221
+ const env2 = accountDetails.environment || authority && authority.getPreferredCache();
47222
+ if (!env2) {
47199
47223
  throw createClientAuthError(invalidCacheEnvironment);
47200
47224
  }
47201
- account.environment = env;
47225
+ account.environment = env2;
47202
47226
  account.realm = clientInfo?.utid || getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) || "";
47203
47227
  account.localAccountId = clientInfo?.uid || accountDetails.idTokenClaims.oid || accountDetails.idTokenClaims.sub || "";
47204
47228
  const preferredUsername = accountDetails.idTokenClaims.preferred_username || accountDetails.idTokenClaims.upn;
@@ -49724,15 +49748,15 @@ ${serverError}`);
49724
49748
  * @param authority
49725
49749
  */
49726
49750
  generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request3, idTokenClaims, userAssertionHash, authCodePayload) {
49727
- const env = authority.getPreferredCache();
49728
- if (!env) {
49751
+ const env2 = authority.getPreferredCache();
49752
+ if (!env2) {
49729
49753
  throw createClientAuthError(invalidCacheEnvironment);
49730
49754
  }
49731
49755
  const claimsTenantId = getTenantIdFromIdTokenClaims(idTokenClaims);
49732
49756
  let cachedIdToken;
49733
49757
  let cachedAccount;
49734
49758
  if (serverTokenResponse.id_token && !!idTokenClaims) {
49735
- cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
49759
+ cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
49736
49760
  cachedAccount = buildAccountToCache(
49737
49761
  this.cacheStorage,
49738
49762
  authority,
@@ -49740,7 +49764,7 @@ ${serverError}`);
49740
49764
  idTokenClaims,
49741
49765
  this.cryptoObj.base64Decode,
49742
49766
  serverTokenResponse.client_info,
49743
- env,
49767
+ env2,
49744
49768
  claimsTenantId,
49745
49769
  authCodePayload,
49746
49770
  void 0,
@@ -49757,7 +49781,7 @@ ${serverError}`);
49757
49781
  const tokenExpirationSeconds = reqTimestamp + expiresIn;
49758
49782
  const extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn;
49759
49783
  const refreshOnSeconds = refreshIn && refreshIn > 0 ? reqTimestamp + refreshIn : void 0;
49760
- cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.access_token, this.clientId, claimsTenantId || authority.tenant || "", responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj.base64Decode, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request3.claims, request3.requestedClaimsHash);
49784
+ cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.access_token, this.clientId, claimsTenantId || authority.tenant || "", responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj.base64Decode, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request3.claims, request3.requestedClaimsHash);
49761
49785
  }
49762
49786
  let cachedRefreshToken = null;
49763
49787
  if (serverTokenResponse.refresh_token) {
@@ -49766,13 +49790,13 @@ ${serverError}`);
49766
49790
  const rtExpiresIn = typeof serverTokenResponse.refresh_token_expires_in === "string" ? parseInt(serverTokenResponse.refresh_token_expires_in, 10) : serverTokenResponse.refresh_token_expires_in;
49767
49791
  rtExpiresOn = reqTimestamp + rtExpiresIn;
49768
49792
  }
49769
- cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
49793
+ cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
49770
49794
  }
49771
49795
  let cachedAppMetadata = null;
49772
49796
  if (serverTokenResponse.foci) {
49773
49797
  cachedAppMetadata = {
49774
49798
  clientId: this.clientId,
49775
- environment: env,
49799
+ environment: env2,
49776
49800
  familyId: serverTokenResponse.foci
49777
49801
  };
49778
49802
  }
@@ -52990,11 +53014,11 @@ var require_jwa = __commonJS({
52990
53014
  es: createECDSAVerifer,
52991
53015
  none: createNoneVerifier
52992
53016
  };
52993
- var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
52994
- if (!match)
53017
+ var match2 = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
53018
+ if (!match2)
52995
53019
  throw typeError(MSG_INVALID_ALGORITHM, algorithm);
52996
- var algo = (match[1] || match[3]).toLowerCase();
52997
- var bits = match[2];
53020
+ var algo = (match2[1] || match2[3]).toLowerCase();
53021
+ var bits = match2[2];
52998
53022
  return {
52999
53023
  sign: signerFactories[algo](bits),
53000
53024
  verify: verifierFactories[algo](bits)
@@ -53660,8 +53684,8 @@ var require_semver = __commonJS({
53660
53684
  throw new Error("invalid increment argument: identifier is empty");
53661
53685
  }
53662
53686
  if (identifier) {
53663
- const match = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
53664
- if (!match || match[1] !== identifier) {
53687
+ const match2 = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
53688
+ if (!match2 || match2[1] !== identifier) {
53665
53689
  throw new Error(`invalid identifier: ${identifier}`);
53666
53690
  }
53667
53691
  }
@@ -54121,28 +54145,28 @@ var require_coerce = __commonJS({
54121
54145
  return null;
54122
54146
  }
54123
54147
  options = options || {};
54124
- let match = null;
54148
+ let match2 = null;
54125
54149
  if (!options.rtl) {
54126
- match = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
54150
+ match2 = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
54127
54151
  } else {
54128
54152
  const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
54129
54153
  let next;
54130
- while ((next = coerceRtlRegex.exec(version5)) && (!match || match.index + match[0].length !== version5.length)) {
54131
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
54132
- match = next;
54154
+ while ((next = coerceRtlRegex.exec(version5)) && (!match2 || match2.index + match2[0].length !== version5.length)) {
54155
+ if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
54156
+ match2 = next;
54133
54157
  }
54134
54158
  coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
54135
54159
  }
54136
54160
  coerceRtlRegex.lastIndex = -1;
54137
54161
  }
54138
- if (match === null) {
54162
+ if (match2 === null) {
54139
54163
  return null;
54140
54164
  }
54141
- const major2 = match[2];
54142
- const minor = match[3] || "0";
54143
- const patch = match[4] || "0";
54144
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
54145
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
54165
+ const major2 = match2[2];
54166
+ const minor = match2[3] || "0";
54167
+ const patch = match2[4] || "0";
54168
+ const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
54169
+ const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
54146
54170
  return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
54147
54171
  };
54148
54172
  module2.exports = coerce;
@@ -55487,12 +55511,12 @@ var require_verify = __commonJS({
55487
55511
  if (options.audience) {
55488
55512
  const audiences = Array.isArray(options.audience) ? options.audience : [options.audience];
55489
55513
  const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud];
55490
- const match = target.some(function(targetAudience) {
55514
+ const match2 = target.some(function(targetAudience) {
55491
55515
  return audiences.some(function(audience) {
55492
55516
  return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience;
55493
55517
  });
55494
55518
  });
55495
- if (!match) {
55519
+ if (!match2) {
55496
55520
  return done(new JsonWebTokenError("jwt audience invalid. expected: " + audiences.join(" or ")));
55497
55521
  }
55498
55522
  }
@@ -58530,8 +58554,8 @@ var init_appServiceMsi2017 = __esm({
58530
58554
  logger5.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
58531
58555
  return false;
58532
58556
  }
58533
- const env = process.env;
58534
- const result = Boolean(env.MSI_ENDPOINT && env.MSI_SECRET);
58557
+ const env2 = process.env;
58558
+ const result = Boolean(env2.MSI_ENDPOINT && env2.MSI_SECRET);
58535
58559
  if (!result) {
58536
58560
  logger5.info(`${msiName}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.`);
58537
58561
  }
@@ -58603,8 +58627,8 @@ var init_appServiceMsi2019 = __esm({
58603
58627
  logger6.info(`${msiName2}: Unavailable. Multiple scopes are not supported.`);
58604
58628
  return false;
58605
58629
  }
58606
- const env = process.env;
58607
- const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER);
58630
+ const env2 = process.env;
58631
+ const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER);
58608
58632
  if (!result) {
58609
58633
  logger6.info(`${msiName2}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.`);
58610
58634
  }
@@ -58875,8 +58899,8 @@ var init_fabricMsi = __esm({
58875
58899
  logger9.info(`${msiName5}: Unavailable. Multiple scopes are not supported.`);
58876
58900
  return false;
58877
58901
  }
58878
- const env = process.env;
58879
- const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER && env.IDENTITY_SERVER_THUMBPRINT);
58902
+ const env2 = process.env;
58903
+ const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER && env2.IDENTITY_SERVER_THUMBPRINT);
58880
58904
  if (!result) {
58881
58905
  logger9.info(`${msiName5}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT`);
58882
58906
  }
@@ -59676,8 +59700,8 @@ function tokenExchangeMsi() {
59676
59700
  return {
59677
59701
  name: "tokenExchangeMsi",
59678
59702
  async isAvailable({ clientId }) {
59679
- const env = process.env;
59680
- const result = Boolean((clientId || env.AZURE_CLIENT_ID) && env.AZURE_TENANT_ID && process.env.AZURE_FEDERATED_TOKEN_FILE);
59703
+ const env2 = process.env;
59704
+ const result = Boolean((clientId || env2.AZURE_CLIENT_ID) && env2.AZURE_TENANT_ID && process.env.AZURE_FEDERATED_TOKEN_FILE);
59681
59705
  if (!result) {
59682
59706
  logger14.info(`${msiName7}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`);
59683
59707
  }
@@ -60621,13 +60645,13 @@ var init_clientCertificateCredential = __esm({
60621
60645
  const x5c = this.sendCertificateChain ? certificateContents : void 0;
60622
60646
  const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
60623
60647
  const publicKeys = [];
60624
- let match;
60648
+ let match2;
60625
60649
  do {
60626
- match = certificatePattern.exec(certificateContents);
60627
- if (match) {
60628
- publicKeys.push(match[3]);
60650
+ match2 = certificatePattern.exec(certificateContents);
60651
+ if (match2) {
60652
+ publicKeys.push(match2[3]);
60629
60653
  }
60630
- } while (match);
60654
+ } while (match2);
60631
60655
  if (publicKeys.length === 0) {
60632
60656
  throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
60633
60657
  }
@@ -61282,14 +61306,14 @@ var require_is_docker = __commonJS({
61282
61306
  var require_is_wsl = __commonJS({
61283
61307
  "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module2) {
61284
61308
  "use strict";
61285
- var os4 = require("os");
61309
+ var os5 = require("os");
61286
61310
  var fs3 = require("fs");
61287
61311
  var isDocker = require_is_docker();
61288
61312
  var isWsl = () => {
61289
61313
  if (process.platform !== "linux") {
61290
61314
  return false;
61291
61315
  }
61292
- if (os4.release().toLowerCase().includes("microsoft")) {
61316
+ if (os5.release().toLowerCase().includes("microsoft")) {
61293
61317
  if (isDocker()) {
61294
61318
  return false;
61295
61319
  }
@@ -62041,13 +62065,13 @@ async function parseCertificate(configuration, sendCertificateChain) {
62041
62065
  }
62042
62066
  const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
62043
62067
  const publicKeys = [];
62044
- let match;
62068
+ let match2;
62045
62069
  do {
62046
- match = certificatePattern.exec(certificateParts.certificateContents);
62047
- if (match) {
62048
- publicKeys.push(match[3]);
62070
+ match2 = certificatePattern.exec(certificateParts.certificateContents);
62071
+ if (match2) {
62072
+ publicKeys.push(match2[3]);
62049
62073
  }
62050
- } while (match);
62074
+ } while (match2);
62051
62075
  if (publicKeys.length === 0) {
62052
62076
  throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
62053
62077
  }
@@ -62768,16 +62792,16 @@ var require_sprintf = __commonJS({
62768
62792
  if (sprintf_cache[fmt]) {
62769
62793
  return sprintf_cache[fmt];
62770
62794
  }
62771
- var _fmt = fmt, match, parse_tree = [], arg_names = 0;
62795
+ var _fmt = fmt, match2, parse_tree = [], arg_names = 0;
62772
62796
  while (_fmt) {
62773
- if ((match = re3.text.exec(_fmt)) !== null) {
62774
- parse_tree.push(match[0]);
62775
- } else if ((match = re3.modulo.exec(_fmt)) !== null) {
62797
+ if ((match2 = re3.text.exec(_fmt)) !== null) {
62798
+ parse_tree.push(match2[0]);
62799
+ } else if ((match2 = re3.modulo.exec(_fmt)) !== null) {
62776
62800
  parse_tree.push("%");
62777
- } else if ((match = re3.placeholder.exec(_fmt)) !== null) {
62778
- if (match[2]) {
62801
+ } else if ((match2 = re3.placeholder.exec(_fmt)) !== null) {
62802
+ if (match2[2]) {
62779
62803
  arg_names |= 1;
62780
- var field_list = [], replacement_field = match[2], field_match = [];
62804
+ var field_list = [], replacement_field = match2[2], field_match = [];
62781
62805
  if ((field_match = re3.key.exec(replacement_field)) !== null) {
62782
62806
  field_list.push(field_match[1]);
62783
62807
  while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
@@ -62792,7 +62816,7 @@ var require_sprintf = __commonJS({
62792
62816
  } else {
62793
62817
  throw new SyntaxError("[sprintf] failed to parse named argument key");
62794
62818
  }
62795
- match[2] = field_list;
62819
+ match2[2] = field_list;
62796
62820
  } else {
62797
62821
  arg_names |= 2;
62798
62822
  }
@@ -62801,21 +62825,21 @@ var require_sprintf = __commonJS({
62801
62825
  }
62802
62826
  parse_tree.push(
62803
62827
  {
62804
- placeholder: match[0],
62805
- param_no: match[1],
62806
- keys: match[2],
62807
- sign: match[3],
62808
- pad_char: match[4],
62809
- align: match[5],
62810
- width: match[6],
62811
- precision: match[7],
62812
- type: match[8]
62828
+ placeholder: match2[0],
62829
+ param_no: match2[1],
62830
+ keys: match2[2],
62831
+ sign: match2[3],
62832
+ pad_char: match2[4],
62833
+ align: match2[5],
62834
+ width: match2[6],
62835
+ precision: match2[7],
62836
+ type: match2[8]
62813
62837
  }
62814
62838
  );
62815
62839
  } else {
62816
62840
  throw new SyntaxError("[sprintf] unexpected placeholder");
62817
62841
  }
62818
- _fmt = _fmt.substring(match[0].length);
62842
+ _fmt = _fmt.substring(match2[0].length);
62819
62843
  }
62820
62844
  return sprintf_cache[fmt] = parse_tree;
62821
62845
  }
@@ -66434,7 +66458,7 @@ var require_utils5 = __commonJS({
66434
66458
  var require_end_of_stream = __commonJS({
66435
66459
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
66436
66460
  "use strict";
66437
- var process2 = require_process();
66461
+ var process3 = require_process();
66438
66462
  var { AbortError: AbortError3, codes } = require_errors3();
66439
66463
  var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
66440
66464
  var { kEmptyObject, once } = require_util();
@@ -66569,17 +66593,17 @@ var require_end_of_stream = __commonJS({
66569
66593
  }
66570
66594
  stream.on("close", onclose);
66571
66595
  if (closed) {
66572
- process2.nextTick(onclose);
66596
+ process3.nextTick(onclose);
66573
66597
  } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
66574
66598
  if (!willEmitClose) {
66575
- process2.nextTick(onclosed);
66599
+ process3.nextTick(onclosed);
66576
66600
  }
66577
66601
  } else if (!readable && (!willEmitClose || isReadable(stream)) && (writableFinished || isWritable(stream) === false)) {
66578
- process2.nextTick(onclosed);
66602
+ process3.nextTick(onclosed);
66579
66603
  } else if (!writable && (!willEmitClose || isWritable(stream)) && (readableFinished || isReadable(stream) === false)) {
66580
- process2.nextTick(onclosed);
66604
+ process3.nextTick(onclosed);
66581
66605
  } else if (rState && stream.req && stream.aborted) {
66582
- process2.nextTick(onclosed);
66606
+ process3.nextTick(onclosed);
66583
66607
  }
66584
66608
  const cleanup = () => {
66585
66609
  callback = nop;
@@ -66607,7 +66631,7 @@ var require_end_of_stream = __commonJS({
66607
66631
  );
66608
66632
  };
66609
66633
  if (options.signal.aborted) {
66610
- process2.nextTick(abort);
66634
+ process3.nextTick(abort);
66611
66635
  } else {
66612
66636
  const originalCallback = callback;
66613
66637
  callback = once((...args) => {
@@ -66633,7 +66657,7 @@ var require_end_of_stream = __commonJS({
66633
66657
  );
66634
66658
  };
66635
66659
  if (options.signal.aborted) {
66636
- process2.nextTick(abort);
66660
+ process3.nextTick(abort);
66637
66661
  } else {
66638
66662
  const originalCallback = callback;
66639
66663
  callback = once((...args) => {
@@ -66645,7 +66669,7 @@ var require_end_of_stream = __commonJS({
66645
66669
  }
66646
66670
  const resolverFn = (...args) => {
66647
66671
  if (!isAborted) {
66648
- process2.nextTick(() => callback.apply(stream, args));
66672
+ process3.nextTick(() => callback.apply(stream, args));
66649
66673
  }
66650
66674
  };
66651
66675
  PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn);
@@ -66683,7 +66707,7 @@ var require_end_of_stream = __commonJS({
66683
66707
  var require_destroy = __commonJS({
66684
66708
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
66685
66709
  "use strict";
66686
- var process2 = require_process();
66710
+ var process3 = require_process();
66687
66711
  var {
66688
66712
  aggregateTwoErrors,
66689
66713
  codes: { ERR_MULTIPLE_CALLBACK },
@@ -66750,9 +66774,9 @@ var require_destroy = __commonJS({
66750
66774
  cb(err2);
66751
66775
  }
66752
66776
  if (err2) {
66753
- process2.nextTick(emitErrorCloseNT, self2, err2);
66777
+ process3.nextTick(emitErrorCloseNT, self2, err2);
66754
66778
  } else {
66755
- process2.nextTick(emitCloseNT, self2);
66779
+ process3.nextTick(emitCloseNT, self2);
66756
66780
  }
66757
66781
  }
66758
66782
  try {
@@ -66837,7 +66861,7 @@ var require_destroy = __commonJS({
66837
66861
  r2.errored = err;
66838
66862
  }
66839
66863
  if (sync) {
66840
- process2.nextTick(emitErrorNT, stream, err);
66864
+ process3.nextTick(emitErrorNT, stream, err);
66841
66865
  } else {
66842
66866
  emitErrorNT(stream, err);
66843
66867
  }
@@ -66859,7 +66883,7 @@ var require_destroy = __commonJS({
66859
66883
  if (stream.listenerCount(kConstruct) > 1) {
66860
66884
  return;
66861
66885
  }
66862
- process2.nextTick(constructNT, stream);
66886
+ process3.nextTick(constructNT, stream);
66863
66887
  }
66864
66888
  function constructNT(stream) {
66865
66889
  let called = false;
@@ -66883,15 +66907,15 @@ var require_destroy = __commonJS({
66883
66907
  } else if (err) {
66884
66908
  errorOrDestroy(stream, err, true);
66885
66909
  } else {
66886
- process2.nextTick(emitConstructNT, stream);
66910
+ process3.nextTick(emitConstructNT, stream);
66887
66911
  }
66888
66912
  }
66889
66913
  try {
66890
66914
  stream._construct((err) => {
66891
- process2.nextTick(onConstruct, err);
66915
+ process3.nextTick(onConstruct, err);
66892
66916
  });
66893
66917
  } catch (err) {
66894
- process2.nextTick(onConstruct, err);
66918
+ process3.nextTick(onConstruct, err);
66895
66919
  }
66896
66920
  }
66897
66921
  function emitConstructNT(stream) {
@@ -66905,7 +66929,7 @@ var require_destroy = __commonJS({
66905
66929
  }
66906
66930
  function emitErrorCloseLegacy(stream, err) {
66907
66931
  stream.emit("error", err);
66908
- process2.nextTick(emitCloseLegacy, stream);
66932
+ process3.nextTick(emitCloseLegacy, stream);
66909
66933
  }
66910
66934
  function destroyer(stream, err) {
66911
66935
  if (!stream || isDestroyed(stream)) {
@@ -66926,9 +66950,9 @@ var require_destroy = __commonJS({
66926
66950
  } else if (typeof stream.close === "function") {
66927
66951
  stream.close();
66928
66952
  } else if (err) {
66929
- process2.nextTick(emitErrorCloseLegacy, stream, err);
66953
+ process3.nextTick(emitErrorCloseLegacy, stream, err);
66930
66954
  } else {
66931
- process2.nextTick(emitCloseLegacy, stream);
66955
+ process3.nextTick(emitCloseLegacy, stream);
66932
66956
  }
66933
66957
  if (!stream.destroyed) {
66934
66958
  stream[kDestroyed] = true;
@@ -67259,7 +67283,7 @@ var require_state3 = __commonJS({
67259
67283
  var require_from = __commonJS({
67260
67284
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
67261
67285
  "use strict";
67262
- var process2 = require_process();
67286
+ var process3 = require_process();
67263
67287
  var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
67264
67288
  var { Buffer: Buffer2 } = require("buffer");
67265
67289
  var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors3().codes;
@@ -67301,9 +67325,9 @@ var require_from = __commonJS({
67301
67325
  readable._destroy = function(error44, cb) {
67302
67326
  PromisePrototypeThen(
67303
67327
  close(error44),
67304
- () => process2.nextTick(cb, error44),
67328
+ () => process3.nextTick(cb, error44),
67305
67329
  // nextTick is here in case cb throws
67306
- (e2) => process2.nextTick(cb, e2 || error44)
67330
+ (e2) => process3.nextTick(cb, e2 || error44)
67307
67331
  );
67308
67332
  };
67309
67333
  async function close(error44) {
@@ -67354,7 +67378,7 @@ var require_from = __commonJS({
67354
67378
  var require_readable = __commonJS({
67355
67379
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
67356
67380
  "use strict";
67357
- var process2 = require_process();
67381
+ var process3 = require_process();
67358
67382
  var {
67359
67383
  ArrayPrototypeIndexOf,
67360
67384
  NumberIsInteger,
@@ -67677,7 +67701,7 @@ var require_readable = __commonJS({
67677
67701
  if (!state2.emittedReadable) {
67678
67702
  debug7("emitReadable", state2.flowing);
67679
67703
  state2.emittedReadable = true;
67680
- process2.nextTick(emitReadable_, stream);
67704
+ process3.nextTick(emitReadable_, stream);
67681
67705
  }
67682
67706
  }
67683
67707
  function emitReadable_(stream) {
@@ -67693,7 +67717,7 @@ var require_readable = __commonJS({
67693
67717
  function maybeReadMore(stream, state2) {
67694
67718
  if (!state2.readingMore && state2.constructed) {
67695
67719
  state2.readingMore = true;
67696
- process2.nextTick(maybeReadMore_, stream, state2);
67720
+ process3.nextTick(maybeReadMore_, stream, state2);
67697
67721
  }
67698
67722
  }
67699
67723
  function maybeReadMore_(stream, state2) {
@@ -67720,9 +67744,9 @@ var require_readable = __commonJS({
67720
67744
  }
67721
67745
  state2.pipes.push(dest);
67722
67746
  debug7("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
67723
- const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process2.stdout && dest !== process2.stderr;
67747
+ const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
67724
67748
  const endFn = doEnd ? onend : unpipe;
67725
- if (state2.endEmitted) process2.nextTick(endFn);
67749
+ if (state2.endEmitted) process3.nextTick(endFn);
67726
67750
  else src.once("end", endFn);
67727
67751
  dest.on("unpipe", onunpipe);
67728
67752
  function onunpipe(readable, unpipeInfo) {
@@ -67874,7 +67898,7 @@ var require_readable = __commonJS({
67874
67898
  if (state2.length) {
67875
67899
  emitReadable(this);
67876
67900
  } else if (!state2.reading) {
67877
- process2.nextTick(nReadingNextTick, this);
67901
+ process3.nextTick(nReadingNextTick, this);
67878
67902
  }
67879
67903
  }
67880
67904
  }
@@ -67884,7 +67908,7 @@ var require_readable = __commonJS({
67884
67908
  Readable.prototype.removeListener = function(ev, fn2) {
67885
67909
  const res = Stream.prototype.removeListener.call(this, ev, fn2);
67886
67910
  if (ev === "readable") {
67887
- process2.nextTick(updateReadableListening, this);
67911
+ process3.nextTick(updateReadableListening, this);
67888
67912
  }
67889
67913
  return res;
67890
67914
  };
@@ -67892,7 +67916,7 @@ var require_readable = __commonJS({
67892
67916
  Readable.prototype.removeAllListeners = function(ev) {
67893
67917
  const res = Stream.prototype.removeAllListeners.apply(this, arguments);
67894
67918
  if (ev === "readable" || ev === void 0) {
67895
- process2.nextTick(updateReadableListening, this);
67919
+ process3.nextTick(updateReadableListening, this);
67896
67920
  }
67897
67921
  return res;
67898
67922
  };
@@ -67924,7 +67948,7 @@ var require_readable = __commonJS({
67924
67948
  function resume(stream, state2) {
67925
67949
  if (!state2.resumeScheduled) {
67926
67950
  state2.resumeScheduled = true;
67927
- process2.nextTick(resume_, stream, state2);
67951
+ process3.nextTick(resume_, stream, state2);
67928
67952
  }
67929
67953
  }
67930
67954
  function resume_(stream, state2) {
@@ -68201,7 +68225,7 @@ var require_readable = __commonJS({
68201
68225
  debug7("endReadable", state2.endEmitted);
68202
68226
  if (!state2.endEmitted) {
68203
68227
  state2.ended = true;
68204
- process2.nextTick(endReadableNT, state2, stream);
68228
+ process3.nextTick(endReadableNT, state2, stream);
68205
68229
  }
68206
68230
  }
68207
68231
  function endReadableNT(state2, stream) {
@@ -68210,7 +68234,7 @@ var require_readable = __commonJS({
68210
68234
  state2.endEmitted = true;
68211
68235
  stream.emit("end");
68212
68236
  if (stream.writable && stream.allowHalfOpen === false) {
68213
- process2.nextTick(endWritableNT, stream);
68237
+ process3.nextTick(endWritableNT, stream);
68214
68238
  } else if (state2.autoDestroy) {
68215
68239
  const wState = stream._writableState;
68216
68240
  const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
@@ -68260,7 +68284,7 @@ var require_readable = __commonJS({
68260
68284
  var require_writable = __commonJS({
68261
68285
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
68262
68286
  "use strict";
68263
- var process2 = require_process();
68287
+ var process3 = require_process();
68264
68288
  var {
68265
68289
  ArrayPrototypeSlice,
68266
68290
  Error: Error2,
@@ -68413,7 +68437,7 @@ var require_writable = __commonJS({
68413
68437
  err = new ERR_STREAM_DESTROYED("write");
68414
68438
  }
68415
68439
  if (err) {
68416
- process2.nextTick(cb, err);
68440
+ process3.nextTick(cb, err);
68417
68441
  errorOrDestroy(stream, err, true);
68418
68442
  return err;
68419
68443
  }
@@ -68503,7 +68527,7 @@ var require_writable = __commonJS({
68503
68527
  stream._readableState.errored = er2;
68504
68528
  }
68505
68529
  if (sync) {
68506
- process2.nextTick(onwriteError, stream, state2, er2, cb);
68530
+ process3.nextTick(onwriteError, stream, state2, er2, cb);
68507
68531
  } else {
68508
68532
  onwriteError(stream, state2, er2, cb);
68509
68533
  }
@@ -68521,7 +68545,7 @@ var require_writable = __commonJS({
68521
68545
  stream,
68522
68546
  state: state2
68523
68547
  };
68524
- process2.nextTick(afterWriteTick, state2.afterWriteTickInfo);
68548
+ process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
68525
68549
  }
68526
68550
  } else {
68527
68551
  afterWrite(stream, state2, 1, cb);
@@ -68658,7 +68682,7 @@ var require_writable = __commonJS({
68658
68682
  }
68659
68683
  if (typeof cb === "function") {
68660
68684
  if (err || state2.finished) {
68661
- process2.nextTick(cb, err);
68685
+ process3.nextTick(cb, err);
68662
68686
  } else {
68663
68687
  state2[kOnFinished].push(cb);
68664
68688
  }
@@ -68687,7 +68711,7 @@ var require_writable = __commonJS({
68687
68711
  state2.prefinished = true;
68688
68712
  stream.emit("prefinish");
68689
68713
  state2.pendingcb++;
68690
- process2.nextTick(finish, stream, state2);
68714
+ process3.nextTick(finish, stream, state2);
68691
68715
  }
68692
68716
  }
68693
68717
  state2.sync = true;
@@ -68716,7 +68740,7 @@ var require_writable = __commonJS({
68716
68740
  if (state2.pendingcb === 0) {
68717
68741
  if (sync) {
68718
68742
  state2.pendingcb++;
68719
- process2.nextTick(
68743
+ process3.nextTick(
68720
68744
  (stream2, state3) => {
68721
68745
  if (needFinish(state3)) {
68722
68746
  finish(stream2, state3);
@@ -68851,7 +68875,7 @@ var require_writable = __commonJS({
68851
68875
  Writable.prototype.destroy = function(err, cb) {
68852
68876
  const state2 = this._writableState;
68853
68877
  if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
68854
- process2.nextTick(errorBuffer, state2);
68878
+ process3.nextTick(errorBuffer, state2);
68855
68879
  }
68856
68880
  destroy2.call(this, err, cb);
68857
68881
  return this;
@@ -68881,7 +68905,7 @@ var require_writable = __commonJS({
68881
68905
  var require_duplexify = __commonJS({
68882
68906
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
68883
68907
  "use strict";
68884
- var process2 = require_process();
68908
+ var process3 = require_process();
68885
68909
  var bufferModule = require("buffer");
68886
68910
  var {
68887
68911
  isReadable,
@@ -68981,9 +69005,9 @@ var require_duplexify = __commonJS({
68981
69005
  final(async () => {
68982
69006
  try {
68983
69007
  await promise2;
68984
- process2.nextTick(cb, null);
69008
+ process3.nextTick(cb, null);
68985
69009
  } catch (err) {
68986
- process2.nextTick(cb, err);
69010
+ process3.nextTick(cb, err);
68987
69011
  }
68988
69012
  });
68989
69013
  },
@@ -69059,7 +69083,7 @@ var require_duplexify = __commonJS({
69059
69083
  const _promise2 = promise2;
69060
69084
  promise2 = null;
69061
69085
  const { chunk, done, cb } = await _promise2;
69062
- process2.nextTick(cb);
69086
+ process3.nextTick(cb);
69063
69087
  if (done) return;
69064
69088
  if (signal.aborted)
69065
69089
  throw new AbortError3(void 0, {
@@ -69451,7 +69475,7 @@ var require_passthrough = __commonJS({
69451
69475
  var require_pipeline = __commonJS({
69452
69476
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
69453
69477
  "use strict";
69454
- var process2 = require_process();
69478
+ var process3 = require_process();
69455
69479
  var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator } = require_primordials();
69456
69480
  var eos = require_end_of_stream();
69457
69481
  var { once } = require_util();
@@ -69646,7 +69670,7 @@ var require_pipeline = __commonJS({
69646
69670
  if (!error44) {
69647
69671
  lastStreamCleanup.forEach((fn2) => fn2());
69648
69672
  }
69649
- process2.nextTick(callback, error44, value);
69673
+ process3.nextTick(callback, error44, value);
69650
69674
  }
69651
69675
  }
69652
69676
  let ret;
@@ -69725,11 +69749,11 @@ var require_pipeline = __commonJS({
69725
69749
  if (end) {
69726
69750
  pt2.end();
69727
69751
  }
69728
- process2.nextTick(finish);
69752
+ process3.nextTick(finish);
69729
69753
  },
69730
69754
  (err) => {
69731
69755
  pt2.destroy(err);
69732
- process2.nextTick(finish, err);
69756
+ process3.nextTick(finish, err);
69733
69757
  }
69734
69758
  );
69735
69759
  } else if (isIterable(ret, true)) {
@@ -69810,7 +69834,7 @@ var require_pipeline = __commonJS({
69810
69834
  }
69811
69835
  }
69812
69836
  if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
69813
- process2.nextTick(abort);
69837
+ process3.nextTick(abort);
69814
69838
  }
69815
69839
  return ret;
69816
69840
  }
@@ -69831,7 +69855,7 @@ var require_pipeline = __commonJS({
69831
69855
  };
69832
69856
  var endFn = endFn2;
69833
69857
  if (isReadableEnded(src)) {
69834
- process2.nextTick(endFn2);
69858
+ process3.nextTick(endFn2);
69835
69859
  } else {
69836
69860
  src.once("end", endFn2);
69837
69861
  }
@@ -94590,19 +94614,19 @@ var require_result = __commonJS({
94590
94614
  }
94591
94615
  // adds a command complete message
94592
94616
  addCommandComplete(msg) {
94593
- let match;
94617
+ let match2;
94594
94618
  if (msg.text) {
94595
- match = matchRegexp.exec(msg.text);
94619
+ match2 = matchRegexp.exec(msg.text);
94596
94620
  } else {
94597
- match = matchRegexp.exec(msg.command);
94621
+ match2 = matchRegexp.exec(msg.command);
94598
94622
  }
94599
- if (match) {
94600
- this.command = match[1];
94601
- if (match[3]) {
94602
- this.oid = parseInt(match[2], 10);
94603
- this.rowCount = parseInt(match[3], 10);
94604
- } else if (match[2]) {
94605
- this.rowCount = parseInt(match[2], 10);
94623
+ if (match2) {
94624
+ this.command = match2[1];
94625
+ if (match2[3]) {
94626
+ this.oid = parseInt(match2[2], 10);
94627
+ this.rowCount = parseInt(match2[3], 10);
94628
+ } else if (match2[2]) {
94629
+ this.rowCount = parseInt(match2[2], 10);
94606
94630
  }
94607
94631
  }
94608
94632
  }
@@ -96097,8 +96121,8 @@ var require_helper = __commonJS({
96097
96121
  return old;
96098
96122
  };
96099
96123
  module2.exports.getFileName = function(rawEnv) {
96100
- var env = rawEnv || process.env;
96101
- var file2 = env.PGPASSFILE || (isWin ? path3.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env.HOME || "./", ".pgpass"));
96124
+ var env2 = rawEnv || process.env;
96125
+ var file2 = env2.PGPASSFILE || (isWin ? path3.join(env2.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env2.HOME || "./", ".pgpass"));
96102
96126
  return file2;
96103
96127
  };
96104
96128
  module2.exports.usePgPass = function(stats, fname) {
@@ -97728,7 +97752,7 @@ __export(index_exports, {
97728
97752
  module.exports = __toCommonJS(index_exports);
97729
97753
 
97730
97754
  // package.json
97731
- var version = "6.20.0-integration-next.20";
97755
+ var version = "7.0.1-dev.1";
97732
97756
 
97733
97757
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
97734
97758
  function clampProp(e2, n2, t2, o2, r2) {
@@ -101478,11 +101502,11 @@ function parseSize(value) {
101478
101502
  if (/^\d+$/.test(value)) {
101479
101503
  return parseInteger(value);
101480
101504
  }
101481
- const match = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
101482
- if (!match) {
101505
+ const match2 = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
101506
+ if (!match2) {
101483
101507
  throw new Error(`Invalid size format: ${value}`);
101484
101508
  }
101485
- const [_3, numStr, unit] = match;
101509
+ const [_3, numStr, unit] = match2;
101486
101510
  const num = parseFloat(numStr);
101487
101511
  if (Number.isNaN(num)) {
101488
101512
  throw new Error(`Invalid size value: ${numStr}`);
@@ -102592,7 +102616,7 @@ function createConsoleLogger(logFormat, logLevel) {
102592
102616
  return new Logger(sink);
102593
102617
  }
102594
102618
 
102595
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/url.js
102619
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/url.js
102596
102620
  var splitPath = (path3) => {
102597
102621
  const paths = path3.split("/");
102598
102622
  if (paths[0] === "") {
@@ -102607,9 +102631,9 @@ var splitRoutingPath = (routePath) => {
102607
102631
  };
102608
102632
  var extractGroupsFromPath = (path3) => {
102609
102633
  const groups = [];
102610
- path3 = path3.replace(/\{[^}]+\}/g, (match, index) => {
102634
+ path3 = path3.replace(/\{[^}]+\}/g, (match2, index) => {
102611
102635
  const mark = `@${index}`;
102612
- groups.push([mark, match]);
102636
+ groups.push([mark, match2]);
102613
102637
  return mark;
102614
102638
  });
102615
102639
  return { groups, path: path3 };
@@ -102631,14 +102655,14 @@ var getPattern = (label, next) => {
102631
102655
  if (label === "*") {
102632
102656
  return "*";
102633
102657
  }
102634
- const match = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
102635
- if (match) {
102658
+ const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
102659
+ if (match2) {
102636
102660
  const cacheKey = `${label}#${next}`;
102637
102661
  if (!patternCache[cacheKey]) {
102638
- if (match[2]) {
102639
- patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match[1], new RegExp(`^${match[2]}(?=/${next})`)] : [label, match[1], new RegExp(`^${match[2]}$`)];
102662
+ if (match2[2]) {
102663
+ patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)];
102640
102664
  } else {
102641
- patternCache[cacheKey] = [label, match[1], true];
102665
+ patternCache[cacheKey] = [label, match2[1], true];
102642
102666
  }
102643
102667
  }
102644
102668
  return patternCache[cacheKey];
@@ -102649,11 +102673,11 @@ var tryDecode = (str, decoder) => {
102649
102673
  try {
102650
102674
  return decoder(str);
102651
102675
  } catch {
102652
- return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match) => {
102676
+ return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => {
102653
102677
  try {
102654
- return decoder(match);
102678
+ return decoder(match2);
102655
102679
  } catch {
102656
- return match;
102680
+ return match2;
102657
102681
  }
102658
102682
  });
102659
102683
  }
@@ -102661,10 +102685,7 @@ var tryDecode = (str, decoder) => {
102661
102685
  var tryDecodeURI = (str) => tryDecode(str, decodeURI);
102662
102686
  var getPath = (request3) => {
102663
102687
  const url2 = request3.url;
102664
- const start = url2.indexOf(
102665
- "/",
102666
- url2.charCodeAt(9) === 58 ? 13 : 8
102667
- );
102688
+ const start = url2.indexOf("/", url2.indexOf(":") + 4);
102668
102689
  let i2 = start;
102669
102690
  for (; i2 < url2.length; i2++) {
102670
102691
  const charCode = url2.charCodeAt(i2);
@@ -102727,9 +102748,12 @@ var _decodeURI = (value) => {
102727
102748
  var _getQueryParam = (url2, key, multiple) => {
102728
102749
  let encoded;
102729
102750
  if (!multiple && key && !/[%+]/.test(key)) {
102730
- let keyIndex2 = url2.indexOf(`?${key}`, 8);
102751
+ let keyIndex2 = url2.indexOf("?", 8);
102731
102752
  if (keyIndex2 === -1) {
102732
- keyIndex2 = url2.indexOf(`&${key}`, 8);
102753
+ return void 0;
102754
+ }
102755
+ if (!url2.startsWith(key, keyIndex2 + 1)) {
102756
+ keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
102733
102757
  }
102734
102758
  while (keyIndex2 !== -1) {
102735
102759
  const trailingKeyCode = url2.charCodeAt(keyIndex2 + key.length + 1);
@@ -102794,7 +102818,7 @@ var getQueryParams = (url2, key) => {
102794
102818
  };
102795
102819
  var decodeURIComponent_ = decodeURIComponent;
102796
102820
 
102797
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/cookie.js
102821
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/cookie.js
102798
102822
  var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
102799
102823
  var validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
102800
102824
  var parse = (cookie, name6) => {
@@ -102827,7 +102851,7 @@ var parse = (cookie, name6) => {
102827
102851
  return parsedCookie;
102828
102852
  };
102829
102853
 
102830
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/helper/cookie/index.js
102854
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/cookie/index.js
102831
102855
  var getCookie = (c2, key, prefix) => {
102832
102856
  const cookie = c2.req.raw.headers.get("Cookie");
102833
102857
  if (typeof key === "string") {
@@ -102850,7 +102874,7 @@ var getCookie = (c2, key, prefix) => {
102850
102874
  return obj;
102851
102875
  };
102852
102876
 
102853
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/http-exception.js
102877
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/http-exception.js
102854
102878
  var HTTPException = class extends Error {
102855
102879
  res;
102856
102880
  status;
@@ -102873,7 +102897,7 @@ var HTTPException = class extends Error {
102873
102897
  }
102874
102898
  };
102875
102899
 
102876
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/buffer.js
102900
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/buffer.js
102877
102901
  var bufferToFormData = (arrayBuffer, contentType) => {
102878
102902
  const response = new Response(arrayBuffer, {
102879
102903
  headers: {
@@ -102883,7 +102907,7 @@ var bufferToFormData = (arrayBuffer, contentType) => {
102883
102907
  return response.formData();
102884
102908
  };
102885
102909
 
102886
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/validator/validator.js
102910
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/validator/validator.js
102887
102911
  var jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
102888
102912
  var multipartRegex = /^multipart\/form-data(;\s?boundary=[a-zA-Z0-9'"()+_,\-./:=?]+)?$/;
102889
102913
  var urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/;
@@ -102960,11 +102984,11 @@ var validator = (target, validationFunc) => {
102960
102984
  return res;
102961
102985
  }
102962
102986
  c2.req.addValidatedData(target, res);
102963
- await next();
102987
+ return await next();
102964
102988
  };
102965
102989
  };
102966
102990
 
102967
- // ../../node_modules/.pnpm/@hono+zod-validator@0.7.2_hono@4.9.4_zod@4.1.3/node_modules/@hono/zod-validator/dist/index.js
102991
+ // ../../node_modules/.pnpm/@hono+zod-validator@0.7.2_hono@4.10.6_zod@4.1.3/node_modules/@hono/zod-validator/dist/index.js
102968
102992
  var zValidator = (target, schema, hook, options) => (
102969
102993
  // @ts-expect-error not typed well
102970
102994
  validator(target, async (value, c2) => {
@@ -107916,7 +107940,7 @@ function createTimeoutIfDefined(cb, ms) {
107916
107940
  return ms !== void 0 ? setTimeout(cb, ms) : void 0;
107917
107941
  }
107918
107942
 
107919
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/compose.js
107943
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/compose.js
107920
107944
  var compose = (middleware, onError, onNotFound) => {
107921
107945
  return (context2, next) => {
107922
107946
  let index = -1;
@@ -107960,10 +107984,10 @@ var compose = (middleware, onError, onNotFound) => {
107960
107984
  };
107961
107985
  };
107962
107986
 
107963
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/request/constants.js
107987
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/request/constants.js
107964
107988
  var GET_MATCH_RESULT = Symbol();
107965
107989
 
107966
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/body.js
107990
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/body.js
107967
107991
  var parseBody = async (request3, options = /* @__PURE__ */ Object.create(null)) => {
107968
107992
  const { all = false, dot = false } = options;
107969
107993
  const headers = request3 instanceof HonoRequest ? request3.raw.headers : request3.headers;
@@ -108032,7 +108056,7 @@ var handleParsingNestedValues = (form, key, value) => {
108032
108056
  });
108033
108057
  };
108034
108058
 
108035
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/request.js
108059
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/request.js
108036
108060
  var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
108037
108061
  var HonoRequest = class {
108038
108062
  raw;
@@ -108053,14 +108077,14 @@ var HonoRequest = class {
108053
108077
  #getDecodedParam(key) {
108054
108078
  const paramKey = this.#matchResult[0][this.routeIndex][1][key];
108055
108079
  const param = this.#getParamValue(paramKey);
108056
- return param ? /\%/.test(param) ? tryDecodeURIComponent(param) : param : void 0;
108080
+ return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param;
108057
108081
  }
108058
108082
  #getAllDecodedParams() {
108059
108083
  const decoded = {};
108060
108084
  const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
108061
108085
  for (const key of keys) {
108062
108086
  const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
108063
- if (value && typeof value === "string") {
108087
+ if (value !== void 0) {
108064
108088
  decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value;
108065
108089
  }
108066
108090
  }
@@ -108143,7 +108167,7 @@ var HonoRequest = class {
108143
108167
  }
108144
108168
  };
108145
108169
 
108146
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/html.js
108170
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/html.js
108147
108171
  var HtmlEscapedCallbackPhase = {
108148
108172
  Stringify: 1,
108149
108173
  BeforeStream: 2,
@@ -108185,7 +108209,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
108185
108209
  }
108186
108210
  };
108187
108211
 
108188
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/context.js
108212
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/context.js
108189
108213
  var TEXT_PLAIN = "text/plain; charset=UTF-8";
108190
108214
  var setDefaultContentType = (contentType, headers) => {
108191
108215
  return {
@@ -108362,7 +108386,7 @@ var Context = class {
108362
108386
  };
108363
108387
  };
108364
108388
 
108365
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router.js
108389
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router.js
108366
108390
  var METHOD_NAME_ALL = "ALL";
108367
108391
  var METHOD_NAME_ALL_LOWERCASE = "all";
108368
108392
  var METHODS = ["get", "post", "put", "delete", "options", "patch"];
@@ -108370,10 +108394,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
108370
108394
  var UnsupportedPathError = class extends Error {
108371
108395
  };
108372
108396
 
108373
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/constants.js
108397
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/constants.js
108374
108398
  var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
108375
108399
 
108376
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/hono-base.js
108400
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/hono-base.js
108377
108401
  var notFoundHandler = (c2) => {
108378
108402
  return c2.text("404 Not Found", 404);
108379
108403
  };
@@ -108539,16 +108563,16 @@ var Hono = class {
108539
108563
  }
108540
108564
  throw err;
108541
108565
  }
108542
- #dispatch(request3, executionCtx, env, method) {
108566
+ #dispatch(request3, executionCtx, env2, method) {
108543
108567
  if (method === "HEAD") {
108544
- return (async () => new Response(null, await this.#dispatch(request3, executionCtx, env, "GET")))();
108568
+ return (async () => new Response(null, await this.#dispatch(request3, executionCtx, env2, "GET")))();
108545
108569
  }
108546
- const path3 = this.getPath(request3, { env });
108570
+ const path3 = this.getPath(request3, { env: env2 });
108547
108571
  const matchResult = this.router.match(method, path3);
108548
108572
  const c2 = new Context(request3, {
108549
108573
  path: path3,
108550
108574
  matchResult,
108551
- env,
108575
+ env: env2,
108552
108576
  executionCtx,
108553
108577
  notFoundHandler: this.#notFoundHandler
108554
108578
  });
@@ -108604,7 +108628,28 @@ var Hono = class {
108604
108628
  };
108605
108629
  };
108606
108630
 
108607
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/reg-exp-router/node.js
108631
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/matcher.js
108632
+ var emptyParam = [];
108633
+ function match(method, path3) {
108634
+ const matchers = this.buildAllMatchers();
108635
+ const match2 = (method2, path22) => {
108636
+ const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
108637
+ const staticMatch = matcher[2][path22];
108638
+ if (staticMatch) {
108639
+ return staticMatch;
108640
+ }
108641
+ const match3 = path22.match(matcher[0]);
108642
+ if (!match3) {
108643
+ return [[], emptyParam];
108644
+ }
108645
+ const index = match3.indexOf("", 1);
108646
+ return [matcher[1][index], match3];
108647
+ };
108648
+ this.match = match2;
108649
+ return match2(method, path3);
108650
+ }
108651
+
108652
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/node.js
108608
108653
  var LABEL_REG_EXP_STR = "[^/]+";
108609
108654
  var ONLY_WILDCARD_REG_EXP_STR = ".*";
108610
108655
  var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
@@ -108712,7 +108757,7 @@ var Node = class {
108712
108757
  }
108713
108758
  };
108714
108759
 
108715
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/reg-exp-router/trie.js
108760
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/trie.js
108716
108761
  var Trie = class {
108717
108762
  #context = { varIndex: 0 };
108718
108763
  #root = new Node();
@@ -108768,8 +108813,7 @@ var Trie = class {
108768
108813
  }
108769
108814
  };
108770
108815
 
108771
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/reg-exp-router/router.js
108772
- var emptyParam = [];
108816
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/reg-exp-router/router.js
108773
108817
  var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
108774
108818
  var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
108775
108819
  function buildWildcardRegExp(path3) {
@@ -108916,30 +108960,14 @@ var RegExpRouter = class {
108916
108960
  });
108917
108961
  }
108918
108962
  }
108919
- match(method, path3) {
108920
- clearWildcardRegExpCache();
108921
- const matchers = this.#buildAllMatchers();
108922
- this.match = (method2, path22) => {
108923
- const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
108924
- const staticMatch = matcher[2][path22];
108925
- if (staticMatch) {
108926
- return staticMatch;
108927
- }
108928
- const match = path22.match(matcher[0]);
108929
- if (!match) {
108930
- return [[], emptyParam];
108931
- }
108932
- const index = match.indexOf("", 1);
108933
- return [matcher[1][index], match];
108934
- };
108935
- return this.match(method, path3);
108936
- }
108937
- #buildAllMatchers() {
108963
+ match = match;
108964
+ buildAllMatchers() {
108938
108965
  const matchers = /* @__PURE__ */ Object.create(null);
108939
108966
  Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => {
108940
108967
  matchers[method] ||= this.#buildMatcher(method);
108941
108968
  });
108942
108969
  this.#middleware = this.#routes = void 0;
108970
+ clearWildcardRegExpCache();
108943
108971
  return matchers;
108944
108972
  }
108945
108973
  #buildMatcher(method) {
@@ -108964,7 +108992,7 @@ var RegExpRouter = class {
108964
108992
  }
108965
108993
  };
108966
108994
 
108967
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/smart-router/router.js
108995
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/smart-router/router.js
108968
108996
  var SmartRouter = class {
108969
108997
  name = "SmartRouter";
108970
108998
  #routers = [];
@@ -109019,7 +109047,7 @@ var SmartRouter = class {
109019
109047
  }
109020
109048
  };
109021
109049
 
109022
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/trie-router/node.js
109050
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/trie-router/node.js
109023
109051
  var emptyParams = /* @__PURE__ */ Object.create(null);
109024
109052
  var Node2 = class {
109025
109053
  #methods;
@@ -109177,7 +109205,7 @@ var Node2 = class {
109177
109205
  }
109178
109206
  };
109179
109207
 
109180
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/router/trie-router/router.js
109208
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/router/trie-router/router.js
109181
109209
  var TrieRouter = class {
109182
109210
  name = "TrieRouter";
109183
109211
  #node;
@@ -109199,7 +109227,7 @@ var TrieRouter = class {
109199
109227
  }
109200
109228
  };
109201
109229
 
109202
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/hono.js
109230
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/hono.js
109203
109231
  var Hono2 = class extends Hono {
109204
109232
  constructor(options = {}) {
109205
109233
  super(options);
@@ -111827,7 +111855,7 @@ function logQuery(event) {
111827
111855
  });
111828
111856
  }
111829
111857
 
111830
- // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/helper/factory/index.js
111858
+ // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/factory/index.js
111831
111859
  var createMiddleware = (middleware) => middleware;
111832
111860
 
111833
111861
  // src/server/middleware/client-telemetry.ts
@@ -112660,9 +112688,9 @@ function floatSafeRemainder(val, step) {
112660
112688
  const stepString = step.toString();
112661
112689
  let stepDecCount = (stepString.split(".")[1] || "").length;
112662
112690
  if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
112663
- const match = stepString.match(/\d?e-(\d?)/);
112664
- if (match?.[1]) {
112665
- stepDecCount = Number.parseInt(match[1]);
112691
+ const match2 = stepString.match(/\d?e-(\d?)/);
112692
+ if (match2?.[1]) {
112693
+ stepDecCount = Number.parseInt(match2[1]);
112666
112694
  }
112667
112695
  }
112668
112696
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;