@cloudflare/vite-plugin 1.51.3 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import assert from "node:assert";
5
5
  import { CoreHeaders, CorePaths, DeferredPromise, Log, LogLevel, Miniflare, MiniflareCoreError, Mutex, Request as Request$1, Response as Response$1, buildPublicUrl, convertV4MiniflareOptions, coupleWebSocket, getDefaultDevRegistryPath, getNodeCompat, getWorkerRegistry, kUnsafeEphemeralUniqueKey, parseModuleFallbackRequest } from "miniflare";
6
6
  import * as wrangler from "wrangler";
7
7
  import * as path2 from "node:path";
8
- import path, { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
8
+ import path2__default, { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
9
9
  import * as util$1 from "node:util";
10
10
  import util, { TextEncoder as TextEncoder$1, format, inspect, promisify, styleText } from "node:util";
11
11
  import * as vite from "vite";
@@ -1489,7 +1489,7 @@ async function assertWranglerVersion() {
1489
1489
  * The default compatibility date to use when the user omits one.
1490
1490
  * This value is injected at build time and remains fixed for each release.
1491
1491
  */
1492
- const DEFAULT_COMPAT_DATE = "2026-08-11";
1492
+ const DEFAULT_COMPAT_DATE = "2026-08-12";
1493
1493
 
1494
1494
  //#endregion
1495
1495
  //#region src/build-output-env.ts
@@ -1578,7 +1578,7 @@ const PROXY_SHARED_SECRET = randomUUID();
1578
1578
  const kRequestType = Symbol("kRequestType");
1579
1579
 
1580
1580
  //#endregion
1581
- //#region ../workers-utils/dist/chunk-J6JRMPLM.mjs
1581
+ //#region ../workers-utils/dist/chunk-NMPHTL5R.mjs
1582
1582
  function isCompatDate(str) {
1583
1583
  return /^\d{4}-\d{2}-\d{2}$/.test(str);
1584
1584
  }
@@ -1593,6 +1593,27 @@ function getTodaysCompatDate() {
1593
1593
  return formatCompatibilityDate(/* @__PURE__ */ new Date());
1594
1594
  }
1595
1595
  __name$4(getTodaysCompatDate, "getTodaysCompatDate");
1596
+ var NODEJS_COMPAT_DEFAULT_ON_DATE = "2026-08-04";
1597
+ function isNodejsCompatDefaultOn(compatibilityDate) {
1598
+ return compatibilityDate !== void 0 && compatibilityDate >= NODEJS_COMPAT_DEFAULT_ON_DATE;
1599
+ }
1600
+ __name$4(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
1601
+ var NODEJS_COMPAT_V2_SWITCH_OVER_DATE = "2024-09-23";
1602
+ function resolveNodejsCompat(compatibilityDate, compatibilityFlags) {
1603
+ const isDefaultOn = isNodejsCompatDefaultOn(compatibilityDate);
1604
+ const isNodejsCompatEnabled = compatibilityFlags.includes("nodejs_compat") || isDefaultOn && !compatibilityFlags.includes("no_nodejs_compat");
1605
+ return {
1606
+ isNodejsCompatEnabled,
1607
+ isNodejsCompatV2Enabled: compatibilityFlags.includes("nodejs_compat_v2") || !compatibilityFlags.includes("no_nodejs_compat_v2") && (isDefaultOn || isNodejsCompatEnabled && compatibilityDate >= NODEJS_COMPAT_V2_SWITCH_OVER_DATE)
1608
+ };
1609
+ }
1610
+ __name$4(resolveNodejsCompat, "resolveNodejsCompat");
1611
+ function stripRedundantNodejsCompatFlags(compatibilityDate, compatibilityFlags) {
1612
+ if (!isNodejsCompatDefaultOn(compatibilityDate)) return compatibilityFlags;
1613
+ const redundantFlags = ["nodejs_compat", "nodejs_compat_v2"].filter((flag) => !compatibilityFlags.includes(`no_${flag}`));
1614
+ return compatibilityFlags.filter((flag) => !redundantFlags.includes(flag));
1615
+ }
1616
+ __name$4(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
1596
1617
  function assertNever(_value) {}
1597
1618
  __name$4(assertNever, "assertNever");
1598
1619
  function mapWorkerMetadataBindings(bindings$1) {
@@ -1884,8 +1905,8 @@ __name$4(constructWranglerConfig, "constructWranglerConfig");
1884
1905
 
1885
1906
  //#endregion
1886
1907
  //#region ../workers-utils/dist/chunk-53IMCORZ.mjs
1887
- function isDirectory$1(path$2) {
1888
- return fs2.statSync(path$2, { throwIfNoEntry: false })?.isDirectory() ?? false;
1908
+ function isDirectory$1(path$1) {
1909
+ return fs2.statSync(path$1, { throwIfNoEntry: false })?.isDirectory() ?? false;
1889
1910
  }
1890
1911
  __name$4(isDirectory$1, "isDirectory");
1891
1912
  function removeDir$1(dirPath, { fireAndForget = false } = {}) {
@@ -1928,7 +1949,7 @@ function getEnv(name) {
1928
1949
  }
1929
1950
  __name$4(getEnv, "getEnv");
1930
1951
  function normalizePath$2(p$2) {
1931
- return p$2 ? path.normalize(path.join(p$2, ".")) : void 0;
1952
+ return p$2 ? path2__default.normalize(path2__default.join(p$2, ".")) : void 0;
1932
1953
  }
1933
1954
  __name$4(normalizePath$2, "normalizePath");
1934
1955
  function homeDir() {
@@ -1936,13 +1957,13 @@ function homeDir() {
1936
1957
  os.homedir(),
1937
1958
  getEnv("USERPROFILE"),
1938
1959
  getEnv("HOME"),
1939
- getEnv("HOMEDRIVE") || getEnv("HOMEPATH") ? path.join(getEnv("HOMEDRIVE") ?? "", getEnv("HOMEPATH") ?? "") : void 0
1960
+ getEnv("HOMEDRIVE") || getEnv("HOMEPATH") ? path2__default.join(getEnv("HOMEDRIVE") ?? "", getEnv("HOMEPATH") ?? "") : void 0
1940
1961
  ].find(isNonEmpty));
1941
1962
  return normalizePath$2(os.homedir() || getEnv("HOME"));
1942
1963
  }
1943
1964
  __name$4(homeDir, "homeDir");
1944
1965
  function joinToBase(base, segments) {
1945
- return base ? path.join(base, ...segments) : void 0;
1966
+ return base ? path2__default.join(base, ...segments) : void 0;
1946
1967
  }
1947
1968
  __name$4(joinToBase, "joinToBase");
1948
1969
  function tempDir() {
@@ -1978,7 +1999,7 @@ function baseDir() {
1978
1999
  }
1979
2000
  __name$4(baseDir, "baseDir");
1980
2001
  function valOrPath(value, segments) {
1981
- return value || path.join(...segments);
2002
+ return value || path2__default.join(...segments);
1982
2003
  }
1983
2004
  __name$4(valOrPath, "valOrPath");
1984
2005
  function windowsAppData() {
@@ -2018,10 +2039,10 @@ function xdgCache() {
2018
2039
  }
2019
2040
  __name$4(xdgCache, "xdgCache");
2020
2041
  function xdgAppPaths(name) {
2021
- const segment = path.parse(name).name;
2042
+ const segment = path2__default.parse(name).name;
2022
2043
  return {
2023
- config: /* @__PURE__ */ __name$4(() => path.join(xdgConfig(), segment), "config"),
2024
- cache: /* @__PURE__ */ __name$4(() => path.join(xdgCache(), segment), "cache")
2044
+ config: /* @__PURE__ */ __name$4(() => path2__default.join(xdgConfig(), segment), "config"),
2045
+ cache: /* @__PURE__ */ __name$4(() => path2__default.join(xdgCache(), segment), "cache")
2025
2046
  };
2026
2047
  }
2027
2048
  __name$4(xdgAppPaths, "xdgAppPaths");
@@ -2029,7 +2050,7 @@ function getGlobalConfigPath({ appName = "wrangler", leadingDot = true, useLegac
2029
2050
  const dirName = `${leadingDot ? "." : ""}${appName}`;
2030
2051
  const configDir = xdgAppPaths(dirName).config();
2031
2052
  if (useLegacyHomeDir) {
2032
- const legacyConfigDir = path.join(os.homedir(), dirName);
2053
+ const legacyConfigDir = path2__default.join(os.homedir(), dirName);
2033
2054
  if (isDirectory$1(legacyConfigDir)) return legacyConfigDir;
2034
2055
  }
2035
2056
  return configDir;
@@ -4406,7 +4427,7 @@ function resolveWranglerConfigPath$1({ config: config$2, script }, options) {
4406
4427
  deployConfigPath: void 0,
4407
4428
  redirected: false
4408
4429
  };
4409
- return findWranglerConfig$2(script !== void 0 ? path.dirname(script) : process.cwd(), options);
4430
+ return findWranglerConfig$2(script !== void 0 ? path2__default.dirname(script) : process.cwd(), options);
4410
4431
  }
4411
4432
  __name$4(resolveWranglerConfigPath$1, "resolveWranglerConfigPath");
4412
4433
  function findWranglerConfig$2(referencePath = process.cwd(), { useRedirectIfAvailable = false } = {}) {
@@ -4437,15 +4458,15 @@ function findRedirectedWranglerConfig$1(cwd, userConfigPath) {
4437
4458
  const deployConfigFile = readFileSync$1(deployConfigPath);
4438
4459
  try {
4439
4460
  const deployConfig = parseJSONC$1(deployConfigFile, deployConfigPath);
4440
- redirectedConfigPath = deployConfig.configPath && path.resolve(path.dirname(deployConfigPath), deployConfig.configPath);
4461
+ redirectedConfigPath = deployConfig.configPath && path2__default.resolve(path2__default.dirname(deployConfigPath), deployConfig.configPath);
4441
4462
  } catch (e) {
4442
- throw new UserError(`Failed to parse the deploy configuration file at ${path.relative(".", deployConfigPath)}`, {
4463
+ throw new UserError(`Failed to parse the deploy configuration file at ${path2__default.relative(".", deployConfigPath)}`, {
4443
4464
  cause: e,
4444
4465
  telemetryMessage: false
4445
4466
  });
4446
4467
  }
4447
4468
  if (!redirectedConfigPath) throw new UserError(esm_default$2`
4448
- A deploy configuration file was found at "${path.relative(".", deployConfigPath)}".
4469
+ A deploy configuration file was found at "${path2__default.relative(".", deployConfigPath)}".
4449
4470
  But this is not valid - the required "configPath" property was not found.
4450
4471
  Instead this file contains:
4451
4472
  \`\`\`
@@ -4453,13 +4474,13 @@ function findRedirectedWranglerConfig$1(cwd, userConfigPath) {
4453
4474
  \`\`\`
4454
4475
  `, { telemetryMessage: false });
4455
4476
  if (!existsSync(redirectedConfigPath)) throw new UserError(esm_default$2`
4456
- There is a deploy configuration at "${path.relative(".", deployConfigPath)}".
4457
- But the redirected configuration path it points to, "${path.relative(".", redirectedConfigPath)}", does not exist.
4477
+ There is a deploy configuration at "${path2__default.relative(".", deployConfigPath)}".
4478
+ But the redirected configuration path it points to, "${path2__default.relative(".", redirectedConfigPath)}", does not exist.
4458
4479
  `, { telemetryMessage: false });
4459
4480
  if (userConfigPath) {
4460
- if (path.join(path.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG$1) !== deployConfigPath) throw new UserError(esm_default$2`
4461
- Found both a user configuration file at "${path.relative(".", userConfigPath)}"
4462
- and a deploy configuration file at "${path.relative(".", deployConfigPath)}".
4481
+ if (path2__default.join(path2__default.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG$1) !== deployConfigPath) throw new UserError(esm_default$2`
4482
+ Found both a user configuration file at "${path2__default.relative(".", userConfigPath)}"
4483
+ and a deploy configuration file at "${path2__default.relative(".", deployConfigPath)}".
4463
4484
  But these do not share the same base path so it is not clear which should be used.
4464
4485
  `, { telemetryMessage: false });
4465
4486
  }
@@ -5651,10 +5672,10 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
5651
5672
  if (!isHttpOrHttpsPrefixed(url$2.origin || url$2.protocol)) throw new InvalidArgumentError$37("Invalid URL protocol: the URL must start with `http:` or `https:`.");
5652
5673
  const port = url$2.port != null ? url$2.port : url$2.protocol === "https:" ? 443 : 80;
5653
5674
  let origin = url$2.origin != null ? url$2.origin : `${url$2.protocol || ""}//${url$2.hostname || ""}:${port}`;
5654
- let path$2 = url$2.path != null ? url$2.path : `${url$2.pathname || ""}${url$2.search || ""}`;
5675
+ let path$1 = url$2.path != null ? url$2.path : `${url$2.pathname || ""}${url$2.search || ""}`;
5655
5676
  if (origin[origin.length - 1] === "/") origin = origin.slice(0, origin.length - 1);
5656
- if (path$2 && path$2[0] !== "/") path$2 = `/${path$2}`;
5657
- return new URL(`${origin}${path$2}`);
5677
+ if (path$1 && path$1[0] !== "/") path$1 = `/${path$1}`;
5678
+ return new URL(`${origin}${path$1}`);
5658
5679
  }
5659
5680
  if (!isHttpOrHttpsPrefixed(url$2.origin || url$2.protocol)) throw new InvalidArgumentError$37("Invalid URL protocol: the URL must start with `http:` or `https:`.");
5660
5681
  return url$2;
@@ -6529,8 +6550,8 @@ var require_diagnostics = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
6529
6550
  debugLog("connection to %s%s using %s%s errored - %s", host, port ? `:${port}` : "", protocol, version$6, error$2.message);
6530
6551
  });
6531
6552
  diagnosticsChannel$1.subscribe("undici:client:sendHeaders", (evt) => {
6532
- const { request: { method, path: path$2, origin } } = evt;
6533
- debugLog("sending request to %s %s%s", method, origin, path$2);
6553
+ const { request: { method, path: path$1, origin } } = evt;
6554
+ debugLog("sending request to %s %s%s", method, origin, path$1);
6534
6555
  });
6535
6556
  }
6536
6557
  let isTrackingRequestEvents = false;
@@ -6542,16 +6563,16 @@ var require_diagnostics = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
6542
6563
  }
6543
6564
  isTrackingRequestEvents = true;
6544
6565
  diagnosticsChannel$1.subscribe("undici:request:headers", (evt) => {
6545
- const { request: { method, path: path$2, origin }, response: { statusCode } } = evt;
6546
- debugLog("received response to %s %s%s - HTTP %d", method, origin, path$2, statusCode);
6566
+ const { request: { method, path: path$1, origin }, response: { statusCode } } = evt;
6567
+ debugLog("received response to %s %s%s - HTTP %d", method, origin, path$1, statusCode);
6547
6568
  });
6548
6569
  diagnosticsChannel$1.subscribe("undici:request:trailers", (evt) => {
6549
- const { request: { method, path: path$2, origin } } = evt;
6550
- debugLog("trailers received from %s %s%s", method, origin, path$2);
6570
+ const { request: { method, path: path$1, origin } } = evt;
6571
+ debugLog("trailers received from %s %s%s", method, origin, path$1);
6551
6572
  });
6552
6573
  diagnosticsChannel$1.subscribe("undici:request:error", (evt) => {
6553
- const { request: { method, path: path$2, origin }, error: error$2 } = evt;
6554
- debugLog("request to %s %s%s errored - %s", method, origin, path$2, error$2.message);
6574
+ const { request: { method, path: path$1, origin }, error: error$2 } = evt;
6575
+ debugLog("request to %s %s%s errored - %s", method, origin, path$1, error$2.message);
6555
6576
  });
6556
6577
  }
6557
6578
  let isTrackingWebSocketEvents = false;
@@ -6612,10 +6633,10 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6612
6633
  }
6613
6634
  const kHandler = Symbol("handler");
6614
6635
  var Request$6 = class {
6615
- constructor(origin, { path: path$2, method, body, headers, query, idempotent, blocking, upgrade: upgrade$1, headersTimeout, bodyTimeout, reset, expectContinue, servername, throwOnError, maxRedirections, typeOfService }, handler) {
6616
- if (typeof path$2 !== "string") throw new InvalidArgumentError$36("path must be a string");
6617
- else if (path$2[0] !== "/" && !(path$2.startsWith("http://") || path$2.startsWith("https://")) && method !== "CONNECT") throw new InvalidArgumentError$36("path must be an absolute URL or start with a slash");
6618
- else if (invalidPathRegex.test(path$2)) throw new InvalidArgumentError$36("invalid request path");
6636
+ constructor(origin, { path: path$1, method, body, headers, query, idempotent, blocking, upgrade: upgrade$1, headersTimeout, bodyTimeout, reset, expectContinue, servername, throwOnError, maxRedirections, typeOfService }, handler) {
6637
+ if (typeof path$1 !== "string") throw new InvalidArgumentError$36("path must be a string");
6638
+ else if (path$1[0] !== "/" && !(path$1.startsWith("http://") || path$1.startsWith("https://")) && method !== "CONNECT") throw new InvalidArgumentError$36("path must be an absolute URL or start with a slash");
6639
+ else if (invalidPathRegex.test(path$1)) throw new InvalidArgumentError$36("invalid request path");
6619
6640
  if (typeof method !== "string") throw new InvalidArgumentError$36("method must be a string");
6620
6641
  else if (normalizedMethodRecords$1[method] === void 0 && !isValidHTTPToken$3(method)) throw new InvalidArgumentError$36("invalid request method");
6621
6642
  if (upgrade$1 && typeof upgrade$1 !== "string") throw new InvalidArgumentError$36("upgrade must be a string");
@@ -6656,7 +6677,7 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6656
6677
  this.completed = false;
6657
6678
  this.aborted = false;
6658
6679
  this.upgrade = upgrade$1 || null;
6659
- this.path = query ? serializePathWithQuery$3(path$2, query) : path$2;
6680
+ this.path = query ? serializePathWithQuery$3(path$1, query) : path$1;
6660
6681
  this.origin = origin;
6661
6682
  this.protocol = getProtocolFromUrlString(origin);
6662
6683
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
@@ -11262,7 +11283,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11262
11283
  * @returns
11263
11284
  */
11264
11285
  function writeH1(client, request$2) {
11265
- const { method, path: path$2, host, upgrade: upgrade$1, blocking, reset } = request$2;
11286
+ const { method, path: path$1, host, upgrade: upgrade$1, blocking, reset } = request$2;
11266
11287
  let { body, headers, contentLength } = request$2;
11267
11288
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH" || method === "QUERY" || method === "PROPFIND" || method === "PROPPATCH";
11268
11289
  if (util$22.isFormDataLike(body)) {
@@ -11318,7 +11339,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11318
11339
  if (client[kMaxRequests$1] && socket[kCounter$1]++ >= client[kMaxRequests$1]) socket[kReset$1] = true;
11319
11340
  if (blocking) socket[kBlocking] = true;
11320
11341
  if (socket.setTypeOfService) socket.setTypeOfService(request$2.typeOfService);
11321
- let header = `${method} ${path$2} HTTP/1.1\r\n`;
11342
+ let header = `${method} ${path$1} HTTP/1.1\r\n`;
11322
11343
  if (typeof host === "string") header += `host: ${host}\r\n`;
11323
11344
  else header += client[kHostHeader$1];
11324
11345
  if (upgrade$1) header += `connection: upgrade\r\nupgrade: ${upgrade$1}\r\n`;
@@ -11854,7 +11875,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11854
11875
  function writeH2(client, request$2) {
11855
11876
  const requestTimeout = request$2.bodyTimeout ?? client[kBodyTimeout$1];
11856
11877
  const session = client[kHTTP2Session];
11857
- const { method, path: path$2, host, upgrade: upgrade$1, expectContinue, signal, protocol, headers: reqHeaders } = request$2;
11878
+ const { method, path: path$1, host, upgrade: upgrade$1, expectContinue, signal, protocol, headers: reqHeaders } = request$2;
11858
11879
  let { body } = request$2;
11859
11880
  if (upgrade$1 != null && upgrade$1 !== "websocket") {
11860
11881
  util$21.errorRequest(client, request$2, new InvalidArgumentError$30(`Custom upgrade "${upgrade$1}" not supported over HTTP/2`));
@@ -11907,7 +11928,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11907
11928
  }
11908
11929
  headers[HTTP2_HEADER_METHOD] = "CONNECT";
11909
11930
  headers[HTTP2_HEADER_PROTOCOL] = "websocket";
11910
- headers[HTTP2_HEADER_PATH] = path$2;
11931
+ headers[HTTP2_HEADER_PATH] = path$1;
11911
11932
  if (protocol === "ws:" || protocol === "wss:") headers[HTTP2_HEADER_SCHEME] = protocol === "ws:" ? "http" : "https";
11912
11933
  else headers[HTTP2_HEADER_SCHEME] = protocol === "http:" ? "http" : "https";
11913
11934
  stream$2 = session.request(headers, {
@@ -11949,7 +11970,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11949
11970
  stream$2.setTimeout(requestTimeout);
11950
11971
  return true;
11951
11972
  }
11952
- headers[HTTP2_HEADER_PATH] = path$2;
11973
+ headers[HTTP2_HEADER_PATH] = path$1;
11953
11974
  headers[HTTP2_HEADER_SCHEME] = protocol === "http:" ? "http" : "https";
11954
11975
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
11955
11976
  if (body && typeof body.read === "function") body.read(0);
@@ -13814,8 +13835,8 @@ var require_proxy_agent = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
13814
13835
  }
13815
13836
  if (onHeaders) onHeaders.call(this, statusCode, data$1, resume$1);
13816
13837
  };
13817
- const { origin, path: path$2 = "/", headers = {} } = opts;
13818
- opts.path = origin + path$2;
13838
+ const { origin, path: path$1 = "/", headers = {} } = opts;
13839
+ opts.path = origin + path$1;
13819
13840
  if (!("host" in headers) && !("Host" in headers)) {
13820
13841
  const { host } = new URL(origin);
13821
13842
  headers.host = host;
@@ -15613,16 +15634,16 @@ var require_mock_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
15613
15634
  }
15614
15635
  return normalizedQp;
15615
15636
  }
15616
- function safeUrl(path$2) {
15617
- if (typeof path$2 !== "string") return path$2;
15618
- const pathSegments = path$2.split("?", 3);
15619
- if (pathSegments.length !== 2) return path$2;
15637
+ function safeUrl(path$1) {
15638
+ if (typeof path$1 !== "string") return path$1;
15639
+ const pathSegments = path$1.split("?", 3);
15640
+ if (pathSegments.length !== 2) return path$1;
15620
15641
  const qp = new URLSearchParams(pathSegments.pop());
15621
15642
  qp.sort();
15622
15643
  return [...pathSegments, qp.toString()].join("?");
15623
15644
  }
15624
- function matchKey(mockDispatch$1, { path: path$2, method, body, headers }) {
15625
- const pathMatch = matchValue$1(mockDispatch$1.path, path$2);
15645
+ function matchKey(mockDispatch$1, { path: path$1, method, body, headers }) {
15646
+ const pathMatch = matchValue$1(mockDispatch$1.path, path$1);
15626
15647
  const methodMatch = matchValue$1(mockDispatch$1.method, method);
15627
15648
  const bodyMatch = typeof mockDispatch$1.body !== "undefined" ? matchValue$1(mockDispatch$1.body, body) : true;
15628
15649
  const headersMatch = matchHeaders(mockDispatch$1, headers);
@@ -15640,8 +15661,8 @@ var require_mock_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
15640
15661
  const basePath = key.query ? serializePathWithQuery$2(key.path, key.query) : key.path;
15641
15662
  const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
15642
15663
  const resolvedPathWithoutTrailingSlash = removeTrailingSlash(resolvedPath);
15643
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path$2, ignoreTrailingSlash }) => {
15644
- return ignoreTrailingSlash ? matchValue$1(removeTrailingSlash(safeUrl(path$2)), resolvedPathWithoutTrailingSlash) : matchValue$1(safeUrl(path$2), resolvedPath);
15664
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path$1, ignoreTrailingSlash }) => {
15665
+ return ignoreTrailingSlash ? matchValue$1(removeTrailingSlash(safeUrl(path$1)), resolvedPathWithoutTrailingSlash) : matchValue$1(safeUrl(path$1), resolvedPath);
15645
15666
  });
15646
15667
  if (matchedMockDispatches.length === 0) throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
15647
15668
  matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue$1(method, key.method));
@@ -15684,15 +15705,15 @@ var require_mock_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
15684
15705
  /**
15685
15706
  * @param {string} path Path to remove trailing slash from
15686
15707
  */
15687
- function removeTrailingSlash(path$2) {
15688
- while (path$2.endsWith("/")) path$2 = path$2.slice(0, -1);
15689
- if (path$2.length === 0) path$2 = "/";
15690
- return path$2;
15708
+ function removeTrailingSlash(path$1) {
15709
+ while (path$1.endsWith("/")) path$1 = path$1.slice(0, -1);
15710
+ if (path$1.length === 0) path$1 = "/";
15711
+ return path$1;
15691
15712
  }
15692
15713
  function buildKey$1(opts) {
15693
- const { path: path$2, method, body, headers, query } = opts;
15714
+ const { path: path$1, method, body, headers, query } = opts;
15694
15715
  return {
15695
- path: path$2,
15716
+ path: path$1,
15696
15717
  method,
15697
15718
  body,
15698
15719
  headers,
@@ -16259,10 +16280,10 @@ var require_pending_interceptors_formatter = /* @__PURE__ */ __commonJS$2({ "../
16259
16280
  });
16260
16281
  }
16261
16282
  format(pendingInterceptors) {
16262
- const withPrettyHeaders = pendingInterceptors.map(({ method, path: path$2, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
16283
+ const withPrettyHeaders = pendingInterceptors.map(({ method, path: path$1, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
16263
16284
  Method: method,
16264
16285
  Origin: origin,
16265
- Path: path$2,
16286
+ Path: path$1,
16266
16287
  "Status code": statusCode,
16267
16288
  Persistent: persist ? PERSISTENT : NOT_PERSISTENT,
16268
16289
  Invocations: timesInvoked,
@@ -16320,8 +16341,8 @@ var require_mock_agent = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
16320
16341
  const acceptNonStandardSearchParameters = this[kMockAgentAcceptsNonStandardSearchParameters];
16321
16342
  const dispatchOpts = { ...opts };
16322
16343
  if (acceptNonStandardSearchParameters && dispatchOpts.path) {
16323
- const [path$2, searchParams] = dispatchOpts.path.split("?");
16324
- dispatchOpts.path = `${path$2}?${normalizeSearchParams(searchParams, acceptNonStandardSearchParameters)}`;
16344
+ const [path$1, searchParams] = dispatchOpts.path.split("?");
16345
+ dispatchOpts.path = `${path$1}?${normalizeSearchParams(searchParams, acceptNonStandardSearchParameters)}`;
16325
16346
  }
16326
16347
  return this[kAgent].dispatch(dispatchOpts, handler);
16327
16348
  }
@@ -16798,10 +16819,10 @@ var require_snapshot_recorder = /* @__PURE__ */ __commonJS$2({ "../../node_modul
16798
16819
  * @return {Promise<void>} - Resolves when snapshots are loaded
16799
16820
  */
16800
16821
  async loadSnapshots(filePath) {
16801
- const path$2 = filePath || this.#snapshotPath;
16802
- if (!path$2) throw new InvalidArgumentError$6("Snapshot path is required");
16822
+ const path$1 = filePath || this.#snapshotPath;
16823
+ if (!path$1) throw new InvalidArgumentError$6("Snapshot path is required");
16803
16824
  try {
16804
- const data$1 = await readFile(resolve$3(path$2), "utf8");
16825
+ const data$1 = await readFile(resolve$3(path$1), "utf8");
16805
16826
  const parsed = JSON.parse(data$1);
16806
16827
  if (Array.isArray(parsed)) {
16807
16828
  this.#snapshots.clear();
@@ -16809,7 +16830,7 @@ var require_snapshot_recorder = /* @__PURE__ */ __commonJS$2({ "../../node_modul
16809
16830
  } else this.#snapshots = new Map(Object.entries(parsed));
16810
16831
  } catch (error$2) {
16811
16832
  if (error$2.code === "ENOENT") this.#snapshots.clear();
16812
- else throw new UndiciError$1(`Failed to load snapshots from ${path$2}`, { cause: error$2 });
16833
+ else throw new UndiciError$1(`Failed to load snapshots from ${path$1}`, { cause: error$2 });
16813
16834
  }
16814
16835
  }
16815
16836
  /**
@@ -16819,9 +16840,9 @@ var require_snapshot_recorder = /* @__PURE__ */ __commonJS$2({ "../../node_modul
16819
16840
  * @returns {Promise<void>} - Resolves when snapshots are saved
16820
16841
  */
16821
16842
  async saveSnapshots(filePath) {
16822
- const path$2 = filePath || this.#snapshotPath;
16823
- if (!path$2) throw new InvalidArgumentError$6("Snapshot path is required");
16824
- const resolvedPath = resolve$3(path$2);
16843
+ const path$1 = filePath || this.#snapshotPath;
16844
+ if (!path$1) throw new InvalidArgumentError$6("Snapshot path is required");
16845
+ const resolvedPath = resolve$3(path$1);
16825
16846
  await mkdir(dirname$2(resolvedPath), { recursive: true });
16826
16847
  const data$1 = Array.from(this.#snapshots.entries()).map(([hash$1, snapshot]) => ({
16827
16848
  hash: hash$1,
@@ -17395,11 +17416,11 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
17395
17416
  return;
17396
17417
  }
17397
17418
  const { origin, pathname, search } = util$9.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
17398
- const path$2 = search ? `${pathname}${search}` : pathname;
17399
- const redirectUrlString = `${origin}${path$2}`;
17419
+ const path$1 = search ? `${pathname}${search}` : pathname;
17420
+ const redirectUrlString = `${origin}${path$1}`;
17400
17421
  for (const historyUrl of this.history) if (historyUrl.toString() === redirectUrlString) throw new InvalidArgumentError$3(`Redirect loop detected. Cannot redirect to ${origin}. This typically happens when using a Client or Pool with cross-origin redirects. Use an Agent for cross-origin redirects.`);
17401
17422
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
17402
- this.opts.path = path$2;
17423
+ this.opts.path = path$1;
17403
17424
  this.opts.origin = origin;
17404
17425
  this.opts.query = null;
17405
17426
  }
@@ -18739,17 +18760,17 @@ var require_cache_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
18739
18760
  if (locationUrl.origin !== originUrl.origin) return;
18740
18761
  return locationUrl.pathname + locationUrl.search;
18741
18762
  }
18742
- function deleteCachedUri(store, cacheKey, path$2) {
18763
+ function deleteCachedUri(store, cacheKey, path$1) {
18743
18764
  deleteCachedValue$1(store, {
18744
18765
  ...cacheKey,
18745
- path: path$2
18766
+ path: path$1
18746
18767
  });
18747
18768
  for (let i$1 = 0; i$1 < util$8.safeHTTPMethods.length; i$1++) {
18748
18769
  const method = util$8.safeHTTPMethods[i$1];
18749
18770
  if (method !== cacheKey.method) deleteCachedValue$1(store, {
18750
18771
  ...cacheKey,
18751
18772
  method,
18752
- path: path$2
18773
+ path: path$1
18753
18774
  });
18754
18775
  }
18755
18776
  }
@@ -18757,8 +18778,8 @@ var require_cache_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
18757
18778
  if (headerValue === void 0) return;
18758
18779
  const values = Array.isArray(headerValue) ? headerValue : [headerValue];
18759
18780
  for (let i$1 = 0; i$1 < values.length; i$1++) {
18760
- const path$2 = getSameOriginPath(cacheKey, values[i$1]);
18761
- if (path$2 !== void 0) deleteCachedUri(store, cacheKey, path$2);
18781
+ const path$1 = getSameOriginPath(cacheKey, values[i$1]);
18782
+ if (path$1 !== void 0) deleteCachedUri(store, cacheKey, path$1);
18762
18783
  }
18763
18784
  }
18764
18785
  function invalidateUnsafeRequest(store, cacheKey, resHeaders) {
@@ -22763,10 +22784,10 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
22763
22784
  const url$2 = requestCurrentURL(request$2);
22764
22785
  /** @type {import('../../..').Agent} */
22765
22786
  const agent = fetchParams.controller.dispatcher;
22766
- const path$2 = url$2.pathname + url$2.search;
22787
+ const path$1 = url$2.pathname + url$2.search;
22767
22788
  const hasTrailingQuestionMark = url$2.search.length === 0 && url$2.href[url$2.href.length - url$2.hash.length - 1] === "?";
22768
22789
  return new Promise((resolve$4, reject) => agent.dispatch({
22769
- path: hasTrailingQuestionMark ? `${path$2}?` : path$2,
22790
+ path: hasTrailingQuestionMark ? `${path$1}?` : path$1,
22770
22791
  origin: url$2.origin,
22771
22792
  method: request$2.method,
22772
22793
  body: agent.isMockActive ? request$2.body && (request$2.body.source || request$2.body.stream) : body,
@@ -23548,9 +23569,9 @@ var require_util$2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
23548
23569
  * path-value = <any CHAR except CTLs or ";">
23549
23570
  * @param {string} path
23550
23571
  */
23551
- function validateCookiePath(path$2) {
23552
- for (let i$1 = 0; i$1 < path$2.length; ++i$1) {
23553
- const code = path$2.charCodeAt(i$1);
23572
+ function validateCookiePath(path$1) {
23573
+ for (let i$1 = 0; i$1 < path$1.length; ++i$1) {
23574
+ const code = path$1.charCodeAt(i$1);
23554
23575
  if (code < 32 || code > 126 || code === 59) throw new Error("Invalid cookie path");
23555
23576
  }
23556
23577
  }
@@ -26720,9 +26741,9 @@ var require_undici = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
26720
26741
  if (opts != null && typeof opts !== "object") throw new InvalidArgumentError("invalid opts");
26721
26742
  if (opts && opts.path != null) {
26722
26743
  if (typeof opts.path !== "string") throw new InvalidArgumentError("invalid opts.path");
26723
- let path$2 = opts.path;
26724
- if (!opts.path.startsWith("/")) path$2 = `/${path$2}`;
26725
- url$2 = new URL(util$2.parseOrigin(url$2).origin + path$2);
26744
+ let path$1 = opts.path;
26745
+ if (!opts.path.startsWith("/")) path$1 = `/${path$1}`;
26746
+ url$2 = new URL(util$2.parseOrigin(url$2).origin + path$1);
26726
26747
  } else {
26727
26748
  if (!opts) opts = typeof url$2 === "object" ? url$2 : {};
26728
26749
  url$2 = util$2.parseURL(url$2);
@@ -29790,8 +29811,8 @@ function datetime$2(args) {
29790
29811
  }
29791
29812
  __name$4(datetime$2, "datetime");
29792
29813
  var string$2 = /* @__PURE__ */ __name$4((params) => {
29793
- const regex$1 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
29794
- return /* @__PURE__ */ new RegExp(`^${regex$1}$`);
29814
+ const regex$2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
29815
+ return /* @__PURE__ */ new RegExp(`^${regex$2}$`);
29795
29816
  }, "string");
29796
29817
  var bigint = /^-?\d+n?$/;
29797
29818
  var integer$1 = /^-?\d+$/;
@@ -39411,9 +39432,9 @@ var stringProcessor$1 = /* @__PURE__ */ __name$4((schema, ctx, _json, _params) =
39411
39432
  if (patterns && patterns.size > 0) {
39412
39433
  const regexes = [...patterns];
39413
39434
  if (regexes.length === 1) json2.pattern = regexes[0].source;
39414
- else if (regexes.length > 1) json2.allOf = [...regexes.map((regex$1) => ({
39435
+ else if (regexes.length > 1) json2.allOf = [...regexes.map((regex$2) => ({
39415
39436
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
39416
- pattern: regex$1.source
39437
+ pattern: regex$2.source
39417
39438
  }))];
39418
39439
  }
39419
39440
  }, "stringProcessor");
@@ -40647,9 +40668,9 @@ function hex2(_params) {
40647
40668
  __name$4(hex2, "hex");
40648
40669
  function hash(alg, params) {
40649
40670
  const format2$2 = `${alg}_${params?.enc ?? "hex"}`;
40650
- const regex$1 = regexes_exports$1[format2$2];
40651
- if (!regex$1) throw new Error(`Unrecognized hash format: ${format2$2}`);
40652
- return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format2$2, regex$1, params);
40671
+ const regex$2 = regexes_exports$1[format2$2];
40672
+ if (!regex$2) throw new Error(`Unrecognized hash format: ${format2$2}`);
40673
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format2$2, regex$2, params);
40653
40674
  }
40654
40675
  __name$4(hash, "hash");
40655
40676
  var ZodNumber$1 = /* @__PURE__ */ $constructor$1("ZodNumber", (inst, def) => {
@@ -42072,7 +42093,7 @@ var getBuildPlatformFromEnv = getEnvironmentVariableFactory({ variableName: "WRA
42072
42093
  var getRegistryPath = getEnvironmentVariableFactory({
42073
42094
  variableName: "WRANGLER_REGISTRY_PATH",
42074
42095
  defaultValue() {
42075
- return path.join(getGlobalConfigPath(), "registry");
42096
+ return path2__default.join(getGlobalConfigPath(), "registry");
42076
42097
  }
42077
42098
  });
42078
42099
  var getD1ExtraLocationChoices = getEnvironmentVariableFactory({ variableName: "WRANGLER_D1_EXTRA_LOCATION_CHOICES" });
@@ -42482,7 +42503,7 @@ function isPagesConfig(rawConfig) {
42482
42503
  }
42483
42504
  __name$4(isPagesConfig, "isPagesConfig");
42484
42505
  function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args, preserveOriginalMain = false) {
42485
- const diagnostics = new Diagnostics(`Processing ${configPath ? path.relative(process.cwd(), configPath) : "wrangler"} configuration:`);
42506
+ const diagnostics = new Diagnostics(`Processing ${configPath ? path2__default.relative(process.cwd(), configPath) : "wrangler"} configuration:`);
42486
42507
  const isRedirectedConfig2 = isRedirectedRawConfig$1(rawConfig, configPath, userConfigPath);
42487
42508
  if ("legacy_env" in rawConfig) {
42488
42509
  if (!isRedirectedConfig2) diagnostics.errors.push(dedent$2`
@@ -42600,34 +42621,34 @@ function normalizeAndValidateBuild(diagnostics, rawEnv, rawBuild, configPath) {
42600
42621
  else validateOptionalProperty(diagnostics, "build", "watch_dir", watch_dir, "string");
42601
42622
  return {
42602
42623
  command,
42603
- watch_dir: command && configPath ? Array.isArray(watch_dir) ? watch_dir.map((dir2) => path.relative(process.cwd(), path.join(path.dirname(configPath), `${dir2}`))) : path.relative(process.cwd(), path.join(path.dirname(configPath), `${watch_dir}`)) : watch_dir,
42624
+ watch_dir: command && configPath ? Array.isArray(watch_dir) ? watch_dir.map((dir2) => path2__default.relative(process.cwd(), path2__default.join(path2__default.dirname(configPath), `${dir2}`))) : path2__default.relative(process.cwd(), path2__default.join(path2__default.dirname(configPath), `${watch_dir}`)) : watch_dir,
42604
42625
  cwd
42605
42626
  };
42606
42627
  }
42607
42628
  __name$4(normalizeAndValidateBuild, "normalizeAndValidateBuild");
42608
42629
  function normalizeAndValidateMainField(configPath, rawMain) {
42609
- const configDir = path.dirname(configPath ?? "wrangler.toml");
42630
+ const configDir = path2__default.dirname(configPath ?? "wrangler.toml");
42610
42631
  if (rawMain !== void 0) if (typeof rawMain === "string") {
42611
- const directory = path.resolve(configDir);
42612
- return path.resolve(directory, rawMain);
42632
+ const directory = path2__default.resolve(configDir);
42633
+ return path2__default.resolve(directory, rawMain);
42613
42634
  } else return rawMain;
42614
42635
  else return;
42615
42636
  }
42616
42637
  __name$4(normalizeAndValidateMainField, "normalizeAndValidateMainField");
42617
42638
  function normalizeAndValidateBaseDirField(configPath, rawDir) {
42618
- const configDir = path.dirname(configPath ?? "wrangler.toml");
42639
+ const configDir = path2__default.dirname(configPath ?? "wrangler.toml");
42619
42640
  if (rawDir !== void 0) if (typeof rawDir === "string") {
42620
- const directory = path.resolve(configDir);
42621
- return path.resolve(directory, rawDir);
42641
+ const directory = path2__default.resolve(configDir);
42642
+ return path2__default.resolve(directory, rawDir);
42622
42643
  } else return rawDir;
42623
42644
  else return;
42624
42645
  }
42625
42646
  __name$4(normalizeAndValidateBaseDirField, "normalizeAndValidateBaseDirField");
42626
42647
  function normalizeAndValidatePagesBuildOutputDir(configPath, rawPagesDir) {
42627
- const configDir = path.dirname(configPath ?? "wrangler.toml");
42648
+ const configDir = path2__default.dirname(configPath ?? "wrangler.toml");
42628
42649
  if (rawPagesDir !== void 0) if (typeof rawPagesDir === "string") {
42629
- const directory = path.resolve(configDir);
42630
- return path.resolve(directory, rawPagesDir);
42650
+ const directory = path2__default.resolve(configDir);
42651
+ return path2__default.resolve(directory, rawPagesDir);
42631
42652
  } else return rawPagesDir;
42632
42653
  else return;
42633
42654
  }
@@ -42681,7 +42702,7 @@ function normalizeAndValidateSite(diagnostics, configPath, rawConfig, mainEntryP
42681
42702
  validateOptionalProperty(diagnostics, "site", "entry-point", legacySiteEntryPoint, "string");
42682
42703
  deprecated(diagnostics, rawConfig, `site.entry-point`, `Delete the \`site.entry-point\` field, then add the top level \`main\` field to your configuration file:
42683
42704
  \`\`\`
42684
- main = "${path.join(String(legacySiteEntryPoint) || "workers-site", path.extname(String(legacySiteEntryPoint) || "workers-site") ? "" : "index.js")}"
42705
+ main = "${path2__default.join(String(legacySiteEntryPoint) || "workers-site", path2__default.extname(String(legacySiteEntryPoint) || "workers-site") ? "" : "index.js")}"
42685
42706
  \`\`\``, false, void 0, "warning");
42686
42707
  let siteEntryPoint = legacySiteEntryPoint;
42687
42708
  if (!mainEntryPoint && !siteEntryPoint) {
@@ -42694,7 +42715,7 @@ main = "workers-site/index.js"
42694
42715
  } else if (mainEntryPoint && siteEntryPoint) diagnostics.errors.push(`Don't define both the \`main\` and \`site.entry-point\` fields in your configuration.
42695
42716
  They serve the same purpose: to point to the entry-point of your worker.
42696
42717
  Delete the deprecated \`site.entry-point\` field from your config.`);
42697
- if (configPath && siteEntryPoint) siteEntryPoint = path.relative(process.cwd(), path.join(path.dirname(configPath), siteEntryPoint));
42718
+ if (configPath && siteEntryPoint) siteEntryPoint = path2__default.relative(process.cwd(), path2__default.join(path2__default.dirname(configPath), siteEntryPoint));
42698
42719
  return {
42699
42720
  bucket,
42700
42721
  "entry-point": siteEntryPoint,
@@ -42726,7 +42747,7 @@ function normalizeAndValidateModulePaths(diagnostics, configPath, field, rawMapp
42726
42747
  if (rawMapping === void 0) return;
42727
42748
  const mapping = {};
42728
42749
  for (const [name, filePath] of Object.entries(rawMapping)) if (isString$2(diagnostics, `${field}['${name}']`, filePath, void 0)) {
42729
- if (configPath) mapping[name] = configPath ? path.relative(process.cwd(), path.join(path.dirname(configPath), filePath)) : filePath;
42750
+ if (configPath) mapping[name] = configPath ? path2__default.relative(process.cwd(), path2__default.join(path2__default.dirname(configPath), filePath)) : filePath;
42730
42751
  }
42731
42752
  return mapping;
42732
42753
  }
@@ -42986,7 +43007,7 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
42986
43007
  __name$4(normalizeAndValidateEnvironment, "normalizeAndValidateEnvironment");
42987
43008
  function validateAndNormalizeTsconfig(diagnostics, topLevelEnv, rawEnv, configPath) {
42988
43009
  const tsconfig = inheritable(diagnostics, topLevelEnv, rawEnv, "tsconfig", isString$2, void 0);
42989
- return configPath && tsconfig ? path.relative(process.cwd(), path.join(path.dirname(configPath), tsconfig)) : tsconfig;
43010
+ return configPath && tsconfig ? path2__default.relative(process.cwd(), path2__default.join(path2__default.dirname(configPath), tsconfig)) : tsconfig;
42990
43011
  }
42991
43012
  __name$4(validateAndNormalizeTsconfig, "validateAndNormalizeTsconfig");
42992
43013
  var validateAndNormalizeRules = /* @__PURE__ */ __name$4((diagnostics, topLevelEnv, rawEnv, envName) => {
@@ -43529,9 +43550,9 @@ function validateContainerApp(envName, topLevelName, configPath) {
43529
43550
  let resolvedBuildContextPath = void 0;
43530
43551
  try {
43531
43552
  if (isDockerfile(resolvedImage, configPath)) {
43532
- const baseDir$1 = configPath ? path.dirname(configPath) : process.cwd();
43533
- resolvedImage = path.resolve(baseDir$1, resolvedImage);
43534
- resolvedBuildContextPath = containerAppOptional.image_build_context ? path.resolve(baseDir$1, containerAppOptional.image_build_context) : path.dirname(resolvedImage);
43553
+ const baseDir$1 = configPath ? path2__default.dirname(configPath) : process.cwd();
43554
+ resolvedImage = path2__default.resolve(baseDir$1, resolvedImage);
43555
+ resolvedBuildContextPath = containerAppOptional.image_build_context ? path2__default.resolve(baseDir$1, containerAppOptional.image_build_context) : path2__default.dirname(resolvedImage);
43535
43556
  }
43536
43557
  } catch (err) {
43537
43558
  if (err instanceof Error && err.message) diagnostics.errors.push(err.message);
@@ -44908,8 +44929,8 @@ function isRemoteValid(targetObject, fieldPath, diagnostics) {
44908
44929
  }
44909
44930
  __name$4(isRemoteValid, "isRemoteValid");
44910
44931
  function isDockerfile(imagePath, configPath) {
44911
- const baseDir$1 = configPath ? path.dirname(configPath) : process.cwd();
44912
- const maybeDockerfile = path.resolve(baseDir$1, imagePath);
44932
+ const baseDir$1 = configPath ? path2__default.dirname(configPath) : process.cwd();
44933
+ const maybeDockerfile = path2__default.resolve(baseDir$1, imagePath);
44913
44934
  if (fs2.existsSync(maybeDockerfile)) {
44914
44935
  if (isDirectory$1(maybeDockerfile)) throw new UserError(`${imagePath} is a directory, you should specify a path to the Dockerfile`, { telemetryMessage: false });
44915
44936
  return true;
@@ -45060,10 +45081,10 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
45060
45081
  __name$4(validateDurableObjectBinding2, "validateDurableObjectBinding");
45061
45082
  function getPackagePath(packageName, projectPath) {
45062
45083
  try {
45063
- return path.dirname(__require$1.resolve(`${packageName}/package.json`, { paths: [projectPath] }));
45084
+ return path2__default.dirname(__require$1.resolve(`${packageName}/package.json`, { paths: [projectPath] }));
45064
45085
  } catch {}
45065
45086
  try {
45066
- return path.dirname(__require$1.resolve(packageName, { paths: [projectPath] }));
45087
+ return path2__default.dirname(__require$1.resolve(packageName, { paths: [projectPath] }));
45067
45088
  } catch {}
45068
45089
  }
45069
45090
  __name$4(getPackagePath, "getPackagePath");
@@ -45088,14 +45109,14 @@ function getInstalledPackageVersion(packageName, projectPath, opts = {}) {
45088
45109
  __name$4(getInstalledPackageVersion, "getInstalledPackageVersion");
45089
45110
  function findFileUp(name, startDir, lastDir) {
45090
45111
  let dir2 = startDir;
45091
- const root = path.parse(dir2).root;
45112
+ const root = path2__default.parse(dir2).root;
45092
45113
  while (true) {
45093
- const candidate = path.join(dir2, name);
45114
+ const candidate = path2__default.join(dir2, name);
45094
45115
  try {
45095
45116
  if (statSync(candidate).isFile()) return candidate;
45096
45117
  } catch {}
45097
45118
  if (lastDir !== void 0 && dir2 === lastDir) break;
45098
- const parent = path.dirname(dir2);
45119
+ const parent = path2__default.dirname(dir2);
45099
45120
  if (parent === dir2 || dir2 === root) break;
45100
45121
  dir2 = parent;
45101
45122
  }
@@ -45361,7 +45382,7 @@ var process3 = globalThis.process;
45361
45382
  var { onExit, load: load$1, unload: unload$1 } = signalExitWrap(processOk$1(process3) ? new SignalExit(process3) : new SignalExitFallback());
45362
45383
  function getWranglerHiddenDirPath(projectRoot) {
45363
45384
  projectRoot ??= process.cwd();
45364
- return path.join(projectRoot, ".wrangler");
45385
+ return path2__default.join(projectRoot, ".wrangler");
45365
45386
  }
45366
45387
  __name$4(getWranglerHiddenDirPath, "getWranglerHiddenDirPath");
45367
45388
  var STALE_WRANGLER_TMP_DIR_MS = 1440 * 60 * 1e3;
@@ -45378,7 +45399,7 @@ function sweepStaleWranglerTmpDirs(tmpRoot) {
45378
45399
  const cutoff = Date.now() - STALE_WRANGLER_TMP_DIR_MS;
45379
45400
  for (const entry of entries) {
45380
45401
  if (!entry.isDirectory()) continue;
45381
- const entryPath = path.join(tmpRoot, entry.name);
45402
+ const entryPath = path2__default.join(tmpRoot, entry.name);
45382
45403
  try {
45383
45404
  if (fs2.statSync(entryPath).mtimeMs < cutoff) removeDirSync$1(entryPath);
45384
45405
  } catch {}
@@ -45386,10 +45407,10 @@ function sweepStaleWranglerTmpDirs(tmpRoot) {
45386
45407
  }
45387
45408
  __name$4(sweepStaleWranglerTmpDirs, "sweepStaleWranglerTmpDirs");
45388
45409
  function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
45389
- const tmpRoot = path.join(getWranglerHiddenDirPath(projectRoot), "tmp");
45410
+ const tmpRoot = path2__default.join(getWranglerHiddenDirPath(projectRoot), "tmp");
45390
45411
  fs2.mkdirSync(tmpRoot, { recursive: true });
45391
45412
  sweepStaleWranglerTmpDirs(tmpRoot);
45392
- const tmpPrefix = path.join(tmpRoot, `${prefix}-`);
45413
+ const tmpPrefix = path2__default.join(tmpRoot, `${prefix}-`);
45393
45414
  const tmpDir = fs2.realpathSync(fs2.mkdtempSync(tmpPrefix));
45394
45415
  const cleanupDir = /* @__PURE__ */ __name$4(() => {
45395
45416
  if (cleanup) try {
@@ -46265,7 +46286,7 @@ async function fetchLatestNpmVersion(name, version2) {
46265
46286
  __name$4(fetchLatestNpmVersion, "fetchLatestNpmVersion");
46266
46287
  async function openInBrowser(url2, logger$1) {
46267
46288
  try {
46268
- const { default: open$1 } = await import("./open-PBXRGS4R-MlJKk7qC.mjs");
46289
+ const { default: open$1 } = await import("./open-PBXRGS4R-7GUxLVbA.mjs");
46269
46290
  (await open$1(url2)).on("error", (err) => {
46270
46291
  handleBrowserOpenError(url2, err, logger$1);
46271
46292
  });
@@ -48821,8 +48842,8 @@ const postfixRE = /[?#].*$/;
48821
48842
  function cleanUrl(url$2) {
48822
48843
  return url$2.replace(postfixRE, "");
48823
48844
  }
48824
- function withTrailingSlash(path$2) {
48825
- return path$2.endsWith("/") ? path$2 : `${path$2}/`;
48845
+ function withTrailingSlash(path$1) {
48846
+ return path$1.endsWith("/") ? path$1 : `${path$1}/`;
48826
48847
  }
48827
48848
  function createRequestHandler(handler) {
48828
48849
  return async (req, res, next) => {
@@ -49461,11 +49482,11 @@ function explicitlyAborted(x, startIndex = 0) {
49461
49482
  for (let i$1 = startIndex; i$1 < x.issues.length; i$1++) if (x.issues[i$1]?.continue === false) return true;
49462
49483
  return false;
49463
49484
  }
49464
- function prefixIssues(path$2, issues) {
49485
+ function prefixIssues(path$1, issues) {
49465
49486
  return issues.map((iss) => {
49466
49487
  var _a$3;
49467
49488
  (_a$3 = iss).path ?? (_a$3.path = []);
49468
- iss.path.unshift(path$2);
49489
+ iss.path.unshift(path$1);
49469
49490
  return iss;
49470
49491
  });
49471
49492
  }
@@ -49530,12 +49551,12 @@ function flattenError(error$2, mapper = (issue$2) => issue$2.message) {
49530
49551
  }
49531
49552
  function formatError(error$2, mapper = (issue$2) => issue$2.message) {
49532
49553
  const fieldErrors = { _errors: [] };
49533
- const processError = (error$3, path$2 = []) => {
49534
- for (const issue$2 of error$3.issues) if (issue$2.code === "invalid_union" && issue$2.errors.length) issue$2.errors.map((issues) => processError({ issues }, [...path$2, ...issue$2.path]));
49535
- else if (issue$2.code === "invalid_key") processError({ issues: issue$2.issues }, [...path$2, ...issue$2.path]);
49536
- else if (issue$2.code === "invalid_element") processError({ issues: issue$2.issues }, [...path$2, ...issue$2.path]);
49554
+ const processError = (error$3, path$1 = []) => {
49555
+ for (const issue$2 of error$3.issues) if (issue$2.code === "invalid_union" && issue$2.errors.length) issue$2.errors.map((issues) => processError({ issues }, [...path$1, ...issue$2.path]));
49556
+ else if (issue$2.code === "invalid_key") processError({ issues: issue$2.issues }, [...path$1, ...issue$2.path]);
49557
+ else if (issue$2.code === "invalid_element") processError({ issues: issue$2.issues }, [...path$1, ...issue$2.path]);
49537
49558
  else {
49538
- const fullpath = [...path$2, ...issue$2.path];
49559
+ const fullpath = [...path$1, ...issue$2.path];
49539
49560
  if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue$2));
49540
49561
  else {
49541
49562
  let curr = fieldErrors;
@@ -49738,8 +49759,8 @@ function datetime$1(args) {
49738
49759
  return /* @__PURE__ */ new RegExp(`^${dateSource}T(?:${timeRegex})$`);
49739
49760
  }
49740
49761
  const string$1 = (params) => {
49741
- const regex$1 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
49742
- return /* @__PURE__ */ new RegExp(`^${regex$1}$`);
49762
+ const regex$2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
49763
+ return /* @__PURE__ */ new RegExp(`^${regex$2}$`);
49743
49764
  };
49744
49765
  const integer = /^-?\d+$/;
49745
49766
  const number$1 = /^-?\d+(?:\.\d+)?$/;
@@ -52408,9 +52429,9 @@ const stringProcessor = (schema, ctx, _json, _params) => {
52408
52429
  if (patterns && patterns.size > 0) {
52409
52430
  const regexes = [...patterns];
52410
52431
  if (regexes.length === 1) json$2.pattern = regexes[0].source;
52411
- else if (regexes.length > 1) json$2.allOf = [...regexes.map((regex$1) => ({
52432
+ else if (regexes.length > 1) json$2.allOf = [...regexes.map((regex$2) => ({
52412
52433
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
52413
- pattern: regex$1.source
52434
+ pattern: regex$2.source
52414
52435
  }))];
52415
52436
  }
52416
52437
  };
@@ -56508,7 +56529,7 @@ function resolveWranglerConfigPath({ config: config$2, script }, options) {
56508
56529
  deployConfigPath: void 0,
56509
56530
  redirected: false
56510
56531
  };
56511
- return findWranglerConfig$1(script !== void 0 ? path.dirname(script) : process.cwd(), options);
56532
+ return findWranglerConfig$1(script !== void 0 ? path2__default.dirname(script) : process.cwd(), options);
56512
56533
  }
56513
56534
  __name$3(resolveWranglerConfigPath, "resolveWranglerConfigPath");
56514
56535
  function findWranglerConfig$1(referencePath = process.cwd(), { useRedirectIfAvailable = false } = {}) {
@@ -56539,15 +56560,15 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
56539
56560
  const deployConfigFile = readFileSync$1$1(deployConfigPath);
56540
56561
  try {
56541
56562
  const deployConfig = parseJSONC(deployConfigFile, deployConfigPath);
56542
- redirectedConfigPath = deployConfig.configPath && path.resolve(path.dirname(deployConfigPath), deployConfig.configPath);
56563
+ redirectedConfigPath = deployConfig.configPath && path2__default.resolve(path2__default.dirname(deployConfigPath), deployConfig.configPath);
56543
56564
  } catch (e) {
56544
- throw new UserError$1(`Failed to parse the deploy configuration file at ${path.relative(".", deployConfigPath)}`, {
56565
+ throw new UserError$1(`Failed to parse the deploy configuration file at ${path2__default.relative(".", deployConfigPath)}`, {
56545
56566
  cause: e,
56546
56567
  telemetryMessage: false
56547
56568
  });
56548
56569
  }
56549
56570
  if (!redirectedConfigPath) throw new UserError$1(esm_default$1`
56550
- A deploy configuration file was found at "${path.relative(".", deployConfigPath)}".
56571
+ A deploy configuration file was found at "${path2__default.relative(".", deployConfigPath)}".
56551
56572
  But this is not valid - the required "configPath" property was not found.
56552
56573
  Instead this file contains:
56553
56574
  \`\`\`
@@ -56555,13 +56576,13 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
56555
56576
  \`\`\`
56556
56577
  `, { telemetryMessage: false });
56557
56578
  if (!existsSync(redirectedConfigPath)) throw new UserError$1(esm_default$1`
56558
- There is a deploy configuration at "${path.relative(".", deployConfigPath)}".
56559
- But the redirected configuration path it points to, "${path.relative(".", redirectedConfigPath)}", does not exist.
56579
+ There is a deploy configuration at "${path2__default.relative(".", deployConfigPath)}".
56580
+ But the redirected configuration path it points to, "${path2__default.relative(".", redirectedConfigPath)}", does not exist.
56560
56581
  `, { telemetryMessage: false });
56561
56582
  if (userConfigPath) {
56562
- if (path.join(path.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG) !== deployConfigPath) throw new UserError$1(esm_default$1`
56563
- Found both a user configuration file at "${path.relative(".", userConfigPath)}"
56564
- and a deploy configuration file at "${path.relative(".", deployConfigPath)}".
56583
+ if (path2__default.join(path2__default.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG) !== deployConfigPath) throw new UserError$1(esm_default$1`
56584
+ Found both a user configuration file at "${path2__default.relative(".", userConfigPath)}"
56585
+ and a deploy configuration file at "${path2__default.relative(".", deployConfigPath)}".
56565
56586
  But these do not share the same base path so it is not clear which should be used.
56566
56587
  `, { telemetryMessage: false });
56567
56588
  }
@@ -57358,9 +57379,9 @@ async function generate({ compatibilityDate, compatibilityFlags = [] }) {
57358
57379
  modules: true,
57359
57380
  script: (await fsp.readFile(require$1.resolve("workerd/worker.mjs"))).toString()
57360
57381
  }));
57361
- const path$2 = `http://dummy.com/${compatibilityDate}${compatibilityFlags.length ? `+${compatibilityFlags.join("+")}` : ""}`;
57382
+ const path$1 = `http://dummy.com/${compatibilityDate}${compatibilityFlags.length ? `+${compatibilityFlags.join("+")}` : ""}`;
57362
57383
  try {
57363
- const res = await mf.dispatchFetch(path$2);
57384
+ const res = await mf.dispatchFetch(path$1);
57364
57385
  const text = await res.text();
57365
57386
  if (!res.ok) throw new Error(text);
57366
57387
  return text;
@@ -57555,8 +57576,8 @@ var __name$2 = (target$1, value) => __defProp$2(target$1, "name", {
57555
57576
  value,
57556
57577
  configurable: true
57557
57578
  });
57558
- function isDirectory(path$1$1) {
57559
- return fs2.statSync(path$1$1, { throwIfNoEntry: false })?.isDirectory() ?? false;
57579
+ function isDirectory(path$1) {
57580
+ return fs2.statSync(path$1, { throwIfNoEntry: false })?.isDirectory() ?? false;
57560
57581
  }
57561
57582
  __name$2(isDirectory, "isDirectory");
57562
57583
  function removeDir(dirPath, { fireAndForget = false } = {}) {
@@ -62866,15 +62887,15 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
62866
62887
  function withTrailingSlash$1(input = "", respectQueryAndFragment) {
62867
62888
  if (!respectQueryAndFragment) return input.endsWith("/") ? input : input + "/";
62868
62889
  if (hasTrailingSlash(input, true)) return input || "/";
62869
- let path$2 = input;
62890
+ let path$1 = input;
62870
62891
  let fragment = "";
62871
62892
  const fragmentIndex = input.indexOf("#");
62872
62893
  if (fragmentIndex >= 0) {
62873
- path$2 = input.slice(0, fragmentIndex);
62894
+ path$1 = input.slice(0, fragmentIndex);
62874
62895
  fragment = input.slice(fragmentIndex);
62875
- if (!path$2) return fragment;
62896
+ if (!path$1) return fragment;
62876
62897
  }
62877
- const [s0, ...s] = path$2.split("?");
62898
+ const [s0, ...s] = path$1.split("?");
62878
62899
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
62879
62900
  }
62880
62901
  function isNonEmptyURL(url$2) {
@@ -62900,8 +62921,8 @@ const isAbsolute$2 = function(p$2) {
62900
62921
  //#endregion
62901
62922
  //#region ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
62902
62923
  const BUILTIN_MODULES = new Set(builtinModules);
62903
- function normalizeSlash(path$2) {
62904
- return path$2.replace(/\\/g, "/");
62924
+ function normalizeSlash(path$1) {
62925
+ return path$1.replace(/\\/g, "/");
62905
62926
  }
62906
62927
  /**
62907
62928
  * @typedef ErrnoExceptionFields
@@ -63021,8 +63042,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
63021
63042
  * @param {string} [base]
63022
63043
  * @param {string} [message]
63023
63044
  */
63024
- (path$2, base, message) => {
63025
- return `Invalid package config ${path$2}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
63045
+ (path$1, base, message) => {
63046
+ return `Invalid package config ${path$1}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
63026
63047
  },
63027
63048
  Error
63028
63049
  );
@@ -63052,8 +63073,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
63052
63073
  * @param {string} base
63053
63074
  * @param {boolean} [exactUrl]
63054
63075
  */
63055
- (path$2, base, exactUrl = false) => {
63056
- return `Cannot find ${exactUrl ? "module" : "package"} '${path$2}' imported from ${base}`;
63076
+ (path$1, base, exactUrl = false) => {
63077
+ return `Cannot find ${exactUrl ? "module" : "package"} '${path$1}' imported from ${base}`;
63057
63078
  },
63058
63079
  Error
63059
63080
  );
@@ -63091,8 +63112,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
63091
63112
  * @param {string} extension
63092
63113
  * @param {string} path
63093
63114
  */
63094
- (extension, path$2) => {
63095
- return `Unknown file extension "${extension}" for ${path$2}`;
63115
+ (extension, path$1) => {
63116
+ return `Unknown file extension "${extension}" for ${path$1}`;
63096
63117
  },
63097
63118
  TypeError
63098
63119
  );
@@ -63210,9 +63231,9 @@ function getMessage(key, parameters, self) {
63210
63231
  assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
63211
63232
  return Reflect.apply(message, self, parameters);
63212
63233
  }
63213
- const regex$1 = /%[dfijoOs]/g;
63234
+ const regex$2 = /%[dfijoOs]/g;
63214
63235
  let expectedLength = 0;
63215
- while (regex$1.exec(message) !== null) expectedLength++;
63236
+ while (regex$2.exec(message) !== null) expectedLength++;
63216
63237
  assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
63217
63238
  if (parameters.length === 0) return message;
63218
63239
  parameters.unshift(message);
@@ -63249,7 +63270,7 @@ function read(jsonPath, { base, specifier }) {
63249
63270
  /** @type {string | undefined} */
63250
63271
  let string$3;
63251
63272
  try {
63252
- string$3 = fs2.readFileSync(path.toNamespacedPath(jsonPath), "utf8");
63273
+ string$3 = fs2.readFileSync(path2__default.toNamespacedPath(jsonPath), "utf8");
63253
63274
  } catch (error$2) {
63254
63275
  const exception = error$2;
63255
63276
  if (exception.code !== "ENOENT") throw exception;
@@ -63455,15 +63476,15 @@ function emitLegacyIndexDeprecation(url$2, packageJsonUrl, base, main) {
63455
63476
  const packagePath = fileURLToPath(new URL$1(".", packageJsonUrl));
63456
63477
  const basePath = fileURLToPath(base);
63457
63478
  if (!main) process$1.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
63458
- else if (path.resolve(packagePath, main) !== urlPath) process$1.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
63479
+ else if (path2__default.resolve(packagePath, main) !== urlPath) process$1.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
63459
63480
  }
63460
63481
  /**
63461
63482
  * @param {string} path
63462
63483
  * @returns {Stats | undefined}
63463
63484
  */
63464
- function tryStatSync(path$2) {
63485
+ function tryStatSync(path$1) {
63465
63486
  try {
63466
- return statSync(path$2);
63487
+ return statSync(path$1);
63467
63488
  } catch {}
63468
63489
  }
63469
63490
  /**
@@ -63562,7 +63583,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
63562
63583
  {
63563
63584
  const real = realpathSync(filePath);
63564
63585
  const { search, hash: hash$1 } = resolved;
63565
- resolved = pathToFileURL(real + (filePath.endsWith(path.sep) ? "/" : ""));
63586
+ resolved = pathToFileURL(real + (filePath.endsWith(path2__default.sep) ? "/" : ""));
63566
63587
  resolved.search = search;
63567
63588
  resolved.hash = hash$1;
63568
63589
  }
@@ -66868,9 +66889,9 @@ function constructHeaders({ headers, headersFile, logger: logger$1 }) {
66868
66889
 
66869
66890
  //#endregion
66870
66891
  //#region ../workers-shared/utils/configuration/validateURL.ts
66871
- const extractPathname = (path$2 = "/", includeSearch, includeHash) => {
66872
- if (!path$2.startsWith("/")) path$2 = `/${path$2}`;
66873
- const url$2 = new URL(`//${path$2}`, "relative://");
66892
+ const extractPathname = (path$1 = "/", includeSearch, includeHash) => {
66893
+ if (!path$1.startsWith("/")) path$1 = `/${path$1}`;
66894
+ const url$2 = new URL(`//${path$1}`, "relative://");
66874
66895
  return `${url$2.pathname}${includeSearch ? url$2.search : ""}${includeHash ? url$2.hash : ""}`;
66875
66896
  };
66876
66897
  const URL_REGEX = /^https:\/\/+(?<host>[^/]+)\/?(?<path>.*)/;
@@ -66929,7 +66950,7 @@ function parseHeaders(input, { maxRules = MAX_HEADER_RULES, maxLineLength = MAX_
66929
66950
  lineNumber: i$1 + 1,
66930
66951
  message: "No headers specified"
66931
66952
  });
66932
- const [path$2, pathError] = validateUrl(line, false, true);
66953
+ const [path$1, pathError] = validateUrl(line, false, true);
66933
66954
  if (pathError) {
66934
66955
  invalid.push({
66935
66956
  line,
@@ -66940,7 +66961,7 @@ function parseHeaders(input, { maxRules = MAX_HEADER_RULES, maxLineLength = MAX_
66940
66961
  skipUntilNextPath = true;
66941
66962
  continue;
66942
66963
  }
66943
- const wildcardError = validateNoMultipleWildcards(path$2);
66964
+ const wildcardError = validateNoMultipleWildcards(path$1);
66944
66965
  if (wildcardError) {
66945
66966
  invalid.push({
66946
66967
  line,
@@ -66952,7 +66973,7 @@ function parseHeaders(input, { maxRules = MAX_HEADER_RULES, maxLineLength = MAX_
66952
66973
  continue;
66953
66974
  }
66954
66975
  rule = {
66955
- path: path$2,
66976
+ path: path$1,
66956
66977
  line,
66957
66978
  headers: {},
66958
66979
  unsetHeaders: []
@@ -67035,11 +67056,11 @@ function isValidRule(rule) {
67035
67056
  * `:splat` placeholder, would result in duplicate `:splat` parameters which is
67036
67057
  * unsupported.
67037
67058
  */
67038
- function validateNoMultipleWildcards(path$2) {
67039
- const wildcardCount = (path$2.match(SPLAT_REGEX) ?? []).length;
67040
- const hasSplatPlaceholder = /:splat(?!\w)/.test(path$2);
67041
- if (wildcardCount > 1) return `Only one wildcard is allowed per rule. Use a named placeholder (e.g. :project) instead. Skipping ${path$2}.`;
67042
- if (wildcardCount > 0 && hasSplatPlaceholder) return `Cannot combine a wildcard * with a :splat placeholder because wildcards are converted to :splat at runtime. Skipping ${path$2}.`;
67059
+ function validateNoMultipleWildcards(path$1) {
67060
+ const wildcardCount = (path$1.match(SPLAT_REGEX) ?? []).length;
67061
+ const hasSplatPlaceholder = /:splat(?!\w)/.test(path$1);
67062
+ if (wildcardCount > 1) return `Only one wildcard is allowed per rule. Use a named placeholder (e.g. :project) instead. Skipping ${path$1}.`;
67063
+ if (wildcardCount > 0 && hasSplatPlaceholder) return `Cannot combine a wildcard * with a :splat placeholder because wildcards are converted to :splat at runtime. Skipping ${path$1}.`;
67043
67064
  }
67044
67065
 
67045
67066
  //#endregion
@@ -67235,11 +67256,11 @@ var require_ignore = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/ig
67235
67256
  const checkPattern = (pattern) => pattern && isString$1(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
67236
67257
  const splitPattern$1 = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
67237
67258
  var IgnoreRule = class {
67238
- constructor(origin, pattern, negative, regex$1) {
67259
+ constructor(origin, pattern, negative, regex$2) {
67239
67260
  this.origin = origin;
67240
67261
  this.pattern = pattern;
67241
67262
  this.negative = negative;
67242
- this.regex = regex$1;
67263
+ this.regex = regex$2;
67243
67264
  }
67244
67265
  };
67245
67266
  const createRule = (pattern, ignoreCase) => {
@@ -67250,19 +67271,19 @@ var require_ignore = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/ig
67250
67271
  pattern = pattern.substr(1);
67251
67272
  }
67252
67273
  pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
67253
- const regex$1 = makeRegex(pattern, ignoreCase);
67254
- return new IgnoreRule(origin, pattern, negative, regex$1);
67274
+ const regex$2 = makeRegex(pattern, ignoreCase);
67275
+ return new IgnoreRule(origin, pattern, negative, regex$2);
67255
67276
  };
67256
67277
  const throwError = (message, Ctor) => {
67257
67278
  throw new Ctor(message);
67258
67279
  };
67259
- const checkPath = (path$2, originalPath, doThrow) => {
67260
- if (!isString$1(path$2)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
67261
- if (!path$2) return doThrow(`path must not be empty`, TypeError);
67262
- if (checkPath.isNotRelative(path$2)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
67280
+ const checkPath = (path$1, originalPath, doThrow) => {
67281
+ if (!isString$1(path$1)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
67282
+ if (!path$1) return doThrow(`path must not be empty`, TypeError);
67283
+ if (checkPath.isNotRelative(path$1)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
67263
67284
  return true;
67264
67285
  };
67265
- const isNotRelative = (path$2) => REGEX_TEST_INVALID_PATH.test(path$2);
67286
+ const isNotRelative = (path$1) => REGEX_TEST_INVALID_PATH.test(path$1);
67266
67287
  checkPath.isNotRelative = isNotRelative;
67267
67288
  checkPath.convert = (p$2) => p$2;
67268
67289
  var Ignore = class {
@@ -67298,13 +67319,13 @@ var require_ignore = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/ig
67298
67319
  addPattern(pattern) {
67299
67320
  return this.add(pattern);
67300
67321
  }
67301
- _testOne(path$2, checkUnignored) {
67322
+ _testOne(path$1, checkUnignored) {
67302
67323
  let ignored = false;
67303
67324
  let unignored = false;
67304
67325
  this._rules.forEach((rule) => {
67305
67326
  const { negative } = rule;
67306
67327
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
67307
- if (rule.regex.test(path$2)) {
67328
+ if (rule.regex.test(path$1)) {
67308
67329
  ignored = !negative;
67309
67330
  unignored = negative;
67310
67331
  }
@@ -67315,33 +67336,33 @@ var require_ignore = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/ig
67315
67336
  };
67316
67337
  }
67317
67338
  _test(originalPath, cache$2, checkUnignored, slices) {
67318
- const path$2 = originalPath && checkPath.convert(originalPath);
67319
- checkPath(path$2, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
67320
- return this._t(path$2, cache$2, checkUnignored, slices);
67339
+ const path$1 = originalPath && checkPath.convert(originalPath);
67340
+ checkPath(path$1, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
67341
+ return this._t(path$1, cache$2, checkUnignored, slices);
67321
67342
  }
67322
- _t(path$2, cache$2, checkUnignored, slices) {
67323
- if (path$2 in cache$2) return cache$2[path$2];
67324
- if (!slices) slices = path$2.split(SLASH);
67343
+ _t(path$1, cache$2, checkUnignored, slices) {
67344
+ if (path$1 in cache$2) return cache$2[path$1];
67345
+ if (!slices) slices = path$1.split(SLASH);
67325
67346
  slices.pop();
67326
- if (!slices.length) return cache$2[path$2] = this._testOne(path$2, checkUnignored);
67347
+ if (!slices.length) return cache$2[path$1] = this._testOne(path$1, checkUnignored);
67327
67348
  const parent = this._t(slices.join(SLASH) + SLASH, cache$2, checkUnignored, slices);
67328
- return cache$2[path$2] = parent.ignored ? parent : this._testOne(path$2, checkUnignored);
67349
+ return cache$2[path$1] = parent.ignored ? parent : this._testOne(path$1, checkUnignored);
67329
67350
  }
67330
- ignores(path$2) {
67331
- return this._test(path$2, this._ignoreCache, false).ignored;
67351
+ ignores(path$1) {
67352
+ return this._test(path$1, this._ignoreCache, false).ignored;
67332
67353
  }
67333
67354
  createFilter() {
67334
- return (path$2) => !this.ignores(path$2);
67355
+ return (path$1) => !this.ignores(path$1);
67335
67356
  }
67336
67357
  filter(paths) {
67337
67358
  return makeArray(paths).filter(this.createFilter());
67338
67359
  }
67339
- test(path$2) {
67340
- return this._test(path$2, this._testCache, true);
67360
+ test(path$1) {
67361
+ return this._test(path$1, this._testCache, true);
67341
67362
  }
67342
67363
  };
67343
67364
  const factory = (options) => new Ignore(options);
67344
- const isPathValid = (path$2) => checkPath(path$2 && checkPath.convert(path$2), path$2, RETURN_FALSE);
67365
+ const isPathValid = (path$1) => checkPath(path$1 && checkPath.convert(path$1), path$1, RETURN_FALSE);
67345
67366
  factory.isPathValid = isPathValid;
67346
67367
  factory.default = factory;
67347
67368
  module.exports = factory;
@@ -67350,7 +67371,7 @@ var require_ignore = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/ig
67350
67371
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
67351
67372
  checkPath.convert = makePosix;
67352
67373
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
67353
- checkPath.isNotRelative = (path$2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path$2) || isNotRelative(path$2);
67374
+ checkPath.isNotRelative = (path$1) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path$1) || isNotRelative(path$1);
67354
67375
  }
67355
67376
  }) });
67356
67377
 
@@ -68705,11 +68726,11 @@ var Mime = class {
68705
68726
  }
68706
68727
  return this;
68707
68728
  }
68708
- getType(path$2) {
68709
- if (typeof path$2 !== "string") return null;
68710
- const last = path$2.replace(/^.*[/\\]/s, "").toLowerCase();
68729
+ getType(path$1) {
68730
+ if (typeof path$1 !== "string") return null;
68731
+ const last = path$1.replace(/^.*[/\\]/s, "").toLowerCase();
68711
68732
  const ext = last.replace(/^.*\./s, "").toLowerCase();
68712
- const hasPath = last.length < path$2.length;
68733
+ const hasPath = last.length < path$1.length;
68713
68734
  if (!(ext.length < last.length - 1) && hasPath) return null;
68714
68735
  return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
68715
68736
  }
@@ -69482,11 +69503,11 @@ const getQueryString = (params) => {
69482
69503
  };
69483
69504
  const getUrl = (config$2, options) => {
69484
69505
  const encoder$1 = config$2.ENCODE_PATH || encodeURI;
69485
- const path$2 = options.url.replace("{api-version}", config$2.VERSION).replace(/{(.*?)}/g, (substring, group) => {
69506
+ const path$1 = options.url.replace("{api-version}", config$2.VERSION).replace(/{(.*?)}/g, (substring, group) => {
69486
69507
  if (options.path?.hasOwnProperty(group)) return encoder$1(String(options.path[group]));
69487
69508
  return substring;
69488
69509
  });
69489
- const url$2 = `${config$2.BASE}${path$2}`;
69510
+ const url$2 = `${config$2.BASE}${path$1}`;
69490
69511
  if (options.query) return `${url$2}${getQueryString(options.query)}`;
69491
69512
  return url$2;
69492
69513
  };
@@ -70584,7 +70605,7 @@ function getContainerOptions(options) {
70584
70605
  return containersConfig.map((container) => {
70585
70606
  if (isDockerfile(container.image, configPath)) return {
70586
70607
  dockerfile: container.image,
70587
- image_build_context: container.image_build_context ?? path.dirname(container.image),
70608
+ image_build_context: container.image_build_context ?? path2__default.dirname(container.image),
70588
70609
  image_vars: container.image_vars,
70589
70610
  class_name: container.class_name,
70590
70611
  image_tag: getDevContainerImageName(container.class_name, containerBuildId)
@@ -72250,8 +72271,8 @@ const cancel = (msg, { shape = shapes.corners.bl, multiline = false } = {}) => {
72250
72271
  };
72251
72272
  const stripAnsi = (str) => {
72252
72273
  const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
72253
- const regex$1 = RegExp(pattern, "g");
72254
- return str.replace(linkRegex, "$2").replace(regex$1, "");
72274
+ const regex$2 = RegExp(pattern, "g");
72275
+ return str.replace(linkRegex, "$2").replace(regex$2, "");
72255
72276
  };
72256
72277
  const linkRegex = /\u001B\]8;;(?<url>.+)\u001B\\(?<label>.+)\u001B\]8;;\u001B\\/g;
72257
72278
  const crash = (msg, extra) => {
@@ -72574,18 +72595,18 @@ cliCursor.toggle = (force, writableStream) => {
72574
72595
  var cli_cursor_default = cliCursor;
72575
72596
 
72576
72597
  //#endregion
72577
- //#region ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
72578
- function ansiRegex({ onlyFirst = false } = {}) {
72579
- const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
72580
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
72598
+ //#region ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
72599
+ function ansiRegex$1({ onlyFirst = false } = {}) {
72600
+ return new RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`, onlyFirst ? void 0 : "g");
72581
72601
  }
72582
72602
 
72583
72603
  //#endregion
72584
- //#region ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
72585
- const regex = ansiRegex();
72586
- function stripAnsi$1(string$3) {
72604
+ //#region ../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
72605
+ const regex$1 = ansiRegex$1();
72606
+ function stripAnsi$2(string$3) {
72587
72607
  if (typeof string$3 !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string$3}\``);
72588
- return string$3.replace(regex, "");
72608
+ if (!string$3.includes("\x1B") && !string$3.includes("›")) return string$3;
72609
+ return string$3.replace(regex$1, "");
72589
72610
  }
72590
72611
 
72591
72612
  //#endregion
@@ -72663,7 +72684,7 @@ function stringWidth(string$3, options = {}) {
72663
72684
  ambiguousIsNarrow: true,
72664
72685
  ...options
72665
72686
  };
72666
- string$3 = stripAnsi$1(string$3);
72687
+ string$3 = stripAnsi$2(string$3);
72667
72688
  if (string$3.length === 0) return 0;
72668
72689
  string$3 = string$3.replace((0, import_emoji_regex.default)(), " ");
72669
72690
  const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
@@ -72868,7 +72889,7 @@ const wrapWord = (rows, word, columns) => {
72868
72889
  const characters = [...word];
72869
72890
  let isInsideEscape = false;
72870
72891
  let isInsideLinkEscape = false;
72871
- let visible = stringWidth(stripAnsi$1(rows[rows.length - 1]));
72892
+ let visible = stringWidth(stripAnsi$2(rows[rows.length - 1]));
72872
72893
  for (const [index, character] of characters.entries()) {
72873
72894
  const characterLength = stringWidth(character);
72874
72895
  if (visible + characterLength <= columns) rows[rows.length - 1] += character;
@@ -73046,6 +73067,21 @@ function sliceAnsi(string$3, begin, end) {
73046
73067
  return output;
73047
73068
  }
73048
73069
 
73070
+ //#endregion
73071
+ //#region ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
73072
+ function ansiRegex({ onlyFirst = false } = {}) {
73073
+ const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
73074
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
73075
+ }
73076
+
73077
+ //#endregion
73078
+ //#region ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
73079
+ const regex = ansiRegex();
73080
+ function stripAnsi$1(string$3) {
73081
+ if (typeof string$3 !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string$3}\``);
73082
+ return string$3.replace(regex, "");
73083
+ }
73084
+
73049
73085
  //#endregion
73050
73086
  //#region ../../node_modules/.pnpm/log-update@5.0.1/node_modules/log-update/index.js
73051
73087
  const defaultTerminalHeight = 24;
@@ -74815,13 +74851,13 @@ function createProfileStore(args) {
74815
74851
  args.bindings.write(currentBindings);
74816
74852
  },
74817
74853
  activate(profile, dir$2) {
74818
- const normalizedDir = path.resolve(dir$2);
74854
+ const normalizedDir = path2__default.resolve(dir$2);
74819
74855
  const currentBindings = args.bindings.read();
74820
74856
  currentBindings[normalizedDir] = profile;
74821
74857
  args.bindings.write(currentBindings);
74822
74858
  },
74823
74859
  deactivate(dir$2) {
74824
- const normalizedDir = path.resolve(dir$2);
74860
+ const normalizedDir = path2__default.resolve(dir$2);
74825
74861
  const currentBindings = args.bindings.read();
74826
74862
  const boundProfile = currentBindings[normalizedDir];
74827
74863
  if (boundProfile === void 0) {
@@ -74893,18 +74929,18 @@ function validateProfileName(name) {
74893
74929
  }
74894
74930
  __name$1(validateProfileName, "validateProfileName");
74895
74931
  function formatDirectoryForUserError(dir$2) {
74896
- return path.relative(process.cwd(), dir$2) || ".";
74932
+ return path2__default.relative(process.cwd(), dir$2) || ".";
74897
74933
  }
74898
74934
  __name$1(formatDirectoryForUserError, "formatDirectoryForUserError");
74899
74935
  function getProfileForDirectoryFromBindings(startDir, bindings$1) {
74900
- const normalizedDir = path.resolve(startDir);
74936
+ const normalizedDir = path2__default.resolve(startDir);
74901
74937
  const sortedEntries = Object.entries(bindings$1).sort(([a], [b]) => b.length - a.length);
74902
74938
  for (const [boundDir, profile] of sortedEntries) {
74903
74939
  if (normalizedDir === boundDir) return {
74904
74940
  profile,
74905
74941
  dir: boundDir
74906
74942
  };
74907
- if (normalizedDir.startsWith(boundDir) && normalizedDir[boundDir.length] === path.sep) return {
74943
+ if (normalizedDir.startsWith(boundDir) && normalizedDir[boundDir.length] === path2__default.sep) return {
74908
74944
  profile,
74909
74945
  dir: boundDir
74910
74946
  };
@@ -75659,7 +75695,7 @@ function resolveAuthProfileBaseName(profile) {
75659
75695
  }
75660
75696
  __name$1(resolveAuthProfileBaseName, "resolveAuthProfileBaseName");
75661
75697
  function getAuthConfigFilePath$2(configPath, profile, extension = "toml") {
75662
- return path.join(configPath, USER_AUTH_CONFIG_PATH, `${resolveAuthProfileBaseName(profile)}.${extension}`);
75698
+ return path2__default.join(configPath, USER_AUTH_CONFIG_PATH, `${resolveAuthProfileBaseName(profile)}.${extension}`);
75663
75699
  }
75664
75700
  __name$1(getAuthConfigFilePath$2, "getAuthConfigFilePath");
75665
75701
  var FileCredentialStore = class {
@@ -75690,7 +75726,7 @@ var FileCredentialStore = class {
75690
75726
  }
75691
75727
  write(config$2) {
75692
75728
  const filePath = this.filePath();
75693
- mkdirSync(path.dirname(filePath), { recursive: true });
75729
+ mkdirSync(path2__default.dirname(filePath), { recursive: true });
75694
75730
  writeFileSync(filePath, stringifyFile(this.format, config$2), {
75695
75731
  encoding: "utf-8",
75696
75732
  mode: 384
@@ -75755,7 +75791,7 @@ function parseEncryptedEnvelope(raw) {
75755
75791
  }
75756
75792
  __name$1(parseEncryptedEnvelope, "parseEncryptedEnvelope");
75757
75793
  function getEncryptedAuthConfigFilePath$2(configPath, profile) {
75758
- return path.join(configPath, "config", `${resolveAuthProfileBaseName(profile)}.enc`);
75794
+ return path2__default.join(configPath, "config", `${resolveAuthProfileBaseName(profile)}.enc`);
75759
75795
  }
75760
75796
  __name$1(getEncryptedAuthConfigFilePath$2, "getEncryptedAuthConfigFilePath");
75761
75797
  var EncryptedFileCredentialStore = class {
@@ -75794,7 +75830,7 @@ var EncryptedFileCredentialStore = class {
75794
75830
  const key = this.ensureKey();
75795
75831
  const envelope = encryptString(stringifyFile(this.format, config$2), key);
75796
75832
  const encryptedPath = getEncryptedAuthConfigFilePath$2(this.configPath, this.profile);
75797
- mkdirSync(path.dirname(encryptedPath), { recursive: true });
75833
+ mkdirSync(path2__default.dirname(encryptedPath), { recursive: true });
75798
75834
  writeFileSync(encryptedPath, JSON.stringify(envelope, null, " "), {
75799
75835
  encoding: "utf-8",
75800
75836
  mode: 384
@@ -75899,26 +75935,26 @@ function setNpmRunner(fn) {
75899
75935
  }
75900
75936
  __name$1(setNpmRunner, "setNpmRunner");
75901
75937
  function getKeyringInstallDir(configPath) {
75902
- return path.join(configPath, "native", "keyring");
75938
+ return path2__default.join(configPath, "native", "keyring");
75903
75939
  }
75904
75940
  __name$1(getKeyringInstallDir, "getKeyringInstallDir");
75905
75941
  function getInstalledBindingPath(installDir) {
75906
- return path.join(installDir, "node_modules", "@napi-rs", "keyring");
75942
+ return path2__default.join(installDir, "node_modules", "@napi-rs", "keyring");
75907
75943
  }
75908
75944
  __name$1(getInstalledBindingPath, "getInstalledBindingPath");
75909
75945
  function findKeyringBinding(installDir) {
75910
75946
  const cached$2 = cachedBindingPathByDir.get(installDir);
75911
75947
  if (cached$2 !== void 0) return cached$2;
75912
75948
  const lazy$2 = getInstalledBindingPath(installDir);
75913
- if (existsSync(path.join(lazy$2, "index.js"))) {
75949
+ if (existsSync(path2__default.join(lazy$2, "index.js"))) {
75914
75950
  cachedBindingPathByDir.set(installDir, lazy$2);
75915
75951
  return lazy$2;
75916
75952
  }
75917
75953
  try {
75918
75954
  const r$1 = npmRunner(["root", "-g"]);
75919
75955
  if (r$1.status === 0) {
75920
- const global$2 = path.join(r$1.stdout.trim(), "@napi-rs", "keyring");
75921
- if (existsSync(path.join(global$2, "index.js"))) {
75956
+ const global$2 = path2__default.join(r$1.stdout.trim(), "@napi-rs", "keyring");
75957
+ if (existsSync(path2__default.join(global$2, "index.js"))) {
75922
75958
  cachedBindingPathByDir.set(installDir, global$2);
75923
75959
  return global$2;
75924
75960
  }
@@ -75931,7 +75967,7 @@ __name$1(findKeyringBinding, "findKeyringBinding");
75931
75967
  function installKeyringBindingSync(installDir) {
75932
75968
  const dir$2 = installDir;
75933
75969
  mkdirSync(dir$2, { recursive: true });
75934
- const hostPkgJson = path.join(dir$2, "package.json");
75970
+ const hostPkgJson = path2__default.join(dir$2, "package.json");
75935
75971
  if (!existsSync(hostPkgJson)) writeFileSync(hostPkgJson, JSON.stringify({
75936
75972
  private: true,
75937
75973
  name: "cloudflare-auth-keyring-host"
@@ -76363,7 +76399,7 @@ __name$1(scrubEncryptedCredentials, "scrubEncryptedCredentials");
76363
76399
  //#region ../workers-auth/dist/chunk-AEOSGWMT.mjs
76364
76400
  function createPreferences(getConfigPath) {
76365
76401
  function getUserPreferencesPath() {
76366
- return path.resolve(getConfigPath(), "preferences.json");
76402
+ return path2__default.resolve(getConfigPath(), "preferences.json");
76367
76403
  }
76368
76404
  __name$1(getUserPreferencesPath, "getUserPreferencesPath");
76369
76405
  function readUserPreferences$2() {
@@ -76383,7 +76419,7 @@ function createPreferences(getConfigPath) {
76383
76419
  ...update
76384
76420
  };
76385
76421
  const filePath = getUserPreferencesPath();
76386
- mkdirSync(path.dirname(filePath), { recursive: true });
76422
+ mkdirSync(path2__default.dirname(filePath), { recursive: true });
76387
76423
  writeFileSync(filePath, JSON.stringify(next, null, " "), { encoding: "utf-8" });
76388
76424
  }
76389
76425
  __name$1(updateUserPreferences$2, "updateUserPreferences");
@@ -77018,7 +77054,7 @@ function createFileStorage(format$4, getPath) {
77018
77054
  }, "read"),
77019
77055
  write(config$2) {
77020
77056
  const configPath = getPath();
77021
- mkdirSync(path.dirname(configPath), { recursive: true });
77057
+ mkdirSync(path2__default.dirname(configPath), { recursive: true });
77022
77058
  writeFileSync(configPath, stringifyFile(format$4, config$2), {
77023
77059
  encoding: "utf-8",
77024
77060
  mode: 384
@@ -77332,7 +77368,7 @@ function createCloudflareProfileStore(ctx) {
77332
77368
  }
77333
77369
  __name$1(encryptedPath, "encryptedPath");
77334
77370
  function getProfileConfigDirectory() {
77335
- return path.dirname(plaintextPath("default"));
77371
+ return path2__default.dirname(plaintextPath("default"));
77336
77372
  }
77337
77373
  __name$1(getProfileConfigDirectory, "getProfileConfigDirectory");
77338
77374
  const configs = {
@@ -77359,7 +77395,7 @@ function createCloudflareProfileStore(ctx) {
77359
77395
  }
77360
77396
  };
77361
77397
  function getDirectoryBindingsPath() {
77362
- return path.join(getConfigPath(), DIRECTORY_BINDINGS_FILE);
77398
+ return path2__default.join(getConfigPath(), DIRECTORY_BINDINGS_FILE);
77363
77399
  }
77364
77400
  __name$1(getDirectoryBindingsPath, "getDirectoryBindingsPath");
77365
77401
  return createProfileStore({
@@ -77375,7 +77411,7 @@ function createCloudflareProfileStore(ctx) {
77375
77411
  },
77376
77412
  write(dirBindings) {
77377
77413
  const bindingsPath = getDirectoryBindingsPath();
77378
- mkdirSync(path.dirname(bindingsPath), { recursive: true });
77414
+ mkdirSync(path2__default.dirname(bindingsPath), { recursive: true });
77379
77415
  writeFileSync(bindingsPath, JSON.stringify(dirBindings, null, " "), "utf-8");
77380
77416
  }
77381
77417
  }
@@ -77616,7 +77652,7 @@ function getTemporaryAccountConfigFile$1() {
77616
77652
  }
77617
77653
  __name$1(getTemporaryAccountConfigFile$1, "getTemporaryAccountConfigFile");
77618
77654
  function getCfTemporaryAccountConfigPath() {
77619
- return path.join(getCfConfigPath(), getTemporaryAccountConfigFile$1());
77655
+ return path2__default.join(getCfConfigPath(), getTemporaryAccountConfigFile$1());
77620
77656
  }
77621
77657
  __name$1(getCfTemporaryAccountConfigPath, "getCfTemporaryAccountConfigPath");
77622
77658
  function createJsonFileStorage(getPath) {
@@ -77739,7 +77775,7 @@ function getTemporaryAccountConfigFile() {
77739
77775
  }
77740
77776
  __name$1(getTemporaryAccountConfigFile, "getTemporaryAccountConfigFile");
77741
77777
  function getTemporaryPreviewAccountConfigPath() {
77742
- return path.join(getGlobalConfigPath(), getTemporaryAccountConfigFile());
77778
+ return path2__default.join(getGlobalConfigPath(), getTemporaryAccountConfigFile());
77743
77779
  }
77744
77780
  __name$1(getTemporaryPreviewAccountConfigPath, "getTemporaryPreviewAccountConfigPath");
77745
77781
  function createTomlFileStorage(getPath) {
@@ -77813,7 +77849,7 @@ var require_command_exists$1 = /* @__PURE__ */ __commonJS$2({ "../../node_module
77813
77849
  var exec = __require$2("child_process").exec;
77814
77850
  var execSync$1 = __require$2("child_process").execSync;
77815
77851
  var fs$2 = __require$2("fs");
77816
- var path$1 = __require$2("path");
77852
+ var path = __require$2("path");
77817
77853
  var access = fs$2.access;
77818
77854
  var accessSync$1 = fs$2.accessSync;
77819
77855
  var constants$4 = fs$2.constants || fs$2;
@@ -77890,8 +77926,8 @@ var require_command_exists$1 = /* @__PURE__ */ __commonJS$2({ "../../node_module
77890
77926
  };
77891
77927
  if (isUsingWindows) cleanInput = function(s) {
77892
77928
  if (/[\\]/.test(s)) {
77893
- var dirname$3 = "\"" + path$1.dirname(s) + "\"";
77894
- var basename$2 = "\"" + path$1.basename(s) + "\"";
77929
+ var dirname$3 = "\"" + path.dirname(s) + "\"";
77930
+ var basename$2 = "\"" + path.basename(s) + "\"";
77895
77931
  return dirname$3 + ":" + basename$2;
77896
77932
  }
77897
77933
  return "\"" + s + "\"";
@@ -78705,11 +78741,11 @@ function createWorkerUploadForm(worker, bindings$1, options) {
78705
78741
  const manifestModuleName = "__STATIC_CONTENT_MANIFEST";
78706
78742
  if (modules?.some(({ name }) => name === manifestModuleName) && main.type === "esm") {
78707
78743
  assert(modules !== void 0);
78708
- const subDirs = new Set(modules.map((module$1) => path.posix.dirname(module$1.name)));
78744
+ const subDirs = new Set(modules.map((module$1) => path2__default.posix.dirname(module$1.name)));
78709
78745
  for (const subDir of subDirs) {
78710
78746
  if (subDir === ".") continue;
78711
- const relativePath = path.posix.relative(subDir, manifestModuleName);
78712
- const filePath = path.posix.join(subDir, manifestModuleName);
78747
+ const relativePath = path2__default.posix.relative(subDir, manifestModuleName);
78748
+ const filePath = path2__default.posix.join(subDir, manifestModuleName);
78713
78749
  modules.push({
78714
78750
  name: filePath,
78715
78751
  filePath,
@@ -78789,7 +78825,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
78789
78825
  //#endregion
78790
78826
  //#region ../remote-bindings/dist/index.mjs
78791
78827
  var import_undici = require_undici();
78792
- var version$2 = "0.0.10";
78828
+ var version$2 = "0.0.11";
78793
78829
  var NoDefaultValueProvided = class extends UserError {
78794
78830
  constructor() {
78795
78831
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
@@ -79234,7 +79270,7 @@ function createRemoteWorkerInit(props) {
79234
79270
  return {
79235
79271
  name: props.name,
79236
79272
  main: {
79237
- name: path.basename(props.bundle.path),
79273
+ name: path2__default.basename(props.bundle.path),
79238
79274
  filePath: props.bundle.path,
79239
79275
  type: props.bundle.type,
79240
79276
  content: props.bundle.entrypointSource
@@ -79479,7 +79515,6 @@ var DevEnv = class extends EventEmitter {
79479
79515
  runtime;
79480
79516
  proxy;
79481
79517
  #bundle;
79482
- #bundleVersion = 0;
79483
79518
  #config;
79484
79519
  start() {
79485
79520
  this.proxy.start(this.#config);
@@ -79494,7 +79529,7 @@ var DevEnv = class extends EventEmitter {
79494
79529
  config: config$2,
79495
79530
  bundle: {
79496
79531
  ...this.#bundle,
79497
- entrypointSource: `${this.#bundle.entrypointSource}\n// remote-bindings-update:${++this.#bundleVersion}`
79532
+ entrypointSource: `${this.#bundle.entrypointSource}\n// remote-bindings-update:${randomUUID()}`
79498
79533
  }
79499
79534
  });
79500
79535
  }
@@ -79701,28 +79736,28 @@ function deepStrictEqual(source, target$1) {
79701
79736
  }
79702
79737
 
79703
79738
  //#endregion
79704
- //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs
79739
+ //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
79705
79740
  var __require = /* @__PURE__ */ createRequire$1(import.meta.url);
79706
- function cleanPath(path$2) {
79707
- let normalized = normalize(path$2);
79741
+ function cleanPath(path$1) {
79742
+ let normalized = normalize(path$1);
79708
79743
  if (normalized.length > 1 && normalized[normalized.length - 1] === sep) normalized = normalized.substring(0, normalized.length - 1);
79709
79744
  return normalized;
79710
79745
  }
79711
79746
  const SLASHES_REGEX = /[\\/]/g;
79712
- function convertSlashes(path$2, separator) {
79713
- return path$2.replace(SLASHES_REGEX, separator);
79747
+ function convertSlashes(path$1, separator) {
79748
+ return path$1.replace(SLASHES_REGEX, separator);
79714
79749
  }
79715
79750
  const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i;
79716
- function isRootDirectory(path$2) {
79717
- return path$2 === "/" || WINDOWS_ROOT_DIR_REGEX.test(path$2);
79751
+ function isRootDirectory(path$1) {
79752
+ return path$1 === "/" || WINDOWS_ROOT_DIR_REGEX.test(path$1);
79718
79753
  }
79719
- function normalizePath$1(path$2, options) {
79754
+ function normalizePath$1(path$1, options) {
79720
79755
  const { resolvePaths, normalizePath: normalizePath$1$1, pathSeparator } = options;
79721
- const pathNeedsCleaning = process.platform === "win32" && path$2.includes("/") || path$2.startsWith(".");
79722
- if (resolvePaths) path$2 = resolve$1(path$2);
79723
- if (normalizePath$1$1 || pathNeedsCleaning) path$2 = cleanPath(path$2);
79724
- if (path$2 === ".") return "";
79725
- return convertSlashes(path$2[path$2.length - 1] !== pathSeparator ? path$2 + pathSeparator : path$2, pathSeparator);
79756
+ const pathNeedsCleaning = process.platform === "win32" && path$1.includes("/") || path$1.startsWith(".");
79757
+ if (resolvePaths) path$1 = resolve$1(path$1);
79758
+ if (normalizePath$1$1 || pathNeedsCleaning) path$1 = cleanPath(path$1);
79759
+ if (path$1 === ".") return "";
79760
+ return convertSlashes(path$1[path$1.length - 1] !== pathSeparator ? path$1 + pathSeparator : path$1, pathSeparator);
79726
79761
  }
79727
79762
  function joinPathWithBasePath(filename, directoryPath) {
79728
79763
  return directoryPath + filename;
@@ -79758,8 +79793,8 @@ const pushDirectory = (directoryPath, paths) => {
79758
79793
  paths.push(directoryPath || ".");
79759
79794
  };
79760
79795
  const pushDirectoryFilter = (directoryPath, paths, filters) => {
79761
- const path$2 = directoryPath || ".";
79762
- if (filters.every((filter) => filter(path$2, true))) paths.push(path$2);
79796
+ const path$1 = directoryPath || ".";
79797
+ if (filters.every((filter) => filter(path$1, true))) paths.push(path$1);
79763
79798
  };
79764
79799
  const empty$2 = () => {};
79765
79800
  function build$6(root, options) {
@@ -79808,26 +79843,26 @@ const empty = () => {};
79808
79843
  function build$3(options) {
79809
79844
  return options.group ? groupFiles : empty;
79810
79845
  }
79811
- const resolveSymlinksAsync = function(path$2, state, callback$1) {
79846
+ const resolveSymlinksAsync = function(path$1, state, callback$1) {
79812
79847
  const { queue, fs: fs$3, options: { suppressErrors } } = state;
79813
79848
  queue.enqueue();
79814
- fs$3.realpath(path$2, (error$2, resolvedPath) => {
79849
+ fs$3.realpath(path$1, (error$2, resolvedPath) => {
79815
79850
  if (error$2) return queue.dequeue(suppressErrors ? null : error$2, state);
79816
79851
  fs$3.stat(resolvedPath, (error$1$1, stat$1) => {
79817
79852
  if (error$1$1) return queue.dequeue(suppressErrors ? null : error$1$1, state);
79818
- if (stat$1.isDirectory() && isRecursive(path$2, resolvedPath, state)) return queue.dequeue(null, state);
79853
+ if (stat$1.isDirectory() && isRecursive(path$1, resolvedPath, state)) return queue.dequeue(null, state);
79819
79854
  callback$1(stat$1, resolvedPath);
79820
79855
  queue.dequeue(null, state);
79821
79856
  });
79822
79857
  });
79823
79858
  };
79824
- const resolveSymlinks = function(path$2, state, callback$1) {
79859
+ const resolveSymlinks = function(path$1, state, callback$1) {
79825
79860
  const { queue, fs: fs$3, options: { suppressErrors } } = state;
79826
79861
  queue.enqueue();
79827
79862
  try {
79828
- const resolvedPath = fs$3.realpathSync(path$2);
79863
+ const resolvedPath = fs$3.realpathSync(path$1);
79829
79864
  const stat$1 = fs$3.statSync(resolvedPath);
79830
- if (stat$1.isDirectory() && isRecursive(path$2, resolvedPath, state)) return;
79865
+ if (stat$1.isDirectory() && isRecursive(path$1, resolvedPath, state)) return;
79831
79866
  callback$1(stat$1, resolvedPath);
79832
79867
  } catch (e) {
79833
79868
  if (!suppressErrors) throw e;
@@ -79837,16 +79872,16 @@ function build$2(options, isSynchronous) {
79837
79872
  if (!options.resolveSymlinks || options.excludeSymlinks) return null;
79838
79873
  return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
79839
79874
  }
79840
- function isRecursive(path$2, resolved, state) {
79875
+ function isRecursive(path$1, resolved, state) {
79841
79876
  if (state.options.useRealPaths) return isRecursiveUsingRealPaths(resolved, state);
79842
- let parent = dirname$1(path$2);
79877
+ let parent = dirname$1(path$1);
79843
79878
  let depth$1 = 1;
79844
79879
  while (parent !== state.root && depth$1 < 2) {
79845
79880
  const resolvedPath = state.symlinks.get(parent);
79846
79881
  if (!!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath))) depth$1++;
79847
79882
  else parent = dirname$1(parent);
79848
79883
  }
79849
- state.symlinks.set(path$2, resolved);
79884
+ state.symlinks.set(path$1, resolved);
79850
79885
  return depth$1 > 1;
79851
79886
  }
79852
79887
  function isRecursiveUsingRealPaths(resolved, state) {
@@ -80027,19 +80062,19 @@ var Walker = class {
80027
80062
  const filename = this.joinPath(entry.name, directoryPath);
80028
80063
  this.pushFile(filename, files, this.state.counts, filters);
80029
80064
  } else if (entry.isDirectory()) {
80030
- let path$2 = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
80031
- if (exclude && exclude(entry.name, path$2)) continue;
80032
- this.pushDirectory(path$2, paths, filters);
80033
- this.walkDirectory(this.state, path$2, path$2, depth$1 - 1, this.walk);
80065
+ let path$1 = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
80066
+ if (exclude && exclude(entry.name, path$1)) continue;
80067
+ this.pushDirectory(path$1, paths, filters);
80068
+ this.walkDirectory(this.state, path$1, path$1, depth$1 - 1, this.walk);
80034
80069
  } else if (this.resolveSymlink && entry.isSymbolicLink()) {
80035
- let path$2 = joinPathWithBasePath(entry.name, directoryPath);
80036
- this.resolveSymlink(path$2, this.state, (stat$1, resolvedPath) => {
80070
+ let path$1 = joinPathWithBasePath(entry.name, directoryPath);
80071
+ this.resolveSymlink(path$1, this.state, (stat$1, resolvedPath) => {
80037
80072
  if (stat$1.isDirectory()) {
80038
80073
  resolvedPath = normalizePath$1(resolvedPath, this.state.options);
80039
- if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path$2 + pathSeparator)) return;
80040
- this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path$2 + pathSeparator, depth$1 - 1, this.walk);
80074
+ if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path$1 + pathSeparator)) return;
80075
+ this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path$1 + pathSeparator, depth$1 - 1, this.walk);
80041
80076
  } else {
80042
- resolvedPath = useRealPaths ? resolvedPath : path$2;
80077
+ resolvedPath = useRealPaths ? resolvedPath : path$1;
80043
80078
  const filename = basename$1(resolvedPath);
80044
80079
  const directoryPath$1 = normalizePath$1(dirname$1(resolvedPath), this.state.options);
80045
80080
  resolvedPath = this.joinPath(filename, directoryPath$1);
@@ -80204,14 +80239,14 @@ var Builder = class {
80204
80239
  isMatch = globFn(patterns, ...options);
80205
80240
  this.globCache[patterns.join("\0")] = isMatch;
80206
80241
  }
80207
- this.options.filters.push((path$2) => isMatch(path$2));
80242
+ this.options.filters.push((path$1) => isMatch(path$1));
80208
80243
  return this;
80209
80244
  }
80210
80245
  };
80211
80246
 
80212
80247
  //#endregion
80213
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
80214
- var require_constants = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js": ((exports, module) => {
80248
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
80249
+ var require_constants = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js": ((exports, module) => {
80215
80250
  const WIN_SLASH = "\\\\/";
80216
80251
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
80217
80252
  const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
@@ -80378,8 +80413,8 @@ var require_constants = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
80378
80413
  }) });
80379
80414
 
80380
80415
  //#endregion
80381
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
80382
- var require_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js": ((exports) => {
80416
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
80417
+ var require_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js": ((exports) => {
80383
80418
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
80384
80419
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
80385
80420
  exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
@@ -80418,8 +80453,8 @@ var require_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
80418
80453
  if (state.negated === true) output = `(?:^(?!${output}).*$)`;
80419
80454
  return output;
80420
80455
  };
80421
- exports.basename = (path$2, { windows } = {}) => {
80422
- const segs = path$2.split(windows ? /[\\/]/ : "/");
80456
+ exports.basename = (path$1, { windows } = {}) => {
80457
+ const segs = path$1.split(windows ? /[\\/]/ : "/");
80423
80458
  const last = segs[segs.length - 1];
80424
80459
  if (last === "") return segs[segs.length - 2];
80425
80460
  return last;
@@ -80427,8 +80462,8 @@ var require_utils = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
80427
80462
  }) });
80428
80463
 
80429
80464
  //#endregion
80430
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
80431
- var require_scan = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js": ((exports, module) => {
80465
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
80466
+ var require_scan = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js": ((exports, module) => {
80432
80467
  const utils$3 = require_utils();
80433
80468
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
80434
80469
  const isPathSeparator = (code) => {
@@ -80715,8 +80750,8 @@ var require_scan = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pico
80715
80750
  }) });
80716
80751
 
80717
80752
  //#endregion
80718
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
80719
- var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js": ((exports, module) => {
80753
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
80754
+ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js": ((exports, module) => {
80720
80755
  const constants$3 = require_constants();
80721
80756
  const utils$2 = require_utils();
80722
80757
  /**
@@ -80870,7 +80905,10 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
80870
80905
  }
80871
80906
  }
80872
80907
  };
80873
- const getStarExtglobSequenceOutput = (pattern) => {
80908
+ const buildCharClassStar = (chars$1) => {
80909
+ return `${chars$1.length === 1 ? utils$2.escapeRegex(chars$1[0]) : `[${chars$1.map((ch) => utils$2.escapeRegex(ch)).join("")}]`}*`;
80910
+ };
80911
+ const getStarExtglobSequenceChars = (pattern) => {
80874
80912
  let index = 0;
80875
80913
  const chars$1 = [];
80876
80914
  while (index < pattern.length) {
@@ -80884,7 +80922,7 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
80884
80922
  index += match.end + 1;
80885
80923
  }
80886
80924
  if (chars$1.length < 1) return;
80887
- return `${chars$1.length === 1 ? utils$2.escapeRegex(chars$1[0]) : `[${chars$1.map((ch) => utils$2.escapeRegex(ch)).join("")}]`}*`;
80925
+ return chars$1;
80888
80926
  };
80889
80927
  const repeatedExtglobRecursion = (pattern) => {
80890
80928
  let depth$1 = 0;
@@ -80904,14 +80942,28 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
80904
80942
  if (branches.length > 1) {
80905
80943
  if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
80906
80944
  }
80945
+ const safeChars = [];
80946
+ let sawStarSequence = false;
80947
+ let combinable = true;
80907
80948
  for (const branch of branches) {
80908
- const safeOutput = getStarExtglobSequenceOutput(branch);
80909
- if (safeOutput) return {
80910
- risky: true,
80911
- safeOutput
80912
- };
80949
+ const chars$1 = getStarExtglobSequenceChars(branch);
80950
+ if (chars$1) {
80951
+ sawStarSequence = true;
80952
+ safeChars.push(...chars$1);
80953
+ continue;
80954
+ }
80955
+ const literal$3 = normalizeSimpleBranch(branch);
80956
+ if (literal$3 && literal$3.length === 1) {
80957
+ safeChars.push(literal$3);
80958
+ continue;
80959
+ }
80960
+ combinable = false;
80913
80961
  if (repeatedExtglobRecursion(branch) > max) return { risky: true };
80914
80962
  }
80963
+ if (sawStarSequence) return combinable ? {
80964
+ risky: true,
80965
+ safeOutput: buildCharClassStar([...new Set(safeChars)])
80966
+ } : { risky: true };
80915
80967
  return { risky: false };
80916
80968
  };
80917
80969
  /**
@@ -81771,8 +81823,8 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/pic
81771
81823
  }) });
81772
81824
 
81773
81825
  //#endregion
81774
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
81775
- var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js": ((exports, module) => {
81826
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
81827
+ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js": ((exports, module) => {
81776
81828
  const scan = require_scan();
81777
81829
  const parse = require_parse();
81778
81830
  const utils$1 = require_utils();
@@ -81792,6 +81844,18 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81792
81844
  * const isMatch = picomatch('*.!(*a)');
81793
81845
  * console.log(isMatch('a.a')); //=> false
81794
81846
  * console.log(isMatch('a.b')); //=> true
81847
+ *
81848
+ * // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
81849
+ * const picomatch = require('picomatch/posix');
81850
+ * // the same API, defaulting to posix paths
81851
+ * const isMatch = picomatch('a/*');
81852
+ * console.log(isMatch('a\\b')); //=> false
81853
+ * console.log(isMatch('a/b')); //=> true
81854
+ *
81855
+ * // you can still configure the matcher function to accept windows paths
81856
+ * const isMatch = picomatch('a/*', { options: windows });
81857
+ * console.log(isMatch('a\\b')); //=> true
81858
+ * console.log(isMatch('a/b')); //=> true
81795
81859
  * ```
81796
81860
  * @name picomatch
81797
81861
  * @param {String|Array} `globs` One or more glob patterns.
@@ -81815,9 +81879,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81815
81879
  if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
81816
81880
  const opts = options || {};
81817
81881
  const posix$1 = opts.windows;
81818
- const regex$1 = isState ? picomatch$2.compileRe(glob, options) : picomatch$2.makeRe(glob, options, false, true);
81819
- const state = regex$1.state;
81820
- delete regex$1.state;
81882
+ const regex$2 = isState ? picomatch$2.compileRe(glob, options) : picomatch$2.makeRe(glob, options, false, true);
81883
+ const state = regex$2.state;
81884
+ delete regex$2.state;
81821
81885
  let isIgnored = () => false;
81822
81886
  if (opts.ignore) {
81823
81887
  const ignoreOpts = {
@@ -81829,14 +81893,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81829
81893
  isIgnored = picomatch$2(opts.ignore, ignoreOpts, returnState);
81830
81894
  }
81831
81895
  const matcher = (input, returnObject = false) => {
81832
- const { isMatch, match, output } = picomatch$2.test(input, regex$1, options, {
81896
+ const { isMatch, match, output } = picomatch$2.test(input, regex$2, options, {
81833
81897
  glob,
81834
81898
  posix: posix$1
81835
81899
  });
81836
81900
  const result = {
81837
81901
  glob,
81838
81902
  state,
81839
- regex: regex$1,
81903
+ regex: regex$2,
81840
81904
  posix: posix$1,
81841
81905
  input,
81842
81906
  output,
@@ -81875,7 +81939,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81875
81939
  * @return {Object} Returns an object with matching info.
81876
81940
  * @api public
81877
81941
  */
81878
- picomatch$2.test = (input, regex$1, options, { glob, posix: posix$1 } = {}) => {
81942
+ picomatch$2.test = (input, regex$2, options, { glob, posix: posix$1 } = {}) => {
81879
81943
  if (typeof input !== "string") throw new TypeError("Expected input to be a string");
81880
81944
  if (input === "") return {
81881
81945
  isMatch: false,
@@ -81889,8 +81953,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81889
81953
  output = format$4 ? format$4(input) : input;
81890
81954
  match = output === glob;
81891
81955
  }
81892
- if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$2.matchBase(input, regex$1, options, posix$1);
81893
- else match = regex$1.exec(output);
81956
+ if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$2.matchBase(input, regex$2, options, posix$1);
81957
+ else match = regex$2.exec(output);
81894
81958
  return {
81895
81959
  isMatch: Boolean(match),
81896
81960
  match,
@@ -81910,8 +81974,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
81910
81974
  * @return {Boolean}
81911
81975
  * @api public
81912
81976
  */
81913
- picomatch$2.matchBase = (input, glob, options) => {
81914
- return (glob instanceof RegExp ? glob : picomatch$2.makeRe(glob, options)).test(utils$1.basename(input));
81977
+ picomatch$2.matchBase = (input, glob, options, posix$1 = options && options.windows) => {
81978
+ return (glob instanceof RegExp ? glob : picomatch$2.makeRe(glob, options)).test(utils$1.basename(input, { windows: posix$1 }));
81915
81979
  };
81916
81980
  /**
81917
81981
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -82003,9 +82067,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
82003
82067
  const append = opts.contains ? "" : "$";
82004
82068
  let source = `${prepend}(?:${state.output})${append}`;
82005
82069
  if (state && state.negated === true) source = `^(?!${source}).*$`;
82006
- const regex$1 = picomatch$2.toRegex(source, options);
82007
- if (returnState === true) regex$1.state = state;
82008
- return regex$1;
82070
+ const regex$2 = picomatch$2.toRegex(source, options);
82071
+ if (returnState === true) regex$2.state = state;
82072
+ return regex$2;
82009
82073
  };
82010
82074
  /**
82011
82075
  * Create a regular expression from a parsed glob pattern.
@@ -82072,8 +82136,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
82072
82136
  }) });
82073
82137
 
82074
82138
  //#endregion
82075
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
82076
- var require_picomatch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js": ((exports, module) => {
82139
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
82140
+ var require_picomatch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js": ((exports, module) => {
82077
82141
  const pico = require_picomatch$1();
82078
82142
  const utils = require_utils();
82079
82143
  function picomatch$1(glob, options, returnState = false) {
@@ -82159,15 +82223,15 @@ function buildRelative(cwd, root) {
82159
82223
  };
82160
82224
  }
82161
82225
  const splitPatternOptions = { parts: true };
82162
- function splitPattern(path$2) {
82226
+ function splitPattern(path$1) {
82163
82227
  var _result$parts;
82164
- const result = import_picomatch.default.scan(path$2, splitPatternOptions);
82165
- return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$2];
82228
+ const result = import_picomatch.default.scan(path$1, splitPatternOptions);
82229
+ return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$1];
82166
82230
  }
82167
82231
  const POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
82168
82232
  const WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
82169
- const escapePosixPath = (path$2) => path$2.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
82170
- const escapeWin32Path = (path$2) => path$2.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
82233
+ const escapePosixPath = (path$1) => path$1.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
82234
+ const escapeWin32Path = (path$1) => path$1.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
82171
82235
  /**
82172
82236
  * Escapes a path's special characters depending on the platform.
82173
82237
  * @see {@link https://superchupu.dev/tinyglobby/documentation#escapePath}
@@ -82291,13 +82355,13 @@ function buildCrawler(options, patterns) {
82291
82355
  if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
82292
82356
  const crawler = new Builder({
82293
82357
  filters: [debug$7 ? (p$2, isDirectory$2) => {
82294
- const path$2 = format$4(p$2, isDirectory$2);
82295
- const matches = matcher(path$2) && !ignore$1(path$2);
82296
- if (matches) log(`matched ${path$2}`);
82358
+ const path$1 = format$4(p$2, isDirectory$2);
82359
+ const matches = matcher(path$1) && !ignore$1(path$1);
82360
+ if (matches) log(`matched ${path$1}`);
82297
82361
  return matches;
82298
82362
  } : (p$2, isDirectory$2) => {
82299
- const path$2 = format$4(p$2, isDirectory$2);
82300
- return matcher(path$2) && !ignore$1(path$2);
82363
+ const path$1 = format$4(p$2, isDirectory$2);
82364
+ return matcher(path$1) && !ignore$1(path$1);
82301
82365
  }],
82302
82366
  exclude: debug$7 ? (_, p$2) => {
82303
82367
  const skipped = excludePredicate(_, p$2);
@@ -83553,13 +83617,13 @@ const wslDefaultBrowser = async () => {
83553
83617
  const { stdout: stdout$2 } = await executePowerShell(String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`, { powerShellPath: psPath });
83554
83618
  return stdout$2.trim();
83555
83619
  };
83556
- const convertWslPathToWindows = async (path$2) => {
83557
- if (/^[a-z]+:\/\//i.test(path$2)) return path$2;
83620
+ const convertWslPathToWindows = async (path$1) => {
83621
+ if (/^[a-z]+:\/\//i.test(path$1)) return path$1;
83558
83622
  try {
83559
- const { stdout: stdout$2 } = await execFile$1("wslpath", ["-aw", path$2], { encoding: "utf8" });
83623
+ const { stdout: stdout$2 } = await execFile$1("wslpath", ["-aw", path$1], { encoding: "utf8" });
83560
83624
  return stdout$2.trim();
83561
83625
  } catch {
83562
- return path$2;
83626
+ return path$1;
83563
83627
  }
83564
83628
  };
83565
83629
 
@@ -83745,8 +83809,8 @@ var is_in_ssh_default = isInSsh;
83745
83809
  //#endregion
83746
83810
  //#region ../../node_modules/.pnpm/open@11.0.0/node_modules/open/index.js
83747
83811
  const fallbackAttemptSymbol = Symbol("fallbackAttempt");
83748
- const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
83749
- const localXdgOpenPath = path.join(__dirname, "xdg-open");
83812
+ const __dirname = import.meta.url ? path2__default.dirname(fileURLToPath(import.meta.url)) : "";
83813
+ const localXdgOpenPath = path2__default.join(__dirname, "xdg-open");
83750
83814
  const { platform, arch: arch$1 } = process$1;
83751
83815
  const tryEachApp = async (apps$1, opener) => {
83752
83816
  if (apps$1.length === 0) return;