@opentabs-dev/opentabs-plugin-prescript-test 0.0.3 → 0.0.5

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.
@@ -307,6 +307,7 @@
307
307
  int32: () => int32,
308
308
  int64: () => int64,
309
309
  intersection: () => intersection,
310
+ invertCodec: () => invertCodec,
310
311
  ipv4: () => ipv42,
311
312
  ipv6: () => ipv62,
312
313
  iso: () => iso_exports,
@@ -687,7 +688,8 @@
687
688
  });
688
689
 
689
690
  // node_modules/zod/v4/core/core.js
690
- var NEVER = Object.freeze({
691
+ var _a;
692
+ var NEVER = /* @__PURE__ */ Object.freeze({
691
693
  status: "aborted"
692
694
  });
693
695
  // @__NO_SIDE_EFFECTS__
@@ -722,10 +724,10 @@
722
724
  }
723
725
  Object.defineProperty(Definition, "name", { value: name });
724
726
  function _(def) {
725
- var _a2;
727
+ var _a3;
726
728
  const inst = params?.Parent ? new Definition() : this;
727
729
  init(inst, def);
728
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
730
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
729
731
  for (const fn of inst._zod.deferred) {
730
732
  fn();
731
733
  }
@@ -754,7 +756,8 @@
754
756
  this.name = "ZodEncodeError";
755
757
  }
756
758
  };
757
- var globalConfig = {};
759
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
760
+ var globalConfig = globalThis.__zod_globalConfig;
758
761
  function config(newConfig) {
759
762
  if (newConfig)
760
763
  Object.assign(globalConfig, newConfig);
@@ -787,6 +790,7 @@
787
790
  defineLazy: () => defineLazy,
788
791
  esc: () => esc,
789
792
  escapeRegex: () => escapeRegex,
793
+ explicitlyAborted: () => explicitlyAborted,
790
794
  extend: () => extend,
791
795
  finalizeIssue: () => finalizeIssue,
792
796
  floatSafeRemainder: () => floatSafeRemainder,
@@ -875,19 +879,12 @@
875
879
  return source.slice(start, end);
876
880
  }
877
881
  function floatSafeRemainder(val, step) {
878
- const valDecCount = (val.toString().split(".")[1] || "").length;
879
- const stepString = step.toString();
880
- let stepDecCount = (stepString.split(".")[1] || "").length;
881
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
882
- const match = stepString.match(/\d?e-(\d?)/);
883
- if (match?.[1]) {
884
- stepDecCount = Number.parseInt(match[1]);
885
- }
886
- }
887
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
888
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
889
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
890
- return valInt % stepInt / 10 ** decCount;
882
+ const ratio = val / step;
883
+ const roundedRatio = Math.round(ratio);
884
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
885
+ if (Math.abs(ratio - roundedRatio) < tolerance)
886
+ return 0;
887
+ return ratio - roundedRatio;
891
888
  }
892
889
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
893
890
  function defineLazy(object2, key, getter) {
@@ -969,7 +966,10 @@
969
966
  function isObject(data) {
970
967
  return typeof data === "object" && data !== null && !Array.isArray(data);
971
968
  }
972
- var allowsEval = cached(() => {
969
+ var allowsEval = /* @__PURE__ */ cached(() => {
970
+ if (globalConfig.jitless) {
971
+ return false;
972
+ }
973
973
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
974
974
  return false;
975
975
  }
@@ -1002,6 +1002,10 @@
1002
1002
  return { ...o };
1003
1003
  if (Array.isArray(o))
1004
1004
  return [...o];
1005
+ if (o instanceof Map)
1006
+ return new Map(o);
1007
+ if (o instanceof Set)
1008
+ return new Set(o);
1005
1009
  return o;
1006
1010
  }
1007
1011
  function numKeys(data) {
@@ -1058,7 +1062,14 @@
1058
1062
  }
1059
1063
  };
1060
1064
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1061
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
1065
+ var primitiveTypes = /* @__PURE__ */ new Set([
1066
+ "string",
1067
+ "number",
1068
+ "bigint",
1069
+ "boolean",
1070
+ "symbol",
1071
+ "undefined"
1072
+ ]);
1062
1073
  function escapeRegex(str) {
1063
1074
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1064
1075
  }
@@ -1227,6 +1238,9 @@
1227
1238
  return clone(schema, def);
1228
1239
  }
1229
1240
  function merge(a, b) {
1241
+ if (a._zod.def.checks?.length) {
1242
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1243
+ }
1230
1244
  const def = mergeDefs(a._zod.def, {
1231
1245
  get shape() {
1232
1246
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1236,8 +1250,7 @@
1236
1250
  get catchall() {
1237
1251
  return b._zod.def.catchall;
1238
1252
  },
1239
- checks: []
1240
- // delete existing checks
1253
+ checks: b._zod.def.checks ?? []
1241
1254
  });
1242
1255
  return clone(a, def);
1243
1256
  }
@@ -1320,10 +1333,20 @@
1320
1333
  }
1321
1334
  return false;
1322
1335
  }
1336
+ function explicitlyAborted(x, startIndex = 0) {
1337
+ if (x.aborted === true)
1338
+ return true;
1339
+ for (let i = startIndex; i < x.issues.length; i++) {
1340
+ if (x.issues[i]?.continue === false) {
1341
+ return true;
1342
+ }
1343
+ }
1344
+ return false;
1345
+ }
1323
1346
  function prefixIssues(path, issues) {
1324
1347
  return issues.map((iss) => {
1325
- var _a2;
1326
- (_a2 = iss).path ?? (_a2.path = []);
1348
+ var _a3;
1349
+ (_a3 = iss).path ?? (_a3.path = []);
1327
1350
  iss.path.unshift(path);
1328
1351
  return iss;
1329
1352
  });
@@ -1332,17 +1355,14 @@
1332
1355
  return typeof message === "string" ? message : message?.message;
1333
1356
  }
1334
1357
  function finalizeIssue(iss, ctx, config2) {
1335
- const full = { ...iss, path: iss.path ?? [] };
1336
- if (!iss.message) {
1337
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1338
- full.message = message;
1358
+ 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";
1359
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
1360
+ rest.path ?? (rest.path = []);
1361
+ rest.message = message;
1362
+ if (ctx?.reportInput) {
1363
+ rest.input = _input;
1339
1364
  }
1340
- delete full.inst;
1341
- delete full.continue;
1342
- if (!ctx?.reportInput) {
1343
- delete full.input;
1344
- }
1345
- return full;
1365
+ return rest;
1346
1366
  }
1347
1367
  function getSizableOrigin(input) {
1348
1368
  if (input instanceof Set)
@@ -1459,10 +1479,10 @@
1459
1479
  };
1460
1480
  var $ZodError = $constructor("$ZodError", initializer);
1461
1481
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1462
- function flattenError(error48, mapper = (issue2) => issue2.message) {
1482
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
1463
1483
  const fieldErrors = {};
1464
1484
  const formErrors = [];
1465
- for (const sub of error48.issues) {
1485
+ for (const sub of error51.issues) {
1466
1486
  if (sub.path.length > 0) {
1467
1487
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1468
1488
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1472,50 +1492,53 @@
1472
1492
  }
1473
1493
  return { formErrors, fieldErrors };
1474
1494
  }
1475
- function formatError(error48, mapper = (issue2) => issue2.message) {
1495
+ function formatError(error51, mapper = (issue2) => issue2.message) {
1476
1496
  const fieldErrors = { _errors: [] };
1477
- const processError = (error49) => {
1478
- for (const issue2 of error49.issues) {
1497
+ const processError = (error52, path = []) => {
1498
+ for (const issue2 of error52.issues) {
1479
1499
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1480
- issue2.errors.map((issues) => processError({ issues }));
1500
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1481
1501
  } else if (issue2.code === "invalid_key") {
1482
- processError({ issues: issue2.issues });
1502
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1483
1503
  } else if (issue2.code === "invalid_element") {
1484
- processError({ issues: issue2.issues });
1485
- } else if (issue2.path.length === 0) {
1486
- fieldErrors._errors.push(mapper(issue2));
1504
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1487
1505
  } else {
1488
- let curr = fieldErrors;
1489
- let i = 0;
1490
- while (i < issue2.path.length) {
1491
- const el = issue2.path[i];
1492
- const terminal = i === issue2.path.length - 1;
1493
- if (!terminal) {
1494
- curr[el] = curr[el] || { _errors: [] };
1495
- } else {
1496
- curr[el] = curr[el] || { _errors: [] };
1497
- curr[el]._errors.push(mapper(issue2));
1506
+ const fullpath = [...path, ...issue2.path];
1507
+ if (fullpath.length === 0) {
1508
+ fieldErrors._errors.push(mapper(issue2));
1509
+ } else {
1510
+ let curr = fieldErrors;
1511
+ let i = 0;
1512
+ while (i < fullpath.length) {
1513
+ const el = fullpath[i];
1514
+ const terminal = i === fullpath.length - 1;
1515
+ if (!terminal) {
1516
+ curr[el] = curr[el] || { _errors: [] };
1517
+ } else {
1518
+ curr[el] = curr[el] || { _errors: [] };
1519
+ curr[el]._errors.push(mapper(issue2));
1520
+ }
1521
+ curr = curr[el];
1522
+ i++;
1498
1523
  }
1499
- curr = curr[el];
1500
- i++;
1501
1524
  }
1502
1525
  }
1503
1526
  }
1504
1527
  };
1505
- processError(error48);
1528
+ processError(error51);
1506
1529
  return fieldErrors;
1507
1530
  }
1508
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
1531
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
1509
1532
  const result = { errors: [] };
1510
- const processError = (error49, path = []) => {
1511
- var _a2, _b;
1512
- for (const issue2 of error49.issues) {
1533
+ const processError = (error52, path = []) => {
1534
+ var _a3, _b;
1535
+ for (const issue2 of error52.issues) {
1513
1536
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1514
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
1537
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1515
1538
  } else if (issue2.code === "invalid_key") {
1516
- processError({ issues: issue2.issues }, issue2.path);
1539
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1517
1540
  } else if (issue2.code === "invalid_element") {
1518
- processError({ issues: issue2.issues }, issue2.path);
1541
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1519
1542
  } else {
1520
1543
  const fullpath = [...path, ...issue2.path];
1521
1544
  if (fullpath.length === 0) {
@@ -1529,7 +1552,7 @@
1529
1552
  const terminal = i === fullpath.length - 1;
1530
1553
  if (typeof el === "string") {
1531
1554
  curr.properties ?? (curr.properties = {});
1532
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1555
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1533
1556
  curr = curr.properties[el];
1534
1557
  } else {
1535
1558
  curr.items ?? (curr.items = []);
@@ -1544,7 +1567,7 @@
1544
1567
  }
1545
1568
  }
1546
1569
  };
1547
- processError(error48);
1570
+ processError(error51);
1548
1571
  return result;
1549
1572
  }
1550
1573
  function toDotPath(_path) {
@@ -1565,9 +1588,9 @@
1565
1588
  }
1566
1589
  return segs.join("");
1567
1590
  }
1568
- function prettifyError(error48) {
1591
+ function prettifyError(error51) {
1569
1592
  const lines = [];
1570
- const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1593
+ const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1571
1594
  for (const issue2 of issues) {
1572
1595
  lines.push(`\u2716 ${issue2.message}`);
1573
1596
  if (issue2.path?.length)
@@ -1578,7 +1601,7 @@
1578
1601
 
1579
1602
  // node_modules/zod/v4/core/parse.js
1580
1603
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1581
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1604
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1582
1605
  const result = schema._zod.run({ value, issues: [] }, ctx);
1583
1606
  if (result instanceof Promise) {
1584
1607
  throw new $ZodAsyncError();
@@ -1592,7 +1615,7 @@
1592
1615
  };
1593
1616
  var parse = /* @__PURE__ */ _parse($ZodRealError);
1594
1617
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1595
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1618
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1596
1619
  let result = schema._zod.run({ value, issues: [] }, ctx);
1597
1620
  if (result instanceof Promise)
1598
1621
  result = await result;
@@ -1617,7 +1640,7 @@
1617
1640
  };
1618
1641
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1619
1642
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1620
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1643
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1621
1644
  let result = schema._zod.run({ value, issues: [] }, ctx);
1622
1645
  if (result instanceof Promise)
1623
1646
  result = await result;
@@ -1628,7 +1651,7 @@
1628
1651
  };
1629
1652
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1630
1653
  var _encode = (_Err) => (schema, value, _ctx) => {
1631
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1654
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1632
1655
  return _parse(_Err)(schema, value, ctx);
1633
1656
  };
1634
1657
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -1637,7 +1660,7 @@
1637
1660
  };
1638
1661
  var decode = /* @__PURE__ */ _decode($ZodRealError);
1639
1662
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1640
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1663
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1641
1664
  return _parseAsync(_Err)(schema, value, ctx);
1642
1665
  };
1643
1666
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -1646,7 +1669,7 @@
1646
1669
  };
1647
1670
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
1648
1671
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
1649
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1672
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1650
1673
  return _safeParse(_Err)(schema, value, ctx);
1651
1674
  };
1652
1675
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -1655,7 +1678,7 @@
1655
1678
  };
1656
1679
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
1657
1680
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1658
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1681
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1659
1682
  return _safeParseAsync(_Err)(schema, value, ctx);
1660
1683
  };
1661
1684
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -1688,6 +1711,7 @@
1688
1711
  hex: () => hex,
1689
1712
  hostname: () => hostname,
1690
1713
  html5Email: () => html5Email,
1714
+ httpProtocol: () => httpProtocol,
1691
1715
  idnEmail: () => idnEmail,
1692
1716
  integer: () => integer,
1693
1717
  ipv4: () => ipv4,
@@ -1726,7 +1750,7 @@
1726
1750
  uuid7: () => uuid7,
1727
1751
  xid: () => xid
1728
1752
  });
1729
- var cuid = /^[cC][^\s-]{8,}$/;
1753
+ var cuid = /^[cC][0-9a-z]{6,}$/;
1730
1754
  var cuid2 = /^[0-9a-z]+$/;
1731
1755
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1732
1756
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -1765,6 +1789,7 @@
1765
1789
  var base64url = /^[A-Za-z0-9_-]*$/;
1766
1790
  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])?)*\.?$/;
