@mastra/slack 1.3.0-alpha.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -340,7 +340,7 @@ function buildManifest(options) {
340
340
  return manifest;
341
341
  }
342
342
 
343
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
343
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
344
344
  var external_exports = {};
345
345
  __export(external_exports, {
346
346
  $brand: () => $brand,
@@ -402,6 +402,7 @@ __export(external_exports, {
402
402
  ZodOptional: () => ZodOptional,
403
403
  ZodPipe: () => ZodPipe,
404
404
  ZodPrefault: () => ZodPrefault,
405
+ ZodPreprocess: () => ZodPreprocess,
405
406
  ZodPromise: () => ZodPromise,
406
407
  ZodReadonly: () => ZodReadonly,
407
408
  ZodRealError: () => ZodRealError,
@@ -480,6 +481,7 @@ __export(external_exports, {
480
481
  int32: () => int32,
481
482
  int64: () => int64,
482
483
  intersection: () => intersection,
484
+ invertCodec: () => invertCodec,
483
485
  ipv4: () => ipv42,
484
486
  ipv6: () => ipv62,
485
487
  iso: () => iso_exports,
@@ -581,7 +583,7 @@ __export(external_exports, {
581
583
  xor: () => xor
582
584
  });
583
585
 
584
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
586
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
585
587
  var core_exports2 = {};
586
588
  __export(core_exports2, {
587
589
  $ZodAny: () => $ZodAny,
@@ -661,6 +663,7 @@ __export(core_exports2, {
661
663
  $ZodOptional: () => $ZodOptional,
662
664
  $ZodPipe: () => $ZodPipe,
663
665
  $ZodPrefault: () => $ZodPrefault,
666
+ $ZodPreprocess: () => $ZodPreprocess,
664
667
  $ZodPromise: () => $ZodPromise,
665
668
  $ZodReadonly: () => $ZodReadonly,
666
669
  $ZodRealError: () => $ZodRealError,
@@ -859,8 +862,9 @@ __export(core_exports2, {
859
862
  version: () => version
860
863
  });
861
864
 
862
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
863
- var NEVER = Object.freeze({
865
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
866
+ var _a;
867
+ var NEVER = /* @__PURE__ */ Object.freeze({
864
868
  status: "aborted"
865
869
  });
866
870
  // @__NO_SIDE_EFFECTS__
@@ -895,10 +899,10 @@ function $constructor(name, initializer3, params) {
895
899
  }
896
900
  Object.defineProperty(Definition, "name", { value: name });
897
901
  function _(def) {
898
- var _a2;
902
+ var _a3;
899
903
  const inst = params?.Parent ? new Definition() : this;
900
904
  init(inst, def);
901
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
905
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
902
906
  for (const fn of inst._zod.deferred) {
903
907
  fn();
904
908
  }
@@ -927,14 +931,15 @@ var $ZodEncodeError = class extends Error {
927
931
  this.name = "ZodEncodeError";
928
932
  }
929
933
  };
930
- var globalConfig = {};
934
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
935
+ var globalConfig = globalThis.__zod_globalConfig;
931
936
  function config(newConfig) {
932
937
  if (newConfig)
933
938
  Object.assign(globalConfig, newConfig);
934
939
  return globalConfig;
935
940
  }
936
941
 
937
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
942
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
938
943
  var util_exports = {};
939
944
  __export(util_exports, {
940
945
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -960,6 +965,7 @@ __export(util_exports, {
960
965
  defineLazy: () => defineLazy,
961
966
  esc: () => esc,
962
967
  escapeRegex: () => escapeRegex,
968
+ explicitlyAborted: () => explicitlyAborted,
963
969
  extend: () => extend,
964
970
  finalizeIssue: () => finalizeIssue,
965
971
  floatSafeRemainder: () => floatSafeRemainder,
@@ -1048,19 +1054,12 @@ function cleanRegex(source) {
1048
1054
  return source.slice(start, end);
1049
1055
  }
1050
1056
  function floatSafeRemainder(val, step) {
1051
- const valDecCount = (val.toString().split(".")[1] || "").length;
1052
- const stepString = step.toString();
1053
- let stepDecCount = (stepString.split(".")[1] || "").length;
1054
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
1055
- const match = stepString.match(/\d?e-(\d?)/);
1056
- if (match?.[1]) {
1057
- stepDecCount = Number.parseInt(match[1]);
1058
- }
1059
- }
1060
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1061
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1062
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1063
- return valInt % stepInt / 10 ** decCount;
1057
+ const ratio = val / step;
1058
+ const roundedRatio = Math.round(ratio);
1059
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
1060
+ if (Math.abs(ratio - roundedRatio) < tolerance)
1061
+ return 0;
1062
+ return ratio - roundedRatio;
1064
1063
  }
1065
1064
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
1066
1065
  function defineLazy(object2, key, getter) {
@@ -1142,7 +1141,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
1142
1141
  function isObject(data) {
1143
1142
  return typeof data === "object" && data !== null && !Array.isArray(data);
1144
1143
  }
1145
- var allowsEval = cached(() => {
1144
+ var allowsEval = /* @__PURE__ */ cached(() => {
1145
+ if (globalConfig.jitless) {
1146
+ return false;
1147
+ }
1146
1148
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
1147
1149
  return false;
1148
1150
  }
@@ -1175,6 +1177,10 @@ function shallowClone(o) {
1175
1177
  return { ...o };
1176
1178
  if (Array.isArray(o))
1177
1179
  return [...o];
1180
+ if (o instanceof Map)
1181
+ return new Map(o);
1182
+ if (o instanceof Set)
1183
+ return new Set(o);
1178
1184
  return o;
1179
1185
  }
1180
1186
  function numKeys(data) {
@@ -1231,7 +1237,14 @@ var getParsedType = (data) => {
1231
1237
  }
1232
1238
  };
1233
1239
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1234
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
1240
+ var primitiveTypes = /* @__PURE__ */ new Set([
1241
+ "string",
1242
+ "number",
1243
+ "bigint",
1244
+ "boolean",
1245
+ "symbol",
1246
+ "undefined"
1247
+ ]);
1235
1248
  function escapeRegex(str) {
1236
1249
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1237
1250
  }
@@ -1400,6 +1413,9 @@ function safeExtend(schema, shape) {
1400
1413
  return clone(schema, def);
1401
1414
  }
1402
1415
  function merge(a, b) {
1416
+ if (a._zod.def.checks?.length) {
1417
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1418
+ }
1403
1419
  const def = mergeDefs(a._zod.def, {
1404
1420
  get shape() {
1405
1421
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1409,8 +1425,7 @@ function merge(a, b) {
1409
1425
  get catchall() {
1410
1426
  return b._zod.def.catchall;
1411
1427
  },
1412
- checks: []
1413
- // delete existing checks
1428
+ checks: b._zod.def.checks ?? []
1414
1429
  });
1415
1430
  return clone(a, def);
1416
1431
  }
@@ -1493,10 +1508,20 @@ function aborted(x, startIndex = 0) {
1493
1508
  }
1494
1509
  return false;
1495
1510
  }
1511
+ function explicitlyAborted(x, startIndex = 0) {
1512
+ if (x.aborted === true)
1513
+ return true;
1514
+ for (let i = startIndex; i < x.issues.length; i++) {
1515
+ if (x.issues[i]?.continue === false) {
1516
+ return true;
1517
+ }
1518
+ }
1519
+ return false;
1520
+ }
1496
1521
  function prefixIssues(path, issues) {
1497
1522
  return issues.map((iss) => {
1498
- var _a2;
1499
- (_a2 = iss).path ?? (_a2.path = []);
1523
+ var _a3;
1524
+ (_a3 = iss).path ?? (_a3.path = []);
1500
1525
  iss.path.unshift(path);
1501
1526
  return iss;
1502
1527
  });
@@ -1505,17 +1530,14 @@ function unwrapMessage(message) {
1505
1530
  return typeof message === "string" ? message : message?.message;
1506
1531
  }
1507
1532
  function finalizeIssue(iss, ctx, config2) {
1508
- const full = { ...iss, path: iss.path ?? [] };
1509
- if (!iss.message) {
1510
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1511
- full.message = message;
1533
+ 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";
1534
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
1535
+ rest.path ?? (rest.path = []);
1536
+ rest.message = message;
1537
+ if (ctx?.reportInput) {
1538
+ rest.input = _input;
1512
1539
  }
1513
- delete full.inst;
1514
- delete full.continue;
1515
- if (!ctx?.reportInput) {
1516
- delete full.input;
1517
- }
1518
- return full;
1540
+ return rest;
1519
1541
  }
1520
1542
  function getSizableOrigin(input) {
1521
1543
  if (input instanceof Set)
@@ -1613,7 +1635,7 @@ var Class = class {
1613
1635
  }
1614
1636
  };
1615
1637
 
1616
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
1638
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
1617
1639
  var initializer = (inst, def) => {
1618
1640
  inst.name = "$ZodError";
1619
1641
  Object.defineProperty(inst, "_zod", {
@@ -1632,10 +1654,10 @@ var initializer = (inst, def) => {
1632
1654
  };
1633
1655
  var $ZodError = $constructor("$ZodError", initializer);
1634
1656
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1635
- function flattenError(error48, mapper = (issue2) => issue2.message) {
1657
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
1636
1658
  const fieldErrors = {};
1637
1659
  const formErrors = [];
1638
- for (const sub of error48.issues) {
1660
+ for (const sub of error51.issues) {
1639
1661
  if (sub.path.length > 0) {
1640
1662
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1641
1663
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1645,50 +1667,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
1645
1667
  }
1646
1668
  return { formErrors, fieldErrors };
1647
1669
  }
1648
- function formatError(error48, mapper = (issue2) => issue2.message) {
1670
+ function formatError(error51, mapper = (issue2) => issue2.message) {
1649
1671
  const fieldErrors = { _errors: [] };
1650
- const processError = (error49) => {
1651
- for (const issue2 of error49.issues) {
1672
+ const processError = (error52, path = []) => {
1673
+ for (const issue2 of error52.issues) {
1652
1674
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1653
- issue2.errors.map((issues) => processError({ issues }));
1675
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1654
1676
  } else if (issue2.code === "invalid_key") {
1655
- processError({ issues: issue2.issues });
1677
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1656
1678
  } else if (issue2.code === "invalid_element") {
1657
- processError({ issues: issue2.issues });
1658
- } else if (issue2.path.length === 0) {
1659
- fieldErrors._errors.push(mapper(issue2));
1679
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1660
1680
  } else {
1661
- let curr = fieldErrors;
1662
- let i = 0;
1663
- while (i < issue2.path.length) {
1664
- const el = issue2.path[i];
1665
- const terminal = i === issue2.path.length - 1;
1666
- if (!terminal) {
1667
- curr[el] = curr[el] || { _errors: [] };
1668
- } else {
1669
- curr[el] = curr[el] || { _errors: [] };
1670
- curr[el]._errors.push(mapper(issue2));
1681
+ const fullpath = [...path, ...issue2.path];
1682
+ if (fullpath.length === 0) {
1683
+ fieldErrors._errors.push(mapper(issue2));
1684
+ } else {
1685
+ let curr = fieldErrors;
1686
+ let i = 0;
1687
+ while (i < fullpath.length) {
1688
+ const el = fullpath[i];
1689
+ const terminal = i === fullpath.length - 1;
1690
+ if (!terminal) {
1691
+ curr[el] = curr[el] || { _errors: [] };
1692
+ } else {
1693
+ curr[el] = curr[el] || { _errors: [] };
1694
+ curr[el]._errors.push(mapper(issue2));
1695
+ }
1696
+ curr = curr[el];
1697
+ i++;
1671
1698
  }
1672
- curr = curr[el];
1673
- i++;
1674
1699
  }
1675
1700
  }
1676
1701
  }
1677
1702
  };
1678
- processError(error48);
1703
+ processError(error51);
1679
1704
  return fieldErrors;
1680
1705
  }
1681
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
1706
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
1682
1707
  const result = { errors: [] };
1683
- const processError = (error49, path = []) => {
1684
- var _a2, _b;
1685
- for (const issue2 of error49.issues) {
1708
+ const processError = (error52, path = []) => {
1709
+ var _a3, _b;
1710
+ for (const issue2 of error52.issues) {
1686
1711
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1687
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
1712
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1688
1713
  } else if (issue2.code === "invalid_key") {
1689
- processError({ issues: issue2.issues }, issue2.path);
1714
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1690
1715
  } else if (issue2.code === "invalid_element") {
1691
- processError({ issues: issue2.issues }, issue2.path);
1716
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1692
1717
  } else {
1693
1718
  const fullpath = [...path, ...issue2.path];
1694
1719
  if (fullpath.length === 0) {
@@ -1702,7 +1727,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
1702
1727
  const terminal = i === fullpath.length - 1;
1703
1728
  if (typeof el === "string") {
1704
1729
  curr.properties ?? (curr.properties = {});
1705
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1730
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1706
1731
  curr = curr.properties[el];
1707
1732
  } else {
1708
1733
  curr.items ?? (curr.items = []);
@@ -1717,7 +1742,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
1717
1742
  }
1718
1743
  }
1719
1744
  };
1720
- processError(error48);
1745
+ processError(error51);
1721
1746
  return result;
1722
1747
  }
1723
1748
  function toDotPath(_path) {
@@ -1738,9 +1763,9 @@ function toDotPath(_path) {
1738
1763
  }
1739
1764
  return segs.join("");
1740
1765
  }
1741
- function prettifyError(error48) {
1766
+ function prettifyError(error51) {
1742
1767
  const lines = [];
1743
- const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1768
+ const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1744
1769
  for (const issue2 of issues) {
1745
1770
  lines.push(`\u2716 ${issue2.message}`);
1746
1771
  if (issue2.path?.length)
@@ -1749,9 +1774,9 @@ function prettifyError(error48) {
1749
1774
  return lines.join("\n");
1750
1775
  }
1751
1776
 
1752
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
1777
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
1753
1778
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1754
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1779
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1755
1780
  const result = schema._zod.run({ value, issues: [] }, ctx);
1756
1781
  if (result instanceof Promise) {
1757
1782
  throw new $ZodAsyncError();
@@ -1765,7 +1790,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
1765
1790
  };
1766
1791
  var parse = /* @__PURE__ */ _parse($ZodRealError);
1767
1792
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1768
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1793
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1769
1794
  let result = schema._zod.run({ value, issues: [] }, ctx);
1770
1795
  if (result instanceof Promise)
1771
1796
  result = await result;
@@ -1790,7 +1815,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
1790
1815
  };
1791
1816
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1792
1817
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1793
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1818
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1794
1819
  let result = schema._zod.run({ value, issues: [] }, ctx);
1795
1820
  if (result instanceof Promise)
1796
1821
  result = await result;
@@ -1801,7 +1826,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1801
1826
  };
1802
1827
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1803
1828
  var _encode = (_Err) => (schema, value, _ctx) => {
1804
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1829
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1805
1830
  return _parse(_Err)(schema, value, ctx);
1806
1831
  };
1807
1832
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -1810,7 +1835,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
1810
1835
  };
1811
1836
  var decode = /* @__PURE__ */ _decode($ZodRealError);
1812
1837
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1813
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1838
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1814
1839
  return _parseAsync(_Err)(schema, value, ctx);
1815
1840
  };
1816
1841
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -1819,7 +1844,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
1819
1844
  };
1820
1845
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
1821
1846
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
1822
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1847
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1823
1848
  return _safeParse(_Err)(schema, value, ctx);
1824
1849
  };
1825
1850
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -1828,7 +1853,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
1828
1853
  };
1829
1854
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
1830
1855
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1831
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1856
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1832
1857
  return _safeParseAsync(_Err)(schema, value, ctx);
1833
1858
  };
1834
1859
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -1837,7 +1862,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1837
1862
  };
1838
1863
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1839
1864
 
1840
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
1865
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
1841
1866
  var regexes_exports = {};
1842
1867
  __export(regexes_exports, {
1843
1868
  base64: () => base64,
@@ -1861,6 +1886,7 @@ __export(regexes_exports, {
1861
1886
  hex: () => hex,
1862
1887
  hostname: () => hostname,
1863
1888
  html5Email: () => html5Email,
1889
+ httpProtocol: () => httpProtocol,
1864
1890
  idnEmail: () => idnEmail,
1865
1891
  integer: () => integer,
1866
1892
  ipv4: () => ipv4,
@@ -1899,7 +1925,7 @@ __export(regexes_exports, {
1899
1925
  uuid7: () => uuid7,
1900
1926
  xid: () => xid
1901
1927
  });
1902
- var cuid = /^[cC][^\s-]{8,}$/;
1928
+ var cuid = /^[cC][0-9a-z]{6,}$/;
1903
1929
  var cuid2 = /^[0-9a-z]+$/;
1904
1930
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1905
1931
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -1938,6 +1964,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
1938
1964
  var base64url = /^[A-Za-z0-9_-]*$/;
1939
1965
  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])?)*\.?$/;
1940
1966
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1967
+ var httpProtocol = /^https?$/;
1941
1968
  var e164 = /^\+[1-9]\d{6,14}$/;
1942
1969
  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])))`;
1943
1970
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1994,12 +2021,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1994
2021
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1995
2022
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1996
2023
 
1997
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
2024
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
1998
2025
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1999
- var _a2;
2026
+ var _a3;
2000
2027
  inst._zod ?? (inst._zod = {});
2001
2028
  inst._zod.def = def;
2002
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
2029
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
2003
2030
  });
2004
2031
  var numericOriginMap = {
2005
2032
  number: "number",
@@ -2065,8 +2092,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2065
2092
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2066
2093
  $ZodCheck.init(inst, def);
2067
2094
  inst._zod.onattach.push((inst2) => {
2068
- var _a2;
2069
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
2095
+ var _a3;
2096
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
2070
2097
  });
2071
2098
  inst._zod.check = (payload) => {
2072
2099
  if (typeof payload.value !== typeof def.value)
@@ -2199,9 +2226,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2199
2226
  };
2200
2227
  });
2201
2228
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2202
- var _a2;
2229
+ var _a3;
2203
2230
  $ZodCheck.init(inst, def);
2204
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2231
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2205
2232
  const val = payload.value;
2206
2233
  return !nullish(val) && val.size !== void 0;
2207
2234
  });
@@ -2227,9 +2254,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2227
2254
  };
2228
2255
  });
2229
2256
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2230
- var _a2;
2257
+ var _a3;
2231
2258
  $ZodCheck.init(inst, def);
2232
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2259
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2233
2260
  const val = payload.value;
2234
2261
  return !nullish(val) && val.size !== void 0;
2235
2262
  });
@@ -2255,9 +2282,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2255
2282
  };
2256
2283
  });
2257
2284
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2258
- var _a2;
2285
+ var _a3;
2259
2286
  $ZodCheck.init(inst, def);
2260
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2287
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2261
2288
  const val = payload.value;
2262
2289
  return !nullish(val) && val.size !== void 0;
2263
2290
  });
@@ -2285,9 +2312,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2285
2312
  };
2286
2313
  });
2287
2314
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2288
- var _a2;
2315
+ var _a3;
2289
2316
  $ZodCheck.init(inst, def);
2290
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2317
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2291
2318
  const val = payload.value;
2292
2319
  return !nullish(val) && val.length !== void 0;
2293
2320
  });
@@ -2314,9 +2341,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2314
2341
  };
2315
2342
  });
2316
2343
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2317
- var _a2;
2344
+ var _a3;
2318
2345
  $ZodCheck.init(inst, def);
2319
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2346
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2320
2347
  const val = payload.value;
2321
2348
  return !nullish(val) && val.length !== void 0;
2322
2349
  });
@@ -2343,9 +2370,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2343
2370
  };
2344
2371
  });
2345
2372
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2346
- var _a2;
2373
+ var _a3;
2347
2374
  $ZodCheck.init(inst, def);
2348
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2375
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2349
2376
  const val = payload.value;
2350
2377
  return !nullish(val) && val.length !== void 0;
2351
2378
  });
@@ -2374,7 +2401,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2374
2401
  };
2375
2402
  });
2376
2403
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2377
- var _a2, _b;
2404
+ var _a3, _b;
2378
2405
  $ZodCheck.init(inst, def);
2379
2406
  inst._zod.onattach.push((inst2) => {
2380
2407
  const bag = inst2._zod.bag;
@@ -2385,7 +2412,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2385
2412
  }
2386
2413
  });
2387
2414
  if (def.pattern)
2388
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2415
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2389
2416
  def.pattern.lastIndex = 0;
2390
2417
  if (def.pattern.test(payload.value))
2391
2418
  return;
@@ -2542,7 +2569,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2542
2569
  };
2543
2570
  });
2544
2571
 
2545
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
2572
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
2546
2573
  var Doc = class {
2547
2574
  constructor(args = []) {
2548
2575
  this.content = [];
@@ -2578,16 +2605,16 @@ var Doc = class {
2578
2605
  }
2579
2606
  };
2580
2607
 
2581
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
2608
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
2582
2609
  var version = {
2583
2610
  major: 4,
2584
- minor: 3,
2585
- patch: 6
2611
+ minor: 4,
2612
+ patch: 3
2586
2613
  };
2587
2614
 
2588
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
2615
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
2589
2616
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2590
- var _a2;
2617
+ var _a3;
2591
2618
  inst ?? (inst = {});
2592
2619
  inst._zod.def = def;
2593
2620
  inst._zod.bag = inst._zod.bag || {};
@@ -2602,7 +2629,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2602
2629
  }
2603
2630
  }
2604
2631
  if (checks.length === 0) {
2605
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2632
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2606
2633
  inst._zod.deferred?.push(() => {
2607
2634
  inst._zod.run = inst._zod.parse;
2608
2635
  });
@@ -2612,6 +2639,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2612
2639
  let asyncResult;
2613
2640
  for (const ch of checks2) {
2614
2641
  if (ch._zod.def.when) {
2642
+ if (explicitlyAborted(payload))
2643
+ continue;
2615
2644
  const shouldRun = ch._zod.def.when(payload);
2616
2645
  if (!shouldRun)
2617
2646
  continue;
@@ -2752,6 +2781,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
2752
2781
  inst._zod.check = (payload) => {
2753
2782
  try {
2754
2783
  const trimmed = payload.value.trim();
2784
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
2785
+ if (!/^https?:\/\//i.test(trimmed)) {
2786
+ payload.issues.push({
2787
+ code: "invalid_format",
2788
+ format: "url",
2789
+ note: "Invalid URL format",
2790
+ input: payload.value,
2791
+ inst,
2792
+ continue: !def.abort
2793
+ });
2794
+ return;
2795
+ }
2796
+ }
2755
2797
  const url2 = new URL(trimmed);
2756
2798
  if (def.hostname) {
2757
2799
  def.hostname.lastIndex = 0;
@@ -2905,6 +2947,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
2905
2947
  function isValidBase64(data) {
2906
2948
  if (data === "")
2907
2949
  return true;
2950
+ if (/\s/.test(data))
2951
+ return false;
2908
2952
  if (data.length % 4 !== 0)
2909
2953
  return false;
2910
2954
  try {
@@ -3097,8 +3141,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
3097
3141
  $ZodType.init(inst, def);
3098
3142
  inst._zod.pattern = _undefined;
3099
3143
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
3100
- inst._zod.optin = "optional";
3101
- inst._zod.optout = "optional";
3102
3144
  inst._zod.parse = (payload, _ctx) => {
3103
3145
  const input = payload.value;
3104
3146
  if (typeof input === "undefined")
@@ -3227,15 +3269,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3227
3269
  return payload;
3228
3270
  };
3229
3271
  });
3230
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3272
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3273
+ const isPresent = key in input;
3231
3274
  if (result.issues.length) {
3232
- if (isOptionalOut && !(key in input)) {
3275
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3233
3276
  return;
3234
3277
  }
3235
3278
  final.issues.push(...prefixIssues(key, result.issues));
3236
3279
  }
3280
+ if (!isPresent && !isOptionalIn) {
3281
+ if (!result.issues.length) {
3282
+ final.issues.push({
3283
+ code: "invalid_type",
3284
+ expected: "nonoptional",
3285
+ input: void 0,
3286
+ path: [key]
3287
+ });
3288
+ }
3289
+ return;
3290
+ }
3237
3291
  if (result.value === void 0) {
3238
- if (key in input) {
3292
+ if (isPresent) {
3239
3293
  final.value[key] = void 0;
3240
3294
  }
3241
3295
  } else {
@@ -3263,8 +3317,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3263
3317
  const keySet = def.keySet;
3264
3318
  const _catchall = def.catchall._zod;
3265
3319
  const t = _catchall.def.type;
3320
+ const isOptionalIn = _catchall.optin === "optional";
3266
3321
  const isOptionalOut = _catchall.optout === "optional";
3267
3322
  for (const key in input) {
3323
+ if (key === "__proto__")
3324
+ continue;
3268
3325
  if (keySet.has(key))
3269
3326
  continue;
3270
3327
  if (t === "never") {
@@ -3273,9 +3330,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3273
3330
  }
3274
3331
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3275
3332
  if (r instanceof Promise) {
3276
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3333
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3277
3334
  } else {
3278
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3335
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3279
3336
  }
3280
3337
  }
3281
3338
  if (unrecognized.length) {
@@ -3341,12 +3398,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3341
3398
  const shape = value.shape;
3342
3399
  for (const key of value.keys) {
3343
3400
  const el = shape[key];
3401
+ const isOptionalIn = el._zod.optin === "optional";
3344
3402
  const isOptionalOut = el._zod.optout === "optional";
3345
3403
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3346
3404
  if (r instanceof Promise) {
3347
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3405
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3348
3406
  } else {
3349
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3407
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3350
3408
  }
3351
3409
  }
3352
3410
  if (!catchall) {
@@ -3377,9 +3435,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3377
3435
  const id = ids[key];
3378
3436
  const k = esc(key);
3379
3437
  const schema = shape[key];
3438
+ const isOptionalIn = schema?._zod?.optin === "optional";
3380
3439
  const isOptionalOut = schema?._zod?.optout === "optional";
3381
3440
  doc.write(`const ${id} = ${parseStr(key)};`);
3382
- if (isOptionalOut) {
3441
+ if (isOptionalIn && isOptionalOut) {
3383
3442
  doc.write(`
3384
3443
  if (${id}.issues.length) {
3385
3444
  if (${k} in input) {
@@ -3398,6 +3457,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3398
3457
  newResult[${k}] = ${id}.value;
3399
3458
  }
3400
3459
 
3460
+ `);
3461
+ } else if (!isOptionalIn) {
3462
+ doc.write(`
3463
+ const ${id}_present = ${k} in input;
3464
+ if (${id}.issues.length) {
3465
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
3466
+ ...iss,
3467
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
3468
+ })));
3469
+ }
3470
+ if (!${id}_present && !${id}.issues.length) {
3471
+ payload.issues.push({
3472
+ code: "invalid_type",
3473
+ expected: "nonoptional",
3474
+ input: undefined,
3475
+ path: [${k}]
3476
+ });
3477
+ }
3478
+
3479
+ if (${id}_present) {
3480
+ if (${id}.value === undefined) {
3481
+ newResult[${k}] = undefined;
3482
+ } else {
3483
+ newResult[${k}] = ${id}.value;
3484
+ }
3485
+ }
3486
+
3401
3487
  `);
3402
3488
  } else {
3403
3489
  doc.write(`
@@ -3491,10 +3577,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3491
3577
  }
3492
3578
  return void 0;
3493
3579
  });
3494
- const single = def.options.length === 1;
3495
- const first = def.options[0]._zod.run;
3580
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3496
3581
  inst._zod.parse = (payload, ctx) => {
3497
- if (single) {
3582
+ if (first) {
3498
3583
  return first(payload, ctx);
3499
3584
  }
3500
3585
  let async = false;
@@ -3547,10 +3632,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
3547
3632
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3548
3633
  $ZodUnion.init(inst, def);
3549
3634
  def.inclusive = false;
3550
- const single = def.options.length === 1;
3551
- const first = def.options[0]._zod.run;
3635
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3552
3636
  inst._zod.parse = (payload, ctx) => {
3553
- if (single) {
3637
+ if (first) {
3554
3638
  return first(payload, ctx);
3555
3639
  }
3556
3640
  let async = false;
@@ -3625,7 +3709,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3625
3709
  if (opt) {
3626
3710
  return opt._zod.run(payload, ctx);
3627
3711
  }
3628
- if (def.unionFallback) {
3712
+ if (def.unionFallback || ctx.direction === "backward") {
3629
3713
  return _super(payload, ctx);
3630
3714
  }
3631
3715
  payload.issues.push({
@@ -3633,6 +3717,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3633
3717
  errors: [],
3634
3718
  note: "No matching discriminator",
3635
3719
  discriminator: def.discriminator,
3720
+ options: Array.from(disc.value.keys()),
3636
3721
  input,
3637
3722
  path: [def.discriminator],
3638
3723
  inst
@@ -3754,64 +3839,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
3754
3839
  }
3755
3840
  payload.value = [];
3756
3841
  const proms = [];
3757
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
3758
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
3842
+ const optinStart = getTupleOptStart(items, "optin");
3843
+ const optoutStart = getTupleOptStart(items, "optout");
3759
3844
  if (!def.rest) {
3760
- const tooBig = input.length > items.length;
3761
- const tooSmall = input.length < optStart - 1;
3762
- if (tooBig || tooSmall) {
3845
+ if (input.length < optinStart) {
3763
3846
  payload.issues.push({
3764
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
3847
+ code: "too_small",
3848
+ minimum: optinStart,
3849
+ inclusive: true,
3765
3850
  input,
3766
3851
  inst,
3767
3852
  origin: "array"
3768
3853
  });
3769
3854
  return payload;
3770
3855
  }
3771
- }
3772
- let i = -1;
3773
- for (const item of items) {
3774
- i++;
3775
- if (i >= input.length) {
3776
- if (i >= optStart)
3777
- continue;
3856
+ if (input.length > items.length) {
3857
+ payload.issues.push({
3858
+ code: "too_big",
3859
+ maximum: items.length,
3860
+ inclusive: true,
3861
+ input,
3862
+ inst,
3863
+ origin: "array"
3864
+ });
3778
3865
  }
3779
- const result = item._zod.run({
3780
- value: input[i],
3781
- issues: []
3782
- }, ctx);
3783
- if (result instanceof Promise) {
3784
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3866
+ }
3867
+ const itemResults = new Array(items.length);
3868
+ for (let i = 0; i < items.length; i++) {
3869
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
3870
+ if (r instanceof Promise) {
3871
+ proms.push(r.then((rr) => {
3872
+ itemResults[i] = rr;
3873
+ }));
3785
3874
  } else {
3786
- handleTupleResult(result, payload, i);
3875
+ itemResults[i] = r;
3787
3876
  }
3788
3877
  }
3789
3878
  if (def.rest) {
3879
+ let i = items.length - 1;
3790
3880
  const rest = input.slice(items.length);
3791
3881
  for (const el of rest) {
3792
3882
  i++;
3793
- const result = def.rest._zod.run({
3794
- value: el,
3795
- issues: []
3796
- }, ctx);
3883
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
3797
3884
  if (result instanceof Promise) {
3798
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3885
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
3799
3886
  } else {
3800
3887
  handleTupleResult(result, payload, i);
3801
3888
  }
3802
3889
  }
3803
3890
  }
3804
- if (proms.length)
3805
- return Promise.all(proms).then(() => payload);
3806
- return payload;
3891
+ if (proms.length) {
3892
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
3893
+ }
3894
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
3807
3895
  };
3808
3896
  });
3897
+ function getTupleOptStart(items, key) {
3898
+ for (let i = items.length - 1; i >= 0; i--) {
3899
+ if (items[i]._zod[key] !== "optional")
3900
+ return i + 1;
3901
+ }
3902
+ return 0;
3903
+ }
3809
3904
  function handleTupleResult(result, final, index) {
3810
3905
  if (result.issues.length) {
3811
3906
  final.issues.push(...prefixIssues(index, result.issues));
3812
3907
  }
3813
3908
  final.value[index] = result.value;
3814
3909
  }
3910
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
3911
+ for (let i = 0; i < items.length; i++) {
3912
+ const r = itemResults[i];
3913
+ const isPresent = i < input.length;
3914
+ if (r.issues.length) {
3915
+ if (!isPresent && i >= optoutStart) {
3916
+ final.value.length = i;
3917
+ break;
3918
+ }
3919
+ final.issues.push(...prefixIssues(i, r.issues));
3920
+ }
3921
+ final.value[i] = r.value;
3922
+ }
3923
+ for (let i = final.value.length - 1; i >= input.length; i--) {
3924
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
3925
+ final.value.length = i;
3926
+ } else {
3927
+ break;
3928
+ }
3929
+ }
3930
+ return final;
3931
+ }
3815
3932
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3816
3933
  $ZodType.init(inst, def);
3817
3934
  inst._zod.parse = (payload, ctx) => {
@@ -3833,19 +3950,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3833
3950
  for (const key of values) {
3834
3951
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3835
3952
  recordKeys.add(typeof key === "number" ? key.toString() : key);
3953
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3954
+ if (keyResult instanceof Promise) {
3955
+ throw new Error("Async schemas not supported in object keys currently");
3956
+ }
3957
+ if (keyResult.issues.length) {
3958
+ payload.issues.push({
3959
+ code: "invalid_key",
3960
+ origin: "record",
3961
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3962
+ input: key,
3963
+ path: [key],
3964
+ inst
3965
+ });
3966
+ continue;
3967
+ }
3968
+ const outKey = keyResult.value;
3836
3969
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3837
3970
  if (result instanceof Promise) {
3838
3971
  proms.push(result.then((result2) => {
3839
3972
  if (result2.issues.length) {
3840
3973
  payload.issues.push(...prefixIssues(key, result2.issues));
3841
3974
  }
3842
- payload.value[key] = result2.value;
3975
+ payload.value[outKey] = result2.value;
3843
3976
  }));
3844
3977
  } else {
3845
3978
  if (result.issues.length) {
3846
3979
  payload.issues.push(...prefixIssues(key, result.issues));
3847
3980
  }
3848
- payload.value[key] = result.value;
3981
+ payload.value[outKey] = result.value;
3849
3982
  }
3850
3983
  }
3851
3984
  }
@@ -3869,6 +4002,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3869
4002
  for (const key of Reflect.ownKeys(input)) {
3870
4003
  if (key === "__proto__")
3871
4004
  continue;
4005
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
4006
+ continue;
3872
4007
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3873
4008
  if (keyResult instanceof Promise) {
3874
4009
  throw new Error("Async schemas not supported in object keys currently");
@@ -4073,6 +4208,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
4073
4208
  });
4074
4209
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
4075
4210
  $ZodType.init(inst, def);
4211
+ inst._zod.optin = "optional";
4076
4212
  inst._zod.parse = (payload, ctx) => {
4077
4213
  if (ctx.direction === "backward") {
4078
4214
  throw new $ZodEncodeError(inst.constructor.name);
@@ -4082,6 +4218,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4082
4218
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
4083
4219
  return output.then((output2) => {
4084
4220
  payload.value = output2;
4221
+ payload.fallback = true;
4085
4222
  return payload;
4086
4223
  });
4087
4224
  }
@@ -4089,11 +4226,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4089
4226
  throw new $ZodAsyncError();
4090
4227
  }
4091
4228
  payload.value = _out;
4229
+ payload.fallback = true;
4092
4230
  return payload;
4093
4231
  };
4094
4232
  });
4095
4233
  function handleOptionalResult(result, input) {
4096
- if (result.issues.length && input === void 0) {
4234
+ if (input === void 0 && (result.issues.length || result.fallback)) {
4097
4235
  return { issues: [], value: void 0 };
4098
4236
  }
4099
4237
  return result;
@@ -4111,10 +4249,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
4111
4249
  });
4112
4250
  inst._zod.parse = (payload, ctx) => {
4113
4251
  if (def.innerType._zod.optin === "optional") {
4252
+ const input = payload.value;
4114
4253
  const result = def.innerType._zod.run(payload, ctx);
4115
4254
  if (result instanceof Promise)
4116
- return result.then((r) => handleOptionalResult(r, payload.value));
4117
- return handleOptionalResult(result, payload.value);
4255
+ return result.then((r) => handleOptionalResult(r, input));
4256
+ return handleOptionalResult(result, input);
4118
4257
  }
4119
4258
  if (payload.value === void 0) {
4120
4259
  return payload;
@@ -4230,7 +4369,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
4230
4369
  });
4231
4370
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4232
4371
  $ZodType.init(inst, def);
4233
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4372
+ inst._zod.optin = "optional";
4234
4373
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4235
4374
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4236
4375
  inst._zod.parse = (payload, ctx) => {
@@ -4250,6 +4389,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4250
4389
  input: payload.value
4251
4390
  });
4252
4391
  payload.issues = [];
4392
+ payload.fallback = true;
4253
4393
  }
4254
4394
  return payload;
4255
4395
  });
@@ -4264,6 +4404,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4264
4404
  input: payload.value
4265
4405
  });
4266
4406
  payload.issues = [];
4407
+ payload.fallback = true;
4267
4408
  }
4268
4409
  return payload;
4269
4410
  };
@@ -4309,7 +4450,7 @@ function handlePipeResult(left, next, ctx) {
4309
4450
  left.aborted = true;
4310
4451
  return left;
4311
4452
  }
4312
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
4453
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
4313
4454
  }
4314
4455
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
4315
4456
  $ZodType.init(inst, def);
@@ -4361,6 +4502,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
4361
4502
  }
4362
4503
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
4363
4504
  }
4505
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
4506
+ $ZodPipe.init(inst, def);
4507
+ });
4364
4508
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4365
4509
  $ZodType.init(inst, def);
4366
4510
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -4512,7 +4656,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
4512
4656
  });
4513
4657
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4514
4658
  $ZodType.init(inst, def);
4515
- defineLazy(inst._zod, "innerType", () => def.getter());
4659
+ defineLazy(inst._zod, "innerType", () => {
4660
+ const d = def;
4661
+ if (!d._cachedInner)
4662
+ d._cachedInner = def.getter();
4663
+ return d._cachedInner;
4664
+ });
4516
4665
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4517
4666
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4518
4667
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4556,7 +4705,7 @@ function handleRefineResult(result, payload, input, inst) {
4556
4705
  }
4557
4706
  }
4558
4707
 
4559
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
4708
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
4560
4709
  var locales_exports = {};
4561
4710
  __export(locales_exports, {
4562
4711
  ar: () => ar_default,
@@ -4567,6 +4716,7 @@ __export(locales_exports, {
4567
4716
  cs: () => cs_default,
4568
4717
  da: () => da_default,
4569
4718
  de: () => de_default,
4719
+ el: () => el_default,
4570
4720
  en: () => en_default,
4571
4721
  eo: () => eo_default,
4572
4722
  es: () => es_default,
@@ -4575,6 +4725,7 @@ __export(locales_exports, {
4575
4725
  fr: () => fr_default,
4576
4726
  frCA: () => fr_CA_default,
4577
4727
  he: () => he_default,
4728
+ hr: () => hr_default,
4578
4729
  hu: () => hu_default,
4579
4730
  hy: () => hy_default,
4580
4731
  id: () => id_default,
@@ -4594,6 +4745,7 @@ __export(locales_exports, {
4594
4745
  pl: () => pl_default,
4595
4746
  ps: () => ps_default,
4596
4747
  pt: () => pt_default,
4748
+ ro: () => ro_default,
4597
4749
  ru: () => ru_default,
4598
4750
  sl: () => sl_default,
4599
4751
  sv: () => sv_default,
@@ -4610,7 +4762,7 @@ __export(locales_exports, {
4610
4762
  zhTW: () => zh_TW_default
4611
4763
  });
4612
4764
 
4613
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
4765
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
4614
4766
  var error = () => {
4615
4767
  const Sizable = {
4616
4768
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -4717,7 +4869,7 @@ function ar_default() {
4717
4869
  };
4718
4870
  }
4719
4871
 
4720
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
4872
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
4721
4873
  var error2 = () => {
4722
4874
  const Sizable = {
4723
4875
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -4823,7 +4975,7 @@ function az_default() {
4823
4975
  };
4824
4976
  }
4825
4977
 
4826
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
4978
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
4827
4979
  function getBelarusianPlural(count, one, few, many) {
4828
4980
  const absCount = Math.abs(count);
4829
4981
  const lastDigit = absCount % 10;
@@ -4980,7 +5132,7 @@ function be_default() {
4980
5132
  };
4981
5133
  }
4982
5134
 
4983
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
5135
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
4984
5136
  var error4 = () => {
4985
5137
  const Sizable = {
4986
5138
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -5101,7 +5253,7 @@ function bg_default() {
5101
5253
  };
5102
5254
  }
5103
5255
 
5104
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
5256
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
5105
5257
  var error5 = () => {
5106
5258
  const Sizable = {
5107
5259
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5210,7 +5362,7 @@ function ca_default() {
5210
5362
  };
5211
5363
  }
5212
5364
 
5213
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
5365
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
5214
5366
  var error6 = () => {
5215
5367
  const Sizable = {
5216
5368
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -5322,7 +5474,7 @@ function cs_default() {
5322
5474
  };
5323
5475
  }
5324
5476
 
5325
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
5477
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
5326
5478
  var error7 = () => {
5327
5479
  const Sizable = {
5328
5480
  string: { unit: "tegn", verb: "havde" },
@@ -5438,7 +5590,7 @@ function da_default() {
5438
5590
  };
5439
5591
  }
5440
5592
 
5441
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
5593
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
5442
5594
  var error8 = () => {
5443
5595
  const Sizable = {
5444
5596
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -5547,8 +5699,118 @@ function de_default() {
5547
5699
  };
5548
5700
  }
5549
5701
 
5550
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
5702
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
5551
5703
  var error9 = () => {
5704
+ const Sizable = {
5705
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5706
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5707
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5708
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5709
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
5710
+ };
5711
+ function getSizing(origin) {
5712
+ return Sizable[origin] ?? null;
5713
+ }
5714
+ const FormatDictionary = {
5715
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
5716
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
5717
+ url: "URL",
5718
+ emoji: "emoji",
5719
+ uuid: "UUID",
5720
+ uuidv4: "UUIDv4",
5721
+ uuidv6: "UUIDv6",
5722
+ nanoid: "nanoid",
5723
+ guid: "GUID",
5724
+ cuid: "cuid",
5725
+ cuid2: "cuid2",
5726
+ ulid: "ULID",
5727
+ xid: "XID",
5728
+ ksuid: "KSUID",
5729
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
5730
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
5731
+ time: "ISO \u03CE\u03C1\u03B1",
5732
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
5733
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
5734
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
5735
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
5736
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
5737
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
5738
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
5739
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
5740
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
5741
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
5742
+ jwt: "JWT",
5743
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
5744
+ };
5745
+ const TypeDictionary = {
5746
+ nan: "NaN"
5747
+ };
5748
+ return (issue2) => {
5749
+ switch (issue2.code) {
5750
+ case "invalid_type": {
5751
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5752
+ const receivedType = parsedType(issue2.input);
5753
+ const received = TypeDictionary[receivedType] ?? receivedType;
5754
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
5755
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
5756
+ }
5757
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
5758
+ }
5759
+ case "invalid_value":
5760
+ if (issue2.values.length === 1)
5761
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
5762
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
5763
+ case "too_big": {
5764
+ const adj = issue2.inclusive ? "<=" : "<";
5765
+ const sizing = getSizing(issue2.origin);
5766
+ if (sizing)
5767
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
5768
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
5769
+ }
5770
+ case "too_small": {
5771
+ const adj = issue2.inclusive ? ">=" : ">";
5772
+ const sizing = getSizing(issue2.origin);
5773
+ if (sizing) {
5774
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5775
+ }
5776
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
5777
+ }
5778
+ case "invalid_format": {
5779
+ const _issue = issue2;
5780
+ if (_issue.format === "starts_with") {
5781
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
5782
+ }
5783
+ if (_issue.format === "ends_with")
5784
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
5785
+ if (_issue.format === "includes")
5786
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
5787
+ if (_issue.format === "regex")
5788
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
5789
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
5790
+ }
5791
+ case "not_multiple_of":
5792
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
5793
+ case "unrecognized_keys":
5794
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
5795
+ case "invalid_key":
5796
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
5797
+ case "invalid_union":
5798
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
5799
+ case "invalid_element":
5800
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
5801
+ default:
5802
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
5803
+ }
5804
+ };
5805
+ };
5806
+ function el_default() {
5807
+ return {
5808
+ localeError: error9()
5809
+ };
5810
+ }
5811
+
5812
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
5813
+ var error10 = () => {
5552
5814
  const Sizable = {
5553
5815
  string: { unit: "characters", verb: "to have" },
5554
5816
  file: { unit: "bytes", verb: "to have" },
@@ -5642,6 +5904,10 @@ var error9 = () => {
5642
5904
  case "invalid_key":
5643
5905
  return `Invalid key in ${issue2.origin}`;
5644
5906
  case "invalid_union":
5907
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
5908
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
5909
+ return `Invalid discriminator value. Expected ${opts}`;
5910
+ }
5645
5911
  return "Invalid input";
5646
5912
  case "invalid_element":
5647
5913
  return `Invalid value in ${issue2.origin}`;
@@ -5652,12 +5918,12 @@ var error9 = () => {
5652
5918
  };
5653
5919
  function en_default() {
5654
5920
  return {
5655
- localeError: error9()
5921
+ localeError: error10()
5656
5922
  };
5657
5923
  }
5658
5924
 
5659
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
5660
- var error10 = () => {
5925
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
5926
+ var error11 = () => {
5661
5927
  const Sizable = {
5662
5928
  string: { unit: "karaktrojn", verb: "havi" },
5663
5929
  file: { unit: "bajtojn", verb: "havi" },
@@ -5762,12 +6028,12 @@ var error10 = () => {
5762
6028
  };
5763
6029
  function eo_default() {
5764
6030
  return {
5765
- localeError: error10()
6031
+ localeError: error11()
5766
6032
  };
5767
6033
  }
5768
6034
 
5769
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
5770
- var error11 = () => {
6035
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
6036
+ var error12 = () => {
5771
6037
  const Sizable = {
5772
6038
  string: { unit: "caracteres", verb: "tener" },
5773
6039
  file: { unit: "bytes", verb: "tener" },
@@ -5895,12 +6161,12 @@ var error11 = () => {
5895
6161
  };
5896
6162
  function es_default() {
5897
6163
  return {
5898
- localeError: error11()
6164
+ localeError: error12()
5899
6165
  };
5900
6166
  }
5901
6167
 
5902
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
5903
- var error12 = () => {
6168
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
6169
+ var error13 = () => {
5904
6170
  const Sizable = {
5905
6171
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5906
6172
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6010,12 +6276,12 @@ var error12 = () => {
6010
6276
  };
6011
6277
  function fa_default() {
6012
6278
  return {
6013
- localeError: error12()
6279
+ localeError: error13()
6014
6280
  };
6015
6281
  }
6016
6282
 
6017
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
6018
- var error13 = () => {
6283
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
6284
+ var error14 = () => {
6019
6285
  const Sizable = {
6020
6286
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
6021
6287
  file: { unit: "tavua", subject: "tiedoston" },
@@ -6123,12 +6389,12 @@ var error13 = () => {
6123
6389
  };
6124
6390
  function fi_default() {
6125
6391
  return {
6126
- localeError: error13()
6392
+ localeError: error14()
6127
6393
  };
6128
6394
  }
6129
6395
 
6130
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
6131
- var error14 = () => {
6396
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
6397
+ var error15 = () => {
6132
6398
  const Sizable = {
6133
6399
  string: { unit: "caract\xE8res", verb: "avoir" },
6134
6400
  file: { unit: "octets", verb: "avoir" },
@@ -6169,9 +6435,27 @@ var error14 = () => {
6169
6435
  template_literal: "entr\xE9e"
6170
6436
  };
6171
6437
  const TypeDictionary = {
6172
- nan: "NaN",
6438
+ string: "cha\xEEne",
6173
6439
  number: "nombre",
6174
- array: "tableau"
6440
+ int: "entier",
6441
+ boolean: "bool\xE9en",
6442
+ bigint: "grand entier",
6443
+ symbol: "symbole",
6444
+ undefined: "ind\xE9fini",
6445
+ null: "null",
6446
+ never: "jamais",
6447
+ void: "vide",
6448
+ date: "date",
6449
+ array: "tableau",
6450
+ object: "objet",
6451
+ tuple: "tuple",
6452
+ record: "enregistrement",
6453
+ map: "carte",
6454
+ set: "ensemble",
6455
+ file: "fichier",
6456
+ nonoptional: "non-optionnel",
6457
+ nan: "NaN",
6458
+ function: "fonction"
6175
6459
  };
6176
6460
  return (issue2) => {
6177
6461
  switch (issue2.code) {
@@ -6192,16 +6476,15 @@ var error14 = () => {
6192
6476
  const adj = issue2.inclusive ? "<=" : "<";
6193
6477
  const sizing = getSizing(issue2.origin);
6194
6478
  if (sizing)
6195
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6196
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6479
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6480
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6197
6481
  }
6198
6482
  case "too_small": {
6199
6483
  const adj = issue2.inclusive ? ">=" : ">";
6200
6484
  const sizing = getSizing(issue2.origin);
6201
- if (sizing) {
6202
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6203
- }
6204
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6485
+ if (sizing)
6486
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6487
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6205
6488
  }
6206
6489
  case "invalid_format": {
6207
6490
  const _issue = issue2;
@@ -6232,12 +6515,12 @@ var error14 = () => {
6232
6515
  };
6233
6516
  function fr_default() {
6234
6517
  return {
6235
- localeError: error14()
6518
+ localeError: error15()
6236
6519
  };
6237
6520
  }
6238
6521
 
6239
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
6240
- var error15 = () => {
6522
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
6523
+ var error16 = () => {
6241
6524
  const Sizable = {
6242
6525
  string: { unit: "caract\xE8res", verb: "avoir" },
6243
6526
  file: { unit: "octets", verb: "avoir" },
@@ -6340,12 +6623,12 @@ var error15 = () => {
6340
6623
  };
6341
6624
  function fr_CA_default() {
6342
6625
  return {
6343
- localeError: error15()
6626
+ localeError: error16()
6344
6627
  };
6345
6628
  }
6346
6629
 
6347
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
6348
- var error16 = () => {
6630
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
6631
+ var error17 = () => {
6349
6632
  const TypeNames = {
6350
6633
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6351
6634
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6535,24 +6818,24 @@ var error16 = () => {
6535
6818
  };
6536
6819
  function he_default() {
6537
6820
  return {
6538
- localeError: error16()
6821
+ localeError: error17()
6539
6822
  };
6540
6823
  }
6541
6824
 
6542
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
6543
- var error17 = () => {
6825
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
6826
+ var error18 = () => {
6544
6827
  const Sizable = {
6545
- string: { unit: "karakter", verb: "legyen" },
6546
- file: { unit: "byte", verb: "legyen" },
6547
- array: { unit: "elem", verb: "legyen" },
6548
- set: { unit: "elem", verb: "legyen" }
6828
+ string: { unit: "znakova", verb: "imati" },
6829
+ file: { unit: "bajtova", verb: "imati" },
6830
+ array: { unit: "stavki", verb: "imati" },
6831
+ set: { unit: "stavki", verb: "imati" }
6549
6832
  };
6550
6833
  function getSizing(origin) {
6551
6834
  return Sizable[origin] ?? null;
6552
6835
  }
6553
6836
  const FormatDictionary = {
6554
- regex: "bemenet",
6555
- email: "email c\xEDm",
6837
+ regex: "unos",
6838
+ email: "email adresa",
6556
6839
  url: "URL",
6557
6840
  emoji: "emoji",
6558
6841
  uuid: "UUID",
@@ -6565,25 +6848,37 @@ var error17 = () => {
6565
6848
  ulid: "ULID",
6566
6849
  xid: "XID",
6567
6850
  ksuid: "KSUID",
6568
- datetime: "ISO id\u0151b\xE9lyeg",
6569
- date: "ISO d\xE1tum",
6570
- time: "ISO id\u0151",
6571
- duration: "ISO id\u0151intervallum",
6572
- ipv4: "IPv4 c\xEDm",
6573
- ipv6: "IPv6 c\xEDm",
6574
- cidrv4: "IPv4 tartom\xE1ny",
6575
- cidrv6: "IPv6 tartom\xE1ny",
6576
- base64: "base64-k\xF3dolt string",
6577
- base64url: "base64url-k\xF3dolt string",
6578
- json_string: "JSON string",
6579
- e164: "E.164 sz\xE1m",
6851
+ datetime: "ISO datum i vrijeme",
6852
+ date: "ISO datum",
6853
+ time: "ISO vrijeme",
6854
+ duration: "ISO trajanje",
6855
+ ipv4: "IPv4 adresa",
6856
+ ipv6: "IPv6 adresa",
6857
+ cidrv4: "IPv4 raspon",
6858
+ cidrv6: "IPv6 raspon",
6859
+ base64: "base64 kodirani tekst",
6860
+ base64url: "base64url kodirani tekst",
6861
+ json_string: "JSON tekst",
6862
+ e164: "E.164 broj",
6580
6863
  jwt: "JWT",
6581
- template_literal: "bemenet"
6864
+ template_literal: "unos"
6582
6865
  };
6583
6866
  const TypeDictionary = {
6584
6867
  nan: "NaN",
6585
- number: "sz\xE1m",
6586
- array: "t\xF6mb"
6868
+ string: "tekst",
6869
+ number: "broj",
6870
+ boolean: "boolean",
6871
+ array: "niz",
6872
+ object: "objekt",
6873
+ set: "skup",
6874
+ file: "datoteka",
6875
+ date: "datum",
6876
+ bigint: "bigint",
6877
+ symbol: "simbol",
6878
+ undefined: "undefined",
6879
+ null: "null",
6880
+ function: "funkcija",
6881
+ map: "mapa"
6587
6882
  };
6588
6883
  return (issue2) => {
6589
6884
  switch (issue2.code) {
@@ -6592,35 +6887,146 @@ var error17 = () => {
6592
6887
  const receivedType = parsedType(issue2.input);
6593
6888
  const received = TypeDictionary[receivedType] ?? receivedType;
6594
6889
  if (/^[A-Z]/.test(issue2.expected)) {
6595
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6890
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
6596
6891
  }
6597
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6892
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
6598
6893
  }
6599
6894
  case "invalid_value":
6600
6895
  if (issue2.values.length === 1)
6601
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6602
- return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6896
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
6897
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
6603
6898
  case "too_big": {
6604
6899
  const adj = issue2.inclusive ? "<=" : "<";
6605
6900
  const sizing = getSizing(issue2.origin);
6901
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6606
6902
  if (sizing)
6607
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6608
- return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6903
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6904
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6609
6905
  }
6610
6906
  case "too_small": {
6611
6907
  const adj = issue2.inclusive ? ">=" : ">";
6612
6908
  const sizing = getSizing(issue2.origin);
6909
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6613
6910
  if (sizing) {
6614
- return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6911
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6615
6912
  }
6616
- return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
6913
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
6617
6914
  }
6618
6915
  case "invalid_format": {
6619
6916
  const _issue = issue2;
6620
6917
  if (_issue.format === "starts_with")
6621
- return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
6918
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
6622
6919
  if (_issue.format === "ends_with")
6623
- return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
6920
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
6921
+ if (_issue.format === "includes")
6922
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
6923
+ if (_issue.format === "regex")
6924
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
6925
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
6926
+ }
6927
+ case "not_multiple_of":
6928
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
6929
+ case "unrecognized_keys":
6930
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
6931
+ case "invalid_key":
6932
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6933
+ case "invalid_union":
6934
+ return "Neispravan unos";
6935
+ case "invalid_element":
6936
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6937
+ default:
6938
+ return `Neispravan unos`;
6939
+ }
6940
+ };
6941
+ };
6942
+ function hr_default() {
6943
+ return {
6944
+ localeError: error18()
6945
+ };
6946
+ }
6947
+
6948
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
6949
+ var error19 = () => {
6950
+ const Sizable = {
6951
+ string: { unit: "karakter", verb: "legyen" },
6952
+ file: { unit: "byte", verb: "legyen" },
6953
+ array: { unit: "elem", verb: "legyen" },
6954
+ set: { unit: "elem", verb: "legyen" }
6955
+ };
6956
+ function getSizing(origin) {
6957
+ return Sizable[origin] ?? null;
6958
+ }
6959
+ const FormatDictionary = {
6960
+ regex: "bemenet",
6961
+ email: "email c\xEDm",
6962
+ url: "URL",
6963
+ emoji: "emoji",
6964
+ uuid: "UUID",
6965
+ uuidv4: "UUIDv4",
6966
+ uuidv6: "UUIDv6",
6967
+ nanoid: "nanoid",
6968
+ guid: "GUID",
6969
+ cuid: "cuid",
6970
+ cuid2: "cuid2",
6971
+ ulid: "ULID",
6972
+ xid: "XID",
6973
+ ksuid: "KSUID",
6974
+ datetime: "ISO id\u0151b\xE9lyeg",
6975
+ date: "ISO d\xE1tum",
6976
+ time: "ISO id\u0151",
6977
+ duration: "ISO id\u0151intervallum",
6978
+ ipv4: "IPv4 c\xEDm",
6979
+ ipv6: "IPv6 c\xEDm",
6980
+ cidrv4: "IPv4 tartom\xE1ny",
6981
+ cidrv6: "IPv6 tartom\xE1ny",
6982
+ base64: "base64-k\xF3dolt string",
6983
+ base64url: "base64url-k\xF3dolt string",
6984
+ json_string: "JSON string",
6985
+ e164: "E.164 sz\xE1m",
6986
+ jwt: "JWT",
6987
+ template_literal: "bemenet"
6988
+ };
6989
+ const TypeDictionary = {
6990
+ nan: "NaN",
6991
+ number: "sz\xE1m",
6992
+ array: "t\xF6mb"
6993
+ };
6994
+ return (issue2) => {
6995
+ switch (issue2.code) {
6996
+ case "invalid_type": {
6997
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6998
+ const receivedType = parsedType(issue2.input);
6999
+ const received = TypeDictionary[receivedType] ?? receivedType;
7000
+ if (/^[A-Z]/.test(issue2.expected)) {
7001
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
7002
+ }
7003
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
7004
+ }
7005
+ case "invalid_value":
7006
+ if (issue2.values.length === 1)
7007
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
7008
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
7009
+ case "too_big": {
7010
+ const adj = issue2.inclusive ? "<=" : "<";
7011
+ const sizing = getSizing(issue2.origin);
7012
+ if (sizing)
7013
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
7014
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
7015
+ }
7016
+ case "too_small": {
7017
+ const adj = issue2.inclusive ? ">=" : ">";
7018
+ const sizing = getSizing(issue2.origin);
7019
+ if (sizing) {
7020
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
7021
+ }
7022
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
7023
+ }
7024
+ case "invalid_format": {
7025
+ const _issue = issue2;
7026
+ if (_issue.format === "starts_with")
7027
+ return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
7028
+ if (_issue.format === "ends_with")
7029
+ return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
6624
7030
  if (_issue.format === "includes")
6625
7031
  return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
6626
7032
  if (_issue.format === "regex")
@@ -6644,11 +7050,11 @@ var error17 = () => {
6644
7050
  };
6645
7051
  function hu_default() {
6646
7052
  return {
6647
- localeError: error17()
7053
+ localeError: error19()
6648
7054
  };
6649
7055
  }
6650
7056
 
6651
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
7057
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
6652
7058
  function getArmenianPlural(count, one, many) {
6653
7059
  return Math.abs(count) === 1 ? one : many;
6654
7060
  }
@@ -6659,7 +7065,7 @@ function withDefiniteArticle(word) {
6659
7065
  const lastChar = word[word.length - 1];
6660
7066
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
6661
7067
  }
6662
- var error18 = () => {
7068
+ var error20 = () => {
6663
7069
  const Sizable = {
6664
7070
  string: {
6665
7071
  unit: {
@@ -6792,12 +7198,12 @@ var error18 = () => {
6792
7198
  };
6793
7199
  function hy_default() {
6794
7200
  return {
6795
- localeError: error18()
7201
+ localeError: error20()
6796
7202
  };
6797
7203
  }
6798
7204
 
6799
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
6800
- var error19 = () => {
7205
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
7206
+ var error21 = () => {
6801
7207
  const Sizable = {
6802
7208
  string: { unit: "karakter", verb: "memiliki" },
6803
7209
  file: { unit: "byte", verb: "memiliki" },
@@ -6899,12 +7305,12 @@ var error19 = () => {
6899
7305
  };
6900
7306
  function id_default() {
6901
7307
  return {
6902
- localeError: error19()
7308
+ localeError: error21()
6903
7309
  };
6904
7310
  }
6905
7311
 
6906
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
6907
- var error20 = () => {
7312
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
7313
+ var error22 = () => {
6908
7314
  const Sizable = {
6909
7315
  string: { unit: "stafi", verb: "a\xF0 hafa" },
6910
7316
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -7009,12 +7415,12 @@ var error20 = () => {
7009
7415
  };
7010
7416
  function is_default() {
7011
7417
  return {
7012
- localeError: error20()
7418
+ localeError: error22()
7013
7419
  };
7014
7420
  }
7015
7421
 
7016
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
7017
- var error21 = () => {
7422
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
7423
+ var error23 = () => {
7018
7424
  const Sizable = {
7019
7425
  string: { unit: "caratteri", verb: "avere" },
7020
7426
  file: { unit: "byte", verb: "avere" },
@@ -7099,7 +7505,7 @@ var error21 = () => {
7099
7505
  return `Stringa non valida: deve includere "${_issue.includes}"`;
7100
7506
  if (_issue.format === "regex")
7101
7507
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
7102
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7508
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
7103
7509
  }
7104
7510
  case "not_multiple_of":
7105
7511
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -7118,12 +7524,12 @@ var error21 = () => {
7118
7524
  };
7119
7525
  function it_default() {
7120
7526
  return {
7121
- localeError: error21()
7527
+ localeError: error23()
7122
7528
  };
7123
7529
  }
7124
7530
 
7125
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
7126
- var error22 = () => {
7531
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
7532
+ var error24 = () => {
7127
7533
  const Sizable = {
7128
7534
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
7129
7535
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7226,12 +7632,12 @@ var error22 = () => {
7226
7632
  };
7227
7633
  function ja_default() {
7228
7634
  return {
7229
- localeError: error22()
7635
+ localeError: error24()
7230
7636
  };
7231
7637
  }
7232
7638
 
7233
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
7234
- var error23 = () => {
7639
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
7640
+ var error25 = () => {
7235
7641
  const Sizable = {
7236
7642
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7237
7643
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7264,9 +7670,9 @@ var error23 = () => {
7264
7670
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
7265
7671
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7266
7672
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7267
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7268
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7269
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7673
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7674
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7675
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
7270
7676
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
7271
7677
  jwt: "JWT",
7272
7678
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -7274,7 +7680,7 @@ var error23 = () => {
7274
7680
  const TypeDictionary = {
7275
7681
  nan: "NaN",
7276
7682
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
7277
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7683
+ string: "\u10D5\u10D4\u10DA\u10D8",
7278
7684
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
7279
7685
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
7280
7686
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7312,14 +7718,14 @@ var error23 = () => {
7312
7718
  case "invalid_format": {
7313
7719
  const _issue = issue2;
7314
7720
  if (_issue.format === "starts_with") {
7315
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
7721
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
7316
7722
  }
7317
7723
  if (_issue.format === "ends_with")
7318
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
7724
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
7319
7725
  if (_issue.format === "includes")
7320
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
7726
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
7321
7727
  if (_issue.format === "regex")
7322
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
7728
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
7323
7729
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7324
7730
  }
7325
7731
  case "not_multiple_of":
@@ -7339,12 +7745,12 @@ var error23 = () => {
7339
7745
  };
7340
7746
  function ka_default() {
7341
7747
  return {
7342
- localeError: error23()
7748
+ localeError: error25()
7343
7749
  };
7344
7750
  }
7345
7751
 
7346
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
7347
- var error24 = () => {
7752
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
7753
+ var error26 = () => {
7348
7754
  const Sizable = {
7349
7755
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7350
7756
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7450,17 +7856,17 @@ var error24 = () => {
7450
7856
  };
7451
7857
  function km_default() {
7452
7858
  return {
7453
- localeError: error24()
7859
+ localeError: error26()
7454
7860
  };
7455
7861
  }
7456
7862
 
7457
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
7863
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
7458
7864
  function kh_default() {
7459
7865
  return km_default();
7460
7866
  }
7461
7867
 
7462
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
7463
- var error25 = () => {
7868
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
7869
+ var error27 = () => {
7464
7870
  const Sizable = {
7465
7871
  string: { unit: "\uBB38\uC790", verb: "to have" },
7466
7872
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7567,11 +7973,11 @@ var error25 = () => {
7567
7973
  };
7568
7974
  function ko_default() {
7569
7975
  return {
7570
- localeError: error25()
7976
+ localeError: error27()
7571
7977
  };
7572
7978
  }
7573
7979
 
7574
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
7980
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
7575
7981
  var capitalizeFirstCharacter = (text) => {
7576
7982
  return text.charAt(0).toUpperCase() + text.slice(1);
7577
7983
  };
@@ -7585,7 +7991,7 @@ function getUnitTypeFromNumber(number4) {
7585
7991
  return "one";
7586
7992
  return "few";
7587
7993
  }
7588
- var error26 = () => {
7994
+ var error28 = () => {
7589
7995
  const Sizable = {
7590
7996
  string: {
7591
7997
  unit: {
@@ -7771,12 +8177,12 @@ var error26 = () => {
7771
8177
  };
7772
8178
  function lt_default() {
7773
8179
  return {
7774
- localeError: error26()
8180
+ localeError: error28()
7775
8181
  };
7776
8182
  }
7777
8183
 
7778
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
7779
- var error27 = () => {
8184
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
8185
+ var error29 = () => {
7780
8186
  const Sizable = {
7781
8187
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7782
8188
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7881,12 +8287,12 @@ var error27 = () => {
7881
8287
  };
7882
8288
  function mk_default() {
7883
8289
  return {
7884
- localeError: error27()
8290
+ localeError: error29()
7885
8291
  };
7886
8292
  }
7887
8293
 
7888
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
7889
- var error28 = () => {
8294
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
8295
+ var error30 = () => {
7890
8296
  const Sizable = {
7891
8297
  string: { unit: "aksara", verb: "mempunyai" },
7892
8298
  file: { unit: "bait", verb: "mempunyai" },
@@ -7989,12 +8395,12 @@ var error28 = () => {
7989
8395
  };
7990
8396
  function ms_default() {
7991
8397
  return {
7992
- localeError: error28()
8398
+ localeError: error30()
7993
8399
  };
7994
8400
  }
7995
8401
 
7996
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
7997
- var error29 = () => {
8402
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
8403
+ var error31 = () => {
7998
8404
  const Sizable = {
7999
8405
  string: { unit: "tekens", verb: "heeft" },
8000
8406
  file: { unit: "bytes", verb: "heeft" },
@@ -8100,12 +8506,12 @@ var error29 = () => {
8100
8506
  };
8101
8507
  function nl_default() {
8102
8508
  return {
8103
- localeError: error29()
8509
+ localeError: error31()
8104
8510
  };
8105
8511
  }
8106
8512
 
8107
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
8108
- var error30 = () => {
8513
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
8514
+ var error32 = () => {
8109
8515
  const Sizable = {
8110
8516
  string: { unit: "tegn", verb: "\xE5 ha" },
8111
8517
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8209,12 +8615,12 @@ var error30 = () => {
8209
8615
  };
8210
8616
  function no_default() {
8211
8617
  return {
8212
- localeError: error30()
8618
+ localeError: error32()
8213
8619
  };
8214
8620
  }
8215
8621
 
8216
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
8217
- var error31 = () => {
8622
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
8623
+ var error33 = () => {
8218
8624
  const Sizable = {
8219
8625
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8220
8626
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8319,12 +8725,12 @@ var error31 = () => {
8319
8725
  };
8320
8726
  function ota_default() {
8321
8727
  return {
8322
- localeError: error31()
8728
+ localeError: error33()
8323
8729
  };
8324
8730
  }
8325
8731
 
8326
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
8327
- var error32 = () => {
8732
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
8733
+ var error34 = () => {
8328
8734
  const Sizable = {
8329
8735
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8330
8736
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8434,12 +8840,12 @@ var error32 = () => {
8434
8840
  };
8435
8841
  function ps_default() {
8436
8842
  return {
8437
- localeError: error32()
8843
+ localeError: error34()
8438
8844
  };
8439
8845
  }
8440
8846
 
8441
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
8442
- var error33 = () => {
8847
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
8848
+ var error35 = () => {
8443
8849
  const Sizable = {
8444
8850
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8445
8851
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8544,12 +8950,12 @@ var error33 = () => {
8544
8950
  };
8545
8951
  function pl_default() {
8546
8952
  return {
8547
- localeError: error33()
8953
+ localeError: error35()
8548
8954
  };
8549
8955
  }
8550
8956
 
8551
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
8552
- var error34 = () => {
8957
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
8958
+ var error36 = () => {
8553
8959
  const Sizable = {
8554
8960
  string: { unit: "caracteres", verb: "ter" },
8555
8961
  file: { unit: "bytes", verb: "ter" },
@@ -8653,11 +9059,131 @@ var error34 = () => {
8653
9059
  };
8654
9060
  function pt_default() {
8655
9061
  return {
8656
- localeError: error34()
9062
+ localeError: error36()
9063
+ };
9064
+ }
9065
+
9066
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
9067
+ var error37 = () => {
9068
+ const Sizable = {
9069
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
9070
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
9071
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
9072
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
9073
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
9074
+ };
9075
+ function getSizing(origin) {
9076
+ return Sizable[origin] ?? null;
9077
+ }
9078
+ const FormatDictionary = {
9079
+ regex: "intrare",
9080
+ email: "adres\u0103 de email",
9081
+ url: "URL",
9082
+ emoji: "emoji",
9083
+ uuid: "UUID",
9084
+ uuidv4: "UUIDv4",
9085
+ uuidv6: "UUIDv6",
9086
+ nanoid: "nanoid",
9087
+ guid: "GUID",
9088
+ cuid: "cuid",
9089
+ cuid2: "cuid2",
9090
+ ulid: "ULID",
9091
+ xid: "XID",
9092
+ ksuid: "KSUID",
9093
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
9094
+ date: "dat\u0103 ISO",
9095
+ time: "or\u0103 ISO",
9096
+ duration: "durat\u0103 ISO",
9097
+ ipv4: "adres\u0103 IPv4",
9098
+ ipv6: "adres\u0103 IPv6",
9099
+ mac: "adres\u0103 MAC",
9100
+ cidrv4: "interval IPv4",
9101
+ cidrv6: "interval IPv6",
9102
+ base64: "\u0219ir codat base64",
9103
+ base64url: "\u0219ir codat base64url",
9104
+ json_string: "\u0219ir JSON",
9105
+ e164: "num\u0103r E.164",
9106
+ jwt: "JWT",
9107
+ template_literal: "intrare"
9108
+ };
9109
+ const TypeDictionary = {
9110
+ nan: "NaN",
9111
+ string: "\u0219ir",
9112
+ number: "num\u0103r",
9113
+ boolean: "boolean",
9114
+ function: "func\u021Bie",
9115
+ array: "matrice",
9116
+ object: "obiect",
9117
+ undefined: "nedefinit",
9118
+ symbol: "simbol",
9119
+ bigint: "num\u0103r mare",
9120
+ void: "void",
9121
+ never: "never",
9122
+ map: "hart\u0103",
9123
+ set: "set"
9124
+ };
9125
+ return (issue2) => {
9126
+ switch (issue2.code) {
9127
+ case "invalid_type": {
9128
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9129
+ const receivedType = parsedType(issue2.input);
9130
+ const received = TypeDictionary[receivedType] ?? receivedType;
9131
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
9132
+ }
9133
+ case "invalid_value":
9134
+ if (issue2.values.length === 1)
9135
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
9136
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
9137
+ case "too_big": {
9138
+ const adj = issue2.inclusive ? "<=" : "<";
9139
+ const sizing = getSizing(issue2.origin);
9140
+ if (sizing)
9141
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
9142
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
9143
+ }
9144
+ case "too_small": {
9145
+ const adj = issue2.inclusive ? ">=" : ">";
9146
+ const sizing = getSizing(issue2.origin);
9147
+ if (sizing) {
9148
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9149
+ }
9150
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
9151
+ }
9152
+ case "invalid_format": {
9153
+ const _issue = issue2;
9154
+ if (_issue.format === "starts_with") {
9155
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
9156
+ }
9157
+ if (_issue.format === "ends_with")
9158
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
9159
+ if (_issue.format === "includes")
9160
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
9161
+ if (_issue.format === "regex")
9162
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
9163
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
9164
+ }
9165
+ case "not_multiple_of":
9166
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
9167
+ case "unrecognized_keys":
9168
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
9169
+ case "invalid_key":
9170
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
9171
+ case "invalid_union":
9172
+ return "Intrare invalid\u0103";
9173
+ case "invalid_element":
9174
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
9175
+ default:
9176
+ return `Intrare invalid\u0103`;
9177
+ }
9178
+ };
9179
+ };
9180
+ function ro_default() {
9181
+ return {
9182
+ localeError: error37()
8657
9183
  };
8658
9184
  }
8659
9185
 
8660
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
9186
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
8661
9187
  function getRussianPlural(count, one, few, many) {
8662
9188
  const absCount = Math.abs(count);
8663
9189
  const lastDigit = absCount % 10;
@@ -8673,7 +9199,7 @@ function getRussianPlural(count, one, few, many) {
8673
9199
  }
8674
9200
  return many;
8675
9201
  }
8676
- var error35 = () => {
9202
+ var error38 = () => {
8677
9203
  const Sizable = {
8678
9204
  string: {
8679
9205
  unit: {
@@ -8810,12 +9336,12 @@ var error35 = () => {
8810
9336
  };
8811
9337
  function ru_default() {
8812
9338
  return {
8813
- localeError: error35()
9339
+ localeError: error38()
8814
9340
  };
8815
9341
  }
8816
9342
 
8817
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
8818
- var error36 = () => {
9343
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
9344
+ var error39 = () => {
8819
9345
  const Sizable = {
8820
9346
  string: { unit: "znakov", verb: "imeti" },
8821
9347
  file: { unit: "bajtov", verb: "imeti" },
@@ -8920,12 +9446,12 @@ var error36 = () => {
8920
9446
  };
8921
9447
  function sl_default() {
8922
9448
  return {
8923
- localeError: error36()
9449
+ localeError: error39()
8924
9450
  };
8925
9451
  }
8926
9452
 
8927
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
8928
- var error37 = () => {
9453
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
9454
+ var error40 = () => {
8929
9455
  const Sizable = {
8930
9456
  string: { unit: "tecken", verb: "att ha" },
8931
9457
  file: { unit: "bytes", verb: "att ha" },
@@ -9031,12 +9557,12 @@ var error37 = () => {
9031
9557
  };
9032
9558
  function sv_default() {
9033
9559
  return {
9034
- localeError: error37()
9560
+ localeError: error40()
9035
9561
  };
9036
9562
  }
9037
9563
 
9038
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
9039
- var error38 = () => {
9564
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
9565
+ var error41 = () => {
9040
9566
  const Sizable = {
9041
9567
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
9042
9568
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -9142,12 +9668,12 @@ var error38 = () => {
9142
9668
  };
9143
9669
  function ta_default() {
9144
9670
  return {
9145
- localeError: error38()
9671
+ localeError: error41()
9146
9672
  };
9147
9673
  }
9148
9674
 
9149
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
9150
- var error39 = () => {
9675
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
9676
+ var error42 = () => {
9151
9677
  const Sizable = {
9152
9678
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
9153
9679
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9253,12 +9779,12 @@ var error39 = () => {
9253
9779
  };
9254
9780
  function th_default() {
9255
9781
  return {
9256
- localeError: error39()
9782
+ localeError: error42()
9257
9783
  };
9258
9784
  }
9259
9785
 
9260
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
9261
- var error40 = () => {
9786
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
9787
+ var error43 = () => {
9262
9788
  const Sizable = {
9263
9789
  string: { unit: "karakter", verb: "olmal\u0131" },
9264
9790
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9359,12 +9885,12 @@ var error40 = () => {
9359
9885
  };
9360
9886
  function tr_default() {
9361
9887
  return {
9362
- localeError: error40()
9888
+ localeError: error43()
9363
9889
  };
9364
9890
  }
9365
9891
 
9366
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
9367
- var error41 = () => {
9892
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
9893
+ var error44 = () => {
9368
9894
  const Sizable = {
9369
9895
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9370
9896
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9468,17 +9994,17 @@ var error41 = () => {
9468
9994
  };
9469
9995
  function uk_default() {
9470
9996
  return {
9471
- localeError: error41()
9997
+ localeError: error44()
9472
9998
  };
9473
9999
  }
9474
10000
 
9475
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
10001
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
9476
10002
  function ua_default() {
9477
10003
  return uk_default();
9478
10004
  }
9479
10005
 
9480
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
9481
- var error42 = () => {
10006
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
10007
+ var error45 = () => {
9482
10008
  const Sizable = {
9483
10009
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9484
10010
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9584,17 +10110,18 @@ var error42 = () => {
9584
10110
  };
9585
10111
  function ur_default() {
9586
10112
  return {
9587
- localeError: error42()
10113
+ localeError: error45()
9588
10114
  };
9589
10115
  }
9590
10116
 
9591
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
9592
- var error43 = () => {
10117
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
10118
+ var error46 = () => {
9593
10119
  const Sizable = {
9594
10120
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
9595
10121
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
9596
10122
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
9597
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
10123
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
10124
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9598
10125
  };
9599
10126
  function getSizing(origin) {
9600
10127
  return Sizable[origin] ?? null;
@@ -9694,12 +10221,12 @@ var error43 = () => {
9694
10221
  };
9695
10222
  function uz_default() {
9696
10223
  return {
9697
- localeError: error43()
10224
+ localeError: error46()
9698
10225
  };
9699
10226
  }
9700
10227
 
9701
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
9702
- var error44 = () => {
10228
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
10229
+ var error47 = () => {
9703
10230
  const Sizable = {
9704
10231
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
9705
10232
  file: { unit: "byte", verb: "c\xF3" },
@@ -9803,12 +10330,12 @@ var error44 = () => {
9803
10330
  };
9804
10331
  function vi_default() {
9805
10332
  return {
9806
- localeError: error44()
10333
+ localeError: error47()
9807
10334
  };
9808
10335
  }
9809
10336
 
9810
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
9811
- var error45 = () => {
10337
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
10338
+ var error48 = () => {
9812
10339
  const Sizable = {
9813
10340
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
9814
10341
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -9913,12 +10440,12 @@ var error45 = () => {
9913
10440
  };
9914
10441
  function zh_CN_default() {
9915
10442
  return {
9916
- localeError: error45()
10443
+ localeError: error48()
9917
10444
  };
9918
10445
  }
9919
10446
 
9920
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
9921
- var error46 = () => {
10447
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
10448
+ var error49 = () => {
9922
10449
  const Sizable = {
9923
10450
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
9924
10451
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -10021,12 +10548,12 @@ var error46 = () => {
10021
10548
  };
10022
10549
  function zh_TW_default() {
10023
10550
  return {
10024
- localeError: error46()
10551
+ localeError: error49()
10025
10552
  };
10026
10553
  }
10027
10554
 
10028
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
10029
- var error47 = () => {
10555
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
10556
+ var error50 = () => {
10030
10557
  const Sizable = {
10031
10558
  string: { unit: "\xE0mi", verb: "n\xED" },
10032
10559
  file: { unit: "bytes", verb: "n\xED" },
@@ -10129,12 +10656,12 @@ var error47 = () => {
10129
10656
  };
10130
10657
  function yo_default() {
10131
10658
  return {
10132
- localeError: error47()
10659
+ localeError: error50()
10133
10660
  };
10134
10661
  }
10135
10662
 
10136
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
10137
- var _a;
10663
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
10664
+ var _a2;
10138
10665
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
10139
10666
  var $input = /* @__PURE__ */ Symbol("ZodInput");
10140
10667
  var $ZodRegistry = class {
@@ -10180,10 +10707,10 @@ var $ZodRegistry = class {
10180
10707
  function registry() {
10181
10708
  return new $ZodRegistry();
10182
10709
  }
10183
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10710
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10184
10711
  var globalRegistry = globalThis.__zod_globalRegistry;
10185
10712
 
10186
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
10713
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
10187
10714
  // @__NO_SIDE_EFFECTS__
10188
10715
  function _string(Class2, params) {
10189
10716
  return new Class2({
@@ -11098,7 +11625,7 @@ function _refine(Class2, fn, _params) {
11098
11625
  return schema;
11099
11626
  }
11100
11627
  // @__NO_SIDE_EFFECTS__
11101
- function _superRefine(fn) {
11628
+ function _superRefine(fn, params) {
11102
11629
  const ch = /* @__PURE__ */ _check((payload) => {
11103
11630
  payload.addIssue = (issue2) => {
11104
11631
  if (typeof issue2 === "string") {
@@ -11115,7 +11642,7 @@ function _superRefine(fn) {
11115
11642
  }
11116
11643
  };
11117
11644
  return fn(payload.value, payload);
11118
- });
11645
+ }, params);
11119
11646
  return ch;
11120
11647
  }
11121
11648
  // @__NO_SIDE_EFFECTS__
@@ -11222,7 +11749,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11222
11749
  return inst;
11223
11750
  }
11224
11751
 
11225
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
11752
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
11226
11753
  function initializeContext(params) {
11227
11754
  let target = params?.target ?? "draft-2020-12";
11228
11755
  if (target === "draft-4")
@@ -11245,7 +11772,7 @@ function initializeContext(params) {
11245
11772
  };
11246
11773
  }
11247
11774
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11248
- var _a2;
11775
+ var _a3;
11249
11776
  const def = schema._zod.def;
11250
11777
  const seen = ctx.seen.get(schema);
11251
11778
  if (seen) {
@@ -11292,8 +11819,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11292
11819
  delete result.schema.examples;
11293
11820
  delete result.schema.default;
11294
11821
  }
11295
- if (ctx.io === "input" && result.schema._prefault)
11296
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11822
+ if (ctx.io === "input" && "_prefault" in result.schema)
11823
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11297
11824
  delete result.schema._prefault;
11298
11825
  const _result = ctx.seen.get(schema);
11299
11826
  return _result.schema;
@@ -11474,10 +12001,15 @@ function finalize(ctx, schema) {
11474
12001
  result.$id = ctx.external.uri(id);
11475
12002
  }
11476
12003
  Object.assign(result, root.def ?? root.schema);
12004
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
12005
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
12006
+ delete result.id;
11477
12007
  const defs = ctx.external?.defs ?? {};
11478
12008
  for (const entry of ctx.seen.entries()) {
11479
12009
  const seen = entry[1];
11480
12010
  if (seen.def && seen.defId) {
12011
+ if (seen.def.id === seen.defId)
12012
+ delete seen.def.id;
11481
12013
  defs[seen.defId] = seen.def;
11482
12014
  }
11483
12015
  }
@@ -11533,6 +12065,8 @@ function isTransforming(_schema, _ctx) {
11533
12065
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
11534
12066
  }
11535
12067
  if (def.type === "pipe") {
12068
+ if (_schema._zod.traits.has("$ZodCodec"))
12069
+ return true;
11536
12070
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
11537
12071
  }
11538
12072
  if (def.type === "object") {
@@ -11574,7 +12108,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
11574
12108
  return finalize(ctx, schema);
11575
12109
  };
11576
12110
 
11577
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
12111
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
11578
12112
  var formatMap = {
11579
12113
  guid: "uuid",
11580
12114
  url: "uri",
@@ -11622,39 +12156,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
11622
12156
  json2.type = "integer";
11623
12157
  else
11624
12158
  json2.type = "number";
11625
- if (typeof exclusiveMinimum === "number") {
11626
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12159
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
12160
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
12161
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
12162
+ if (exMin) {
12163
+ if (legacy) {
11627
12164
  json2.minimum = exclusiveMinimum;
11628
12165
  json2.exclusiveMinimum = true;
11629
12166
  } else {
11630
12167
  json2.exclusiveMinimum = exclusiveMinimum;
11631
12168
  }
11632
- }
11633
- if (typeof minimum === "number") {
12169
+ } else if (typeof minimum === "number") {
11634
12170
  json2.minimum = minimum;
11635
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
11636
- if (exclusiveMinimum >= minimum)
11637
- delete json2.minimum;
11638
- else
11639
- delete json2.exclusiveMinimum;
11640
- }
11641
12171
  }
11642
- if (typeof exclusiveMaximum === "number") {
11643
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12172
+ if (exMax) {
12173
+ if (legacy) {
11644
12174
  json2.maximum = exclusiveMaximum;
11645
12175
  json2.exclusiveMaximum = true;
11646
12176
  } else {
11647
12177
  json2.exclusiveMaximum = exclusiveMaximum;
11648
12178
  }
11649
- }
11650
- if (typeof maximum === "number") {
12179
+ } else if (typeof maximum === "number") {
11651
12180
  json2.maximum = maximum;
11652
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
11653
- if (exclusiveMaximum <= maximum)
11654
- delete json2.maximum;
11655
- else
11656
- delete json2.exclusiveMaximum;
11657
- }
11658
12181
  }
11659
12182
  if (typeof multipleOf === "number")
11660
12183
  json2.multipleOf = multipleOf;
@@ -11826,7 +12349,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
11826
12349
  if (typeof maximum === "number")
11827
12350
  json2.maxItems = maximum;
11828
12351
  json2.type = "array";
11829
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
12352
+ json2.items = process2(def.element, ctx, {
12353
+ ...params,
12354
+ path: [...params.path, "items"]
12355
+ });
11830
12356
  };
11831
12357
  var objectProcessor = (schema, ctx, _json, params) => {
11832
12358
  const json2 = _json;
@@ -12019,7 +12545,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
12019
12545
  };
12020
12546
  var pipeProcessor = (schema, ctx, _json, params) => {
12021
12547
  const def = schema._zod.def;
12022
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
12548
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
12549
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
12023
12550
  process2(innerType, ctx, params);
12024
12551
  const seen = ctx.seen.get(schema);
12025
12552
  seen.ref = innerType;
@@ -12125,7 +12652,7 @@ function toJSONSchema(input, params) {
12125
12652
  return finalize(ctx, input);
12126
12653
  }
12127
12654
 
12128
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
12655
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
12129
12656
  var JSONSchemaGenerator = class {
12130
12657
  /** @deprecated Access via ctx instead */
12131
12658
  get metadataRegistry() {
@@ -12200,10 +12727,10 @@ var JSONSchemaGenerator = class {
12200
12727
  }
12201
12728
  };
12202
12729
 
12203
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
12730
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
12204
12731
  var json_schema_exports = {};
12205
12732
 
12206
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
12733
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
12207
12734
  var schemas_exports2 = {};
12208
12735
  __export(schemas_exports2, {
12209
12736
  ZodAny: () => ZodAny,
@@ -12253,6 +12780,7 @@ __export(schemas_exports2, {
12253
12780
  ZodOptional: () => ZodOptional,
12254
12781
  ZodPipe: () => ZodPipe,
12255
12782
  ZodPrefault: () => ZodPrefault,
12783
+ ZodPreprocess: () => ZodPreprocess,
12256
12784
  ZodPromise: () => ZodPromise,
12257
12785
  ZodReadonly: () => ZodReadonly,
12258
12786
  ZodRecord: () => ZodRecord,
@@ -12313,6 +12841,7 @@ __export(schemas_exports2, {
12313
12841
  int32: () => int32,
12314
12842
  int64: () => int64,
12315
12843
  intersection: () => intersection,
12844
+ invertCodec: () => invertCodec,
12316
12845
  ipv4: () => ipv42,
12317
12846
  ipv6: () => ipv62,
12318
12847
  json: () => json,
@@ -12372,7 +12901,7 @@ __export(schemas_exports2, {
12372
12901
  xor: () => xor
12373
12902
  });
12374
12903
 
12375
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
12904
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
12376
12905
  var checks_exports2 = {};
12377
12906
  __export(checks_exports2, {
12378
12907
  endsWith: () => _endsWith,
@@ -12406,7 +12935,7 @@ __export(checks_exports2, {
12406
12935
  uppercase: () => _uppercase
12407
12936
  });
12408
12937
 
12409
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
12938
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
12410
12939
  var iso_exports = {};
12411
12940
  __export(iso_exports, {
12412
12941
  ZodISODate: () => ZodISODate,
@@ -12447,7 +12976,7 @@ function duration2(params) {
12447
12976
  return _isoDuration(ZodISODuration, params);
12448
12977
  }
12449
12978
 
12450
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
12979
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
12451
12980
  var initializer2 = (inst, issues) => {
12452
12981
  $ZodError.init(inst, issues);
12453
12982
  inst.name = "ZodError";
@@ -12482,12 +13011,12 @@ var initializer2 = (inst, issues) => {
12482
13011
  }
12483
13012
  });
12484
13013
  };
12485
- var ZodError = $constructor("ZodError", initializer2);
12486
- var ZodRealError = $constructor("ZodError", initializer2, {
13014
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
13015
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12487
13016
  Parent: Error
12488
13017
  });
12489
13018
 
12490
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
13019
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
12491
13020
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12492
13021
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12493
13022
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12501,7 +13030,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12501
13030
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12502
13031
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12503
13032
 
12504
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13033
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
13034
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
13035
+ function _installLazyMethods(inst, group, methods) {
13036
+ const proto = Object.getPrototypeOf(inst);
13037
+ let installed = _installedGroups.get(proto);
13038
+ if (!installed) {
13039
+ installed = /* @__PURE__ */ new Set();
13040
+ _installedGroups.set(proto, installed);
13041
+ }
13042
+ if (installed.has(group))
13043
+ return;
13044
+ installed.add(group);
13045
+ for (const key in methods) {
13046
+ const fn = methods[key];
13047
+ Object.defineProperty(proto, key, {
13048
+ configurable: true,
13049
+ enumerable: false,
13050
+ get() {
13051
+ const bound = fn.bind(this);
13052
+ Object.defineProperty(this, key, {
13053
+ configurable: true,
13054
+ writable: true,
13055
+ enumerable: true,
13056
+ value: bound
13057
+ });
13058
+ return bound;
13059
+ },
13060
+ set(v) {
13061
+ Object.defineProperty(this, key, {
13062
+ configurable: true,
13063
+ writable: true,
13064
+ enumerable: true,
13065
+ value: v
13066
+ });
13067
+ }
13068
+ });
13069
+ }
13070
+ }
12505
13071
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12506
13072
  $ZodType.init(inst, def);
12507
13073
  Object.assign(inst["~standard"], {
@@ -12514,23 +13080,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12514
13080
  inst.def = def;
12515
13081
  inst.type = def.type;
12516
13082
  Object.defineProperty(inst, "_def", { value: def });
12517
- inst.check = (...checks) => {
12518
- return inst.clone(util_exports.mergeDefs(def, {
12519
- checks: [
12520
- ...def.checks ?? [],
12521
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12522
- ]
12523
- }), {
12524
- parent: true
12525
- });
12526
- };
12527
- inst.with = inst.check;
12528
- inst.clone = (def2, params) => clone(inst, def2, params);
12529
- inst.brand = () => inst;
12530
- inst.register = ((reg, meta3) => {
12531
- reg.add(inst, meta3);
12532
- return inst;
12533
- });
12534
13083
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12535
13084
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12536
13085
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12544,45 +13093,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12544
13093
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12545
13094
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12546
13095
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
12547
- inst.refine = (check2, params) => inst.check(refine(check2, params));
12548
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
12549
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
12550
- inst.optional = () => optional(inst);
12551
- inst.exactOptional = () => exactOptional(inst);
12552
- inst.nullable = () => nullable(inst);
12553
- inst.nullish = () => optional(nullable(inst));
12554
- inst.nonoptional = (params) => nonoptional(inst, params);
12555
- inst.array = () => array(inst);
12556
- inst.or = (arg) => union([inst, arg]);
12557
- inst.and = (arg) => intersection(inst, arg);
12558
- inst.transform = (tx) => pipe(inst, transform(tx));
12559
- inst.default = (def2) => _default2(inst, def2);
12560
- inst.prefault = (def2) => prefault(inst, def2);
12561
- inst.catch = (params) => _catch2(inst, params);
12562
- inst.pipe = (target) => pipe(inst, target);
12563
- inst.readonly = () => readonly(inst);
12564
- inst.describe = (description) => {
12565
- const cl = inst.clone();
12566
- globalRegistry.add(cl, { description });
12567
- return cl;
12568
- };
13096
+ _installLazyMethods(inst, "ZodType", {
13097
+ check(...chks) {
13098
+ const def2 = this.def;
13099
+ return this.clone(util_exports.mergeDefs(def2, {
13100
+ checks: [
13101
+ ...def2.checks ?? [],
13102
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
13103
+ ]
13104
+ }), { parent: true });
13105
+ },
13106
+ with(...chks) {
13107
+ return this.check(...chks);
13108
+ },
13109
+ clone(def2, params) {
13110
+ return clone(this, def2, params);
13111
+ },
13112
+ brand() {
13113
+ return this;
13114
+ },
13115
+ register(reg, meta3) {
13116
+ reg.add(this, meta3);
13117
+ return this;
13118
+ },
13119
+ refine(check2, params) {
13120
+ return this.check(refine(check2, params));
13121
+ },
13122
+ superRefine(refinement, params) {
13123
+ return this.check(superRefine(refinement, params));
13124
+ },
13125
+ overwrite(fn) {
13126
+ return this.check(_overwrite(fn));
13127
+ },
13128
+ optional() {
13129
+ return optional(this);
13130
+ },
13131
+ exactOptional() {
13132
+ return exactOptional(this);
13133
+ },
13134
+ nullable() {
13135
+ return nullable(this);
13136
+ },
13137
+ nullish() {
13138
+ return optional(nullable(this));
13139
+ },
13140
+ nonoptional(params) {
13141
+ return nonoptional(this, params);
13142
+ },
13143
+ array() {
13144
+ return array(this);
13145
+ },
13146
+ or(arg) {
13147
+ return union([this, arg]);
13148
+ },
13149
+ and(arg) {
13150
+ return intersection(this, arg);
13151
+ },
13152
+ transform(tx) {
13153
+ return pipe(this, transform(tx));
13154
+ },
13155
+ default(d) {
13156
+ return _default2(this, d);
13157
+ },
13158
+ prefault(d) {
13159
+ return prefault(this, d);
13160
+ },
13161
+ catch(params) {
13162
+ return _catch2(this, params);
13163
+ },
13164
+ pipe(target) {
13165
+ return pipe(this, target);
13166
+ },
13167
+ readonly() {
13168
+ return readonly(this);
13169
+ },
13170
+ describe(description) {
13171
+ const cl = this.clone();
13172
+ globalRegistry.add(cl, { description });
13173
+ return cl;
13174
+ },
13175
+ meta(...args) {
13176
+ if (args.length === 0)
13177
+ return globalRegistry.get(this);
13178
+ const cl = this.clone();
13179
+ globalRegistry.add(cl, args[0]);
13180
+ return cl;
13181
+ },
13182
+ isOptional() {
13183
+ return this.safeParse(void 0).success;
13184
+ },
13185
+ isNullable() {
13186
+ return this.safeParse(null).success;
13187
+ },
13188
+ apply(fn) {
13189
+ return fn(this);
13190
+ }
13191
+ });
12569
13192
  Object.defineProperty(inst, "description", {
12570
13193
  get() {
12571
13194
  return globalRegistry.get(inst)?.description;
12572
13195
  },
12573
13196
  configurable: true
12574
13197
  });
12575
- inst.meta = (...args) => {
12576
- if (args.length === 0) {
12577
- return globalRegistry.get(inst);
12578
- }
12579
- const cl = inst.clone();
12580
- globalRegistry.add(cl, args[0]);
12581
- return cl;
12582
- };
12583
- inst.isOptional = () => inst.safeParse(void 0).success;
12584
- inst.isNullable = () => inst.safeParse(null).success;
12585
- inst.apply = (fn) => fn(inst);
12586
13198
  return inst;
12587
13199
  });
12588
13200
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -12593,21 +13205,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
12593
13205
  inst.format = bag.format ?? null;
12594
13206
  inst.minLength = bag.minimum ?? null;
12595
13207
  inst.maxLength = bag.maximum ?? null;
12596
- inst.regex = (...args) => inst.check(_regex(...args));
12597
- inst.includes = (...args) => inst.check(_includes(...args));
12598
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
12599
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
12600
- inst.min = (...args) => inst.check(_minLength(...args));
12601
- inst.max = (...args) => inst.check(_maxLength(...args));
12602
- inst.length = (...args) => inst.check(_length(...args));
12603
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
12604
- inst.lowercase = (params) => inst.check(_lowercase(params));
12605
- inst.uppercase = (params) => inst.check(_uppercase(params));
12606
- inst.trim = () => inst.check(_trim());
12607
- inst.normalize = (...args) => inst.check(_normalize(...args));
12608
- inst.toLowerCase = () => inst.check(_toLowerCase());
12609
- inst.toUpperCase = () => inst.check(_toUpperCase());
12610
- inst.slugify = () => inst.check(_slugify());
13208
+ _installLazyMethods(inst, "_ZodString", {
13209
+ regex(...args) {
13210
+ return this.check(_regex(...args));
13211
+ },
13212
+ includes(...args) {
13213
+ return this.check(_includes(...args));
13214
+ },
13215
+ startsWith(...args) {
13216
+ return this.check(_startsWith(...args));
13217
+ },
13218
+ endsWith(...args) {
13219
+ return this.check(_endsWith(...args));
13220
+ },
13221
+ min(...args) {
13222
+ return this.check(_minLength(...args));
13223
+ },
13224
+ max(...args) {
13225
+ return this.check(_maxLength(...args));
13226
+ },
13227
+ length(...args) {
13228
+ return this.check(_length(...args));
13229
+ },
13230
+ nonempty(...args) {
13231
+ return this.check(_minLength(1, ...args));
13232
+ },
13233
+ lowercase(params) {
13234
+ return this.check(_lowercase(params));
13235
+ },
13236
+ uppercase(params) {
13237
+ return this.check(_uppercase(params));
13238
+ },
13239
+ trim() {
13240
+ return this.check(_trim());
13241
+ },
13242
+ normalize(...args) {
13243
+ return this.check(_normalize(...args));
13244
+ },
13245
+ toLowerCase() {
13246
+ return this.check(_toLowerCase());
13247
+ },
13248
+ toUpperCase() {
13249
+ return this.check(_toUpperCase());
13250
+ },
13251
+ slugify() {
13252
+ return this.check(_slugify());
13253
+ }
13254
+ });
12611
13255
  });
12612
13256
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
12613
13257
  $ZodString.init(inst, def);
@@ -12686,7 +13330,7 @@ function url(params) {
12686
13330
  }
12687
13331
  function httpUrl(params) {
12688
13332
  return _url(ZodURL, {
12689
- protocol: /^https?$/,
13333
+ protocol: regexes_exports.httpProtocol,
12690
13334
  hostname: regexes_exports.domain,
12691
13335
  ...util_exports.normalizeParams(params)
12692
13336
  });
@@ -12828,21 +13472,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
12828
13472
  $ZodNumber.init(inst, def);
12829
13473
  ZodType.init(inst, def);
12830
13474
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
12831
- inst.gt = (value, params) => inst.check(_gt(value, params));
12832
- inst.gte = (value, params) => inst.check(_gte(value, params));
12833
- inst.min = (value, params) => inst.check(_gte(value, params));
12834
- inst.lt = (value, params) => inst.check(_lt(value, params));
12835
- inst.lte = (value, params) => inst.check(_lte(value, params));
12836
- inst.max = (value, params) => inst.check(_lte(value, params));
12837
- inst.int = (params) => inst.check(int(params));
12838
- inst.safe = (params) => inst.check(int(params));
12839
- inst.positive = (params) => inst.check(_gt(0, params));
12840
- inst.nonnegative = (params) => inst.check(_gte(0, params));
12841
- inst.negative = (params) => inst.check(_lt(0, params));
12842
- inst.nonpositive = (params) => inst.check(_lte(0, params));
12843
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
12844
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
12845
- inst.finite = () => inst;
13475
+ _installLazyMethods(inst, "ZodNumber", {
13476
+ gt(value, params) {
13477
+ return this.check(_gt(value, params));
13478
+ },
13479
+ gte(value, params) {
13480
+ return this.check(_gte(value, params));
13481
+ },
13482
+ min(value, params) {
13483
+ return this.check(_gte(value, params));
13484
+ },
13485
+ lt(value, params) {
13486
+ return this.check(_lt(value, params));
13487
+ },
13488
+ lte(value, params) {
13489
+ return this.check(_lte(value, params));
13490
+ },
13491
+ max(value, params) {
13492
+ return this.check(_lte(value, params));
13493
+ },
13494
+ int(params) {
13495
+ return this.check(int(params));
13496
+ },
13497
+ safe(params) {
13498
+ return this.check(int(params));
13499
+ },
13500
+ positive(params) {
13501
+ return this.check(_gt(0, params));
13502
+ },
13503
+ nonnegative(params) {
13504
+ return this.check(_gte(0, params));
13505
+ },
13506
+ negative(params) {
13507
+ return this.check(_lt(0, params));
13508
+ },
13509
+ nonpositive(params) {
13510
+ return this.check(_lte(0, params));
13511
+ },
13512
+ multipleOf(value, params) {
13513
+ return this.check(_multipleOf(value, params));
13514
+ },
13515
+ step(value, params) {
13516
+ return this.check(_multipleOf(value, params));
13517
+ },
13518
+ finite() {
13519
+ return this;
13520
+ }
13521
+ });
12846
13522
  const bag = inst._zod.bag;
12847
13523
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
12848
13524
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -12989,11 +13665,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
12989
13665
  ZodType.init(inst, def);
12990
13666
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
12991
13667
  inst.element = def.element;
12992
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
12993
- inst.nonempty = (params) => inst.check(_minLength(1, params));
12994
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
12995
- inst.length = (len, params) => inst.check(_length(len, params));
12996
- inst.unwrap = () => inst.element;
13668
+ _installLazyMethods(inst, "ZodArray", {
13669
+ min(n, params) {
13670
+ return this.check(_minLength(n, params));
13671
+ },
13672
+ nonempty(params) {
13673
+ return this.check(_minLength(1, params));
13674
+ },
13675
+ max(n, params) {
13676
+ return this.check(_maxLength(n, params));
13677
+ },
13678
+ length(n, params) {
13679
+ return this.check(_length(n, params));
13680
+ },
13681
+ unwrap() {
13682
+ return this.element;
13683
+ }
13684
+ });
12997
13685
  });
12998
13686
  function array(element, params) {
12999
13687
  return _array(ZodArray, element, params);
@@ -13009,23 +13697,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13009
13697
  util_exports.defineLazy(inst, "shape", () => {
13010
13698
  return def.shape;
13011
13699
  });
13012
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
13013
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
13014
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13015
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13016
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13017
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
13018
- inst.extend = (incoming) => {
13019
- return util_exports.extend(inst, incoming);
13020
- };
13021
- inst.safeExtend = (incoming) => {
13022
- return util_exports.safeExtend(inst, incoming);
13023
- };
13024
- inst.merge = (other) => util_exports.merge(inst, other);
13025
- inst.pick = (mask) => util_exports.pick(inst, mask);
13026
- inst.omit = (mask) => util_exports.omit(inst, mask);
13027
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
13028
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
13700
+ _installLazyMethods(inst, "ZodObject", {
13701
+ keyof() {
13702
+ return _enum2(Object.keys(this._zod.def.shape));
13703
+ },
13704
+ catchall(catchall) {
13705
+ return this.clone({ ...this._zod.def, catchall });
13706
+ },
13707
+ passthrough() {
13708
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13709
+ },
13710
+ loose() {
13711
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13712
+ },
13713
+ strict() {
13714
+ return this.clone({ ...this._zod.def, catchall: never() });
13715
+ },
13716
+ strip() {
13717
+ return this.clone({ ...this._zod.def, catchall: void 0 });
13718
+ },
13719
+ extend(incoming) {
13720
+ return util_exports.extend(this, incoming);
13721
+ },
13722
+ safeExtend(incoming) {
13723
+ return util_exports.safeExtend(this, incoming);
13724
+ },
13725
+ merge(other) {
13726
+ return util_exports.merge(this, other);
13727
+ },
13728
+ pick(mask) {
13729
+ return util_exports.pick(this, mask);
13730
+ },
13731
+ omit(mask) {
13732
+ return util_exports.omit(this, mask);
13733
+ },
13734
+ partial(...args) {
13735
+ return util_exports.partial(ZodOptional, this, args[0]);
13736
+ },
13737
+ required(...args) {
13738
+ return util_exports.required(ZodNonOptional, this, args[0]);
13739
+ }
13740
+ });
13029
13741
  });
13030
13742
  function object(shape, params) {
13031
13743
  const def = {
@@ -13130,6 +13842,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
13130
13842
  inst.valueType = def.valueType;
13131
13843
  });
13132
13844
  function record(keyType, valueType, params) {
13845
+ if (!valueType || !valueType._zod) {
13846
+ return new ZodRecord({
13847
+ type: "record",
13848
+ keyType: string2(),
13849
+ valueType: keyType,
13850
+ ...util_exports.normalizeParams(valueType)
13851
+ });
13852
+ }
13133
13853
  return new ZodRecord({
13134
13854
  type: "record",
13135
13855
  keyType,
@@ -13301,10 +14021,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13301
14021
  if (output instanceof Promise) {
13302
14022
  return output.then((output2) => {
13303
14023
  payload.value = output2;
14024
+ payload.fallback = true;
13304
14025
  return payload;
13305
14026
  });
13306
14027
  }
13307
14028
  payload.value = output;
14029
+ payload.fallback = true;
13308
14030
  return payload;
13309
14031
  };
13310
14032
  });
@@ -13459,6 +14181,20 @@ function codec(in_, out, params) {
13459
14181
  reverseTransform: params.encode
13460
14182
  });
13461
14183
  }
14184
+ function invertCodec(codec2) {
14185
+ const def = codec2._zod.def;
14186
+ return new ZodCodec({
14187
+ type: "pipe",
14188
+ in: def.out,
14189
+ out: def.in,
14190
+ transform: def.reverseTransform,
14191
+ reverseTransform: def.transform
14192
+ });
14193
+ }
14194
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
14195
+ ZodPipe.init(inst, def);
14196
+ $ZodPreprocess.init(inst, def);
14197
+ });
13462
14198
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13463
14199
  $ZodReadonly.init(inst, def);
13464
14200
  ZodType.init(inst, def);
@@ -13538,8 +14274,8 @@ function custom(fn, _params) {
13538
14274
  function refine(fn, _params = {}) {
13539
14275
  return _refine(ZodCustom, fn, _params);
13540
14276
  }
13541
- function superRefine(fn) {
13542
- return _superRefine(fn);
14277
+ function superRefine(fn, params) {
14278
+ return _superRefine(fn, params);
13543
14279
  }
13544
14280
  var describe2 = describe;
13545
14281
  var meta2 = meta;
@@ -13577,10 +14313,14 @@ function json(params) {
13577
14313
  return jsonSchema;
13578
14314
  }
13579
14315
  function preprocess(fn, schema) {
13580
- return pipe(transform(fn), schema);
14316
+ return new ZodPreprocess({
14317
+ type: "pipe",
14318
+ in: transform(fn),
14319
+ out: schema
14320
+ });
13581
14321
  }
13582
14322
 
13583
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
14323
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
13584
14324
  var ZodIssueCode = {
13585
14325
  invalid_type: "invalid_type",
13586
14326
  too_big: "too_big",
@@ -13606,7 +14346,7 @@ var ZodFirstPartyTypeKind;
13606
14346
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
13607
14347
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13608
14348
 
13609
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
14349
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
13610
14350
  var z = {
13611
14351
  ...schemas_exports2,
13612
14352
  ...checks_exports2,
@@ -13998,12 +14738,6 @@ function convertBaseSchema(schema, ctx) {
13998
14738
  default:
13999
14739
  throw new Error(`Unsupported type: ${type}`);
14000
14740
  }
14001
- if (schema.description) {
14002
- zodSchema = zodSchema.describe(schema.description);
14003
- }
14004
- if (schema.default !== void 0) {
14005
- zodSchema = zodSchema.default(schema.default);
14006
- }
14007
14741
  return zodSchema;
14008
14742
  }
14009
14743
  function convertSchema(schema, ctx) {
@@ -14040,6 +14774,9 @@ function convertSchema(schema, ctx) {
14040
14774
  if (schema.readOnly === true) {
14041
14775
  baseSchema = z.readonly(baseSchema);
14042
14776
  }
14777
+ if (schema.default !== void 0) {
14778
+ baseSchema = baseSchema.default(schema.default);
14779
+ }
14043
14780
  const extraMeta = {};
14044
14781
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14045
14782
  for (const key of coreMetadataKeys) {
@@ -14061,26 +14798,35 @@ function convertSchema(schema, ctx) {
14061
14798
  if (Object.keys(extraMeta).length > 0) {
14062
14799
  ctx.registry.add(baseSchema, extraMeta);
14063
14800
  }
14801
+ if (schema.description) {
14802
+ baseSchema = baseSchema.describe(schema.description);
14803
+ }
14064
14804
  return baseSchema;
14065
14805
  }
14066
14806
  function fromJSONSchema(schema, params) {
14067
14807
  if (typeof schema === "boolean") {
14068
14808
  return schema ? z.any() : z.never();
14069
14809
  }
14070
- const version2 = detectVersion(schema, params?.defaultTarget);
14071
- const defs = schema.$defs || schema.definitions || {};
14810
+ let normalized;
14811
+ try {
14812
+ normalized = JSON.parse(JSON.stringify(schema));
14813
+ } catch {
14814
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14815
+ }
14816
+ const version2 = detectVersion(normalized, params?.defaultTarget);
14817
+ const defs = normalized.$defs || normalized.definitions || {};
14072
14818
  const ctx = {
14073
14819
  version: version2,
14074
14820
  defs,
14075
14821
  refs: /* @__PURE__ */ new Map(),
14076
14822
  processing: /* @__PURE__ */ new Set(),
14077
- rootSchema: schema,
14823
+ rootSchema: normalized,
14078
14824
  registry: params?.registry ?? globalRegistry
14079
14825
  };
14080
- return convertSchema(schema, ctx);
14826
+ return convertSchema(normalized, ctx);
14081
14827
  }
14082
14828
 
14083
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
14829
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
14084
14830
  var coerce_exports = {};
14085
14831
  __export(coerce_exports, {
14086
14832
  bigint: () => bigint3,
@@ -14105,7 +14851,7 @@ function date4(params) {
14105
14851
  return _coercedDate(ZodDate, params);
14106
14852
  }
14107
14853
 
14108
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
14854
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
14109
14855
  config(en_default());
14110
14856
 
14111
14857
  // src/schemas.ts
@@ -14928,8 +15674,8 @@ var SlackProvider = class {
14928
15674
  }
14929
15675
  const iconData = await iconResponse.arrayBuffer();
14930
15676
  await client.setAppIcon(appCredentials.appId, iconData);
14931
- } catch (error48) {
14932
- console.warn(`[Slack] Failed to set app icon for "${agentId}":`, error48);
15677
+ } catch (error51) {
15678
+ console.warn(`[Slack] Failed to set app icon for "${agentId}":`, error51);
14933
15679
  }
14934
15680
  }
14935
15681
  const installationId = crypto.randomUUID();
@@ -15076,8 +15822,8 @@ var SlackProvider = class {
15076
15822
  try {
15077
15823
  const result = await this.connect(agentId, options);
15078
15824
  return c.json(result);
15079
- } catch (error48) {
15080
- const message = error48 instanceof Error ? error48.message : "Failed to connect";
15825
+ } catch (error51) {
15826
+ const message = error51 instanceof Error ? error51.message : "Failed to connect";
15081
15827
  return c.json({ error: message }, 500);
15082
15828
  }
15083
15829
  }
@@ -15090,8 +15836,8 @@ var SlackProvider = class {
15090
15836
  try {
15091
15837
  await this.disconnect(agentId);
15092
15838
  return c.json({ success: true });
15093
- } catch (error48) {
15094
- const message = error48 instanceof Error ? error48.message : "Failed to disconnect";
15839
+ } catch (error51) {
15840
+ const message = error51 instanceof Error ? error51.message : "Failed to disconnect";
15095
15841
  return c.json({ error: message }, 500);
15096
15842
  }
15097
15843
  }
@@ -15103,7 +15849,7 @@ var SlackProvider = class {
15103
15849
  const url2 = new URL(c.req.url);
15104
15850
  const code = url2.searchParams.get("code");
15105
15851
  const state = url2.searchParams.get("state");
15106
- const error48 = url2.searchParams.get("error");
15852
+ const error51 = url2.searchParams.get("error");
15107
15853
  if (!state) {
15108
15854
  return c.json({ error: "Missing state parameter" }, 400);
15109
15855
  }
@@ -15112,10 +15858,10 @@ var SlackProvider = class {
15112
15858
  return c.json({ error: "Invalid or expired installation state" }, 400);
15113
15859
  }
15114
15860
  const pending = this.#decryptPendingInstallation(pendingEncrypted);
15115
- if (error48) {
15861
+ if (error51) {
15116
15862
  const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
15117
15863
  const redirect = new URL(errorUrl, c.req.url);
15118
- redirect.searchParams.set("channel_error", error48);
15864
+ redirect.searchParams.set("channel_error", error51);
15119
15865
  redirect.searchParams.set("platform", "slack");
15120
15866
  return c.redirect(redirect.toString());
15121
15867
  }
@@ -15193,9 +15939,9 @@ var SlackProvider = class {
15193
15939
  redirect.searchParams.set("agent", pending.agentId);
15194
15940
  redirect.searchParams.set("team", teamName);
15195
15941
  return c.redirect(redirect.toString());
15196
- } catch (error49) {
15197
- console.error("[Slack] OAuth callback error:", error49);
15198
- const message = error49 instanceof Error ? error49.message : "OAuth failed";
15942
+ } catch (error52) {
15943
+ console.error("[Slack] OAuth callback error:", error52);
15944
+ const message = error52 instanceof Error ? error52.message : "OAuth failed";
15199
15945
  const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
15200
15946
  const redirect = new URL(errorUrl, c.req.url);
15201
15947
  redirect.searchParams.set("channel_error", message);
@@ -15269,8 +16015,8 @@ var SlackProvider = class {
15269
16015
  });
15270
16016
  try {
15271
16017
  return await agentChannels.handleWebhookEvent("slack", delegateRequest);
15272
- } catch (error48) {
15273
- console.error("[Slack] Error delegating to AgentChannels:", error48);
16018
+ } catch (error51) {
16019
+ console.error("[Slack] Error delegating to AgentChannels:", error51);
15274
16020
  return c.json({ ok: true });
15275
16021
  }
15276
16022
  }
@@ -15327,9 +16073,9 @@ var SlackProvider = class {
15327
16073
  const result = await agent.generate(prompt);
15328
16074
  const text = typeof result.text === "string" ? result.text : JSON.stringify(result.text);
15329
16075
  await sendDelayedResponse(text);
15330
- } catch (error48) {
15331
- console.error("[Slack] Command error:", error48);
15332
- const message = error48 instanceof Error ? error48.message : "Command failed";
16076
+ } catch (error51) {
16077
+ console.error("[Slack] Command error:", error51);
16078
+ const message = error51 instanceof Error ? error51.message : "Command failed";
15333
16079
  await sendDelayedResponse(`Error: ${message}`);
15334
16080
  }
15335
16081
  })();