wrangler 3.94.0 → 3.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -557,14 +557,14 @@ var require_util = __commonJS({
557
557
  }
558
558
  const port = url4.port != null ? url4.port : url4.protocol === "https:" ? 443 : 80;
559
559
  let origin = url4.origin != null ? url4.origin : `${url4.protocol}//${url4.hostname}:${port}`;
560
- let path69 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
560
+ let path70 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
561
561
  if (origin.endsWith("/")) {
562
562
  origin = origin.substring(0, origin.length - 1);
563
563
  }
564
- if (path69 && !path69.startsWith("/")) {
565
- path69 = `/${path69}`;
564
+ if (path70 && !path70.startsWith("/")) {
565
+ path70 = `/${path70}`;
566
566
  }
567
- url4 = new URL(origin + path69);
567
+ url4 = new URL(origin + path70);
568
568
  }
569
569
  return url4;
570
570
  }
@@ -2228,19 +2228,19 @@ var require_basename = __commonJS({
2228
2228
  "../../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module3) {
2229
2229
  "use strict";
2230
2230
  init_import_meta_url();
2231
- module3.exports = /* @__PURE__ */ __name(function basename5(path69) {
2232
- if (typeof path69 !== "string") {
2231
+ module3.exports = /* @__PURE__ */ __name(function basename5(path70) {
2232
+ if (typeof path70 !== "string") {
2233
2233
  return "";
2234
2234
  }
2235
- for (var i = path69.length - 1; i >= 0; --i) {
2236
- switch (path69.charCodeAt(i)) {
2235
+ for (var i = path70.length - 1; i >= 0; --i) {
2236
+ switch (path70.charCodeAt(i)) {
2237
2237
  case 47:
2238
2238
  case 92:
2239
- path69 = path69.slice(i + 1);
2240
- return path69 === ".." || path69 === "." ? "" : path69;
2239
+ path70 = path70.slice(i + 1);
2240
+ return path70 === ".." || path70 === "." ? "" : path70;
2241
2241
  }
2242
2242
  }
2243
- return path69 === ".." || path69 === "." ? "" : path69;
2243
+ return path70 === ".." || path70 === "." ? "" : path70;
2244
2244
  }, "basename");
2245
2245
  }
2246
2246
  });
@@ -5362,7 +5362,7 @@ var require_request = __commonJS({
5362
5362
  }
5363
5363
  var Request3 = class {
5364
5364
  constructor(origin, {
5365
- path: path69,
5365
+ path: path70,
5366
5366
  method,
5367
5367
  body,
5368
5368
  headers,
@@ -5376,11 +5376,11 @@ var require_request = __commonJS({
5376
5376
  throwOnError,
5377
5377
  expectContinue
5378
5378
  }, handler30) {
5379
- if (typeof path69 !== "string") {
5379
+ if (typeof path70 !== "string") {
5380
5380
  throw new InvalidArgumentError("path must be a string");
5381
- } else if (path69[0] !== "/" && !(path69.startsWith("http://") || path69.startsWith("https://")) && method !== "CONNECT") {
5381
+ } else if (path70[0] !== "/" && !(path70.startsWith("http://") || path70.startsWith("https://")) && method !== "CONNECT") {
5382
5382
  throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
5383
- } else if (invalidPathRegex.exec(path69) !== null) {
5383
+ } else if (invalidPathRegex.exec(path70) !== null) {
5384
5384
  throw new InvalidArgumentError("invalid request path");
5385
5385
  }
5386
5386
  if (typeof method !== "string") {
@@ -5443,7 +5443,7 @@ var require_request = __commonJS({
5443
5443
  this.completed = false;
5444
5444
  this.aborted = false;
5445
5445
  this.upgrade = upgrade || null;
5446
- this.path = query ? util6.buildURL(path69, query) : path69;
5446
+ this.path = query ? util6.buildURL(path70, query) : path70;
5447
5447
  this.origin = origin;
5448
5448
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
5449
5449
  this.blocking = blocking == null ? false : blocking;
@@ -6476,9 +6476,9 @@ var require_RedirectHandler = __commonJS({
6476
6476
  return this.handler.onHeaders(statusCode, headers, resume, statusText);
6477
6477
  }
6478
6478
  const { origin, pathname, search } = util6.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
6479
- const path69 = search ? `${pathname}${search}` : pathname;
6479
+ const path70 = search ? `${pathname}${search}` : pathname;
6480
6480
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
6481
- this.opts.path = path69;
6481
+ this.opts.path = path70;
6482
6482
  this.opts.origin = origin;
6483
6483
  this.opts.maxRedirections = 0;
6484
6484
  this.opts.query = null;
@@ -7745,7 +7745,7 @@ var require_client = __commonJS({
7745
7745
  writeH2(client, client[kHTTP2Session], request3);
7746
7746
  return;
7747
7747
  }
7748
- const { body, method, path: path69, host, upgrade, headers, blocking, reset } = request3;
7748
+ const { body, method, path: path70, host, upgrade, headers, blocking, reset } = request3;
7749
7749
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7750
7750
  if (body && typeof body.read === "function") {
7751
7751
  body.read(0);
@@ -7795,7 +7795,7 @@ var require_client = __commonJS({
7795
7795
  if (blocking) {
7796
7796
  socket[kBlocking] = true;
7797
7797
  }
7798
- let header = `${method} ${path69} HTTP/1.1\r
7798
+ let header = `${method} ${path70} HTTP/1.1\r
7799
7799
  `;
7800
7800
  if (typeof host === "string") {
7801
7801
  header += `host: ${host}\r
@@ -7859,7 +7859,7 @@ upgrade: ${upgrade}\r
7859
7859
  }
7860
7860
  __name(write, "write");
7861
7861
  function writeH2(client, session, request3) {
7862
- const { body, method, path: path69, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
7862
+ const { body, method, path: path70, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
7863
7863
  let headers;
7864
7864
  if (typeof reqHeaders === "string")
7865
7865
  headers = Request3[kHTTP2CopyHeaders](reqHeaders.trim());
@@ -7905,7 +7905,7 @@ upgrade: ${upgrade}\r
7905
7905
  });
7906
7906
  return true;
7907
7907
  }
7908
- headers[HTTP2_HEADER_PATH] = path69;
7908
+ headers[HTTP2_HEADER_PATH] = path70;
7909
7909
  headers[HTTP2_HEADER_SCHEME] = "https";
7910
7910
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7911
7911
  if (body && typeof body.read === "function") {
@@ -10207,21 +10207,21 @@ var require_mock_utils = __commonJS({
10207
10207
  return true;
10208
10208
  }
10209
10209
  __name(matchHeaders, "matchHeaders");
10210
- function safeUrl(path69) {
10211
- if (typeof path69 !== "string") {
10212
- return path69;
10210
+ function safeUrl(path70) {
10211
+ if (typeof path70 !== "string") {
10212
+ return path70;
10213
10213
  }
10214
- const pathSegments = path69.split("?");
10214
+ const pathSegments = path70.split("?");
10215
10215
  if (pathSegments.length !== 2) {
10216
- return path69;
10216
+ return path70;
10217
10217
  }
10218
10218
  const qp = new URLSearchParams(pathSegments.pop());
10219
10219
  qp.sort();
10220
10220
  return [...pathSegments, qp.toString()].join("?");
10221
10221
  }
10222
10222
  __name(safeUrl, "safeUrl");
10223
- function matchKey(mockDispatch2, { path: path69, method, body, headers }) {
10224
- const pathMatch = matchValue(mockDispatch2.path, path69);
10223
+ function matchKey(mockDispatch2, { path: path70, method, body, headers }) {
10224
+ const pathMatch = matchValue(mockDispatch2.path, path70);
10225
10225
  const methodMatch = matchValue(mockDispatch2.method, method);
10226
10226
  const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
10227
10227
  const headersMatch = matchHeaders(mockDispatch2, headers);
@@ -10241,7 +10241,7 @@ var require_mock_utils = __commonJS({
10241
10241
  function getMockDispatch(mockDispatches, key) {
10242
10242
  const basePath = key.query ? buildURL(key.path, key.query) : key.path;
10243
10243
  const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
10244
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path69 }) => matchValue(safeUrl(path69), resolvedPath));
10244
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path70 }) => matchValue(safeUrl(path70), resolvedPath));
10245
10245
  if (matchedMockDispatches.length === 0) {
10246
10246
  throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
10247
10247
  }
@@ -10281,9 +10281,9 @@ var require_mock_utils = __commonJS({
10281
10281
  }
10282
10282
  __name(deleteMockDispatch, "deleteMockDispatch");
10283
10283
  function buildKey(opts) {
10284
- const { path: path69, method, body, headers, query } = opts;
10284
+ const { path: path70, method, body, headers, query } = opts;
10285
10285
  return {
10286
- path: path69,
10286
+ path: path70,
10287
10287
  method,
10288
10288
  body,
10289
10289
  headers,
@@ -10751,10 +10751,10 @@ var require_pending_interceptors_formatter = __commonJS({
10751
10751
  }
10752
10752
  format(pendingInterceptors) {
10753
10753
  const withPrettyHeaders = pendingInterceptors.map(
10754
- ({ method, path: path69, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10754
+ ({ method, path: path70, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10755
10755
  Method: method,
10756
10756
  Origin: origin,
10757
- Path: path69,
10757
+ Path: path70,
10758
10758
  "Status code": statusCode,
10759
10759
  Persistent: persist ? "\u2705" : "\u274C",
10760
10760
  Invocations: timesInvoked,
@@ -15459,8 +15459,8 @@ var require_util6 = __commonJS({
15459
15459
  }
15460
15460
  }
15461
15461
  __name(validateCookieValue, "validateCookieValue");
15462
- function validateCookiePath(path69) {
15463
- for (const char of path69) {
15462
+ function validateCookiePath(path70) {
15463
+ for (const char of path70) {
15464
15464
  const code = char.charCodeAt(0);
15465
15465
  if (code < 33 || char === ";") {
15466
15466
  throw new Error("Invalid cookie path");
@@ -17193,11 +17193,11 @@ var require_undici = __commonJS({
17193
17193
  if (typeof opts.path !== "string") {
17194
17194
  throw new InvalidArgumentError("invalid opts.path");
17195
17195
  }
17196
- let path69 = opts.path;
17196
+ let path70 = opts.path;
17197
17197
  if (!opts.path.startsWith("/")) {
17198
- path69 = `/${path69}`;
17198
+ path70 = `/${path70}`;
17199
17199
  }
17200
- url4 = new URL(util6.parseOrigin(url4).origin + path69);
17200
+ url4 = new URL(util6.parseOrigin(url4).origin + path70);
17201
17201
  } else {
17202
17202
  if (!opts) {
17203
17203
  opts = typeof url4 === "object" ? url4 : {};
@@ -17441,7 +17441,7 @@ var require_XDGAppPaths = __commonJS({
17441
17441
  }
17442
17442
  __name(typeOf, "typeOf");
17443
17443
  function Adapt(adapter_) {
17444
- var meta = adapter_.meta, path69 = adapter_.path, xdg = adapter_.xdg;
17444
+ var meta = adapter_.meta, path70 = adapter_.path, xdg = adapter_.xdg;
17445
17445
  var XDGAppPaths_ = function() {
17446
17446
  function XDGAppPaths_2(options_) {
17447
17447
  if (options_ === void 0) {
@@ -17464,7 +17464,7 @@ var require_XDGAppPaths = __commonJS({
17464
17464
  meta.mainFilename()
17465
17465
  ];
17466
17466
  var nameFallback = "$eval";
17467
- var name2 = path69.parse(((_c2 = namePriorityList.find(function(e3) {
17467
+ var name2 = path70.parse(((_c2 = namePriorityList.find(function(e3) {
17468
17468
  return isString4(e3);
17469
17469
  })) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
17470
17470
  XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
@@ -17485,28 +17485,28 @@ var require_XDGAppPaths = __commonJS({
17485
17485
  }
17486
17486
  __name(finalPathSegment, "finalPathSegment");
17487
17487
  XDGAppPaths.cache = /* @__PURE__ */ __name(function cache2(dirOptions) {
17488
- return path69.join(xdg.cache(), finalPathSegment(dirOptions));
17488
+ return path70.join(xdg.cache(), finalPathSegment(dirOptions));
17489
17489
  }, "cache");
17490
17490
  XDGAppPaths.config = /* @__PURE__ */ __name(function config(dirOptions) {
17491
- return path69.join(xdg.config(), finalPathSegment(dirOptions));
17491
+ return path70.join(xdg.config(), finalPathSegment(dirOptions));
17492
17492
  }, "config");
17493
17493
  XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
17494
- return path69.join(xdg.data(), finalPathSegment(dirOptions));
17494
+ return path70.join(xdg.data(), finalPathSegment(dirOptions));
17495
17495
  }, "data");
17496
17496
  XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
17497
- return xdg.runtime() ? path69.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
17497
+ return xdg.runtime() ? path70.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
17498
17498
  }, "runtime");
17499
17499
  XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
17500
- return path69.join(xdg.state(), finalPathSegment(dirOptions));
17500
+ return path70.join(xdg.state(), finalPathSegment(dirOptions));
17501
17501
  }, "state");
17502
17502
  XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
17503
17503
  return xdg.configDirs().map(function(s) {
17504
- return path69.join(s, finalPathSegment(dirOptions));
17504
+ return path70.join(s, finalPathSegment(dirOptions));
17505
17505
  });
17506
17506
  }, "configDirs");
17507
17507
  XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
17508
17508
  return xdg.dataDirs().map(function(s) {
17509
- return path69.join(s, finalPathSegment(dirOptions));
17509
+ return path70.join(s, finalPathSegment(dirOptions));
17510
17510
  });
17511
17511
  }, "dataDirs");
17512
17512
  return XDGAppPaths;
@@ -17534,7 +17534,7 @@ var require_XDG = __commonJS({
17534
17534
  exports2.__esModule = true;
17535
17535
  exports2.Adapt = void 0;
17536
17536
  function Adapt(adapter_) {
17537
- var env6 = adapter_.env, osPaths = adapter_.osPaths, path69 = adapter_.path;
17537
+ var env6 = adapter_.env, osPaths = adapter_.osPaths, path70 = adapter_.path;
17538
17538
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
17539
17539
  var isWinOS = /^win/i.test(adapter_.process.platform);
17540
17540
  function baseDir() {
@@ -17542,7 +17542,7 @@ var require_XDG = __commonJS({
17542
17542
  }
17543
17543
  __name(baseDir, "baseDir");
17544
17544
  function valOrPath(val, pathSegments) {
17545
- return val || path69.join.apply(path69, pathSegments);
17545
+ return val || path70.join.apply(path70, pathSegments);
17546
17546
  }
17547
17547
  __name(valOrPath, "valOrPath");
17548
17548
  var linux = /* @__PURE__ */ __name(function() {
@@ -17621,11 +17621,11 @@ var require_XDG = __commonJS({
17621
17621
  XDG.state = extension.state;
17622
17622
  XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
17623
17623
  var pathList = env6.get("XDG_CONFIG_DIRS");
17624
- return __spreadArray([extension.config()], pathList ? pathList.split(path69.delimiter) : []);
17624
+ return __spreadArray([extension.config()], pathList ? pathList.split(path70.delimiter) : []);
17625
17625
  }, "configDirs");
17626
17626
  XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
17627
17627
  var pathList = env6.get("XDG_DATA_DIRS");
17628
- return __spreadArray([extension.data()], pathList ? pathList.split(path69.delimiter) : []);
17628
+ return __spreadArray([extension.data()], pathList ? pathList.split(path70.delimiter) : []);
17629
17629
  }, "dataDirs");
17630
17630
  return XDG;
17631
17631
  }
@@ -17656,7 +17656,7 @@ var require_OSPaths = __commonJS({
17656
17656
  }
17657
17657
  __name(isEmpty, "isEmpty");
17658
17658
  function Adapt(adapter_) {
17659
- var env6 = adapter_.env, os13 = adapter_.os, path69 = adapter_.path;
17659
+ var env6 = adapter_.env, os13 = adapter_.os, path70 = adapter_.path;
17660
17660
  var isWinOS = /^win/i.test(adapter_.process.platform);
17661
17661
  function normalizePath(path_) {
17662
17662
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
@@ -17671,7 +17671,7 @@ var require_OSPaths = __commonJS({
17671
17671
  typeof os13.homedir === "function" ? os13.homedir() : void 0,
17672
17672
  env6.get("USERPROFILE"),
17673
17673
  env6.get("HOME"),
17674
- env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ? path69.join(env6.get("HOMEDRIVE") || "", env6.get("HOMEPATH") || "") : void 0
17674
+ env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ? path70.join(env6.get("HOMEDRIVE") || "", env6.get("HOMEPATH") || "") : void 0
17675
17675
  ];
17676
17676
  return normalizePath(priorityList.find(function(v2) {
17677
17677
  return !isEmpty(v2);
@@ -17682,7 +17682,7 @@ var require_OSPaths = __commonJS({
17682
17682
  __name(home, "home");
17683
17683
  function temp() {
17684
17684
  function joinPathToBase(base, segments) {
17685
- return base ? path69.join.apply(path69, __spreadArray([base], segments)) : void 0;
17685
+ return base ? path70.join.apply(path70, __spreadArray([base], segments)) : void 0;
17686
17686
  }
17687
17687
  __name(joinPathToBase, "joinPathToBase");
17688
17688
  function posix2() {
@@ -17794,7 +17794,7 @@ var require_node = __commonJS({
17794
17794
  exports2.__esModule = true;
17795
17795
  exports2.adapter = void 0;
17796
17796
  var os13 = __importStar(require("os"));
17797
- var path69 = __importStar(require("path"));
17797
+ var path70 = __importStar(require("path"));
17798
17798
  exports2.adapter = {
17799
17799
  atImportPermissions: { env: true },
17800
17800
  env: {
@@ -17803,7 +17803,7 @@ var require_node = __commonJS({
17803
17803
  }
17804
17804
  },
17805
17805
  os: os13,
17806
- path: path69,
17806
+ path: path70,
17807
17807
  process
17808
17808
  };
17809
17809
  }
@@ -17858,7 +17858,7 @@ var require_node2 = __commonJS({
17858
17858
  };
17859
17859
  exports2.__esModule = true;
17860
17860
  exports2.adapter = void 0;
17861
- var path69 = __importStar(require("path"));
17861
+ var path70 = __importStar(require("path"));
17862
17862
  var os_paths_1 = __importDefault(require_mod_cjs());
17863
17863
  exports2.adapter = {
17864
17864
  atImportPermissions: { env: true },
@@ -17868,7 +17868,7 @@ var require_node2 = __commonJS({
17868
17868
  }
17869
17869
  },
17870
17870
  osPaths: os_paths_1["default"],
17871
- path: path69,
17871
+ path: path70,
17872
17872
  process
17873
17873
  };
17874
17874
  }
@@ -17923,7 +17923,7 @@ var require_node3 = __commonJS({
17923
17923
  };
17924
17924
  exports2.__esModule = true;
17925
17925
  exports2.adapter = void 0;
17926
- var path69 = __importStar(require("path"));
17926
+ var path70 = __importStar(require("path"));
17927
17927
  var xdg_portable_1 = __importDefault(require_mod_cjs2());
17928
17928
  exports2.adapter = {
17929
17929
  atImportPermissions: { env: true, read: true },
@@ -17938,7 +17938,7 @@ var require_node3 = __commonJS({
17938
17938
  return process.pkg ? process.execPath : void 0;
17939
17939
  }
17940
17940
  },
17941
- path: path69,
17941
+ path: path70,
17942
17942
  process,
17943
17943
  xdg: xdg_portable_1["default"]
17944
17944
  };
@@ -20262,17 +20262,17 @@ var require_ignore = __commonJS({
20262
20262
  var throwError = /* @__PURE__ */ __name((message, Ctor) => {
20263
20263
  throw new Ctor(message);
20264
20264
  }, "throwError");
20265
- var checkPath = /* @__PURE__ */ __name((path69, originalPath, doThrow) => {
20266
- if (!isString4(path69)) {
20265
+ var checkPath = /* @__PURE__ */ __name((path70, originalPath, doThrow) => {
20266
+ if (!isString4(path70)) {
20267
20267
  return doThrow(
20268
20268
  `path must be a string, but got \`${originalPath}\``,
20269
20269
  TypeError
20270
20270
  );
20271
20271
  }
20272
- if (!path69) {
20272
+ if (!path70) {
20273
20273
  return doThrow(`path must not be empty`, TypeError);
20274
20274
  }
20275
- if (checkPath.isNotRelative(path69)) {
20275
+ if (checkPath.isNotRelative(path70)) {
20276
20276
  const r3 = "`path.relative()`d";
20277
20277
  return doThrow(
20278
20278
  `path should be a ${r3} string, but got "${originalPath}"`,
@@ -20281,7 +20281,7 @@ var require_ignore = __commonJS({
20281
20281
  }
20282
20282
  return true;
20283
20283
  }, "checkPath");
20284
- var isNotRelative = /* @__PURE__ */ __name((path69) => REGEX_TEST_INVALID_PATH.test(path69), "isNotRelative");
20284
+ var isNotRelative = /* @__PURE__ */ __name((path70) => REGEX_TEST_INVALID_PATH.test(path70), "isNotRelative");
20285
20285
  checkPath.isNotRelative = isNotRelative;
20286
20286
  checkPath.convert = (p2) => p2;
20287
20287
  var Ignore = class {
@@ -20340,7 +20340,7 @@ var require_ignore = __commonJS({
20340
20340
  // setting `checkUnignored` to `false` could reduce additional
20341
20341
  // path matching.
20342
20342
  // @returns {TestResult} true if a file is ignored
20343
- _testOne(path69, checkUnignored) {
20343
+ _testOne(path70, checkUnignored) {
20344
20344
  let ignored = false;
20345
20345
  let unignored = false;
20346
20346
  this._rules.forEach((rule) => {
@@ -20348,7 +20348,7 @@ var require_ignore = __commonJS({
20348
20348
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
20349
20349
  return;
20350
20350
  }
20351
- const matched = rule.regex.test(path69);
20351
+ const matched = rule.regex.test(path70);
20352
20352
  if (matched) {
20353
20353
  ignored = !negative;
20354
20354
  unignored = negative;
@@ -20361,24 +20361,24 @@ var require_ignore = __commonJS({
20361
20361
  }
20362
20362
  // @returns {TestResult}
20363
20363
  _test(originalPath, cache2, checkUnignored, slices) {
20364
- const path69 = originalPath && checkPath.convert(originalPath);
20364
+ const path70 = originalPath && checkPath.convert(originalPath);
20365
20365
  checkPath(
20366
- path69,
20366
+ path70,
20367
20367
  originalPath,
20368
20368
  this._allowRelativePaths ? RETURN_FALSE : throwError
20369
20369
  );
20370
- return this._t(path69, cache2, checkUnignored, slices);
20370
+ return this._t(path70, cache2, checkUnignored, slices);
20371
20371
  }
20372
- _t(path69, cache2, checkUnignored, slices) {
20373
- if (path69 in cache2) {
20374
- return cache2[path69];
20372
+ _t(path70, cache2, checkUnignored, slices) {
20373
+ if (path70 in cache2) {
20374
+ return cache2[path70];
20375
20375
  }
20376
20376
  if (!slices) {
20377
- slices = path69.split(SLASH);
20377
+ slices = path70.split(SLASH);
20378
20378
  }
20379
20379
  slices.pop();
20380
20380
  if (!slices.length) {
20381
- return cache2[path69] = this._testOne(path69, checkUnignored);
20381
+ return cache2[path70] = this._testOne(path70, checkUnignored);
20382
20382
  }
20383
20383
  const parent = this._t(
20384
20384
  slices.join(SLASH) + SLASH,
@@ -20386,25 +20386,25 @@ var require_ignore = __commonJS({
20386
20386
  checkUnignored,
20387
20387
  slices
20388
20388
  );
20389
- return cache2[path69] = parent.ignored ? parent : this._testOne(path69, checkUnignored);
20389
+ return cache2[path70] = parent.ignored ? parent : this._testOne(path70, checkUnignored);
20390
20390
  }
20391
- ignores(path69) {
20392
- return this._test(path69, this._ignoreCache, false).ignored;
20391
+ ignores(path70) {
20392
+ return this._test(path70, this._ignoreCache, false).ignored;
20393
20393
  }
20394
20394
  createFilter() {
20395
- return (path69) => !this.ignores(path69);
20395
+ return (path70) => !this.ignores(path70);
20396
20396
  }
20397
20397
  filter(paths) {
20398
20398
  return makeArray(paths).filter(this.createFilter());
20399
20399
  }
20400
20400
  // @returns {TestResult}
20401
- test(path69) {
20402
- return this._test(path69, this._testCache, true);
20401
+ test(path70) {
20402
+ return this._test(path70, this._testCache, true);
20403
20403
  }
20404
20404
  };
20405
20405
  __name(Ignore, "Ignore");
20406
20406
  var factory = /* @__PURE__ */ __name((options30) => new Ignore(options30), "factory");
20407
- var isPathValid = /* @__PURE__ */ __name((path69) => checkPath(path69 && checkPath.convert(path69), path69, RETURN_FALSE), "isPathValid");
20407
+ var isPathValid = /* @__PURE__ */ __name((path70) => checkPath(path70 && checkPath.convert(path70), path70, RETURN_FALSE), "isPathValid");
20408
20408
  factory.isPathValid = isPathValid;
20409
20409
  factory.default = factory;
20410
20410
  module3.exports = factory;
@@ -20415,7 +20415,7 @@ var require_ignore = __commonJS({
20415
20415
  const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
20416
20416
  checkPath.convert = makePosix;
20417
20417
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
20418
- checkPath.isNotRelative = (path69) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path69) || isNotRelative(path69);
20418
+ checkPath.isNotRelative = (path70) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path70) || isNotRelative(path70);
20419
20419
  }
20420
20420
  }
20421
20421
  });
@@ -22630,7 +22630,7 @@ var require_main2 = __commonJS({
22630
22630
  "../../node_modules/.pnpm/dotenv@16.3.1/node_modules/dotenv/lib/main.js"(exports2, module3) {
22631
22631
  init_import_meta_url();
22632
22632
  var fs27 = require("fs");
22633
- var path69 = require("path");
22633
+ var path70 = require("path");
22634
22634
  var os13 = require("os");
22635
22635
  var crypto5 = require("crypto");
22636
22636
  var packageJson = require_package();
@@ -22729,7 +22729,7 @@ var require_main2 = __commonJS({
22729
22729
  }
22730
22730
  __name(_instructions, "_instructions");
22731
22731
  function _vaultPath(options30) {
22732
- let dotenvPath = path69.resolve(process.cwd(), ".env");
22732
+ let dotenvPath = path70.resolve(process.cwd(), ".env");
22733
22733
  if (options30 && options30.path && options30.path.length > 0) {
22734
22734
  dotenvPath = options30.path;
22735
22735
  }
@@ -22737,7 +22737,7 @@ var require_main2 = __commonJS({
22737
22737
  }
22738
22738
  __name(_vaultPath, "_vaultPath");
22739
22739
  function _resolveHome(envPath) {
22740
- return envPath[0] === "~" ? path69.join(os13.homedir(), envPath.slice(1)) : envPath;
22740
+ return envPath[0] === "~" ? path70.join(os13.homedir(), envPath.slice(1)) : envPath;
22741
22741
  }
22742
22742
  __name(_resolveHome, "_resolveHome");
22743
22743
  function _configVault(options30) {
@@ -22752,7 +22752,7 @@ var require_main2 = __commonJS({
22752
22752
  }
22753
22753
  __name(_configVault, "_configVault");
22754
22754
  function configDotenv(options30) {
22755
- let dotenvPath = path69.resolve(process.cwd(), ".env");
22755
+ let dotenvPath = path70.resolve(process.cwd(), ".env");
22756
22756
  let encoding = "utf8";
22757
22757
  const debug = Boolean(options30 && options30.debug);
22758
22758
  if (options30) {
@@ -28789,13 +28789,13 @@ var require_define_lazy_prop = __commonJS({
28789
28789
  var require_open = __commonJS({
28790
28790
  "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module3) {
28791
28791
  init_import_meta_url();
28792
- var path69 = require("path");
28792
+ var path70 = require("path");
28793
28793
  var childProcess2 = require("child_process");
28794
28794
  var { promises: fs27, constants: fsConstants } = require("fs");
28795
28795
  var isWsl = require_is_wsl();
28796
28796
  var isDocker = require_is_docker();
28797
28797
  var defineLazyProperty = require_define_lazy_prop();
28798
- var localXdgOpenPath = path69.join(__dirname, "xdg-open");
28798
+ var localXdgOpenPath = path70.join(__dirname, "xdg-open");
28799
28799
  var { platform: platform2, arch: arch2 } = process;
28800
28800
  var getWslDrivesMountPoint = (() => {
28801
28801
  const defaultMountPoint = "/mnt/";
@@ -29226,8 +29226,8 @@ var require_path_parse = __commonJS({
29226
29226
  var require_node_modules_paths = __commonJS({
29227
29227
  "../../node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js"(exports2, module3) {
29228
29228
  init_import_meta_url();
29229
- var path69 = require("path");
29230
- var parse6 = path69.parse || require_path_parse();
29229
+ var path70 = require("path");
29230
+ var parse6 = path70.parse || require_path_parse();
29231
29231
  var getNodeModulesDirs = /* @__PURE__ */ __name(function getNodeModulesDirs2(absoluteStart, modules) {
29232
29232
  var prefix = "/";
29233
29233
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -29243,7 +29243,7 @@ var require_node_modules_paths = __commonJS({
29243
29243
  }
29244
29244
  return paths.reduce(function(dirs, aPath) {
29245
29245
  return dirs.concat(modules.map(function(moduleDir) {
29246
- return path69.resolve(prefix, aPath, moduleDir);
29246
+ return path70.resolve(prefix, aPath, moduleDir);
29247
29247
  }));
29248
29248
  }, []);
29249
29249
  }, "getNodeModulesDirs");
@@ -29583,7 +29583,7 @@ var require_async = __commonJS({
29583
29583
  init_import_meta_url();
29584
29584
  var fs27 = require("fs");
29585
29585
  var getHomedir = require_homedir();
29586
- var path69 = require("path");
29586
+ var path70 = require("path");
29587
29587
  var caller = require_caller();
29588
29588
  var nodeModulesPaths = require_node_modules_paths();
29589
29589
  var normalizeOptions = require_normalize_options();
@@ -29592,8 +29592,8 @@ var require_async = __commonJS({
29592
29592
  var homedir2 = getHomedir();
29593
29593
  var defaultPaths = /* @__PURE__ */ __name(function() {
29594
29594
  return [
29595
- path69.join(homedir2, ".node_modules"),
29596
- path69.join(homedir2, ".node_libraries")
29595
+ path70.join(homedir2, ".node_modules"),
29596
+ path70.join(homedir2, ".node_libraries")
29597
29597
  ];
29598
29598
  }, "defaultPaths");
29599
29599
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file, cb) {
@@ -29648,7 +29648,7 @@ var require_async = __commonJS({
29648
29648
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x2, start, opts) {
29649
29649
  var dirs = nodeModulesPaths(start, opts, x2);
29650
29650
  for (var i = 0; i < dirs.length; i++) {
29651
- dirs[i] = path69.join(dirs[i], x2);
29651
+ dirs[i] = path70.join(dirs[i], x2);
29652
29652
  }
29653
29653
  return dirs;
29654
29654
  }, "getPackageCandidates");
@@ -29680,10 +29680,10 @@ var require_async = __commonJS({
29680
29680
  var packageIterator = opts.packageIterator;
29681
29681
  var extensions = opts.extensions || [".js"];
29682
29682
  var includeCoreModules = opts.includeCoreModules !== false;
29683
- var basedir = opts.basedir || path69.dirname(caller());
29683
+ var basedir = opts.basedir || path70.dirname(caller());
29684
29684
  var parent = opts.filename || basedir;
29685
29685
  opts.paths = opts.paths || defaultPaths();
29686
- var absoluteStart = path69.resolve(basedir);
29686
+ var absoluteStart = path70.resolve(basedir);
29687
29687
  maybeRealpath(
29688
29688
  realpath,
29689
29689
  absoluteStart,
@@ -29698,7 +29698,7 @@ var require_async = __commonJS({
29698
29698
  var res;
29699
29699
  function init2(basedir2) {
29700
29700
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
29701
- res = path69.resolve(basedir2, x2);
29701
+ res = path70.resolve(basedir2, x2);
29702
29702
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/")
29703
29703
  res += "/";
29704
29704
  if (/\/$/.test(x2) && res === basedir2) {
@@ -29769,19 +29769,19 @@ var require_async = __commonJS({
29769
29769
  if (pkg)
29770
29770
  onpkg(null, pkg);
29771
29771
  else
29772
- loadpkg(path69.dirname(file), onpkg);
29772
+ loadpkg(path70.dirname(file), onpkg);
29773
29773
  function onpkg(err2, pkg_, dir) {
29774
29774
  pkg = pkg_;
29775
29775
  if (err2)
29776
29776
  return cb2(err2);
29777
29777
  if (dir && pkg && opts.pathFilter) {
29778
- var rfile = path69.relative(dir, file);
29778
+ var rfile = path70.relative(dir, file);
29779
29779
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
29780
29780
  var r3 = opts.pathFilter(pkg, x4, rel);
29781
29781
  if (r3)
29782
29782
  return load(
29783
29783
  [""].concat(extensions.slice()),
29784
- path69.resolve(dir, r3),
29784
+ path70.resolve(dir, r3),
29785
29785
  pkg
29786
29786
  );
29787
29787
  }
@@ -29810,11 +29810,11 @@ var require_async = __commonJS({
29810
29810
  return cb2(null);
29811
29811
  maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
29812
29812
  if (unwrapErr)
29813
- return loadpkg(path69.dirname(dir), cb2);
29814
- var pkgfile = path69.join(pkgdir, "package.json");
29813
+ return loadpkg(path70.dirname(dir), cb2);
29814
+ var pkgfile = path70.join(pkgdir, "package.json");
29815
29815
  isFile(pkgfile, function(err2, ex) {
29816
29816
  if (!ex)
29817
- return loadpkg(path69.dirname(dir), cb2);
29817
+ return loadpkg(path70.dirname(dir), cb2);
29818
29818
  readPackage(readFile15, pkgfile, function(err3, pkgParam) {
29819
29819
  if (err3)
29820
29820
  cb2(err3);
@@ -29838,12 +29838,12 @@ var require_async = __commonJS({
29838
29838
  maybeRealpath(realpath, x3, opts, function(unwrapErr, pkgdir) {
29839
29839
  if (unwrapErr)
29840
29840
  return cb2(unwrapErr);
29841
- var pkgfile = path69.join(pkgdir, "package.json");
29841
+ var pkgfile = path70.join(pkgdir, "package.json");
29842
29842
  isFile(pkgfile, function(err2, ex) {
29843
29843
  if (err2)
29844
29844
  return cb2(err2);
29845
29845
  if (!ex)
29846
- return loadAsFile(path69.join(x3, "index"), fpkg, cb2);
29846
+ return loadAsFile(path70.join(x3, "index"), fpkg, cb2);
29847
29847
  readPackage(readFile15, pkgfile, function(err3, pkgParam) {
29848
29848
  if (err3)
29849
29849
  return cb2(err3);
@@ -29860,25 +29860,25 @@ var require_async = __commonJS({
29860
29860
  if (pkg.main === "." || pkg.main === "./") {
29861
29861
  pkg.main = "index";
29862
29862
  }
29863
- loadAsFile(path69.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
29863
+ loadAsFile(path70.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
29864
29864
  if (err4)
29865
29865
  return cb2(err4);
29866
29866
  if (m2)
29867
29867
  return cb2(null, m2, pkg2);
29868
29868
  if (!pkg2)
29869
- return loadAsFile(path69.join(x3, "index"), pkg2, cb2);
29870
- var dir = path69.resolve(x3, pkg2.main);
29869
+ return loadAsFile(path70.join(x3, "index"), pkg2, cb2);
29870
+ var dir = path70.resolve(x3, pkg2.main);
29871
29871
  loadAsDirectory(dir, pkg2, function(err5, n2, pkg3) {
29872
29872
  if (err5)
29873
29873
  return cb2(err5);
29874
29874
  if (n2)
29875
29875
  return cb2(null, n2, pkg3);
29876
- loadAsFile(path69.join(x3, "index"), pkg3, cb2);
29876
+ loadAsFile(path70.join(x3, "index"), pkg3, cb2);
29877
29877
  });
29878
29878
  });
29879
29879
  return;
29880
29880
  }
29881
- loadAsFile(path69.join(x3, "/index"), pkg, cb2);
29881
+ loadAsFile(path70.join(x3, "/index"), pkg, cb2);
29882
29882
  });
29883
29883
  });
29884
29884
  });
@@ -29888,7 +29888,7 @@ var require_async = __commonJS({
29888
29888
  if (dirs.length === 0)
29889
29889
  return cb2(null, void 0);
29890
29890
  var dir = dirs[0];
29891
- isDirectory2(path69.dirname(dir), isdir);
29891
+ isDirectory2(path70.dirname(dir), isdir);
29892
29892
  function isdir(err2, isdir2) {
29893
29893
  if (err2)
29894
29894
  return cb2(err2);
@@ -30128,7 +30128,7 @@ var require_sync = __commonJS({
30128
30128
  init_import_meta_url();
30129
30129
  var isCore = require_is_core_module();
30130
30130
  var fs27 = require("fs");
30131
- var path69 = require("path");
30131
+ var path70 = require("path");
30132
30132
  var getHomedir = require_homedir();
30133
30133
  var caller = require_caller();
30134
30134
  var nodeModulesPaths = require_node_modules_paths();
@@ -30137,8 +30137,8 @@ var require_sync = __commonJS({
30137
30137
  var homedir2 = getHomedir();
30138
30138
  var defaultPaths = /* @__PURE__ */ __name(function() {
30139
30139
  return [
30140
- path69.join(homedir2, ".node_modules"),
30141
- path69.join(homedir2, ".node_libraries")
30140
+ path70.join(homedir2, ".node_modules"),
30141
+ path70.join(homedir2, ".node_libraries")
30142
30142
  ];
30143
30143
  }, "defaultPaths");
30144
30144
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file) {
@@ -30188,7 +30188,7 @@ var require_sync = __commonJS({
30188
30188
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x2, start, opts) {
30189
30189
  var dirs = nodeModulesPaths(start, opts, x2);
30190
30190
  for (var i = 0; i < dirs.length; i++) {
30191
- dirs[i] = path69.join(dirs[i], x2);
30191
+ dirs[i] = path70.join(dirs[i], x2);
30192
30192
  }
30193
30193
  return dirs;
30194
30194
  }, "getPackageCandidates");
@@ -30208,12 +30208,12 @@ var require_sync = __commonJS({
30208
30208
  var packageIterator = opts.packageIterator;
30209
30209
  var extensions = opts.extensions || [".js"];
30210
30210
  var includeCoreModules = opts.includeCoreModules !== false;
30211
- var basedir = opts.basedir || path69.dirname(caller());
30211
+ var basedir = opts.basedir || path70.dirname(caller());
30212
30212
  var parent = opts.filename || basedir;
30213
30213
  opts.paths = opts.paths || defaultPaths();
30214
- var absoluteStart = maybeRealpathSync(realpathSync4, path69.resolve(basedir), opts);
30214
+ var absoluteStart = maybeRealpathSync(realpathSync4, path70.resolve(basedir), opts);
30215
30215
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
30216
- var res = path69.resolve(absoluteStart, x2);
30216
+ var res = path70.resolve(absoluteStart, x2);
30217
30217
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/")
30218
30218
  res += "/";
30219
30219
  var m2 = loadAsFileSync(res) || loadAsDirectorySync(res);
@@ -30230,12 +30230,12 @@ var require_sync = __commonJS({
30230
30230
  err.code = "MODULE_NOT_FOUND";
30231
30231
  throw err;
30232
30232
  function loadAsFileSync(x3) {
30233
- var pkg = loadpkg(path69.dirname(x3));
30233
+ var pkg = loadpkg(path70.dirname(x3));
30234
30234
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
30235
- var rfile = path69.relative(pkg.dir, x3);
30235
+ var rfile = path70.relative(pkg.dir, x3);
30236
30236
  var r3 = opts.pathFilter(pkg.pkg, x3, rfile);
30237
30237
  if (r3) {
30238
- x3 = path69.resolve(pkg.dir, r3);
30238
+ x3 = path70.resolve(pkg.dir, r3);
30239
30239
  }
30240
30240
  }
30241
30241
  if (isFile(x3)) {
@@ -30257,9 +30257,9 @@ var require_sync = __commonJS({
30257
30257
  }
30258
30258
  if (/[/\\]node_modules[/\\]*$/.test(dir))
30259
30259
  return;
30260
- var pkgfile = path69.join(maybeRealpathSync(realpathSync4, dir, opts), "package.json");
30260
+ var pkgfile = path70.join(maybeRealpathSync(realpathSync4, dir, opts), "package.json");
30261
30261
  if (!isFile(pkgfile)) {
30262
- return loadpkg(path69.dirname(dir));
30262
+ return loadpkg(path70.dirname(dir));
30263
30263
  }
30264
30264
  var pkg = readPackageSync(readFileSync26, pkgfile);
30265
30265
  if (pkg && opts.packageFilter) {
@@ -30273,7 +30273,7 @@ var require_sync = __commonJS({
30273
30273
  }
30274
30274
  __name(loadpkg, "loadpkg");
30275
30275
  function loadAsDirectorySync(x3) {
30276
- var pkgfile = path69.join(maybeRealpathSync(realpathSync4, x3, opts), "/package.json");
30276
+ var pkgfile = path70.join(maybeRealpathSync(realpathSync4, x3, opts), "/package.json");
30277
30277
  if (isFile(pkgfile)) {
30278
30278
  try {
30279
30279
  var pkg = readPackageSync(readFileSync26, pkgfile);
@@ -30296,17 +30296,17 @@ var require_sync = __commonJS({
30296
30296
  pkg.main = "index";
30297
30297
  }
30298
30298
  try {
30299
- var m3 = loadAsFileSync(path69.resolve(x3, pkg.main));
30299
+ var m3 = loadAsFileSync(path70.resolve(x3, pkg.main));
30300
30300
  if (m3)
30301
30301
  return m3;
30302
- var n3 = loadAsDirectorySync(path69.resolve(x3, pkg.main));
30302
+ var n3 = loadAsDirectorySync(path70.resolve(x3, pkg.main));
30303
30303
  if (n3)
30304
30304
  return n3;
30305
30305
  } catch (e3) {
30306
30306
  }
30307
30307
  }
30308
30308
  }
30309
- return loadAsFileSync(path69.join(x3, "/index"));
30309
+ return loadAsFileSync(path70.join(x3, "/index"));
30310
30310
  }
30311
30311
  __name(loadAsDirectorySync, "loadAsDirectorySync");
30312
30312
  function loadNodeModulesSync(x3, start) {
@@ -30316,7 +30316,7 @@ var require_sync = __commonJS({
30316
30316
  var dirs = packageIterator ? packageIterator(x3, start, thunk, opts) : thunk();
30317
30317
  for (var i = 0; i < dirs.length; i++) {
30318
30318
  var dir = dirs[i];
30319
- if (isDirectory2(path69.dirname(dir))) {
30319
+ if (isDirectory2(path70.dirname(dir))) {
30320
30320
  var m3 = loadAsFileSync(dir);
30321
30321
  if (m3)
30322
30322
  return m3;
@@ -30589,7 +30589,7 @@ var require_utils3 = __commonJS({
30589
30589
  init_import_meta_url();
30590
30590
  var fs27 = require("fs");
30591
30591
  var ini = require_ini();
30592
- var path69 = require("path");
30592
+ var path70 = require("path");
30593
30593
  var stripJsonComments = require_strip_json_comments();
30594
30594
  var parse6 = exports2.parse = function(content) {
30595
30595
  if (/^\s*{/.test(content))
@@ -30603,7 +30603,7 @@ var require_utils3 = __commonJS({
30603
30603
  for (var i in args)
30604
30604
  if ("string" !== typeof args[i])
30605
30605
  return;
30606
- var file2 = path69.join.apply(null, args);
30606
+ var file2 = path70.join.apply(null, args);
30607
30607
  var content;
30608
30608
  try {
30609
30609
  return fs27.readFileSync(file2, "utf-8");
@@ -30641,15 +30641,15 @@ var require_utils3 = __commonJS({
30641
30641
  return obj;
30642
30642
  };
30643
30643
  var find = exports2.find = function() {
30644
- var rel = path69.join.apply(null, [].slice.call(arguments));
30644
+ var rel = path70.join.apply(null, [].slice.call(arguments));
30645
30645
  function find2(start, rel2) {
30646
- var file2 = path69.join(start, rel2);
30646
+ var file2 = path70.join(start, rel2);
30647
30647
  try {
30648
30648
  fs27.statSync(file2);
30649
30649
  return file2;
30650
30650
  } catch (err) {
30651
- if (path69.dirname(start) !== start)
30652
- return find2(path69.dirname(start), rel2);
30651
+ if (path70.dirname(start) !== start)
30652
+ return find2(path70.dirname(start), rel2);
30653
30653
  }
30654
30654
  }
30655
30655
  __name(find2, "find");
@@ -31162,8 +31162,8 @@ var require_registry_auth_token = __commonJS({
31162
31162
  return void 0;
31163
31163
  }
31164
31164
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
31165
- function normalizePath(path69) {
31166
- return path69[path69.length - 1] === "/" ? path69 : path69 + "/";
31165
+ function normalizePath(path70) {
31166
+ return path70[path70.length - 1] === "/" ? path70 : path70 + "/";
31167
31167
  }
31168
31168
  __name(normalizePath, "normalizePath");
31169
31169
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -35168,11 +35168,11 @@ var require_Mime = __commonJS({
35168
35168
  }
35169
35169
  }
35170
35170
  };
35171
- Mime.prototype.getType = function(path69) {
35172
- path69 = String(path69);
35173
- let last = path69.replace(/^.*[/\\]/, "").toLowerCase();
35171
+ Mime.prototype.getType = function(path70) {
35172
+ path70 = String(path70);
35173
+ let last = path70.replace(/^.*[/\\]/, "").toLowerCase();
35174
35174
  let ext = last.replace(/^.*\./, "").toLowerCase();
35175
- let hasPath = last.length < path69.length;
35175
+ let hasPath = last.length < path70.length;
35176
35176
  let hasDot = ext.length < last.length - 1;
35177
35177
  return (hasDot || !hasPath) && this._types[ext] || null;
35178
35178
  };
@@ -35662,8 +35662,8 @@ var require_minimatch = __commonJS({
35662
35662
  return new Minimatch2(pattern, options30).match(p2);
35663
35663
  };
35664
35664
  module3.exports = minimatch;
35665
- var path69 = require_path();
35666
- minimatch.sep = path69.sep;
35665
+ var path70 = require_path();
35666
+ minimatch.sep = path70.sep;
35667
35667
  var GLOBSTAR = Symbol("globstar **");
35668
35668
  minimatch.GLOBSTAR = GLOBSTAR;
35669
35669
  var expand = require_brace_expansion();
@@ -36160,8 +36160,8 @@ var require_minimatch = __commonJS({
36160
36160
  if (f === "/" && partial)
36161
36161
  return true;
36162
36162
  const options30 = this.options;
36163
- if (path69.sep !== "/") {
36164
- f = f.split(path69.sep).join("/");
36163
+ if (path70.sep !== "/") {
36164
+ f = f.split(path70.sep).join("/");
36165
36165
  }
36166
36166
  f = f.split(slashSplit);
36167
36167
  this.debug(this.pattern, "split", f);
@@ -36207,7 +36207,7 @@ var require_command_exists = __commonJS({
36207
36207
  var exec2 = require("child_process").exec;
36208
36208
  var execSync4 = require("child_process").execSync;
36209
36209
  var fs27 = require("fs");
36210
- var path69 = require("path");
36210
+ var path70 = require("path");
36211
36211
  var access3 = fs27.access;
36212
36212
  var accessSync = fs27.accessSync;
36213
36213
  var constants3 = fs27.constants || fs27;
@@ -36311,8 +36311,8 @@ var require_command_exists = __commonJS({
36311
36311
  cleanInput = /* @__PURE__ */ __name(function(s) {
36312
36312
  var isPathName = /[\\]/.test(s);
36313
36313
  if (isPathName) {
36314
- var dirname15 = '"' + path69.dirname(s) + '"';
36315
- var basename5 = '"' + path69.basename(s) + '"';
36314
+ var dirname15 = '"' + path70.dirname(s) + '"';
36315
+ var basename5 = '"' + path70.basename(s) + '"';
36316
36316
  return dirname15 + ":" + basename5;
36317
36317
  }
36318
36318
  return '"' + s + '"';
@@ -36363,7 +36363,7 @@ var require_windows = __commonJS({
36363
36363
  module3.exports = isexe;
36364
36364
  isexe.sync = sync;
36365
36365
  var fs27 = require("fs");
36366
- function checkPathExt(path69, options30) {
36366
+ function checkPathExt(path70, options30) {
36367
36367
  var pathext = options30.pathExt !== void 0 ? options30.pathExt : process.env.PATHEXT;
36368
36368
  if (!pathext) {
36369
36369
  return true;
@@ -36374,28 +36374,28 @@ var require_windows = __commonJS({
36374
36374
  }
36375
36375
  for (var i = 0; i < pathext.length; i++) {
36376
36376
  var p2 = pathext[i].toLowerCase();
36377
- if (p2 && path69.substr(-p2.length).toLowerCase() === p2) {
36377
+ if (p2 && path70.substr(-p2.length).toLowerCase() === p2) {
36378
36378
  return true;
36379
36379
  }
36380
36380
  }
36381
36381
  return false;
36382
36382
  }
36383
36383
  __name(checkPathExt, "checkPathExt");
36384
- function checkStat(stat6, path69, options30) {
36384
+ function checkStat(stat6, path70, options30) {
36385
36385
  if (!stat6.isSymbolicLink() && !stat6.isFile()) {
36386
36386
  return false;
36387
36387
  }
36388
- return checkPathExt(path69, options30);
36388
+ return checkPathExt(path70, options30);
36389
36389
  }
36390
36390
  __name(checkStat, "checkStat");
36391
- function isexe(path69, options30, cb) {
36392
- fs27.stat(path69, function(er, stat6) {
36393
- cb(er, er ? false : checkStat(stat6, path69, options30));
36391
+ function isexe(path70, options30, cb) {
36392
+ fs27.stat(path70, function(er, stat6) {
36393
+ cb(er, er ? false : checkStat(stat6, path70, options30));
36394
36394
  });
36395
36395
  }
36396
36396
  __name(isexe, "isexe");
36397
- function sync(path69, options30) {
36398
- return checkStat(fs27.statSync(path69), path69, options30);
36397
+ function sync(path70, options30) {
36398
+ return checkStat(fs27.statSync(path70), path70, options30);
36399
36399
  }
36400
36400
  __name(sync, "sync");
36401
36401
  }
@@ -36408,14 +36408,14 @@ var require_mode = __commonJS({
36408
36408
  module3.exports = isexe;
36409
36409
  isexe.sync = sync;
36410
36410
  var fs27 = require("fs");
36411
- function isexe(path69, options30, cb) {
36412
- fs27.stat(path69, function(er, stat6) {
36411
+ function isexe(path70, options30, cb) {
36412
+ fs27.stat(path70, function(er, stat6) {
36413
36413
  cb(er, er ? false : checkStat(stat6, options30));
36414
36414
  });
36415
36415
  }
36416
36416
  __name(isexe, "isexe");
36417
- function sync(path69, options30) {
36418
- return checkStat(fs27.statSync(path69), options30);
36417
+ function sync(path70, options30) {
36418
+ return checkStat(fs27.statSync(path70), options30);
36419
36419
  }
36420
36420
  __name(sync, "sync");
36421
36421
  function checkStat(stat6, options30) {
@@ -36452,7 +36452,7 @@ var require_isexe = __commonJS({
36452
36452
  }
36453
36453
  module3.exports = isexe;
36454
36454
  isexe.sync = sync;
36455
- function isexe(path69, options30, cb) {
36455
+ function isexe(path70, options30, cb) {
36456
36456
  if (typeof options30 === "function") {
36457
36457
  cb = options30;
36458
36458
  options30 = {};
@@ -36462,7 +36462,7 @@ var require_isexe = __commonJS({
36462
36462
  throw new TypeError("callback not provided");
36463
36463
  }
36464
36464
  return new Promise(function(resolve22, reject) {
36465
- isexe(path69, options30 || {}, function(er, is2) {
36465
+ isexe(path70, options30 || {}, function(er, is2) {
36466
36466
  if (er) {
36467
36467
  reject(er);
36468
36468
  } else {
@@ -36471,7 +36471,7 @@ var require_isexe = __commonJS({
36471
36471
  });
36472
36472
  });
36473
36473
  }
36474
- core(path69, options30 || {}, function(er, is2) {
36474
+ core(path70, options30 || {}, function(er, is2) {
36475
36475
  if (er) {
36476
36476
  if (er.code === "EACCES" || options30 && options30.ignoreErrors) {
36477
36477
  er = null;
@@ -36482,9 +36482,9 @@ var require_isexe = __commonJS({
36482
36482
  });
36483
36483
  }
36484
36484
  __name(isexe, "isexe");
36485
- function sync(path69, options30) {
36485
+ function sync(path70, options30) {
36486
36486
  try {
36487
- return core.sync(path69, options30 || {});
36487
+ return core.sync(path70, options30 || {});
36488
36488
  } catch (er) {
36489
36489
  if (options30 && options30.ignoreErrors || er.code === "EACCES") {
36490
36490
  return false;
@@ -36502,7 +36502,7 @@ var require_which = __commonJS({
36502
36502
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module3) {
36503
36503
  init_import_meta_url();
36504
36504
  var isWindows3 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
36505
- var path69 = require("path");
36505
+ var path70 = require("path");
36506
36506
  var COLON = isWindows3 ? ";" : ":";
36507
36507
  var isexe = require_isexe();
36508
36508
  var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
@@ -36540,7 +36540,7 @@ var require_which = __commonJS({
36540
36540
  return opt.all && found.length ? resolve22(found) : reject(getNotFoundError(cmd));
36541
36541
  const ppRaw = pathEnv[i];
36542
36542
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
36543
- const pCmd = path69.join(pathPart, cmd);
36543
+ const pCmd = path70.join(pathPart, cmd);
36544
36544
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
36545
36545
  resolve22(subStep(p2, i, 0));
36546
36546
  }), "step");
@@ -36567,7 +36567,7 @@ var require_which = __commonJS({
36567
36567
  for (let i = 0; i < pathEnv.length; i++) {
36568
36568
  const ppRaw = pathEnv[i];
36569
36569
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
36570
- const pCmd = path69.join(pathPart, cmd);
36570
+ const pCmd = path70.join(pathPart, cmd);
36571
36571
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
36572
36572
  for (let j2 = 0; j2 < pathExt.length; j2++) {
36573
36573
  const cur = p2 + pathExt[j2];
@@ -36617,7 +36617,7 @@ var require_resolveCommand = __commonJS({
36617
36617
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module3) {
36618
36618
  "use strict";
36619
36619
  init_import_meta_url();
36620
- var path69 = require("path");
36620
+ var path70 = require("path");
36621
36621
  var which = require_which();
36622
36622
  var getPathKey = require_path_key();
36623
36623
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -36635,7 +36635,7 @@ var require_resolveCommand = __commonJS({
36635
36635
  try {
36636
36636
  resolved = which.sync(parsed.command, {
36637
36637
  path: env6[getPathKey({ env: env6 })],
36638
- pathExt: withoutPathExt ? path69.delimiter : void 0
36638
+ pathExt: withoutPathExt ? path70.delimiter : void 0
36639
36639
  });
36640
36640
  } catch (e3) {
36641
36641
  } finally {
@@ -36644,7 +36644,7 @@ var require_resolveCommand = __commonJS({
36644
36644
  }
36645
36645
  }
36646
36646
  if (resolved) {
36647
- resolved = path69.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
36647
+ resolved = path70.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
36648
36648
  }
36649
36649
  return resolved;
36650
36650
  }
@@ -36705,8 +36705,8 @@ var require_shebang_command = __commonJS({
36705
36705
  if (!match2) {
36706
36706
  return null;
36707
36707
  }
36708
- const [path69, argument] = match2[0].replace(/#! ?/, "").split(" ");
36709
- const binary = path69.split("/").pop();
36708
+ const [path70, argument] = match2[0].replace(/#! ?/, "").split(" ");
36709
+ const binary = path70.split("/").pop();
36710
36710
  if (binary === "env") {
36711
36711
  return argument;
36712
36712
  }
@@ -36744,7 +36744,7 @@ var require_parse3 = __commonJS({
36744
36744
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module3) {
36745
36745
  "use strict";
36746
36746
  init_import_meta_url();
36747
- var path69 = require("path");
36747
+ var path70 = require("path");
36748
36748
  var resolveCommand = require_resolveCommand();
36749
36749
  var escape2 = require_escape();
36750
36750
  var readShebang = require_readShebang();
@@ -36770,7 +36770,7 @@ var require_parse3 = __commonJS({
36770
36770
  const needsShell = !isExecutableRegExp.test(commandFile);
36771
36771
  if (parsed.options.forceShell || needsShell) {
36772
36772
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
36773
- parsed.command = path69.normalize(parsed.command);
36773
+ parsed.command = path70.normalize(parsed.command);
36774
36774
  parsed.command = escape2.command(parsed.command);
36775
36775
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
36776
36776
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -36948,9 +36948,9 @@ function npmRunPath(options30 = {}) {
36948
36948
  }
36949
36949
  function npmRunPathEnv({ env: env6 = import_node_process7.default.env, ...options30 } = {}) {
36950
36950
  env6 = { ...env6 };
36951
- const path69 = pathKey({ env: env6 });
36952
- options30.path = env6[path69];
36953
- env6[path69] = npmRunPath(options30);
36951
+ const path70 = pathKey({ env: env6 });
36952
+ options30.path = env6[path70];
36953
+ env6[path70] = npmRunPath(options30);
36954
36954
  return env6;
36955
36955
  }
36956
36956
  var import_node_process7, import_node_path25, import_node_url8;
@@ -52416,11 +52416,11 @@ var require_mime_types = __commonJS({
52416
52416
  return exts[0];
52417
52417
  }
52418
52418
  __name(extension, "extension");
52419
- function lookup(path69) {
52420
- if (!path69 || typeof path69 !== "string") {
52419
+ function lookup(path70) {
52420
+ if (!path70 || typeof path70 !== "string") {
52421
52421
  return false;
52422
52422
  }
52423
- var extension2 = extname5("x." + path69).toLowerCase().substr(1);
52423
+ var extension2 = extname5("x." + path70).toLowerCase().substr(1);
52424
52424
  if (!extension2) {
52425
52425
  return false;
52426
52426
  }
@@ -55289,7 +55289,7 @@ var require_path_to_regexp = __commonJS({
55289
55289
  init_import_meta_url();
55290
55290
  module3.exports = pathtoRegexp;
55291
55291
  var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
55292
- function pathtoRegexp(path69, keys, options30) {
55292
+ function pathtoRegexp(path70, keys, options30) {
55293
55293
  options30 = options30 || {};
55294
55294
  keys = keys || [];
55295
55295
  var strict = options30.strict;
@@ -55300,23 +55300,23 @@ var require_path_to_regexp = __commonJS({
55300
55300
  var i = 0;
55301
55301
  var name2 = 0;
55302
55302
  var m2;
55303
- if (path69 instanceof RegExp) {
55304
- while (m2 = MATCHING_GROUP_REGEXP.exec(path69.source)) {
55303
+ if (path70 instanceof RegExp) {
55304
+ while (m2 = MATCHING_GROUP_REGEXP.exec(path70.source)) {
55305
55305
  keys.push({
55306
55306
  name: name2++,
55307
55307
  optional: false,
55308
55308
  offset: m2.index
55309
55309
  });
55310
55310
  }
55311
- return path69;
55311
+ return path70;
55312
55312
  }
55313
- if (Array.isArray(path69)) {
55314
- path69 = path69.map(function(value) {
55313
+ if (Array.isArray(path70)) {
55314
+ path70 = path70.map(function(value) {
55315
55315
  return pathtoRegexp(value, keys, options30).source;
55316
55316
  });
55317
- return new RegExp("(?:" + path69.join("|") + ")", flags2);
55317
+ return new RegExp("(?:" + path70.join("|") + ")", flags2);
55318
55318
  }
55319
- path69 = ("^" + path69 + (strict ? "" : path69[path69.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match2, slash, format10, key, capture, star, optional, offset) {
55319
+ path70 = ("^" + path70 + (strict ? "" : path70[path70.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match2, slash, format10, key, capture, star, optional, offset) {
55320
55320
  slash = slash || "";
55321
55321
  format10 = format10 || "";
55322
55322
  capture = capture || "([^\\/" + format10 + "]+?)";
@@ -55336,10 +55336,10 @@ var require_path_to_regexp = __commonJS({
55336
55336
  }
55337
55337
  return "(.*)";
55338
55338
  });
55339
- while (m2 = MATCHING_GROUP_REGEXP.exec(path69)) {
55339
+ while (m2 = MATCHING_GROUP_REGEXP.exec(path70)) {
55340
55340
  var escapeCount = 0;
55341
55341
  var index = m2.index;
55342
- while (path69.charAt(--index) === "\\") {
55342
+ while (path70.charAt(--index) === "\\") {
55343
55343
  escapeCount++;
55344
55344
  }
55345
55345
  if (escapeCount % 2 === 1) {
@@ -55355,8 +55355,8 @@ var require_path_to_regexp = __commonJS({
55355
55355
  }
55356
55356
  i++;
55357
55357
  }
55358
- path69 += end ? "$" : path69[path69.length - 1] === "/" ? "" : "(?=\\/|$)";
55359
- return new RegExp(path69, flags2);
55358
+ path70 += end ? "$" : path70[path70.length - 1] === "/" ? "" : "(?=\\/|$)";
55359
+ return new RegExp(path70, flags2);
55360
55360
  }
55361
55361
  __name(pathtoRegexp, "pathtoRegexp");
55362
55362
  }
@@ -55371,19 +55371,19 @@ var require_layer = __commonJS({
55371
55371
  var debug = require_src3()("express:router:layer");
55372
55372
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
55373
55373
  module3.exports = Layer;
55374
- function Layer(path69, options30, fn2) {
55374
+ function Layer(path70, options30, fn2) {
55375
55375
  if (!(this instanceof Layer)) {
55376
- return new Layer(path69, options30, fn2);
55376
+ return new Layer(path70, options30, fn2);
55377
55377
  }
55378
- debug("new %o", path69);
55378
+ debug("new %o", path70);
55379
55379
  var opts = options30 || {};
55380
55380
  this.handle = fn2;
55381
55381
  this.name = fn2.name || "<anonymous>";
55382
55382
  this.params = void 0;
55383
55383
  this.path = void 0;
55384
- this.regexp = pathRegexp(path69, this.keys = [], opts);
55385
- this.regexp.fast_star = path69 === "*";
55386
- this.regexp.fast_slash = path69 === "/" && opts.end === false;
55384
+ this.regexp = pathRegexp(path70, this.keys = [], opts);
55385
+ this.regexp.fast_star = path70 === "*";
55386
+ this.regexp.fast_slash = path70 === "/" && opts.end === false;
55387
55387
  }
55388
55388
  __name(Layer, "Layer");
55389
55389
  Layer.prototype.handle_error = /* @__PURE__ */ __name(function handle_error(error2, req, res, next) {
@@ -55408,20 +55408,20 @@ var require_layer = __commonJS({
55408
55408
  next(err);
55409
55409
  }
55410
55410
  }, "handle");
55411
- Layer.prototype.match = /* @__PURE__ */ __name(function match2(path69) {
55411
+ Layer.prototype.match = /* @__PURE__ */ __name(function match2(path70) {
55412
55412
  var match3;
55413
- if (path69 != null) {
55413
+ if (path70 != null) {
55414
55414
  if (this.regexp.fast_slash) {
55415
55415
  this.params = {};
55416
55416
  this.path = "";
55417
55417
  return true;
55418
55418
  }
55419
55419
  if (this.regexp.fast_star) {
55420
- this.params = { "0": decode_param(path69) };
55421
- this.path = path69;
55420
+ this.params = { "0": decode_param(path70) };
55421
+ this.path = path70;
55422
55422
  return true;
55423
55423
  }
55424
- match3 = this.regexp.exec(path69);
55424
+ match3 = this.regexp.exec(path70);
55425
55425
  }
55426
55426
  if (!match3) {
55427
55427
  this.params = void 0;
@@ -55519,10 +55519,10 @@ var require_route = __commonJS({
55519
55519
  var slice = Array.prototype.slice;
55520
55520
  var toString2 = Object.prototype.toString;
55521
55521
  module3.exports = Route;
55522
- function Route(path69) {
55523
- this.path = path69;
55522
+ function Route(path70) {
55523
+ this.path = path70;
55524
55524
  this.stack = [];
55525
- debug("new %o", path69);
55525
+ debug("new %o", path70);
55526
55526
  this.methods = {};
55527
55527
  }
55528
55528
  __name(Route, "Route");
@@ -55741,8 +55741,8 @@ var require_router = __commonJS({
55741
55741
  if (++sync > 100) {
55742
55742
  return setImmediate(next, err);
55743
55743
  }
55744
- var path69 = getPathname(req);
55745
- if (path69 == null) {
55744
+ var path70 = getPathname(req);
55745
+ if (path70 == null) {
55746
55746
  return done(layerError);
55747
55747
  }
55748
55748
  var layer;
@@ -55750,7 +55750,7 @@ var require_router = __commonJS({
55750
55750
  var route2;
55751
55751
  while (match2 !== true && idx < stack.length) {
55752
55752
  layer = stack[idx++];
55753
- match2 = matchLayer(layer, path69);
55753
+ match2 = matchLayer(layer, path70);
55754
55754
  route2 = layer.route;
55755
55755
  if (typeof match2 !== "boolean") {
55756
55756
  layerError = layerError || match2;
@@ -55788,19 +55788,19 @@ var require_router = __commonJS({
55788
55788
  } else if (route2) {
55789
55789
  layer.handle_request(req, res, next);
55790
55790
  } else {
55791
- trim_prefix(layer, layerError, layerPath, path69);
55791
+ trim_prefix(layer, layerError, layerPath, path70);
55792
55792
  }
55793
55793
  sync = 0;
55794
55794
  });
55795
55795
  }
55796
55796
  __name(next, "next");
55797
- function trim_prefix(layer, layerError, layerPath, path69) {
55797
+ function trim_prefix(layer, layerError, layerPath, path70) {
55798
55798
  if (layerPath.length !== 0) {
55799
- if (layerPath !== path69.slice(0, layerPath.length)) {
55799
+ if (layerPath !== path70.slice(0, layerPath.length)) {
55800
55800
  next(layerError);
55801
55801
  return;
55802
55802
  }
55803
- var c2 = path69[layerPath.length];
55803
+ var c2 = path70[layerPath.length];
55804
55804
  if (c2 && c2 !== "/" && c2 !== ".")
55805
55805
  return next(layerError);
55806
55806
  debug("trim prefix (%s) from url %s", layerPath, req.url);
@@ -55883,7 +55883,7 @@ var require_router = __commonJS({
55883
55883
  }, "process_params");
55884
55884
  proto2.use = /* @__PURE__ */ __name(function use(fn2) {
55885
55885
  var offset = 0;
55886
- var path69 = "/";
55886
+ var path70 = "/";
55887
55887
  if (typeof fn2 !== "function") {
55888
55888
  var arg = fn2;
55889
55889
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -55891,7 +55891,7 @@ var require_router = __commonJS({
55891
55891
  }
55892
55892
  if (typeof arg !== "function") {
55893
55893
  offset = 1;
55894
- path69 = fn2;
55894
+ path70 = fn2;
55895
55895
  }
55896
55896
  }
55897
55897
  var callbacks = flatten(slice.call(arguments, offset));
@@ -55903,8 +55903,8 @@ var require_router = __commonJS({
55903
55903
  if (typeof fn2 !== "function") {
55904
55904
  throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn2));
55905
55905
  }
55906
- debug("use %o %s", path69, fn2.name || "<anonymous>");
55907
- var layer = new Layer(path69, {
55906
+ debug("use %o %s", path70, fn2.name || "<anonymous>");
55907
+ var layer = new Layer(path70, {
55908
55908
  sensitive: this.caseSensitive,
55909
55909
  strict: false,
55910
55910
  end: false
@@ -55914,9 +55914,9 @@ var require_router = __commonJS({
55914
55914
  }
55915
55915
  return this;
55916
55916
  }, "use");
55917
- proto2.route = /* @__PURE__ */ __name(function route2(path69) {
55918
- var route3 = new Route(path69);
55919
- var layer = new Layer(path69, {
55917
+ proto2.route = /* @__PURE__ */ __name(function route2(path70) {
55918
+ var route3 = new Route(path70);
55919
+ var layer = new Layer(path70, {
55920
55920
  sensitive: this.caseSensitive,
55921
55921
  strict: this.strict,
55922
55922
  end: true
@@ -55926,8 +55926,8 @@ var require_router = __commonJS({
55926
55926
  return route3;
55927
55927
  }, "route");
55928
55928
  methods.concat("all").forEach(function(method) {
55929
- proto2[method] = function(path69) {
55930
- var route2 = this.route(path69);
55929
+ proto2[method] = function(path70) {
55930
+ var route2 = this.route(path70);
55931
55931
  route2[method].apply(route2, slice.call(arguments, 1));
55932
55932
  return this;
55933
55933
  };
@@ -55967,9 +55967,9 @@ var require_router = __commonJS({
55967
55967
  return toString2.call(obj).replace(objectRegExp, "$1");
55968
55968
  }
55969
55969
  __name(gettype, "gettype");
55970
- function matchLayer(layer, path69) {
55970
+ function matchLayer(layer, path70) {
55971
55971
  try {
55972
- return layer.match(path69);
55972
+ return layer.match(path70);
55973
55973
  } catch (err) {
55974
55974
  return err;
55975
55975
  }
@@ -56096,13 +56096,13 @@ var require_view = __commonJS({
56096
56096
  "use strict";
56097
56097
  init_import_meta_url();
56098
56098
  var debug = require_src3()("express:view");
56099
- var path69 = require("path");
56099
+ var path70 = require("path");
56100
56100
  var fs27 = require("fs");
56101
- var dirname15 = path69.dirname;
56102
- var basename5 = path69.basename;
56103
- var extname5 = path69.extname;
56104
- var join17 = path69.join;
56105
- var resolve22 = path69.resolve;
56101
+ var dirname15 = path70.dirname;
56102
+ var basename5 = path70.basename;
56103
+ var extname5 = path70.extname;
56104
+ var join17 = path70.join;
56105
+ var resolve22 = path70.resolve;
56106
56106
  module3.exports = View;
56107
56107
  function View(name2, options30) {
56108
56108
  var opts = options30 || {};
@@ -56132,17 +56132,17 @@ var require_view = __commonJS({
56132
56132
  }
56133
56133
  __name(View, "View");
56134
56134
  View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name2) {
56135
- var path70;
56135
+ var path71;
56136
56136
  var roots = [].concat(this.root);
56137
56137
  debug('lookup "%s"', name2);
56138
- for (var i = 0; i < roots.length && !path70; i++) {
56138
+ for (var i = 0; i < roots.length && !path71; i++) {
56139
56139
  var root = roots[i];
56140
56140
  var loc = resolve22(root, name2);
56141
56141
  var dir = dirname15(loc);
56142
56142
  var file = basename5(loc);
56143
- path70 = this.resolve(dir, file);
56143
+ path71 = this.resolve(dir, file);
56144
56144
  }
56145
- return path70;
56145
+ return path71;
56146
56146
  }, "lookup");
56147
56147
  View.prototype.render = /* @__PURE__ */ __name(function render2(options30, callback) {
56148
56148
  debug('render "%s"', this.path);
@@ -56150,21 +56150,21 @@ var require_view = __commonJS({
56150
56150
  }, "render");
56151
56151
  View.prototype.resolve = /* @__PURE__ */ __name(function resolve23(dir, file) {
56152
56152
  var ext = this.ext;
56153
- var path70 = join17(dir, file);
56154
- var stat6 = tryStat(path70);
56153
+ var path71 = join17(dir, file);
56154
+ var stat6 = tryStat(path71);
56155
56155
  if (stat6 && stat6.isFile()) {
56156
- return path70;
56156
+ return path71;
56157
56157
  }
56158
- path70 = join17(dir, basename5(file, ext), "index" + ext);
56159
- stat6 = tryStat(path70);
56158
+ path71 = join17(dir, basename5(file, ext), "index" + ext);
56159
+ stat6 = tryStat(path71);
56160
56160
  if (stat6 && stat6.isFile()) {
56161
- return path70;
56161
+ return path71;
56162
56162
  }
56163
56163
  }, "resolve");
56164
- function tryStat(path70) {
56165
- debug('stat "%s"', path70);
56164
+ function tryStat(path71) {
56165
+ debug('stat "%s"', path71);
56166
56166
  try {
56167
- return fs27.statSync(path70);
56167
+ return fs27.statSync(path71);
56168
56168
  } catch (e3) {
56169
56169
  return void 0;
56170
56170
  }
@@ -56483,7 +56483,7 @@ var require_types = __commonJS({
56483
56483
  var require_mime2 = __commonJS({
56484
56484
  "../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module3) {
56485
56485
  init_import_meta_url();
56486
- var path69 = require("path");
56486
+ var path70 = require("path");
56487
56487
  var fs27 = require("fs");
56488
56488
  function Mime() {
56489
56489
  this.types = /* @__PURE__ */ Object.create(null);
@@ -56514,8 +56514,8 @@ var require_mime2 = __commonJS({
56514
56514
  this.define(map);
56515
56515
  this._loading = null;
56516
56516
  };
56517
- Mime.prototype.lookup = function(path70, fallback) {
56518
- var ext = path70.replace(/^.*[\.\/\\]/, "").toLowerCase();
56517
+ Mime.prototype.lookup = function(path71, fallback) {
56518
+ var ext = path71.replace(/^.*[\.\/\\]/, "").toLowerCase();
56519
56519
  return this.types[ext] || fallback || this.default_type;
56520
56520
  };
56521
56521
  Mime.prototype.extension = function(mimeType) {
@@ -56762,29 +56762,29 @@ var require_send = __commonJS({
56762
56762
  var ms = require_ms2();
56763
56763
  var onFinished = require_on_finished();
56764
56764
  var parseRange = require_range_parser();
56765
- var path69 = require("path");
56765
+ var path70 = require("path");
56766
56766
  var statuses = require_statuses();
56767
56767
  var Stream = require("stream");
56768
56768
  var util6 = require("util");
56769
- var extname5 = path69.extname;
56770
- var join17 = path69.join;
56771
- var normalize4 = path69.normalize;
56772
- var resolve22 = path69.resolve;
56773
- var sep4 = path69.sep;
56769
+ var extname5 = path70.extname;
56770
+ var join17 = path70.join;
56771
+ var normalize4 = path70.normalize;
56772
+ var resolve22 = path70.resolve;
56773
+ var sep4 = path70.sep;
56774
56774
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
56775
56775
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
56776
56776
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
56777
56777
  module3.exports = send;
56778
56778
  module3.exports.mime = mime;
56779
- function send(req, path70, options30) {
56780
- return new SendStream(req, path70, options30);
56779
+ function send(req, path71, options30) {
56780
+ return new SendStream(req, path71, options30);
56781
56781
  }
56782
56782
  __name(send, "send");
56783
- function SendStream(req, path70, options30) {
56783
+ function SendStream(req, path71, options30) {
56784
56784
  Stream.call(this);
56785
56785
  var opts = options30 || {};
56786
56786
  this.options = opts;
56787
- this.path = path70;
56787
+ this.path = path71;
56788
56788
  this.req = req;
56789
56789
  this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
56790
56790
  this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
@@ -56831,8 +56831,8 @@ var require_send = __commonJS({
56831
56831
  this._index = index2;
56832
56832
  return this;
56833
56833
  }, "index"), "send.index: pass index as option");
56834
- SendStream.prototype.root = /* @__PURE__ */ __name(function root(path70) {
56835
- this._root = resolve22(String(path70));
56834
+ SendStream.prototype.root = /* @__PURE__ */ __name(function root(path71) {
56835
+ this._root = resolve22(String(path71));
56836
56836
  debug("root %s", this._root);
56837
56837
  return this;
56838
56838
  }, "root");
@@ -56945,10 +56945,10 @@ var require_send = __commonJS({
56945
56945
  var lastModified = this.res.getHeader("Last-Modified");
56946
56946
  return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
56947
56947
  }, "isRangeFresh");
56948
- SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path70) {
56948
+ SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path71) {
56949
56949
  var res = this.res;
56950
56950
  if (hasListeners(this, "directory")) {
56951
- this.emit("directory", res, path70);
56951
+ this.emit("directory", res, path71);
56952
56952
  return;
56953
56953
  }
56954
56954
  if (this.hasTrailingSlash()) {
@@ -56968,42 +56968,42 @@ var require_send = __commonJS({
56968
56968
  SendStream.prototype.pipe = /* @__PURE__ */ __name(function pipe(res) {
56969
56969
  var root = this._root;
56970
56970
  this.res = res;
56971
- var path70 = decode(this.path);
56972
- if (path70 === -1) {
56971
+ var path71 = decode(this.path);
56972
+ if (path71 === -1) {
56973
56973
  this.error(400);
56974
56974
  return res;
56975
56975
  }
56976
- if (~path70.indexOf("\0")) {
56976
+ if (~path71.indexOf("\0")) {
56977
56977
  this.error(400);
56978
56978
  return res;
56979
56979
  }
56980
56980
  var parts;
56981
56981
  if (root !== null) {
56982
- if (path70) {
56983
- path70 = normalize4("." + sep4 + path70);
56982
+ if (path71) {
56983
+ path71 = normalize4("." + sep4 + path71);
56984
56984
  }
56985
- if (UP_PATH_REGEXP.test(path70)) {
56986
- debug('malicious path "%s"', path70);
56985
+ if (UP_PATH_REGEXP.test(path71)) {
56986
+ debug('malicious path "%s"', path71);
56987
56987
  this.error(403);
56988
56988
  return res;
56989
56989
  }
56990
- parts = path70.split(sep4);
56991
- path70 = normalize4(join17(root, path70));
56990
+ parts = path71.split(sep4);
56991
+ path71 = normalize4(join17(root, path71));
56992
56992
  } else {
56993
- if (UP_PATH_REGEXP.test(path70)) {
56994
- debug('malicious path "%s"', path70);
56993
+ if (UP_PATH_REGEXP.test(path71)) {
56994
+ debug('malicious path "%s"', path71);
56995
56995
  this.error(403);
56996
56996
  return res;
56997
56997
  }
56998
- parts = normalize4(path70).split(sep4);
56999
- path70 = resolve22(path70);
56998
+ parts = normalize4(path71).split(sep4);
56999
+ path71 = resolve22(path71);
57000
57000
  }
57001
57001
  if (containsDotFile(parts)) {
57002
57002
  var access3 = this._dotfiles;
57003
57003
  if (access3 === void 0) {
57004
57004
  access3 = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
57005
57005
  }
57006
- debug('%s dotfile "%s"', access3, path70);
57006
+ debug('%s dotfile "%s"', access3, path71);
57007
57007
  switch (access3) {
57008
57008
  case "allow":
57009
57009
  break;
@@ -57017,13 +57017,13 @@ var require_send = __commonJS({
57017
57017
  }
57018
57018
  }
57019
57019
  if (this._index.length && this.hasTrailingSlash()) {
57020
- this.sendIndex(path70);
57020
+ this.sendIndex(path71);
57021
57021
  return res;
57022
57022
  }
57023
- this.sendFile(path70);
57023
+ this.sendFile(path71);
57024
57024
  return res;
57025
57025
  }, "pipe");
57026
- SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path70, stat6) {
57026
+ SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path71, stat6) {
57027
57027
  var len = stat6.size;
57028
57028
  var options30 = this.options;
57029
57029
  var opts = {};
@@ -57035,9 +57035,9 @@ var require_send = __commonJS({
57035
57035
  this.headersAlreadySent();
57036
57036
  return;
57037
57037
  }
57038
- debug('pipe "%s"', path70);
57039
- this.setHeader(path70, stat6);
57040
- this.type(path70);
57038
+ debug('pipe "%s"', path71);
57039
+ this.setHeader(path71, stat6);
57040
+ this.type(path71);
57041
57041
  if (this.isConditionalGET()) {
57042
57042
  if (this.isPreconditionFailure()) {
57043
57043
  this.error(412);
@@ -57087,28 +57087,28 @@ var require_send = __commonJS({
57087
57087
  res.end();
57088
57088
  return;
57089
57089
  }
57090
- this.stream(path70, opts);
57090
+ this.stream(path71, opts);
57091
57091
  }, "send");
57092
- SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path70) {
57092
+ SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path71) {
57093
57093
  var i = 0;
57094
57094
  var self2 = this;
57095
- debug('stat "%s"', path70);
57096
- fs27.stat(path70, /* @__PURE__ */ __name(function onstat(err, stat6) {
57097
- if (err && err.code === "ENOENT" && !extname5(path70) && path70[path70.length - 1] !== sep4) {
57095
+ debug('stat "%s"', path71);
57096
+ fs27.stat(path71, /* @__PURE__ */ __name(function onstat(err, stat6) {
57097
+ if (err && err.code === "ENOENT" && !extname5(path71) && path71[path71.length - 1] !== sep4) {
57098
57098
  return next(err);
57099
57099
  }
57100
57100
  if (err)
57101
57101
  return self2.onStatError(err);
57102
57102
  if (stat6.isDirectory())
57103
- return self2.redirect(path70);
57104
- self2.emit("file", path70, stat6);
57105
- self2.send(path70, stat6);
57103
+ return self2.redirect(path71);
57104
+ self2.emit("file", path71, stat6);
57105
+ self2.send(path71, stat6);
57106
57106
  }, "onstat"));
57107
57107
  function next(err) {
57108
57108
  if (self2._extensions.length <= i) {
57109
57109
  return err ? self2.onStatError(err) : self2.error(404);
57110
57110
  }
57111
- var p2 = path70 + "." + self2._extensions[i++];
57111
+ var p2 = path71 + "." + self2._extensions[i++];
57112
57112
  debug('stat "%s"', p2);
57113
57113
  fs27.stat(p2, function(err2, stat6) {
57114
57114
  if (err2)
@@ -57121,7 +57121,7 @@ var require_send = __commonJS({
57121
57121
  }
57122
57122
  __name(next, "next");
57123
57123
  }, "sendFile");
57124
- SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path70) {
57124
+ SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path71) {
57125
57125
  var i = -1;
57126
57126
  var self2 = this;
57127
57127
  function next(err) {
@@ -57130,7 +57130,7 @@ var require_send = __commonJS({
57130
57130
  return self2.onStatError(err);
57131
57131
  return self2.error(404);
57132
57132
  }
57133
- var p2 = join17(path70, self2._index[i]);
57133
+ var p2 = join17(path71, self2._index[i]);
57134
57134
  debug('stat "%s"', p2);
57135
57135
  fs27.stat(p2, function(err2, stat6) {
57136
57136
  if (err2)
@@ -57144,10 +57144,10 @@ var require_send = __commonJS({
57144
57144
  __name(next, "next");
57145
57145
  next();
57146
57146
  }, "sendIndex");
57147
- SendStream.prototype.stream = /* @__PURE__ */ __name(function stream2(path70, options30) {
57147
+ SendStream.prototype.stream = /* @__PURE__ */ __name(function stream2(path71, options30) {
57148
57148
  var self2 = this;
57149
57149
  var res = this.res;
57150
- var stream3 = fs27.createReadStream(path70, options30);
57150
+ var stream3 = fs27.createReadStream(path71, options30);
57151
57151
  this.emit("stream", stream3);
57152
57152
  stream3.pipe(res);
57153
57153
  function cleanup() {
@@ -57163,11 +57163,11 @@ var require_send = __commonJS({
57163
57163
  self2.emit("end");
57164
57164
  }, "onend"));
57165
57165
  }, "stream");
57166
- SendStream.prototype.type = /* @__PURE__ */ __name(function type(path70) {
57166
+ SendStream.prototype.type = /* @__PURE__ */ __name(function type(path71) {
57167
57167
  var res = this.res;
57168
57168
  if (res.getHeader("Content-Type"))
57169
57169
  return;
57170
- var type2 = mime.lookup(path70);
57170
+ var type2 = mime.lookup(path71);
57171
57171
  if (!type2) {
57172
57172
  debug("no content-type");
57173
57173
  return;
@@ -57176,9 +57176,9 @@ var require_send = __commonJS({
57176
57176
  debug("content-type %s", type2);
57177
57177
  res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
57178
57178
  }, "type");
57179
- SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path70, stat6) {
57179
+ SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path71, stat6) {
57180
57180
  var res = this.res;
57181
- this.emit("headers", res, path70, stat6);
57181
+ this.emit("headers", res, path71, stat6);
57182
57182
  if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
57183
57183
  debug("accept ranges");
57184
57184
  res.setHeader("Accept-Ranges", "bytes");
@@ -57243,9 +57243,9 @@ var require_send = __commonJS({
57243
57243
  return err instanceof Error ? createError(status2, err, { expose: false }) : createError(status2, err);
57244
57244
  }
57245
57245
  __name(createHttpError, "createHttpError");
57246
- function decode(path70) {
57246
+ function decode(path71) {
57247
57247
  try {
57248
- return decodeURIComponent(path70);
57248
+ return decodeURIComponent(path71);
57249
57249
  } catch (err) {
57250
57250
  return -1;
57251
57251
  }
@@ -58184,12 +58184,12 @@ var require_utils5 = __commonJS({
58184
58184
  var querystring = require("querystring");
58185
58185
  exports2.etag = createETagGenerator({ weak: false });
58186
58186
  exports2.wetag = createETagGenerator({ weak: true });
58187
- exports2.isAbsolute = function(path69) {
58188
- if ("/" === path69[0])
58187
+ exports2.isAbsolute = function(path70) {
58188
+ if ("/" === path70[0])
58189
58189
  return true;
58190
- if (":" === path69[1] && ("\\" === path69[2] || "/" === path69[2]))
58190
+ if (":" === path70[1] && ("\\" === path70[2] || "/" === path70[2]))
58191
58191
  return true;
58192
- if ("\\\\" === path69.substring(0, 2))
58192
+ if ("\\\\" === path70.substring(0, 2))
58193
58193
  return true;
58194
58194
  };
58195
58195
  exports2.flatten = deprecate.function(
@@ -58407,7 +58407,7 @@ var require_application = __commonJS({
58407
58407
  }, "handle");
58408
58408
  app.use = /* @__PURE__ */ __name(function use(fn2) {
58409
58409
  var offset = 0;
58410
- var path69 = "/";
58410
+ var path70 = "/";
58411
58411
  if (typeof fn2 !== "function") {
58412
58412
  var arg = fn2;
58413
58413
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -58415,7 +58415,7 @@ var require_application = __commonJS({
58415
58415
  }
58416
58416
  if (typeof arg !== "function") {
58417
58417
  offset = 1;
58418
- path69 = fn2;
58418
+ path70 = fn2;
58419
58419
  }
58420
58420
  }
58421
58421
  var fns = flatten(slice.call(arguments, offset));
@@ -58426,12 +58426,12 @@ var require_application = __commonJS({
58426
58426
  var router = this._router;
58427
58427
  fns.forEach(function(fn3) {
58428
58428
  if (!fn3 || !fn3.handle || !fn3.set) {
58429
- return router.use(path69, fn3);
58429
+ return router.use(path70, fn3);
58430
58430
  }
58431
- debug(".use app under %s", path69);
58432
- fn3.mountpath = path69;
58431
+ debug(".use app under %s", path70);
58432
+ fn3.mountpath = path70;
58433
58433
  fn3.parent = this;
58434
- router.use(path69, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
58434
+ router.use(path70, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
58435
58435
  var orig = req.app;
58436
58436
  fn3.handle(req, res, function(err) {
58437
58437
  setPrototypeOf(req, orig.request);
@@ -58443,9 +58443,9 @@ var require_application = __commonJS({
58443
58443
  }, this);
58444
58444
  return this;
58445
58445
  }, "use");
58446
- app.route = /* @__PURE__ */ __name(function route2(path69) {
58446
+ app.route = /* @__PURE__ */ __name(function route2(path70) {
58447
58447
  this.lazyrouter();
58448
- return this._router.route(path69);
58448
+ return this._router.route(path70);
58449
58449
  }, "route");
58450
58450
  app.engine = /* @__PURE__ */ __name(function engine(ext, fn2) {
58451
58451
  if (typeof fn2 !== "function") {
@@ -58496,7 +58496,7 @@ var require_application = __commonJS({
58496
58496
  }
58497
58497
  return this;
58498
58498
  }, "set");
58499
- app.path = /* @__PURE__ */ __name(function path69() {
58499
+ app.path = /* @__PURE__ */ __name(function path70() {
58500
58500
  return this.parent ? this.parent.path() + this.mountpath : "";
58501
58501
  }, "path");
58502
58502
  app.enabled = /* @__PURE__ */ __name(function enabled(setting) {
@@ -58512,19 +58512,19 @@ var require_application = __commonJS({
58512
58512
  return this.set(setting, false);
58513
58513
  }, "disable");
58514
58514
  methods.forEach(function(method) {
58515
- app[method] = function(path69) {
58515
+ app[method] = function(path70) {
58516
58516
  if (method === "get" && arguments.length === 1) {
58517
- return this.set(path69);
58517
+ return this.set(path70);
58518
58518
  }
58519
58519
  this.lazyrouter();
58520
- var route2 = this._router.route(path69);
58520
+ var route2 = this._router.route(path70);
58521
58521
  route2[method].apply(route2, slice.call(arguments, 1));
58522
58522
  return this;
58523
58523
  };
58524
58524
  });
58525
- app.all = /* @__PURE__ */ __name(function all2(path69) {
58525
+ app.all = /* @__PURE__ */ __name(function all2(path70) {
58526
58526
  this.lazyrouter();
58527
- var route2 = this._router.route(path69);
58527
+ var route2 = this._router.route(path70);
58528
58528
  var args = slice.call(arguments, 1);
58529
58529
  for (var i = 0; i < methods.length; i++) {
58530
58530
  route2[methods[i]].apply(route2, args);
@@ -59345,7 +59345,7 @@ var require_request3 = __commonJS({
59345
59345
  var subdomains2 = !isIP(hostname2) ? hostname2.split(".").reverse() : [hostname2];
59346
59346
  return subdomains2.slice(offset);
59347
59347
  }, "subdomains"));
59348
- defineGetter(req, "path", /* @__PURE__ */ __name(function path69() {
59348
+ defineGetter(req, "path", /* @__PURE__ */ __name(function path70() {
59349
59349
  return parse6(this).pathname;
59350
59350
  }, "path"));
59351
59351
  defineGetter(req, "hostname", /* @__PURE__ */ __name(function hostname2() {
@@ -59664,7 +59664,7 @@ var require_response2 = __commonJS({
59664
59664
  var http4 = require("http");
59665
59665
  var isAbsolute2 = require_utils5().isAbsolute;
59666
59666
  var onFinished = require_on_finished();
59667
- var path69 = require("path");
59667
+ var path70 = require("path");
59668
59668
  var statuses = require_statuses();
59669
59669
  var merge = require_utils_merge();
59670
59670
  var sign = require_cookie_signature().sign;
@@ -59673,9 +59673,9 @@ var require_response2 = __commonJS({
59673
59673
  var setCharset = require_utils5().setCharset;
59674
59674
  var cookie = require_cookie();
59675
59675
  var send = require_send();
59676
- var extname5 = path69.extname;
59676
+ var extname5 = path70.extname;
59677
59677
  var mime = send.mime;
59678
- var resolve22 = path69.resolve;
59678
+ var resolve22 = path70.resolve;
59679
59679
  var vary = require_vary();
59680
59680
  var res = Object.create(http4.ServerResponse.prototype);
59681
59681
  module3.exports = res;
@@ -59853,26 +59853,26 @@ var require_response2 = __commonJS({
59853
59853
  this.type("txt");
59854
59854
  return this.send(body);
59855
59855
  }, "sendStatus");
59856
- res.sendFile = /* @__PURE__ */ __name(function sendFile(path70, options30, callback) {
59856
+ res.sendFile = /* @__PURE__ */ __name(function sendFile(path71, options30, callback) {
59857
59857
  var done = callback;
59858
59858
  var req = this.req;
59859
59859
  var res2 = this;
59860
59860
  var next = req.next;
59861
59861
  var opts = options30 || {};
59862
- if (!path70) {
59862
+ if (!path71) {
59863
59863
  throw new TypeError("path argument is required to res.sendFile");
59864
59864
  }
59865
- if (typeof path70 !== "string") {
59865
+ if (typeof path71 !== "string") {
59866
59866
  throw new TypeError("path must be a string to res.sendFile");
59867
59867
  }
59868
59868
  if (typeof options30 === "function") {
59869
59869
  done = options30;
59870
59870
  opts = {};
59871
59871
  }
59872
- if (!opts.root && !isAbsolute2(path70)) {
59872
+ if (!opts.root && !isAbsolute2(path71)) {
59873
59873
  throw new TypeError("path must be absolute or specify root to res.sendFile");
59874
59874
  }
59875
- var pathname = encodeURI(path70);
59875
+ var pathname = encodeURI(path71);
59876
59876
  var file = send(req, pathname, opts);
59877
59877
  sendfile(res2, file, opts, function(err) {
59878
59878
  if (done)
@@ -59884,7 +59884,7 @@ var require_response2 = __commonJS({
59884
59884
  }
59885
59885
  });
59886
59886
  }, "sendFile");
59887
- res.sendfile = function(path70, options30, callback) {
59887
+ res.sendfile = function(path71, options30, callback) {
59888
59888
  var done = callback;
59889
59889
  var req = this.req;
59890
59890
  var res2 = this;
@@ -59894,7 +59894,7 @@ var require_response2 = __commonJS({
59894
59894
  done = options30;
59895
59895
  opts = {};
59896
59896
  }
59897
- var file = send(req, path70, opts);
59897
+ var file = send(req, path71, opts);
59898
59898
  sendfile(res2, file, opts, function(err) {
59899
59899
  if (done)
59900
59900
  return done(err);
@@ -59909,7 +59909,7 @@ var require_response2 = __commonJS({
59909
59909
  res.sendfile,
59910
59910
  "res.sendfile: Use res.sendFile instead"
59911
59911
  );
59912
- res.download = /* @__PURE__ */ __name(function download(path70, filename, options30, callback) {
59912
+ res.download = /* @__PURE__ */ __name(function download(path71, filename, options30, callback) {
59913
59913
  var done = callback;
59914
59914
  var name2 = filename;
59915
59915
  var opts = options30 || null;
@@ -59926,7 +59926,7 @@ var require_response2 = __commonJS({
59926
59926
  opts = filename;
59927
59927
  }
59928
59928
  var headers = {
59929
- "Content-Disposition": contentDisposition(name2 || path70)
59929
+ "Content-Disposition": contentDisposition(name2 || path71)
59930
59930
  };
59931
59931
  if (opts && opts.headers) {
59932
59932
  var keys = Object.keys(opts.headers);
@@ -59939,7 +59939,7 @@ var require_response2 = __commonJS({
59939
59939
  }
59940
59940
  opts = Object.create(opts);
59941
59941
  opts.headers = headers;
59942
- var fullPath = !opts.root ? resolve22(path70) : path70;
59942
+ var fullPath = !opts.root ? resolve22(path71) : path71;
59943
59943
  return this.sendFile(fullPath, opts, done);
59944
59944
  }, "download");
59945
59945
  res.contentType = res.type = /* @__PURE__ */ __name(function contentType(type) {
@@ -60248,11 +60248,11 @@ var require_serve_static = __commonJS({
60248
60248
  }
60249
60249
  var forwardError = !fallthrough;
60250
60250
  var originalUrl = parseUrl2.original(req);
60251
- var path69 = parseUrl2(req).pathname;
60252
- if (path69 === "/" && originalUrl.pathname.substr(-1) !== "/") {
60253
- path69 = "";
60251
+ var path70 = parseUrl2(req).pathname;
60252
+ if (path70 === "/" && originalUrl.pathname.substr(-1) !== "/") {
60253
+ path70 = "";
60254
60254
  }
60255
- var stream2 = send(req, path69, opts);
60255
+ var stream2 = send(req, path70, opts);
60256
60256
  stream2.on("directory", onDirectory);
60257
60257
  if (setHeaders) {
60258
60258
  stream2.on("headers", setHeaders);
@@ -61468,8 +61468,8 @@ var require_uri_all = __commonJS({
61468
61468
  wsComponents.secure = void 0;
61469
61469
  }
61470
61470
  if (wsComponents.resourceName) {
61471
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path69 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
61472
- wsComponents.path = path69 && path69 !== "/" ? path69 : void 0;
61471
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path70 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
61472
+ wsComponents.path = path70 && path70 !== "/" ? path70 : void 0;
61473
61473
  wsComponents.query = query;
61474
61474
  wsComponents.resourceName = void 0;
61475
61475
  }
@@ -61888,13 +61888,13 @@ var require_util10 = __commonJS({
61888
61888
  }
61889
61889
  __name(toQuotedString, "toQuotedString");
61890
61890
  function getPathExpr(currentPath, expr, jsonPointers, isNumber2) {
61891
- var path69 = jsonPointers ? "'/' + " + expr + (isNumber2 ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber2 ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
61892
- return joinPaths(currentPath, path69);
61891
+ var path70 = jsonPointers ? "'/' + " + expr + (isNumber2 ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber2 ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
61892
+ return joinPaths(currentPath, path70);
61893
61893
  }
61894
61894
  __name(getPathExpr, "getPathExpr");
61895
61895
  function getPath(currentPath, prop, jsonPointers) {
61896
- var path69 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
61897
- return joinPaths(currentPath, path69);
61896
+ var path70 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
61897
+ return joinPaths(currentPath, path70);
61898
61898
  }
61899
61899
  __name(getPath, "getPath");
61900
61900
  var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
@@ -72337,11 +72337,11 @@ var extractPathname, URL_REGEX, HOST_WITH_PORT_REGEX, PATH_REGEX, validateUrl;
72337
72337
  var init_validateURL = __esm({
72338
72338
  "../pages-shared/metadata-generator/validateURL.ts"() {
72339
72339
  init_import_meta_url();
72340
- extractPathname = /* @__PURE__ */ __name((path69 = "/", includeSearch, includeHash) => {
72341
- if (!path69.startsWith("/")) {
72342
- path69 = `/${path69}`;
72340
+ extractPathname = /* @__PURE__ */ __name((path70 = "/", includeSearch, includeHash) => {
72341
+ if (!path70.startsWith("/")) {
72342
+ path70 = `/${path70}`;
72343
72343
  }
72344
- const url4 = new URL(`//${path69}`, "relative://");
72344
+ const url4 = new URL(`//${path70}`, "relative://");
72345
72345
  return `${url4.pathname}${includeSearch ? url4.search : ""}${includeHash ? url4.hash : ""}`;
72346
72346
  }, "extractPathname");
72347
72347
  URL_REGEX = /^https:\/\/+(?<host>[^/]+)\/?(?<path>.*)/;
@@ -72374,8 +72374,8 @@ var init_validateURL = __esm({
72374
72374
  if (!token.startsWith("/") && onlyRelative) {
72375
72375
  token = `/${token}`;
72376
72376
  }
72377
- const path69 = PATH_REGEX.exec(token);
72378
- if (path69) {
72377
+ const path70 = PATH_REGEX.exec(token);
72378
+ if (path70) {
72379
72379
  try {
72380
72380
  return [extractPathname(token, includeSearch, includeHash), void 0];
72381
72381
  } catch {
@@ -72431,7 +72431,7 @@ function parseHeaders(input) {
72431
72431
  });
72432
72432
  }
72433
72433
  }
72434
- const [path69, pathError] = validateUrl(line, false, true);
72434
+ const [path70, pathError] = validateUrl(line, false, true);
72435
72435
  if (pathError) {
72436
72436
  invalid.push({
72437
72437
  line,
@@ -72442,7 +72442,7 @@ function parseHeaders(input) {
72442
72442
  continue;
72443
72443
  }
72444
72444
  rule = {
72445
- path: path69,
72445
+ path: path70,
72446
72446
  line,
72447
72447
  headers: {},
72448
72448
  unsetHeaders: []
@@ -72681,7 +72681,7 @@ var require_constants8 = __commonJS({
72681
72681
  "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports2, module3) {
72682
72682
  "use strict";
72683
72683
  init_import_meta_url();
72684
- var path69 = require("path");
72684
+ var path70 = require("path");
72685
72685
  var WIN_SLASH = "\\\\/";
72686
72686
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
72687
72687
  var DOT_LITERAL = "\\.";
@@ -72851,7 +72851,7 @@ var require_constants8 = __commonJS({
72851
72851
  /* | */
72852
72852
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
72853
72853
  /* \uFEFF */
72854
- SEP: path69.sep,
72854
+ SEP: path70.sep,
72855
72855
  /**
72856
72856
  * Create EXTGLOB_CHARS
72857
72857
  */
@@ -72879,7 +72879,7 @@ var require_utils6 = __commonJS({
72879
72879
  "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports2) {
72880
72880
  "use strict";
72881
72881
  init_import_meta_url();
72882
- var path69 = require("path");
72882
+ var path70 = require("path");
72883
72883
  var win32 = process.platform === "win32";
72884
72884
  var {
72885
72885
  REGEX_BACKSLASH,
@@ -72908,7 +72908,7 @@ var require_utils6 = __commonJS({
72908
72908
  if (options30 && typeof options30.windows === "boolean") {
72909
72909
  return options30.windows;
72910
72910
  }
72911
- return win32 === true || path69.sep === "\\";
72911
+ return win32 === true || path70.sep === "\\";
72912
72912
  };
72913
72913
  exports2.escapeLast = (input, char, lastIdx) => {
72914
72914
  const idx = input.lastIndexOf(char, lastIdx);
@@ -74059,7 +74059,7 @@ var require_picomatch = __commonJS({
74059
74059
  "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports2, module3) {
74060
74060
  "use strict";
74061
74061
  init_import_meta_url();
74062
- var path69 = require("path");
74062
+ var path70 = require("path");
74063
74063
  var scan = require_scan();
74064
74064
  var parse6 = require_parse5();
74065
74065
  var utils = require_utils6();
@@ -74145,7 +74145,7 @@ var require_picomatch = __commonJS({
74145
74145
  };
74146
74146
  picomatch.matchBase = (input, glob, options30, posix2 = utils.isWindows(options30)) => {
74147
74147
  const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options30);
74148
- return regex2.test(path69.basename(input));
74148
+ return regex2.test(path70.basename(input));
74149
74149
  };
74150
74150
  picomatch.isMatch = (str, patterns, options30) => picomatch(patterns, options30)(str);
74151
74151
  picomatch.parse = (pattern, options30) => {
@@ -77005,8 +77005,8 @@ You should install ${missingPackages.map((p2) => p2.name).join(", ")} locally:
77005
77005
  return Array.isArray(pkg) ? results : results[0];
77006
77006
  }
77007
77007
  function npxResolve(pkg) {
77008
- const { name: name2, path: path69 } = parse4(pkg);
77009
- const packageWithPath = [name2, path69].join("");
77008
+ const { name: name2, path: path70 } = parse4(pkg);
77009
+ const packageWithPath = [name2, path70].join("");
77010
77010
  const cachedDir = INSTALL_CACHE[name2];
77011
77011
  if (!cachedDir) {
77012
77012
  throw new Error(`You must call npxImport for a package before calling npxResolve. Got: ${pkg}`);
@@ -77019,17 +77019,17 @@ function npxResolve(pkg) {
77019
77019
  async function checkPackagesAvailableLocally(pkg) {
77020
77020
  const packages = {};
77021
77021
  for (const p2 of Array.isArray(pkg) ? pkg : [pkg]) {
77022
- const { name: name2, version: version4, path: path69, exact } = parseAndValidate(p2);
77022
+ const { name: name2, version: version4, path: path70, exact } = parseAndValidate(p2);
77023
77023
  if (packages[name2])
77024
77024
  throw new Error(`npx-import cannot import the same package twice! Got: '${p2}' but already saw '${name2}' earlier!`);
77025
- const packageWithPath = [name2, path69].join("");
77025
+ const packageWithPath = [name2, path70].join("");
77026
77026
  const imported = await tryImport(packageWithPath);
77027
77027
  packages[name2] = {
77028
77028
  name: name2,
77029
77029
  packageWithPath,
77030
77030
  version: version4,
77031
77031
  exact,
77032
- path: path69,
77032
+ path: path70,
77033
77033
  imported,
77034
77034
  local: imported !== NOT_IMPORTABLE
77035
77035
  };
@@ -77040,7 +77040,7 @@ function parseAndValidate(p2) {
77040
77040
  if (p2.match(/^[.\/]/)) {
77041
77041
  throw new Error(`npx-import can only import packages, not relative paths: got ${p2}`);
77042
77042
  }
77043
- const { name: name2, version: version4, path: path69 } = parse4(p2);
77043
+ const { name: name2, version: version4, path: path70 } = parse4(p2);
77044
77044
  const validation2 = (0, import_validate_npm_package_name.default)(name2);
77045
77045
  if (!validation2.validForNewPackages) {
77046
77046
  if (validation2.warnings?.some((w2) => w2.match(/is a core module name/)))
@@ -77048,7 +77048,7 @@ function parseAndValidate(p2) {
77048
77048
  else
77049
77049
  throw new Error(`npx-import can't import invalid package name: parsed name '${name2}' from '${p2}'`);
77050
77050
  }
77051
- return { name: name2, version: version4, path: path69, exact: import_semver.default.parse(version4) !== null };
77051
+ return { name: name2, version: version4, path: path70, exact: import_semver.default.parse(version4) !== null };
77052
77052
  }
77053
77053
  async function tryImport(packageWithPath) {
77054
77054
  try {
@@ -77984,7 +77984,7 @@ A subrequest is a call to fetch(), a redirect, or a call to any Cache API method
77984
77984
  }
77985
77985
  }
77986
77986
  }, "Mutex");
77987
- var import_node_path67 = __toModule(require("node:path"));
77987
+ var import_node_path68 = __toModule(require("node:path"));
77988
77988
  async function createSQLiteDB(dbPath) {
77989
77989
  const { npxImport: npxImport2, npxResolve: npxResolve2 } = await Promise.resolve().then(() => (init_lib(), lib_exports));
77990
77990
  const { default: DatabaseConstructor } = await npxImport2("better-sqlite3@8.0.1");
@@ -77994,7 +77994,7 @@ A subrequest is a call to fetch(), a redirect, or a call to any Cache API method
77994
77994
  }
77995
77995
  __name(createSQLiteDB, "createSQLiteDB");
77996
77996
  function getSQLiteNativeBindingLocation(sqliteResolvePath) {
77997
- return import_node_path67.default.resolve(import_node_path67.default.dirname(sqliteResolvePath), "../build/Release/better_sqlite3.node");
77997
+ return import_node_path68.default.resolve(import_node_path68.default.dirname(sqliteResolvePath), "../build/Release/better_sqlite3.node");
77998
77998
  }
77999
77999
  __name(getSQLiteNativeBindingLocation, "getSQLiteNativeBindingLocation");
78000
78000
  }
@@ -78005,7 +78005,7 @@ var require_main3 = __commonJS({
78005
78005
  "../../node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"(exports2, module3) {
78006
78006
  init_import_meta_url();
78007
78007
  var fs27 = require("fs");
78008
- var path69 = require("path");
78008
+ var path70 = require("path");
78009
78009
  var os13 = require("os");
78010
78010
  function log2(message) {
78011
78011
  console.log(`[dotenv][DEBUG] ${message}`);
@@ -78043,11 +78043,11 @@ var require_main3 = __commonJS({
78043
78043
  }
78044
78044
  __name(parse6, "parse");
78045
78045
  function resolveHome(envPath) {
78046
- return envPath[0] === "~" ? path69.join(os13.homedir(), envPath.slice(1)) : envPath;
78046
+ return envPath[0] === "~" ? path70.join(os13.homedir(), envPath.slice(1)) : envPath;
78047
78047
  }
78048
78048
  __name(resolveHome, "resolveHome");
78049
78049
  function config(options30) {
78050
- let dotenvPath = path69.resolve(process.cwd(), ".env");
78050
+ let dotenvPath = path70.resolve(process.cwd(), ".env");
78051
78051
  let encoding = "utf8";
78052
78052
  let debug = false;
78053
78053
  if (options30) {
@@ -78456,14 +78456,14 @@ var require_util11 = __commonJS({
78456
78456
  }
78457
78457
  const port = url4.port != null ? url4.port : url4.protocol === "https:" ? 443 : 80;
78458
78458
  let origin = url4.origin != null ? url4.origin : `${url4.protocol}//${url4.hostname}:${port}`;
78459
- let path69 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
78459
+ let path70 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
78460
78460
  if (origin.endsWith("/")) {
78461
78461
  origin = origin.substring(0, origin.length - 1);
78462
78462
  }
78463
- if (path69 && !path69.startsWith("/")) {
78464
- path69 = `/${path69}`;
78463
+ if (path70 && !path70.startsWith("/")) {
78464
+ path70 = `/${path70}`;
78465
78465
  }
78466
- url4 = new URL(origin + path69);
78466
+ url4 = new URL(origin + path70);
78467
78467
  }
78468
78468
  return url4;
78469
78469
  }
@@ -81196,7 +81196,7 @@ var require_request4 = __commonJS({
81196
81196
  }
81197
81197
  var Request3 = class {
81198
81198
  constructor(origin, {
81199
- path: path69,
81199
+ path: path70,
81200
81200
  method,
81201
81201
  body,
81202
81202
  headers,
@@ -81210,11 +81210,11 @@ var require_request4 = __commonJS({
81210
81210
  throwOnError,
81211
81211
  expectContinue
81212
81212
  }, handler30) {
81213
- if (typeof path69 !== "string") {
81213
+ if (typeof path70 !== "string") {
81214
81214
  throw new InvalidArgumentError("path must be a string");
81215
- } else if (path69[0] !== "/" && !(path69.startsWith("http://") || path69.startsWith("https://")) && method !== "CONNECT") {
81215
+ } else if (path70[0] !== "/" && !(path70.startsWith("http://") || path70.startsWith("https://")) && method !== "CONNECT") {
81216
81216
  throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
81217
- } else if (invalidPathRegex.exec(path69) !== null) {
81217
+ } else if (invalidPathRegex.exec(path70) !== null) {
81218
81218
  throw new InvalidArgumentError("invalid request path");
81219
81219
  }
81220
81220
  if (typeof method !== "string") {
@@ -81277,7 +81277,7 @@ var require_request4 = __commonJS({
81277
81277
  this.completed = false;
81278
81278
  this.aborted = false;
81279
81279
  this.upgrade = upgrade || null;
81280
- this.path = query ? util6.buildURL(path69, query) : path69;
81280
+ this.path = query ? util6.buildURL(path70, query) : path70;
81281
81281
  this.origin = origin;
81282
81282
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
81283
81283
  this.blocking = blocking == null ? false : blocking;
@@ -82310,9 +82310,9 @@ var require_RedirectHandler2 = __commonJS({
82310
82310
  return this.handler.onHeaders(statusCode, headers, resume, statusText);
82311
82311
  }
82312
82312
  const { origin, pathname, search } = util6.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
82313
- const path69 = search ? `${pathname}${search}` : pathname;
82313
+ const path70 = search ? `${pathname}${search}` : pathname;
82314
82314
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
82315
- this.opts.path = path69;
82315
+ this.opts.path = path70;
82316
82316
  this.opts.origin = origin;
82317
82317
  this.opts.maxRedirections = 0;
82318
82318
  this.opts.query = null;
@@ -83569,7 +83569,7 @@ var require_client2 = __commonJS({
83569
83569
  writeH2(client, client[kHTTP2Session], request3);
83570
83570
  return;
83571
83571
  }
83572
- const { body, method, path: path69, host, upgrade, headers, blocking, reset } = request3;
83572
+ const { body, method, path: path70, host, upgrade, headers, blocking, reset } = request3;
83573
83573
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
83574
83574
  if (body && typeof body.read === "function") {
83575
83575
  body.read(0);
@@ -83619,7 +83619,7 @@ var require_client2 = __commonJS({
83619
83619
  if (blocking) {
83620
83620
  socket[kBlocking] = true;
83621
83621
  }
83622
- let header = `${method} ${path69} HTTP/1.1\r
83622
+ let header = `${method} ${path70} HTTP/1.1\r
83623
83623
  `;
83624
83624
  if (typeof host === "string") {
83625
83625
  header += `host: ${host}\r
@@ -83683,7 +83683,7 @@ upgrade: ${upgrade}\r
83683
83683
  }
83684
83684
  __name(write, "write");
83685
83685
  function writeH2(client, session, request3) {
83686
- const { body, method, path: path69, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
83686
+ const { body, method, path: path70, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
83687
83687
  let headers;
83688
83688
  if (typeof reqHeaders === "string")
83689
83689
  headers = Request3[kHTTP2CopyHeaders](reqHeaders.trim());
@@ -83729,7 +83729,7 @@ upgrade: ${upgrade}\r
83729
83729
  });
83730
83730
  return true;
83731
83731
  }
83732
- headers[HTTP2_HEADER_PATH] = path69;
83732
+ headers[HTTP2_HEADER_PATH] = path70;
83733
83733
  headers[HTTP2_HEADER_SCHEME] = "https";
83734
83734
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
83735
83735
  if (body && typeof body.read === "function") {
@@ -86031,21 +86031,21 @@ var require_mock_utils2 = __commonJS({
86031
86031
  return true;
86032
86032
  }
86033
86033
  __name(matchHeaders, "matchHeaders");
86034
- function safeUrl(path69) {
86035
- if (typeof path69 !== "string") {
86036
- return path69;
86034
+ function safeUrl(path70) {
86035
+ if (typeof path70 !== "string") {
86036
+ return path70;
86037
86037
  }
86038
- const pathSegments = path69.split("?");
86038
+ const pathSegments = path70.split("?");
86039
86039
  if (pathSegments.length !== 2) {
86040
- return path69;
86040
+ return path70;
86041
86041
  }
86042
86042
  const qp = new URLSearchParams(pathSegments.pop());
86043
86043
  qp.sort();
86044
86044
  return [...pathSegments, qp.toString()].join("?");
86045
86045
  }
86046
86046
  __name(safeUrl, "safeUrl");
86047
- function matchKey(mockDispatch2, { path: path69, method, body, headers }) {
86048
- const pathMatch = matchValue(mockDispatch2.path, path69);
86047
+ function matchKey(mockDispatch2, { path: path70, method, body, headers }) {
86048
+ const pathMatch = matchValue(mockDispatch2.path, path70);
86049
86049
  const methodMatch = matchValue(mockDispatch2.method, method);
86050
86050
  const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
86051
86051
  const headersMatch = matchHeaders(mockDispatch2, headers);
@@ -86065,7 +86065,7 @@ var require_mock_utils2 = __commonJS({
86065
86065
  function getMockDispatch(mockDispatches, key) {
86066
86066
  const basePath = key.query ? buildURL(key.path, key.query) : key.path;
86067
86067
  const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
86068
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path69 }) => matchValue(safeUrl(path69), resolvedPath));
86068
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path70 }) => matchValue(safeUrl(path70), resolvedPath));
86069
86069
  if (matchedMockDispatches.length === 0) {
86070
86070
  throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
86071
86071
  }
@@ -86105,9 +86105,9 @@ var require_mock_utils2 = __commonJS({
86105
86105
  }
86106
86106
  __name(deleteMockDispatch, "deleteMockDispatch");
86107
86107
  function buildKey(opts) {
86108
- const { path: path69, method, body, headers, query } = opts;
86108
+ const { path: path70, method, body, headers, query } = opts;
86109
86109
  return {
86110
- path: path69,
86110
+ path: path70,
86111
86111
  method,
86112
86112
  body,
86113
86113
  headers,
@@ -86575,10 +86575,10 @@ var require_pending_interceptors_formatter2 = __commonJS({
86575
86575
  }
86576
86576
  format(pendingInterceptors) {
86577
86577
  const withPrettyHeaders = pendingInterceptors.map(
86578
- ({ method, path: path69, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
86578
+ ({ method, path: path70, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
86579
86579
  Method: method,
86580
86580
  Origin: origin,
86581
- Path: path69,
86581
+ Path: path70,
86582
86582
  "Status code": statusCode,
86583
86583
  Persistent: persist ? "\u2705" : "\u274C",
86584
86584
  Invocations: timesInvoked,
@@ -91282,8 +91282,8 @@ var require_util16 = __commonJS({
91282
91282
  }
91283
91283
  }
91284
91284
  __name(validateCookieValue, "validateCookieValue");
91285
- function validateCookiePath(path69) {
91286
- for (const char of path69) {
91285
+ function validateCookiePath(path70) {
91286
+ for (const char of path70) {
91287
91287
  const code = char.charCodeAt(0);
91288
91288
  if (code < 33 || char === ";") {
91289
91289
  throw new Error("Invalid cookie path");
@@ -93016,11 +93016,11 @@ var require_undici2 = __commonJS({
93016
93016
  if (typeof opts.path !== "string") {
93017
93017
  throw new InvalidArgumentError("invalid opts.path");
93018
93018
  }
93019
- let path69 = opts.path;
93019
+ let path70 = opts.path;
93020
93020
  if (!opts.path.startsWith("/")) {
93021
- path69 = `/${path69}`;
93021
+ path70 = `/${path70}`;
93022
93022
  }
93023
- url4 = new URL(util6.parseOrigin(url4).origin + path69);
93023
+ url4 = new URL(util6.parseOrigin(url4).origin + path70);
93024
93024
  } else {
93025
93025
  if (!opts) {
93026
93026
  opts = typeof url4 === "object" ? url4 : {};
@@ -93651,18 +93651,18 @@ var require_utils8 = __commonJS({
93651
93651
  return decode(data, hint);
93652
93652
  }
93653
93653
  __name(convertToUTF8, "convertToUTF8");
93654
- function basename5(path69) {
93655
- if (typeof path69 !== "string")
93654
+ function basename5(path70) {
93655
+ if (typeof path70 !== "string")
93656
93656
  return "";
93657
- for (let i = path69.length - 1; i >= 0; --i) {
93658
- switch (path69.charCodeAt(i)) {
93657
+ for (let i = path70.length - 1; i >= 0; --i) {
93658
+ switch (path70.charCodeAt(i)) {
93659
93659
  case 47:
93660
93660
  case 92:
93661
- path69 = path69.slice(i + 1);
93662
- return path69 === ".." || path69 === "." ? "" : path69;
93661
+ path70 = path70.slice(i + 1);
93662
+ return path70 === ".." || path70 === "." ? "" : path70;
93663
93663
  }
93664
93664
  }
93665
- return path69 === ".." || path69 === "." ? "" : path69;
93665
+ return path70 === ".." || path70 === "." ? "" : path70;
93666
93666
  }
93667
93667
  __name(basename5, "basename");
93668
93668
  var TOKEN = [
@@ -97169,7 +97169,7 @@ var require_dist3 = __commonJS({
97169
97169
  const result = [];
97170
97170
  let key = 0;
97171
97171
  let i = 0;
97172
- let path69 = "";
97172
+ let path70 = "";
97173
97173
  let nameSet = /* @__PURE__ */ new Set();
97174
97174
  const tryConsume = /* @__PURE__ */ __name((type) => {
97175
97175
  if (i < tokens.length && tokens[i].type === type)
@@ -97211,12 +97211,12 @@ var require_dist3 = __commonJS({
97211
97211
  if (name2 || pattern) {
97212
97212
  let prefix = char || "";
97213
97213
  if (prefixes.indexOf(prefix) === -1) {
97214
- path69 += prefix;
97214
+ path70 += prefix;
97215
97215
  prefix = "";
97216
97216
  }
97217
- if (path69) {
97218
- result.push(encodePart(path69));
97219
- path69 = "";
97217
+ if (path70) {
97218
+ result.push(encodePart(path70));
97219
+ path70 = "";
97220
97220
  }
97221
97221
  const finalName = name2 || key++;
97222
97222
  if (nameSet.has(finalName)) {
@@ -97234,7 +97234,7 @@ var require_dist3 = __commonJS({
97234
97234
  }
97235
97235
  const value = char || tryConsume("ESCAPED_CHAR");
97236
97236
  if (value) {
97237
- path69 += value;
97237
+ path70 += value;
97238
97238
  continue;
97239
97239
  }
97240
97240
  const open3 = tryConsume("OPEN");
@@ -97249,15 +97249,15 @@ var require_dist3 = __commonJS({
97249
97249
  mustConsume("CLOSE");
97250
97250
  const modifier = tryConsumeModifier() || "";
97251
97251
  if (!name22 && !pattern2 && !modifier) {
97252
- path69 += prefix;
97252
+ path70 += prefix;
97253
97253
  continue;
97254
97254
  }
97255
97255
  if (!name22 && !pattern2 && !prefix) {
97256
97256
  continue;
97257
97257
  }
97258
- if (path69) {
97259
- result.push(encodePart(path69));
97260
- path69 = "";
97258
+ if (path70) {
97259
+ result.push(encodePart(path70));
97260
+ path70 = "";
97261
97261
  }
97262
97262
  result.push({
97263
97263
  name: name22 || (pattern2 ? key++ : ""),
@@ -97268,9 +97268,9 @@ var require_dist3 = __commonJS({
97268
97268
  });
97269
97269
  continue;
97270
97270
  }
97271
- if (path69) {
97272
- result.push(encodePart(path69));
97273
- path69 = "";
97271
+ if (path70) {
97272
+ result.push(encodePart(path70));
97273
+ path70 = "";
97274
97274
  }
97275
97275
  mustConsume("END");
97276
97276
  }
@@ -97285,12 +97285,12 @@ var require_dist3 = __commonJS({
97285
97285
  return options30 && options30.sensitive ? "u" : "ui";
97286
97286
  }
97287
97287
  __name(flags2, "flags");
97288
- function regexpToRegexp(path69, keys) {
97288
+ function regexpToRegexp(path70, keys) {
97289
97289
  if (!keys)
97290
- return path69;
97290
+ return path70;
97291
97291
  const groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
97292
97292
  let index = 0;
97293
- let execResult = groupsRegex.exec(path69.source);
97293
+ let execResult = groupsRegex.exec(path70.source);
97294
97294
  while (execResult) {
97295
97295
  keys.push({
97296
97296
  name: execResult[1] || index++,
@@ -97299,18 +97299,18 @@ var require_dist3 = __commonJS({
97299
97299
  modifier: "",
97300
97300
  pattern: ""
97301
97301
  });
97302
- execResult = groupsRegex.exec(path69.source);
97302
+ execResult = groupsRegex.exec(path70.source);
97303
97303
  }
97304
- return path69;
97304
+ return path70;
97305
97305
  }
97306
97306
  __name(regexpToRegexp, "regexpToRegexp");
97307
97307
  function arrayToRegexp(paths, keys, options30) {
97308
- const parts = paths.map((path69) => pathToRegexp(path69, keys, options30).source);
97308
+ const parts = paths.map((path70) => pathToRegexp(path70, keys, options30).source);
97309
97309
  return new RegExp(`(?:${parts.join("|")})`, flags2(options30));
97310
97310
  }
97311
97311
  __name(arrayToRegexp, "arrayToRegexp");
97312
- function stringToRegexp(path69, keys, options30) {
97313
- return tokensToRegexp(parse6(path69, options30), keys, options30);
97312
+ function stringToRegexp(path70, keys, options30) {
97313
+ return tokensToRegexp(parse6(path70, options30), keys, options30);
97314
97314
  }
97315
97315
  __name(stringToRegexp, "stringToRegexp");
97316
97316
  function tokensToRegexp(tokens, keys, options30 = {}) {
@@ -97368,12 +97368,12 @@ var require_dist3 = __commonJS({
97368
97368
  return new RegExp(route2, flags2(options30));
97369
97369
  }
97370
97370
  __name(tokensToRegexp, "tokensToRegexp");
97371
- function pathToRegexp(path69, keys, options30) {
97372
- if (path69 instanceof RegExp)
97373
- return regexpToRegexp(path69, keys);
97374
- if (Array.isArray(path69))
97375
- return arrayToRegexp(path69, keys, options30);
97376
- return stringToRegexp(path69, keys, options30);
97371
+ function pathToRegexp(path70, keys, options30) {
97372
+ if (path70 instanceof RegExp)
97373
+ return regexpToRegexp(path70, keys);
97374
+ if (Array.isArray(path70))
97375
+ return arrayToRegexp(path70, keys, options30);
97376
+ return stringToRegexp(path70, keys, options30);
97377
97377
  }
97378
97378
  __name(pathToRegexp, "pathToRegexp");
97379
97379
  var regexIdentifierStart;
@@ -105247,8 +105247,8 @@ ${val.stack}`;
105247
105247
  var ret = wasm.memory;
105248
105248
  return addHeapObject(ret);
105249
105249
  };
105250
- var path69 = require("path").join(__dirname, "html_rewriter_bg.wasm");
105251
- var bytes = require("fs").readFileSync(path69);
105250
+ var path70 = require("path").join(__dirname, "html_rewriter_bg.wasm");
105251
+ var bytes = require("fs").readFileSync(path70);
105252
105252
  var wasmModule = new WebAssembly.Module(bytes);
105253
105253
  var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
105254
105254
  wasm = wasmInstance.exports;
@@ -106232,8 +106232,8 @@ async function generateAssetsFetch(directory, log2) {
106232
106232
  });
106233
106233
  (0, import_chokidar2.watch)([headersFile, redirectsFile], { persistent: true }).on(
106234
106234
  "change",
106235
- (path69) => {
106236
- switch (path69) {
106235
+ (path70) => {
106236
+ switch (path70) {
106237
106237
  case headersFile: {
106238
106238
  log2.log("_headers modified. Re-evaluating...");
106239
106239
  const contents = (0, import_node_fs19.readFileSync)(headersFile).toString();
@@ -106263,8 +106263,8 @@ async function generateAssetsFetch(directory, log2) {
106263
106263
  metadata,
106264
106264
  xServerEnvHeader: "dev",
106265
106265
  logError: console.error,
106266
- findAssetEntryForPath: async (path69) => {
106267
- const filepath = (0, import_node_path35.resolve)((0, import_node_path35.join)(directory, path69));
106266
+ findAssetEntryForPath: async (path70) => {
106267
+ const filepath = (0, import_node_path35.resolve)((0, import_node_path35.join)(directory, path70));
106268
106268
  if (!filepath.startsWith(directory)) {
106269
106269
  return null;
106270
106270
  }
@@ -106513,8 +106513,8 @@ var require_md5_file = __commonJS({
106513
106513
  var crypto5 = require("crypto");
106514
106514
  var fs27 = require("fs");
106515
106515
  var BUFFER_SIZE = 8192;
106516
- function md5FileSync(path69) {
106517
- const fd = fs27.openSync(path69, "r");
106516
+ function md5FileSync(path70) {
106517
+ const fd = fs27.openSync(path70, "r");
106518
106518
  const hash = crypto5.createHash("md5");
106519
106519
  const buffer = Buffer.alloc(BUFFER_SIZE);
106520
106520
  try {
@@ -106529,10 +106529,10 @@ var require_md5_file = __commonJS({
106529
106529
  return hash.digest("hex");
106530
106530
  }
106531
106531
  __name(md5FileSync, "md5FileSync");
106532
- function md5File2(path69) {
106532
+ function md5File2(path70) {
106533
106533
  return new Promise((resolve22, reject) => {
106534
106534
  const output = crypto5.createHash("md5");
106535
- const input = fs27.createReadStream(path69);
106535
+ const input = fs27.createReadStream(path70);
106536
106536
  input.on("error", (err) => {
106537
106537
  reject(err);
106538
106538
  });
@@ -109502,11 +109502,11 @@ var parser = new YargsParser({
109502
109502
  resolve: import_path.resolve,
109503
109503
  // TODO: figure out a way to combine ESM and CJS coverage, such that
109504
109504
  // we can exercise all the lines below:
109505
- require: (path69) => {
109505
+ require: (path70) => {
109506
109506
  if (typeof require !== "undefined") {
109507
- return require(path69);
109508
- } else if (path69.match(/\.json$/)) {
109509
- return JSON.parse((0, import_fs.readFileSync)(path69, "utf8"));
109507
+ return require(path70);
109508
+ } else if (path70.match(/\.json$/)) {
109509
+ return JSON.parse((0, import_fs.readFileSync)(path70, "utf8"));
109510
109510
  } else {
109511
109511
  throw Error("only .json config files are supported in ESM");
109512
109512
  }
@@ -110657,7 +110657,7 @@ var import_undici3 = __toESM(require_undici());
110657
110657
 
110658
110658
  // package.json
110659
110659
  var name = "wrangler";
110660
- var version = "3.94.0";
110660
+ var version = "3.95.0";
110661
110661
 
110662
110662
  // src/environment-variables/misc-variables.ts
110663
110663
  init_import_meta_url();
@@ -112939,9 +112939,9 @@ Please add "${field}" to "env.${envName}".`
112939
112939
  return rawEnv[field] ?? defaultValue;
112940
112940
  }
112941
112941
  __name(notInheritable, "notInheritable");
112942
- function unwindPropertyPath(root, path69) {
112942
+ function unwindPropertyPath(root, path70) {
112943
112943
  let container = root;
112944
- const parts = path69.split(".");
112944
+ const parts = path70.split(".");
112945
112945
  for (let i = 0; i < parts.length - 1; i++) {
112946
112946
  if (!hasProperty(container, parts[i])) {
112947
112947
  return;
@@ -116712,26 +116712,26 @@ function withConfig(handler30, options30) {
116712
116712
  };
116713
116713
  }
116714
116714
  __name(withConfig, "withConfig");
116715
- function tryLoadDotEnv(path69) {
116715
+ function tryLoadDotEnv(path70) {
116716
116716
  try {
116717
- const parsed = import_dotenv.default.parse(import_node_fs3.default.readFileSync(path69));
116718
- return { path: path69, parsed };
116717
+ const parsed = import_dotenv.default.parse(import_node_fs3.default.readFileSync(path70));
116718
+ return { path: path70, parsed };
116719
116719
  } catch (e3) {
116720
116720
  if (e3.code === "ENOENT") {
116721
116721
  logger.debug(
116722
- `.env file not found at "${path69}". Continuing... For more details, refer to https://developers.cloudflare.com/workers/wrangler/system-environment-variables/`
116722
+ `.env file not found at "${path70}". Continuing... For more details, refer to https://developers.cloudflare.com/workers/wrangler/system-environment-variables/`
116723
116723
  );
116724
116724
  } else {
116725
- logger.debug(`Failed to load .env file "${path69}":`, e3);
116725
+ logger.debug(`Failed to load .env file "${path70}":`, e3);
116726
116726
  }
116727
116727
  }
116728
116728
  }
116729
116729
  __name(tryLoadDotEnv, "tryLoadDotEnv");
116730
- function loadDotEnv(path69, env6) {
116730
+ function loadDotEnv(path70, env6) {
116731
116731
  if (env6 === void 0) {
116732
- return tryLoadDotEnv(path69);
116732
+ return tryLoadDotEnv(path70);
116733
116733
  } else {
116734
- return tryLoadDotEnv(`${path69}.${env6}`) ?? tryLoadDotEnv(path69);
116734
+ return tryLoadDotEnv(`${path70}.${env6}`) ?? tryLoadDotEnv(path70);
116735
116735
  }
116736
116736
  }
116737
116737
  __name(loadDotEnv, "loadDotEnv");
@@ -120860,8 +120860,8 @@ function getSourceMappingPrepareStackTrace(retrieveSourceMap) {
120860
120860
  // Make sure we're using fresh copies of files each time we source map
120861
120861
  emptyCacheBetweenOperations: true,
120862
120862
  // Allow retriever to be overridden at prepare stack trace time
120863
- retrieveSourceMap(path69) {
120864
- return retrieveSourceMapOverride?.(path69) ?? null;
120863
+ retrieveSourceMap(path70) {
120864
+ return retrieveSourceMapOverride?.(path70) ?? null;
120865
120865
  }
120866
120866
  });
120867
120867
  sourceMappingPrepareStackTrace = Error.prepareStackTrace;
@@ -123867,8 +123867,8 @@ function getErrorMap() {
123867
123867
  }
123868
123868
  __name(getErrorMap, "getErrorMap");
123869
123869
  var makeIssue = /* @__PURE__ */ __name((params) => {
123870
- const { data, path: path69, errorMaps, issueData } = params;
123871
- const fullPath = [...path69, ...issueData.path || []];
123870
+ const { data, path: path70, errorMaps, issueData } = params;
123871
+ const fullPath = [...path70, ...issueData.path || []];
123872
123872
  const fullIssue = {
123873
123873
  ...issueData,
123874
123874
  path: fullPath
@@ -123969,11 +123969,11 @@ var errorUtil;
123969
123969
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
123970
123970
  })(errorUtil || (errorUtil = {}));
123971
123971
  var ParseInputLazyPath = class {
123972
- constructor(parent, value, path69, key) {
123972
+ constructor(parent, value, path70, key) {
123973
123973
  this._cachedPath = [];
123974
123974
  this.parent = parent;
123975
123975
  this.data = value;
123976
- this._path = path69;
123976
+ this._path = path70;
123977
123977
  this._key = key;
123978
123978
  }
123979
123979
  get path() {
@@ -129018,10 +129018,10 @@ function handleRequireCallsToNodeJSBuiltins(build5) {
129018
129018
  });
129019
129019
  build5.onLoad(
129020
129020
  { filter: /.*/, namespace: REQUIRED_NODE_BUILT_IN_NAMESPACE },
129021
- ({ path: path69 }) => {
129021
+ ({ path: path70 }) => {
129022
129022
  return {
129023
129023
  contents: esm_default2`
129024
- import libDefault from '${path69}';
129024
+ import libDefault from '${path70}';
129025
129025
  module.exports = libDefault;`,
129026
129026
  loader: "js"
129027
129027
  };
@@ -129070,10 +129070,10 @@ function handleUnenvAliasedPackages(build5, alias, external) {
129070
129070
  `;
129071
129071
  build5.onLoad(
129072
129072
  { filter: /.*/, namespace: REQUIRED_UNENV_ALIAS_NAMESPACE },
129073
- ({ path: path69 }) => {
129073
+ ({ path: path70 }) => {
129074
129074
  return {
129075
129075
  contents: esm_default2`
129076
- import * as esm from '${path69}';
129076
+ import * as esm from '${path70}';
129077
129077
  module.exports = __cf_cjs(esm);
129078
129078
  `,
129079
129079
  loader: "js"
@@ -129095,9 +129095,9 @@ function handleNodeJSGlobals(build5, inject) {
129095
129095
  (globalName) => `${prefix}${encodeToLowerCase(globalName)}.js`
129096
129096
  )
129097
129097
  ];
129098
- build5.onResolve({ filter: UNENV_GLOBALS_RE }, ({ path: path69 }) => ({ path: path69 }));
129099
- build5.onLoad({ filter: UNENV_GLOBALS_RE }, ({ path: path69 }) => {
129100
- const globalName = decodeFromLowerCase(path69.match(UNENV_GLOBALS_RE)[1]);
129098
+ build5.onResolve({ filter: UNENV_GLOBALS_RE }, ({ path: path70 }) => ({ path: path70 }));
129099
+ build5.onLoad({ filter: UNENV_GLOBALS_RE }, ({ path: path70 }) => {
129100
+ const globalName = decodeFromLowerCase(path70.match(UNENV_GLOBALS_RE)[1]);
129101
129101
  const { importStatement, exportName } = getGlobalInject(inject[globalName]);
129102
129102
  return {
129103
129103
  contents: esm_default2`
@@ -129145,21 +129145,21 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
129145
129145
  });
129146
129146
  pluginBuild.onResolve(
129147
129147
  { filter: /node:.*/ },
129148
- async ({ path: path69, kind, resolveDir, importer }) => {
129149
- const specifier = `${path69}:${kind}:${resolveDir}:${importer}`;
129148
+ async ({ path: path70, kind, resolveDir, importer }) => {
129149
+ const specifier = `${path70}:${kind}:${resolveDir}:${importer}`;
129150
129150
  if (seen.has(specifier)) {
129151
129151
  return;
129152
129152
  }
129153
129153
  seen.add(specifier);
129154
- const result = await pluginBuild.resolve(path69, {
129154
+ const result = await pluginBuild.resolve(path70, {
129155
129155
  kind,
129156
129156
  resolveDir,
129157
129157
  importer
129158
129158
  });
129159
129159
  if (result.errors.length > 0) {
129160
- const pathWarnedPackages = warnedPackages.get(path69) ?? [];
129160
+ const pathWarnedPackages = warnedPackages.get(path70) ?? [];
129161
129161
  pathWarnedPackages.push(importer);
129162
- warnedPackages.set(path69, pathWarnedPackages);
129162
+ warnedPackages.set(path70, pathWarnedPackages);
129163
129163
  return { external: true };
129164
129164
  }
129165
129165
  return result;
@@ -129187,10 +129187,10 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
129187
129187
  });
129188
129188
  pluginBuild.onEnd(() => {
129189
129189
  if (mode !== "v1") {
129190
- warnedPackages.forEach((importers, path69) => {
129190
+ warnedPackages.forEach((importers, path70) => {
129191
129191
  logger.warn(
129192
129192
  dedent2`
129193
- The package "${path69}" wasn't found on the file system but is built into node.
129193
+ The package "${path70}" wasn't found on the file system but is built into node.
129194
129194
  Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to https://developers.cloudflare.com/workers/runtime-apis/nodejs/ for more details. Imported from:
129195
129195
  ${toList(importers, pluginBuild.initialOptions.absWorkingDir)}`
129196
129196
  );
@@ -135924,8 +135924,8 @@ function buildPluginFromFunctions({
135924
135924
  ]
135925
135925
  };
135926
135926
  }
135927
- const path69 = `assets:./${(0, import_node_path39.relative)(outdir, directory)}`;
135928
- return { path: path69, external: true, namespace: "assets" };
135927
+ const path70 = `assets:./${(0, import_node_path39.relative)(outdir, directory)}`;
135928
+ return { path: path70, external: true, namespace: "assets" };
135929
135929
  });
135930
135930
  }
135931
135931
  },
@@ -137469,7 +137469,7 @@ __name(BundlerController, "BundlerController");
137469
137469
  // src/api/startDevWorker/ConfigController.ts
137470
137470
  init_import_meta_url();
137471
137471
  var import_node_assert26 = __toESM(require("node:assert"));
137472
- var import_node_path65 = __toESM(require("node:path"));
137472
+ var import_node_path66 = __toESM(require("node:path"));
137473
137473
  var import_chokidar6 = require("chokidar");
137474
137474
 
137475
137475
  // src/index.ts
@@ -141449,13 +141449,13 @@ var getQueryString = /* @__PURE__ */ __name((params) => {
141449
141449
  }, "getQueryString");
141450
141450
  var getUrl = /* @__PURE__ */ __name((config, options30) => {
141451
141451
  const encoder = config.ENCODE_PATH || encodeURI;
141452
- const path69 = options30.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
141452
+ const path70 = options30.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
141453
141453
  if (options30.path?.hasOwnProperty(group)) {
141454
141454
  return encoder(String(options30.path[group]));
141455
141455
  }
141456
141456
  return substring;
141457
141457
  });
141458
- const url4 = `${config.BASE}${path69}`;
141458
+ const url4 = `${config.BASE}${path70}`;
141459
141459
  if (options30.query) {
141460
141460
  return `${url4}${getQueryString(options30.query)}`;
141461
141461
  }
@@ -142936,11 +142936,11 @@ var Diff = class {
142936
142936
  while (!execEditLength()) {
142937
142937
  }
142938
142938
  }
142939
- addToPath(path69, added, removed, oldPosInc) {
142940
- const last = path69.lastComponent;
142939
+ addToPath(path70, added, removed, oldPosInc) {
142940
+ const last = path70.lastComponent;
142941
142941
  if (last && last.added === added && last.removed === removed) {
142942
142942
  return {
142943
- oldPos: path69.oldPos + oldPosInc,
142943
+ oldPos: path70.oldPos + oldPosInc,
142944
142944
  lastComponent: {
142945
142945
  count: last.count + 1,
142946
142946
  added,
@@ -142950,7 +142950,7 @@ var Diff = class {
142950
142950
  };
142951
142951
  }
142952
142952
  return {
142953
- oldPos: path69.oldPos + oldPosInc,
142953
+ oldPos: path70.oldPos + oldPosInc,
142954
142954
  lastComponent: {
142955
142955
  count: 1,
142956
142956
  added,
@@ -144052,15 +144052,15 @@ var sshCommand = /* @__PURE__ */ __name((yargs) => {
144052
144052
  }, "sshCommand");
144053
144053
  async function tryToRetrieveAllDefaultSSHKeyPaths() {
144054
144054
  const HOME = (0, import_os3.homedir)();
144055
- const path69 = `${HOME}/.ssh`;
144055
+ const path70 = `${HOME}/.ssh`;
144056
144056
  const paths = [];
144057
144057
  try {
144058
- const dirList = await (0, import_promises19.readdir)(path69);
144058
+ const dirList = await (0, import_promises19.readdir)(path70);
144059
144059
  for (const file of dirList) {
144060
144060
  if (file.endsWith(".pub")) {
144061
- const s = await (0, import_promises19.stat)(`${path69}/${file}`);
144061
+ const s = await (0, import_promises19.stat)(`${path70}/${file}`);
144062
144062
  if (s.isFile()) {
144063
- paths.push(`${path69}/${file}`);
144063
+ paths.push(`${path70}/${file}`);
144064
144064
  }
144065
144065
  }
144066
144066
  }
@@ -144072,8 +144072,8 @@ async function tryToRetrieveAllDefaultSSHKeyPaths() {
144072
144072
  __name(tryToRetrieveAllDefaultSSHKeyPaths, "tryToRetrieveAllDefaultSSHKeyPaths");
144073
144073
  async function tryToRetrieveADefaultPath() {
144074
144074
  const paths = await tryToRetrieveAllDefaultSSHKeyPaths();
144075
- const path69 = paths.pop();
144076
- return path69 ?? "";
144075
+ const path70 = paths.pop();
144076
+ return path70 ?? "";
144077
144077
  }
144078
144078
  __name(tryToRetrieveADefaultPath, "tryToRetrieveADefaultPath");
144079
144079
  function clipPublicSSHKey(value) {
@@ -156931,8 +156931,8 @@ The Worker script should be named \`_worker.js\` and located in the build output
156931
156931
  }, 50);
156932
156932
  try {
156933
156933
  await runBuild2();
156934
- watcher.on("all", async (eventName, path69) => {
156935
- logger.debug(`\u{1F300} "${eventName}" event detected at ${path69}.`);
156934
+ watcher.on("all", async (eventName, path70) => {
156935
+ logger.debug(`\u{1F300} "${eventName}" event detected at ${path70}.`);
156936
156936
  if (eventName === "unlink") {
156937
156937
  return;
156938
156938
  }
@@ -157003,8 +157003,8 @@ The Worker script should be named \`_worker.js\` and located in the build output
157003
157003
  }, 50);
157004
157004
  try {
157005
157005
  await buildFn();
157006
- watcher.on("all", async (eventName, path69) => {
157007
- logger.debug(`\u{1F300} "${eventName}" event detected at ${path69}.`);
157006
+ watcher.on("all", async (eventName, path70) => {
157007
+ logger.debug(`\u{1F300} "${eventName}" event detected at ${path70}.`);
157008
157008
  debouncedBuildFn();
157009
157009
  });
157010
157010
  } catch (e3) {
@@ -160356,6 +160356,60 @@ function isNonNegativeNumber(str) {
160356
160356
  return num >= 0;
160357
160357
  }
160358
160358
  __name(isNonNegativeNumber, "isNonNegativeNumber");
160359
+ async function getCORSPolicy(accountId, bucketName, jurisdiction) {
160360
+ const headers = {};
160361
+ if (jurisdiction) {
160362
+ headers["cf-r2-jurisdiction"] = jurisdiction;
160363
+ }
160364
+ const result = await fetchResult(
160365
+ `/accounts/${accountId}/r2/buckets/${bucketName}/cors`,
160366
+ {
160367
+ method: "GET",
160368
+ headers
160369
+ }
160370
+ );
160371
+ return result.rules;
160372
+ }
160373
+ __name(getCORSPolicy, "getCORSPolicy");
160374
+ function tableFromCORSPolicyResponse(rules) {
160375
+ const rows = [];
160376
+ for (const rule of rules) {
160377
+ rows.push({
160378
+ allowed_origins: rule.allowed?.origins?.join(", ") || "(no origins)",
160379
+ allowed_methods: rule.allowed?.methods?.join(", ") || "(no methods)",
160380
+ allowed_headers: rule.allowed?.headers?.join(", ") || "(no headers)",
160381
+ exposed_headers: rule.exposeHeaders?.join(", ") || "(no exposed headers)",
160382
+ max_age_seconds: rule.maxAgeSeconds?.toString() || "(0 seconds)"
160383
+ });
160384
+ }
160385
+ return rows;
160386
+ }
160387
+ __name(tableFromCORSPolicyResponse, "tableFromCORSPolicyResponse");
160388
+ async function putCORSPolicy(accountId, bucketName, rules, jurisdiction) {
160389
+ const headers = {
160390
+ "Content-Type": "application/json"
160391
+ };
160392
+ if (jurisdiction) {
160393
+ headers["cf-r2-jurisdiction"] = jurisdiction;
160394
+ }
160395
+ await fetchResult(`/accounts/${accountId}/r2/buckets/${bucketName}/cors`, {
160396
+ method: "PUT",
160397
+ headers,
160398
+ body: JSON.stringify({ rules })
160399
+ });
160400
+ }
160401
+ __name(putCORSPolicy, "putCORSPolicy");
160402
+ async function deleteCORSPolicy(accountId, bucketName, jurisdiction) {
160403
+ const headers = {};
160404
+ if (jurisdiction) {
160405
+ headers["cf-r2-jurisdiction"] = jurisdiction;
160406
+ }
160407
+ await fetchResult(`/accounts/${accountId}/r2/buckets/${bucketName}/cors`, {
160408
+ method: "DELETE",
160409
+ headers
160410
+ });
160411
+ }
160412
+ __name(deleteCORSPolicy, "deleteCORSPolicy");
160359
160413
  function isValidR2BucketName(name2) {
160360
160414
  return typeof name2 === "string" && /^[a-zA-Z][a-zA-Z0-9-]*$/.test(name2);
160361
160415
  }
@@ -160608,6 +160662,153 @@ var r2BucketDeleteCommand = createCommand({
160608
160662
  }
160609
160663
  });
160610
160664
 
160665
+ // src/r2/cors.ts
160666
+ init_import_meta_url();
160667
+ var import_node_path61 = __toESM(require("node:path"));
160668
+ var r2BucketCORSNamespace = createNamespace({
160669
+ metadata: {
160670
+ description: "Manage CORS configuration for an R2 bucket",
160671
+ status: "stable",
160672
+ owner: "Product: R2"
160673
+ }
160674
+ });
160675
+ var r2BucketCORSListCommand = createCommand({
160676
+ metadata: {
160677
+ description: "List the CORS rules for an R2 bucket",
160678
+ status: "stable",
160679
+ owner: "Product: R2"
160680
+ },
160681
+ positionalArgs: ["bucket"],
160682
+ args: {
160683
+ bucket: {
160684
+ describe: "The name of the R2 bucket to list the CORS rules for",
160685
+ type: "string",
160686
+ demandOption: true
160687
+ },
160688
+ jurisdiction: {
160689
+ describe: "The jurisdiction where the bucket exists",
160690
+ alias: "J",
160691
+ requiresArg: true,
160692
+ type: "string"
160693
+ }
160694
+ },
160695
+ async handler({ bucket, jurisdiction }, { config }) {
160696
+ const accountId = await requireAuth(config);
160697
+ logger.log(`Listing CORS rules for bucket '${bucket}'...`);
160698
+ const corsPolicy = await getCORSPolicy(accountId, bucket, jurisdiction);
160699
+ if (corsPolicy.length === 0) {
160700
+ logger.log(
160701
+ `There is no CORS configuration defined for bucket '${bucket}'.`
160702
+ );
160703
+ } else {
160704
+ const tableOutput = tableFromCORSPolicyResponse(corsPolicy);
160705
+ logger.log(tableOutput.map((x2) => formatLabelledValues(x2)).join("\n\n"));
160706
+ }
160707
+ }
160708
+ });
160709
+ var r2BucketCORSSetCommand = createCommand({
160710
+ metadata: {
160711
+ description: "Set the CORS configuration for an R2 bucket from a JSON file",
160712
+ status: "stable",
160713
+ owner: "Product: R2"
160714
+ },
160715
+ positionalArgs: ["bucket"],
160716
+ args: {
160717
+ bucket: {
160718
+ describe: "The name of the R2 bucket to set the CORS configuration for",
160719
+ type: "string",
160720
+ demandOption: true
160721
+ },
160722
+ file: {
160723
+ describe: "Path to the JSON file containing the CORS configuration",
160724
+ type: "string",
160725
+ demandOption: true,
160726
+ requiresArg: true
160727
+ },
160728
+ jurisdiction: {
160729
+ describe: "The jurisdiction where the bucket exists",
160730
+ alias: "J",
160731
+ requiresArg: true,
160732
+ type: "string"
160733
+ },
160734
+ force: {
160735
+ describe: "Skip confirmation",
160736
+ type: "boolean",
160737
+ alias: "y",
160738
+ default: false
160739
+ }
160740
+ },
160741
+ async handler({ bucket, file, jurisdiction, force }, { config }) {
160742
+ const accountId = await requireAuth(config);
160743
+ const jsonFilePath = import_node_path61.default.resolve(file);
160744
+ const corsConfig = parseJSON(
160745
+ readFileSync5(jsonFilePath),
160746
+ jsonFilePath
160747
+ );
160748
+ if (!corsConfig.rules || !Array.isArray(corsConfig.rules)) {
160749
+ throw new UserError(
160750
+ `The CORS configuration file must contain a 'rules' array as expected by the request body of the CORS API: https://developers.cloudflare.com/api/operations/r2-put-bucket-cors-policy`
160751
+ );
160752
+ }
160753
+ if (!force) {
160754
+ const confirmedRemoval = await confirm(
160755
+ `Are you sure you want to overwrite the existing CORS configuration for bucket '${bucket}'?`
160756
+ );
160757
+ if (!confirmedRemoval) {
160758
+ logger.log("Set cancelled.");
160759
+ return;
160760
+ }
160761
+ }
160762
+ logger.log(
160763
+ `Setting CORS configuration (${corsConfig.rules.length} rules) for bucket '${bucket}'...`
160764
+ );
160765
+ await putCORSPolicy(accountId, bucket, corsConfig.rules, jurisdiction);
160766
+ logger.log(`\u2728 Set CORS configuration for bucket '${bucket}'.`);
160767
+ }
160768
+ });
160769
+ var r2BucketCORSDeleteCommand = createCommand({
160770
+ metadata: {
160771
+ description: "Clear the CORS configuration for an R2 bucket",
160772
+ status: "stable",
160773
+ owner: "Product: R2"
160774
+ },
160775
+ positionalArgs: ["bucket"],
160776
+ args: {
160777
+ bucket: {
160778
+ describe: "The name of the R2 bucket to delete the CORS configuration for",
160779
+ type: "string",
160780
+ demandOption: true
160781
+ },
160782
+ jurisdiction: {
160783
+ describe: "The jurisdiction where the bucket exists",
160784
+ alias: "J",
160785
+ requiresArg: true,
160786
+ type: "string"
160787
+ },
160788
+ force: {
160789
+ describe: "Skip confirmation",
160790
+ type: "boolean",
160791
+ alias: "y",
160792
+ default: false
160793
+ }
160794
+ },
160795
+ async handler({ bucket, jurisdiction, force }, { config }) {
160796
+ const accountId = await requireAuth(config);
160797
+ if (!force) {
160798
+ const confirmedRemoval = await confirm(
160799
+ `Are you sure you want to clear the existing CORS configuration for bucket '${bucket}'?`
160800
+ );
160801
+ if (!confirmedRemoval) {
160802
+ logger.log("Set cancelled.");
160803
+ return;
160804
+ }
160805
+ }
160806
+ logger.log(`Deleting the CORS configuration for bucket '${bucket}'...`);
160807
+ await deleteCORSPolicy(accountId, bucket, jurisdiction);
160808
+ logger.log(`CORS configuration deleted for bucket '${bucket}'.`);
160809
+ }
160810
+ });
160811
+
160611
160812
  // src/r2/domain.ts
160612
160813
  init_import_meta_url();
160613
160814
  var r2BucketDomainNamespace = createNamespace({
@@ -161384,7 +161585,7 @@ var r2BucketNotificationDeleteCommand = createCommand({
161384
161585
  init_import_meta_url();
161385
161586
  var import_node_buffer5 = require("node:buffer");
161386
161587
  var fs25 = __toESM(require("node:fs"));
161387
- var path63 = __toESM(require("node:path"));
161588
+ var path64 = __toESM(require("node:path"));
161388
161589
  var stream = __toESM(require("node:stream"));
161389
161590
  var r2ObjectNamespace = createNamespace({
161390
161591
  metadata: {
@@ -161450,7 +161651,7 @@ var r2ObjectGetCommand = createCommand({
161450
161651
  }
161451
161652
  let output;
161452
161653
  if (file) {
161453
- fs25.mkdirSync(path63.dirname(file), { recursive: true });
161654
+ fs25.mkdirSync(path64.dirname(file), { recursive: true });
161454
161655
  output = fs25.createWriteStream(file);
161455
161656
  } else {
161456
161657
  output = process.stdout;
@@ -162159,7 +162360,7 @@ var r2BucketSippyGetCommand = createCommand({
162159
162360
 
162160
162361
  // src/secret/index.ts
162161
162362
  init_import_meta_url();
162162
- var import_node_path61 = __toESM(require("node:path"));
162363
+ var import_node_path62 = __toESM(require("node:path"));
162163
162364
  var import_node_readline3 = __toESM(require("node:readline"));
162164
162365
  var import_undici19 = __toESM(require_undici());
162165
162366
  var VERSION_NOT_DEPLOYED_ERR_CODE = 10215;
@@ -162460,7 +162661,7 @@ var secretBulkHandler = /* @__PURE__ */ __name(async (secretBulkArgs) => {
162460
162661
  );
162461
162662
  let content;
162462
162663
  if (secretBulkArgs.json) {
162463
- const jsonFilePath = import_node_path61.default.resolve(secretBulkArgs.json);
162664
+ const jsonFilePath = import_node_path62.default.resolve(secretBulkArgs.json);
162464
162665
  try {
162465
162666
  content = parseJSON(
162466
162667
  readFileSync5(jsonFilePath),
@@ -162985,8 +163186,8 @@ function isValidProtocol(protocol) {
162985
163186
  }
162986
163187
  __name(isValidProtocol, "isValidProtocol");
162987
163188
  function dsnToString(dsn, withPassword = false) {
162988
- const { host, path: path69, pass, port, projectId, protocol, publicKey } = dsn;
162989
- return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path69 ? `${path69}/` : path69}${projectId}`;
163189
+ const { host, path: path70, pass, port, projectId, protocol, publicKey } = dsn;
163190
+ return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path70 ? `${path70}/` : path70}${projectId}`;
162990
163191
  }
162991
163192
  __name(dsnToString, "dsnToString");
162992
163193
  function dsnFromString(str) {
@@ -162998,11 +163199,11 @@ function dsnFromString(str) {
162998
163199
  return void 0;
162999
163200
  }
163000
163201
  const [protocol, publicKey, pass = "", host, port = "", lastPath] = match2.slice(1);
163001
- let path69 = "";
163202
+ let path70 = "";
163002
163203
  let projectId = lastPath;
163003
163204
  const split = projectId.split("/");
163004
163205
  if (split.length > 1) {
163005
- path69 = split.slice(0, -1).join("/");
163206
+ path70 = split.slice(0, -1).join("/");
163006
163207
  projectId = split.pop();
163007
163208
  }
163008
163209
  if (projectId) {
@@ -163011,7 +163212,7 @@ function dsnFromString(str) {
163011
163212
  projectId = projectMatch[0];
163012
163213
  }
163013
163214
  }
163014
- return dsnFromComponents({ host, pass, path: path69, projectId, port, protocol, publicKey });
163215
+ return dsnFromComponents({ host, pass, path: path70, projectId, port, protocol, publicKey });
163015
163216
  }
163016
163217
  __name(dsnFromString, "dsnFromString");
163017
163218
  function dsnFromComponents(components) {
@@ -164099,9 +164300,9 @@ function getNumberOfUrlSegments(url4) {
164099
164300
  }
164100
164301
  __name(getNumberOfUrlSegments, "getNumberOfUrlSegments");
164101
164302
  function getSanitizedUrlString(url4) {
164102
- const { protocol, host, path: path69 } = url4;
164303
+ const { protocol, host, path: path70 } = url4;
164103
164304
  const filteredHost = host && host.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
164104
- return `${protocol ? `${protocol}://` : ""}${filteredHost}${path69}`;
164305
+ return `${protocol ? `${protocol}://` : ""}${filteredHost}${path70}`;
164105
164306
  }
164106
164307
  __name(getSanitizedUrlString, "getSanitizedUrlString");
164107
164308
 
@@ -164116,13 +164317,13 @@ var DEFAULT_REQUEST_INCLUDES = ["cookies", "data", "headers", "method", "query_s
164116
164317
  var DEFAULT_USER_INCLUDES = ["id", "username", "email"];
164117
164318
  function extractPathForTransaction(req, options30 = {}) {
164118
164319
  const method = req.method && req.method.toUpperCase();
164119
- let path69 = "";
164320
+ let path70 = "";
164120
164321
  let source = "url";
164121
164322
  if (options30.customRoute || req.route) {
164122
- path69 = options30.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
164323
+ path70 = options30.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
164123
164324
  source = "route";
164124
164325
  } else if (req.originalUrl || req.url) {
164125
- path69 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
164326
+ path70 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
164126
164327
  }
164127
164328
  let name2 = "";
164128
164329
  if (options30.method && method) {
@@ -164131,8 +164332,8 @@ function extractPathForTransaction(req, options30 = {}) {
164131
164332
  if (options30.method && options30.path) {
164132
164333
  name2 += " ";
164133
164334
  }
164134
- if (options30.path && path69) {
164135
- name2 += path69;
164335
+ if (options30.path && path70) {
164336
+ name2 += path70;
164136
164337
  }
164137
164338
  return [name2, source];
164138
164339
  }
@@ -168622,13 +168823,13 @@ function instrumentRouter(appOrRouter) {
168622
168823
  }, "process_params");
168623
168824
  }
168624
168825
  __name(instrumentRouter, "instrumentRouter");
168625
- var extractOriginalRoute = /* @__PURE__ */ __name((path69, regexp, keys) => {
168626
- if (!path69 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
168826
+ var extractOriginalRoute = /* @__PURE__ */ __name((path70, regexp, keys) => {
168827
+ if (!path70 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
168627
168828
  return void 0;
168628
168829
  }
168629
168830
  const orderedKeys = keys.sort((a, b2) => a.offset - b2.offset);
168630
168831
  const pathRegex = new RegExp(regexp, `${regexp.flags}d`);
168631
- const execResult = pathRegex.exec(path69);
168832
+ const execResult = pathRegex.exec(path70);
168632
168833
  if (!execResult || !execResult.indices) {
168633
168834
  return void 0;
168634
168835
  }
@@ -168636,7 +168837,7 @@ var extractOriginalRoute = /* @__PURE__ */ __name((path69, regexp, keys) => {
168636
168837
  if (paramIndices.length !== orderedKeys.length) {
168637
168838
  return void 0;
168638
168839
  }
168639
- let resultPath = path69;
168840
+ let resultPath = path70;
168640
168841
  let indexShift = 0;
168641
168842
  paramIndices.forEach((item, index) => {
168642
168843
  if (item) {
@@ -169538,8 +169739,8 @@ init_import_meta_url();
169538
169739
  init_import_meta_url();
169539
169740
  var import_path16 = require("path");
169540
169741
  var isWindowsPlatform = import_path16.sep === "\\";
169541
- function normalizeWindowsPath(path69) {
169542
- return path69.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
169742
+ function normalizeWindowsPath(path70) {
169743
+ return path70.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
169543
169744
  }
169544
169745
  __name(normalizeWindowsPath, "normalizeWindowsPath");
169545
169746
  function getModuleFromFilename(filename, normalizeWindowsPathSeparator = isWindowsPlatform) {
@@ -169728,15 +169929,15 @@ init_import_meta_url();
169728
169929
  var import_url7 = require("url");
169729
169930
  function extractRawUrl(requestOptions) {
169730
169931
  const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
169731
- const path69 = requestOptions.path ? requestOptions.path : "/";
169732
- return `${protocol}//${hostname2}${port}${path69}`;
169932
+ const path70 = requestOptions.path ? requestOptions.path : "/";
169933
+ return `${protocol}//${hostname2}${port}${path70}`;
169733
169934
  }
169734
169935
  __name(extractRawUrl, "extractRawUrl");
169735
169936
  function extractUrl(requestOptions) {
169736
169937
  const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
169737
- const path69 = requestOptions.pathname || "/";
169938
+ const path70 = requestOptions.pathname || "/";
169738
169939
  const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : "";
169739
- return `${protocol}//${authority}${hostname2}${port}${path69}`;
169940
+ return `${protocol}//${authority}${hostname2}${port}${path70}`;
169740
169941
  }
169741
169942
  __name(extractUrl, "extractUrl");
169742
169943
  function redactAuthority(auth) {
@@ -170277,8 +170478,8 @@ function collectModules() {
170277
170478
  const paths = getPaths();
170278
170479
  const infos = {};
170279
170480
  const seen = {};
170280
- paths.forEach((path69) => {
170281
- let dir = path69;
170481
+ paths.forEach((path70) => {
170482
+ let dir = path70;
170282
170483
  const updir = /* @__PURE__ */ __name(() => {
170283
170484
  const orig = dir;
170284
170485
  dir = (0, import_path17.dirname)(orig);
@@ -170353,9 +170554,9 @@ init_import_meta_url();
170353
170554
  var import_fs13 = require("fs");
170354
170555
  var FILE_CONTENT_CACHE = new LRUMap(100);
170355
170556
  var DEFAULT_LINES_OF_CONTEXT = 7;
170356
- function readTextFileAsync(path69) {
170557
+ function readTextFileAsync(path70) {
170357
170558
  return new Promise((resolve22, reject) => {
170358
- (0, import_fs13.readFile)(path69, "utf8", (err, data) => {
170559
+ (0, import_fs13.readFile)(path70, "utf8", (err, data) => {
170359
170560
  if (err)
170360
170561
  reject(err);
170361
170562
  else
@@ -171936,7 +172137,7 @@ __name(triggersDeployHandler, "triggersDeployHandler");
171936
172137
  // src/type-generation/index.ts
171937
172138
  init_import_meta_url();
171938
172139
  var fs26 = __toESM(require("node:fs"));
171939
- var import_node_path62 = require("node:path");
172140
+ var import_node_path63 = require("node:path");
171940
172141
  var import_miniflare22 = require("miniflare");
171941
172142
 
171942
172143
  // src/type-generation/runtime/index.ts
@@ -171992,9 +172193,9 @@ async function generate({
171992
172193
  script: worker
171993
172194
  });
171994
172195
  const flagsString = compatibilityFlags.length ? `+${compatibilityFlags.join("+")}` : "";
171995
- const path69 = `http://dummy.com/${compatibilityDate}${flagsString}`;
172196
+ const path70 = `http://dummy.com/${compatibilityDate}${flagsString}`;
171996
172197
  try {
171997
- const res = await mf.dispatchFetch(path69);
172198
+ const res = await mf.dispatchFetch(path70);
171998
172199
  const text = await res.text();
171999
172200
  if (!res.ok) {
172000
172201
  throw new Error(text);
@@ -172112,7 +172313,7 @@ async function typesHandler(args) {
172112
172313
  config,
172113
172314
  outFile: args.experimentalIncludeRuntime || void 0
172114
172315
  });
172115
- const tsconfigPath = config.tsconfig ?? (0, import_node_path62.join)((0, import_node_path62.dirname)(configPath), "tsconfig.json");
172316
+ const tsconfigPath = config.tsconfig ?? (0, import_node_path63.join)((0, import_node_path63.dirname)(configPath), "tsconfig.json");
172116
172317
  const tsconfigTypes = readTsconfigTypes(tsconfigPath);
172117
172318
  const { mode } = (0, import_miniflare22.getNodeCompat)(
172118
172319
  config.compatibility_date,
@@ -172192,8 +172393,8 @@ function constructTSModuleGlob(glob) {
172192
172393
  }
172193
172394
  __name(constructTSModuleGlob, "constructTSModuleGlob");
172194
172395
  function generateImportSpecifier(from, to) {
172195
- const relativePath = (0, import_node_path62.relative)((0, import_node_path62.dirname)(from), (0, import_node_path62.dirname)(to)).replace(/\\/g, "/");
172196
- const filename = (0, import_node_path62.basename)(to, (0, import_node_path62.extname)(to));
172396
+ const relativePath = (0, import_node_path63.relative)((0, import_node_path63.dirname)(from), (0, import_node_path63.dirname)(to)).replace(/\\/g, "/");
172397
+ const filename = (0, import_node_path63.basename)(to, (0, import_node_path63.extname)(to));
172197
172398
  if (!relativePath) {
172198
172399
  return `./${filename}`;
172199
172400
  } else if (relativePath.startsWith("..")) {
@@ -172228,7 +172429,7 @@ async function generateTypes(configToDTS, config, envInterface, outputPath) {
172228
172429
  }
172229
172430
  }
172230
172431
  const entrypointFormat = entrypoint?.format ?? "modules";
172231
- const fullOutputPath = (0, import_node_path62.resolve)(outputPath);
172432
+ const fullOutputPath = (0, import_node_path63.resolve)(outputPath);
172232
172433
  const userProvidedEnvInterface = envInterface !== "Env";
172233
172434
  if (userProvidedEnvInterface && entrypointFormat === "service-worker") {
172234
172435
  throw new Error(
@@ -172408,13 +172609,13 @@ function writeDTSFile({
172408
172609
  modulesTypeStructure,
172409
172610
  formatType,
172410
172611
  envInterface,
172411
- path: path69
172612
+ path: path70
172412
172613
  }) {
172413
- const wranglerOverrideDTSPath = findUpSync(path69);
172614
+ const wranglerOverrideDTSPath = findUpSync(path70);
172414
172615
  try {
172415
172616
  if (wranglerOverrideDTSPath !== void 0 && !fs26.readFileSync(wranglerOverrideDTSPath, "utf8").includes("Generated by Wrangler")) {
172416
172617
  throw new UserError(
172417
- `A non-wrangler ${(0, import_node_path62.basename)(path69)} already exists, please rename and try again.`
172618
+ `A non-wrangler ${(0, import_node_path63.basename)(path70)} already exists, please rename and try again.`
172418
172619
  );
172419
172620
  }
172420
172621
  } catch (error2) {
@@ -172432,7 +172633,7 @@ function writeDTSFile({
172432
172633
  modulesTypeStructure
172433
172634
  );
172434
172635
  fs26.writeFileSync(
172435
- path69,
172636
+ path70,
172436
172637
  [
172437
172638
  `// Generated by Wrangler by running \`${wranglerCommandUsed}\``,
172438
172639
  "",
@@ -174415,7 +174616,7 @@ __name(parseModules, "parseModules");
174415
174616
 
174416
174617
  // src/versions/secrets/bulk.ts
174417
174618
  init_import_meta_url();
174418
- var import_node_path63 = __toESM(require("node:path"));
174619
+ var import_node_path64 = __toESM(require("node:path"));
174419
174620
  var import_node_readline6 = __toESM(require("node:readline"));
174420
174621
  var versionsSecretBulkCommand = createCommand({
174421
174622
  metadata: {
@@ -174461,7 +174662,7 @@ var versionsSecretBulkCommand = createCommand({
174461
174662
  );
174462
174663
  let content;
174463
174664
  if (args.json) {
174464
- const jsonFilePath = import_node_path63.default.resolve(args.json);
174665
+ const jsonFilePath = import_node_path64.default.resolve(args.json);
174465
174666
  try {
174466
174667
  content = parseJSON(
174467
174668
  readFileSync5(jsonFilePath),
@@ -174775,7 +174976,7 @@ var versionsSecretPutCommand = createCommand({
174775
174976
  init_import_meta_url();
174776
174977
  var import_node_assert25 = __toESM(require("node:assert"));
174777
174978
  var import_node_fs36 = require("node:fs");
174778
- var import_node_path64 = __toESM(require("node:path"));
174979
+ var import_node_path65 = __toESM(require("node:path"));
174779
174980
  var scriptStartupErrorRegex2 = /startup/i;
174780
174981
  function errIsScriptSize2(err) {
174781
174982
  if (!err) {
@@ -175007,7 +175208,7 @@ var versionsUploadCommand = createCommand({
175007
175208
  await verifyWorkerMatchesCITag(
175008
175209
  accountId,
175009
175210
  name2,
175010
- import_node_path64.default.relative(entry.projectRoot, config.configPath ?? "wrangler.toml")
175211
+ import_node_path65.default.relative(entry.projectRoot, config.configPath ?? "wrangler.toml")
175011
175212
  );
175012
175213
  }
175013
175214
  if (!args.dryRun) {
@@ -175136,7 +175337,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
175136
175337
  }
175137
175338
  if (props.outDir) {
175138
175339
  (0, import_node_fs36.mkdirSync)(props.outDir, { recursive: true });
175139
- const readmePath = import_node_path64.default.join(props.outDir, "README.md");
175340
+ const readmePath = import_node_path65.default.join(props.outDir, "README.md");
175140
175341
  (0, import_node_fs36.writeFileSync)(
175141
175342
  readmePath,
175142
175343
  `This folder contains the built output assets for the worker "${scriptName}" generated at ${(/* @__PURE__ */ new Date()).toISOString()}.`
@@ -175168,11 +175369,11 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
175168
175369
  const destinationDir = typeof destination === "string" ? destination : destination.path;
175169
175370
  (0, import_node_fs36.mkdirSync)(destinationDir, { recursive: true });
175170
175371
  (0, import_node_fs36.writeFileSync)(
175171
- import_node_path64.default.join(destinationDir, import_node_path64.default.basename(props.entry.file)),
175372
+ import_node_path65.default.join(destinationDir, import_node_path65.default.basename(props.entry.file)),
175172
175373
  (0, import_node_fs36.readFileSync)(props.entry.file, "utf-8")
175173
175374
  );
175174
175375
  }
175175
- const entryDirectory = import_node_path64.default.dirname(props.entry.file);
175376
+ const entryDirectory = import_node_path65.default.dirname(props.entry.file);
175176
175377
  const moduleCollector = createModuleCollector({
175177
175378
  wrangler1xLegacyModuleReferences: getWrangler1xLegacyModuleReferences(
175178
175379
  entryDirectory,
@@ -175235,7 +175436,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
175235
175436
  }
175236
175437
  );
175237
175438
  for (const module3 of modules) {
175238
- const modulePath = module3.filePath === void 0 ? module3.name : import_node_path64.default.relative("", module3.filePath);
175439
+ const modulePath = module3.filePath === void 0 ? module3.name : import_node_path65.default.relative("", module3.filePath);
175239
175440
  const bytesInOutput = typeof module3.content === "string" ? Buffer.byteLength(module3.content) : module3.content.byteLength;
175240
175441
  dependencies[modulePath] = { bytesInOutput };
175241
175442
  }
@@ -175255,7 +175456,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
175255
175456
  vars: { ...config.vars, ...props.vars }
175256
175457
  });
175257
175458
  const placement = config.placement?.mode === "smart" ? { mode: "smart", hint: config.placement.hint } : void 0;
175258
- const entryPointName = import_node_path64.default.basename(resolvedEntryPointPath);
175459
+ const entryPointName = import_node_path65.default.basename(resolvedEntryPointPath);
175259
175460
  const main2 = {
175260
175461
  name: entryPointName,
175261
175462
  filePath: resolvedEntryPointPath,
@@ -175292,7 +175493,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
175292
175493
  observability: void 0
175293
175494
  };
175294
175495
  await printBundleSize(
175295
- { name: import_node_path64.default.basename(resolvedEntryPointPath), content },
175496
+ { name: import_node_path65.default.basename(resolvedEntryPointPath), content },
175296
175497
  modules
175297
175498
  );
175298
175499
  const maskedVars = { ...bindings.vars };
@@ -177545,6 +177746,22 @@ function createCLIParser(argv) {
177545
177746
  {
177546
177747
  command: "wrangler r2 bucket lifecycle set",
177547
177748
  definition: r2BucketLifecycleSetCommand
177749
+ },
177750
+ {
177751
+ command: "wrangler r2 bucket cors",
177752
+ definition: r2BucketCORSNamespace
177753
+ },
177754
+ {
177755
+ command: "wrangler r2 bucket cors delete",
177756
+ definition: r2BucketCORSDeleteCommand
177757
+ },
177758
+ {
177759
+ command: "wrangler r2 bucket cors list",
177760
+ definition: r2BucketCORSListCommand
177761
+ },
177762
+ {
177763
+ command: "wrangler r2 bucket cors set",
177764
+ definition: r2BucketCORSSetCommand
177548
177765
  }
177549
177766
  ]);
177550
177767
  registry.registerNamespace("r2");
@@ -178319,7 +178536,7 @@ var ConfigController = class extends Controller {
178319
178536
  persistent: true,
178320
178537
  ignoreInitial: true
178321
178538
  }).on("change", async (_event) => {
178322
- logger.log(`${import_node_path65.default.basename(configPath)} changed...`);
178539
+ logger.log(`${import_node_path66.default.basename(configPath)} changed...`);
178323
178540
  (0, import_node_assert26.default)(
178324
178541
  this.latestInput,
178325
178542
  "Cannot be watching config without having first set an input"
@@ -178563,7 +178780,7 @@ __name(createWorkerPreview, "createWorkerPreview");
178563
178780
  // src/dev/remote.ts
178564
178781
  init_import_meta_url();
178565
178782
  var import_node_assert27 = __toESM(require("node:assert"));
178566
- var import_node_path66 = __toESM(require("node:path"));
178783
+ var import_node_path67 = __toESM(require("node:path"));
178567
178784
  function handlePreviewSessionUploadError(err, accountId) {
178568
178785
  (0, import_node_assert27.default)(err && typeof err === "object");
178569
178786
  if (isAbortError(err)) {
@@ -178606,7 +178823,7 @@ async function createRemoteWorkerInit(props) {
178606
178823
  );
178607
178824
  void printBundleSize(
178608
178825
  {
178609
- name: import_node_path66.default.basename(props.bundle.path),
178826
+ name: import_node_path67.default.basename(props.bundle.path),
178610
178827
  content
178611
178828
  },
178612
178829
  props.modules
@@ -178634,9 +178851,9 @@ async function createRemoteWorkerInit(props) {
178634
178851
  const init2 = {
178635
178852
  name: props.name,
178636
178853
  main: {
178637
- name: import_node_path66.default.basename(props.bundle.path),
178854
+ name: import_node_path67.default.basename(props.bundle.path),
178638
178855
  filePath: props.bundle.path,
178639
- type: getBundleType(props.format, import_node_path66.default.basename(props.bundle.path)),
178856
+ type: getBundleType(props.format, import_node_path67.default.basename(props.bundle.path)),
178640
178857
  content
178641
178858
  },
178642
178859
  modules,
@@ -179990,3 +180207,4 @@ yargs-parser/build/lib/index.js:
179990
180207
  * SPDX-License-Identifier: ISC
179991
180208
  *)
179992
180209
  */
180210
+ //# sourceMappingURL=cli.js.map