@kevisual/router 0.2.11 → 0.2.12

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/opencode.js CHANGED
@@ -45,7 +45,7 @@ var __export = (target, all) => {
45
45
  };
46
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
47
 
48
- // ../../node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
48
+ // node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
49
49
  var require_eventemitter3 = __commonJS((exports, module) => {
50
50
  var has = Object.prototype.hasOwnProperty;
51
51
  var prefix = "~";
@@ -223,7 +223,7 @@ var require_eventemitter3 = __commonJS((exports, module) => {
223
223
  }
224
224
  });
225
225
 
226
- // ../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js
226
+ // node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js
227
227
  var require_core = __commonJS((exports, module) => {
228
228
  (function(root, factory) {
229
229
  if (typeof exports === "object") {
@@ -508,7 +508,7 @@ var require_core = __commonJS((exports, module) => {
508
508
  });
509
509
  });
510
510
 
511
- // ../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js
511
+ // node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js
512
512
  var require_md5 = __commonJS((exports, module) => {
513
513
  (function(root, factory) {
514
514
  if (typeof exports === "object") {
@@ -685,7 +685,7 @@ var require_md5 = __commonJS((exports, module) => {
685
685
  });
686
686
  });
687
687
 
688
- // ../../node_modules/.pnpm/@kevisual+context@0.0.10/node_modules/@kevisual/context/dist/app.js
688
+ // node_modules/@kevisual/context/dist/app.js
689
689
  var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "undefined";
690
690
  function getDefaultExportFromCjs(x) {
691
691
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1239,10 +1239,10 @@ class InitEnv {
1239
1239
  }
1240
1240
  InitEnv.init();
1241
1241
 
1242
- // ../../node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
1242
+ // node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
1243
1243
  var import__ = __toESM(require_eventemitter3(), 1);
1244
1244
 
1245
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
1245
+ // node_modules/zod/v4/classic/external.js
1246
1246
  var exports_external = {};
1247
1247
  __export(exports_external, {
1248
1248
  xor: () => xor,
@@ -1344,6 +1344,7 @@ __export(exports_external, {
1344
1344
  iso: () => exports_iso,
1345
1345
  ipv6: () => ipv62,
1346
1346
  ipv4: () => ipv42,
1347
+ invertCodec: () => invertCodec,
1347
1348
  intersection: () => intersection,
1348
1349
  int64: () => int64,
1349
1350
  int32: () => int32,
@@ -1483,7 +1484,7 @@ __export(exports_external, {
1483
1484
  $brand: () => $brand
1484
1485
  });
1485
1486
 
1486
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
1487
+ // node_modules/zod/v4/core/index.js
1487
1488
  var exports_core2 = {};
1488
1489
  __export(exports_core2, {
1489
1490
  version: () => version,
@@ -1761,8 +1762,9 @@ __export(exports_core2, {
1761
1762
  $ZodAny: () => $ZodAny
1762
1763
  });
1763
1764
 
1764
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
1765
- var NEVER = Object.freeze({
1765
+ // node_modules/zod/v4/core/core.js
1766
+ var _a;
1767
+ var NEVER = /* @__PURE__ */ Object.freeze({
1766
1768
  status: "aborted"
1767
1769
  });
1768
1770
  function $constructor(name, initializer, params) {
@@ -1797,10 +1799,10 @@ function $constructor(name, initializer, params) {
1797
1799
  }
1798
1800
  Object.defineProperty(Definition, "name", { value: name });
1799
1801
  function _(def) {
1800
- var _a;
1802
+ var _a2;
1801
1803
  const inst = params?.Parent ? new Definition : this;
1802
1804
  init(inst, def);
1803
- (_a = inst._zod).deferred ?? (_a.deferred = []);
1805
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
1804
1806
  for (const fn of inst._zod.deferred) {
1805
1807
  fn();
1806
1808
  }
@@ -1831,13 +1833,14 @@ class $ZodEncodeError extends Error {
1831
1833
  this.name = "ZodEncodeError";
1832
1834
  }
1833
1835
  }
1834
- var globalConfig = {};
1836
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
1837
+ var globalConfig = globalThis.__zod_globalConfig;
1835
1838
  function config(newConfig) {
1836
1839
  if (newConfig)
1837
1840
  Object.assign(globalConfig, newConfig);
1838
1841
  return globalConfig;
1839
1842
  }
1840
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
1843
+ // node_modules/zod/v4/core/util.js
1841
1844
  var exports_util = {};
1842
1845
  __export(exports_util, {
1843
1846
  unwrapMessage: () => unwrapMessage,
@@ -1879,6 +1882,7 @@ __export(exports_util, {
1879
1882
  floatSafeRemainder: () => floatSafeRemainder,
1880
1883
  finalizeIssue: () => finalizeIssue,
1881
1884
  extend: () => extend,
1885
+ explicitlyAborted: () => explicitlyAborted,
1882
1886
  escapeRegex: () => escapeRegex,
1883
1887
  esc: () => esc,
1884
1888
  defineLazy: () => defineLazy,
@@ -1949,21 +1953,14 @@ function cleanRegex(source) {
1949
1953
  return source.slice(start, end);
1950
1954
  }
1951
1955
  function floatSafeRemainder(val, step) {
1952
- const valDecCount = (val.toString().split(".")[1] || "").length;
1953
- const stepString = step.toString();
1954
- let stepDecCount = (stepString.split(".")[1] || "").length;
1955
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
1956
- const match = stepString.match(/\d?e-(\d?)/);
1957
- if (match?.[1]) {
1958
- stepDecCount = Number.parseInt(match[1]);
1959
- }
1960
- }
1961
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1962
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1963
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1964
- return valInt % stepInt / 10 ** decCount;
1965
- }
1966
- var EVALUATING = Symbol("evaluating");
1956
+ const ratio = val / step;
1957
+ const roundedRatio = Math.round(ratio);
1958
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
1959
+ if (Math.abs(ratio - roundedRatio) < tolerance)
1960
+ return 0;
1961
+ return ratio - roundedRatio;
1962
+ }
1963
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
1967
1964
  function defineLazy(object, key, getter) {
1968
1965
  let value = undefined;
1969
1966
  Object.defineProperty(object, key, {
@@ -2041,7 +2038,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
2041
2038
  function isObject(data) {
2042
2039
  return typeof data === "object" && data !== null && !Array.isArray(data);
2043
2040
  }
2044
- var allowsEval = cached(() => {
2041
+ var allowsEval = /* @__PURE__ */ cached(() => {
2042
+ if (globalConfig.jitless) {
2043
+ return false;
2044
+ }
2045
2045
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
2046
2046
  return false;
2047
2047
  }
@@ -2074,6 +2074,10 @@ function shallowClone(o) {
2074
2074
  return { ...o };
2075
2075
  if (Array.isArray(o))
2076
2076
  return [...o];
2077
+ if (o instanceof Map)
2078
+ return new Map(o);
2079
+ if (o instanceof Set)
2080
+ return new Set(o);
2077
2081
  return o;
2078
2082
  }
2079
2083
  function numKeys(data) {
@@ -2129,8 +2133,15 @@ var getParsedType = (data) => {
2129
2133
  throw new Error(`Unknown data type: ${t}`);
2130
2134
  }
2131
2135
  };
2132
- var propertyKeyTypes = new Set(["string", "number", "symbol"]);
2133
- var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
2136
+ var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
2137
+ var primitiveTypes = /* @__PURE__ */ new Set([
2138
+ "string",
2139
+ "number",
2140
+ "bigint",
2141
+ "boolean",
2142
+ "symbol",
2143
+ "undefined"
2144
+ ]);
2134
2145
  function escapeRegex(str) {
2135
2146
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2136
2147
  }
@@ -2299,6 +2310,9 @@ function safeExtend(schema, shape) {
2299
2310
  return clone(schema, def);
2300
2311
  }
2301
2312
  function merge(a, b) {
2313
+ if (a._zod.def.checks?.length) {
2314
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
2315
+ }
2302
2316
  const def = mergeDefs(a._zod.def, {
2303
2317
  get shape() {
2304
2318
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -2308,7 +2322,7 @@ function merge(a, b) {
2308
2322
  get catchall() {
2309
2323
  return b._zod.def.catchall;
2310
2324
  },
2311
- checks: []
2325
+ checks: b._zod.def.checks ?? []
2312
2326
  });
2313
2327
  return clone(a, def);
2314
2328
  }
@@ -2391,10 +2405,20 @@ function aborted(x, startIndex = 0) {
2391
2405
  }
2392
2406
  return false;
2393
2407
  }
2408
+ function explicitlyAborted(x, startIndex = 0) {
2409
+ if (x.aborted === true)
2410
+ return true;
2411
+ for (let i = startIndex;i < x.issues.length; i++) {
2412
+ if (x.issues[i]?.continue === false) {
2413
+ return true;
2414
+ }
2415
+ }
2416
+ return false;
2417
+ }
2394
2418
  function prefixIssues(path, issues) {
2395
2419
  return issues.map((iss) => {
2396
- var _a;
2397
- (_a = iss).path ?? (_a.path = []);
2420
+ var _a2;
2421
+ (_a2 = iss).path ?? (_a2.path = []);
2398
2422
  iss.path.unshift(path);
2399
2423
  return iss;
2400
2424
  });
@@ -2403,17 +2427,14 @@ function unwrapMessage(message) {
2403
2427
  return typeof message === "string" ? message : message?.message;
2404
2428
  }
2405
2429
  function finalizeIssue(iss, ctx, config2) {
2406
- const full = { ...iss, path: iss.path ?? [] };
2407
- if (!iss.message) {
2408
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
2409
- full.message = message;
2410
- }
2411
- delete full.inst;
2412
- delete full.continue;
2413
- if (!ctx?.reportInput) {
2414
- delete full.input;
2430
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
2431
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
2432
+ rest.path ?? (rest.path = []);
2433
+ rest.message = message;
2434
+ if (ctx?.reportInput) {
2435
+ rest.input = _input;
2415
2436
  }
2416
- return full;
2437
+ return rest;
2417
2438
  }
2418
2439
  function getSizableOrigin(input) {
2419
2440
  if (input instanceof Set)
@@ -2511,7 +2532,7 @@ class Class {
2511
2532
  constructor(..._args) {}
2512
2533
  }
2513
2534
 
2514
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
2535
+ // node_modules/zod/v4/core/errors.js
2515
2536
  var initializer = (inst, def) => {
2516
2537
  inst.name = "$ZodError";
2517
2538
  Object.defineProperty(inst, "_zod", {
@@ -2545,30 +2566,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
2545
2566
  }
2546
2567
  function formatError(error, mapper = (issue2) => issue2.message) {
2547
2568
  const fieldErrors = { _errors: [] };
2548
- const processError = (error2) => {
2569
+ const processError = (error2, path = []) => {
2549
2570
  for (const issue2 of error2.issues) {
2550
2571
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2551
- issue2.errors.map((issues) => processError({ issues }));
2572
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
2552
2573
  } else if (issue2.code === "invalid_key") {
2553
- processError({ issues: issue2.issues });
2574
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2554
2575
  } else if (issue2.code === "invalid_element") {
2555
- processError({ issues: issue2.issues });
2556
- } else if (issue2.path.length === 0) {
2557
- fieldErrors._errors.push(mapper(issue2));
2576
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2558
2577
  } else {
2559
- let curr = fieldErrors;
2560
- let i = 0;
2561
- while (i < issue2.path.length) {
2562
- const el = issue2.path[i];
2563
- const terminal = i === issue2.path.length - 1;
2564
- if (!terminal) {
2565
- curr[el] = curr[el] || { _errors: [] };
2566
- } else {
2567
- curr[el] = curr[el] || { _errors: [] };
2568
- curr[el]._errors.push(mapper(issue2));
2578
+ const fullpath = [...path, ...issue2.path];
2579
+ if (fullpath.length === 0) {
2580
+ fieldErrors._errors.push(mapper(issue2));
2581
+ } else {
2582
+ let curr = fieldErrors;
2583
+ let i = 0;
2584
+ while (i < fullpath.length) {
2585
+ const el = fullpath[i];
2586
+ const terminal = i === fullpath.length - 1;
2587
+ if (!terminal) {
2588
+ curr[el] = curr[el] || { _errors: [] };
2589
+ } else {
2590
+ curr[el] = curr[el] || { _errors: [] };
2591
+ curr[el]._errors.push(mapper(issue2));
2592
+ }
2593
+ curr = curr[el];
2594
+ i++;
2569
2595
  }
2570
- curr = curr[el];
2571
- i++;
2572
2596
  }
2573
2597
  }
2574
2598
  }
@@ -2579,14 +2603,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
2579
2603
  function treeifyError(error, mapper = (issue2) => issue2.message) {
2580
2604
  const result = { errors: [] };
2581
2605
  const processError = (error2, path = []) => {
2582
- var _a, _b;
2606
+ var _a2, _b;
2583
2607
  for (const issue2 of error2.issues) {
2584
2608
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2585
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
2609
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
2586
2610
  } else if (issue2.code === "invalid_key") {
2587
- processError({ issues: issue2.issues }, issue2.path);
2611
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2588
2612
  } else if (issue2.code === "invalid_element") {
2589
- processError({ issues: issue2.issues }, issue2.path);
2613
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2590
2614
  } else {
2591
2615
  const fullpath = [...path, ...issue2.path];
2592
2616
  if (fullpath.length === 0) {
@@ -2600,7 +2624,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
2600
2624
  const terminal = i === fullpath.length - 1;
2601
2625
  if (typeof el === "string") {
2602
2626
  curr.properties ?? (curr.properties = {});
2603
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
2627
+ (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
2604
2628
  curr = curr.properties[el];
2605
2629
  } else {
2606
2630
  curr.items ?? (curr.items = []);
@@ -2648,9 +2672,9 @@ function prettifyError(error) {
2648
2672
  `);
2649
2673
  }
2650
2674
 
2651
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
2675
+ // node_modules/zod/v4/core/parse.js
2652
2676
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
2653
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
2677
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
2654
2678
  const result = schema._zod.run({ value, issues: [] }, ctx);
2655
2679
  if (result instanceof Promise) {
2656
2680
  throw new $ZodAsyncError;
@@ -2664,7 +2688,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
2664
2688
  };
2665
2689
  var parse = /* @__PURE__ */ _parse($ZodRealError);
2666
2690
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
2667
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
2691
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
2668
2692
  let result = schema._zod.run({ value, issues: [] }, ctx);
2669
2693
  if (result instanceof Promise)
2670
2694
  result = await result;
@@ -2689,7 +2713,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
2689
2713
  };
2690
2714
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
2691
2715
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
2692
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
2716
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
2693
2717
  let result = schema._zod.run({ value, issues: [] }, ctx);
2694
2718
  if (result instanceof Promise)
2695
2719
  result = await result;
@@ -2700,7 +2724,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
2700
2724
  };
2701
2725
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
2702
2726
  var _encode = (_Err) => (schema, value, _ctx) => {
2703
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2727
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2704
2728
  return _parse(_Err)(schema, value, ctx);
2705
2729
  };
2706
2730
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -2709,7 +2733,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
2709
2733
  };
2710
2734
  var decode = /* @__PURE__ */ _decode($ZodRealError);
2711
2735
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
2712
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2736
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2713
2737
  return _parseAsync(_Err)(schema, value, ctx);
2714
2738
  };
2715
2739
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -2718,7 +2742,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
2718
2742
  };
2719
2743
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
2720
2744
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
2721
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2745
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2722
2746
  return _safeParse(_Err)(schema, value, ctx);
2723
2747
  };
2724
2748
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -2727,7 +2751,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
2727
2751
  };
2728
2752
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
2729
2753
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
2730
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2754
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2731
2755
  return _safeParseAsync(_Err)(schema, value, ctx);
2732
2756
  };
2733
2757
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -2735,7 +2759,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
2735
2759
  return _safeParseAsync(_Err)(schema, value, _ctx);
2736
2760
  };
2737
2761
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
2738
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
2762
+ // node_modules/zod/v4/core/regexes.js
2739
2763
  var exports_regexes = {};
2740
2764
  __export(exports_regexes, {
2741
2765
  xid: () => xid,
@@ -2775,6 +2799,7 @@ __export(exports_regexes, {
2775
2799
  ipv4: () => ipv4,
2776
2800
  integer: () => integer,
2777
2801
  idnEmail: () => idnEmail,
2802
+ httpProtocol: () => httpProtocol,
2778
2803
  html5Email: () => html5Email,
2779
2804
  hostname: () => hostname,
2780
2805
  hex: () => hex,
@@ -2797,7 +2822,7 @@ __export(exports_regexes, {
2797
2822
  base64url: () => base64url,
2798
2823
  base64: () => base64
2799
2824
  });
2800
- var cuid = /^[cC][^\s-]{8,}$/;
2825
+ var cuid = /^[cC][0-9a-z]{6,}$/;
2801
2826
  var cuid2 = /^[0-9a-z]+$/;
2802
2827
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
2803
2828
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -2836,6 +2861,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
2836
2861
  var base64url = /^[A-Za-z0-9_-]*$/;
2837
2862
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
2838
2863
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
2864
+ var httpProtocol = /^https?$/;
2839
2865
  var e164 = /^\+[1-9]\d{6,14}$/;
2840
2866
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
2841
2867
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -2892,12 +2918,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
2892
2918
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
2893
2919
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2894
2920
 
2895
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
2921
+ // node_modules/zod/v4/core/checks.js
2896
2922
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2897
- var _a;
2923
+ var _a2;
2898
2924
  inst._zod ?? (inst._zod = {});
2899
2925
  inst._zod.def = def;
2900
- (_a = inst._zod).onattach ?? (_a.onattach = []);
2926
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
2901
2927
  });
2902
2928
  var numericOriginMap = {
2903
2929
  number: "number",
@@ -2963,8 +2989,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2963
2989
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2964
2990
  $ZodCheck.init(inst, def);
2965
2991
  inst._zod.onattach.push((inst2) => {
2966
- var _a;
2967
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
2992
+ var _a2;
2993
+ (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
2968
2994
  });
2969
2995
  inst._zod.check = (payload) => {
2970
2996
  if (typeof payload.value !== typeof def.value)
@@ -3097,9 +3123,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
3097
3123
  };
3098
3124
  });
3099
3125
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
3100
- var _a;
3126
+ var _a2;
3101
3127
  $ZodCheck.init(inst, def);
3102
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3128
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3103
3129
  const val = payload.value;
3104
3130
  return !nullish(val) && val.size !== undefined;
3105
3131
  });
@@ -3125,9 +3151,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
3125
3151
  };
3126
3152
  });
3127
3153
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
3128
- var _a;
3154
+ var _a2;
3129
3155
  $ZodCheck.init(inst, def);
3130
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3156
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3131
3157
  const val = payload.value;
3132
3158
  return !nullish(val) && val.size !== undefined;
3133
3159
  });
@@ -3153,9 +3179,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
3153
3179
  };
3154
3180
  });
3155
3181
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
3156
- var _a;
3182
+ var _a2;
3157
3183
  $ZodCheck.init(inst, def);
3158
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3184
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3159
3185
  const val = payload.value;
3160
3186
  return !nullish(val) && val.size !== undefined;
3161
3187
  });
@@ -3183,9 +3209,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
3183
3209
  };
3184
3210
  });
3185
3211
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
3186
- var _a;
3212
+ var _a2;
3187
3213
  $ZodCheck.init(inst, def);
3188
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3214
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3189
3215
  const val = payload.value;
3190
3216
  return !nullish(val) && val.length !== undefined;
3191
3217
  });
@@ -3212,9 +3238,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
3212
3238
  };
3213
3239
  });
3214
3240
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
3215
- var _a;
3241
+ var _a2;
3216
3242
  $ZodCheck.init(inst, def);
3217
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3243
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3218
3244
  const val = payload.value;
3219
3245
  return !nullish(val) && val.length !== undefined;
3220
3246
  });
@@ -3241,9 +3267,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
3241
3267
  };
3242
3268
  });
3243
3269
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
3244
- var _a;
3270
+ var _a2;
3245
3271
  $ZodCheck.init(inst, def);
3246
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
3272
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
3247
3273
  const val = payload.value;
3248
3274
  return !nullish(val) && val.length !== undefined;
3249
3275
  });
@@ -3272,7 +3298,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
3272
3298
  };
3273
3299
  });
3274
3300
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
3275
- var _a, _b;
3301
+ var _a2, _b;
3276
3302
  $ZodCheck.init(inst, def);
3277
3303
  inst._zod.onattach.push((inst2) => {
3278
3304
  const bag = inst2._zod.bag;
@@ -3283,7 +3309,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
3283
3309
  }
3284
3310
  });
3285
3311
  if (def.pattern)
3286
- (_a = inst._zod).check ?? (_a.check = (payload) => {
3312
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
3287
3313
  def.pattern.lastIndex = 0;
3288
3314
  if (def.pattern.test(payload.value))
3289
3315
  return;
@@ -3439,7 +3465,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3439
3465
  };
3440
3466
  });
3441
3467
 
3442
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
3468
+ // node_modules/zod/v4/core/doc.js
3443
3469
  class Doc {
3444
3470
  constructor(args = []) {
3445
3471
  this.content = [];
@@ -3477,16 +3503,16 @@ class Doc {
3477
3503
  }
3478
3504
  }
3479
3505
 
3480
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
3506
+ // node_modules/zod/v4/core/versions.js
3481
3507
  var version = {
3482
3508
  major: 4,
3483
- minor: 3,
3484
- patch: 6
3509
+ minor: 4,
3510
+ patch: 1
3485
3511
  };
3486
3512
 
3487
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
3513
+ // node_modules/zod/v4/core/schemas.js
3488
3514
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3489
- var _a;
3515
+ var _a2;
3490
3516
  inst ?? (inst = {});
3491
3517
  inst._zod.def = def;
3492
3518
  inst._zod.bag = inst._zod.bag || {};
@@ -3501,7 +3527,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3501
3527
  }
3502
3528
  }
3503
3529
  if (checks.length === 0) {
3504
- (_a = inst._zod).deferred ?? (_a.deferred = []);
3530
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3505
3531
  inst._zod.deferred?.push(() => {
3506
3532
  inst._zod.run = inst._zod.parse;
3507
3533
  });
@@ -3511,6 +3537,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3511
3537
  let asyncResult;
3512
3538
  for (const ch of checks2) {
3513
3539
  if (ch._zod.def.when) {
3540
+ if (explicitlyAborted(payload))
3541
+ continue;
3514
3542
  const shouldRun = ch._zod.def.when(payload);
3515
3543
  if (!shouldRun)
3516
3544
  continue;
@@ -3650,6 +3678,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3650
3678
  inst._zod.check = (payload) => {
3651
3679
  try {
3652
3680
  const trimmed = payload.value.trim();
3681
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
3682
+ if (!/^https?:\/\//i.test(trimmed)) {
3683
+ payload.issues.push({
3684
+ code: "invalid_format",
3685
+ format: "url",
3686
+ note: "Invalid URL format",
3687
+ input: payload.value,
3688
+ inst,
3689
+ continue: !def.abort
3690
+ });
3691
+ return;
3692
+ }
3693
+ }
3653
3694
  const url = new URL(trimmed);
3654
3695
  if (def.hostname) {
3655
3696
  def.hostname.lastIndex = 0;
@@ -3803,6 +3844,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
3803
3844
  function isValidBase64(data) {
3804
3845
  if (data === "")
3805
3846
  return true;
3847
+ if (/\s/.test(data))
3848
+ return false;
3806
3849
  if (data.length % 4 !== 0)
3807
3850
  return false;
3808
3851
  try {
@@ -3992,8 +4035,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
3992
4035
  $ZodType.init(inst, def);
3993
4036
  inst._zod.pattern = _undefined;
3994
4037
  inst._zod.values = new Set([undefined]);
3995
- inst._zod.optin = "optional";
3996
- inst._zod.optout = "optional";
3997
4038
  inst._zod.parse = (payload, _ctx) => {
3998
4039
  const input = payload.value;
3999
4040
  if (typeof input === "undefined")
@@ -4121,15 +4162,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
4121
4162
  return payload;
4122
4163
  };
4123
4164
  });
4124
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
4165
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
4166
+ const isPresent = key in input;
4125
4167
  if (result.issues.length) {
4126
- if (isOptionalOut && !(key in input)) {
4168
+ if (isOptionalIn && isOptionalOut && !isPresent) {
4127
4169
  return;
4128
4170
  }
4129
4171
  final.issues.push(...prefixIssues(key, result.issues));
4130
4172
  }
4173
+ if (!isPresent && !isOptionalIn) {
4174
+ if (!result.issues.length) {
4175
+ final.issues.push({
4176
+ code: "invalid_type",
4177
+ expected: "nonoptional",
4178
+ input: undefined,
4179
+ path: [key]
4180
+ });
4181
+ }
4182
+ return;
4183
+ }
4131
4184
  if (result.value === undefined) {
4132
- if (key in input) {
4185
+ if (isPresent) {
4133
4186
  final.value[key] = undefined;
4134
4187
  }
4135
4188
  } else {
@@ -4157,8 +4210,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
4157
4210
  const keySet = def.keySet;
4158
4211
  const _catchall = def.catchall._zod;
4159
4212
  const t = _catchall.def.type;
4213
+ const isOptionalIn = _catchall.optin === "optional";
4160
4214
  const isOptionalOut = _catchall.optout === "optional";
4161
4215
  for (const key in input) {
4216
+ if (key === "__proto__")
4217
+ continue;
4162
4218
  if (keySet.has(key))
4163
4219
  continue;
4164
4220
  if (t === "never") {
@@ -4167,9 +4223,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
4167
4223
  }
4168
4224
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
4169
4225
  if (r instanceof Promise) {
4170
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
4226
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
4171
4227
  } else {
4172
- handlePropertyResult(r, payload, key, input, isOptionalOut);
4228
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
4173
4229
  }
4174
4230
  }
4175
4231
  if (unrecognized.length) {
@@ -4235,12 +4291,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4235
4291
  const shape = value.shape;
4236
4292
  for (const key of value.keys) {
4237
4293
  const el = shape[key];
4294
+ const isOptionalIn = el._zod.optin === "optional";
4238
4295
  const isOptionalOut = el._zod.optout === "optional";
4239
4296
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
4240
4297
  if (r instanceof Promise) {
4241
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
4298
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
4242
4299
  } else {
4243
- handlePropertyResult(r, payload, key, input, isOptionalOut);
4300
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
4244
4301
  }
4245
4302
  }
4246
4303
  if (!catchall) {
@@ -4271,9 +4328,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4271
4328
  const id = ids[key];
4272
4329
  const k = esc(key);
4273
4330
  const schema = shape[key];
4331
+ const isOptionalIn = schema?._zod?.optin === "optional";
4274
4332
  const isOptionalOut = schema?._zod?.optout === "optional";
4275
4333
  doc.write(`const ${id} = ${parseStr(key)};`);
4276
- if (isOptionalOut) {
4334
+ if (isOptionalIn && isOptionalOut) {
4277
4335
  doc.write(`
4278
4336
  if (${id}.issues.length) {
4279
4337
  if (${k} in input) {
@@ -4292,6 +4350,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4292
4350
  newResult[${k}] = ${id}.value;
4293
4351
  }
4294
4352
 
4353
+ `);
4354
+ } else if (!isOptionalIn) {
4355
+ doc.write(`
4356
+ const ${id}_present = ${k} in input;
4357
+ if (${id}.issues.length) {
4358
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
4359
+ ...iss,
4360
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
4361
+ })));
4362
+ }
4363
+ if (!${id}_present && !${id}.issues.length) {
4364
+ payload.issues.push({
4365
+ code: "invalid_type",
4366
+ expected: "nonoptional",
4367
+ input: undefined,
4368
+ path: [${k}]
4369
+ });
4370
+ }
4371
+
4372
+ if (${id}_present) {
4373
+ if (${id}.value === undefined) {
4374
+ newResult[${k}] = undefined;
4375
+ } else {
4376
+ newResult[${k}] = ${id}.value;
4377
+ }
4378
+ }
4379
+
4295
4380
  `);
4296
4381
  } else {
4297
4382
  doc.write(`
@@ -4385,10 +4470,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
4385
4470
  }
4386
4471
  return;
4387
4472
  });
4388
- const single = def.options.length === 1;
4389
- const first = def.options[0]._zod.run;
4473
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
4390
4474
  inst._zod.parse = (payload, ctx) => {
4391
- if (single) {
4475
+ if (first) {
4392
4476
  return first(payload, ctx);
4393
4477
  }
4394
4478
  let async = false;
@@ -4441,10 +4525,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
4441
4525
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
4442
4526
  $ZodUnion.init(inst, def);
4443
4527
  def.inclusive = false;
4444
- const single = def.options.length === 1;
4445
- const first = def.options[0]._zod.run;
4528
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
4446
4529
  inst._zod.parse = (payload, ctx) => {
4447
- if (single) {
4530
+ if (first) {
4448
4531
  return first(payload, ctx);
4449
4532
  }
4450
4533
  let async = false;
@@ -4519,7 +4602,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4519
4602
  if (opt) {
4520
4603
  return opt._zod.run(payload, ctx);
4521
4604
  }
4522
- if (def.unionFallback) {
4605
+ if (def.unionFallback || ctx.direction === "backward") {
4523
4606
  return _super(payload, ctx);
4524
4607
  }
4525
4608
  payload.issues.push({
@@ -4527,6 +4610,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4527
4610
  errors: [],
4528
4611
  note: "No matching discriminator",
4529
4612
  discriminator: def.discriminator,
4613
+ options: Array.from(disc.value.keys()),
4530
4614
  input,
4531
4615
  path: [def.discriminator],
4532
4616
  inst
@@ -4648,64 +4732,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
4648
4732
  }
4649
4733
  payload.value = [];
4650
4734
  const proms = [];
4651
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
4652
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
4735
+ const optinStart = getTupleOptStart(items, "optin");
4736
+ const optoutStart = getTupleOptStart(items, "optout");
4653
4737
  if (!def.rest) {
4654
- const tooBig = input.length > items.length;
4655
- const tooSmall = input.length < optStart - 1;
4656
- if (tooBig || tooSmall) {
4738
+ if (input.length < optinStart) {
4657
4739
  payload.issues.push({
4658
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
4740
+ code: "too_small",
4741
+ minimum: optinStart,
4742
+ inclusive: true,
4659
4743
  input,
4660
4744
  inst,
4661
4745
  origin: "array"
4662
4746
  });
4663
4747
  return payload;
4664
4748
  }
4665
- }
4666
- let i = -1;
4667
- for (const item of items) {
4668
- i++;
4669
- if (i >= input.length) {
4670
- if (i >= optStart)
4671
- continue;
4749
+ if (input.length > items.length) {
4750
+ payload.issues.push({
4751
+ code: "too_big",
4752
+ maximum: items.length,
4753
+ inclusive: true,
4754
+ input,
4755
+ inst,
4756
+ origin: "array"
4757
+ });
4672
4758
  }
4673
- const result = item._zod.run({
4674
- value: input[i],
4675
- issues: []
4676
- }, ctx);
4677
- if (result instanceof Promise) {
4678
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
4759
+ }
4760
+ const itemResults = new Array(items.length);
4761
+ for (let i = 0;i < items.length; i++) {
4762
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
4763
+ if (r instanceof Promise) {
4764
+ proms.push(r.then((rr) => {
4765
+ itemResults[i] = rr;
4766
+ }));
4679
4767
  } else {
4680
- handleTupleResult(result, payload, i);
4768
+ itemResults[i] = r;
4681
4769
  }
4682
4770
  }
4683
4771
  if (def.rest) {
4772
+ let i = items.length - 1;
4684
4773
  const rest = input.slice(items.length);
4685
4774
  for (const el of rest) {
4686
4775
  i++;
4687
- const result = def.rest._zod.run({
4688
- value: el,
4689
- issues: []
4690
- }, ctx);
4776
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
4691
4777
  if (result instanceof Promise) {
4692
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
4778
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
4693
4779
  } else {
4694
4780
  handleTupleResult(result, payload, i);
4695
4781
  }
4696
4782
  }
4697
4783
  }
4698
- if (proms.length)
4699
- return Promise.all(proms).then(() => payload);
4700
- return payload;
4784
+ if (proms.length) {
4785
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
4786
+ }
4787
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
4701
4788
  };
4702
4789
  });
4790
+ function getTupleOptStart(items, key) {
4791
+ for (let i = items.length - 1;i >= 0; i--) {
4792
+ if (items[i]._zod[key] !== "optional")
4793
+ return i + 1;
4794
+ }
4795
+ return 0;
4796
+ }
4703
4797
  function handleTupleResult(result, final, index) {
4704
4798
  if (result.issues.length) {
4705
4799
  final.issues.push(...prefixIssues(index, result.issues));
4706
4800
  }
4707
4801
  final.value[index] = result.value;
4708
4802
  }
4803
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
4804
+ for (let i = 0;i < items.length; i++) {
4805
+ const r = itemResults[i];
4806
+ const isPresent = i < input.length;
4807
+ if (r.issues.length) {
4808
+ if (!isPresent && i >= optoutStart) {
4809
+ final.value.length = i;
4810
+ break;
4811
+ }
4812
+ final.issues.push(...prefixIssues(i, r.issues));
4813
+ }
4814
+ final.value[i] = r.value;
4815
+ }
4816
+ for (let i = final.value.length - 1;i >= input.length; i--) {
4817
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
4818
+ final.value.length = i;
4819
+ } else {
4820
+ break;
4821
+ }
4822
+ }
4823
+ return final;
4824
+ }
4709
4825
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4710
4826
  $ZodType.init(inst, def);
4711
4827
  inst._zod.parse = (payload, ctx) => {
@@ -4727,19 +4843,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4727
4843
  for (const key of values) {
4728
4844
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
4729
4845
  recordKeys.add(typeof key === "number" ? key.toString() : key);
4846
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
4847
+ if (keyResult instanceof Promise) {
4848
+ throw new Error("Async schemas not supported in object keys currently");
4849
+ }
4850
+ if (keyResult.issues.length) {
4851
+ payload.issues.push({
4852
+ code: "invalid_key",
4853
+ origin: "record",
4854
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
4855
+ input: key,
4856
+ path: [key],
4857
+ inst
4858
+ });
4859
+ continue;
4860
+ }
4861
+ const outKey = keyResult.value;
4730
4862
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
4731
4863
  if (result instanceof Promise) {
4732
4864
  proms.push(result.then((result2) => {
4733
4865
  if (result2.issues.length) {
4734
4866
  payload.issues.push(...prefixIssues(key, result2.issues));
4735
4867
  }
4736
- payload.value[key] = result2.value;
4868
+ payload.value[outKey] = result2.value;
4737
4869
  }));
4738
4870
  } else {
4739
4871
  if (result.issues.length) {
4740
4872
  payload.issues.push(...prefixIssues(key, result.issues));
4741
4873
  }
4742
- payload.value[key] = result.value;
4874
+ payload.value[outKey] = result.value;
4743
4875
  }
4744
4876
  }
4745
4877
  }
@@ -4763,6 +4895,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4763
4895
  for (const key of Reflect.ownKeys(input)) {
4764
4896
  if (key === "__proto__")
4765
4897
  continue;
4898
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
4899
+ continue;
4766
4900
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
4767
4901
  if (keyResult instanceof Promise) {
4768
4902
  throw new Error("Async schemas not supported in object keys currently");
@@ -5406,7 +5540,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
5406
5540
  });
5407
5541
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
5408
5542
  $ZodType.init(inst, def);
5409
- defineLazy(inst._zod, "innerType", () => def.getter());
5543
+ defineLazy(inst._zod, "innerType", () => {
5544
+ const d = def;
5545
+ if (!d._cachedInner)
5546
+ d._cachedInner = def.getter();
5547
+ return d._cachedInner;
5548
+ });
5410
5549
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
5411
5550
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
5412
5551
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
@@ -5446,7 +5585,7 @@ function handleRefineResult(result, payload, input, inst) {
5446
5585
  payload.issues.push(issue(_iss));
5447
5586
  }
5448
5587
  }
5449
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
5588
+ // node_modules/zod/v4/locales/index.js
5450
5589
  var exports_locales = {};
5451
5590
  __export(exports_locales, {
5452
5591
  zhTW: () => zh_TW_default,
@@ -5463,6 +5602,7 @@ __export(exports_locales, {
5463
5602
  sv: () => sv_default,
5464
5603
  sl: () => sl_default,
5465
5604
  ru: () => ru_default,
5605
+ ro: () => ro_default,
5466
5606
  pt: () => pt_default,
5467
5607
  ps: () => ps_default,
5468
5608
  pl: () => pl_default,
@@ -5482,6 +5622,7 @@ __export(exports_locales, {
5482
5622
  id: () => id_default,
5483
5623
  hy: () => hy_default,
5484
5624
  hu: () => hu_default,
5625
+ hr: () => hr_default,
5485
5626
  he: () => he_default,
5486
5627
  frCA: () => fr_CA_default,
5487
5628
  fr: () => fr_default,
@@ -5490,6 +5631,7 @@ __export(exports_locales, {
5490
5631
  es: () => es_default,
5491
5632
  eo: () => eo_default,
5492
5633
  en: () => en_default,
5634
+ el: () => el_default,
5493
5635
  de: () => de_default,
5494
5636
  da: () => da_default,
5495
5637
  cs: () => cs_default,
@@ -5500,7 +5642,7 @@ __export(exports_locales, {
5500
5642
  ar: () => ar_default
5501
5643
  });
5502
5644
 
5503
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
5645
+ // node_modules/zod/v4/locales/ar.js
5504
5646
  var error = () => {
5505
5647
  const Sizable = {
5506
5648
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -5606,7 +5748,7 @@ function ar_default() {
5606
5748
  localeError: error()
5607
5749
  };
5608
5750
  }
5609
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
5751
+ // node_modules/zod/v4/locales/az.js
5610
5752
  var error2 = () => {
5611
5753
  const Sizable = {
5612
5754
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -5711,7 +5853,7 @@ function az_default() {
5711
5853
  localeError: error2()
5712
5854
  };
5713
5855
  }
5714
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
5856
+ // node_modules/zod/v4/locales/be.js
5715
5857
  function getBelarusianPlural(count, one, few, many) {
5716
5858
  const absCount = Math.abs(count);
5717
5859
  const lastDigit = absCount % 10;
@@ -5867,7 +6009,7 @@ function be_default() {
5867
6009
  localeError: error3()
5868
6010
  };
5869
6011
  }
5870
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
6012
+ // node_modules/zod/v4/locales/bg.js
5871
6013
  var error4 = () => {
5872
6014
  const Sizable = {
5873
6015
  string: { unit: "символа", verb: "да съдържа" },
@@ -5987,7 +6129,7 @@ function bg_default() {
5987
6129
  localeError: error4()
5988
6130
  };
5989
6131
  }
5990
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
6132
+ // node_modules/zod/v4/locales/ca.js
5991
6133
  var error5 = () => {
5992
6134
  const Sizable = {
5993
6135
  string: { unit: "caràcters", verb: "contenir" },
@@ -6094,7 +6236,7 @@ function ca_default() {
6094
6236
  localeError: error5()
6095
6237
  };
6096
6238
  }
6097
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
6239
+ // node_modules/zod/v4/locales/cs.js
6098
6240
  var error6 = () => {
6099
6241
  const Sizable = {
6100
6242
  string: { unit: "znaků", verb: "mít" },
@@ -6205,7 +6347,7 @@ function cs_default() {
6205
6347
  localeError: error6()
6206
6348
  };
6207
6349
  }
6208
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
6350
+ // node_modules/zod/v4/locales/da.js
6209
6351
  var error7 = () => {
6210
6352
  const Sizable = {
6211
6353
  string: { unit: "tegn", verb: "havde" },
@@ -6320,7 +6462,7 @@ function da_default() {
6320
6462
  localeError: error7()
6321
6463
  };
6322
6464
  }
6323
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
6465
+ // node_modules/zod/v4/locales/de.js
6324
6466
  var error8 = () => {
6325
6467
  const Sizable = {
6326
6468
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -6428,8 +6570,117 @@ function de_default() {
6428
6570
  localeError: error8()
6429
6571
  };
6430
6572
  }
6431
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
6573
+ // node_modules/zod/v4/locales/el.js
6432
6574
  var error9 = () => {
6575
+ const Sizable = {
6576
+ string: { unit: "χαρακτήρες", verb: "να έχει" },
6577
+ file: { unit: "bytes", verb: "να έχει" },
6578
+ array: { unit: "στοιχεία", verb: "να έχει" },
6579
+ set: { unit: "στοιχεία", verb: "να έχει" },
6580
+ map: { unit: "καταχωρήσεις", verb: "να έχει" }
6581
+ };
6582
+ function getSizing(origin) {
6583
+ return Sizable[origin] ?? null;
6584
+ }
6585
+ const FormatDictionary = {
6586
+ regex: "είσοδος",
6587
+ email: "διεύθυνση email",
6588
+ url: "URL",
6589
+ emoji: "emoji",
6590
+ uuid: "UUID",
6591
+ uuidv4: "UUIDv4",
6592
+ uuidv6: "UUIDv6",
6593
+ nanoid: "nanoid",
6594
+ guid: "GUID",
6595
+ cuid: "cuid",
6596
+ cuid2: "cuid2",
6597
+ ulid: "ULID",
6598
+ xid: "XID",
6599
+ ksuid: "KSUID",
6600
+ datetime: "ISO ημερομηνία και ώρα",
6601
+ date: "ISO ημερομηνία",
6602
+ time: "ISO ώρα",
6603
+ duration: "ISO διάρκεια",
6604
+ ipv4: "διεύθυνση IPv4",
6605
+ ipv6: "διεύθυνση IPv6",
6606
+ mac: "διεύθυνση MAC",
6607
+ cidrv4: "εύρος IPv4",
6608
+ cidrv6: "εύρος IPv6",
6609
+ base64: "συμβολοσειρά κωδικοποιημένη σε base64",
6610
+ base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
6611
+ json_string: "συμβολοσειρά JSON",
6612
+ e164: "αριθμός E.164",
6613
+ jwt: "JWT",
6614
+ template_literal: "είσοδος"
6615
+ };
6616
+ const TypeDictionary = {
6617
+ nan: "NaN"
6618
+ };
6619
+ return (issue2) => {
6620
+ switch (issue2.code) {
6621
+ case "invalid_type": {
6622
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6623
+ const receivedType = parsedType(issue2.input);
6624
+ const received = TypeDictionary[receivedType] ?? receivedType;
6625
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
6626
+ return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
6627
+ }
6628
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
6629
+ }
6630
+ case "invalid_value":
6631
+ if (issue2.values.length === 1)
6632
+ return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
6633
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
6634
+ case "too_big": {
6635
+ const adj = issue2.inclusive ? "<=" : "<";
6636
+ const sizing = getSizing(issue2.origin);
6637
+ if (sizing)
6638
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
6639
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
6640
+ }
6641
+ case "too_small": {
6642
+ const adj = issue2.inclusive ? ">=" : ">";
6643
+ const sizing = getSizing(issue2.origin);
6644
+ if (sizing) {
6645
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6646
+ }
6647
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
6648
+ }
6649
+ case "invalid_format": {
6650
+ const _issue = issue2;
6651
+ if (_issue.format === "starts_with") {
6652
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
6653
+ }
6654
+ if (_issue.format === "ends_with")
6655
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
6656
+ if (_issue.format === "includes")
6657
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
6658
+ if (_issue.format === "regex")
6659
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
6660
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6661
+ }
6662
+ case "not_multiple_of":
6663
+ return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
6664
+ case "unrecognized_keys":
6665
+ return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
6666
+ case "invalid_key":
6667
+ return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
6668
+ case "invalid_union":
6669
+ return "Μη έγκυρη είσοδος";
6670
+ case "invalid_element":
6671
+ return `Μη έγκυρη τιμή στο ${issue2.origin}`;
6672
+ default:
6673
+ return `Μη έγκυρη είσοδος`;
6674
+ }
6675
+ };
6676
+ };
6677
+ function el_default() {
6678
+ return {
6679
+ localeError: error9()
6680
+ };
6681
+ }
6682
+ // node_modules/zod/v4/locales/en.js
6683
+ var error10 = () => {
6433
6684
  const Sizable = {
6434
6685
  string: { unit: "characters", verb: "to have" },
6435
6686
  file: { unit: "bytes", verb: "to have" },
@@ -6521,6 +6772,10 @@ var error9 = () => {
6521
6772
  case "invalid_key":
6522
6773
  return `Invalid key in ${issue2.origin}`;
6523
6774
  case "invalid_union":
6775
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
6776
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
6777
+ return `Invalid discriminator value. Expected ${opts}`;
6778
+ }
6524
6779
  return "Invalid input";
6525
6780
  case "invalid_element":
6526
6781
  return `Invalid value in ${issue2.origin}`;
@@ -6531,11 +6786,11 @@ var error9 = () => {
6531
6786
  };
6532
6787
  function en_default() {
6533
6788
  return {
6534
- localeError: error9()
6789
+ localeError: error10()
6535
6790
  };
6536
6791
  }
6537
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
6538
- var error10 = () => {
6792
+ // node_modules/zod/v4/locales/eo.js
6793
+ var error11 = () => {
6539
6794
  const Sizable = {
6540
6795
  string: { unit: "karaktrojn", verb: "havi" },
6541
6796
  file: { unit: "bajtojn", verb: "havi" },
@@ -6640,11 +6895,11 @@ var error10 = () => {
6640
6895
  };
6641
6896
  function eo_default() {
6642
6897
  return {
6643
- localeError: error10()
6898
+ localeError: error11()
6644
6899
  };
6645
6900
  }
6646
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
6647
- var error11 = () => {
6901
+ // node_modules/zod/v4/locales/es.js
6902
+ var error12 = () => {
6648
6903
  const Sizable = {
6649
6904
  string: { unit: "caracteres", verb: "tener" },
6650
6905
  file: { unit: "bytes", verb: "tener" },
@@ -6772,11 +7027,11 @@ var error11 = () => {
6772
7027
  };
6773
7028
  function es_default() {
6774
7029
  return {
6775
- localeError: error11()
7030
+ localeError: error12()
6776
7031
  };
6777
7032
  }
6778
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
6779
- var error12 = () => {
7033
+ // node_modules/zod/v4/locales/fa.js
7034
+ var error13 = () => {
6780
7035
  const Sizable = {
6781
7036
  string: { unit: "کاراکتر", verb: "داشته باشد" },
6782
7037
  file: { unit: "بایت", verb: "داشته باشد" },
@@ -6886,11 +7141,11 @@ var error12 = () => {
6886
7141
  };
6887
7142
  function fa_default() {
6888
7143
  return {
6889
- localeError: error12()
7144
+ localeError: error13()
6890
7145
  };
6891
7146
  }
6892
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
6893
- var error13 = () => {
7147
+ // node_modules/zod/v4/locales/fi.js
7148
+ var error14 = () => {
6894
7149
  const Sizable = {
6895
7150
  string: { unit: "merkkiä", subject: "merkkijonon" },
6896
7151
  file: { unit: "tavua", subject: "tiedoston" },
@@ -6998,11 +7253,11 @@ var error13 = () => {
6998
7253
  };
6999
7254
  function fi_default() {
7000
7255
  return {
7001
- localeError: error13()
7256
+ localeError: error14()
7002
7257
  };
7003
7258
  }
7004
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
7005
- var error14 = () => {
7259
+ // node_modules/zod/v4/locales/fr.js
7260
+ var error15 = () => {
7006
7261
  const Sizable = {
7007
7262
  string: { unit: "caractères", verb: "avoir" },
7008
7263
  file: { unit: "octets", verb: "avoir" },
@@ -7043,9 +7298,27 @@ var error14 = () => {
7043
7298
  template_literal: "entrée"
7044
7299
  };
7045
7300
  const TypeDictionary = {
7046
- nan: "NaN",
7301
+ string: "chaîne",
7047
7302
  number: "nombre",
7048
- array: "tableau"
7303
+ int: "entier",
7304
+ boolean: "booléen",
7305
+ bigint: "grand entier",
7306
+ symbol: "symbole",
7307
+ undefined: "indéfini",
7308
+ null: "null",
7309
+ never: "jamais",
7310
+ void: "vide",
7311
+ date: "date",
7312
+ array: "tableau",
7313
+ object: "objet",
7314
+ tuple: "tuple",
7315
+ record: "enregistrement",
7316
+ map: "carte",
7317
+ set: "ensemble",
7318
+ file: "fichier",
7319
+ nonoptional: "non-optionnel",
7320
+ nan: "NaN",
7321
+ function: "fonction"
7049
7322
  };
7050
7323
  return (issue2) => {
7051
7324
  switch (issue2.code) {
@@ -7066,16 +7339,15 @@ var error14 = () => {
7066
7339
  const adj = issue2.inclusive ? "<=" : "<";
7067
7340
  const sizing = getSizing(issue2.origin);
7068
7341
  if (sizing)
7069
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
7070
- return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
7342
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
7343
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
7071
7344
  }
7072
7345
  case "too_small": {
7073
7346
  const adj = issue2.inclusive ? ">=" : ">";
7074
7347
  const sizing = getSizing(issue2.origin);
7075
- if (sizing) {
7076
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
7077
- }
7078
- return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
7348
+ if (sizing)
7349
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
7350
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
7079
7351
  }
7080
7352
  case "invalid_format": {
7081
7353
  const _issue = issue2;
@@ -7106,11 +7378,11 @@ var error14 = () => {
7106
7378
  };
7107
7379
  function fr_default() {
7108
7380
  return {
7109
- localeError: error14()
7381
+ localeError: error15()
7110
7382
  };
7111
7383
  }
7112
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
7113
- var error15 = () => {
7384
+ // node_modules/zod/v4/locales/fr-CA.js
7385
+ var error16 = () => {
7114
7386
  const Sizable = {
7115
7387
  string: { unit: "caractères", verb: "avoir" },
7116
7388
  file: { unit: "octets", verb: "avoir" },
@@ -7213,11 +7485,11 @@ var error15 = () => {
7213
7485
  };
7214
7486
  function fr_CA_default() {
7215
7487
  return {
7216
- localeError: error15()
7488
+ localeError: error16()
7217
7489
  };
7218
7490
  }
7219
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
7220
- var error16 = () => {
7491
+ // node_modules/zod/v4/locales/he.js
7492
+ var error17 = () => {
7221
7493
  const TypeNames = {
7222
7494
  string: { label: "מחרוזת", gender: "f" },
7223
7495
  number: { label: "מספר", gender: "m" },
@@ -7406,23 +7678,23 @@ var error16 = () => {
7406
7678
  };
7407
7679
  function he_default() {
7408
7680
  return {
7409
- localeError: error16()
7681
+ localeError: error17()
7410
7682
  };
7411
7683
  }
7412
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
7413
- var error17 = () => {
7684
+ // node_modules/zod/v4/locales/hr.js
7685
+ var error18 = () => {
7414
7686
  const Sizable = {
7415
- string: { unit: "karakter", verb: "legyen" },
7416
- file: { unit: "byte", verb: "legyen" },
7417
- array: { unit: "elem", verb: "legyen" },
7418
- set: { unit: "elem", verb: "legyen" }
7687
+ string: { unit: "znakova", verb: "imati" },
7688
+ file: { unit: "bajtova", verb: "imati" },
7689
+ array: { unit: "stavki", verb: "imati" },
7690
+ set: { unit: "stavki", verb: "imati" }
7419
7691
  };
7420
7692
  function getSizing(origin) {
7421
7693
  return Sizable[origin] ?? null;
7422
7694
  }
7423
7695
  const FormatDictionary = {
7424
- regex: "bemenet",
7425
- email: "email cím",
7696
+ regex: "unos",
7697
+ email: "email adresa",
7426
7698
  url: "URL",
7427
7699
  emoji: "emoji",
7428
7700
  uuid: "UUID",
@@ -7435,25 +7707,37 @@ var error17 = () => {
7435
7707
  ulid: "ULID",
7436
7708
  xid: "XID",
7437
7709
  ksuid: "KSUID",
7438
- datetime: "ISO időbélyeg",
7439
- date: "ISO dátum",
7440
- time: "ISO idő",
7441
- duration: "ISO időintervallum",
7442
- ipv4: "IPv4 cím",
7443
- ipv6: "IPv6 cím",
7444
- cidrv4: "IPv4 tartomány",
7445
- cidrv6: "IPv6 tartomány",
7446
- base64: "base64-kódolt string",
7447
- base64url: "base64url-kódolt string",
7448
- json_string: "JSON string",
7449
- e164: "E.164 szám",
7710
+ datetime: "ISO datum i vrijeme",
7711
+ date: "ISO datum",
7712
+ time: "ISO vrijeme",
7713
+ duration: "ISO trajanje",
7714
+ ipv4: "IPv4 adresa",
7715
+ ipv6: "IPv6 adresa",
7716
+ cidrv4: "IPv4 raspon",
7717
+ cidrv6: "IPv6 raspon",
7718
+ base64: "base64 kodirani tekst",
7719
+ base64url: "base64url kodirani tekst",
7720
+ json_string: "JSON tekst",
7721
+ e164: "E.164 broj",
7450
7722
  jwt: "JWT",
7451
- template_literal: "bemenet"
7723
+ template_literal: "unos"
7452
7724
  };
7453
7725
  const TypeDictionary = {
7454
7726
  nan: "NaN",
7455
- number: "szám",
7456
- array: "tömb"
7727
+ string: "tekst",
7728
+ number: "broj",
7729
+ boolean: "boolean",
7730
+ array: "niz",
7731
+ object: "objekt",
7732
+ set: "skup",
7733
+ file: "datoteka",
7734
+ date: "datum",
7735
+ bigint: "bigint",
7736
+ symbol: "simbol",
7737
+ undefined: "undefined",
7738
+ null: "null",
7739
+ function: "funkcija",
7740
+ map: "mapa"
7457
7741
  };
7458
7742
  return (issue2) => {
7459
7743
  switch (issue2.code) {
@@ -7462,20 +7746,130 @@ var error17 = () => {
7462
7746
  const receivedType = parsedType(issue2.input);
7463
7747
  const received = TypeDictionary[receivedType] ?? receivedType;
7464
7748
  if (/^[A-Z]/.test(issue2.expected)) {
7465
- return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
7749
+ return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
7466
7750
  }
7467
- return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
7751
+ return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
7468
7752
  }
7469
7753
  case "invalid_value":
7470
7754
  if (issue2.values.length === 1)
7471
- return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
7472
- return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
7755
+ return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
7756
+ return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
7473
7757
  case "too_big": {
7474
7758
  const adj = issue2.inclusive ? "<=" : "<";
7475
7759
  const sizing = getSizing(issue2.origin);
7760
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7476
7761
  if (sizing)
7477
- return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
7478
- return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;
7762
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
7763
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
7764
+ }
7765
+ case "too_small": {
7766
+ const adj = issue2.inclusive ? ">=" : ">";
7767
+ const sizing = getSizing(issue2.origin);
7768
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7769
+ if (sizing) {
7770
+ return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
7771
+ }
7772
+ return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
7773
+ }
7774
+ case "invalid_format": {
7775
+ const _issue = issue2;
7776
+ if (_issue.format === "starts_with")
7777
+ return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
7778
+ if (_issue.format === "ends_with")
7779
+ return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
7780
+ if (_issue.format === "includes")
7781
+ return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
7782
+ if (_issue.format === "regex")
7783
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
7784
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
7785
+ }
7786
+ case "not_multiple_of":
7787
+ return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
7788
+ case "unrecognized_keys":
7789
+ return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
7790
+ case "invalid_key":
7791
+ return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
7792
+ case "invalid_union":
7793
+ return "Neispravan unos";
7794
+ case "invalid_element":
7795
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
7796
+ default:
7797
+ return `Neispravan unos`;
7798
+ }
7799
+ };
7800
+ };
7801
+ function hr_default() {
7802
+ return {
7803
+ localeError: error18()
7804
+ };
7805
+ }
7806
+ // node_modules/zod/v4/locales/hu.js
7807
+ var error19 = () => {
7808
+ const Sizable = {
7809
+ string: { unit: "karakter", verb: "legyen" },
7810
+ file: { unit: "byte", verb: "legyen" },
7811
+ array: { unit: "elem", verb: "legyen" },
7812
+ set: { unit: "elem", verb: "legyen" }
7813
+ };
7814
+ function getSizing(origin) {
7815
+ return Sizable[origin] ?? null;
7816
+ }
7817
+ const FormatDictionary = {
7818
+ regex: "bemenet",
7819
+ email: "email cím",
7820
+ url: "URL",
7821
+ emoji: "emoji",
7822
+ uuid: "UUID",
7823
+ uuidv4: "UUIDv4",
7824
+ uuidv6: "UUIDv6",
7825
+ nanoid: "nanoid",
7826
+ guid: "GUID",
7827
+ cuid: "cuid",
7828
+ cuid2: "cuid2",
7829
+ ulid: "ULID",
7830
+ xid: "XID",
7831
+ ksuid: "KSUID",
7832
+ datetime: "ISO időbélyeg",
7833
+ date: "ISO dátum",
7834
+ time: "ISO idő",
7835
+ duration: "ISO időintervallum",
7836
+ ipv4: "IPv4 cím",
7837
+ ipv6: "IPv6 cím",
7838
+ cidrv4: "IPv4 tartomány",
7839
+ cidrv6: "IPv6 tartomány",
7840
+ base64: "base64-kódolt string",
7841
+ base64url: "base64url-kódolt string",
7842
+ json_string: "JSON string",
7843
+ e164: "E.164 szám",
7844
+ jwt: "JWT",
7845
+ template_literal: "bemenet"
7846
+ };
7847
+ const TypeDictionary = {
7848
+ nan: "NaN",
7849
+ number: "szám",
7850
+ array: "tömb"
7851
+ };
7852
+ return (issue2) => {
7853
+ switch (issue2.code) {
7854
+ case "invalid_type": {
7855
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7856
+ const receivedType = parsedType(issue2.input);
7857
+ const received = TypeDictionary[receivedType] ?? receivedType;
7858
+ if (/^[A-Z]/.test(issue2.expected)) {
7859
+ return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
7860
+ }
7861
+ return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
7862
+ }
7863
+ case "invalid_value":
7864
+ if (issue2.values.length === 1)
7865
+ return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
7866
+ return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
7867
+ case "too_big": {
7868
+ const adj = issue2.inclusive ? "<=" : "<";
7869
+ const sizing = getSizing(issue2.origin);
7870
+ if (sizing)
7871
+ return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
7872
+ return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;
7479
7873
  }
7480
7874
  case "too_small": {
7481
7875
  const adj = issue2.inclusive ? ">=" : ">";
@@ -7514,10 +7908,10 @@ var error17 = () => {
7514
7908
  };
7515
7909
  function hu_default() {
7516
7910
  return {
7517
- localeError: error17()
7911
+ localeError: error19()
7518
7912
  };
7519
7913
  }
7520
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
7914
+ // node_modules/zod/v4/locales/hy.js
7521
7915
  function getArmenianPlural(count, one, many) {
7522
7916
  return Math.abs(count) === 1 ? one : many;
7523
7917
  }
@@ -7528,7 +7922,7 @@ function withDefiniteArticle(word) {
7528
7922
  const lastChar = word[word.length - 1];
7529
7923
  return word + (vowels.includes(lastChar) ? "ն" : "ը");
7530
7924
  }
7531
- var error18 = () => {
7925
+ var error20 = () => {
7532
7926
  const Sizable = {
7533
7927
  string: {
7534
7928
  unit: {
@@ -7661,11 +8055,11 @@ var error18 = () => {
7661
8055
  };
7662
8056
  function hy_default() {
7663
8057
  return {
7664
- localeError: error18()
8058
+ localeError: error20()
7665
8059
  };
7666
8060
  }
7667
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
7668
- var error19 = () => {
8061
+ // node_modules/zod/v4/locales/id.js
8062
+ var error21 = () => {
7669
8063
  const Sizable = {
7670
8064
  string: { unit: "karakter", verb: "memiliki" },
7671
8065
  file: { unit: "byte", verb: "memiliki" },
@@ -7767,11 +8161,11 @@ var error19 = () => {
7767
8161
  };
7768
8162
  function id_default() {
7769
8163
  return {
7770
- localeError: error19()
8164
+ localeError: error21()
7771
8165
  };
7772
8166
  }
7773
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
7774
- var error20 = () => {
8167
+ // node_modules/zod/v4/locales/is.js
8168
+ var error22 = () => {
7775
8169
  const Sizable = {
7776
8170
  string: { unit: "stafi", verb: "að hafa" },
7777
8171
  file: { unit: "bæti", verb: "að hafa" },
@@ -7876,11 +8270,11 @@ var error20 = () => {
7876
8270
  };
7877
8271
  function is_default() {
7878
8272
  return {
7879
- localeError: error20()
8273
+ localeError: error22()
7880
8274
  };
7881
8275
  }
7882
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
7883
- var error21 = () => {
8276
+ // node_modules/zod/v4/locales/it.js
8277
+ var error23 = () => {
7884
8278
  const Sizable = {
7885
8279
  string: { unit: "caratteri", verb: "avere" },
7886
8280
  file: { unit: "byte", verb: "avere" },
@@ -7965,7 +8359,7 @@ var error21 = () => {
7965
8359
  return `Stringa non valida: deve includere "${_issue.includes}"`;
7966
8360
  if (_issue.format === "regex")
7967
8361
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
7968
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
8362
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
7969
8363
  }
7970
8364
  case "not_multiple_of":
7971
8365
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -7984,11 +8378,11 @@ var error21 = () => {
7984
8378
  };
7985
8379
  function it_default() {
7986
8380
  return {
7987
- localeError: error21()
8381
+ localeError: error23()
7988
8382
  };
7989
8383
  }
7990
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
7991
- var error22 = () => {
8384
+ // node_modules/zod/v4/locales/ja.js
8385
+ var error24 = () => {
7992
8386
  const Sizable = {
7993
8387
  string: { unit: "文字", verb: "である" },
7994
8388
  file: { unit: "バイト", verb: "である" },
@@ -8091,11 +8485,11 @@ var error22 = () => {
8091
8485
  };
8092
8486
  function ja_default() {
8093
8487
  return {
8094
- localeError: error22()
8488
+ localeError: error24()
8095
8489
  };
8096
8490
  }
8097
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
8098
- var error23 = () => {
8491
+ // node_modules/zod/v4/locales/ka.js
8492
+ var error25 = () => {
8099
8493
  const Sizable = {
8100
8494
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
8101
8495
  file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
@@ -8128,9 +8522,9 @@ var error23 = () => {
8128
8522
  ipv6: "IPv6 მისამართი",
8129
8523
  cidrv4: "IPv4 დიაპაზონი",
8130
8524
  cidrv6: "IPv6 დიაპაზონი",
8131
- base64: "base64-კოდირებული სტრინგი",
8132
- base64url: "base64url-კოდირებული სტრინგი",
8133
- json_string: "JSON სტრინგი",
8525
+ base64: "base64-კოდირებული ველი",
8526
+ base64url: "base64url-კოდირებული ველი",
8527
+ json_string: "JSON ველი",
8134
8528
  e164: "E.164 ნომერი",
8135
8529
  jwt: "JWT",
8136
8530
  template_literal: "შეყვანა"
@@ -8138,7 +8532,7 @@ var error23 = () => {
8138
8532
  const TypeDictionary = {
8139
8533
  nan: "NaN",
8140
8534
  number: "რიცხვი",
8141
- string: "სტრინგი",
8535
+ string: "ველი",
8142
8536
  boolean: "ბულეანი",
8143
8537
  function: "ფუნქცია",
8144
8538
  array: "მასივი"
@@ -8176,14 +8570,14 @@ var error23 = () => {
8176
8570
  case "invalid_format": {
8177
8571
  const _issue = issue2;
8178
8572
  if (_issue.format === "starts_with") {
8179
- return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
8573
+ return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
8180
8574
  }
8181
8575
  if (_issue.format === "ends_with")
8182
- return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
8576
+ return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
8183
8577
  if (_issue.format === "includes")
8184
- return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
8578
+ return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
8185
8579
  if (_issue.format === "regex")
8186
- return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
8580
+ return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
8187
8581
  return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
8188
8582
  }
8189
8583
  case "not_multiple_of":
@@ -8203,11 +8597,11 @@ var error23 = () => {
8203
8597
  };
8204
8598
  function ka_default() {
8205
8599
  return {
8206
- localeError: error23()
8600
+ localeError: error25()
8207
8601
  };
8208
8602
  }
8209
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
8210
- var error24 = () => {
8603
+ // node_modules/zod/v4/locales/km.js
8604
+ var error26 = () => {
8211
8605
  const Sizable = {
8212
8606
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
8213
8607
  file: { unit: "បៃ", verb: "គួរមាន" },
@@ -8313,16 +8707,16 @@ var error24 = () => {
8313
8707
  };
8314
8708
  function km_default() {
8315
8709
  return {
8316
- localeError: error24()
8710
+ localeError: error26()
8317
8711
  };
8318
8712
  }
8319
8713
 
8320
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
8714
+ // node_modules/zod/v4/locales/kh.js
8321
8715
  function kh_default() {
8322
8716
  return km_default();
8323
8717
  }
8324
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
8325
- var error25 = () => {
8718
+ // node_modules/zod/v4/locales/ko.js
8719
+ var error27 = () => {
8326
8720
  const Sizable = {
8327
8721
  string: { unit: "문자", verb: "to have" },
8328
8722
  file: { unit: "바이트", verb: "to have" },
@@ -8429,10 +8823,10 @@ var error25 = () => {
8429
8823
  };
8430
8824
  function ko_default() {
8431
8825
  return {
8432
- localeError: error25()
8826
+ localeError: error27()
8433
8827
  };
8434
8828
  }
8435
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
8829
+ // node_modules/zod/v4/locales/lt.js
8436
8830
  var capitalizeFirstCharacter = (text) => {
8437
8831
  return text.charAt(0).toUpperCase() + text.slice(1);
8438
8832
  };
@@ -8446,7 +8840,7 @@ function getUnitTypeFromNumber(number2) {
8446
8840
  return "one";
8447
8841
  return "few";
8448
8842
  }
8449
- var error26 = () => {
8843
+ var error28 = () => {
8450
8844
  const Sizable = {
8451
8845
  string: {
8452
8846
  unit: {
@@ -8632,11 +9026,11 @@ var error26 = () => {
8632
9026
  };
8633
9027
  function lt_default() {
8634
9028
  return {
8635
- localeError: error26()
9029
+ localeError: error28()
8636
9030
  };
8637
9031
  }
8638
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
8639
- var error27 = () => {
9032
+ // node_modules/zod/v4/locales/mk.js
9033
+ var error29 = () => {
8640
9034
  const Sizable = {
8641
9035
  string: { unit: "знаци", verb: "да имаат" },
8642
9036
  file: { unit: "бајти", verb: "да имаат" },
@@ -8741,11 +9135,11 @@ var error27 = () => {
8741
9135
  };
8742
9136
  function mk_default() {
8743
9137
  return {
8744
- localeError: error27()
9138
+ localeError: error29()
8745
9139
  };
8746
9140
  }
8747
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
8748
- var error28 = () => {
9141
+ // node_modules/zod/v4/locales/ms.js
9142
+ var error30 = () => {
8749
9143
  const Sizable = {
8750
9144
  string: { unit: "aksara", verb: "mempunyai" },
8751
9145
  file: { unit: "bait", verb: "mempunyai" },
@@ -8848,11 +9242,11 @@ var error28 = () => {
8848
9242
  };
8849
9243
  function ms_default() {
8850
9244
  return {
8851
- localeError: error28()
9245
+ localeError: error30()
8852
9246
  };
8853
9247
  }
8854
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
8855
- var error29 = () => {
9248
+ // node_modules/zod/v4/locales/nl.js
9249
+ var error31 = () => {
8856
9250
  const Sizable = {
8857
9251
  string: { unit: "tekens", verb: "heeft" },
8858
9252
  file: { unit: "bytes", verb: "heeft" },
@@ -8958,11 +9352,11 @@ var error29 = () => {
8958
9352
  };
8959
9353
  function nl_default() {
8960
9354
  return {
8961
- localeError: error29()
9355
+ localeError: error31()
8962
9356
  };
8963
9357
  }
8964
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
8965
- var error30 = () => {
9358
+ // node_modules/zod/v4/locales/no.js
9359
+ var error32 = () => {
8966
9360
  const Sizable = {
8967
9361
  string: { unit: "tegn", verb: "å ha" },
8968
9362
  file: { unit: "bytes", verb: "å ha" },
@@ -9066,11 +9460,11 @@ var error30 = () => {
9066
9460
  };
9067
9461
  function no_default() {
9068
9462
  return {
9069
- localeError: error30()
9463
+ localeError: error32()
9070
9464
  };
9071
9465
  }
9072
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
9073
- var error31 = () => {
9466
+ // node_modules/zod/v4/locales/ota.js
9467
+ var error33 = () => {
9074
9468
  const Sizable = {
9075
9469
  string: { unit: "harf", verb: "olmalıdır" },
9076
9470
  file: { unit: "bayt", verb: "olmalıdır" },
@@ -9175,11 +9569,11 @@ var error31 = () => {
9175
9569
  };
9176
9570
  function ota_default() {
9177
9571
  return {
9178
- localeError: error31()
9572
+ localeError: error33()
9179
9573
  };
9180
9574
  }
9181
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
9182
- var error32 = () => {
9575
+ // node_modules/zod/v4/locales/ps.js
9576
+ var error34 = () => {
9183
9577
  const Sizable = {
9184
9578
  string: { unit: "توکي", verb: "ولري" },
9185
9579
  file: { unit: "بایټس", verb: "ولري" },
@@ -9289,11 +9683,11 @@ var error32 = () => {
9289
9683
  };
9290
9684
  function ps_default() {
9291
9685
  return {
9292
- localeError: error32()
9686
+ localeError: error34()
9293
9687
  };
9294
9688
  }
9295
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
9296
- var error33 = () => {
9689
+ // node_modules/zod/v4/locales/pl.js
9690
+ var error35 = () => {
9297
9691
  const Sizable = {
9298
9692
  string: { unit: "znaków", verb: "mieć" },
9299
9693
  file: { unit: "bajtów", verb: "mieć" },
@@ -9398,11 +9792,11 @@ var error33 = () => {
9398
9792
  };
9399
9793
  function pl_default() {
9400
9794
  return {
9401
- localeError: error33()
9795
+ localeError: error35()
9402
9796
  };
9403
9797
  }
9404
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
9405
- var error34 = () => {
9798
+ // node_modules/zod/v4/locales/pt.js
9799
+ var error36 = () => {
9406
9800
  const Sizable = {
9407
9801
  string: { unit: "caracteres", verb: "ter" },
9408
9802
  file: { unit: "bytes", verb: "ter" },
@@ -9506,10 +9900,129 @@ var error34 = () => {
9506
9900
  };
9507
9901
  function pt_default() {
9508
9902
  return {
9509
- localeError: error34()
9903
+ localeError: error36()
9904
+ };
9905
+ }
9906
+ // node_modules/zod/v4/locales/ro.js
9907
+ var error37 = () => {
9908
+ const Sizable = {
9909
+ string: { unit: "caractere", verb: "să aibă" },
9910
+ file: { unit: "octeți", verb: "să aibă" },
9911
+ array: { unit: "elemente", verb: "să aibă" },
9912
+ set: { unit: "elemente", verb: "să aibă" },
9913
+ map: { unit: "intrări", verb: "să aibă" }
9914
+ };
9915
+ function getSizing(origin) {
9916
+ return Sizable[origin] ?? null;
9917
+ }
9918
+ const FormatDictionary = {
9919
+ regex: "intrare",
9920
+ email: "adresă de email",
9921
+ url: "URL",
9922
+ emoji: "emoji",
9923
+ uuid: "UUID",
9924
+ uuidv4: "UUIDv4",
9925
+ uuidv6: "UUIDv6",
9926
+ nanoid: "nanoid",
9927
+ guid: "GUID",
9928
+ cuid: "cuid",
9929
+ cuid2: "cuid2",
9930
+ ulid: "ULID",
9931
+ xid: "XID",
9932
+ ksuid: "KSUID",
9933
+ datetime: "dată și oră ISO",
9934
+ date: "dată ISO",
9935
+ time: "oră ISO",
9936
+ duration: "durată ISO",
9937
+ ipv4: "adresă IPv4",
9938
+ ipv6: "adresă IPv6",
9939
+ mac: "adresă MAC",
9940
+ cidrv4: "interval IPv4",
9941
+ cidrv6: "interval IPv6",
9942
+ base64: "șir codat base64",
9943
+ base64url: "șir codat base64url",
9944
+ json_string: "șir JSON",
9945
+ e164: "număr E.164",
9946
+ jwt: "JWT",
9947
+ template_literal: "intrare"
9948
+ };
9949
+ const TypeDictionary = {
9950
+ nan: "NaN",
9951
+ string: "șir",
9952
+ number: "număr",
9953
+ boolean: "boolean",
9954
+ function: "funcție",
9955
+ array: "matrice",
9956
+ object: "obiect",
9957
+ undefined: "nedefinit",
9958
+ symbol: "simbol",
9959
+ bigint: "număr mare",
9960
+ void: "void",
9961
+ never: "never",
9962
+ map: "hartă",
9963
+ set: "set"
9964
+ };
9965
+ return (issue2) => {
9966
+ switch (issue2.code) {
9967
+ case "invalid_type": {
9968
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9969
+ const receivedType = parsedType(issue2.input);
9970
+ const received = TypeDictionary[receivedType] ?? receivedType;
9971
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
9972
+ }
9973
+ case "invalid_value":
9974
+ if (issue2.values.length === 1)
9975
+ return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
9976
+ return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
9977
+ case "too_big": {
9978
+ const adj = issue2.inclusive ? "<=" : "<";
9979
+ const sizing = getSizing(issue2.origin);
9980
+ if (sizing)
9981
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
9982
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
9983
+ }
9984
+ case "too_small": {
9985
+ const adj = issue2.inclusive ? ">=" : ">";
9986
+ const sizing = getSizing(issue2.origin);
9987
+ if (sizing) {
9988
+ return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9989
+ }
9990
+ return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
9991
+ }
9992
+ case "invalid_format": {
9993
+ const _issue = issue2;
9994
+ if (_issue.format === "starts_with") {
9995
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
9996
+ }
9997
+ if (_issue.format === "ends_with")
9998
+ return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
9999
+ if (_issue.format === "includes")
10000
+ return `Șir invalid: trebuie să includă "${_issue.includes}"`;
10001
+ if (_issue.format === "regex")
10002
+ return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
10003
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
10004
+ }
10005
+ case "not_multiple_of":
10006
+ return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
10007
+ case "unrecognized_keys":
10008
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
10009
+ case "invalid_key":
10010
+ return `Cheie invalidă în ${issue2.origin}`;
10011
+ case "invalid_union":
10012
+ return "Intrare invalidă";
10013
+ case "invalid_element":
10014
+ return `Valoare invalidă în ${issue2.origin}`;
10015
+ default:
10016
+ return `Intrare invalidă`;
10017
+ }
10018
+ };
10019
+ };
10020
+ function ro_default() {
10021
+ return {
10022
+ localeError: error37()
9510
10023
  };
9511
10024
  }
9512
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
10025
+ // node_modules/zod/v4/locales/ru.js
9513
10026
  function getRussianPlural(count, one, few, many) {
9514
10027
  const absCount = Math.abs(count);
9515
10028
  const lastDigit = absCount % 10;
@@ -9525,7 +10038,7 @@ function getRussianPlural(count, one, few, many) {
9525
10038
  }
9526
10039
  return many;
9527
10040
  }
9528
- var error35 = () => {
10041
+ var error38 = () => {
9529
10042
  const Sizable = {
9530
10043
  string: {
9531
10044
  unit: {
@@ -9662,11 +10175,11 @@ var error35 = () => {
9662
10175
  };
9663
10176
  function ru_default() {
9664
10177
  return {
9665
- localeError: error35()
10178
+ localeError: error38()
9666
10179
  };
9667
10180
  }
9668
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
9669
- var error36 = () => {
10181
+ // node_modules/zod/v4/locales/sl.js
10182
+ var error39 = () => {
9670
10183
  const Sizable = {
9671
10184
  string: { unit: "znakov", verb: "imeti" },
9672
10185
  file: { unit: "bajtov", verb: "imeti" },
@@ -9771,11 +10284,11 @@ var error36 = () => {
9771
10284
  };
9772
10285
  function sl_default() {
9773
10286
  return {
9774
- localeError: error36()
10287
+ localeError: error39()
9775
10288
  };
9776
10289
  }
9777
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
9778
- var error37 = () => {
10290
+ // node_modules/zod/v4/locales/sv.js
10291
+ var error40 = () => {
9779
10292
  const Sizable = {
9780
10293
  string: { unit: "tecken", verb: "att ha" },
9781
10294
  file: { unit: "bytes", verb: "att ha" },
@@ -9881,11 +10394,11 @@ var error37 = () => {
9881
10394
  };
9882
10395
  function sv_default() {
9883
10396
  return {
9884
- localeError: error37()
10397
+ localeError: error40()
9885
10398
  };
9886
10399
  }
9887
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
9888
- var error38 = () => {
10400
+ // node_modules/zod/v4/locales/ta.js
10401
+ var error41 = () => {
9889
10402
  const Sizable = {
9890
10403
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
9891
10404
  file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -9991,11 +10504,11 @@ var error38 = () => {
9991
10504
  };
9992
10505
  function ta_default() {
9993
10506
  return {
9994
- localeError: error38()
10507
+ localeError: error41()
9995
10508
  };
9996
10509
  }
9997
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
9998
- var error39 = () => {
10510
+ // node_modules/zod/v4/locales/th.js
10511
+ var error42 = () => {
9999
10512
  const Sizable = {
10000
10513
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
10001
10514
  file: { unit: "ไบต์", verb: "ควรมี" },
@@ -10101,11 +10614,11 @@ var error39 = () => {
10101
10614
  };
10102
10615
  function th_default() {
10103
10616
  return {
10104
- localeError: error39()
10617
+ localeError: error42()
10105
10618
  };
10106
10619
  }
10107
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
10108
- var error40 = () => {
10620
+ // node_modules/zod/v4/locales/tr.js
10621
+ var error43 = () => {
10109
10622
  const Sizable = {
10110
10623
  string: { unit: "karakter", verb: "olmalı" },
10111
10624
  file: { unit: "bayt", verb: "olmalı" },
@@ -10206,11 +10719,11 @@ var error40 = () => {
10206
10719
  };
10207
10720
  function tr_default() {
10208
10721
  return {
10209
- localeError: error40()
10722
+ localeError: error43()
10210
10723
  };
10211
10724
  }
10212
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
10213
- var error41 = () => {
10725
+ // node_modules/zod/v4/locales/uk.js
10726
+ var error44 = () => {
10214
10727
  const Sizable = {
10215
10728
  string: { unit: "символів", verb: "матиме" },
10216
10729
  file: { unit: "байтів", verb: "матиме" },
@@ -10314,16 +10827,16 @@ var error41 = () => {
10314
10827
  };
10315
10828
  function uk_default() {
10316
10829
  return {
10317
- localeError: error41()
10830
+ localeError: error44()
10318
10831
  };
10319
10832
  }
10320
10833
 
10321
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
10834
+ // node_modules/zod/v4/locales/ua.js
10322
10835
  function ua_default() {
10323
10836
  return uk_default();
10324
10837
  }
10325
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
10326
- var error42 = () => {
10838
+ // node_modules/zod/v4/locales/ur.js
10839
+ var error45 = () => {
10327
10840
  const Sizable = {
10328
10841
  string: { unit: "حروف", verb: "ہونا" },
10329
10842
  file: { unit: "بائٹس", verb: "ہونا" },
@@ -10429,16 +10942,17 @@ var error42 = () => {
10429
10942
  };
10430
10943
  function ur_default() {
10431
10944
  return {
10432
- localeError: error42()
10945
+ localeError: error45()
10433
10946
  };
10434
10947
  }
10435
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
10436
- var error43 = () => {
10948
+ // node_modules/zod/v4/locales/uz.js
10949
+ var error46 = () => {
10437
10950
  const Sizable = {
10438
10951
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
10439
10952
  file: { unit: "bayt", verb: "bo‘lishi kerak" },
10440
10953
  array: { unit: "element", verb: "bo‘lishi kerak" },
10441
- set: { unit: "element", verb: "bo‘lishi kerak" }
10954
+ set: { unit: "element", verb: "bo‘lishi kerak" },
10955
+ map: { unit: "yozuv", verb: "bo‘lishi kerak" }
10442
10956
  };
10443
10957
  function getSizing(origin) {
10444
10958
  return Sizable[origin] ?? null;
@@ -10538,11 +11052,11 @@ var error43 = () => {
10538
11052
  };
10539
11053
  function uz_default() {
10540
11054
  return {
10541
- localeError: error43()
11055
+ localeError: error46()
10542
11056
  };
10543
11057
  }
10544
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
10545
- var error44 = () => {
11058
+ // node_modules/zod/v4/locales/vi.js
11059
+ var error47 = () => {
10546
11060
  const Sizable = {
10547
11061
  string: { unit: "ký tự", verb: "có" },
10548
11062
  file: { unit: "byte", verb: "có" },
@@ -10646,11 +11160,11 @@ var error44 = () => {
10646
11160
  };
10647
11161
  function vi_default() {
10648
11162
  return {
10649
- localeError: error44()
11163
+ localeError: error47()
10650
11164
  };
10651
11165
  }
10652
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
10653
- var error45 = () => {
11166
+ // node_modules/zod/v4/locales/zh-CN.js
11167
+ var error48 = () => {
10654
11168
  const Sizable = {
10655
11169
  string: { unit: "字符", verb: "包含" },
10656
11170
  file: { unit: "字节", verb: "包含" },
@@ -10755,11 +11269,11 @@ var error45 = () => {
10755
11269
  };
10756
11270
  function zh_CN_default() {
10757
11271
  return {
10758
- localeError: error45()
11272
+ localeError: error48()
10759
11273
  };
10760
11274
  }
10761
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
10762
- var error46 = () => {
11275
+ // node_modules/zod/v4/locales/zh-TW.js
11276
+ var error49 = () => {
10763
11277
  const Sizable = {
10764
11278
  string: { unit: "字元", verb: "擁有" },
10765
11279
  file: { unit: "位元組", verb: "擁有" },
@@ -10862,11 +11376,11 @@ var error46 = () => {
10862
11376
  };
10863
11377
  function zh_TW_default() {
10864
11378
  return {
10865
- localeError: error46()
11379
+ localeError: error49()
10866
11380
  };
10867
11381
  }
10868
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
10869
- var error47 = () => {
11382
+ // node_modules/zod/v4/locales/yo.js
11383
+ var error50 = () => {
10870
11384
  const Sizable = {
10871
11385
  string: { unit: "àmi", verb: "ní" },
10872
11386
  file: { unit: "bytes", verb: "ní" },
@@ -10969,11 +11483,11 @@ var error47 = () => {
10969
11483
  };
10970
11484
  function yo_default() {
10971
11485
  return {
10972
- localeError: error47()
11486
+ localeError: error50()
10973
11487
  };
10974
11488
  }
10975
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
10976
- var _a;
11489
+ // node_modules/zod/v4/core/registries.js
11490
+ var _a2;
10977
11491
  var $output = Symbol("ZodOutput");
10978
11492
  var $input = Symbol("ZodInput");
10979
11493
 
@@ -11020,9 +11534,9 @@ class $ZodRegistry {
11020
11534
  function registry() {
11021
11535
  return new $ZodRegistry;
11022
11536
  }
11023
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
11537
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
11024
11538
  var globalRegistry = globalThis.__zod_globalRegistry;
11025
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
11539
+ // node_modules/zod/v4/core/api.js
11026
11540
  function _string(Class2, params) {
11027
11541
  return new Class2({
11028
11542
  type: "string",
@@ -11826,7 +12340,7 @@ function _refine(Class2, fn, _params) {
11826
12340
  });
11827
12341
  return schema;
11828
12342
  }
11829
- function _superRefine(fn) {
12343
+ function _superRefine(fn, params) {
11830
12344
  const ch = _check((payload) => {
11831
12345
  payload.addIssue = (issue2) => {
11832
12346
  if (typeof issue2 === "string") {
@@ -11843,7 +12357,7 @@ function _superRefine(fn) {
11843
12357
  }
11844
12358
  };
11845
12359
  return fn(payload.value, payload);
11846
- });
12360
+ }, params);
11847
12361
  return ch;
11848
12362
  }
11849
12363
  function _check(fn, params) {
@@ -11942,7 +12456,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11942
12456
  const inst = new Class2(def);
11943
12457
  return inst;
11944
12458
  }
11945
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
12459
+ // node_modules/zod/v4/core/to-json-schema.js
11946
12460
  function initializeContext(params) {
11947
12461
  let target = params?.target ?? "draft-2020-12";
11948
12462
  if (target === "draft-4")
@@ -11964,7 +12478,7 @@ function initializeContext(params) {
11964
12478
  };
11965
12479
  }
11966
12480
  function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
11967
- var _a2;
12481
+ var _a3;
11968
12482
  const def = schema._zod.def;
11969
12483
  const seen = ctx.seen.get(schema);
11970
12484
  if (seen) {
@@ -12011,8 +12525,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
12011
12525
  delete result.schema.examples;
12012
12526
  delete result.schema.default;
12013
12527
  }
12014
- if (ctx.io === "input" && result.schema._prefault)
12015
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
12528
+ if (ctx.io === "input" && "_prefault" in result.schema)
12529
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
12016
12530
  delete result.schema._prefault;
12017
12531
  const _result = ctx.seen.get(schema);
12018
12532
  return _result.schema;
@@ -12189,10 +12703,15 @@ function finalize(ctx, schema) {
12189
12703
  result.$id = ctx.external.uri(id);
12190
12704
  }
12191
12705
  Object.assign(result, root.def ?? root.schema);
12706
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
12707
+ if (rootMetaId !== undefined && result.id === rootMetaId)
12708
+ delete result.id;
12192
12709
  const defs = ctx.external?.defs ?? {};
12193
12710
  for (const entry of ctx.seen.entries()) {
12194
12711
  const seen = entry[1];
12195
12712
  if (seen.def && seen.defId) {
12713
+ if (seen.def.id === seen.defId)
12714
+ delete seen.def.id;
12196
12715
  defs[seen.defId] = seen.def;
12197
12716
  }
12198
12717
  }
@@ -12287,7 +12806,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
12287
12806
  extractDefs(ctx, schema);
12288
12807
  return finalize(ctx, schema);
12289
12808
  };
12290
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
12809
+ // node_modules/zod/v4/core/json-schema-processors.js
12291
12810
  var formatMap = {
12292
12811
  guid: "uuid",
12293
12812
  url: "uri",
@@ -12334,39 +12853,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
12334
12853
  json.type = "integer";
12335
12854
  else
12336
12855
  json.type = "number";
12337
- if (typeof exclusiveMinimum === "number") {
12338
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12856
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
12857
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
12858
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
12859
+ if (exMin) {
12860
+ if (legacy) {
12339
12861
  json.minimum = exclusiveMinimum;
12340
12862
  json.exclusiveMinimum = true;
12341
12863
  } else {
12342
12864
  json.exclusiveMinimum = exclusiveMinimum;
12343
12865
  }
12344
- }
12345
- if (typeof minimum === "number") {
12866
+ } else if (typeof minimum === "number") {
12346
12867
  json.minimum = minimum;
12347
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
12348
- if (exclusiveMinimum >= minimum)
12349
- delete json.minimum;
12350
- else
12351
- delete json.exclusiveMinimum;
12352
- }
12353
12868
  }
12354
- if (typeof exclusiveMaximum === "number") {
12355
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12869
+ if (exMax) {
12870
+ if (legacy) {
12356
12871
  json.maximum = exclusiveMaximum;
12357
12872
  json.exclusiveMaximum = true;
12358
12873
  } else {
12359
12874
  json.exclusiveMaximum = exclusiveMaximum;
12360
12875
  }
12361
- }
12362
- if (typeof maximum === "number") {
12876
+ } else if (typeof maximum === "number") {
12363
12877
  json.maximum = maximum;
12364
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
12365
- if (exclusiveMaximum <= maximum)
12366
- delete json.maximum;
12367
- else
12368
- delete json.exclusiveMaximum;
12369
- }
12370
12878
  }
12371
12879
  if (typeof multipleOf === "number")
12372
12880
  json.multipleOf = multipleOf;
@@ -12534,7 +13042,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
12534
13042
  if (typeof maximum === "number")
12535
13043
  json.maxItems = maximum;
12536
13044
  json.type = "array";
12537
- json.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
13045
+ json.items = process(def.element, ctx, {
13046
+ ...params,
13047
+ path: [...params.path, "items"]
13048
+ });
12538
13049
  };
12539
13050
  var objectProcessor = (schema, ctx, _json, params) => {
12540
13051
  const json = _json;
@@ -12832,7 +13343,7 @@ function toJSONSchema(input, params) {
12832
13343
  extractDefs(ctx, input);
12833
13344
  return finalize(ctx, input);
12834
13345
  }
12835
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
13346
+ // node_modules/zod/v4/core/json-schema-generator.js
12836
13347
  class JSONSchemaGenerator {
12837
13348
  get metadataRegistry() {
12838
13349
  return this.ctx.metadataRegistry;
@@ -12891,9 +13402,9 @@ class JSONSchemaGenerator {
12891
13402
  return plainResult;
12892
13403
  }
12893
13404
  }
12894
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
13405
+ // node_modules/zod/v4/core/json-schema.js
12895
13406
  var exports_json_schema = {};
12896
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13407
+ // node_modules/zod/v4/classic/schemas.js
12897
13408
  var exports_schemas2 = {};
12898
13409
  __export(exports_schemas2, {
12899
13410
  xor: () => xor,
@@ -12953,6 +13464,7 @@ __export(exports_schemas2, {
12953
13464
  json: () => json,
12954
13465
  ipv6: () => ipv62,
12955
13466
  ipv4: () => ipv42,
13467
+ invertCodec: () => invertCodec,
12956
13468
  intersection: () => intersection,
12957
13469
  int64: () => int64,
12958
13470
  int32: () => int32,
@@ -13062,7 +13574,7 @@ __export(exports_schemas2, {
13062
13574
  ZodAny: () => ZodAny
13063
13575
  });
13064
13576
 
13065
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
13577
+ // node_modules/zod/v4/classic/checks.js
13066
13578
  var exports_checks2 = {};
13067
13579
  __export(exports_checks2, {
13068
13580
  uppercase: () => _uppercase,
@@ -13096,7 +13608,7 @@ __export(exports_checks2, {
13096
13608
  endsWith: () => _endsWith
13097
13609
  });
13098
13610
 
13099
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
13611
+ // node_modules/zod/v4/classic/iso.js
13100
13612
  var exports_iso = {};
13101
13613
  __export(exports_iso, {
13102
13614
  time: () => time2,
@@ -13137,7 +13649,7 @@ function duration2(params) {
13137
13649
  return _isoDuration(ZodISODuration, params);
13138
13650
  }
13139
13651
 
13140
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
13652
+ // node_modules/zod/v4/classic/errors.js
13141
13653
  var initializer2 = (inst, issues) => {
13142
13654
  $ZodError.init(inst, issues);
13143
13655
  inst.name = "ZodError";
@@ -13167,12 +13679,12 @@ var initializer2 = (inst, issues) => {
13167
13679
  }
13168
13680
  });
13169
13681
  };
13170
- var ZodError = $constructor("ZodError", initializer2);
13171
- var ZodRealError = $constructor("ZodError", initializer2, {
13682
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
13683
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
13172
13684
  Parent: Error
13173
13685
  });
13174
13686
 
13175
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
13687
+ // node_modules/zod/v4/classic/parse.js
13176
13688
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
13177
13689
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
13178
13690
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -13186,7 +13698,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
13186
13698
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
13187
13699
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
13188
13700
 
13189
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13701
+ // node_modules/zod/v4/classic/schemas.js
13702
+ var _installedGroups = /* @__PURE__ */ new WeakMap;
13703
+ function _installLazyMethods(inst, group, methods) {
13704
+ const proto = Object.getPrototypeOf(inst);
13705
+ let installed = _installedGroups.get(proto);
13706
+ if (!installed) {
13707
+ installed = new Set;
13708
+ _installedGroups.set(proto, installed);
13709
+ }
13710
+ if (installed.has(group))
13711
+ return;
13712
+ installed.add(group);
13713
+ for (const key in methods) {
13714
+ const fn = methods[key];
13715
+ Object.defineProperty(proto, key, {
13716
+ configurable: true,
13717
+ enumerable: false,
13718
+ get() {
13719
+ const bound = fn.bind(this);
13720
+ Object.defineProperty(this, key, {
13721
+ configurable: true,
13722
+ writable: true,
13723
+ enumerable: true,
13724
+ value: bound
13725
+ });
13726
+ return bound;
13727
+ },
13728
+ set(v) {
13729
+ Object.defineProperty(this, key, {
13730
+ configurable: true,
13731
+ writable: true,
13732
+ enumerable: true,
13733
+ value: v
13734
+ });
13735
+ }
13736
+ });
13737
+ }
13738
+ }
13190
13739
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13191
13740
  $ZodType.init(inst, def);
13192
13741
  Object.assign(inst["~standard"], {
@@ -13199,23 +13748,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13199
13748
  inst.def = def;
13200
13749
  inst.type = def.type;
13201
13750
  Object.defineProperty(inst, "_def", { value: def });
13202
- inst.check = (...checks2) => {
13203
- return inst.clone(exports_util.mergeDefs(def, {
13204
- checks: [
13205
- ...def.checks ?? [],
13206
- ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
13207
- ]
13208
- }), {
13209
- parent: true
13210
- });
13211
- };
13212
- inst.with = inst.check;
13213
- inst.clone = (def2, params) => clone(inst, def2, params);
13214
- inst.brand = () => inst;
13215
- inst.register = (reg, meta2) => {
13216
- reg.add(inst, meta2);
13217
- return inst;
13218
- };
13219
13751
  inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
13220
13752
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
13221
13753
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -13229,45 +13761,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13229
13761
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
13230
13762
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
13231
13763
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
13232
- inst.refine = (check, params) => inst.check(refine(check, params));
13233
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
13234
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
13235
- inst.optional = () => optional(inst);
13236
- inst.exactOptional = () => exactOptional(inst);
13237
- inst.nullable = () => nullable(inst);
13238
- inst.nullish = () => optional(nullable(inst));
13239
- inst.nonoptional = (params) => nonoptional(inst, params);
13240
- inst.array = () => array(inst);
13241
- inst.or = (arg) => union([inst, arg]);
13242
- inst.and = (arg) => intersection(inst, arg);
13243
- inst.transform = (tx) => pipe(inst, transform(tx));
13244
- inst.default = (def2) => _default2(inst, def2);
13245
- inst.prefault = (def2) => prefault(inst, def2);
13246
- inst.catch = (params) => _catch2(inst, params);
13247
- inst.pipe = (target) => pipe(inst, target);
13248
- inst.readonly = () => readonly(inst);
13249
- inst.describe = (description) => {
13250
- const cl = inst.clone();
13251
- globalRegistry.add(cl, { description });
13252
- return cl;
13253
- };
13764
+ _installLazyMethods(inst, "ZodType", {
13765
+ check(...chks) {
13766
+ const def2 = this.def;
13767
+ return this.clone(exports_util.mergeDefs(def2, {
13768
+ checks: [
13769
+ ...def2.checks ?? [],
13770
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
13771
+ ]
13772
+ }), { parent: true });
13773
+ },
13774
+ with(...chks) {
13775
+ return this.check(...chks);
13776
+ },
13777
+ clone(def2, params) {
13778
+ return clone(this, def2, params);
13779
+ },
13780
+ brand() {
13781
+ return this;
13782
+ },
13783
+ register(reg, meta2) {
13784
+ reg.add(this, meta2);
13785
+ return this;
13786
+ },
13787
+ refine(check, params) {
13788
+ return this.check(refine(check, params));
13789
+ },
13790
+ superRefine(refinement, params) {
13791
+ return this.check(superRefine(refinement, params));
13792
+ },
13793
+ overwrite(fn) {
13794
+ return this.check(_overwrite(fn));
13795
+ },
13796
+ optional() {
13797
+ return optional(this);
13798
+ },
13799
+ exactOptional() {
13800
+ return exactOptional(this);
13801
+ },
13802
+ nullable() {
13803
+ return nullable(this);
13804
+ },
13805
+ nullish() {
13806
+ return optional(nullable(this));
13807
+ },
13808
+ nonoptional(params) {
13809
+ return nonoptional(this, params);
13810
+ },
13811
+ array() {
13812
+ return array(this);
13813
+ },
13814
+ or(arg) {
13815
+ return union([this, arg]);
13816
+ },
13817
+ and(arg) {
13818
+ return intersection(this, arg);
13819
+ },
13820
+ transform(tx) {
13821
+ return pipe(this, transform(tx));
13822
+ },
13823
+ default(d) {
13824
+ return _default2(this, d);
13825
+ },
13826
+ prefault(d) {
13827
+ return prefault(this, d);
13828
+ },
13829
+ catch(params) {
13830
+ return _catch2(this, params);
13831
+ },
13832
+ pipe(target) {
13833
+ return pipe(this, target);
13834
+ },
13835
+ readonly() {
13836
+ return readonly(this);
13837
+ },
13838
+ describe(description) {
13839
+ const cl = this.clone();
13840
+ globalRegistry.add(cl, { description });
13841
+ return cl;
13842
+ },
13843
+ meta(...args) {
13844
+ if (args.length === 0)
13845
+ return globalRegistry.get(this);
13846
+ const cl = this.clone();
13847
+ globalRegistry.add(cl, args[0]);
13848
+ return cl;
13849
+ },
13850
+ isOptional() {
13851
+ return this.safeParse(undefined).success;
13852
+ },
13853
+ isNullable() {
13854
+ return this.safeParse(null).success;
13855
+ },
13856
+ apply(fn) {
13857
+ return fn(this);
13858
+ }
13859
+ });
13254
13860
  Object.defineProperty(inst, "description", {
13255
13861
  get() {
13256
13862
  return globalRegistry.get(inst)?.description;
13257
13863
  },
13258
13864
  configurable: true
13259
13865
  });
13260
- inst.meta = (...args) => {
13261
- if (args.length === 0) {
13262
- return globalRegistry.get(inst);
13263
- }
13264
- const cl = inst.clone();
13265
- globalRegistry.add(cl, args[0]);
13266
- return cl;
13267
- };
13268
- inst.isOptional = () => inst.safeParse(undefined).success;
13269
- inst.isNullable = () => inst.safeParse(null).success;
13270
- inst.apply = (fn) => fn(inst);
13271
13866
  return inst;
13272
13867
  });
13273
13868
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -13278,21 +13873,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
13278
13873
  inst.format = bag.format ?? null;
13279
13874
  inst.minLength = bag.minimum ?? null;
13280
13875
  inst.maxLength = bag.maximum ?? null;
13281
- inst.regex = (...args) => inst.check(_regex(...args));
13282
- inst.includes = (...args) => inst.check(_includes(...args));
13283
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
13284
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
13285
- inst.min = (...args) => inst.check(_minLength(...args));
13286
- inst.max = (...args) => inst.check(_maxLength(...args));
13287
- inst.length = (...args) => inst.check(_length(...args));
13288
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
13289
- inst.lowercase = (params) => inst.check(_lowercase(params));
13290
- inst.uppercase = (params) => inst.check(_uppercase(params));
13291
- inst.trim = () => inst.check(_trim());
13292
- inst.normalize = (...args) => inst.check(_normalize(...args));
13293
- inst.toLowerCase = () => inst.check(_toLowerCase());
13294
- inst.toUpperCase = () => inst.check(_toUpperCase());
13295
- inst.slugify = () => inst.check(_slugify());
13876
+ _installLazyMethods(inst, "_ZodString", {
13877
+ regex(...args) {
13878
+ return this.check(_regex(...args));
13879
+ },
13880
+ includes(...args) {
13881
+ return this.check(_includes(...args));
13882
+ },
13883
+ startsWith(...args) {
13884
+ return this.check(_startsWith(...args));
13885
+ },
13886
+ endsWith(...args) {
13887
+ return this.check(_endsWith(...args));
13888
+ },
13889
+ min(...args) {
13890
+ return this.check(_minLength(...args));
13891
+ },
13892
+ max(...args) {
13893
+ return this.check(_maxLength(...args));
13894
+ },
13895
+ length(...args) {
13896
+ return this.check(_length(...args));
13897
+ },
13898
+ nonempty(...args) {
13899
+ return this.check(_minLength(1, ...args));
13900
+ },
13901
+ lowercase(params) {
13902
+ return this.check(_lowercase(params));
13903
+ },
13904
+ uppercase(params) {
13905
+ return this.check(_uppercase(params));
13906
+ },
13907
+ trim() {
13908
+ return this.check(_trim());
13909
+ },
13910
+ normalize(...args) {
13911
+ return this.check(_normalize(...args));
13912
+ },
13913
+ toLowerCase() {
13914
+ return this.check(_toLowerCase());
13915
+ },
13916
+ toUpperCase() {
13917
+ return this.check(_toUpperCase());
13918
+ },
13919
+ slugify() {
13920
+ return this.check(_slugify());
13921
+ }
13922
+ });
13296
13923
  });
13297
13924
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
13298
13925
  $ZodString.init(inst, def);
@@ -13371,7 +13998,7 @@ function url(params) {
13371
13998
  }
13372
13999
  function httpUrl(params) {
13373
14000
  return _url(ZodURL, {
13374
- protocol: /^https?$/,
14001
+ protocol: exports_regexes.httpProtocol,
13375
14002
  hostname: exports_regexes.domain,
13376
14003
  ...exports_util.normalizeParams(params)
13377
14004
  });
@@ -13513,21 +14140,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
13513
14140
  $ZodNumber.init(inst, def);
13514
14141
  ZodType.init(inst, def);
13515
14142
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
13516
- inst.gt = (value, params) => inst.check(_gt(value, params));
13517
- inst.gte = (value, params) => inst.check(_gte(value, params));
13518
- inst.min = (value, params) => inst.check(_gte(value, params));
13519
- inst.lt = (value, params) => inst.check(_lt(value, params));
13520
- inst.lte = (value, params) => inst.check(_lte(value, params));
13521
- inst.max = (value, params) => inst.check(_lte(value, params));
13522
- inst.int = (params) => inst.check(int(params));
13523
- inst.safe = (params) => inst.check(int(params));
13524
- inst.positive = (params) => inst.check(_gt(0, params));
13525
- inst.nonnegative = (params) => inst.check(_gte(0, params));
13526
- inst.negative = (params) => inst.check(_lt(0, params));
13527
- inst.nonpositive = (params) => inst.check(_lte(0, params));
13528
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
13529
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
13530
- inst.finite = () => inst;
14143
+ _installLazyMethods(inst, "ZodNumber", {
14144
+ gt(value, params) {
14145
+ return this.check(_gt(value, params));
14146
+ },
14147
+ gte(value, params) {
14148
+ return this.check(_gte(value, params));
14149
+ },
14150
+ min(value, params) {
14151
+ return this.check(_gte(value, params));
14152
+ },
14153
+ lt(value, params) {
14154
+ return this.check(_lt(value, params));
14155
+ },
14156
+ lte(value, params) {
14157
+ return this.check(_lte(value, params));
14158
+ },
14159
+ max(value, params) {
14160
+ return this.check(_lte(value, params));
14161
+ },
14162
+ int(params) {
14163
+ return this.check(int(params));
14164
+ },
14165
+ safe(params) {
14166
+ return this.check(int(params));
14167
+ },
14168
+ positive(params) {
14169
+ return this.check(_gt(0, params));
14170
+ },
14171
+ nonnegative(params) {
14172
+ return this.check(_gte(0, params));
14173
+ },
14174
+ negative(params) {
14175
+ return this.check(_lt(0, params));
14176
+ },
14177
+ nonpositive(params) {
14178
+ return this.check(_lte(0, params));
14179
+ },
14180
+ multipleOf(value, params) {
14181
+ return this.check(_multipleOf(value, params));
14182
+ },
14183
+ step(value, params) {
14184
+ return this.check(_multipleOf(value, params));
14185
+ },
14186
+ finite() {
14187
+ return this;
14188
+ }
14189
+ });
13531
14190
  const bag = inst._zod.bag;
13532
14191
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
13533
14192
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -13674,11 +14333,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
13674
14333
  ZodType.init(inst, def);
13675
14334
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
13676
14335
  inst.element = def.element;
13677
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
13678
- inst.nonempty = (params) => inst.check(_minLength(1, params));
13679
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
13680
- inst.length = (len, params) => inst.check(_length(len, params));
13681
- inst.unwrap = () => inst.element;
14336
+ _installLazyMethods(inst, "ZodArray", {
14337
+ min(n, params) {
14338
+ return this.check(_minLength(n, params));
14339
+ },
14340
+ nonempty(params) {
14341
+ return this.check(_minLength(1, params));
14342
+ },
14343
+ max(n, params) {
14344
+ return this.check(_maxLength(n, params));
14345
+ },
14346
+ length(n, params) {
14347
+ return this.check(_length(n, params));
14348
+ },
14349
+ unwrap() {
14350
+ return this.element;
14351
+ }
14352
+ });
13682
14353
  });
13683
14354
  function array(element, params) {
13684
14355
  return _array(ZodArray, element, params);
@@ -13694,23 +14365,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13694
14365
  exports_util.defineLazy(inst, "shape", () => {
13695
14366
  return def.shape;
13696
14367
  });
13697
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
13698
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
13699
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13700
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13701
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13702
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
13703
- inst.extend = (incoming) => {
13704
- return exports_util.extend(inst, incoming);
13705
- };
13706
- inst.safeExtend = (incoming) => {
13707
- return exports_util.safeExtend(inst, incoming);
13708
- };
13709
- inst.merge = (other) => exports_util.merge(inst, other);
13710
- inst.pick = (mask) => exports_util.pick(inst, mask);
13711
- inst.omit = (mask) => exports_util.omit(inst, mask);
13712
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
13713
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
14368
+ _installLazyMethods(inst, "ZodObject", {
14369
+ keyof() {
14370
+ return _enum2(Object.keys(this._zod.def.shape));
14371
+ },
14372
+ catchall(catchall) {
14373
+ return this.clone({ ...this._zod.def, catchall });
14374
+ },
14375
+ passthrough() {
14376
+ return this.clone({ ...this._zod.def, catchall: unknown() });
14377
+ },
14378
+ loose() {
14379
+ return this.clone({ ...this._zod.def, catchall: unknown() });
14380
+ },
14381
+ strict() {
14382
+ return this.clone({ ...this._zod.def, catchall: never() });
14383
+ },
14384
+ strip() {
14385
+ return this.clone({ ...this._zod.def, catchall: undefined });
14386
+ },
14387
+ extend(incoming) {
14388
+ return exports_util.extend(this, incoming);
14389
+ },
14390
+ safeExtend(incoming) {
14391
+ return exports_util.safeExtend(this, incoming);
14392
+ },
14393
+ merge(other) {
14394
+ return exports_util.merge(this, other);
14395
+ },
14396
+ pick(mask) {
14397
+ return exports_util.pick(this, mask);
14398
+ },
14399
+ omit(mask) {
14400
+ return exports_util.omit(this, mask);
14401
+ },
14402
+ partial(...args) {
14403
+ return exports_util.partial(ZodOptional, this, args[0]);
14404
+ },
14405
+ required(...args) {
14406
+ return exports_util.required(ZodNonOptional, this, args[0]);
14407
+ }
14408
+ });
13714
14409
  });
13715
14410
  function object(shape, params) {
13716
14411
  const def = {
@@ -13815,6 +14510,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
13815
14510
  inst.valueType = def.valueType;
13816
14511
  });
13817
14512
  function record(keyType, valueType, params) {
14513
+ if (!valueType || !valueType._zod) {
14514
+ return new ZodRecord({
14515
+ type: "record",
14516
+ keyType: string2(),
14517
+ valueType: keyType,
14518
+ ...exports_util.normalizeParams(valueType)
14519
+ });
14520
+ }
13818
14521
  return new ZodRecord({
13819
14522
  type: "record",
13820
14523
  keyType,
@@ -14143,6 +14846,16 @@ function codec(in_, out, params) {
14143
14846
  reverseTransform: params.encode
14144
14847
  });
14145
14848
  }
14849
+ function invertCodec(codec2) {
14850
+ const def = codec2._zod.def;
14851
+ return new ZodCodec({
14852
+ type: "pipe",
14853
+ in: def.out,
14854
+ out: def.in,
14855
+ transform: def.reverseTransform,
14856
+ reverseTransform: def.transform
14857
+ });
14858
+ }
14146
14859
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
14147
14860
  $ZodReadonly.init(inst, def);
14148
14861
  ZodType.init(inst, def);
@@ -14221,8 +14934,8 @@ function custom(fn, _params) {
14221
14934
  function refine(fn, _params = {}) {
14222
14935
  return _refine(ZodCustom, fn, _params);
14223
14936
  }
14224
- function superRefine(fn) {
14225
- return _superRefine(fn);
14937
+ function superRefine(fn, params) {
14938
+ return _superRefine(fn, params);
14226
14939
  }
14227
14940
  var describe2 = describe;
14228
14941
  var meta2 = meta;
@@ -14262,7 +14975,7 @@ function json(params) {
14262
14975
  function preprocess(fn, schema) {
14263
14976
  return pipe(transform(fn), schema);
14264
14977
  }
14265
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
14978
+ // node_modules/zod/v4/classic/compat.js
14266
14979
  var ZodIssueCode = {
14267
14980
  invalid_type: "invalid_type",
14268
14981
  too_big: "too_big",
@@ -14286,13 +14999,13 @@ function getErrorMap() {
14286
14999
  }
14287
15000
  var ZodFirstPartyTypeKind;
14288
15001
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
14289
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
15002
+ // node_modules/zod/v4/classic/from-json-schema.js
14290
15003
  var z = {
14291
15004
  ...exports_schemas2,
14292
15005
  ...exports_checks2,
14293
15006
  iso: exports_iso
14294
15007
  };
14295
- var RECOGNIZED_KEYS = new Set([
15008
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
14296
15009
  "$schema",
14297
15010
  "$ref",
14298
15011
  "$defs",
@@ -14666,12 +15379,6 @@ function convertBaseSchema(schema, ctx) {
14666
15379
  default:
14667
15380
  throw new Error(`Unsupported type: ${type}`);
14668
15381
  }
14669
- if (schema.description) {
14670
- zodSchema = zodSchema.describe(schema.description);
14671
- }
14672
- if (schema.default !== undefined) {
14673
- zodSchema = zodSchema.default(schema.default);
14674
- }
14675
15382
  return zodSchema;
14676
15383
  }
14677
15384
  function convertSchema(schema, ctx) {
@@ -14708,6 +15415,9 @@ function convertSchema(schema, ctx) {
14708
15415
  if (schema.readOnly === true) {
14709
15416
  baseSchema = z.readonly(baseSchema);
14710
15417
  }
15418
+ if (schema.default !== undefined) {
15419
+ baseSchema = baseSchema.default(schema.default);
15420
+ }
14711
15421
  const extraMeta = {};
14712
15422
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14713
15423
  for (const key of coreMetadataKeys) {
@@ -14729,25 +15439,34 @@ function convertSchema(schema, ctx) {
14729
15439
  if (Object.keys(extraMeta).length > 0) {
14730
15440
  ctx.registry.add(baseSchema, extraMeta);
14731
15441
  }
15442
+ if (schema.description) {
15443
+ baseSchema = baseSchema.describe(schema.description);
15444
+ }
14732
15445
  return baseSchema;
14733
15446
  }
14734
15447
  function fromJSONSchema(schema, params) {
14735
15448
  if (typeof schema === "boolean") {
14736
15449
  return schema ? z.any() : z.never();
14737
15450
  }
14738
- const version2 = detectVersion(schema, params?.defaultTarget);
14739
- const defs = schema.$defs || schema.definitions || {};
15451
+ let normalized;
15452
+ try {
15453
+ normalized = JSON.parse(JSON.stringify(schema));
15454
+ } catch {
15455
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
15456
+ }
15457
+ const version2 = detectVersion(normalized, params?.defaultTarget);
15458
+ const defs = normalized.$defs || normalized.definitions || {};
14740
15459
  const ctx = {
14741
15460
  version: version2,
14742
15461
  defs,
14743
15462
  refs: new Map,
14744
15463
  processing: new Set,
14745
- rootSchema: schema,
15464
+ rootSchema: normalized,
14746
15465
  registry: params?.registry ?? globalRegistry
14747
15466
  };
14748
- return convertSchema(schema, ctx);
15467
+ return convertSchema(normalized, ctx);
14749
15468
  }
14750
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
15469
+ // node_modules/zod/v4/classic/coerce.js
14751
15470
  var exports_coerce = {};
14752
15471
  __export(exports_coerce, {
14753
15472
  string: () => string3,
@@ -14772,14 +15491,16 @@ function date4(params) {
14772
15491
  return _coercedDate(ZodDate, params);
14773
15492
  }
14774
15493
 
14775
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
15494
+ // node_modules/zod/v4/classic/external.js
14776
15495
  config(en_default());
14777
- // ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/index.js
15496
+ // node_modules/nanoid/index.js
14778
15497
  import { webcrypto as crypto } from "node:crypto";
14779
15498
  var POOL_SIZE_MULTIPLIER = 128;
14780
15499
  var pool;
14781
15500
  var poolOffset;
14782
15501
  function fillPool(bytes) {
15502
+ if (bytes < 0 || bytes > 1024)
15503
+ throw new RangeError("Wrong ID size");
14783
15504
  if (!pool || pool.length < bytes) {
14784
15505
  pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
14785
15506
  crypto.getRandomValues(pool);
@@ -14856,7 +15577,7 @@ var createSkill = (skill) => {
14856
15577
  };
14857
15578
  };
14858
15579
 
14859
- // ../../node_modules/.pnpm/@kevisual+js-filter@0.0.6/node_modules/@kevisual/js-filter/dist/index.js
15580
+ // node_modules/.pnpm/@kevisual+js-filter@0.0.6/node_modules/@kevisual/js-filter/dist/index.js
14860
15581
  class Lexer {
14861
15582
  constructor(input) {
14862
15583
  this.pos = 0;