1767
1791
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1792
+ var httpProtocol = /^https?$/;
1768
1793
  var e164 = /^\+[1-9]\d{6,14}$/;
1769
1794
  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])))`;
1770
1795
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1823,10 +1848,10 @@
1823
1848
 
1824
1849
  // node_modules/zod/v4/core/checks.js
1825
1850
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1826
- var _a2;
1851
+ var _a3;
1827
1852
  inst._zod ?? (inst._zod = {});
1828
1853
  inst._zod.def = def;
1829
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1854
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1830
1855
  });
1831
1856
  var numericOriginMap = {
1832
1857
  number: "number",
@@ -1892,8 +1917,8 @@
1892
1917
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1893
1918
  $ZodCheck.init(inst, def);
1894
1919
  inst._zod.onattach.push((inst2) => {
1895
- var _a2;
1896
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
1920
+ var _a3;
1921
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
1897
1922
  });
1898
1923
  inst._zod.check = (payload) => {
1899
1924
  if (typeof payload.value !== typeof def.value)
@@ -2026,9 +2051,9 @@
2026
2051
  };
2027
2052
  });
2028
2053
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2029
- var _a2;
2054
+ var _a3;
2030
2055
  $ZodCheck.init(inst, def);
2031
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2056
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2032
2057
  const val = payload.value;
2033
2058
  return !nullish(val) && val.size !== void 0;
2034
2059
  });
@@ -2054,9 +2079,9 @@
2054
2079
  };
2055
2080
  });
2056
2081
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2057
- var _a2;
2082
+ var _a3;
2058
2083
  $ZodCheck.init(inst, def);
2059
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2084
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2060
2085
  const val = payload.value;
2061
2086
  return !nullish(val) && val.size !== void 0;
2062
2087
  });
@@ -2082,9 +2107,9 @@
2082
2107
  };
2083
2108
  });
2084
2109
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2085
- var _a2;
2110
+ var _a3;
2086
2111
  $ZodCheck.init(inst, def);
2087
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2112
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2088
2113
  const val = payload.value;
2089
2114
  return !nullish(val) && val.size !== void 0;
2090
2115
  });
@@ -2112,9 +2137,9 @@
2112
2137
  };
2113
2138
  });
2114
2139
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2115
- var _a2;
2140
+ var _a3;
2116
2141
  $ZodCheck.init(inst, def);
2117
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2142
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2118
2143
  const val = payload.value;
2119
2144
  return !nullish(val) && val.length !== void 0;
2120
2145
  });
@@ -2141,9 +2166,9 @@
2141
2166
  };
2142
2167
  });
2143
2168
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2144
- var _a2;
2169
+ var _a3;
2145
2170
  $ZodCheck.init(inst, def);
2146
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2171
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2147
2172
  const val = payload.value;
2148
2173
  return !nullish(val) && val.length !== void 0;
2149
2174
  });
@@ -2170,9 +2195,9 @@
2170
2195
  };
2171
2196
  });
2172
2197
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2173
- var _a2;
2198
+ var _a3;
2174
2199
  $ZodCheck.init(inst, def);
2175
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2200
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2176
2201
  const val = payload.value;
2177
2202
  return !nullish(val) && val.length !== void 0;
2178
2203
  });
@@ -2201,7 +2226,7 @@
2201
2226
  };
2202
2227
  });
2203
2228
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2204
- var _a2, _b;
2229
+ var _a3, _b;
2205
2230
  $ZodCheck.init(inst, def);
2206
2231
  inst._zod.onattach.push((inst2) => {
2207
2232
  const bag = inst2._zod.bag;
@@ -2212,7 +2237,7 @@
2212
2237
  }
2213
2238
  });
2214
2239
  if (def.pattern)
2215
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2240
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2216
2241
  def.pattern.lastIndex = 0;
2217
2242
  if (def.pattern.test(payload.value))
2218
2243
  return;
@@ -2408,13 +2433,13 @@
2408
2433
  // node_modules/zod/v4/core/versions.js
2409
2434
  var version = {
2410
2435
  major: 4,
2411
- minor: 3,
2412
- patch: 6
2436
+ minor: 4,
2437
+ patch: 1
2413
2438
  };
2414
2439
 
2415
2440
  // node_modules/zod/v4/core/schemas.js
2416
2441
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2417
- var _a2;
2442
+ var _a3;
2418
2443
  inst ?? (inst = {});
2419
2444
  inst._zod.def = def;
2420
2445
  inst._zod.bag = inst._zod.bag || {};
@@ -2429,7 +2454,7 @@
2429
2454
  }
2430
2455
  }
2431
2456
  if (checks.length === 0) {
2432
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2457
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2433
2458
  inst._zod.deferred?.push(() => {
2434
2459
  inst._zod.run = inst._zod.parse;
2435
2460
  });
@@ -2439,6 +2464,8 @@
2439
2464
  let asyncResult;
2440
2465
  for (const ch of checks2) {
2441
2466
  if (ch._zod.def.when) {
2467
+ if (explicitlyAborted(payload))
2468
+ continue;
2442
2469
  const shouldRun = ch._zod.def.when(payload);
2443
2470
  if (!shouldRun)
2444
2471
  continue;
@@ -2579,6 +2606,19 @@
2579
2606
  inst._zod.check = (payload) => {
2580
2607
  try {
2581
2608
  const trimmed = payload.value.trim();
2609
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
2610
+ if (!/^https?:\/\//i.test(trimmed)) {
2611
+ payload.issues.push({
2612
+ code: "invalid_format",
2613
+ format: "url",
2614
+ note: "Invalid URL format",
2615
+ input: payload.value,
2616
+ inst,
2617
+ continue: !def.abort
2618
+ });
2619
+ return;
2620
+ }
2621
+ }
2582
2622
  const url2 = new URL(trimmed);
2583
2623
  if (def.hostname) {
2584
2624
  def.hostname.lastIndex = 0;
@@ -2732,6 +2772,8 @@
2732
2772
  function isValidBase64(data) {
2733
2773
  if (data === "")
2734
2774
  return true;
2775
+ if (/\s/.test(data))
2776
+ return false;
2735
2777
  if (data.length % 4 !== 0)
2736
2778
  return false;
2737
2779
  try {
@@ -2924,8 +2966,6 @@
2924
2966
  $ZodType.init(inst, def);
2925
2967
  inst._zod.pattern = _undefined;
2926
2968
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
2927
- inst._zod.optin = "optional";
2928
- inst._zod.optout = "optional";
2929
2969
  inst._zod.parse = (payload, _ctx) => {
2930
2970
  const input = payload.value;
2931
2971
  if (typeof input === "undefined")
@@ -3054,15 +3094,27 @@
3054
3094
  return payload;
3055
3095
  };
3056
3096
  });
3057
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3097
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3098
+ const isPresent = key in input;
3058
3099
  if (result.issues.length) {
3059
- if (isOptionalOut && !(key in input)) {
3100
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3060
3101
  return;
3061
3102
  }
3062
3103
  final.issues.push(...prefixIssues(key, result.issues));
3063
3104
  }
3105
+ if (!isPresent && !isOptionalIn) {
3106
+ if (!result.issues.length) {
3107
+ final.issues.push({
3108
+ code: "invalid_type",
3109
+ expected: "nonoptional",
3110
+ input: void 0,
3111
+ path: [key]
3112
+ });
3113
+ }
3114
+ return;
3115
+ }
3064
3116
  if (result.value === void 0) {
3065
- if (key in input) {
3117
+ if (isPresent) {
3066
3118
  final.value[key] = void 0;
3067
3119
  }
3068
3120
  } else {
@@ -3090,8 +3142,11 @@
3090
3142
  const keySet = def.keySet;
3091
3143
  const _catchall = def.catchall._zod;
3092
3144
  const t = _catchall.def.type;
3145
+ const isOptionalIn = _catchall.optin === "optional";
3093
3146
  const isOptionalOut = _catchall.optout === "optional";
3094
3147
  for (const key in input) {
3148
+ if (key === "__proto__")
3149
+ continue;
3095
3150
  if (keySet.has(key))
3096
3151
  continue;
3097
3152
  if (t === "never") {
@@ -3100,9 +3155,9 @@
3100
3155
  }
3101
3156
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3102
3157
  if (r instanceof Promise) {
3103
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3158
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3104
3159
  } else {
3105
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3160
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3106
3161
  }
3107
3162
  }
3108
3163
  if (unrecognized.length) {
@@ -3168,12 +3223,13 @@
3168
3223
  const shape = value.shape;
3169
3224
  for (const key of value.keys) {
3170
3225
  const el = shape[key];
3226
+ const isOptionalIn = el._zod.optin === "optional";
3171
3227
  const isOptionalOut = el._zod.optout === "optional";
3172
3228
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3173
3229
  if (r instanceof Promise) {
3174
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3230
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3175
3231
  } else {
3176
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3232
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3177
3233
  }
3178
3234
  }
3179
3235
  if (!catchall) {
@@ -3204,9 +3260,10 @@
3204
3260
  const id = ids[key];
3205
3261
  const k = esc(key);
3206
3262
  const schema = shape[key];
3263
+ const isOptionalIn = schema?._zod?.optin === "optional";
3207
3264
  const isOptionalOut = schema?._zod?.optout === "optional";
3208
3265
  doc.write(`const ${id} = ${parseStr(key)};`);
3209
- if (isOptionalOut) {
3266
+ if (isOptionalIn && isOptionalOut) {
3210
3267
  doc.write(`
3211
3268
  if (${id}.issues.length) {
3212
3269
  if (${k} in input) {
@@ -3225,6 +3282,33 @@
3225
3282
  newResult[${k}] = ${id}.value;
3226
3283
  }
3227
3284
 
3285
+ `);
3286
+ } else if (!isOptionalIn) {
3287
+ doc.write(`
3288
+ const ${id}_present = ${k} in input;
3289
+ if (${id}.issues.length) {
3290
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
3291
+ ...iss,
3292
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
3293
+ })));
3294
+ }
3295
+ if (!${id}_present && !${id}.issues.length) {
3296
+ payload.issues.push({
3297
+ code: "invalid_type",
3298
+ expected: "nonoptional",
3299
+ input: undefined,
3300
+ path: [${k}]
3301
+ });
3302
+ }
3303
+
3304
+ if (${id}_present) {
3305
+ if (${id}.value === undefined) {
3306
+ newResult[${k}] = undefined;
3307
+ } else {
3308
+ newResult[${k}] = ${id}.value;
3309
+ }
3310
+ }
3311
+
3228
3312
  `);
3229
3313
  } else {
3230
3314
  doc.write(`
@@ -3318,10 +3402,9 @@
3318
3402
  }
3319
3403
  return void 0;
3320
3404
  });
