@mastra/slack 1.2.1 → 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
@@ -267,7 +267,9 @@ var DEFAULT_BOT_SCOPES = [
267
267
  "users:read",
268
268
  // Reactions and files
269
269
  "reactions:write",
270
- "files:read"
270
+ "files:read",
271
+ // Assistant mode (enables thread context for DMs and AI Assistant surface)
272
+ "assistant:write"
271
273
  ];
272
274
  var DEFAULT_BOT_EVENTS = [
273
275
  "app_mention",
@@ -300,6 +302,11 @@ function buildManifest(options) {
300
302
  bot_user: {
301
303
  display_name: name,
302
304
  always_online: true
305
+ },
306
+ // Required by Slack when `assistant:write` scope is present.
307
+ // Surfaces the app in the AI Assistant picker.
308
+ assistant_view: {
309
+ assistant_description: shortDescription
303
310
  }
304
311
  },
305
312
  oauth_config: {
@@ -333,7 +340,7 @@ function buildManifest(options) {
333
340
  return manifest;
334
341
  }
335
342
 
336
- // ../../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
337
344
  var external_exports = {};
338
345
  __export(external_exports, {
339
346
  $brand: () => $brand,
@@ -395,6 +402,7 @@ __export(external_exports, {
395
402
  ZodOptional: () => ZodOptional,
396
403
  ZodPipe: () => ZodPipe,
397
404
  ZodPrefault: () => ZodPrefault,
405
+ ZodPreprocess: () => ZodPreprocess,
398
406
  ZodPromise: () => ZodPromise,
399
407
  ZodReadonly: () => ZodReadonly,
400
408
  ZodRealError: () => ZodRealError,
@@ -473,6 +481,7 @@ __export(external_exports, {
473
481
  int32: () => int32,
474
482
  int64: () => int64,
475
483
  intersection: () => intersection,
484
+ invertCodec: () => invertCodec,
476
485
  ipv4: () => ipv42,
477
486
  ipv6: () => ipv62,
478
487
  iso: () => iso_exports,
@@ -574,7 +583,7 @@ __export(external_exports, {
574
583
  xor: () => xor
575
584
  });
576
585
 
577
- // ../../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
578
587
  var core_exports2 = {};
579
588
  __export(core_exports2, {
580
589
  $ZodAny: () => $ZodAny,
@@ -654,6 +663,7 @@ __export(core_exports2, {
654
663
  $ZodOptional: () => $ZodOptional,
655
664
  $ZodPipe: () => $ZodPipe,
656
665
  $ZodPrefault: () => $ZodPrefault,
666
+ $ZodPreprocess: () => $ZodPreprocess,
657
667
  $ZodPromise: () => $ZodPromise,
658
668
  $ZodReadonly: () => $ZodReadonly,
659
669
  $ZodRealError: () => $ZodRealError,
@@ -852,8 +862,9 @@ __export(core_exports2, {
852
862
  version: () => version
853
863
  });
854
864
 
855
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
856
- 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({
857
868
  status: "aborted"
858
869
  });
859
870
  // @__NO_SIDE_EFFECTS__
@@ -888,10 +899,10 @@ function $constructor(name, initializer3, params) {
888
899
  }
889
900
  Object.defineProperty(Definition, "name", { value: name });
890
901
  function _(def) {
891
- var _a2;
902
+ var _a3;
892
903
  const inst = params?.Parent ? new Definition() : this;
893
904
  init(inst, def);
894
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
905
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
895
906
  for (const fn of inst._zod.deferred) {
896
907
  fn();
897
908
  }
@@ -920,14 +931,15 @@ var $ZodEncodeError = class extends Error {
920
931
  this.name = "ZodEncodeError";
921
932
  }
922
933
  };
923
- var globalConfig = {};
934
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
935
+ var globalConfig = globalThis.__zod_globalConfig;
924
936
  function config(newConfig) {
925
937
  if (newConfig)
926
938
  Object.assign(globalConfig, newConfig);
927
939
  return globalConfig;
928
940
  }
929
941
 
930
- // ../../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
931
943
  var util_exports = {};
932
944
  __export(util_exports, {
933
945
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -953,6 +965,7 @@ __export(util_exports, {
953
965
  defineLazy: () => defineLazy,
954
966
  esc: () => esc,
955
967
  escapeRegex: () => escapeRegex,
968
+ explicitlyAborted: () => explicitlyAborted,
956
969
  extend: () => extend,
957
970
  finalizeIssue: () => finalizeIssue,
958
971
  floatSafeRemainder: () => floatSafeRemainder,
@@ -1041,19 +1054,12 @@ function cleanRegex(source) {
1041
1054
  return source.slice(start, end);
1042
1055
  }
1043
1056
  function floatSafeRemainder(val, step) {
1044
- const valDecCount = (val.toString().split(".")[1] || "").length;
1045
- const stepString = step.toString();
1046
- let stepDecCount = (stepString.split(".")[1] || "").length;
1047
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
1048
- const match = stepString.match(/\d?e-(\d?)/);
1049
- if (match?.[1]) {
1050
- stepDecCount = Number.parseInt(match[1]);
1051
- }
1052
- }
1053
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1054
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1055
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1056
- 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;
1057
1063
  }
1058
1064
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
1059
1065
  function defineLazy(object2, key, getter) {
@@ -1135,7 +1141,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
1135
1141
  function isObject(data) {
1136
1142
  return typeof data === "object" && data !== null && !Array.isArray(data);
1137
1143
  }
1138
- var allowsEval = cached(() => {
1144
+ var allowsEval = /* @__PURE__ */ cached(() => {
1145
+ if (globalConfig.jitless) {
1146
+ return false;
1147
+ }
1139
1148
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
1140
1149
  return false;
1141
1150
  }
@@ -1168,6 +1177,10 @@ function shallowClone(o) {
1168
1177
  return { ...o };
1169
1178
  if (Array.isArray(o))
1170
1179
  return [...o];
1180
+ if (o instanceof Map)
1181
+ return new Map(o);
1182
+ if (o instanceof Set)
1183
+ return new Set(o);
1171
1184
  return o;
1172
1185
  }
1173
1186
  function numKeys(data) {
@@ -1224,7 +1237,14 @@ var getParsedType = (data) => {
1224
1237
  }
1225
1238
  };
1226
1239
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1227
- 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
+ ]);
1228
1248
  function escapeRegex(str) {
1229
1249
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1230
1250
  }
@@ -1393,6 +1413,9 @@ function safeExtend(schema, shape) {
1393
1413
  return clone(schema, def);
1394
1414
  }
1395
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
+ }
1396
1419
  const def = mergeDefs(a._zod.def, {
1397
1420
  get shape() {
1398
1421
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1402,8 +1425,7 @@ function merge(a, b) {
1402
1425
  get catchall() {
1403
1426
  return b._zod.def.catchall;
1404
1427
  },
1405
- checks: []
1406
- // delete existing checks
1428
+ checks: b._zod.def.checks ?? []
1407
1429
  });
1408
1430
  return clone(a, def);
1409
1431
  }
@@ -1486,10 +1508,20 @@ function aborted(x, startIndex = 0) {
1486
1508
  }
1487
1509
  return false;
1488
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
+ }
1489
1521
  function prefixIssues(path, issues) {
1490
1522
  return issues.map((iss) => {
1491
- var _a2;
1492
- (_a2 = iss).path ?? (_a2.path = []);
1523
+ var _a3;
1524
+ (_a3 = iss).path ?? (_a3.path = []);
1493
1525
  iss.path.unshift(path);
1494
1526
  return iss;
1495
1527
  });
@@ -1498,17 +1530,14 @@ function unwrapMessage(message) {
1498
1530
  return typeof message === "string" ? message : message?.message;
1499
1531
  }
1500
1532
  function finalizeIssue(iss, ctx, config2) {
1501
- const full = { ...iss, path: iss.path ?? [] };
1502
- if (!iss.message) {
1503
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1504
- full.message = message;
1505
- }
1506
- delete full.inst;
1507
- delete full.continue;
1508
- if (!ctx?.reportInput) {
1509
- delete full.input;
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;
1510
1539
  }
1511
- return full;
1540
+ return rest;
1512
1541
  }
1513
1542
  function getSizableOrigin(input) {
1514
1543
  if (input instanceof Set)
@@ -1606,7 +1635,7 @@ var Class = class {
1606
1635
  }
1607
1636
  };
1608
1637
 
1609
- // ../../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
1610
1639
  var initializer = (inst, def) => {
1611
1640
  inst.name = "$ZodError";
1612
1641
  Object.defineProperty(inst, "_zod", {
@@ -1625,10 +1654,10 @@ var initializer = (inst, def) => {
1625
1654
  };
1626
1655
  var $ZodError = $constructor("$ZodError", initializer);
1627
1656
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1628
- function flattenError(error48, mapper = (issue2) => issue2.message) {
1657
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
1629
1658
  const fieldErrors = {};
1630
1659
  const formErrors = [];
1631
- for (const sub of error48.issues) {
1660
+ for (const sub of error51.issues) {
1632
1661
  if (sub.path.length > 0) {
1633
1662
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1634
1663
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1638,50 +1667,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
1638
1667
  }
1639
1668
  return { formErrors, fieldErrors };
1640
1669
  }
1641
- function formatError(error48, mapper = (issue2) => issue2.message) {
1670
+ function formatError(error51, mapper = (issue2) => issue2.message) {
1642
1671
  const fieldErrors = { _errors: [] };
1643
- const processError = (error49) => {
1644
- for (const issue2 of error49.issues) {
1672
+ const processError = (error52, path = []) => {
1673
+ for (const issue2 of error52.issues) {
1645
1674
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1646
- issue2.errors.map((issues) => processError({ issues }));
1675
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1647
1676
  } else if (issue2.code === "invalid_key") {
1648
- processError({ issues: issue2.issues });
1677
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1649
1678
  } else if (issue2.code === "invalid_element") {
1650
- processError({ issues: issue2.issues });
1651
- } else if (issue2.path.length === 0) {
1652
- fieldErrors._errors.push(mapper(issue2));
1679
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1653
1680
  } else {
1654
- let curr = fieldErrors;
1655
- let i = 0;
1656
- while (i < issue2.path.length) {
1657
- const el = issue2.path[i];
1658
- const terminal = i === issue2.path.length - 1;
1659
- if (!terminal) {
1660
- curr[el] = curr[el] || { _errors: [] };
1661
- } else {
1662
- curr[el] = curr[el] || { _errors: [] };
1663
- 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++;
1664
1698
  }
1665
- curr = curr[el];
1666
- i++;
1667
1699
  }
1668
1700
  }
1669
1701
  }
1670
1702
  };
1671
- processError(error48);
1703
+ processError(error51);
1672
1704
  return fieldErrors;
1673
1705
  }
1674
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
1706
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
1675
1707
  const result = { errors: [] };
1676
- const processError = (error49, path = []) => {
1677
- var _a2, _b;
1678
- for (const issue2 of error49.issues) {
1708
+ const processError = (error52, path = []) => {
1709
+ var _a3, _b;
1710
+ for (const issue2 of error52.issues) {
1679
1711
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1680
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
1712
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1681
1713
  } else if (issue2.code === "invalid_key") {
1682
- processError({ issues: issue2.issues }, issue2.path);
1714
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1683
1715
  } else if (issue2.code === "invalid_element") {
1684
- processError({ issues: issue2.issues }, issue2.path);
1716
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1685
1717
  } else {
1686
1718
  const fullpath = [...path, ...issue2.path];
1687
1719
  if (fullpath.length === 0) {
@@ -1695,7 +1727,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
1695
1727
  const terminal = i === fullpath.length - 1;
1696
1728
  if (typeof el === "string") {
1697
1729
  curr.properties ?? (curr.properties = {});
1698
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1730
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1699
1731
  curr = curr.properties[el];
1700
1732
  } else {
1701
1733
  curr.items ?? (curr.items = []);
@@ -1710,7 +1742,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
1710
1742
  }
1711
1743
  }
1712
1744
  };
1713
- processError(error48);
1745
+ processError(error51);
1714
1746
  return result;
1715
1747
  }
1716
1748
  function toDotPath(_path) {
@@ -1731,9 +1763,9 @@ function toDotPath(_path) {
1731
1763
  }
1732
1764
  return segs.join("");
1733
1765
  }
1734
- function prettifyError(error48) {
1766
+ function prettifyError(error51) {
1735
1767
  const lines = [];
1736
- 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);
1737
1769
  for (const issue2 of issues) {
1738
1770
  lines.push(`\u2716 ${issue2.message}`);
1739
1771
  if (issue2.path?.length)
@@ -1742,9 +1774,9 @@ function prettifyError(error48) {
1742
1774
  return lines.join("\n");
1743
1775
  }
1744
1776
 
1745
- // ../../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
1746
1778
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1747
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1779
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1748
1780
  const result = schema._zod.run({ value, issues: [] }, ctx);
1749
1781
  if (result instanceof Promise) {
1750
1782
  throw new $ZodAsyncError();
@@ -1758,7 +1790,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
1758
1790
  };
1759
1791
  var parse = /* @__PURE__ */ _parse($ZodRealError);
1760
1792
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1761
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1793
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1762
1794
  let result = schema._zod.run({ value, issues: [] }, ctx);
1763
1795
  if (result instanceof Promise)
1764
1796
  result = await result;
@@ -1783,7 +1815,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
1783
1815
  };
1784
1816
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1785
1817
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1786
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1818
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1787
1819
  let result = schema._zod.run({ value, issues: [] }, ctx);
1788
1820
  if (result instanceof Promise)
1789
1821
  result = await result;
@@ -1794,7 +1826,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1794
1826
  };
1795
1827
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1796
1828
  var _encode = (_Err) => (schema, value, _ctx) => {
1797
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1829
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1798
1830
  return _parse(_Err)(schema, value, ctx);
1799
1831
  };
1800
1832
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -1803,7 +1835,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
1803
1835
  };
1804
1836
  var decode = /* @__PURE__ */ _decode($ZodRealError);
1805
1837
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1806
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1838
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1807
1839
  return _parseAsync(_Err)(schema, value, ctx);
1808
1840
  };
1809
1841
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -1812,7 +1844,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
1812
1844
  };
1813
1845
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
1814
1846
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
1815
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1847
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1816
1848
  return _safeParse(_Err)(schema, value, ctx);
1817
1849
  };
1818
1850
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -1821,7 +1853,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
1821
1853
  };
1822
1854
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
1823
1855
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1824
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1856
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1825
1857
  return _safeParseAsync(_Err)(schema, value, ctx);
1826
1858
  };
1827
1859
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -1830,7 +1862,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1830
1862
  };
1831
1863
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1832
1864
 
1833
- // ../../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
1834
1866
  var regexes_exports = {};
1835
1867
  __export(regexes_exports, {
1836
1868
  base64: () => base64,
@@ -1854,6 +1886,7 @@ __export(regexes_exports, {
1854
1886
  hex: () => hex,
1855
1887
  hostname: () => hostname,
1856
1888
  html5Email: () => html5Email,
1889
+ httpProtocol: () => httpProtocol,
1857
1890
  idnEmail: () => idnEmail,
1858
1891
  integer: () => integer,
1859
1892
  ipv4: () => ipv4,
@@ -1892,7 +1925,7 @@ __export(regexes_exports, {
1892
1925
  uuid7: () => uuid7,
1893
1926
  xid: () => xid
1894
1927
  });
1895
- var cuid = /^[cC][^\s-]{8,}$/;
1928
+ var cuid = /^[cC][0-9a-z]{6,}$/;
1896
1929
  var cuid2 = /^[0-9a-z]+$/;
1897
1930
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1898
1931
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -1931,6 +1964,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
1931
1964
  var base64url = /^[A-Za-z0-9_-]*$/;
1932
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])?)*\.?$/;
1933
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?$/;
1934
1968
  var e164 = /^\+[1-9]\d{6,14}$/;
1935
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])))`;
1936
1970
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1987,12 +2021,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1987
2021
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1988
2022
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1989
2023
 
1990
- // ../../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
1991
2025
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1992
- var _a2;
2026
+ var _a3;
1993
2027
  inst._zod ?? (inst._zod = {});
1994
2028
  inst._zod.def = def;
1995
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
2029
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1996
2030
  });
1997
2031
  var numericOriginMap = {
1998
2032
  number: "number",
@@ -2058,8 +2092,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2058
2092
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2059
2093
  $ZodCheck.init(inst, def);
2060
2094
  inst._zod.onattach.push((inst2) => {
2061
- var _a2;
2062
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
2095
+ var _a3;
2096
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
2063
2097
  });
2064
2098
  inst._zod.check = (payload) => {
2065
2099
  if (typeof payload.value !== typeof def.value)
@@ -2192,9 +2226,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2192
2226
  };
2193
2227
  });
2194
2228
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2195
- var _a2;
2229
+ var _a3;
2196
2230
  $ZodCheck.init(inst, def);
2197
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2231
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2198
2232
  const val = payload.value;
2199
2233
  return !nullish(val) && val.size !== void 0;
2200
2234
  });
@@ -2220,9 +2254,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2220
2254
  };
2221
2255
  });
2222
2256
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2223
- var _a2;
2257
+ var _a3;
2224
2258
  $ZodCheck.init(inst, def);
2225
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2259
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2226
2260
  const val = payload.value;
2227
2261
  return !nullish(val) && val.size !== void 0;
2228
2262
  });
@@ -2248,9 +2282,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2248
2282
  };
2249
2283
  });
2250
2284
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2251
- var _a2;
2285
+ var _a3;
2252
2286
  $ZodCheck.init(inst, def);
2253
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2287
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2254
2288
  const val = payload.value;
2255
2289
  return !nullish(val) && val.size !== void 0;
2256
2290
  });
@@ -2278,9 +2312,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2278
2312
  };
2279
2313
  });
2280
2314
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2281
- var _a2;
2315
+ var _a3;
2282
2316
  $ZodCheck.init(inst, def);
2283
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2317
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2284
2318
  const val = payload.value;
2285
2319
  return !nullish(val) && val.length !== void 0;
2286
2320
  });
@@ -2307,9 +2341,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2307
2341
  };
2308
2342
  });
2309
2343
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2310
- var _a2;
2344
+ var _a3;
2311
2345
  $ZodCheck.init(inst, def);
2312
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2346
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2313
2347
  const val = payload.value;
2314
2348
  return !nullish(val) && val.length !== void 0;
2315
2349
  });
@@ -2336,9 +2370,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2336
2370
  };
2337
2371
  });
2338
2372
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2339
- var _a2;
2373
+ var _a3;
2340
2374
  $ZodCheck.init(inst, def);
2341
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2375
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2342
2376
  const val = payload.value;
2343
2377
  return !nullish(val) && val.length !== void 0;
2344
2378
  });
@@ -2367,7 +2401,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2367
2401
  };
2368
2402
  });
2369
2403
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2370
- var _a2, _b;
2404
+ var _a3, _b;
2371
2405
  $ZodCheck.init(inst, def);
2372
2406
  inst._zod.onattach.push((inst2) => {
2373
2407
  const bag = inst2._zod.bag;
@@ -2378,7 +2412,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2378
2412
  }
2379
2413
  });
2380
2414
  if (def.pattern)
2381
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2415
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2382
2416
  def.pattern.lastIndex = 0;
2383
2417
  if (def.pattern.test(payload.value))
2384
2418
  return;
@@ -2535,7 +2569,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2535
2569
  };
2536
2570
  });
2537
2571
 
2538
- // ../../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
2539
2573
  var Doc = class {
2540
2574
  constructor(args = []) {
2541
2575
  this.content = [];
@@ -2571,16 +2605,16 @@ var Doc = class {
2571
2605
  }
2572
2606
  };
2573
2607
 
2574
- // ../../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
2575
2609
  var version = {
2576
2610
  major: 4,
2577
- minor: 3,
2578
- patch: 6
2611
+ minor: 4,
2612
+ patch: 3
2579
2613
  };
2580
2614
 
2581
- // ../../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
2582
2616
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2583
- var _a2;
2617
+ var _a3;
2584
2618
  inst ?? (inst = {});
2585
2619
  inst._zod.def = def;
2586
2620
  inst._zod.bag = inst._zod.bag || {};
@@ -2595,7 +2629,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2595
2629
  }
2596
2630
  }
2597
2631
  if (checks.length === 0) {
2598
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2632
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2599
2633
  inst._zod.deferred?.push(() => {
2600
2634
  inst._zod.run = inst._zod.parse;
2601
2635
  });
@@ -2605,6 +2639,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2605
2639
  let asyncResult;
2606
2640
  for (const ch of checks2) {
2607
2641
  if (ch._zod.def.when) {
2642
+ if (explicitlyAborted(payload))
2643
+ continue;
2608
2644
  const shouldRun = ch._zod.def.when(payload);
2609
2645
  if (!shouldRun)
2610
2646
  continue;
@@ -2745,6 +2781,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
2745
2781
  inst._zod.check = (payload) => {
2746
2782
  try {
2747
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
+ }
2748
2797
  const url2 = new URL(trimmed);
2749
2798
  if (def.hostname) {
2750
2799
  def.hostname.lastIndex = 0;
@@ -2898,6 +2947,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
2898
2947
  function isValidBase64(data) {
2899
2948
  if (data === "")
2900
2949
  return true;
2950
+ if (/\s/.test(data))
2951
+ return false;
2901
2952
  if (data.length % 4 !== 0)
2902
2953
  return false;
2903
2954
  try {
@@ -3090,8 +3141,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
3090
3141
  $ZodType.init(inst, def);
3091
3142
  inst._zod.pattern = _undefined;
3092
3143
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
3093
- inst._zod.optin = "optional";
3094
- inst._zod.optout = "optional";
3095
3144
  inst._zod.parse = (payload, _ctx) => {
3096
3145
  const input = payload.value;
3097
3146
  if (typeof input === "undefined")
@@ -3220,15 +3269,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3220
3269
  return payload;
3221
3270
  };
3222
3271
  });
3223
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3272
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3273
+ const isPresent = key in input;
3224
3274
  if (result.issues.length) {
3225
- if (isOptionalOut && !(key in input)) {
3275
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3226
3276
  return;
3227
3277
  }
3228
3278
  final.issues.push(...prefixIssues(key, result.issues));
3229
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
+ }
3230
3291
  if (result.value === void 0) {
3231
- if (key in input) {
3292
+ if (isPresent) {
3232
3293
  final.value[key] = void 0;
3233
3294
  }
3234
3295
  } else {
@@ -3256,8 +3317,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3256
3317
  const keySet = def.keySet;
3257
3318
  const _catchall = def.catchall._zod;
3258
3319
  const t = _catchall.def.type;
3320
+ const isOptionalIn = _catchall.optin === "optional";
3259
3321
  const isOptionalOut = _catchall.optout === "optional";
3260
3322
  for (const key in input) {
3323
+ if (key === "__proto__")
3324
+ continue;
3261
3325
  if (keySet.has(key))
3262
3326
  continue;
3263
3327
  if (t === "never") {
@@ -3266,9 +3330,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3266
3330
  }
3267
3331
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3268
3332
  if (r instanceof Promise) {
3269
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3333
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3270
3334
  } else {
3271
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3335
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3272
3336
  }
3273
3337
  }
3274
3338
  if (unrecognized.length) {
@@ -3334,12 +3398,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3334
3398
  const shape = value.shape;
3335
3399
  for (const key of value.keys) {
3336
3400
  const el = shape[key];
3401
+ const isOptionalIn = el._zod.optin === "optional";
3337
3402
  const isOptionalOut = el._zod.optout === "optional";
3338
3403
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3339
3404
  if (r instanceof Promise) {
3340
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3405
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3341
3406
  } else {
3342
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3407
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3343
3408
  }
3344
3409
  }
3345
3410
  if (!catchall) {
@@ -3370,9 +3435,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3370
3435
  const id = ids[key];
3371
3436
  const k = esc(key);
3372
3437
  const schema = shape[key];
3438
+ const isOptionalIn = schema?._zod?.optin === "optional";
3373
3439
  const isOptionalOut = schema?._zod?.optout === "optional";
3374
3440
  doc.write(`const ${id} = ${parseStr(key)};`);
3375
- if (isOptionalOut) {
3441
+ if (isOptionalIn && isOptionalOut) {
3376
3442
  doc.write(`
3377
3443
  if (${id}.issues.length) {
3378
3444
  if (${k} in input) {
@@ -3391,6 +3457,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3391
3457
  newResult[${k}] = ${id}.value;
3392
3458
  }
3393
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
+
3394
3487
  `);
3395
3488
  } else {
3396
3489
  doc.write(`
@@ -3484,10 +3577,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3484
3577
  }
3485
3578
  return void 0;
3486
3579
  });
3487
- const single = def.options.length === 1;
3488
- const first = def.options[0]._zod.run;
3580
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3489
3581
  inst._zod.parse = (payload, ctx) => {
3490
- if (single) {
3582
+ if (first) {
3491
3583
  return first(payload, ctx);
3492
3584
  }
3493
3585
  let async = false;
@@ -3540,10 +3632,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
3540
3632
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3541
3633
  $ZodUnion.init(inst, def);
3542
3634
  def.inclusive = false;
3543
- const single = def.options.length === 1;
3544
- const first = def.options[0]._zod.run;
3635
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3545
3636
  inst._zod.parse = (payload, ctx) => {
3546
- if (single) {
3637
+ if (first) {
3547
3638
  return first(payload, ctx);
3548
3639
  }
3549
3640
  let async = false;
@@ -3618,7 +3709,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3618
3709
  if (opt) {
3619
3710
  return opt._zod.run(payload, ctx);
3620
3711
  }
3621
- if (def.unionFallback) {
3712
+ if (def.unionFallback || ctx.direction === "backward") {
3622
3713
  return _super(payload, ctx);
3623
3714
  }
3624
3715
  payload.issues.push({
@@ -3626,6 +3717,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3626
3717
  errors: [],
3627
3718
  note: "No matching discriminator",
3628
3719
  discriminator: def.discriminator,
3720
+ options: Array.from(disc.value.keys()),
3629
3721
  input,
3630
3722
  path: [def.discriminator],
3631
3723
  inst
@@ -3747,64 +3839,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
3747
3839
  }
3748
3840
  payload.value = [];
3749
3841
  const proms = [];
3750
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
3751
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
3842
+ const optinStart = getTupleOptStart(items, "optin");
3843
+ const optoutStart = getTupleOptStart(items, "optout");
3752
3844
  if (!def.rest) {
3753
- const tooBig = input.length > items.length;
3754
- const tooSmall = input.length < optStart - 1;
3755
- if (tooBig || tooSmall) {
3845
+ if (input.length < optinStart) {
3756
3846
  payload.issues.push({
3757
- ...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,
3758
3850
  input,
3759
3851
  inst,
3760
3852
  origin: "array"
3761
3853
  });
3762
3854
  return payload;
3763
3855
  }
3764
- }
3765
- let i = -1;
3766
- for (const item of items) {
3767
- i++;
3768
- if (i >= input.length) {
3769
- if (i >= optStart)
3770
- 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
+ });
3771
3865
  }
3772
- const result = item._zod.run({
3773
- value: input[i],
3774
- issues: []
3775
- }, ctx);
3776
- if (result instanceof Promise) {
3777
- 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
+ }));
3778
3874
  } else {
3779
- handleTupleResult(result, payload, i);
3875
+ itemResults[i] = r;
3780
3876
  }
3781
3877
  }
3782
3878
  if (def.rest) {
3879
+ let i = items.length - 1;
3783
3880
  const rest = input.slice(items.length);
3784
3881
  for (const el of rest) {
3785
3882
  i++;
3786
- const result = def.rest._zod.run({
3787
- value: el,
3788
- issues: []
3789
- }, ctx);
3883
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
3790
3884
  if (result instanceof Promise) {
3791
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3885
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
3792
3886
  } else {
3793
3887
  handleTupleResult(result, payload, i);
3794
3888
  }
3795
3889
  }
3796
3890
  }
3797
- if (proms.length)
3798
- return Promise.all(proms).then(() => payload);
3799
- 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);
3800
3895
  };
3801
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
+ }
3802
3904
  function handleTupleResult(result, final, index) {
3803
3905
  if (result.issues.length) {
3804
3906
  final.issues.push(...prefixIssues(index, result.issues));
3805
3907
  }
3806
3908
  final.value[index] = result.value;
3807
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
+ }
3808
3932
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3809
3933
  $ZodType.init(inst, def);
3810
3934
  inst._zod.parse = (payload, ctx) => {
@@ -3826,19 +3950,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3826
3950
  for (const key of values) {
3827
3951
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3828
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;
3829
3969
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3830
3970
  if (result instanceof Promise) {
3831
3971
  proms.push(result.then((result2) => {
3832
3972
  if (result2.issues.length) {
3833
3973
  payload.issues.push(...prefixIssues(key, result2.issues));
3834
3974
  }
3835
- payload.value[key] = result2.value;
3975
+ payload.value[outKey] = result2.value;
3836
3976
  }));
3837
3977
  } else {
3838
3978
  if (result.issues.length) {
3839
3979
  payload.issues.push(...prefixIssues(key, result.issues));
3840
3980
  }
3841
- payload.value[key] = result.value;
3981
+ payload.value[outKey] = result.value;
3842
3982
  }
3843
3983
  }
3844
3984
  }
@@ -3862,6 +4002,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3862
4002
  for (const key of Reflect.ownKeys(input)) {
3863
4003
  if (key === "__proto__")
3864
4004
  continue;
4005
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
4006
+ continue;
3865
4007
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3866
4008
  if (keyResult instanceof Promise) {
3867
4009
  throw new Error("Async schemas not supported in object keys currently");
@@ -4066,6 +4208,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
4066
4208
  });
4067
4209
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
4068
4210
  $ZodType.init(inst, def);
4211
+ inst._zod.optin = "optional";
4069
4212
  inst._zod.parse = (payload, ctx) => {
4070
4213
  if (ctx.direction === "backward") {
4071
4214
  throw new $ZodEncodeError(inst.constructor.name);
@@ -4075,6 +4218,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4075
4218
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
4076
4219
  return output.then((output2) => {
4077
4220
  payload.value = output2;
4221
+ payload.fallback = true;
4078
4222
  return payload;
4079
4223
  });
4080
4224
  }
@@ -4082,11 +4226,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4082
4226
  throw new $ZodAsyncError();
4083
4227
  }
4084
4228
  payload.value = _out;
4229
+ payload.fallback = true;
4085
4230
  return payload;
4086
4231
  };
4087
4232
  });
4088
4233
  function handleOptionalResult(result, input) {
4089
- if (result.issues.length && input === void 0) {
4234
+ if (input === void 0 && (result.issues.length || result.fallback)) {
4090
4235
  return { issues: [], value: void 0 };
4091
4236
  }
4092
4237
  return result;
@@ -4104,10 +4249,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
4104
4249
  });
4105
4250
  inst._zod.parse = (payload, ctx) => {
4106
4251
  if (def.innerType._zod.optin === "optional") {
4252
+ const input = payload.value;
4107
4253
  const result = def.innerType._zod.run(payload, ctx);
4108
4254
  if (result instanceof Promise)
4109
- return result.then((r) => handleOptionalResult(r, payload.value));
4110
- return handleOptionalResult(result, payload.value);
4255
+ return result.then((r) => handleOptionalResult(r, input));
4256
+ return handleOptionalResult(result, input);
4111
4257
  }
4112
4258
  if (payload.value === void 0) {
4113
4259
  return payload;
@@ -4223,7 +4369,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
4223
4369
  });
4224
4370
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4225
4371
  $ZodType.init(inst, def);
4226
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4372
+ inst._zod.optin = "optional";
4227
4373
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4228
4374
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4229
4375
  inst._zod.parse = (payload, ctx) => {
@@ -4243,6 +4389,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4243
4389
  input: payload.value
4244
4390
  });
4245
4391
  payload.issues = [];
4392
+ payload.fallback = true;
4246
4393
  }
4247
4394
  return payload;
4248
4395
  });
@@ -4257,6 +4404,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4257
4404
  input: payload.value
4258
4405
  });
4259
4406
  payload.issues = [];
4407
+ payload.fallback = true;
4260
4408
  }
4261
4409
  return payload;
4262
4410
  };
@@ -4302,7 +4450,7 @@ function handlePipeResult(left, next, ctx) {
4302
4450
  left.aborted = true;
4303
4451
  return left;
4304
4452
  }
4305
- 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);
4306
4454
  }