3321
- const single = def.options.length === 1;
3322
- const first = def.options[0]._zod.run;
3405
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3323
3406
  inst._zod.parse = (payload, ctx) => {
3324
- if (single) {
3407
+ if (first) {
3325
3408
  return first(payload, ctx);
3326
3409
  }
3327
3410
  let async = false;
@@ -3374,10 +3457,9 @@
3374
3457
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3375
3458
  $ZodUnion.init(inst, def);
3376
3459
  def.inclusive = false;
3377
- const single = def.options.length === 1;
3378
- const first = def.options[0]._zod.run;
3460
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3379
3461
  inst._zod.parse = (payload, ctx) => {
3380
- if (single) {
3462
+ if (first) {
3381
3463
  return first(payload, ctx);
3382
3464
  }
3383
3465
  let async = false;
@@ -3452,7 +3534,7 @@
3452
3534
  if (opt) {
3453
3535
  return opt._zod.run(payload, ctx);
3454
3536
  }
3455
- if (def.unionFallback) {
3537
+ if (def.unionFallback || ctx.direction === "backward") {
3456
3538
  return _super(payload, ctx);
3457
3539
  }
3458
3540
  payload.issues.push({
@@ -3460,6 +3542,7 @@
3460
3542
  errors: [],
3461
3543
  note: "No matching discriminator",
3462
3544
  discriminator: def.discriminator,
3545
+ options: Array.from(disc.value.keys()),
3463
3546
  input,
3464
3547
  path: [def.discriminator],
3465
3548
  inst
@@ -3581,64 +3664,96 @@
3581
3664
  }
3582
3665
  payload.value = [];
3583
3666
  const proms = [];
3584
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
3585
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
3667
+ const optinStart = getTupleOptStart(items, "optin");
3668
+ const optoutStart = getTupleOptStart(items, "optout");
3586
3669
  if (!def.rest) {
3587
- const tooBig = input.length > items.length;
3588
- const tooSmall = input.length < optStart - 1;
3589
- if (tooBig || tooSmall) {
3670
+ if (input.length < optinStart) {
3590
3671
  payload.issues.push({
3591
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
3672
+ code: "too_small",
3673
+ minimum: optinStart,
3674
+ inclusive: true,
3592
3675
  input,
3593
3676
  inst,
3594
3677
  origin: "array"
3595
3678
  });
3596
3679
  return payload;
3597
3680
  }
3598
- }
3599
- let i = -1;
3600
- for (const item of items) {
3601
- i++;
3602
- if (i >= input.length) {
3603
- if (i >= optStart)
3604
- continue;
3681
+ if (input.length > items.length) {
3682
+ payload.issues.push({
3683
+ code: "too_big",
3684
+ maximum: items.length,
3685
+ inclusive: true,
3686
+ input,
3687
+ inst,
3688
+ origin: "array"
3689
+ });
3605
3690
  }
3606
- const result = item._zod.run({
3607
- value: input[i],
3608
- issues: []
3609
- }, ctx);
3610
- if (result instanceof Promise) {
3611
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3691
+ }
3692
+ const itemResults = new Array(items.length);
3693
+ for (let i = 0; i < items.length; i++) {
3694
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
3695
+ if (r instanceof Promise) {
3696
+ proms.push(r.then((rr) => {
3697
+ itemResults[i] = rr;
3698
+ }));
3612
3699
  } else {
3613
- handleTupleResult(result, payload, i);
3700
+ itemResults[i] = r;
3614
3701
  }
3615
3702
  }
3616
3703
  if (def.rest) {
3704
+ let i = items.length - 1;
3617
3705
  const rest = input.slice(items.length);
3618
3706
  for (const el of rest) {
3619
3707
  i++;
3620
- const result = def.rest._zod.run({
3621
- value: el,
3622
- issues: []
3623
- }, ctx);
3708
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
3624
3709
  if (result instanceof Promise) {
3625
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3710
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
3626
3711
  } else {
3627
3712
  handleTupleResult(result, payload, i);
3628
3713
  }
3629
3714
  }
3630
3715
  }
3631
- if (proms.length)
3632
- return Promise.all(proms).then(() => payload);
3633
- return payload;
3716
+ if (proms.length) {
3717
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
3718
+ }
3719
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
3634
3720
  };
3635
3721
  });
3722
+ function getTupleOptStart(items, key) {
3723
+ for (let i = items.length - 1; i >= 0; i--) {
3724
+ if (items[i]._zod[key] !== "optional")
3725
+ return i + 1;
3726
+ }
3727
+ return 0;
3728
+ }
3636
3729
  function handleTupleResult(result, final, index) {
3637
3730
  if (result.issues.length) {
3638
3731
  final.issues.push(...prefixIssues(index, result.issues));
3639
3732
  }
3640
3733
  final.value[index] = result.value;
3641
3734
  }
3735
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
3736
+ for (let i = 0; i < items.length; i++) {
3737
+ const r = itemResults[i];
3738
+ const isPresent = i < input.length;
3739
+ if (r.issues.length) {
3740
+ if (!isPresent && i >= optoutStart) {
3741
+ final.value.length = i;
3742
+ break;
3743
+ }
3744
+ final.issues.push(...prefixIssues(i, r.issues));
3745
+ }
3746
+ final.value[i] = r.value;
3747
+ }
3748
+ for (let i = final.value.length - 1; i >= input.length; i--) {
3749
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
3750
+ final.value.length = i;
3751
+ } else {
3752
+ break;
3753
+ }
3754
+ }
3755
+ return final;
3756
+ }
3642
3757
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3643
3758
  $ZodType.init(inst, def);
3644
3759
  inst._zod.parse = (payload, ctx) => {
@@ -3660,19 +3775,35 @@
3660
3775
  for (const key of values) {
3661
3776
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3662
3777
  recordKeys.add(typeof key === "number" ? key.toString() : key);
3778
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3779
+ if (keyResult instanceof Promise) {
3780
+ throw new Error("Async schemas not supported in object keys currently");
3781
+ }
3782
+ if (keyResult.issues.length) {
3783
+ payload.issues.push({
3784
+ code: "invalid_key",
3785
+ origin: "record",
3786
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3787
+ input: key,
3788
+ path: [key],
3789
+ inst
3790
+ });
3791
+ continue;
3792
+ }
3793
+ const outKey = keyResult.value;
3663
3794
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3664
3795
  if (result instanceof Promise) {
3665
3796
  proms.push(result.then((result2) => {
3666
3797
  if (result2.issues.length) {
3667
3798
  payload.issues.push(...prefixIssues(key, result2.issues));
3668
3799
  }
3669
- payload.value[key] = result2.value;
3800
+ payload.value[outKey] = result2.value;
3670
3801
  }));
3671
3802
  } else {
3672
3803
  if (result.issues.length) {
3673
3804
  payload.issues.push(...prefixIssues(key, result.issues));
3674
3805
  }
3675
- payload.value[key] = result.value;
3806
+ payload.value[outKey] = result.value;
3676
3807
  }
3677
3808
  }
3678
3809
  }
@@ -3696,6 +3827,8 @@
3696
3827
  for (const key of Reflect.ownKeys(input)) {
3697
3828
  if (key === "__proto__")
3698
3829
  continue;
3830
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
3831
+ continue;
3699
3832
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3700
3833
  if (keyResult instanceof Promise) {
3701
3834
  throw new Error("Async schemas not supported in object keys currently");
@@ -4339,7 +4472,12 @@
4339
4472
  });
4340
4473
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4341
4474
  $ZodType.init(inst, def);
4342
- defineLazy(inst._zod, "innerType", () => def.getter());
4475
+ defineLazy(inst._zod, "innerType", () => {
4476
+ const d = def;
4477
+ if (!d._cachedInner)
4478
+ d._cachedInner = def.getter();
4479
+ return d._cachedInner;
4480
+ });
4343
4481
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4344
4482
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4345
4483
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4394,6 +4532,7 @@
4394
4532
  cs: () => cs_default,
4395
4533
  da: () => da_default,
4396
4534
  de: () => de_default,
4535
+ el: () => el_default,
4397
4536
  en: () => en_default,
4398
4537
  eo: () => eo_default,
4399
4538
  es: () => es_default,
@@ -4402,6 +4541,7 @@
4402
4541
  fr: () => fr_default,
4403
4542
  frCA: () => fr_CA_default,
4404
4543
  he: () => he_default,
4544
+ hr: () => hr_default,
4405
4545
  hu: () => hu_default,
4406
4546
  hy: () => hy_default,
4407
4547
  id: () => id_default,
@@ -4421,6 +4561,7 @@
4421
4561
  pl: () => pl_default,
4422
4562
  ps: () => ps_default,
4423
4563
  pt: () => pt_default,
4564
+ ro: () => ro_default,
4424
4565
  ru: () => ru_default,
4425
4566
  sl: () => sl_default,
4426
4567
  sv: () => sv_default,
@@ -5374,8 +5515,118 @@
5374
5515
  };
5375
5516
  }
5376
5517
 
5377
- // node_modules/zod/v4/locales/en.js
5518
+ // node_modules/zod/v4/locales/el.js
5378
5519
  var error9 = () => {
5520
+ const Sizable = {
5521
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5522
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5523
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5524
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5525
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
5526
+ };
5527
+ function getSizing(origin) {
5528
+ return Sizable[origin] ?? null;
5529
+ }
5530
+ const FormatDictionary = {
5531
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
5532
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
5533
+ url: "URL",
5534
+ emoji: "emoji",
5535
+ uuid: "UUID",
5536
+ uuidv4: "UUIDv4",
5537
+ uuidv6: "UUIDv6",
5538
+ nanoid: "nanoid",
5539
+ guid: "GUID",
5540
+ cuid: "cuid",
5541
+ cuid2: "cuid2",
5542
+ ulid: "ULID",
5543
+ xid: "XID",
5544
+ ksuid: "KSUID",
5545
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
5546
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
5547
+ time: "ISO \u03CE\u03C1\u03B1",
5548
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
5549
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
5550
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
5551
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
5552
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
5553
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
5554
+ 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",
5555
+ 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",
5556
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
5557
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
5558
+ jwt: "JWT",
5559
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
5560
+ };
5561
+ const TypeDictionary = {
5562
+ nan: "NaN"
5563
+ };
5564
+ return (issue2) => {
5565
+ switch (issue2.code) {
5566
+ case "invalid_type": {
5567
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5568
+ const receivedType = parsedType(issue2.input);
5569
+ const received = TypeDictionary[receivedType] ?? receivedType;
5570
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
5571
+ 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}`;
5572
+ }
5573
+ 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}`;
5574
+ }
5575
+ case "invalid_value":
5576
+ if (issue2.values.length === 1)
5577
+ 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])}`;
5578
+ 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, "|")}`;
5579
+ case "too_big": {
5580
+ const adj = issue2.inclusive ? "<=" : "<";
5581
+ const sizing = getSizing(issue2.origin);
5582
+ if (sizing)
5583
+ 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"}`;
5584
+ 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()}`;
5585
+ }
5586
+ case "too_small": {
5587
+ const adj = issue2.inclusive ? ">=" : ">";
5588
+ const sizing = getSizing(issue2.origin);
5589
+ if (sizing) {
5590
+ 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}`;
5591
+ }
5592
+ 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()}`;
5593
+ }
5594
+ case "invalid_format": {
5595
+ const _issue = issue2;
5596
+ if (_issue.format === "starts_with") {
5597
+ 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}"`;
5598
+ }
5599
+ if (_issue.format === "ends_with")
5600
+ 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}"`;
5601
+ if (_issue.format === "includes")
5602
+ 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}"`;
5603
+ if (_issue.format === "regex")
5604
+ 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}`;
5605
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
5606
+ }
5607
+ case "not_multiple_of":
5608
+ 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}`;
5609
+ case "unrecognized_keys":
5610
+ 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, ", ")}`;
5611
+ case "invalid_key":
5612
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
5613
+ case "invalid_union":
5614
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
5615
+ case "invalid_element":
5616
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
5617
+ default:
5618
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
5619
+ }
5620
+ };
5621
+ };
5622
+ function el_default() {
5623
+ return {
5624
+ localeError: error9()
5625
+ };
5626
+ }
5627
+
5628
+ // node_modules/zod/v4/locales/en.js
5629
+ var error10 = () => {
5379
5630
  const Sizable = {
5380
5631
  string: { unit: "characters", verb: "to have" },
5381
5632
  file: { unit: "bytes", verb: "to have" },
@@ -5469,6 +5720,10 @@
5469
5720
  case "invalid_key":
5470
5721
  return `Invalid key in ${issue2.origin}`;
5471
5722
  case "invalid_union":
5723
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
5724
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
5725
+ return `Invalid discriminator value. Expected ${opts}`;
5726
+ }
5472
5727
  return "Invalid input";
5473
5728
  case "invalid_element":
5474
5729
  return `Invalid value in ${issue2.origin}`;
@@ -5479,12 +5734,12 @@
5479
5734
  };
5480
5735
  function en_default() {
5481
5736
  return {
5482
- localeError: error9()
5737
+ localeError: error10()
5483
5738
  };
5484
5739
  }
5485
5740
 
5486
5741
  // node_modules/zod/v4/locales/eo.js
5487
- var error10 = () => {
5742
+ var error11 = () => {
5488
5743
  const Sizable = {
5489
5744
  string: { unit: "karaktrojn", verb: "havi" },
5490
5745
  file: { unit: "bajtojn", verb: "havi" },
@@ -5589,12 +5844,12 @@
5589
5844
  };
5590
5845
  function eo_default() {
5591
5846
  return {
5592
- localeError: error10()
5847
+ localeError: error11()
5593
5848
  };
5594
5849
  }
5595
5850
 
5596
5851
  // node_modules/zod/v4/locales/es.js
5597
- var error11 = () => {
5852
+ var error12 = () => {
5598
5853
  const Sizable = {
5599
5854
  string: { unit: "caracteres", verb: "tener" },
5600
5855
  file: { unit: "bytes", verb: "tener" },
@@ -5722,12 +5977,12 @@
5722
5977
  };
5723
5978
  function es_default() {
5724
5979
  return {
5725
- localeError: error11()
5980
+ localeError: error12()
5726
5981
  };
5727
5982
  }
5728
5983
 
5729
5984
  // node_modules/zod/v4/locales/fa.js
5730
- var error12 = () => {
5985
+ var error13 = () => {
5731
5986
  const Sizable = {
5732
5987
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5733
5988
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5837,12 +6092,12 @@
5837
6092
  };
5838
6093
  function fa_default() {
5839
6094
  return {
5840
- localeError: error12()
6095
+ localeError: error13()
5841
6096
  };
5842
6097
  }
5843
6098
 
5844
6099
  // node_modules/zod/v4/locales/fi.js
5845
- var error13 = () => {
6100
+ var error14 = () => {
5846
6101
  const Sizable = {
5847
6102
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
5848
6103
  file: { unit: "tavua", subject: "tiedoston" },
@@ -5950,12 +6205,12 @@
5950
6205
  };
5951
6206
  function fi_default() {
5952
6207
  return {
5953
- localeError: error13()
6208
+ localeError: error14()
5954
6209
  };
5955
6210
  }
5956
6211
 
5957
6212
  // node_modules/zod/v4/locales/fr.js
5958
- var error14 = () => {
6213
+ var error15 = () => {
5959
6214
  const Sizable = {
5960
6215
  string: { unit: "caract\xE8res", verb: "avoir" },
5961
6216
  file: { unit: "octets", verb: "avoir" },
@@ -5996,9 +6251,27 @@
5996
6251
  template_literal: "entr\xE9e"
5997
6252
  };
5998
6253
  const TypeDictionary = {
5999
- nan: "NaN",
6254
+ string: "cha\xEEne",
6000
6255
  number: "nombre",
6001
- array: "tableau"
6256
+ int: "entier",
6257
+ boolean: "bool\xE9en",
6258
+ bigint: "grand entier",
6259
+ symbol: "symbole",
6260
+ undefined: "ind\xE9fini",
6261
+ null: "null",
6262
+ never: "jamais",
6263
+ void: "vide",
6264
+ date: "date",
6265
+ array: "tableau",
6266
+ object: "objet",
6267
+ tuple: "tuple",
6268
+ record: "enregistrement",
6269
+ map: "carte",
6270
+ set: "ensemble",
6271
+ file: "fichier",
6272
+ nonoptional: "non-optionnel",
6273
+ nan: "NaN",
6274
+ function: "fonction"
6002
6275
  };
6003
6276
  return (issue2) => {
6004
6277
  switch (issue2.code) {
@@ -6019,16 +6292,15 @@
6019
6292
  const adj = issue2.inclusive ? "<=" : "<";
6020
6293
  const sizing = getSizing(issue2.origin);
6021
6294
  if (sizing)
6022
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6023
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6295
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6296
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6024
6297
  }
6025
6298
  case "too_small": {
6026
6299
  const adj = issue2.inclusive ? ">=" : ">";
6027
6300
  const sizing = getSizing(issue2.origin);
6028
- if (sizing) {
6029
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6030
- }
6031
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6301
+ if (sizing)
6302
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6303
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6032
6304
  }
6033
6305
  case "invalid_format": {
6034
6306
  const _issue = issue2;
@@ -6059,12 +6331,12 @@
6059
6331
  };
6060
6332
  function fr_default() {
6061
6333
  return {
6062
- localeError: error14()
6334
+ localeError: error15()
6063
6335
  };
6064
6336
  }
6065
6337
 
6066
6338
  // node_modules/zod/v4/locales/fr-CA.js
6067
- var error15 = () => {
6339
+ var error16 = () => {
6068
6340
  const Sizable = {
6069
6341
  string: { unit: "caract\xE8res", verb: "avoir" },
6070
6342
  file: { unit: "octets", verb: "avoir" },
@@ -6167,12 +6439,12 @@
6167
6439
  };
6168
6440
  function fr_CA_default() {
6169
6441
  return {
6170
- localeError: error15()
6442
+ localeError: error16()
6171
6443
  };
6172
6444
  }
6173
6445
 
6174
6446
  // node_modules/zod/v4/locales/he.js
6175
- var error16 = () => {
6447
+ var error17 = () => {
6176
6448
  const TypeNames = {
6177
6449
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6178
6450
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6362,24 +6634,24 @@
6362
6634
  };
6363
6635
  function he_default() {
6364
6636
  return {
6365
- localeError: error16()
6637
+ localeError: error17()
6366
6638
  };
6367
6639
  }
6368
6640
 
6369
- // node_modules/zod/v4/locales/hu.js
6370
- var error17 = () => {
6641
+ // node_modules/zod/v4/locales/hr.js
6642
+ var error18 = () => {
6371
6643
  const Sizable = {
6372
- string: { unit: "karakter", verb: "legyen" },
6373
- file: { unit: "byte", verb: "legyen" },
6374
- array: { unit: "elem", verb: "legyen" },
6375
- set: { unit: "elem", verb: "legyen" }
6644
+ string: { unit: "znakova", verb: "imati" },
6645
+ file: { unit: "bajtova", verb: "imati" },
6646
+ array: { unit: "stavki", verb: "imati" },
6647
+ set: { unit: "stavki", verb: "imati" }
6376
6648
  };
6377
6649
  function getSizing(origin) {
6378
6650
  return Sizable[origin] ?? null;
6379
6651
  }
6380
6652
  const FormatDictionary = {
6381
- regex: "bemenet",
6382
- email: "email c\xEDm",
6653
+ regex: "unos",
6654
+ email: "email adresa",
6383
6655
  url: "URL",
6384
6656
  emoji: "emoji",
6385
6657
  uuid: "UUID",
@@ -6392,25 +6664,37 @@
6392
6664
  ulid: "ULID",
6393
6665
  xid: "XID",
6394
6666
  ksuid: "KSUID",
6395
- datetime: "ISO id\u0151b\xE9lyeg",
6396
- date: "ISO d\xE1tum",
6397
- time: "ISO id\u0151",
6398
- duration: "ISO id\u0151intervallum",
6399
- ipv4: "IPv4 c\xEDm",
6400
- ipv6: "IPv6 c\xEDm",
6401
- cidrv4: "IPv4 tartom\xE1ny",
6402
- cidrv6: "IPv6 tartom\xE1ny",
6403
- base64: "base64-k\xF3dolt string",
6404
- base64url: "base64url-k\xF3dolt string",
6405
- json_string: "JSON string",
6406
- e164: "E.164 sz\xE1m",
6667
+ datetime: "ISO datum i vrijeme",
6668
+ date: "ISO datum",
6669
+ time: "ISO vrijeme",
6670
+ duration: "ISO trajanje",
6671
+ ipv4: "IPv4 adresa",
6672
+ ipv6: "IPv6 adresa",
6673
+ cidrv4: "IPv4 raspon",
6674
+ cidrv6: "IPv6 raspon",
6675
+ base64: "base64 kodirani tekst",
6676
+ base64url: "base64url kodirani tekst",
6677
+ json_string: "JSON tekst",
6678
+ e164: "E.164 broj",
6407
6679
  jwt: "JWT",
6408
- template_literal: "bemenet"
6680
+ template_literal: "unos"
6409
6681
  };
6410
6682
  const TypeDictionary = {
6411
6683
  nan: "NaN",
6412
- number: "sz\xE1m",
6413
- array: "t\xF6mb"
6684
+ string: "tekst",
6685
+ number: "broj",
6686
+ boolean: "boolean",
6687
+ array: "niz",
6688
+ object: "objekt",
6689
+ set: "skup",
6690
+ file: "datoteka",
6691
+ date: "datum",
6692
+ bigint: "bigint",
6693
+ symbol: "simbol",
6694
+ undefined: "undefined",
6695
+ null: "null",
6696
+ function: "funkcija",
6697
+ map: "mapa"
6414
6698
  };
6415
6699
  return (issue2) => {
6416
6700
  switch (issue2.code) {
@@ -6419,37 +6703,148 @@
6419
6703
  const receivedType = parsedType(issue2.input);
6420
6704
  const received = TypeDictionary[receivedType] ?? receivedType;
6421
6705
  if (/^[A-Z]/.test(issue2.expected)) {
6422
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6706
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
6423
6707
  }
6424
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6708
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
6425
6709
  }
6426
6710
  case "invalid_value":
6427
6711
  if (issue2.values.length === 1)
6428
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6429
- return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6712
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
6713
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
6430
6714
  case "too_big": {
6431
6715
  const adj = issue2.inclusive ? "<=" : "<";
6432
6716
  const sizing = getSizing(issue2.origin);
6717
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6433
6718
  if (sizing)
6434
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6435
- return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6719
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6720
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6436
6721
  }
6437
6722
  case "too_small": {
6438
6723
  const adj = issue2.inclusive ? ">=" : ">";
6439
6724
  const sizing = getSizing(issue2.origin);
6725
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6440
6726
  if (sizing) {
6441
- return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6727
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6442
6728
  }
6443
- return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
6729
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
6444
6730
  }
6445
6731
  case "invalid_format": {
6446
6732
  const _issue = issue2;
6447
6733
  if (_issue.format === "starts_with")
6448
- return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
6734
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
6449
6735
  if (_issue.format === "ends_with")
6450
- return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
6736
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
6451
6737
  if (_issue.format === "includes")
6452
- return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
6738
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
6739
+ if (_issue.format === "regex")
6740
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
6741
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
6742
+ }
6743
+ case "not_multiple_of":
6744
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
6745
+ case "unrecognized_keys":
6746
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
6747
+ case "invalid_key":
6748
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6749
+ case "invalid_union":
6750
+ return "Neispravan unos";
6751
+ case "invalid_element":
6752
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6753
+ default:
6754
+ return `Neispravan unos`;
6755
+ }
6756
+ };
6757
+ };
6758
+ function hr_default() {
6759
+ return {
6760
+ localeError: error18()
6761
+ };
6762
+ }
6763
+
6764
+ // node_modules/zod/v4/locales/hu.js
6765
+ var error19 = () => {
6766
+ const Sizable = {
6767
+ string: { unit: "karakter", verb: "legyen" },
6768
+ file: { unit: "byte", verb: "legyen" },
6769
+ array: { unit: "elem", verb: "legyen" },
6770
+ set: { unit: "elem", verb: "legyen" }
6771
+ };
6772
+ function getSizing(origin) {
6773
+ return Sizable[origin] ?? null;
6774
+ }
6775
+ const FormatDictionary = {
6776
+ regex: "bemenet",
6777
+ email: "email c\xEDm",
6778
+ url: "URL",
6779
+ emoji: "emoji",
6780
+ uuid: "UUID",
6781
+ uuidv4: "UUIDv4",
6782
+ uuidv6: "UUIDv6",
6783
+ nanoid: "nanoid",
6784
+ guid: "GUID",
6785
+ cuid: "cuid",
6786
+ cuid2: "cuid2",
6787
+ ulid: "ULID",
6788
+ xid: "XID",
6789
+ ksuid: "KSUID",
6790
+ datetime: "ISO id\u0151b\xE9lyeg",
6791
+ date: "ISO d\xE1tum",
6792
+ time: "ISO id\u0151",
6793
+ duration: "ISO id\u0151intervallum",
6794
+ ipv4: "IPv4 c\xEDm",
6795
+ ipv6: "IPv6 c\xEDm",
6796
+ cidrv4: "IPv4 tartom\xE1ny",
6797
+ cidrv6: "IPv6 tartom\xE1ny",
6798
+ base64: "base64-k\xF3dolt string",
6799
+ base64url: "base64url-k\xF3dolt string",
6800
+ json_string: "JSON string",
6801
+ e164: "E.164 sz\xE1m",
6802
+ jwt: "JWT",
6803
+ template_literal: "bemenet"
6804
+ };
6805
+ const TypeDictionary = {
6806
+ nan: "NaN",
6807
+ number: "sz\xE1m",
6808
+ array: "t\xF6mb"
6809
+ };
6810
+ return (issue2) => {
6811
+ switch (issue2.code) {
6812
+ case "invalid_type": {
6813
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6814
+ const receivedType = parsedType(issue2.input);
6815
+ const received = TypeDictionary[receivedType] ?? receivedType;
6816
+ if (/^[A-Z]/.test(issue2.expected)) {
6817
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6818
+ }
6819
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6820
+ }
6821
+ case "invalid_value":
6822
+ if (issue2.values.length === 1)
6823
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6824
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6825
+ case "too_big": {
6826
+ const adj = issue2.inclusive ? "<=" : "<";
6827
+ const sizing = getSizing(issue2.origin);
6828
+ if (sizing)
6829
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6830
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6831
+ }
6832
+ case "too_small": {
6833
+ const adj = issue2.inclusive ? ">=" : ">";
6834
+ const sizing = getSizing(issue2.origin);
6835
+ if (sizing) {
6836
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6837
+ }
6838
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
6839
+ }
6840
+ case "invalid_format": {
6841
+ const _issue = issue2;
6842
+ if (_issue.format === "starts_with")
6843
+ return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
6844
+ if (_issue.format === "ends_with")
6845
+ return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
6846
+ if (_issue.format === "includes")
6847
+ return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
6453
6848
  if (_issue.format === "regex")
6454
6849
  return `\xC9rv\xE9nytelen string: ${_issue.pattern} mint\xE1nak kell megfelelnie`;
6455
6850
  return `\xC9rv\xE9nytelen ${FormatDictionary[_issue.format] ?? issue2.format}`;
@@ -6471,7 +6866,7 @@
6471
6866
  };
6472
6867
  function hu_default() {
6473
6868
  return {
6474
- localeError: error17()
6869
+ localeError: error19()
6475
6870
  };
6476
6871
  }
6477
6872
 
@@ -6486,7 +6881,7 @@
6486
6881
  const lastChar = word[word.length - 1];
6487
6882
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
6488
6883
  }
6489
- var error18 = () => {
6884
+ var error20 = () => {
6490
6885
  const Sizable = {
6491
6886
  string: {
6492
6887
  unit: {
@@ -6619,12 +7014,12 @@
6619
7014
  };
6620
7015
  function hy_default() {
6621
7016
  return {
6622
- localeError: error18()
7017
+ localeError: error20()
6623
7018
  };
6624
7019
  }
6625
7020
 
6626
7021
  // node_modules/zod/v4/locales/id.js
6627
- var error19 = () => {
7022
+ var error21 = () => {
6628
7023
  const Sizable = {
6629
7024
  string: { unit: "karakter", verb: "memiliki" },
6630
7025
  file: { unit: "byte", verb: "memiliki" },
@@ -6726,12 +7121,12 @@
6726
7121
  };
6727
7122
  function id_default() {
6728
7123
  return {
6729
- localeError: error19()
7124
+ localeError: error21()
6730
7125
  };
6731
7126
  }
6732
7127
 
6733
7128
  // node_modules/zod/v4/locales/is.js
6734
- var error20 = () => {
7129
+ var error22 = () => {
6735
7130
  const Sizable = {
6736
7131
  string: { unit: "stafi", verb: "a\xF0 hafa" },
6737
7132
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -6836,12 +7231,12 @@
6836
7231
  };
6837
7232
  function is_default() {
6838
7233
  return {
6839
- localeError: error20()
7234
+ localeError: error22()
6840
7235
  };
6841
7236
  }
6842
7237
 
6843
7238
  // node_modules/zod/v4/locales/it.js
6844
- var error21 = () => {
7239
+ var error23 = () => {
6845
7240
  const Sizable = {
6846
7241
  string: { unit: "caratteri", verb: "avere" },
6847
7242
  file: { unit: "byte", verb: "avere" },
@@ -6926,7 +7321,7 @@
6926
7321
  return `Stringa non valida: deve includere "${_issue.includes}"`;
6927
7322
  if (_issue.format === "regex")
6928
7323
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
6929
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7324
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6930
7325
  }
6931
7326
  case "not_multiple_of":
6932
7327
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -6945,12 +7340,12 @@
6945
7340
  };
6946
7341
  function it_default() {
6947
7342
  return {
6948
- localeError: error21()
7343
+ localeError: error23()
6949
7344
  };
6950
7345
  }
6951
7346
 
6952
7347
  // node_modules/zod/v4/locales/ja.js
6953
- var error22 = () => {
7348
+ var error24 = () => {
6954
7349
  const Sizable = {
6955
7350
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
6956
7351
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7053,12 +7448,12 @@
7053
7448
  };
7054
7449
  function ja_default() {
7055
7450
  return {
7056
- localeError: error22()
7451
+ localeError: error24()
7057
7452
  };
7058
7453
  }
7059
7454
 
7060
7455
  // node_modules/zod/v4/locales/ka.js
7061
- var error23 = () => {
7456
+ var error25 = () => {
7062
7457
  const Sizable = {
7063
7458
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7064
7459
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7091,9 +7486,9 @@
7091
7486
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
7092
7487
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7093
7488
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7094
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7095
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7096
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7489
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7490
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7491
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
7097
7492
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
7098
7493
  jwt: "JWT",
7099
7494
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -7101,7 +7496,7 @@
7101
7496
  const TypeDictionary = {
7102
7497
  nan: "NaN",
7103
7498
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
7104
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7499
+ string: "\u10D5\u10D4\u10DA\u10D8",
7105
7500
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
7106
7501
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
7107
7502
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7139,14 +7534,14 @@
7139
7534
  case "invalid_format": {
7140
7535
  const _issue = issue2;
7141
7536
  if (_issue.format === "starts_with") {
7142
- 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`;
7537
+ 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`;
7143
7538
  }
7144
7539
  if (_issue.format === "ends_with")
7145
- 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`;
7540
+ 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`;
7146
7541
  if (_issue.format === "includes")
7147
- 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`;
7542
+ 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`;
7148
7543
  if (_issue.format === "regex")
7149
- 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}`;
7544
+ 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}`;
7150
7545
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7151
7546
  }
7152
7547
  case "not_multiple_of":
@@ -7166,12 +7561,12 @@
7166
7561
  };
7167
7562
  function ka_default() {
7168
7563
  return {
7169
- localeError: error23()
7564
+ localeError: error25()
7170
7565
  };
7171
7566
  }
7172
7567
 
7173
7568
  // node_modules/zod/v4/locales/km.js
7174
- var error24 = () => {
7569
+ var error26 = () => {
7175
7570
  const Sizable = {
7176
7571
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7177
7572
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7277,7 +7672,7 @@
7277
7672
  };
7278
7673
  function km_default() {
7279
7674
  return {
7280
- localeError: error24()
7675
+ localeError: error26()
7281
7676
  };
7282
7677
  }
7283
7678
 
@@ -7287,7 +7682,7 @@
7287
7682
  }
7288
7683
 
7289
7684
  // node_modules/zod/v4/locales/ko.js
7290
- var error25 = () => {
7685
+ var error27 = () => {
7291
7686
  const Sizable = {
7292
7687
  string: { unit: "\uBB38\uC790", verb: "to have" },
7293
7688
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7394,7 +7789,7 @@
7394
7789
  };
7395
7790
  function ko_default() {
7396
7791
  return {
7397
- localeError: error25()
7792
+ localeError: error27()
7398
7793
  };
7399
7794
  }
7400
7795
 
@@ -7412,7 +7807,7 @@
7412
7807
  return "one";
7413
7808
  return "few";
7414
7809
  }
7415
- var error26 = () => {
7810
+ var error28 = () => {
7416
7811
  const Sizable = {
7417
7812
  string: {
7418
7813
  unit: {
@@ -7598,12 +7993,12 @@
7598
7993
  };
7599
7994
  function lt_default() {
7600
7995
  return {
7601
- localeError: error26()
7996
+ localeError: error28()
7602
7997
  };
7603
7998
  }
7604
7999
 
7605
8000
  // node_modules/zod/v4/locales/mk.js
7606
- var error27 = () => {
8001
+ var error29 = () => {
7607
8002
  const Sizable = {
7608
8003
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7609
8004
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7708,12 +8103,12 @@
7708
8103
  };
7709
8104
  function mk_default() {
7710
8105
  return {
7711
- localeError: error27()
8106
+ localeError: error29()
7712
8107
  };
7713
8108
  }
7714
8109
 
7715
8110
  // node_modules/zod/v4/locales/ms.js
7716
- var error28 = () => {
8111
+ var error30 = () => {
7717
8112
  const Sizable = {
7718
8113
  string: { unit: "aksara", verb: "mempunyai" },
7719
8114
  file: { unit: "bait", verb: "mempunyai" },
@@ -7816,12 +8211,12 @@
7816
8211
  };
7817
8212
  function ms_default() {
7818
8213
  return {
7819
- localeError: error28()
8214
+ localeError: error30()
7820
8215
  };
7821
8216
  }
7822
8217
 
7823
8218
  // node_modules/zod/v4/locales/nl.js
7824
- var error29 = () => {
8219
+ var error31 = () => {
7825
8220
  const Sizable = {
7826
8221
  string: { unit: "tekens", verb: "heeft" },
7827
8222
  file: { unit: "bytes", verb: "heeft" },
@@ -7927,12 +8322,12 @@
7927
8322
  };
7928
8323
  function nl_default() {
7929
8324
  return {
7930
- localeError: error29()
8325
+ localeError: error31()
7931
8326
  };
7932
8327
  }
7933
8328
 
7934
8329
  // node_modules/zod/v4/locales/no.js
7935
- var error30 = () => {
8330
+ var error32 = () => {
7936
8331
  const Sizable = {
7937
8332
  string: { unit: "tegn", verb: "\xE5 ha" },
7938
8333
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8036,12 +8431,12 @@
8036
8431
  };
8037
8432
  function no_default() {
8038
8433
  return {
8039
- localeError: error30()
8434
+ localeError: error32()
8040
8435
  };
8041
8436
  }
8042
8437
 
8043
8438
  // node_modules/zod/v4/locales/ota.js
8044
- var error31 = () => {
8439
+ var error33 = () => {
8045
8440
  const Sizable = {
8046
8441
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8047
8442
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8146,12 +8541,12 @@
8146
8541
  };
8147
8542
  function ota_default() {
8148
8543
  return {
8149
- localeError: error31()
8544
+ localeError: error33()
8150
8545
  };
8151
8546
  }
8152
8547
 
8153
8548
  // node_modules/zod/v4/locales/ps.js
8154
- var error32 = () => {
8549
+ var error34 = () => {
8155
8550
  const Sizable = {
8156
8551
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8157
8552
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8261,12 +8656,12 @@
8261
8656
  };
8262
8657
  function ps_default() {
8263
8658
  return {
8264
- localeError: error32()
8659
+ localeError: error34()
8265
8660
  };
8266
8661
  }
8267
8662
 
8268
8663
  // node_modules/zod/v4/locales/pl.js
8269
- var error33 = () => {
8664
+ var error35 = () => {
8270
8665
  const Sizable = {
8271
8666
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8272
8667
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8371,12 +8766,12 @@
8371
8766
  };
8372
8767
  function pl_default() {
8373
8768
  return {
8374
- localeError: error33()
8769
+ localeError: error35()
8375
8770
  };
8376
8771
  }
8377
8772
 
8378
8773
  // node_modules/zod/v4/locales/pt.js
8379
- var error34 = () => {
8774
+ var error36 = () => {
8380
8775
  const Sizable = {
8381
8776
  string: { unit: "caracteres", verb: "ter" },
8382
8777
  file: { unit: "bytes", verb: "ter" },
@@ -8480,7 +8875,127 @@
8480
8875
  };
8481
8876
  function pt_default() {
8482
8877
  return {
8483
- localeError: error34()
8878
+ localeError: error36()
8879
+ };
8880
+ }
8881
+
8882
+ // node_modules/zod/v4/locales/ro.js
8883
+ var error37 = () => {
8884
+ const Sizable = {
8885
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
8886
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
8887
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8888
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8889
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
8890
+ };
8891
+ function getSizing(origin) {
8892
+ return Sizable[origin] ?? null;
8893
+ }
8894
+ const FormatDictionary = {
8895
+ regex: "intrare",
8896
+ email: "adres\u0103 de email",
8897
+ url: "URL",
8898
+ emoji: "emoji",
8899
+ uuid: "UUID",
8900
+ uuidv4: "UUIDv4",
8901
+ uuidv6: "UUIDv6",
8902
+ nanoid: "nanoid",
8903
+ guid: "GUID",
8904
+ cuid: "cuid",
8905
+ cuid2: "cuid2",
8906
+ ulid: "ULID",
8907
+ xid: "XID",
8908
+ ksuid: "KSUID",
8909
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
8910
+ date: "dat\u0103 ISO",
8911
+ time: "or\u0103 ISO",
8912
+ duration: "durat\u0103 ISO",
8913
+ ipv4: "adres\u0103 IPv4",
8914
+ ipv6: "adres\u0103 IPv6",
8915
+ mac: "adres\u0103 MAC",
8916
+ cidrv4: "interval IPv4",
8917
+ cidrv6: "interval IPv6",
8918
+ base64: "\u0219ir codat base64",
8919
+ base64url: "\u0219ir codat base64url",
8920
+ json_string: "\u0219ir JSON",
8921
+ e164: "num\u0103r E.164",
8922
+ jwt: "JWT",
8923
+ template_literal: "intrare"
8924
+ };
8925
+ const TypeDictionary = {
8926
+ nan: "NaN",
8927
+ string: "\u0219ir",
8928
+ number: "num\u0103r",
8929
+ boolean: "boolean",
8930
+ function: "func\u021Bie",
8931
+ array: "matrice",
8932
+ object: "obiect",
8933
+ undefined: "nedefinit",
8934
+ symbol: "simbol",
8935
+ bigint: "num\u0103r mare",
8936
+ void: "void",
8937
+ never: "never",
8938
+ map: "hart\u0103",
8939
+ set: "set"
8940
+ };
8941
+ return (issue2) => {
8942
+ switch (issue2.code) {
8943
+ case "invalid_type": {
8944
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8945
+ const receivedType = parsedType(issue2.input);
8946
+ const received = TypeDictionary[receivedType] ?? receivedType;
8947
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
8948
+ }
8949
+ case "invalid_value":
8950
+ if (issue2.values.length === 1)
8951
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
8952
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
8953
+ case "too_big": {
8954
+ const adj = issue2.inclusive ? "<=" : "<";
8955
+ const sizing = getSizing(issue2.origin);
8956
+ if (sizing)
8957
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
8958
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
8959
+ }
8960
+ case "too_small": {
8961
+ const adj = issue2.inclusive ? ">=" : ">";
8962
+ const sizing = getSizing(issue2.origin);
8963
+ if (sizing) {
8964
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8965
+ }
8966
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
8967
+ }
8968
+ case "invalid_format": {
8969
+ const _issue = issue2;
8970
+ if (_issue.format === "starts_with") {
8971
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
8972
+ }
8973
+ if (_issue.format === "ends_with")
8974
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
8975
+ if (_issue.format === "includes")
8976
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
8977
+ if (_issue.format === "regex")
8978
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
8979
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8980
+ }
8981
+ case "not_multiple_of":
8982
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
8983
+ case "unrecognized_keys":
8984
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
8985
+ case "invalid_key":
8986
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
8987
+ case "invalid_union":
8988
+ return "Intrare invalid\u0103";
8989
+ case "invalid_element":
8990
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
8991
+ default:
8992
+ return `Intrare invalid\u0103`;
8993
+ }
8994
+ };
8995
+ };
8996
+ function ro_default() {
8997
+ return {
8998
+ localeError: error37()
8484
8999
  };
8485
9000
  }
8486
9001
 
@@ -8500,7 +9015,7 @@
8500
9015
  }
8501
9016
  return many;
8502
9017
  }
8503
- var error35 = () => {
9018
+ var error38 = () => {
8504
9019
  const Sizable = {
8505
9020
  string: {
8506
9021
  unit: {
@@ -8637,12 +9152,12 @@
8637
9152
  };
8638
9153
  function ru_default() {
8639
9154
  return {
8640
- localeError: error35()
9155
+ localeError: error38()
8641
9156
  };
8642
9157
  }
8643
9158
 
8644
9159
  // node_modules/zod/v4/locales/sl.js
8645
- var error36 = () => {
9160
+ var error39 = () => {
8646
9161
  const Sizable = {
8647
9162
  string: { unit: "znakov", verb: "imeti" },
8648
9163
  file: { unit: "bajtov", verb: "imeti" },
@@ -8747,12 +9262,12 @@
8747
9262
  };
8748
9263
  function sl_default() {
8749
9264
  return {
8750
- localeError: error36()
9265
+ localeError: error39()
8751
9266
  };
8752
9267
  }
8753
9268
 
8754
9269
  // node_modules/zod/v4/locales/sv.js
8755
- var error37 = () => {
9270
+ var error40 = () => {
8756
9271
  const Sizable = {
8757
9272
  string: { unit: "tecken", verb: "att ha" },
8758
9273
  file: { unit: "bytes", verb: "att ha" },
@@ -8858,12 +9373,12 @@
8858
9373
  };
8859
9374
  function sv_default() {
8860
9375
  return {
8861
- localeError: error37()
9376
+ localeError: error40()
8862
9377
  };
8863
9378
  }
8864
9379
 
8865
9380
  // node_modules/zod/v4/locales/ta.js
8866
- var error38 = () => {
9381
+ var error41 = () => {
8867
9382
  const Sizable = {
8868
9383
  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" },
8869
9384
  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" },
@@ -8969,12 +9484,12 @@
8969
9484
  };
8970
9485
  function ta_default() {
8971
9486
  return {
8972
- localeError: error38()
9487
+ localeError: error41()
8973
9488
  };
8974
9489
  }
8975
9490
 
8976
9491
  // node_modules/zod/v4/locales/th.js
8977
- var error39 = () => {
9492
+ var error42 = () => {
8978
9493
  const Sizable = {
8979
9494
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
8980
9495
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9080,12 +9595,12 @@
9080
9595
  };
9081
9596
  function th_default() {
9082
9597
  return {
9083
- localeError: error39()
9598
+ localeError: error42()
9084
9599
  };
9085
9600
  }
9086
9601
 
9087
9602
  // node_modules/zod/v4/locales/tr.js
9088
- var error40 = () => {
9603
+ var error43 = () => {
9089
9604
  const Sizable = {
9090
9605
  string: { unit: "karakter", verb: "olmal\u0131" },
9091
9606
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9186,12 +9701,12 @@
9186
9701
  };
9187
9702
  function tr_default() {
9188
9703
  return {
9189
- localeError: error40()
9704
+ localeError: error43()
9190
9705
  };
9191
9706
  }
9192
9707
 
9193
9708
  // node_modules/zod/v4/locales/uk.js
9194
- var error41 = () => {
9709
+ var error44 = () => {
9195
9710
  const Sizable = {
9196
9711
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9197
9712
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9295,7 +9810,7 @@
9295
9810
  };
9296
9811
  function uk_default() {
9297
9812
  return {
9298
- localeError: error41()
9813
+ localeError: error44()
9299
9814
  };
9300
9815
  }
9301
9816
 
@@ -9305,7 +9820,7 @@
9305
9820
  }
9306
9821
 
9307
9822
  // node_modules/zod/v4/locales/ur.js
9308
- var error42 = () => {
9823
+ var error45 = () => {
9309
9824
  const Sizable = {
9310
9825
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9311
9826
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9411,17 +9926,18 @@
9411
9926
  };
9412
9927
  function ur_default() {
9413
9928
  return {
9414
- localeError: error42()
9929
+ localeError: error45()
9415
9930
  };
9416
9931
  }
9417
9932
 
9418
9933
  // node_modules/zod/v4/locales/uz.js
9419
- var error43 = () => {
9934
+ var error46 = () => {
9420
9935
  const Sizable = {
9421
9936
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
9422
9937
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
9423
9938
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
9424
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
9939
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
9940
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9425
9941
  };
9426
9942
  function getSizing(origin) {
9427
9943
  return Sizable[origin] ?? null;
@@ -9521,12 +10037,12 @@
9521
10037
  };
9522
10038
  function uz_default() {
9523
10039
  return {
9524
- localeError: error43()
10040
+ localeError: error46()
9525
10041
  };
9526
10042
  }
9527
10043
 
9528
10044
  // node_modules/zod/v4/locales/vi.js
9529
- var error44 = () => {
10045
+ var error47 = () => {
9530
10046
  const Sizable = {
9531
10047
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
9532
10048
  file: { unit: "byte", verb: "c\xF3" },
@@ -9630,12 +10146,12 @@
9630
10146
  };
9631
10147
  function vi_default() {
9632
10148
  return {
9633
- localeError: error44()
10149
+ localeError: error47()
9634
10150
  };
9635
10151
  }
9636
10152
 
9637
10153
  // node_modules/zod/v4/locales/zh-CN.js
9638
- var error45 = () => {
10154
+ var error48 = () => {
9639
10155
  const Sizable = {
9640
10156
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
9641
10157
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -9740,12 +10256,12 @@
9740
10256
  };
9741
10257
  function zh_CN_default() {
9742
10258
  return {
9743
- localeError: error45()
10259
+ localeError: error48()
9744
10260
  };
9745
10261
  }
9746
10262
 
9747
10263
  // node_modules/zod/v4/locales/zh-TW.js
9748
- var error46 = () => {
10264
+ var error49 = () => {
9749
10265
  const Sizable = {
9750
10266
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
9751
10267
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -9848,12 +10364,12 @@
9848
10364
  };
9849
10365
  function zh_TW_default() {
9850
10366
  return {
9851
- localeError: error46()
10367
+ localeError: error49()
9852
10368
  };
9853
10369
  }
9854
10370
 
9855
10371
  // node_modules/zod/v4/locales/yo.js
9856
- var error47 = () => {
10372
+ var error50 = () => {
9857
10373
  const Sizable = {
9858
10374
  string: { unit: "\xE0mi", verb: "n\xED" },
9859
10375
  file: { unit: "bytes", verb: "n\xED" },
@@ -9956,12 +10472,12 @@
9956
10472
  };
9957
10473
  function yo_default() {
9958
10474
  return {
9959
- localeError: error47()
10475
+ localeError: error50()
9960
10476
  };
9961
10477
  }
9962
10478
 
9963
10479
  // node_modules/zod/v4/core/registries.js
9964
- var _a;
10480
+ var _a2;
9965
10481
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
9966
10482
  var $input = /* @__PURE__ */ Symbol("ZodInput");
9967
10483
  var $ZodRegistry = class {
@@ -10007,7 +10523,7 @@
10007
10523
  function registry() {
10008
10524
  return new $ZodRegistry();
10009
10525
  }
10010
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10526
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10011
10527
  var globalRegistry = globalThis.__zod_globalRegistry;
10012
10528
 
10013
10529
  // node_modules/zod/v4/core/api.js
@@ -10925,7 +11441,7 @@
10925
11441
  return schema;
10926
11442
  }
10927
11443
  // @__NO_SIDE_EFFECTS__
10928
- function _superRefine(fn) {
11444
+ function _superRefine(fn, params) {
10929
11445
  const ch = /* @__PURE__ */ _check((payload) => {
10930
11446
  payload.addIssue = (issue2) => {
10931
11447
  if (typeof issue2 === "string") {
@@ -10942,7 +11458,7 @@
10942
11458
  }
10943
11459
  };
10944
11460
  return fn(payload.value, payload);
10945
- });
11461
+ }, params);
10946
11462
  return ch;
10947
11463
  }
10948
11464
  // @__NO_SIDE_EFFECTS__
@@ -11072,7 +11588,7 @@
11072
11588
  };
11073
11589
  }
11074
11590
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11075
- var _a2;
11591
+ var _a3;
11076
11592
  const def = schema._zod.def;
11077
11593
  const seen = ctx.seen.get(schema);
11078
11594
  if (seen) {
@@ -11119,8 +11635,8 @@
11119
11635
  delete result.schema.examples;
11120
11636
  delete result.schema.default;
11121
11637
  }
11122
- if (ctx.io === "input" && result.schema._prefault)
11123
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11638
+ if (ctx.io === "input" && "_prefault" in result.schema)
11639
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11124
11640
  delete result.schema._prefault;
11125
11641
  const _result = ctx.seen.get(schema);
11126
11642
  return _result.schema;
@@ -11301,10 +11817,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11301
11817
  result.$id = ctx.external.uri(id);
11302
11818
  }
11303
11819
  Object.assign(result, root.def ?? root.schema);
11820
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
11821
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
11822
+ delete result.id;
11304
11823
  const defs = ctx.external?.defs ?? {};
11305
11824
  for (const entry of ctx.seen.entries()) {
11306
11825
  const seen = entry[1];
11307
11826
  if (seen.def && seen.defId) {
11827
+ if (seen.def.id === seen.defId)
11828
+ delete seen.def.id;
11308
11829
  defs[seen.defId] = seen.def;
11309
11830
  }
11310
11831
  }
@@ -11449,39 +11970,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11449
11970
  json2.type = "integer";
11450
11971
  else
11451
11972
  json2.type = "number";
11452
- if (typeof exclusiveMinimum === "number") {
11453
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11973
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
11974
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
11975
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
11976
+ if (exMin) {
11977
+ if (legacy) {
11454
11978
  json2.minimum = exclusiveMinimum;
11455
11979
  json2.exclusiveMinimum = true;
11456
11980
  } else {
11457
11981
  json2.exclusiveMinimum = exclusiveMinimum;
11458
11982
  }
11459
- }
11460
- if (typeof minimum === "number") {
11983
+ } else if (typeof minimum === "number") {
11461
11984
  json2.minimum = minimum;
11462
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
11463
- if (exclusiveMinimum >= minimum)
11464
- delete json2.minimum;
11465
- else
11466
- delete json2.exclusiveMinimum;
11467
- }
11468
11985
  }
11469
- if (typeof exclusiveMaximum === "number") {
11470
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11986
+ if (exMax) {
11987
+ if (legacy) {
11471
11988
  json2.maximum = exclusiveMaximum;
11472
11989
  json2.exclusiveMaximum = true;
11473
11990
  } else {
11474
11991
  json2.exclusiveMaximum = exclusiveMaximum;
11475
11992
  }
11476
- }
11477
- if (typeof maximum === "number") {
11993
+ } else if (typeof maximum === "number") {
11478
11994
  json2.maximum = maximum;
11479
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
11480
- if (exclusiveMaximum <= maximum)
11481
- delete json2.maximum;
11482
- else
11483
- delete json2.exclusiveMaximum;
11484
- }
11485
11995
  }
11486
11996
  if (typeof multipleOf === "number")
11487
11997
  json2.multipleOf = multipleOf;
@@ -11653,7 +12163,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11653
12163
  if (typeof maximum === "number")
11654
12164
  json2.maxItems = maximum;
11655
12165
  json2.type = "array";
11656
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
12166
+ json2.items = process2(def.element, ctx, {
12167
+ ...params,
12168
+ path: [...params.path, "items"]
12169
+ });
11657
12170
  };
11658
12171
  var objectProcessor = (schema, ctx, _json, params) => {
11659
12172
  const json2 = _json;
@@ -12140,6 +12653,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12140
12653
  int32: () => int32,
12141
12654
  int64: () => int64,
12142
12655
  intersection: () => intersection,
12656
+ invertCodec: () => invertCodec,
12143
12657
  ipv4: () => ipv42,
12144
12658
  ipv6: () => ipv62,
12145
12659
  json: () => json,
@@ -12309,8 +12823,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12309
12823
  }
12310
12824
  });
12311
12825
  };
12312
- var ZodError = $constructor("ZodError", initializer2);
12313
- var ZodRealError = $constructor("ZodError", initializer2, {
12826
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
12827
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12314
12828
  Parent: Error
12315
12829
  });
12316
12830
 
@@ -12329,6 +12843,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12329
12843
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12330
12844
 
12331
12845
  // node_modules/zod/v4/classic/schemas.js
12846
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
12847
+ function _installLazyMethods(inst, group, methods) {
12848
+ const proto = Object.getPrototypeOf(inst);
12849
+ let installed = _installedGroups.get(proto);
12850
+ if (!installed) {
12851
+ installed = /* @__PURE__ */ new Set();
12852
+ _installedGroups.set(proto, installed);
12853
+ }
12854
+ if (installed.has(group))
12855
+ return;
12856
+ installed.add(group);
12857
+ for (const key in methods) {
12858
+ const fn = methods[key];
12859
+ Object.defineProperty(proto, key, {
12860
+ configurable: true,
12861
+ enumerable: false,
12862
+ get() {
12863
+ const bound = fn.bind(this);
12864
+ Object.defineProperty(this, key, {
12865
+ configurable: true,
12866
+ writable: true,
12867
+ enumerable: true,
12868
+ value: bound
12869
+ });
12870
+ return bound;
12871
+ },
12872
+ set(v) {
12873
+ Object.defineProperty(this, key, {
12874
+ configurable: true,
12875
+ writable: true,
12876
+ enumerable: true,
12877
+ value: v
12878
+ });
12879
+ }
12880
+ });
12881
+ }
12882
+ }
12332
12883
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12333
12884
  $ZodType.init(inst, def);
12334
12885
  Object.assign(inst["~standard"], {
@@ -12341,23 +12892,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12341
12892
  inst.def = def;
12342
12893
  inst.type = def.type;
12343
12894
  Object.defineProperty(inst, "_def", { value: def });
12344
- inst.check = (...checks) => {
12345
- return inst.clone(util_exports.mergeDefs(def, {
12346
- checks: [
12347
- ...def.checks ?? [],
12348
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12349
- ]
12350
- }), {
12351
- parent: true
12352
- });
12353
- };
12354
- inst.with = inst.check;
12355
- inst.clone = (def2, params) => clone(inst, def2, params);
12356
- inst.brand = () => inst;
12357
- inst.register = ((reg, meta3) => {
12358
- reg.add(inst, meta3);
12359
- return inst;
12360
- });
12361
12895
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12362
12896
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12363
12897
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12371,45 +12905,108 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12371
12905
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12372
12906
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12373
12907
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
12374
- inst.refine = (check2, params) => inst.check(refine(check2, params));
12375
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
12376
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
12377
- inst.optional = () => optional(inst);
12378
- inst.exactOptional = () => exactOptional(inst);
12379
- inst.nullable = () => nullable(inst);
12380
- inst.nullish = () => optional(nullable(inst));
12381
- inst.nonoptional = (params) => nonoptional(inst, params);
12382
- inst.array = () => array(inst);
12383
- inst.or = (arg) => union([inst, arg]);
12384
- inst.and = (arg) => intersection(inst, arg);
12385
- inst.transform = (tx) => pipe(inst, transform(tx));
12386
- inst.default = (def2) => _default2(inst, def2);
12387
- inst.prefault = (def2) => prefault(inst, def2);
12388
- inst.catch = (params) => _catch2(inst, params);
12389
- inst.pipe = (target) => pipe(inst, target);
12390
- inst.readonly = () => readonly(inst);
12391
- inst.describe = (description) => {
12392
- const cl = inst.clone();
12393
- globalRegistry.add(cl, { description });
12394
- return cl;
12395
- };
12908
+ _installLazyMethods(inst, "ZodType", {
12909
+ check(...chks) {
12910
+ const def2 = this.def;
12911
+ return this.clone(util_exports.mergeDefs(def2, {
12912
+ checks: [
12913
+ ...def2.checks ?? [],
12914
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12915
+ ]
12916
+ }), { parent: true });
12917
+ },
12918
+ with(...chks) {
12919
+ return this.check(...chks);
12920
+ },
12921
+ clone(def2, params) {
12922
+ return clone(this, def2, params);
12923
+ },
12924
+ brand() {
12925
+ return this;
12926
+ },
12927
+ register(reg, meta3) {
12928
+ reg.add(this, meta3);
12929
+ return this;
12930
+ },
12931
+ refine(check2, params) {
12932
+ return this.check(refine(check2, params));
12933
+ },
12934
+ superRefine(refinement, params) {
12935
+ return this.check(superRefine(refinement, params));
12936
+ },
12937
+ overwrite(fn) {
12938
+ return this.check(_overwrite(fn));
12939
+ },
12940
+ optional() {
12941
+ return optional(this);
12942
+ },
12943
+ exactOptional() {
12944
+ return exactOptional(this);
12945
+ },
12946
+ nullable() {
12947
+ return nullable(this);
12948
+ },
12949
+ nullish() {
12950
+ return optional(nullable(this));
12951
+ },
12952
+ nonoptional(params) {
12953
+ return nonoptional(this, params);
12954
+ },
12955
+ array() {
12956
+ return array(this);
12957
+ },
12958
+ or(arg) {
12959
+ return union([this, arg]);
12960
+ },
12961
+ and(arg) {
12962
+ return intersection(this, arg);
12963
+ },
12964
+ transform(tx) {
12965
+ return pipe(this, transform(tx));
12966
+ },
12967
+ default(d) {
12968
+ return _default2(this, d);
12969
+ },
12970
+ prefault(d) {
12971
+ return prefault(this, d);
12972
+ },
12973
+ catch(params) {
12974
+ return _catch2(this, params);
12975
+ },
12976
+ pipe(target) {
12977
+ return pipe(this, target);
12978
+ },
12979
+ readonly() {
12980
+ return readonly(this);
12981
+ },
12982
+ describe(description) {
12983
+ const cl = this.clone();
12984
+ globalRegistry.add(cl, { description });
12985
+ return cl;
12986
+ },
12987
+ meta(...args) {
12988
+ if (args.length === 0)
12989
+ return globalRegistry.get(this);
12990
+ const cl = this.clone();
12991
+ globalRegistry.add(cl, args[0]);
12992
+ return cl;
12993
+ },
12994
+ isOptional() {
12995
+ return this.safeParse(void 0).success;
12996
+ },
12997
+ isNullable() {
12998
+ return this.safeParse(null).success;
12999
+ },
13000
+ apply(fn) {
13001
+ return fn(this);
13002
+ }
13003
+ });
12396
13004
  Object.defineProperty(inst, "description", {
12397
13005
  get() {
12398
13006
  return globalRegistry.get(inst)?.description;
12399
13007
  },
12400
13008
  configurable: true
12401
13009
  });
12402
- inst.meta = (...args) => {
12403
- if (args.length === 0) {
12404
- return globalRegistry.get(inst);
12405
- }
12406
- const cl = inst.clone();
12407
- globalRegistry.add(cl, args[0]);
12408
- return cl;
12409
- };
12410
- inst.isOptional = () => inst.safeParse(void 0).success;
12411
- inst.isNullable = () => inst.safeParse(null).success;
12412
- inst.apply = (fn) => fn(inst);
12413
13010
  return inst;
12414
13011
  });
12415
13012
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -12420,21 +13017,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12420
13017
  inst.format = bag.format ?? null;
12421
13018
  inst.minLength = bag.minimum ?? null;
12422
13019
  inst.maxLength = bag.maximum ?? null;
12423
- inst.regex = (...args) => inst.check(_regex(...args));
12424
- inst.includes = (...args) => inst.check(_includes(...args));
12425
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
12426
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
12427
- inst.min = (...args) => inst.check(_minLength(...args));
12428
- inst.max = (...args) => inst.check(_maxLength(...args));
12429
- inst.length = (...args) => inst.check(_length(...args));
12430
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
12431
- inst.lowercase = (params) => inst.check(_lowercase(params));
12432
- inst.uppercase = (params) => inst.check(_uppercase(params));
12433
- inst.trim = () => inst.check(_trim());
12434
- inst.normalize = (...args) => inst.check(_normalize(...args));
12435
- inst.toLowerCase = () => inst.check(_toLowerCase());
12436
- inst.toUpperCase = () => inst.check(_toUpperCase());
12437
- inst.slugify = () => inst.check(_slugify());
13020
+ _installLazyMethods(inst, "_ZodString", {
13021
+ regex(...args) {
13022
+ return this.check(_regex(...args));
13023
+ },
13024
+ includes(...args) {
13025
+ return this.check(_includes(...args));
13026
+ },
13027
+ startsWith(...args) {
13028
+ return this.check(_startsWith(...args));
13029
+ },
13030
+ endsWith(...args) {
13031
+ return this.check(_endsWith(...args));
13032
+ },
13033
+ min(...args) {
13034
+ return this.check(_minLength(...args));
13035
+ },
13036
+ max(...args) {
13037
+ return this.check(_maxLength(...args));
13038
+ },
13039
+ length(...args) {
13040
+ return this.check(_length(...args));
13041
+ },
13042
+ nonempty(...args) {
13043
+ return this.check(_minLength(1, ...args));
13044
+ },
13045
+ lowercase(params) {
13046
+ return this.check(_lowercase(params));
13047
+ },
13048
+ uppercase(params) {
13049
+ return this.check(_uppercase(params));
13050
+ },
13051
+ trim() {
13052
+ return this.check(_trim());
13053
+ },
13054
+ normalize(...args) {
13055
+ return this.check(_normalize(...args));
13056
+ },
13057
+ toLowerCase() {
13058
+ return this.check(_toLowerCase());
13059
+ },
13060
+ toUpperCase() {
13061
+ return this.check(_toUpperCase());
13062
+ },
13063
+ slugify() {
13064
+ return this.check(_slugify());
13065
+ }
13066
+ });
12438
13067
  });
12439
13068
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
12440
13069
  $ZodString.init(inst, def);
@@ -12513,7 +13142,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12513
13142
  }
12514
13143
  function httpUrl(params) {
12515
13144
  return _url(ZodURL, {
12516
- protocol: /^https?$/,
13145
+ protocol: regexes_exports.httpProtocol,
12517
13146
  hostname: regexes_exports.domain,
12518
13147
  ...util_exports.normalizeParams(params)
12519
13148
  });
@@ -12655,21 +13284,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12655
13284
  $ZodNumber.init(inst, def);
12656
13285
  ZodType.init(inst, def);
12657
13286
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
12658
- inst.gt = (value, params) => inst.check(_gt(value, params));
12659
- inst.gte = (value, params) => inst.check(_gte(value, params));
12660
- inst.min = (value, params) => inst.check(_gte(value, params));
12661
- inst.lt = (value, params) => inst.check(_lt(value, params));
12662
- inst.lte = (value, params) => inst.check(_lte(value, params));
12663
- inst.max = (value, params) => inst.check(_lte(value, params));
12664
- inst.int = (params) => inst.check(int(params));
12665
- inst.safe = (params) => inst.check(int(params));
12666
- inst.positive = (params) => inst.check(_gt(0, params));
12667
- inst.nonnegative = (params) => inst.check(_gte(0, params));
12668
- inst.negative = (params) => inst.check(_lt(0, params));
12669
- inst.nonpositive = (params) => inst.check(_lte(0, params));
12670
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
12671
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
12672
- inst.finite = () => inst;
13287
+ _installLazyMethods(inst, "ZodNumber", {
13288
+ gt(value, params) {
13289
+ return this.check(_gt(value, params));
13290
+ },
13291
+ gte(value, params) {
13292
+ return this.check(_gte(value, params));
13293
+ },
13294
+ min(value, params) {
13295
+ return this.check(_gte(value, params));
13296
+ },
13297
+ lt(value, params) {
13298
+ return this.check(_lt(value, params));
13299
+ },
13300
+ lte(value, params) {
13301
+ return this.check(_lte(value, params));
13302
+ },
13303
+ max(value, params) {
13304
+ return this.check(_lte(value, params));
13305
+ },
13306
+ int(params) {
13307
+ return this.check(int(params));
13308
+ },
13309
+ safe(params) {
13310
+ return this.check(int(params));
13311
+ },
13312
+ positive(params) {
13313
+ return this.check(_gt(0, params));
13314
+ },
13315
+ nonnegative(params) {
13316
+ return this.check(_gte(0, params));
13317
+ },
13318
+ negative(params) {
13319
+ return this.check(_lt(0, params));
13320
+ },
13321
+ nonpositive(params) {
13322
+ return this.check(_lte(0, params));
13323
+ },
13324
+ multipleOf(value, params) {
13325
+ return this.check(_multipleOf(value, params));
13326
+ },
13327
+ step(value, params) {
13328
+ return this.check(_multipleOf(value, params));
13329
+ },
13330
+ finite() {
13331
+ return this;
13332
+ }
13333
+ });
12673
13334
  const bag = inst._zod.bag;
12674
13335
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
12675
13336
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -12816,11 +13477,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12816
13477
  ZodType.init(inst, def);
12817
13478
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
12818
13479
  inst.element = def.element;
12819
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
12820
- inst.nonempty = (params) => inst.check(_minLength(1, params));
12821
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
12822
- inst.length = (len, params) => inst.check(_length(len, params));
12823
- inst.unwrap = () => inst.element;
13480
+ _installLazyMethods(inst, "ZodArray", {
13481
+ min(n, params) {
13482
+ return this.check(_minLength(n, params));
13483
+ },
13484
+ nonempty(params) {
13485
+ return this.check(_minLength(1, params));
13486
+ },
13487
+ max(n, params) {
13488
+ return this.check(_maxLength(n, params));
13489
+ },
13490
+ length(n, params) {
13491
+ return this.check(_length(n, params));
13492
+ },
13493
+ unwrap() {
13494
+ return this.element;
13495
+ }
13496
+ });
12824
13497
  });
12825
13498
  function array(element, params) {
12826
13499
  return _array(ZodArray, element, params);
@@ -12836,23 +13509,47 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12836
13509
  util_exports.defineLazy(inst, "shape", () => {
12837
13510
  return def.shape;
12838
13511
  });
12839
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
12840
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
12841
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
12842
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
12843
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
12844
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
12845
- inst.extend = (incoming) => {
12846
- return util_exports.extend(inst, incoming);
12847
- };
12848
- inst.safeExtend = (incoming) => {
12849
- return util_exports.safeExtend(inst, incoming);
12850
- };
12851
- inst.merge = (other) => util_exports.merge(inst, other);
12852
- inst.pick = (mask) => util_exports.pick(inst, mask);
12853
- inst.omit = (mask) => util_exports.omit(inst, mask);
12854
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
12855
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
13512
+ _installLazyMethods(inst, "ZodObject", {
13513
+ keyof() {
13514
+ return _enum2(Object.keys(this._zod.def.shape));
13515
+ },
13516
+ catchall(catchall) {
13517
+ return this.clone({ ...this._zod.def, catchall });
13518
+ },
13519
+ passthrough() {
13520
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13521
+ },
13522
+ loose() {
13523
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13524
+ },
13525
+ strict() {
13526
+ return this.clone({ ...this._zod.def, catchall: never() });
13527
+ },
13528
+ strip() {
13529
+ return this.clone({ ...this._zod.def, catchall: void 0 });
13530
+ },
13531
+ extend(incoming) {
13532
+ return util_exports.extend(this, incoming);
13533
+ },
13534
+ safeExtend(incoming) {
13535
+ return util_exports.safeExtend(this, incoming);
13536
+ },
13537
+ merge(other) {
13538
+ return util_exports.merge(this, other);
13539
+ },
13540
+ pick(mask) {
13541
+ return util_exports.pick(this, mask);
13542
+ },
13543
+ omit(mask) {
13544
+ return util_exports.omit(this, mask);
13545
+ },
13546
+ partial(...args) {
13547
+ return util_exports.partial(ZodOptional, this, args[0]);
13548
+ },
13549
+ required(...args) {
13550
+ return util_exports.required(ZodNonOptional, this, args[0]);
13551
+ }
13552
+ });
12856
13553
  });
12857
13554
  function object(shape, params) {
12858
13555
  const def = {
@@ -12957,6 +13654,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12957
13654
  inst.valueType = def.valueType;
12958
13655
  });
12959
13656
  function record(keyType, valueType, params) {
13657
+ if (!valueType || !valueType._zod) {
13658
+ return new ZodRecord({
13659
+ type: "record",
13660
+ keyType: string2(),
13661
+ valueType: keyType,
13662
+ ...util_exports.normalizeParams(valueType)
13663
+ });
13664
+ }
12960
13665
  return new ZodRecord({
12961
13666
  type: "record",
12962
13667
  keyType,
@@ -13286,6 +13991,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13286
13991
  reverseTransform: params.encode
13287
13992
  });
13288
13993
  }
13994
+ function invertCodec(codec2) {
13995
+ const def = codec2._zod.def;
13996
+ return new ZodCodec({
13997
+ type: "pipe",
13998
+ in: def.out,
13999
+ out: def.in,
14000
+ transform: def.reverseTransform,
14001
+ reverseTransform: def.transform
14002
+ });
14003
+ }
13289
14004
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13290
14005
  $ZodReadonly.init(inst, def);
13291
14006
  ZodType.init(inst, def);
@@ -13365,8 +14080,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13365
14080
  function refine(fn, _params = {}) {
13366
14081
  return _refine(ZodCustom, fn, _params);
13367
14082
  }
13368
- function superRefine(fn) {
13369
- return _superRefine(fn);
14083
+ function superRefine(fn, params) {
14084
+ return _superRefine(fn, params);
13370
14085
  }
13371
14086
  var describe2 = describe;
13372
14087
  var meta2 = meta;
@@ -13825,12 +14540,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13825
14540
  default:
13826
14541
  throw new Error(`Unsupported type: ${type}`);
13827
14542
  }
13828
- if (schema.description) {
13829
- zodSchema = zodSchema.describe(schema.description);
13830
- }
13831
- if (schema.default !== void 0) {
13832
- zodSchema = zodSchema.default(schema.default);
13833
- }
13834
14543
  return zodSchema;
13835
14544
  }
13836
14545
  function convertSchema(schema, ctx) {
@@ -13867,6 +14576,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13867
14576
  if (schema.readOnly === true) {
13868
14577
  baseSchema = z.readonly(baseSchema);
13869
14578
  }
14579
+ if (schema.default !== void 0) {
14580
+ baseSchema = baseSchema.default(schema.default);
14581
+ }
13870
14582
  const extraMeta = {};
13871
14583
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
13872
14584
  for (const key of coreMetadataKeys) {
@@ -13888,23 +14600,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13888
14600
  if (Object.keys(extraMeta).length > 0) {
13889
14601
  ctx.registry.add(baseSchema, extraMeta);
13890
14602
  }
14603
+ if (schema.description) {
14604
+ baseSchema = baseSchema.describe(schema.description);
14605
+ }
13891
14606
  return baseSchema;
13892
14607
  }
13893
14608
  function fromJSONSchema(schema, params) {
13894
14609
  if (typeof schema === "boolean") {
13895
14610
  return schema ? z.any() : z.never();
13896
14611
  }
13897
- const version2 = detectVersion(schema, params?.defaultTarget);
13898
- const defs = schema.$defs || schema.definitions || {};
14612
+ let normalized;
14613
+ try {
14614
+ normalized = JSON.parse(JSON.stringify(schema));
14615
+ } catch {
14616
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14617
+ }
14618
+ const version2 = detectVersion(normalized, params?.defaultTarget);
14619
+ const defs = normalized.$defs || normalized.definitions || {};
13899
14620
  const ctx = {
13900
14621
  version: version2,
13901
14622
  defs,
13902
14623
  refs: /* @__PURE__ */ new Map(),
13903
14624
  processing: /* @__PURE__ */ new Set(),
13904
- rootSchema: schema,
14625
+ rootSchema: normalized,
13905
14626
  registry: params?.registry ?? globalRegistry
13906
14627
  };
13907
- return convertSchema(schema, ctx);
14628
+ return convertSchema(normalized, ctx);
13908
14629
  }
13909
14630
 
13910
14631
  // node_modules/zod/v4/classic/coerce.js
@@ -13972,7 +14693,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13972
14693
  };
13973
14694
  var src_default = new PreScriptTestPlugin();
13974
14695
 
13975
- // dist/_adapter_entry_1d1db46d-84e6-46b5-abce-35f9b32ab96d.ts
14696
+ // dist/_adapter_entry_886bb3bb-a43d-4771-b243-5097261e0b5a.ts
13976
14697
  if (!globalThis.__openTabs) {
13977
14698
  globalThis.__openTabs = {};
13978
14699
  } else {
@@ -14190,5 +14911,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14190
14911
  };
14191
14912
  delete src_default.onDeactivate;
14192
14913
  }
14193
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["prescript-test"]){var a=o.adapters["prescript-test"];a.__adapterHash="c341145fc97b1754ae009b72b86f48cdf8b5944f84dbe5c1fc8730c9b6a75dc3";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"prescript-test",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
14914
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["prescript-test"]){var a=o.adapters["prescript-test"];a.__adapterHash="f0e5d32551204534d62c3c6aeac3763ecf33575e0c0eb4100aee41f72f3ee590";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"prescript-test",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
14194
14915
  //# sourceMappingURL=adapter.iife.js.map