4307
4455
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
4308
4456
  $ZodType.init(inst, def);
@@ -4354,6 +4502,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
4354
4502
  }
4355
4503
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
4356
4504
  }
4505
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
4506
+ $ZodPipe.init(inst, def);
4507
+ });
4357
4508
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4358
4509
  $ZodType.init(inst, def);
4359
4510
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -4505,7 +4656,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
4505
4656
  });
4506
4657
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4507
4658
  $ZodType.init(inst, def);
4508
- 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
+ });
4509
4665
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4510
4666
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4511
4667
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4549,7 +4705,7 @@ function handleRefineResult(result, payload, input, inst) {
4549
4705
  }
4550
4706
  }
4551
4707
 
4552
- // ../../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
4553
4709
  var locales_exports = {};
4554
4710
  __export(locales_exports, {
4555
4711
  ar: () => ar_default,
@@ -4560,6 +4716,7 @@ __export(locales_exports, {
4560
4716
  cs: () => cs_default,
4561
4717
  da: () => da_default,
4562
4718
  de: () => de_default,
4719
+ el: () => el_default,
4563
4720
  en: () => en_default,
4564
4721
  eo: () => eo_default,
4565
4722
  es: () => es_default,
@@ -4568,6 +4725,7 @@ __export(locales_exports, {
4568
4725
  fr: () => fr_default,
4569
4726
  frCA: () => fr_CA_default,
4570
4727
  he: () => he_default,
4728
+ hr: () => hr_default,
4571
4729
  hu: () => hu_default,
4572
4730
  hy: () => hy_default,
4573
4731
  id: () => id_default,
@@ -4587,6 +4745,7 @@ __export(locales_exports, {
4587
4745
  pl: () => pl_default,
4588
4746
  ps: () => ps_default,
4589
4747
  pt: () => pt_default,
4748
+ ro: () => ro_default,
4590
4749
  ru: () => ru_default,
4591
4750
  sl: () => sl_default,
4592
4751
  sv: () => sv_default,
@@ -4603,7 +4762,7 @@ __export(locales_exports, {
4603
4762
  zhTW: () => zh_TW_default
4604
4763
  });
4605
4764
 
4606
- // ../../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
4607
4766
  var error = () => {
4608
4767
  const Sizable = {
4609
4768
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -4710,7 +4869,7 @@ function ar_default() {
4710
4869
  };
4711
4870
  }
4712
4871
 
4713
- // ../../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
4714
4873
  var error2 = () => {
4715
4874
  const Sizable = {
4716
4875
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -4816,7 +4975,7 @@ function az_default() {
4816
4975
  };
4817
4976
  }
4818
4977
 
4819
- // ../../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
4820
4979
  function getBelarusianPlural(count, one, few, many) {
4821
4980
  const absCount = Math.abs(count);
4822
4981
  const lastDigit = absCount % 10;
@@ -4973,7 +5132,7 @@ function be_default() {
4973
5132
  };
4974
5133
  }
4975
5134
 
4976
- // ../../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
4977
5136
  var error4 = () => {
4978
5137
  const Sizable = {
4979
5138
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -5094,7 +5253,7 @@ function bg_default() {
5094
5253
  };
5095
5254
  }
5096
5255
 
5097
- // ../../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
5098
5257
  var error5 = () => {
5099
5258
  const Sizable = {
5100
5259
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5203,7 +5362,7 @@ function ca_default() {
5203
5362
  };
5204
5363
  }
5205
5364
 
5206
- // ../../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
5207
5366
  var error6 = () => {
5208
5367
  const Sizable = {
5209
5368
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -5315,7 +5474,7 @@ function cs_default() {
5315
5474
  };
5316
5475
  }
5317
5476
 
5318
- // ../../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
5319
5478
  var error7 = () => {
5320
5479
  const Sizable = {
5321
5480
  string: { unit: "tegn", verb: "havde" },
@@ -5431,7 +5590,7 @@ function da_default() {
5431
5590
  };
5432
5591
  }
5433
5592
 
5434
- // ../../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
5435
5594
  var error8 = () => {
5436
5595
  const Sizable = {
5437
5596
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -5540,8 +5699,118 @@ function de_default() {
5540
5699
  };
5541
5700
  }
5542
5701
 
5543
- // ../../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
5544
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 = () => {
5545
5814
  const Sizable = {
5546
5815
  string: { unit: "characters", verb: "to have" },
5547
5816
  file: { unit: "bytes", verb: "to have" },
@@ -5635,6 +5904,10 @@ var error9 = () => {
5635
5904
  case "invalid_key":
5636
5905
  return `Invalid key in ${issue2.origin}`;
5637
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
+ }
5638
5911
  return "Invalid input";
5639
5912
  case "invalid_element":
5640
5913
  return `Invalid value in ${issue2.origin}`;
@@ -5645,12 +5918,12 @@ var error9 = () => {
5645
5918
  };
5646
5919
  function en_default() {
5647
5920
  return {
5648
- localeError: error9()
5921
+ localeError: error10()
5649
5922
  };
5650
5923
  }
5651
5924
 
5652
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
5653
- var error10 = () => {
5925
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
5926
+ var error11 = () => {
5654
5927
  const Sizable = {
5655
5928
  string: { unit: "karaktrojn", verb: "havi" },
5656
5929
  file: { unit: "bajtojn", verb: "havi" },
@@ -5755,12 +6028,12 @@ var error10 = () => {
5755
6028
  };
5756
6029
  function eo_default() {
5757
6030
  return {
5758
- localeError: error10()
6031
+ localeError: error11()
5759
6032
  };
5760
6033
  }
5761
6034
 
5762
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
5763
- var error11 = () => {
6035
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
6036
+ var error12 = () => {
5764
6037
  const Sizable = {
5765
6038
  string: { unit: "caracteres", verb: "tener" },
5766
6039
  file: { unit: "bytes", verb: "tener" },
@@ -5888,12 +6161,12 @@ var error11 = () => {
5888
6161
  };
5889
6162
  function es_default() {
5890
6163
  return {
5891
- localeError: error11()
6164
+ localeError: error12()
5892
6165
  };
5893
6166
  }
5894
6167
 
5895
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
5896
- var error12 = () => {
6168
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
6169
+ var error13 = () => {
5897
6170
  const Sizable = {
5898
6171
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5899
6172
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6003,12 +6276,12 @@ var error12 = () => {
6003
6276
  };
6004
6277
  function fa_default() {
6005
6278
  return {
6006
- localeError: error12()
6279
+ localeError: error13()
6007
6280
  };
6008
6281
  }
6009
6282
 
6010
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
6011
- var error13 = () => {
6283
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
6284
+ var error14 = () => {
6012
6285
  const Sizable = {
6013
6286
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
6014
6287
  file: { unit: "tavua", subject: "tiedoston" },
@@ -6116,12 +6389,12 @@ var error13 = () => {
6116
6389
  };
6117
6390
  function fi_default() {
6118
6391
  return {
6119
- localeError: error13()
6392
+ localeError: error14()
6120
6393
  };
6121
6394
  }
6122
6395
 
6123
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
6124
- var error14 = () => {
6396
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
6397
+ var error15 = () => {
6125
6398
  const Sizable = {
6126
6399
  string: { unit: "caract\xE8res", verb: "avoir" },
6127
6400
  file: { unit: "octets", verb: "avoir" },
@@ -6162,9 +6435,27 @@ var error14 = () => {
6162
6435
  template_literal: "entr\xE9e"
6163
6436
  };
6164
6437
  const TypeDictionary = {
6165
- nan: "NaN",
6438
+ string: "cha\xEEne",
6166
6439
  number: "nombre",
6167
- 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"
6168
6459
  };
6169
6460
  return (issue2) => {
6170
6461
  switch (issue2.code) {
@@ -6185,16 +6476,15 @@ var error14 = () => {
6185
6476
  const adj = issue2.inclusive ? "<=" : "<";
6186
6477
  const sizing = getSizing(issue2.origin);
6187
6478
  if (sizing)
6188
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6189
- 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()}`;
6190
6481
  }
6191
6482
  case "too_small": {
6192
6483
  const adj = issue2.inclusive ? ">=" : ">";
6193
6484
  const sizing = getSizing(issue2.origin);
6194
- if (sizing) {
6195
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6196
- }
6197
- 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()}`;
6198
6488
  }
6199
6489
  case "invalid_format": {
6200
6490
  const _issue = issue2;
@@ -6225,12 +6515,12 @@ var error14 = () => {
6225
6515
  };
6226
6516
  function fr_default() {
6227
6517
  return {
6228
- localeError: error14()
6518
+ localeError: error15()
6229
6519
  };
6230
6520
  }
6231
6521
 
6232
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
6233
- var error15 = () => {
6522
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
6523
+ var error16 = () => {
6234
6524
  const Sizable = {
6235
6525
  string: { unit: "caract\xE8res", verb: "avoir" },
6236
6526
  file: { unit: "octets", verb: "avoir" },
@@ -6333,12 +6623,12 @@ var error15 = () => {
6333
6623
  };
6334
6624
  function fr_CA_default() {
6335
6625
  return {
6336
- localeError: error15()
6626
+ localeError: error16()
6337
6627
  };
6338
6628
  }
6339
6629
 
6340
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
6341
- var error16 = () => {
6630
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
6631
+ var error17 = () => {
6342
6632
  const TypeNames = {
6343
6633
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6344
6634
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6528,24 +6818,24 @@ var error16 = () => {
6528
6818
  };
6529
6819
  function he_default() {
6530
6820
  return {
6531
- localeError: error16()
6821
+ localeError: error17()
6532
6822
  };
6533
6823
  }
6534
6824
 
6535
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
6536
- var error17 = () => {
6825
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
6826
+ var error18 = () => {
6537
6827
  const Sizable = {
6538
- string: { unit: "karakter", verb: "legyen" },
6539
- file: { unit: "byte", verb: "legyen" },
6540
- array: { unit: "elem", verb: "legyen" },
6541
- 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" }
6542
6832
  };
6543
6833
  function getSizing(origin) {
6544
6834
  return Sizable[origin] ?? null;
6545
6835
  }
6546
6836
  const FormatDictionary = {
6547
- regex: "bemenet",
6548
- email: "email c\xEDm",
6837
+ regex: "unos",
6838
+ email: "email adresa",
6549
6839
  url: "URL",
6550
6840
  emoji: "emoji",
6551
6841
  uuid: "UUID",
@@ -6558,25 +6848,37 @@ var error17 = () => {
6558
6848
  ulid: "ULID",
6559
6849
  xid: "XID",
6560
6850
  ksuid: "KSUID",
6561
- datetime: "ISO id\u0151b\xE9lyeg",
6562
- date: "ISO d\xE1tum",
6563
- time: "ISO id\u0151",
6564
- duration: "ISO id\u0151intervallum",
6565
- ipv4: "IPv4 c\xEDm",
6566
- ipv6: "IPv6 c\xEDm",
6567
- cidrv4: "IPv4 tartom\xE1ny",
6568
- cidrv6: "IPv6 tartom\xE1ny",
6569
- base64: "base64-k\xF3dolt string",
6570
- base64url: "base64url-k\xF3dolt string",
6571
- json_string: "JSON string",
6572
- 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",
6573
6863
  jwt: "JWT",
6574
- template_literal: "bemenet"
6864
+ template_literal: "unos"
6575
6865
  };
6576
6866
  const TypeDictionary = {
6577
6867
  nan: "NaN",
6578
- number: "sz\xE1m",
6579
- 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"
6580
6882
  };
6581
6883
  return (issue2) => {
6582
6884
  switch (issue2.code) {
@@ -6585,33 +6887,144 @@ var error17 = () => {
6585
6887
  const receivedType = parsedType(issue2.input);
6586
6888
  const received = TypeDictionary[receivedType] ?? receivedType;
6587
6889
  if (/^[A-Z]/.test(issue2.expected)) {
6588
- 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}`;
6589
6891
  }
6590
- 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}`;
6591
6893
  }
6592
6894
  case "invalid_value":
6593
6895
  if (issue2.values.length === 1)
6594
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6595
- 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, "|")}`;
6596
6898
  case "too_big": {
6597
6899
  const adj = issue2.inclusive ? "<=" : "<";
6598
6900
  const sizing = getSizing(issue2.origin);
6901
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6599
6902
  if (sizing)
6600
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6601
- 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()}`;
6602
6905
  }
6603
6906
  case "too_small": {
6604
6907
  const adj = issue2.inclusive ? ">=" : ">";
6605
6908
  const sizing = getSizing(issue2.origin);
6909
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6606
6910
  if (sizing) {
6607
- 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}`;
6608
6912
  }
6609
- 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()}`;
6610
6914
  }
6611
6915
  case "invalid_format": {
6612
6916
  const _issue = issue2;
6613
6917
  if (_issue.format === "starts_with")
6614
- return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
6918
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
6919
+ if (_issue.format === "ends_with")
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`;
6615
7028
  if (_issue.format === "ends_with")
6616
7029
  return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
6617
7030
  if (_issue.format === "includes")
@@ -6637,11 +7050,11 @@ var error17 = () => {
6637
7050
  };
6638
7051
  function hu_default() {
6639
7052
  return {
6640
- localeError: error17()
7053
+ localeError: error19()
6641
7054
  };
6642
7055
  }
6643
7056
 
6644
- // ../../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
6645
7058
  function getArmenianPlural(count, one, many) {
6646
7059
  return Math.abs(count) === 1 ? one : many;
6647
7060
  }
@@ -6652,7 +7065,7 @@ function withDefiniteArticle(word) {
6652
7065
  const lastChar = word[word.length - 1];
6653
7066
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
6654
7067
  }
6655
- var error18 = () => {
7068
+ var error20 = () => {
6656
7069
  const Sizable = {
6657
7070
  string: {
6658
7071
  unit: {
@@ -6785,12 +7198,12 @@ var error18 = () => {
6785
7198
  };
6786
7199
  function hy_default() {
6787
7200
  return {
6788
- localeError: error18()
7201
+ localeError: error20()
6789
7202
  };
6790
7203
  }
6791
7204
 
6792
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
6793
- var error19 = () => {
7205
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
7206
+ var error21 = () => {
6794
7207
  const Sizable = {
6795
7208
  string: { unit: "karakter", verb: "memiliki" },
6796
7209
  file: { unit: "byte", verb: "memiliki" },
@@ -6892,12 +7305,12 @@ var error19 = () => {
6892
7305
  };
6893
7306
  function id_default() {
6894
7307
  return {
6895
- localeError: error19()
7308
+ localeError: error21()
6896
7309
  };
6897
7310
  }
6898
7311
 
6899
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
6900
- var error20 = () => {
7312
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
7313
+ var error22 = () => {
6901
7314
  const Sizable = {
6902
7315
  string: { unit: "stafi", verb: "a\xF0 hafa" },
6903
7316
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -7002,12 +7415,12 @@ var error20 = () => {
7002
7415
  };
7003
7416
  function is_default() {
7004
7417
  return {
7005
- localeError: error20()
7418
+ localeError: error22()
7006
7419
  };
7007
7420
  }
7008
7421
 
7009
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
7010
- var error21 = () => {
7422
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
7423
+ var error23 = () => {
7011
7424
  const Sizable = {
7012
7425
  string: { unit: "caratteri", verb: "avere" },
7013
7426
  file: { unit: "byte", verb: "avere" },
@@ -7092,7 +7505,7 @@ var error21 = () => {
7092
7505
  return `Stringa non valida: deve includere "${_issue.includes}"`;
7093
7506
  if (_issue.format === "regex")
7094
7507
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
7095
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7508
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
7096
7509
  }
7097
7510
  case "not_multiple_of":
7098
7511
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -7111,12 +7524,12 @@ var error21 = () => {
7111
7524
  };
7112
7525
  function it_default() {
7113
7526
  return {
7114
- localeError: error21()
7527
+ localeError: error23()
7115
7528
  };
7116
7529
  }
7117
7530
 
7118
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
7119
- var error22 = () => {
7531
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
7532
+ var error24 = () => {
7120
7533
  const Sizable = {
7121
7534
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
7122
7535
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7219,12 +7632,12 @@ var error22 = () => {
7219
7632
  };
7220
7633
  function ja_default() {
7221
7634
  return {
7222
- localeError: error22()
7635
+ localeError: error24()
7223
7636
  };
7224
7637
  }
7225
7638
 
7226
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
7227
- var error23 = () => {
7639
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
7640
+ var error25 = () => {
7228
7641
  const Sizable = {
7229
7642
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7230
7643
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7257,9 +7670,9 @@ var error23 = () => {
7257
7670
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
7258
7671
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7259
7672
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7260
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7261
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7262
- 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",
7263
7676
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
7264
7677
  jwt: "JWT",
7265
7678
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -7267,7 +7680,7 @@ var error23 = () => {
7267
7680
  const TypeDictionary = {
7268
7681
  nan: "NaN",
7269
7682
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
7270
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7683
+ string: "\u10D5\u10D4\u10DA\u10D8",
7271
7684
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
7272
7685
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
7273
7686
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7305,14 +7718,14 @@ var error23 = () => {
7305
7718
  case "invalid_format": {
7306
7719
  const _issue = issue2;
7307
7720
  if (_issue.format === "starts_with") {
7308
- 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`;
7309
7722
  }
7310
7723
  if (_issue.format === "ends_with")
7311
- 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`;
7312
7725
  if (_issue.format === "includes")
7313
- 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`;
7314
7727
  if (_issue.format === "regex")
7315
- 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}`;
7316
7729
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7317
7730
  }
7318
7731
  case "not_multiple_of":
@@ -7332,12 +7745,12 @@ var error23 = () => {
7332
7745
  };
7333
7746
  function ka_default() {
7334
7747
  return {
7335
- localeError: error23()
7748
+ localeError: error25()
7336
7749
  };
7337
7750
  }
7338
7751
 
7339
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
7340
- var error24 = () => {
7752
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
7753
+ var error26 = () => {
7341
7754
  const Sizable = {
7342
7755
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7343
7756
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7443,17 +7856,17 @@ var error24 = () => {
7443
7856
  };
7444
7857
  function km_default() {
7445
7858
  return {
7446
- localeError: error24()
7859
+ localeError: error26()
7447
7860
  };
7448
7861
  }
7449
7862
 
7450
- // ../../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
7451
7864
  function kh_default() {
7452
7865
  return km_default();
7453
7866
  }
7454
7867
 
7455
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
7456
- var error25 = () => {
7868
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
7869
+ var error27 = () => {
7457
7870
  const Sizable = {
7458
7871
  string: { unit: "\uBB38\uC790", verb: "to have" },
7459
7872
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7560,11 +7973,11 @@ var error25 = () => {
7560
7973
  };
7561
7974
  function ko_default() {
7562
7975
  return {
7563
- localeError: error25()
7976
+ localeError: error27()
7564
7977
  };
7565
7978
  }
7566
7979
 
7567
- // ../../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
7568
7981
  var capitalizeFirstCharacter = (text) => {
7569
7982
  return text.charAt(0).toUpperCase() + text.slice(1);
7570
7983
  };
@@ -7578,7 +7991,7 @@ function getUnitTypeFromNumber(number4) {
7578
7991
  return "one";
7579
7992
  return "few";
7580
7993
  }
7581
- var error26 = () => {
7994
+ var error28 = () => {
7582
7995
  const Sizable = {
7583
7996
  string: {
7584
7997
  unit: {
@@ -7764,12 +8177,12 @@ var error26 = () => {
7764
8177
  };
7765
8178
  function lt_default() {
7766
8179
  return {
7767
- localeError: error26()
8180
+ localeError: error28()
7768
8181
  };
7769
8182
  }
7770
8183
 
7771
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
7772
- var error27 = () => {
8184
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
8185
+ var error29 = () => {
7773
8186
  const Sizable = {
7774
8187
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7775
8188
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7874,12 +8287,12 @@ var error27 = () => {
7874
8287
  };
7875
8288
  function mk_default() {
7876
8289
  return {
7877
- localeError: error27()
8290
+ localeError: error29()
7878
8291
  };
7879
8292
  }
7880
8293
 
7881
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
7882
- var error28 = () => {
8294
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
8295
+ var error30 = () => {
7883
8296
  const Sizable = {
7884
8297
  string: { unit: "aksara", verb: "mempunyai" },
7885
8298
  file: { unit: "bait", verb: "mempunyai" },
@@ -7982,12 +8395,12 @@ var error28 = () => {
7982
8395
  };
7983
8396
  function ms_default() {
7984
8397
  return {
7985
- localeError: error28()
8398
+ localeError: error30()
7986
8399
  };
7987
8400
  }
7988
8401
 
7989
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
7990
- var error29 = () => {
8402
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
8403
+ var error31 = () => {
7991
8404
  const Sizable = {
7992
8405
  string: { unit: "tekens", verb: "heeft" },
7993
8406
  file: { unit: "bytes", verb: "heeft" },
@@ -8093,12 +8506,12 @@ var error29 = () => {
8093
8506
  };
8094
8507
  function nl_default() {
8095
8508
  return {
8096
- localeError: error29()
8509
+ localeError: error31()
8097
8510
  };
8098
8511
  }
8099
8512
 
8100
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
8101
- var error30 = () => {
8513
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
8514
+ var error32 = () => {
8102
8515
  const Sizable = {
8103
8516
  string: { unit: "tegn", verb: "\xE5 ha" },
8104
8517
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8202,12 +8615,12 @@ var error30 = () => {
8202
8615
  };
8203
8616
  function no_default() {
8204
8617
  return {
8205
- localeError: error30()
8618
+ localeError: error32()
8206
8619
  };
8207
8620
  }
8208
8621
 
8209
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
8210
- var error31 = () => {
8622
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
8623
+ var error33 = () => {
8211
8624
  const Sizable = {
8212
8625
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8213
8626
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8312,12 +8725,12 @@ var error31 = () => {
8312
8725
  };
8313
8726
  function ota_default() {
8314
8727
  return {
8315
- localeError: error31()
8728
+ localeError: error33()
8316
8729
  };
8317
8730
  }
8318
8731
 
8319
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
8320
- var error32 = () => {
8732
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
8733
+ var error34 = () => {
8321
8734
  const Sizable = {
8322
8735
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8323
8736
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8427,12 +8840,12 @@ var error32 = () => {
8427
8840
  };
8428
8841
  function ps_default() {
8429
8842
  return {
8430
- localeError: error32()
8843
+ localeError: error34()
8431
8844
  };
8432
8845
  }
8433
8846
 
8434
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
8435
- var error33 = () => {
8847
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
8848
+ var error35 = () => {
8436
8849
  const Sizable = {
8437
8850
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8438
8851
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8537,12 +8950,12 @@ var error33 = () => {
8537
8950
  };
8538
8951
  function pl_default() {
8539
8952
  return {
8540
- localeError: error33()
8953
+ localeError: error35()
8541
8954
  };
8542
8955
  }
8543
8956
 
8544
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
8545
- var error34 = () => {
8957
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
8958
+ var error36 = () => {
8546
8959
  const Sizable = {
8547
8960
  string: { unit: "caracteres", verb: "ter" },
8548
8961
  file: { unit: "bytes", verb: "ter" },
@@ -8646,11 +9059,131 @@ var error34 = () => {
8646
9059
  };
8647
9060
  function pt_default() {
8648
9061
  return {
8649
- 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()
8650
9183
  };
8651
9184
  }
8652
9185
 
8653
- // ../../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
8654
9187
  function getRussianPlural(count, one, few, many) {
8655
9188
  const absCount = Math.abs(count);
8656
9189
  const lastDigit = absCount % 10;
@@ -8666,7 +9199,7 @@ function getRussianPlural(count, one, few, many) {
8666
9199
  }
8667
9200
  return many;
8668
9201
  }
8669
- var error35 = () => {
9202
+ var error38 = () => {
8670
9203
  const Sizable = {
8671
9204
  string: {
8672
9205
  unit: {
@@ -8803,12 +9336,12 @@ var error35 = () => {
8803
9336
  };
8804
9337
  function ru_default() {
8805
9338
  return {
8806
- localeError: error35()
9339
+ localeError: error38()
8807
9340
  };
8808
9341
  }
8809
9342
 
8810
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
8811
- var error36 = () => {
9343
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
9344
+ var error39 = () => {
8812
9345
  const Sizable = {
8813
9346
  string: { unit: "znakov", verb: "imeti" },
8814
9347
  file: { unit: "bajtov", verb: "imeti" },
@@ -8913,12 +9446,12 @@ var error36 = () => {
8913
9446
  };
8914
9447
  function sl_default() {
8915
9448
  return {
8916
- localeError: error36()
9449
+ localeError: error39()
8917
9450
  };
8918
9451
  }
8919
9452
 
8920
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
8921
- var error37 = () => {
9453
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
9454
+ var error40 = () => {
8922
9455
  const Sizable = {
8923
9456
  string: { unit: "tecken", verb: "att ha" },
8924
9457
  file: { unit: "bytes", verb: "att ha" },
@@ -9024,12 +9557,12 @@ var error37 = () => {
9024
9557
  };
9025
9558
  function sv_default() {
9026
9559
  return {
9027
- localeError: error37()
9560
+ localeError: error40()
9028
9561
  };
9029
9562
  }
9030
9563
 
9031
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
9032
- var error38 = () => {
9564
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
9565
+ var error41 = () => {
9033
9566
  const Sizable = {
9034
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" },
9035
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" },
@@ -9135,12 +9668,12 @@ var error38 = () => {
9135
9668
  };
9136
9669
  function ta_default() {
9137
9670
  return {
9138
- localeError: error38()
9671
+ localeError: error41()
9139
9672
  };
9140
9673
  }
9141
9674
 
9142
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
9143
- var error39 = () => {
9675
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
9676
+ var error42 = () => {
9144
9677
  const Sizable = {
9145
9678
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
9146
9679
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9246,12 +9779,12 @@ var error39 = () => {
9246
9779
  };
9247
9780
  function th_default() {
9248
9781
  return {
9249
- localeError: error39()
9782
+ localeError: error42()
9250
9783
  };
9251
9784
  }
9252
9785
 
9253
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
9254
- var error40 = () => {
9786
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
9787
+ var error43 = () => {
9255
9788
  const Sizable = {
9256
9789
  string: { unit: "karakter", verb: "olmal\u0131" },
9257
9790
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9352,12 +9885,12 @@ var error40 = () => {
9352
9885
  };
9353
9886
  function tr_default() {
9354
9887
  return {
9355
- localeError: error40()
9888
+ localeError: error43()
9356
9889
  };
9357
9890
  }
9358
9891
 
9359
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
9360
- var error41 = () => {
9892
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
9893
+ var error44 = () => {
9361
9894
  const Sizable = {
9362
9895
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9363
9896
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9461,17 +9994,17 @@ var error41 = () => {
9461
9994
  };
9462
9995
  function uk_default() {
9463
9996
  return {
9464
- localeError: error41()
9997
+ localeError: error44()
9465
9998
  };
9466
9999
  }
9467
10000
 
9468
- // ../../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
9469
10002
  function ua_default() {
9470
10003
  return uk_default();
9471
10004
  }
9472
10005
 
9473
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
9474
- var error42 = () => {
10006
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
10007
+ var error45 = () => {
9475
10008
  const Sizable = {
9476
10009
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9477
10010
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9577,17 +10110,18 @@ var error42 = () => {
9577
10110
  };
9578
10111
  function ur_default() {
9579
10112
  return {
9580
- localeError: error42()
10113
+ localeError: error45()
9581
10114
  };
9582
10115
  }
9583
10116
 
9584
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
9585
- var error43 = () => {
10117
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
10118
+ var error46 = () => {
9586
10119
  const Sizable = {
9587
10120
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
9588
10121
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
9589
10122
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
9590
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
10123
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
10124
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9591
10125
  };
9592
10126
  function getSizing(origin) {
9593
10127
  return Sizable[origin] ?? null;
@@ -9687,12 +10221,12 @@ var error43 = () => {
9687
10221
  };
9688
10222
  function uz_default() {
9689
10223
  return {
9690
- localeError: error43()
10224
+ localeError: error46()
9691
10225
  };
9692
10226
  }
9693
10227
 
9694
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
9695
- var error44 = () => {
10228
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
10229
+ var error47 = () => {
9696
10230
  const Sizable = {
9697
10231
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
9698
10232
  file: { unit: "byte", verb: "c\xF3" },
@@ -9796,12 +10330,12 @@ var error44 = () => {
9796
10330
  };
9797
10331
  function vi_default() {
9798
10332
  return {
9799
- localeError: error44()
10333
+ localeError: error47()
9800
10334
  };
9801
10335
  }
9802
10336
 
9803
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
9804
- var error45 = () => {
10337
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
10338
+ var error48 = () => {
9805
10339
  const Sizable = {
9806
10340
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
9807
10341
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -9906,12 +10440,12 @@ var error45 = () => {
9906
10440
  };
9907
10441
  function zh_CN_default() {
9908
10442
  return {
9909
- localeError: error45()
10443
+ localeError: error48()
9910
10444
  };
9911
10445
  }
9912
10446
 
9913
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
9914
- var error46 = () => {
10447
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
10448
+ var error49 = () => {
9915
10449
  const Sizable = {
9916
10450
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
9917
10451
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -10014,12 +10548,12 @@ var error46 = () => {
10014
10548
  };
10015
10549
  function zh_TW_default() {
10016
10550
  return {
10017
- localeError: error46()
10551
+ localeError: error49()
10018
10552
  };
10019
10553
  }
10020
10554
 
10021
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
10022
- var error47 = () => {
10555
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
10556
+ var error50 = () => {
10023
10557
  const Sizable = {
10024
10558
  string: { unit: "\xE0mi", verb: "n\xED" },
10025
10559
  file: { unit: "bytes", verb: "n\xED" },
@@ -10122,12 +10656,12 @@ var error47 = () => {
10122
10656
  };
10123
10657
  function yo_default() {
10124
10658
  return {
10125
- localeError: error47()
10659
+ localeError: error50()
10126
10660
  };
10127
10661
  }
10128
10662
 
10129
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
10130
- var _a;
10663
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
10664
+ var _a2;
10131
10665
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
10132
10666
  var $input = /* @__PURE__ */ Symbol("ZodInput");
10133
10667
  var $ZodRegistry = class {
@@ -10173,10 +10707,10 @@ var $ZodRegistry = class {
10173
10707
  function registry() {
10174
10708
  return new $ZodRegistry();
10175
10709
  }
10176
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10710
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10177
10711
  var globalRegistry = globalThis.__zod_globalRegistry;
10178
10712
 
10179
- // ../../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
10180
10714
  // @__NO_SIDE_EFFECTS__
10181
10715
  function _string(Class2, params) {
10182
10716
  return new Class2({
@@ -11091,7 +11625,7 @@ function _refine(Class2, fn, _params) {
11091
11625
  return schema;
11092
11626
  }
11093
11627
  // @__NO_SIDE_EFFECTS__
11094
- function _superRefine(fn) {
11628
+ function _superRefine(fn, params) {
11095
11629
  const ch = /* @__PURE__ */ _check((payload) => {
11096
11630
  payload.addIssue = (issue2) => {
11097
11631
  if (typeof issue2 === "string") {
@@ -11108,7 +11642,7 @@ function _superRefine(fn) {
11108
11642
  }
11109
11643
  };
11110
11644
  return fn(payload.value, payload);
11111
- });
11645
+ }, params);
11112
11646
  return ch;
11113
11647
  }
11114
11648
  // @__NO_SIDE_EFFECTS__
@@ -11215,7 +11749,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11215
11749
  return inst;
11216
11750
  }
11217
11751
 
11218
- // ../../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
11219
11753
  function initializeContext(params) {
11220
11754
  let target = params?.target ?? "draft-2020-12";
11221
11755
  if (target === "draft-4")
@@ -11238,7 +11772,7 @@ function initializeContext(params) {
11238
11772
  };
11239
11773
  }
11240
11774
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11241
- var _a2;
11775
+ var _a3;
11242
11776
  const def = schema._zod.def;
11243
11777
  const seen = ctx.seen.get(schema);
11244
11778
  if (seen) {
@@ -11285,8 +11819,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11285
11819
  delete result.schema.examples;
11286
11820
  delete result.schema.default;
11287
11821
  }
11288
- if (ctx.io === "input" && result.schema._prefault)
11289
- (_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);
11290
11824
  delete result.schema._prefault;
11291
11825
  const _result = ctx.seen.get(schema);
11292
11826
  return _result.schema;
@@ -11467,10 +12001,15 @@ function finalize(ctx, schema) {
11467
12001
  result.$id = ctx.external.uri(id);
11468
12002
  }
11469
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;
11470
12007
  const defs = ctx.external?.defs ?? {};
11471
12008
  for (const entry of ctx.seen.entries()) {
11472
12009
  const seen = entry[1];
11473
12010
  if (seen.def && seen.defId) {
12011
+ if (seen.def.id === seen.defId)
12012
+ delete seen.def.id;
11474
12013
  defs[seen.defId] = seen.def;
11475
12014
  }
11476
12015
  }
@@ -11526,6 +12065,8 @@ function isTransforming(_schema, _ctx) {
11526
12065
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
11527
12066
  }
11528
12067
  if (def.type === "pipe") {
12068
+ if (_schema._zod.traits.has("$ZodCodec"))
12069
+ return true;
11529
12070
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
11530
12071
  }
11531
12072
  if (def.type === "object") {
@@ -11567,7 +12108,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
11567
12108
  return finalize(ctx, schema);
11568
12109
  };
11569
12110
 
11570
- // ../../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
11571
12112
  var formatMap = {
11572
12113
  guid: "uuid",
11573
12114
  url: "uri",
@@ -11615,39 +12156,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
11615
12156
  json2.type = "integer";
11616
12157
  else
11617
12158
  json2.type = "number";
11618
- if (typeof exclusiveMinimum === "number") {
11619
- 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) {
11620
12164
  json2.minimum = exclusiveMinimum;
11621
12165
  json2.exclusiveMinimum = true;
11622
12166
  } else {
11623
12167
  json2.exclusiveMinimum = exclusiveMinimum;
11624
12168
  }
11625
- }
11626
- if (typeof minimum === "number") {
12169
+ } else if (typeof minimum === "number") {
11627
12170
  json2.minimum = minimum;
11628
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
11629
- if (exclusiveMinimum >= minimum)
11630
- delete json2.minimum;
11631
- else
11632
- delete json2.exclusiveMinimum;
11633
- }
11634
12171
  }
11635
- if (typeof exclusiveMaximum === "number") {
11636
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12172
+ if (exMax) {
12173
+ if (legacy) {
11637
12174
  json2.maximum = exclusiveMaximum;
11638
12175
  json2.exclusiveMaximum = true;
11639
12176
  } else {
11640
12177
  json2.exclusiveMaximum = exclusiveMaximum;
11641
12178
  }
11642
- }
11643
- if (typeof maximum === "number") {
12179
+ } else if (typeof maximum === "number") {
11644
12180
  json2.maximum = maximum;
11645
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
11646
- if (exclusiveMaximum <= maximum)
11647
- delete json2.maximum;
11648
- else
11649
- delete json2.exclusiveMaximum;
11650
- }
11651
12181
  }
11652
12182
  if (typeof multipleOf === "number")
11653
12183
  json2.multipleOf = multipleOf;
@@ -11819,7 +12349,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
11819
12349
  if (typeof maximum === "number")
11820
12350
  json2.maxItems = maximum;
11821
12351
  json2.type = "array";
11822
- 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
+ });
11823
12356
  };
11824
12357
  var objectProcessor = (schema, ctx, _json, params) => {
11825
12358
  const json2 = _json;
@@ -12012,7 +12545,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
12012
12545
  };
12013
12546
  var pipeProcessor = (schema, ctx, _json, params) => {
12014
12547
  const def = schema._zod.def;
12015
- 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;
12016
12550
  process2(innerType, ctx, params);
12017
12551
  const seen = ctx.seen.get(schema);
12018
12552
  seen.ref = innerType;
@@ -12118,7 +12652,7 @@ function toJSONSchema(input, params) {
12118
12652
  return finalize(ctx, input);
12119
12653
  }
12120
12654
 
12121
- // ../../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
12122
12656
  var JSONSchemaGenerator = class {
12123
12657
  /** @deprecated Access via ctx instead */
12124
12658
  get metadataRegistry() {
@@ -12193,10 +12727,10 @@ var JSONSchemaGenerator = class {
12193
12727
  }
12194
12728
  };
12195
12729
 
12196
- // ../../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
12197
12731
  var json_schema_exports = {};
12198
12732
 
12199
- // ../../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
12200
12734
  var schemas_exports2 = {};
12201
12735
  __export(schemas_exports2, {
12202
12736
  ZodAny: () => ZodAny,
@@ -12246,6 +12780,7 @@ __export(schemas_exports2, {
12246
12780
  ZodOptional: () => ZodOptional,
12247
12781
  ZodPipe: () => ZodPipe,
12248
12782
  ZodPrefault: () => ZodPrefault,
12783
+ ZodPreprocess: () => ZodPreprocess,
12249
12784
  ZodPromise: () => ZodPromise,
12250
12785
  ZodReadonly: () => ZodReadonly,
12251
12786
  ZodRecord: () => ZodRecord,
@@ -12306,6 +12841,7 @@ __export(schemas_exports2, {
12306
12841
  int32: () => int32,
12307
12842
  int64: () => int64,
12308
12843
  intersection: () => intersection,
12844
+ invertCodec: () => invertCodec,
12309
12845
  ipv4: () => ipv42,
12310
12846
  ipv6: () => ipv62,
12311
12847
  json: () => json,
@@ -12365,7 +12901,7 @@ __export(schemas_exports2, {
12365
12901
  xor: () => xor
12366
12902
  });
12367
12903
 
12368
- // ../../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
12369
12905
  var checks_exports2 = {};
12370
12906
  __export(checks_exports2, {
12371
12907
  endsWith: () => _endsWith,
@@ -12399,7 +12935,7 @@ __export(checks_exports2, {
12399
12935
  uppercase: () => _uppercase
12400
12936
  });
12401
12937
 
12402
- // ../../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
12403
12939
  var iso_exports = {};
12404
12940
  __export(iso_exports, {
12405
12941
  ZodISODate: () => ZodISODate,
@@ -12440,7 +12976,7 @@ function duration2(params) {
12440
12976
  return _isoDuration(ZodISODuration, params);
12441
12977
  }
12442
12978
 
12443
- // ../../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
12444
12980
  var initializer2 = (inst, issues) => {
12445
12981
  $ZodError.init(inst, issues);
12446
12982
  inst.name = "ZodError";
@@ -12475,12 +13011,12 @@ var initializer2 = (inst, issues) => {
12475
13011
  }
12476
13012
  });
12477
13013
  };
12478
- var ZodError = $constructor("ZodError", initializer2);
12479
- var ZodRealError = $constructor("ZodError", initializer2, {
13014
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
13015
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12480
13016
  Parent: Error
12481
13017
  });
12482
13018
 
12483
- // ../../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
12484
13020
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12485
13021
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12486
13022
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12494,7 +13030,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12494
13030
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12495
13031
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12496
13032
 
12497
- // ../../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
+ }
12498
13071
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12499
13072
  $ZodType.init(inst, def);
12500
13073
  Object.assign(inst["~standard"], {
@@ -12507,23 +13080,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12507
13080
  inst.def = def;
12508
13081
  inst.type = def.type;
12509
13082
  Object.defineProperty(inst, "_def", { value: def });
12510
- inst.check = (...checks) => {
12511
- return inst.clone(util_exports.mergeDefs(def, {
12512
- checks: [
12513
- ...def.checks ?? [],
12514
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12515
- ]
12516
- }), {
12517
- parent: true
12518
- });
12519
- };
12520
- inst.with = inst.check;
12521
- inst.clone = (def2, params) => clone(inst, def2, params);
12522
- inst.brand = () => inst;
12523
- inst.register = ((reg, meta3) => {
12524
- reg.add(inst, meta3);
12525
- return inst;
12526
- });
12527
13083
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12528
13084
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12529
13085
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12537,45 +13093,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12537
13093
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12538
13094
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12539
13095
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
12540
- inst.refine = (check2, params) => inst.check(refine(check2, params));
12541
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
12542
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
12543
- inst.optional = () => optional(inst);
12544
- inst.exactOptional = () => exactOptional(inst);
12545
- inst.nullable = () => nullable(inst);
12546
- inst.nullish = () => optional(nullable(inst));
12547
- inst.nonoptional = (params) => nonoptional(inst, params);
12548
- inst.array = () => array(inst);
12549
- inst.or = (arg) => union([inst, arg]);
12550
- inst.and = (arg) => intersection(inst, arg);
12551
- inst.transform = (tx) => pipe(inst, transform(tx));
12552
- inst.default = (def2) => _default2(inst, def2);
12553
- inst.prefault = (def2) => prefault(inst, def2);
12554
- inst.catch = (params) => _catch2(inst, params);
12555
- inst.pipe = (target) => pipe(inst, target);
12556
- inst.readonly = () => readonly(inst);
12557
- inst.describe = (description) => {
12558
- const cl = inst.clone();
12559
- globalRegistry.add(cl, { description });
12560
- return cl;
12561
- };
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
+ });
12562
13192
  Object.defineProperty(inst, "description", {
12563
13193
  get() {
12564
13194
  return globalRegistry.get(inst)?.description;
12565
13195
  },
12566
13196
  configurable: true
12567
13197
  });
12568
- inst.meta = (...args) => {
12569
- if (args.length === 0) {
12570
- return globalRegistry.get(inst);
12571
- }
12572
- const cl = inst.clone();
12573
- globalRegistry.add(cl, args[0]);
12574
- return cl;
12575
- };
12576
- inst.isOptional = () => inst.safeParse(void 0).success;
12577
- inst.isNullable = () => inst.safeParse(null).success;
12578
- inst.apply = (fn) => fn(inst);
12579
13198
  return inst;
12580
13199
  });
12581
13200
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -12586,21 +13205,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
12586
13205
  inst.format = bag.format ?? null;
12587
13206
  inst.minLength = bag.minimum ?? null;
12588
13207
  inst.maxLength = bag.maximum ?? null;
12589
- inst.regex = (...args) => inst.check(_regex(...args));
12590
- inst.includes = (...args) => inst.check(_includes(...args));
12591
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
12592
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
12593
- inst.min = (...args) => inst.check(_minLength(...args));
12594
- inst.max = (...args) => inst.check(_maxLength(...args));
12595
- inst.length = (...args) => inst.check(_length(...args));
12596
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
12597
- inst.lowercase = (params) => inst.check(_lowercase(params));
12598
- inst.uppercase = (params) => inst.check(_uppercase(params));
12599
- inst.trim = () => inst.check(_trim());
12600
- inst.normalize = (...args) => inst.check(_normalize(...args));
12601
- inst.toLowerCase = () => inst.check(_toLowerCase());
12602
- inst.toUpperCase = () => inst.check(_toUpperCase());
12603
- 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
+ });
12604
13255
  });
12605
13256
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
12606
13257
  $ZodString.init(inst, def);
@@ -12679,7 +13330,7 @@ function url(params) {
12679
13330
  }
12680
13331
  function httpUrl(params) {
12681
13332
  return _url(ZodURL, {
12682
- protocol: /^https?$/,
13333
+ protocol: regexes_exports.httpProtocol,
12683
13334
  hostname: regexes_exports.domain,
12684
13335
  ...util_exports.normalizeParams(params)
12685
13336
  });
@@ -12821,21 +13472,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
12821
13472
  $ZodNumber.init(inst, def);
12822
13473
  ZodType.init(inst, def);
12823
13474
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
12824
- inst.gt = (value, params) => inst.check(_gt(value, params));
12825
- inst.gte = (value, params) => inst.check(_gte(value, params));
12826
- inst.min = (value, params) => inst.check(_gte(value, params));
12827
- inst.lt = (value, params) => inst.check(_lt(value, params));
12828
- inst.lte = (value, params) => inst.check(_lte(value, params));
12829
- inst.max = (value, params) => inst.check(_lte(value, params));
12830
- inst.int = (params) => inst.check(int(params));
12831
- inst.safe = (params) => inst.check(int(params));
12832
- inst.positive = (params) => inst.check(_gt(0, params));
12833
- inst.nonnegative = (params) => inst.check(_gte(0, params));
12834
- inst.negative = (params) => inst.check(_lt(0, params));
12835
- inst.nonpositive = (params) => inst.check(_lte(0, params));
12836
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
12837
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
12838
- 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
+ });
12839
13522
  const bag = inst._zod.bag;
12840
13523
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
12841
13524
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -12982,11 +13665,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
12982
13665
  ZodType.init(inst, def);
12983
13666
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
12984
13667
  inst.element = def.element;
12985
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
12986
- inst.nonempty = (params) => inst.check(_minLength(1, params));
12987
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
12988
- inst.length = (len, params) => inst.check(_length(len, params));
12989
- 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
+ });
12990
13685
  });
12991
13686
  function array(element, params) {
12992
13687
  return _array(ZodArray, element, params);
@@ -13002,23 +13697,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13002
13697
  util_exports.defineLazy(inst, "shape", () => {
13003
13698
  return def.shape;
13004
13699
  });
13005
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
13006
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
13007
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13008
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13009
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13010
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
13011
- inst.extend = (incoming) => {
13012
- return util_exports.extend(inst, incoming);
13013
- };
13014
- inst.safeExtend = (incoming) => {
13015
- return util_exports.safeExtend(inst, incoming);
13016
- };
13017
- inst.merge = (other) => util_exports.merge(inst, other);
13018
- inst.pick = (mask) => util_exports.pick(inst, mask);
13019
- inst.omit = (mask) => util_exports.omit(inst, mask);
13020
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
13021
- 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
+ });
13022
13741
  });
13023
13742
  function object(shape, params) {
13024
13743
  const def = {
@@ -13123,6 +13842,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
13123
13842
  inst.valueType = def.valueType;
13124
13843
  });
13125
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
+ }
13126
13853
  return new ZodRecord({
13127
13854
  type: "record",
13128
13855
  keyType,
@@ -13294,10 +14021,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13294
14021
  if (output instanceof Promise) {
13295
14022
  return output.then((output2) => {
13296
14023
  payload.value = output2;
14024
+ payload.fallback = true;
13297
14025
  return payload;
13298
14026
  });
13299
14027
  }
13300
14028
  payload.value = output;
14029
+ payload.fallback = true;
13301
14030
  return payload;
13302
14031
  };
13303
14032
  });
@@ -13452,6 +14181,20 @@ function codec(in_, out, params) {
13452
14181
  reverseTransform: params.encode
13453
14182
  });
13454
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
+ });
13455
14198
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13456
14199
  $ZodReadonly.init(inst, def);
13457
14200
  ZodType.init(inst, def);
@@ -13531,8 +14274,8 @@ function custom(fn, _params) {
13531
14274
  function refine(fn, _params = {}) {
13532
14275
  return _refine(ZodCustom, fn, _params);
13533
14276
  }
13534
- function superRefine(fn) {
13535
- return _superRefine(fn);
14277
+ function superRefine(fn, params) {
14278
+ return _superRefine(fn, params);
13536
14279
  }
13537
14280
  var describe2 = describe;
13538
14281
  var meta2 = meta;
@@ -13570,10 +14313,14 @@ function json(params) {
13570
14313
  return jsonSchema;
13571
14314
  }
13572
14315
  function preprocess(fn, schema) {
13573
- return pipe(transform(fn), schema);
14316
+ return new ZodPreprocess({
14317
+ type: "pipe",
14318
+ in: transform(fn),
14319
+ out: schema
14320
+ });
13574
14321
  }
13575
14322
 
13576
- // ../../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
13577
14324
  var ZodIssueCode = {
13578
14325
  invalid_type: "invalid_type",
13579
14326
  too_big: "too_big",
@@ -13599,7 +14346,7 @@ var ZodFirstPartyTypeKind;
13599
14346
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
13600
14347
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13601
14348
 
13602
- // ../../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
13603
14350
  var z = {
13604
14351
  ...schemas_exports2,
13605
14352
  ...checks_exports2,
@@ -13991,12 +14738,6 @@ function convertBaseSchema(schema, ctx) {
13991
14738
  default:
13992
14739
  throw new Error(`Unsupported type: ${type}`);
13993
14740
  }
13994
- if (schema.description) {
13995
- zodSchema = zodSchema.describe(schema.description);
13996
- }
13997
- if (schema.default !== void 0) {
13998
- zodSchema = zodSchema.default(schema.default);
13999
- }
14000
14741
  return zodSchema;
14001
14742
  }
14002
14743
  function convertSchema(schema, ctx) {
@@ -14033,6 +14774,9 @@ function convertSchema(schema, ctx) {
14033
14774
  if (schema.readOnly === true) {
14034
14775
  baseSchema = z.readonly(baseSchema);
14035
14776
  }
14777
+ if (schema.default !== void 0) {
14778
+ baseSchema = baseSchema.default(schema.default);
14779
+ }
14036
14780
  const extraMeta = {};
14037
14781
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14038
14782
  for (const key of coreMetadataKeys) {
@@ -14054,26 +14798,35 @@ function convertSchema(schema, ctx) {
14054
14798
  if (Object.keys(extraMeta).length > 0) {
14055
14799
  ctx.registry.add(baseSchema, extraMeta);
14056
14800
  }
14801
+ if (schema.description) {
14802
+ baseSchema = baseSchema.describe(schema.description);
14803
+ }
14057
14804
  return baseSchema;
14058
14805
  }
14059
14806
  function fromJSONSchema(schema, params) {
14060
14807
  if (typeof schema === "boolean") {
14061
14808
  return schema ? z.any() : z.never();
14062
14809
  }
14063
- const version2 = detectVersion(schema, params?.defaultTarget);
14064
- 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 || {};
14065
14818
  const ctx = {
14066
14819
  version: version2,
14067
14820
  defs,
14068
14821
  refs: /* @__PURE__ */ new Map(),
14069
14822
  processing: /* @__PURE__ */ new Set(),
14070
- rootSchema: schema,
14823
+ rootSchema: normalized,
14071
14824
  registry: params?.registry ?? globalRegistry
14072
14825
  };
14073
- return convertSchema(schema, ctx);
14826
+ return convertSchema(normalized, ctx);
14074
14827
  }
14075
14828
 
14076
- // ../../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
14077
14830
  var coerce_exports = {};
14078
14831
  __export(coerce_exports, {
14079
14832
  bigint: () => bigint3,
@@ -14098,7 +14851,7 @@ function date4(params) {
14098
14851
  return _coercedDate(ZodDate, params);
14099
14852
  }
14100
14853
 
14101
- // ../../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
14102
14855
  config(en_default());
14103
14856
 
14104
14857
  // src/schemas.ts
@@ -14719,6 +15472,44 @@ var SlackProvider = class {
14719
15472
  const candidate = { handlers, inlineMedia, inlineLinks, state, threadContext, tools, chatOptions };
14720
15473
  return Object.fromEntries(Object.entries(candidate).filter(([, value]) => value !== void 0));
14721
15474
  }
15475
+ /**
15476
+ * Resolve the per-adapter config applied to the Slack entry in
15477
+ * `AgentChannels.adapters`. Top-level fields on `SlackProviderConfig` win;
15478
+ * the deprecated `adapterConfig` is merged in as a fallback for backwards
15479
+ * compatibility. Undefined values are filtered so they don't clobber the
15480
+ * fallback or preserved options.
15481
+ */
15482
+ #resolveSlackAdapterConfig() {
15483
+ const {
15484
+ adapterConfig,
15485
+ cors,
15486
+ gateway,
15487
+ formatError: formatError2,
15488
+ streaming: topLevelStreaming,
15489
+ typingStatus,
15490
+ toolDisplay: topLevelToolDisplay
15491
+ } = this.#channelConfig;
15492
+ const topLevel = {
15493
+ cors,
15494
+ gateway,
15495
+ formatError: formatError2,
15496
+ streaming: topLevelStreaming,
15497
+ typingStatus,
15498
+ toolDisplay: topLevelToolDisplay
15499
+ };
15500
+ const filteredTopLevel = Object.fromEntries(Object.entries(topLevel).filter(([, value]) => value !== void 0));
15501
+ const filteredAdapterConfig = Object.fromEntries(
15502
+ Object.entries(adapterConfig ?? {}).filter(([, value]) => value !== void 0)
15503
+ );
15504
+ const merged = { ...filteredAdapterConfig, ...filteredTopLevel };
15505
+ const streaming = merged.streaming ?? true;
15506
+ const toolDisplay = merged.toolDisplay ?? (streaming ? "grouped" : "cards");
15507
+ return {
15508
+ ...merged,
15509
+ streaming,
15510
+ toolDisplay
15511
+ };
15512
+ }
14722
15513
  /**
14723
15514
  * Create AgentChannels for an agent with the Slack adapter.
14724
15515
  * SlackProvider owns the AgentChannels lifecycle for platform-managed agents.
@@ -14730,8 +15521,8 @@ var SlackProvider = class {
14730
15521
  * previous instance are torn down before we replace it.
14731
15522
  */
14732
15523
  #createAgentChannels(agent, adapter) {
14733
- const { adapterConfig } = this.#channelConfig;
14734
- const slackEntry = adapterConfig ? { adapter, ...adapterConfig } : adapter;
15524
+ const adapterConfig = this.#resolveSlackAdapterConfig();
15525
+ const slackEntry = Object.keys(adapterConfig).length > 0 ? { adapter, ...adapterConfig } : adapter;
14735
15526
  const existing = agent.getChannels();
14736
15527
  const existingConfig = existing?.channelConfig;
14737
15528
  existing?.close();
@@ -14883,8 +15674,8 @@ var SlackProvider = class {
14883
15674
  }
14884
15675
  const iconData = await iconResponse.arrayBuffer();
14885
15676
  await client.setAppIcon(appCredentials.appId, iconData);
14886
- } catch (error48) {
14887
- 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);
14888
15679
  }
14889
15680
  }
14890
15681
  const installationId = crypto.randomUUID();
@@ -15031,8 +15822,8 @@ var SlackProvider = class {
15031
15822
  try {
15032
15823
  const result = await this.connect(agentId, options);
15033
15824
  return c.json(result);
15034
- } catch (error48) {
15035
- const message = error48 instanceof Error ? error48.message : "Failed to connect";
15825
+ } catch (error51) {
15826
+ const message = error51 instanceof Error ? error51.message : "Failed to connect";
15036
15827
  return c.json({ error: message }, 500);
15037
15828
  }
15038
15829
  }
@@ -15045,8 +15836,8 @@ var SlackProvider = class {
15045
15836
  try {
15046
15837
  await this.disconnect(agentId);
15047
15838
  return c.json({ success: true });
15048
- } catch (error48) {
15049
- const message = error48 instanceof Error ? error48.message : "Failed to disconnect";
15839
+ } catch (error51) {
15840
+ const message = error51 instanceof Error ? error51.message : "Failed to disconnect";
15050
15841
  return c.json({ error: message }, 500);
15051
15842
  }
15052
15843
  }
@@ -15058,7 +15849,7 @@ var SlackProvider = class {
15058
15849
  const url2 = new URL(c.req.url);
15059
15850
  const code = url2.searchParams.get("code");
15060
15851
  const state = url2.searchParams.get("state");
15061
- const error48 = url2.searchParams.get("error");
15852
+ const error51 = url2.searchParams.get("error");
15062
15853
  if (!state) {
15063
15854
  return c.json({ error: "Missing state parameter" }, 400);
15064
15855
  }
@@ -15067,10 +15858,10 @@ var SlackProvider = class {
15067
15858
  return c.json({ error: "Invalid or expired installation state" }, 400);
15068
15859
  }
15069
15860
  const pending = this.#decryptPendingInstallation(pendingEncrypted);
15070
- if (error48) {
15861
+ if (error51) {
15071
15862
  const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
15072
15863
  const redirect = new URL(errorUrl, c.req.url);
15073
- redirect.searchParams.set("channel_error", error48);
15864
+ redirect.searchParams.set("channel_error", error51);
15074
15865
  redirect.searchParams.set("platform", "slack");
15075
15866
  return c.redirect(redirect.toString());
15076
15867
  }
@@ -15148,9 +15939,9 @@ var SlackProvider = class {
15148
15939
  redirect.searchParams.set("agent", pending.agentId);
15149
15940
  redirect.searchParams.set("team", teamName);
15150
15941
  return c.redirect(redirect.toString());
15151
- } catch (error49) {
15152
- console.error("[Slack] OAuth callback error:", error49);
15153
- 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";
15154
15945
  const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
15155
15946
  const redirect = new URL(errorUrl, c.req.url);
15156
15947
  redirect.searchParams.set("channel_error", message);
@@ -15224,8 +16015,8 @@ var SlackProvider = class {
15224
16015
  });
15225
16016
  try {
15226
16017
  return await agentChannels.handleWebhookEvent("slack", delegateRequest);
15227
- } catch (error48) {
15228
- console.error("[Slack] Error delegating to AgentChannels:", error48);
16018
+ } catch (error51) {
16019
+ console.error("[Slack] Error delegating to AgentChannels:", error51);
15229
16020
  return c.json({ ok: true });
15230
16021
  }
15231
16022
  }
@@ -15282,9 +16073,9 @@ var SlackProvider = class {
15282
16073
  const result = await agent.generate(prompt);
15283
16074
  const text = typeof result.text === "string" ? result.text : JSON.stringify(result.text);
15284
16075
  await sendDelayedResponse(text);
15285
- } catch (error48) {
15286
- console.error("[Slack] Command error:", error48);
15287
- 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";
15288
16079
  await sendDelayedResponse(`Error: ${message}`);
15289
16080
  }
15290
16081
  })();