@opentabs-dev/opentabs-plugin-prescript-test 0.0.4 → 0.0.6

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.
@@ -229,6 +229,7 @@
229
229
  ZodOptional: () => ZodOptional,
230
230
  ZodPipe: () => ZodPipe,
231
231
  ZodPrefault: () => ZodPrefault,
232
+ ZodPreprocess: () => ZodPreprocess,
232
233
  ZodPromise: () => ZodPromise,
233
234
  ZodReadonly: () => ZodReadonly,
234
235
  ZodRealError: () => ZodRealError,
@@ -307,6 +308,7 @@
307
308
  int32: () => int32,
308
309
  int64: () => int64,
309
310
  intersection: () => intersection,
311
+ invertCodec: () => invertCodec,
310
312
  ipv4: () => ipv42,
311
313
  ipv6: () => ipv62,
312
314
  iso: () => iso_exports,
@@ -488,6 +490,7 @@
488
490
  $ZodOptional: () => $ZodOptional,
489
491
  $ZodPipe: () => $ZodPipe,
490
492
  $ZodPrefault: () => $ZodPrefault,
493
+ $ZodPreprocess: () => $ZodPreprocess,
491
494
  $ZodPromise: () => $ZodPromise,
492
495
  $ZodReadonly: () => $ZodReadonly,
493
496
  $ZodRealError: () => $ZodRealError,
@@ -687,7 +690,8 @@
687
690
  });
688
691
 
689
692
  // node_modules/zod/v4/core/core.js
690
- var NEVER = Object.freeze({
693
+ var _a;
694
+ var NEVER = /* @__PURE__ */ Object.freeze({
691
695
  status: "aborted"
692
696
  });
693
697
  // @__NO_SIDE_EFFECTS__
@@ -722,10 +726,10 @@
722
726
  }
723
727
  Object.defineProperty(Definition, "name", { value: name });
724
728
  function _(def) {
725
- var _a2;
729
+ var _a3;
726
730
  const inst = params?.Parent ? new Definition() : this;
727
731
  init(inst, def);
728
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
732
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
729
733
  for (const fn of inst._zod.deferred) {
730
734
  fn();
731
735
  }
@@ -754,7 +758,8 @@
754
758
  this.name = "ZodEncodeError";
755
759
  }
756
760
  };
757
- var globalConfig = {};
761
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
762
+ var globalConfig = globalThis.__zod_globalConfig;
758
763
  function config(newConfig) {
759
764
  if (newConfig)
760
765
  Object.assign(globalConfig, newConfig);
@@ -787,6 +792,7 @@
787
792
  defineLazy: () => defineLazy,
788
793
  esc: () => esc,
789
794
  escapeRegex: () => escapeRegex,
795
+ explicitlyAborted: () => explicitlyAborted,
790
796
  extend: () => extend,
791
797
  finalizeIssue: () => finalizeIssue,
792
798
  floatSafeRemainder: () => floatSafeRemainder,
@@ -875,19 +881,12 @@
875
881
  return source.slice(start, end);
876
882
  }
877
883
  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;
884
+ const ratio = val / step;
885
+ const roundedRatio = Math.round(ratio);
886
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
887
+ if (Math.abs(ratio - roundedRatio) < tolerance)
888
+ return 0;
889
+ return ratio - roundedRatio;
891
890
  }
892
891
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
893
892
  function defineLazy(object2, key, getter) {
@@ -969,7 +968,10 @@
969
968
  function isObject(data) {
970
969
  return typeof data === "object" && data !== null && !Array.isArray(data);
971
970
  }
972
- var allowsEval = cached(() => {
971
+ var allowsEval = /* @__PURE__ */ cached(() => {
972
+ if (globalConfig.jitless) {
973
+ return false;
974
+ }
973
975
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
974
976
  return false;
975
977
  }
@@ -1002,6 +1004,10 @@
1002
1004
  return { ...o };
1003
1005
  if (Array.isArray(o))
1004
1006
  return [...o];
1007
+ if (o instanceof Map)
1008
+ return new Map(o);
1009
+ if (o instanceof Set)
1010
+ return new Set(o);
1005
1011
  return o;
1006
1012
  }
1007
1013
  function numKeys(data) {
@@ -1058,7 +1064,14 @@
1058
1064
  }
1059
1065
  };
1060
1066
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1061
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
1067
+ var primitiveTypes = /* @__PURE__ */ new Set([
1068
+ "string",
1069
+ "number",
1070
+ "bigint",
1071
+ "boolean",
1072
+ "symbol",
1073
+ "undefined"
1074
+ ]);
1062
1075
  function escapeRegex(str) {
1063
1076
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1064
1077
  }
@@ -1227,6 +1240,9 @@
1227
1240
  return clone(schema, def);
1228
1241
  }
1229
1242
  function merge(a, b) {
1243
+ if (a._zod.def.checks?.length) {
1244
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1245
+ }
1230
1246
  const def = mergeDefs(a._zod.def, {
1231
1247
  get shape() {
1232
1248
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1236,8 +1252,7 @@
1236
1252
  get catchall() {
1237
1253
  return b._zod.def.catchall;
1238
1254
  },
1239
- checks: []
1240
- // delete existing checks
1255
+ checks: b._zod.def.checks ?? []
1241
1256
  });
1242
1257
  return clone(a, def);
1243
1258
  }
@@ -1320,10 +1335,20 @@
1320
1335
  }
1321
1336
  return false;
1322
1337
  }
1338
+ function explicitlyAborted(x, startIndex = 0) {
1339
+ if (x.aborted === true)
1340
+ return true;
1341
+ for (let i = startIndex; i < x.issues.length; i++) {
1342
+ if (x.issues[i]?.continue === false) {
1343
+ return true;
1344
+ }
1345
+ }
1346
+ return false;
1347
+ }
1323
1348
  function prefixIssues(path, issues) {
1324
1349
  return issues.map((iss) => {
1325
- var _a2;
1326
- (_a2 = iss).path ?? (_a2.path = []);
1350
+ var _a3;
1351
+ (_a3 = iss).path ?? (_a3.path = []);
1327
1352
  iss.path.unshift(path);
1328
1353
  return iss;
1329
1354
  });
@@ -1332,17 +1357,14 @@
1332
1357
  return typeof message === "string" ? message : message?.message;
1333
1358
  }
1334
1359
  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;
1360
+ 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";
1361
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
1362
+ rest.path ?? (rest.path = []);
1363
+ rest.message = message;
1364
+ if (ctx?.reportInput) {
1365
+ rest.input = _input;
1339
1366
  }
1340
- delete full.inst;
1341
- delete full.continue;
1342
- if (!ctx?.reportInput) {
1343
- delete full.input;
1344
- }
1345
- return full;
1367
+ return rest;
1346
1368
  }
1347
1369
  function getSizableOrigin(input) {
1348
1370
  if (input instanceof Set)
@@ -1459,10 +1481,10 @@
1459
1481
  };
1460
1482
  var $ZodError = $constructor("$ZodError", initializer);
1461
1483
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1462
- function flattenError(error48, mapper = (issue2) => issue2.message) {
1484
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
1463
1485
  const fieldErrors = {};
1464
1486
  const formErrors = [];
1465
- for (const sub of error48.issues) {
1487
+ for (const sub of error51.issues) {
1466
1488
  if (sub.path.length > 0) {
1467
1489
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1468
1490
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1472,50 +1494,53 @@
1472
1494
  }
1473
1495
  return { formErrors, fieldErrors };
1474
1496
  }
1475
- function formatError(error48, mapper = (issue2) => issue2.message) {
1497
+ function formatError(error51, mapper = (issue2) => issue2.message) {
1476
1498
  const fieldErrors = { _errors: [] };
1477
- const processError = (error49) => {
1478
- for (const issue2 of error49.issues) {
1499
+ const processError = (error52, path = []) => {
1500
+ for (const issue2 of error52.issues) {
1479
1501
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1480
- issue2.errors.map((issues) => processError({ issues }));
1502
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1481
1503
  } else if (issue2.code === "invalid_key") {
1482
- processError({ issues: issue2.issues });
1504
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1483
1505
  } else if (issue2.code === "invalid_element") {
1484
- processError({ issues: issue2.issues });
1485
- } else if (issue2.path.length === 0) {
1486
- fieldErrors._errors.push(mapper(issue2));
1506
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1487
1507
  } 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));
1508
+ const fullpath = [...path, ...issue2.path];
1509
+ if (fullpath.length === 0) {
1510
+ fieldErrors._errors.push(mapper(issue2));
1511
+ } else {
1512
+ let curr = fieldErrors;
1513
+ let i = 0;
1514
+ while (i < fullpath.length) {
1515
+ const el = fullpath[i];
1516
+ const terminal = i === fullpath.length - 1;
1517
+ if (!terminal) {
1518
+ curr[el] = curr[el] || { _errors: [] };
1519
+ } else {
1520
+ curr[el] = curr[el] || { _errors: [] };
1521
+ curr[el]._errors.push(mapper(issue2));
1522
+ }
1523
+ curr = curr[el];
1524
+ i++;
1498
1525
  }
1499
- curr = curr[el];
1500
- i++;
1501
1526
  }
1502
1527
  }
1503
1528
  }
1504
1529
  };
1505
- processError(error48);
1530
+ processError(error51);
1506
1531
  return fieldErrors;
1507
1532
  }
1508
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
1533
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
1509
1534
  const result = { errors: [] };
1510
- const processError = (error49, path = []) => {
1511
- var _a2, _b;
1512
- for (const issue2 of error49.issues) {
1535
+ const processError = (error52, path = []) => {
1536
+ var _a3, _b;
1537
+ for (const issue2 of error52.issues) {
1513
1538
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1514
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
1539
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1515
1540
  } else if (issue2.code === "invalid_key") {
1516
- processError({ issues: issue2.issues }, issue2.path);
1541
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1517
1542
  } else if (issue2.code === "invalid_element") {
1518
- processError({ issues: issue2.issues }, issue2.path);
1543
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1519
1544
  } else {
1520
1545
  const fullpath = [...path, ...issue2.path];
1521
1546
  if (fullpath.length === 0) {
@@ -1529,7 +1554,7 @@
1529
1554
  const terminal = i === fullpath.length - 1;
1530
1555
  if (typeof el === "string") {
1531
1556
  curr.properties ?? (curr.properties = {});
1532
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1557
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1533
1558
  curr = curr.properties[el];
1534
1559
  } else {
1535
1560
  curr.items ?? (curr.items = []);
@@ -1544,7 +1569,7 @@
1544
1569
  }
1545
1570
  }
1546
1571
  };
1547
- processError(error48);
1572
+ processError(error51);
1548
1573
  return result;
1549
1574
  }
1550
1575
  function toDotPath(_path) {
@@ -1565,9 +1590,9 @@
1565
1590
  }
1566
1591
  return segs.join("");
1567
1592
  }
1568
- function prettifyError(error48) {
1593
+ function prettifyError(error51) {
1569
1594
  const lines = [];
1570
- const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1595
+ const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1571
1596
  for (const issue2 of issues) {
1572
1597
  lines.push(`\u2716 ${issue2.message}`);
1573
1598
  if (issue2.path?.length)
@@ -1578,7 +1603,7 @@
1578
1603
 
1579
1604
  // node_modules/zod/v4/core/parse.js
1580
1605
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1581
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1606
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1582
1607
  const result = schema._zod.run({ value, issues: [] }, ctx);
1583
1608
  if (result instanceof Promise) {
1584
1609
  throw new $ZodAsyncError();
@@ -1592,7 +1617,7 @@
1592
1617
  };
1593
1618
  var parse = /* @__PURE__ */ _parse($ZodRealError);
1594
1619
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1595
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1620
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1596
1621
  let result = schema._zod.run({ value, issues: [] }, ctx);
1597
1622
  if (result instanceof Promise)
1598
1623
  result = await result;
@@ -1617,7 +1642,7 @@
1617
1642
  };
1618
1643
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1619
1644
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1620
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1645
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1621
1646
  let result = schema._zod.run({ value, issues: [] }, ctx);
1622
1647
  if (result instanceof Promise)
1623
1648
  result = await result;
@@ -1628,7 +1653,7 @@
1628
1653
  };
1629
1654
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1630
1655
  var _encode = (_Err) => (schema, value, _ctx) => {
1631
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1656
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1632
1657
  return _parse(_Err)(schema, value, ctx);
1633
1658
  };
1634
1659
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -1637,7 +1662,7 @@
1637
1662
  };
1638
1663
  var decode = /* @__PURE__ */ _decode($ZodRealError);
1639
1664
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1640
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1665
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1641
1666
  return _parseAsync(_Err)(schema, value, ctx);
1642
1667
  };
1643
1668
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -1646,7 +1671,7 @@
1646
1671
  };
1647
1672
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
1648
1673
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
1649
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1674
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1650
1675
  return _safeParse(_Err)(schema, value, ctx);
1651
1676
  };
1652
1677
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -1655,7 +1680,7 @@
1655
1680
  };
1656
1681
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
1657
1682
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1658
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1683
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1659
1684
  return _safeParseAsync(_Err)(schema, value, ctx);
1660
1685
  };
1661
1686
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -1688,6 +1713,7 @@
1688
1713
  hex: () => hex,
1689
1714
  hostname: () => hostname,
1690
1715
  html5Email: () => html5Email,
1716
+ httpProtocol: () => httpProtocol,
1691
1717
  idnEmail: () => idnEmail,
1692
1718
  integer: () => integer,
1693
1719
  ipv4: () => ipv4,
@@ -1726,7 +1752,7 @@
1726
1752
  uuid7: () => uuid7,
1727
1753
  xid: () => xid
1728
1754
  });
1729
- var cuid = /^[cC][^\s-]{8,}$/;
1755
+ var cuid = /^[cC][0-9a-z]{6,}$/;
1730
1756
  var cuid2 = /^[0-9a-z]+$/;
1731
1757
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1732
1758
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -1765,6 +1791,7 @@
1765
1791
  var base64url = /^[A-Za-z0-9_-]*$/;
1766
1792
  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
1793
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1794
+ var httpProtocol = /^https?$/;
1768
1795
  var e164 = /^\+[1-9]\d{6,14}$/;
1769
1796
  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
1797
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1823,10 +1850,10 @@
1823
1850
 
1824
1851
  // node_modules/zod/v4/core/checks.js
1825
1852
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1826
- var _a2;
1853
+ var _a3;
1827
1854
  inst._zod ?? (inst._zod = {});
1828
1855
  inst._zod.def = def;
1829
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1856
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1830
1857
  });
1831
1858
  var numericOriginMap = {
1832
1859
  number: "number",
@@ -1892,8 +1919,8 @@
1892
1919
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1893
1920
  $ZodCheck.init(inst, def);
1894
1921
  inst._zod.onattach.push((inst2) => {
1895
- var _a2;
1896
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
1922
+ var _a3;
1923
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
1897
1924
  });
1898
1925
  inst._zod.check = (payload) => {
1899
1926
  if (typeof payload.value !== typeof def.value)
@@ -2026,9 +2053,9 @@
2026
2053
  };
2027
2054
  });
2028
2055
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2029
- var _a2;
2056
+ var _a3;
2030
2057
  $ZodCheck.init(inst, def);
2031
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2058
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2032
2059
  const val = payload.value;
2033
2060
  return !nullish(val) && val.size !== void 0;
2034
2061
  });
@@ -2054,9 +2081,9 @@
2054
2081
  };
2055
2082
  });
2056
2083
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2057
- var _a2;
2084
+ var _a3;
2058
2085
  $ZodCheck.init(inst, def);
2059
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2086
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2060
2087
  const val = payload.value;
2061
2088
  return !nullish(val) && val.size !== void 0;
2062
2089
  });
@@ -2082,9 +2109,9 @@
2082
2109
  };
2083
2110
  });
2084
2111
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2085
- var _a2;
2112
+ var _a3;
2086
2113
  $ZodCheck.init(inst, def);
2087
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2114
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2088
2115
  const val = payload.value;
2089
2116
  return !nullish(val) && val.size !== void 0;
2090
2117
  });
@@ -2112,9 +2139,9 @@
2112
2139
  };
2113
2140
  });
2114
2141
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2115
- var _a2;
2142
+ var _a3;
2116
2143
  $ZodCheck.init(inst, def);
2117
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2144
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2118
2145
  const val = payload.value;
2119
2146
  return !nullish(val) && val.length !== void 0;
2120
2147
  });
@@ -2141,9 +2168,9 @@
2141
2168
  };
2142
2169
  });
2143
2170
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2144
- var _a2;
2171
+ var _a3;
2145
2172
  $ZodCheck.init(inst, def);
2146
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2173
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2147
2174
  const val = payload.value;
2148
2175
  return !nullish(val) && val.length !== void 0;
2149
2176
  });
@@ -2170,9 +2197,9 @@
2170
2197
  };
2171
2198
  });
2172
2199
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2173
- var _a2;
2200
+ var _a3;
2174
2201
  $ZodCheck.init(inst, def);
2175
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2202
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2176
2203
  const val = payload.value;
2177
2204
  return !nullish(val) && val.length !== void 0;
2178
2205
  });
@@ -2201,7 +2228,7 @@
2201
2228
  };
2202
2229
  });
2203
2230
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2204
- var _a2, _b;
2231
+ var _a3, _b;
2205
2232
  $ZodCheck.init(inst, def);
2206
2233
  inst._zod.onattach.push((inst2) => {
2207
2234
  const bag = inst2._zod.bag;
@@ -2212,7 +2239,7 @@
2212
2239
  }
2213
2240
  });
2214
2241
  if (def.pattern)
2215
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2242
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2216
2243
  def.pattern.lastIndex = 0;
2217
2244
  if (def.pattern.test(payload.value))
2218
2245
  return;
@@ -2408,13 +2435,13 @@
2408
2435
  // node_modules/zod/v4/core/versions.js
2409
2436
  var version = {
2410
2437
  major: 4,
2411
- minor: 3,
2412
- patch: 6
2438
+ minor: 4,
2439
+ patch: 3
2413
2440
  };
2414
2441
 
2415
2442
  // node_modules/zod/v4/core/schemas.js
2416
2443
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2417
- var _a2;
2444
+ var _a3;
2418
2445
  inst ?? (inst = {});
2419
2446
  inst._zod.def = def;
2420
2447
  inst._zod.bag = inst._zod.bag || {};
@@ -2429,7 +2456,7 @@
2429
2456
  }
2430
2457
  }
2431
2458
  if (checks.length === 0) {
2432
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2459
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2433
2460
  inst._zod.deferred?.push(() => {
2434
2461
  inst._zod.run = inst._zod.parse;
2435
2462
  });
@@ -2439,6 +2466,8 @@
2439
2466
  let asyncResult;
2440
2467
  for (const ch of checks2) {
2441
2468
  if (ch._zod.def.when) {
2469
+ if (explicitlyAborted(payload))
2470
+ continue;
2442
2471
  const shouldRun = ch._zod.def.when(payload);
2443
2472
  if (!shouldRun)
2444
2473
  continue;
@@ -2579,6 +2608,19 @@
2579
2608
  inst._zod.check = (payload) => {
2580
2609
  try {
2581
2610
  const trimmed = payload.value.trim();
2611
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
2612
+ if (!/^https?:\/\//i.test(trimmed)) {
2613
+ payload.issues.push({
2614
+ code: "invalid_format",
2615
+ format: "url",
2616
+ note: "Invalid URL format",
2617
+ input: payload.value,
2618
+ inst,
2619
+ continue: !def.abort
2620
+ });
2621
+ return;
2622
+ }
2623
+ }
2582
2624
  const url2 = new URL(trimmed);
2583
2625
  if (def.hostname) {
2584
2626
  def.hostname.lastIndex = 0;
@@ -2732,6 +2774,8 @@
2732
2774
  function isValidBase64(data) {
2733
2775
  if (data === "")
2734
2776
  return true;
2777
+ if (/\s/.test(data))
2778
+ return false;
2735
2779
  if (data.length % 4 !== 0)
2736
2780
  return false;
2737
2781
  try {
@@ -2924,8 +2968,6 @@
2924
2968
  $ZodType.init(inst, def);
2925
2969
  inst._zod.pattern = _undefined;
2926
2970
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
2927
- inst._zod.optin = "optional";
2928
- inst._zod.optout = "optional";
2929
2971
  inst._zod.parse = (payload, _ctx) => {
2930
2972
  const input = payload.value;
2931
2973
  if (typeof input === "undefined")
@@ -3054,15 +3096,27 @@
3054
3096
  return payload;
3055
3097
  };
3056
3098
  });
3057
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3099
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3100
+ const isPresent = key in input;
3058
3101
  if (result.issues.length) {
3059
- if (isOptionalOut && !(key in input)) {
3102
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3060
3103
  return;
3061
3104
  }
3062
3105
  final.issues.push(...prefixIssues(key, result.issues));
3063
3106
  }
3107
+ if (!isPresent && !isOptionalIn) {
3108
+ if (!result.issues.length) {
3109
+ final.issues.push({
3110
+ code: "invalid_type",
3111
+ expected: "nonoptional",
3112
+ input: void 0,
3113
+ path: [key]
3114
+ });
3115
+ }
3116
+ return;
3117
+ }
3064
3118
  if (result.value === void 0) {
3065
- if (key in input) {
3119
+ if (isPresent) {
3066
3120
  final.value[key] = void 0;
3067
3121
  }
3068
3122
  } else {
@@ -3090,8 +3144,11 @@
3090
3144
  const keySet = def.keySet;
3091
3145
  const _catchall = def.catchall._zod;
3092
3146
  const t = _catchall.def.type;
3147
+ const isOptionalIn = _catchall.optin === "optional";
3093
3148
  const isOptionalOut = _catchall.optout === "optional";
3094
3149
  for (const key in input) {
3150
+ if (key === "__proto__")
3151
+ continue;
3095
3152
  if (keySet.has(key))
3096
3153
  continue;
3097
3154
  if (t === "never") {
@@ -3100,9 +3157,9 @@
3100
3157
  }
3101
3158
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3102
3159
  if (r instanceof Promise) {
3103
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3160
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3104
3161
  } else {
3105
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3162
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3106
3163
  }
3107
3164
  }
3108
3165
  if (unrecognized.length) {
@@ -3168,12 +3225,13 @@
3168
3225
  const shape = value.shape;
3169
3226
  for (const key of value.keys) {
3170
3227
  const el = shape[key];
3228
+ const isOptionalIn = el._zod.optin === "optional";
3171
3229
  const isOptionalOut = el._zod.optout === "optional";
3172
3230
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3173
3231
  if (r instanceof Promise) {
3174
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3232
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3175
3233
  } else {
3176
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3234
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3177
3235
  }
3178
3236
  }
3179
3237
  if (!catchall) {
@@ -3204,9 +3262,10 @@
3204
3262
  const id = ids[key];
3205
3263
  const k = esc(key);
3206
3264
  const schema = shape[key];
3265
+ const isOptionalIn = schema?._zod?.optin === "optional";
3207
3266
  const isOptionalOut = schema?._zod?.optout === "optional";
3208
3267
  doc.write(`const ${id} = ${parseStr(key)};`);
3209
- if (isOptionalOut) {
3268
+ if (isOptionalIn && isOptionalOut) {
3210
3269
  doc.write(`
3211
3270
  if (${id}.issues.length) {
3212
3271
  if (${k} in input) {
@@ -3225,6 +3284,33 @@
3225
3284
  newResult[${k}] = ${id}.value;
3226
3285
  }
3227
3286
 
3287
+ `);
3288
+ } else if (!isOptionalIn) {
3289
+ doc.write(`
3290
+ const ${id}_present = ${k} in input;
3291
+ if (${id}.issues.length) {
3292
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
3293
+ ...iss,
3294
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
3295
+ })));
3296
+ }
3297
+ if (!${id}_present && !${id}.issues.length) {
3298
+ payload.issues.push({
3299
+ code: "invalid_type",
3300
+ expected: "nonoptional",
3301
+ input: undefined,
3302
+ path: [${k}]
3303
+ });
3304
+ }
3305
+
3306
+ if (${id}_present) {
3307
+ if (${id}.value === undefined) {
3308
+ newResult[${k}] = undefined;
3309
+ } else {
3310
+ newResult[${k}] = ${id}.value;
3311
+ }
3312
+ }
3313
+
3228
3314
  `);
3229
3315
  } else {
3230
3316
  doc.write(`
@@ -3318,10 +3404,9 @@
3318
3404
  }
3319
3405
  return void 0;
3320
3406
  });
3321
- const single = def.options.length === 1;
3322
- const first = def.options[0]._zod.run;
3407
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3323
3408
  inst._zod.parse = (payload, ctx) => {
3324
- if (single) {
3409
+ if (first) {
3325
3410
  return first(payload, ctx);
3326
3411
  }
3327
3412
  let async = false;
@@ -3374,10 +3459,9 @@
3374
3459
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3375
3460
  $ZodUnion.init(inst, def);
3376
3461
  def.inclusive = false;
3377
- const single = def.options.length === 1;
3378
- const first = def.options[0]._zod.run;
3462
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3379
3463
  inst._zod.parse = (payload, ctx) => {
3380
- if (single) {
3464
+ if (first) {
3381
3465
  return first(payload, ctx);
3382
3466
  }
3383
3467
  let async = false;
@@ -3452,7 +3536,7 @@
3452
3536
  if (opt) {
3453
3537
  return opt._zod.run(payload, ctx);
3454
3538
  }
3455
- if (def.unionFallback) {
3539
+ if (def.unionFallback || ctx.direction === "backward") {
3456
3540
  return _super(payload, ctx);
3457
3541
  }
3458
3542
  payload.issues.push({
@@ -3460,6 +3544,7 @@
3460
3544
  errors: [],
3461
3545
  note: "No matching discriminator",
3462
3546
  discriminator: def.discriminator,
3547
+ options: Array.from(disc.value.keys()),
3463
3548
  input,
3464
3549
  path: [def.discriminator],
3465
3550
  inst
@@ -3581,64 +3666,96 @@
3581
3666
  }
3582
3667
  payload.value = [];
3583
3668
  const proms = [];
3584
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
3585
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
3669
+ const optinStart = getTupleOptStart(items, "optin");
3670
+ const optoutStart = getTupleOptStart(items, "optout");
3586
3671
  if (!def.rest) {
3587
- const tooBig = input.length > items.length;
3588
- const tooSmall = input.length < optStart - 1;
3589
- if (tooBig || tooSmall) {
3672
+ if (input.length < optinStart) {
3590
3673
  payload.issues.push({
3591
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
3674
+ code: "too_small",
3675
+ minimum: optinStart,
3676
+ inclusive: true,
3592
3677
  input,
3593
3678
  inst,
3594
3679
  origin: "array"
3595
3680
  });
3596
3681
  return payload;
3597
3682
  }
3598
- }
3599
- let i = -1;
3600
- for (const item of items) {
3601
- i++;
3602
- if (i >= input.length) {
3603
- if (i >= optStart)
3604
- continue;
3683
+ if (input.length > items.length) {
3684
+ payload.issues.push({
3685
+ code: "too_big",
3686
+ maximum: items.length,
3687
+ inclusive: true,
3688
+ input,
3689
+ inst,
3690
+ origin: "array"
3691
+ });
3605
3692
  }
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)));
3693
+ }
3694
+ const itemResults = new Array(items.length);
3695
+ for (let i = 0; i < items.length; i++) {
3696
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
3697
+ if (r instanceof Promise) {
3698
+ proms.push(r.then((rr) => {
3699
+ itemResults[i] = rr;
3700
+ }));
3612
3701
  } else {
3613
- handleTupleResult(result, payload, i);
3702
+ itemResults[i] = r;
3614
3703
  }
3615
3704
  }
3616
3705
  if (def.rest) {
3706
+ let i = items.length - 1;
3617
3707
  const rest = input.slice(items.length);
3618
3708
  for (const el of rest) {
3619
3709
  i++;
3620
- const result = def.rest._zod.run({
3621
- value: el,
3622
- issues: []
3623
- }, ctx);
3710
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
3624
3711
  if (result instanceof Promise) {
3625
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3712
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
3626
3713
  } else {
3627
3714
  handleTupleResult(result, payload, i);
3628
3715
  }
3629
3716
  }
3630
3717
  }
3631
- if (proms.length)
3632
- return Promise.all(proms).then(() => payload);
3633
- return payload;
3718
+ if (proms.length) {
3719
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
3720
+ }
3721
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
3634
3722
  };
3635
3723
  });
3724
+ function getTupleOptStart(items, key) {
3725
+ for (let i = items.length - 1; i >= 0; i--) {
3726
+ if (items[i]._zod[key] !== "optional")
3727
+ return i + 1;
3728
+ }
3729
+ return 0;
3730
+ }
3636
3731
  function handleTupleResult(result, final, index) {
3637
3732
  if (result.issues.length) {
3638
3733
  final.issues.push(...prefixIssues(index, result.issues));
3639
3734
  }
3640
3735
  final.value[index] = result.value;
3641
3736
  }
3737
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
3738
+ for (let i = 0; i < items.length; i++) {
3739
+ const r = itemResults[i];
3740
+ const isPresent = i < input.length;
3741
+ if (r.issues.length) {
3742
+ if (!isPresent && i >= optoutStart) {
3743
+ final.value.length = i;
3744
+ break;
3745
+ }
3746
+ final.issues.push(...prefixIssues(i, r.issues));
3747
+ }
3748
+ final.value[i] = r.value;
3749
+ }
3750
+ for (let i = final.value.length - 1; i >= input.length; i--) {
3751
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
3752
+ final.value.length = i;
3753
+ } else {
3754
+ break;
3755
+ }
3756
+ }
3757
+ return final;
3758
+ }
3642
3759
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3643
3760
  $ZodType.init(inst, def);
3644
3761
  inst._zod.parse = (payload, ctx) => {
@@ -3660,19 +3777,35 @@
3660
3777
  for (const key of values) {
3661
3778
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3662
3779
  recordKeys.add(typeof key === "number" ? key.toString() : key);
3780
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3781
+ if (keyResult instanceof Promise) {
3782
+ throw new Error("Async schemas not supported in object keys currently");
3783
+ }
3784
+ if (keyResult.issues.length) {
3785
+ payload.issues.push({
3786
+ code: "invalid_key",
3787
+ origin: "record",
3788
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3789
+ input: key,
3790
+ path: [key],
3791
+ inst
3792
+ });
3793
+ continue;
3794
+ }
3795
+ const outKey = keyResult.value;
3663
3796
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3664
3797
  if (result instanceof Promise) {
3665
3798
  proms.push(result.then((result2) => {
3666
3799
  if (result2.issues.length) {
3667
3800
  payload.issues.push(...prefixIssues(key, result2.issues));
3668
3801
  }
3669
- payload.value[key] = result2.value;
3802
+ payload.value[outKey] = result2.value;
3670
3803
  }));
3671
3804
  } else {
3672
3805
  if (result.issues.length) {
3673
3806
  payload.issues.push(...prefixIssues(key, result.issues));
3674
3807
  }
3675
- payload.value[key] = result.value;
3808
+ payload.value[outKey] = result.value;
3676
3809
  }
3677
3810
  }
3678
3811
  }
@@ -3696,6 +3829,8 @@
3696
3829
  for (const key of Reflect.ownKeys(input)) {
3697
3830
  if (key === "__proto__")
3698
3831
  continue;
3832
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
3833
+ continue;
3699
3834
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3700
3835
  if (keyResult instanceof Promise) {
3701
3836
  throw new Error("Async schemas not supported in object keys currently");
@@ -3900,6 +4035,7 @@
3900
4035
  });
3901
4036
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
3902
4037
  $ZodType.init(inst, def);
4038
+ inst._zod.optin = "optional";
3903
4039
  inst._zod.parse = (payload, ctx) => {
3904
4040
  if (ctx.direction === "backward") {
3905
4041
  throw new $ZodEncodeError(inst.constructor.name);
@@ -3909,6 +4045,7 @@
3909
4045
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
3910
4046
  return output.then((output2) => {
3911
4047
  payload.value = output2;
4048
+ payload.fallback = true;
3912
4049
  return payload;
3913
4050
  });
3914
4051
  }
@@ -3916,11 +4053,12 @@
3916
4053
  throw new $ZodAsyncError();
3917
4054
  }
3918
4055
  payload.value = _out;
4056
+ payload.fallback = true;
3919
4057
  return payload;
3920
4058
  };
3921
4059
  });
3922
4060
  function handleOptionalResult(result, input) {
3923
- if (result.issues.length && input === void 0) {
4061
+ if (input === void 0 && (result.issues.length || result.fallback)) {
3924
4062
  return { issues: [], value: void 0 };
3925
4063
  }
3926
4064
  return result;
@@ -3938,10 +4076,11 @@
3938
4076
  });
3939
4077
  inst._zod.parse = (payload, ctx) => {
3940
4078
  if (def.innerType._zod.optin === "optional") {
4079
+ const input = payload.value;
3941
4080
  const result = def.innerType._zod.run(payload, ctx);
3942
4081
  if (result instanceof Promise)
3943
- return result.then((r) => handleOptionalResult(r, payload.value));
3944
- return handleOptionalResult(result, payload.value);
4082
+ return result.then((r) => handleOptionalResult(r, input));
4083
+ return handleOptionalResult(result, input);
3945
4084
  }
3946
4085
  if (payload.value === void 0) {
3947
4086
  return payload;
@@ -4057,7 +4196,7 @@
4057
4196
  });
4058
4197
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4059
4198
  $ZodType.init(inst, def);
4060
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4199
+ inst._zod.optin = "optional";
4061
4200
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4062
4201
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4063
4202
  inst._zod.parse = (payload, ctx) => {
@@ -4077,6 +4216,7 @@
4077
4216
  input: payload.value
4078
4217
  });
4079
4218
  payload.issues = [];
4219
+ payload.fallback = true;
4080
4220
  }
4081
4221
  return payload;
4082
4222
  });
@@ -4091,6 +4231,7 @@
4091
4231
  input: payload.value
4092
4232
  });
4093
4233
  payload.issues = [];
4234
+ payload.fallback = true;
4094
4235
  }
4095
4236
  return payload;
4096
4237
  };
@@ -4136,7 +4277,7 @@
4136
4277
  left.aborted = true;
4137
4278
  return left;
4138
4279
  }
4139
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
4280
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
4140
4281
  }
4141
4282
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
4142
4283
  $ZodType.init(inst, def);
@@ -4188,6 +4329,9 @@
4188
4329
  }
4189
4330
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
4190
4331
  }
4332
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
4333
+ $ZodPipe.init(inst, def);
4334
+ });
4191
4335
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4192
4336
  $ZodType.init(inst, def);
4193
4337
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -4339,7 +4483,12 @@
4339
4483
  });
4340
4484
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4341
4485
  $ZodType.init(inst, def);
4342
- defineLazy(inst._zod, "innerType", () => def.getter());
4486
+ defineLazy(inst._zod, "innerType", () => {
4487
+ const d = def;
4488
+ if (!d._cachedInner)
4489
+ d._cachedInner = def.getter();
4490
+ return d._cachedInner;
4491
+ });
4343
4492
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4344
4493
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4345
4494
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4394,6 +4543,7 @@
4394
4543
  cs: () => cs_default,
4395
4544
  da: () => da_default,
4396
4545
  de: () => de_default,
4546
+ el: () => el_default,
4397
4547
  en: () => en_default,
4398
4548
  eo: () => eo_default,
4399
4549
  es: () => es_default,
@@ -4402,6 +4552,7 @@
4402
4552
  fr: () => fr_default,
4403
4553
  frCA: () => fr_CA_default,
4404
4554
  he: () => he_default,
4555
+ hr: () => hr_default,
4405
4556
  hu: () => hu_default,
4406
4557
  hy: () => hy_default,
4407
4558
  id: () => id_default,
@@ -4421,6 +4572,7 @@
4421
4572
  pl: () => pl_default,
4422
4573
  ps: () => ps_default,
4423
4574
  pt: () => pt_default,
4575
+ ro: () => ro_default,
4424
4576
  ru: () => ru_default,
4425
4577
  sl: () => sl_default,
4426
4578
  sv: () => sv_default,
@@ -5374,8 +5526,118 @@
5374
5526
  };
5375
5527
  }
5376
5528
 
5377
- // node_modules/zod/v4/locales/en.js
5529
+ // node_modules/zod/v4/locales/el.js
5378
5530
  var error9 = () => {
5531
+ const Sizable = {
5532
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5533
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5534
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5535
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5536
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
5537
+ };
5538
+ function getSizing(origin) {
5539
+ return Sizable[origin] ?? null;
5540
+ }
5541
+ const FormatDictionary = {
5542
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
5543
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
5544
+ url: "URL",
5545
+ emoji: "emoji",
5546
+ uuid: "UUID",
5547
+ uuidv4: "UUIDv4",
5548
+ uuidv6: "UUIDv6",
5549
+ nanoid: "nanoid",
5550
+ guid: "GUID",
5551
+ cuid: "cuid",
5552
+ cuid2: "cuid2",
5553
+ ulid: "ULID",
5554
+ xid: "XID",
5555
+ ksuid: "KSUID",
5556
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
5557
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
5558
+ time: "ISO \u03CE\u03C1\u03B1",
5559
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
5560
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
5561
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
5562
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
5563
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
5564
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
5565
+ 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",
5566
+ 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",
5567
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
5568
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
5569
+ jwt: "JWT",
5570
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
5571
+ };
5572
+ const TypeDictionary = {
5573
+ nan: "NaN"
5574
+ };
5575
+ return (issue2) => {
5576
+ switch (issue2.code) {
5577
+ case "invalid_type": {
5578
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5579
+ const receivedType = parsedType(issue2.input);
5580
+ const received = TypeDictionary[receivedType] ?? receivedType;
5581
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
5582
+ 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}`;
5583
+ }
5584
+ 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}`;
5585
+ }
5586
+ case "invalid_value":
5587
+ if (issue2.values.length === 1)
5588
+ 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])}`;
5589
+ 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, "|")}`;
5590
+ case "too_big": {
5591
+ const adj = issue2.inclusive ? "<=" : "<";
5592
+ const sizing = getSizing(issue2.origin);
5593
+ if (sizing)
5594
+ 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"}`;
5595
+ 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()}`;
5596
+ }
5597
+ case "too_small": {
5598
+ const adj = issue2.inclusive ? ">=" : ">";
5599
+ const sizing = getSizing(issue2.origin);
5600
+ if (sizing) {
5601
+ 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}`;
5602
+ }
5603
+ 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()}`;
5604
+ }
5605
+ case "invalid_format": {
5606
+ const _issue = issue2;
5607
+ if (_issue.format === "starts_with") {
5608
+ 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}"`;
5609
+ }
5610
+ if (_issue.format === "ends_with")
5611
+ 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}"`;
5612
+ if (_issue.format === "includes")
5613
+ 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}"`;
5614
+ if (_issue.format === "regex")
5615
+ 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}`;
5616
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
5617
+ }
5618
+ case "not_multiple_of":
5619
+ 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}`;
5620
+ case "unrecognized_keys":
5621
+ 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, ", ")}`;
5622
+ case "invalid_key":
5623
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
5624
+ case "invalid_union":
5625
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
5626
+ case "invalid_element":
5627
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
5628
+ default:
5629
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
5630
+ }
5631
+ };
5632
+ };
5633
+ function el_default() {
5634
+ return {
5635
+ localeError: error9()
5636
+ };
5637
+ }
5638
+
5639
+ // node_modules/zod/v4/locales/en.js
5640
+ var error10 = () => {
5379
5641
  const Sizable = {
5380
5642
  string: { unit: "characters", verb: "to have" },
5381
5643
  file: { unit: "bytes", verb: "to have" },
@@ -5469,6 +5731,10 @@
5469
5731
  case "invalid_key":
5470
5732
  return `Invalid key in ${issue2.origin}`;
5471
5733
  case "invalid_union":
5734
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
5735
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
5736
+ return `Invalid discriminator value. Expected ${opts}`;
5737
+ }
5472
5738
  return "Invalid input";
5473
5739
  case "invalid_element":
5474
5740
  return `Invalid value in ${issue2.origin}`;
@@ -5479,12 +5745,12 @@
5479
5745
  };
5480
5746
  function en_default() {
5481
5747
  return {
5482
- localeError: error9()
5748
+ localeError: error10()
5483
5749
  };
5484
5750
  }
5485
5751
 
5486
5752
  // node_modules/zod/v4/locales/eo.js
5487
- var error10 = () => {
5753
+ var error11 = () => {
5488
5754
  const Sizable = {
5489
5755
  string: { unit: "karaktrojn", verb: "havi" },
5490
5756
  file: { unit: "bajtojn", verb: "havi" },
@@ -5589,12 +5855,12 @@
5589
5855
  };
5590
5856
  function eo_default() {
5591
5857
  return {
5592
- localeError: error10()
5858
+ localeError: error11()
5593
5859
  };
5594
5860
  }
5595
5861
 
5596
5862
  // node_modules/zod/v4/locales/es.js
5597
- var error11 = () => {
5863
+ var error12 = () => {
5598
5864
  const Sizable = {
5599
5865
  string: { unit: "caracteres", verb: "tener" },
5600
5866
  file: { unit: "bytes", verb: "tener" },
@@ -5722,12 +5988,12 @@
5722
5988
  };
5723
5989
  function es_default() {
5724
5990
  return {
5725
- localeError: error11()
5991
+ localeError: error12()
5726
5992
  };
5727
5993
  }
5728
5994
 
5729
5995
  // node_modules/zod/v4/locales/fa.js
5730
- var error12 = () => {
5996
+ var error13 = () => {
5731
5997
  const Sizable = {
5732
5998
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5733
5999
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5837,12 +6103,12 @@
5837
6103
  };
5838
6104
  function fa_default() {
5839
6105
  return {
5840
- localeError: error12()
6106
+ localeError: error13()
5841
6107
  };
5842
6108
  }
5843
6109
 
5844
6110
  // node_modules/zod/v4/locales/fi.js
5845
- var error13 = () => {
6111
+ var error14 = () => {
5846
6112
  const Sizable = {
5847
6113
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
5848
6114
  file: { unit: "tavua", subject: "tiedoston" },
@@ -5950,12 +6216,12 @@
5950
6216
  };
5951
6217
  function fi_default() {
5952
6218
  return {
5953
- localeError: error13()
6219
+ localeError: error14()
5954
6220
  };
5955
6221
  }
5956
6222
 
5957
6223
  // node_modules/zod/v4/locales/fr.js
5958
- var error14 = () => {
6224
+ var error15 = () => {
5959
6225
  const Sizable = {
5960
6226
  string: { unit: "caract\xE8res", verb: "avoir" },
5961
6227
  file: { unit: "octets", verb: "avoir" },
@@ -5996,9 +6262,27 @@
5996
6262
  template_literal: "entr\xE9e"
5997
6263
  };
5998
6264
  const TypeDictionary = {
5999
- nan: "NaN",
6265
+ string: "cha\xEEne",
6000
6266
  number: "nombre",
6001
- array: "tableau"
6267
+ int: "entier",
6268
+ boolean: "bool\xE9en",
6269
+ bigint: "grand entier",
6270
+ symbol: "symbole",
6271
+ undefined: "ind\xE9fini",
6272
+ null: "null",
6273
+ never: "jamais",
6274
+ void: "vide",
6275
+ date: "date",
6276
+ array: "tableau",
6277
+ object: "objet",
6278
+ tuple: "tuple",
6279
+ record: "enregistrement",
6280
+ map: "carte",
6281
+ set: "ensemble",
6282
+ file: "fichier",
6283
+ nonoptional: "non-optionnel",
6284
+ nan: "NaN",
6285
+ function: "fonction"
6002
6286
  };
6003
6287
  return (issue2) => {
6004
6288
  switch (issue2.code) {
@@ -6019,16 +6303,15 @@
6019
6303
  const adj = issue2.inclusive ? "<=" : "<";
6020
6304
  const sizing = getSizing(issue2.origin);
6021
6305
  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()}`;
6306
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6307
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6024
6308
  }
6025
6309
  case "too_small": {
6026
6310
  const adj = issue2.inclusive ? ">=" : ">";
6027
6311
  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()}`;
6312
+ if (sizing)
6313
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6314
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6032
6315
  }
6033
6316
  case "invalid_format": {
6034
6317
  const _issue = issue2;
@@ -6059,12 +6342,12 @@
6059
6342
  };
6060
6343
  function fr_default() {
6061
6344
  return {
6062
- localeError: error14()
6345
+ localeError: error15()
6063
6346
  };
6064
6347
  }
6065
6348
 
6066
6349
  // node_modules/zod/v4/locales/fr-CA.js
6067
- var error15 = () => {
6350
+ var error16 = () => {
6068
6351
  const Sizable = {
6069
6352
  string: { unit: "caract\xE8res", verb: "avoir" },
6070
6353
  file: { unit: "octets", verb: "avoir" },
@@ -6167,12 +6450,12 @@
6167
6450
  };
6168
6451
  function fr_CA_default() {
6169
6452
  return {
6170
- localeError: error15()
6453
+ localeError: error16()
6171
6454
  };
6172
6455
  }
6173
6456
 
6174
6457
  // node_modules/zod/v4/locales/he.js
6175
- var error16 = () => {
6458
+ var error17 = () => {
6176
6459
  const TypeNames = {
6177
6460
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6178
6461
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6362,24 +6645,24 @@
6362
6645
  };
6363
6646
  function he_default() {
6364
6647
  return {
6365
- localeError: error16()
6648
+ localeError: error17()
6366
6649
  };
6367
6650
  }
6368
6651
 
6369
- // node_modules/zod/v4/locales/hu.js
6370
- var error17 = () => {
6652
+ // node_modules/zod/v4/locales/hr.js
6653
+ var error18 = () => {
6371
6654
  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" }
6655
+ string: { unit: "znakova", verb: "imati" },
6656
+ file: { unit: "bajtova", verb: "imati" },
6657
+ array: { unit: "stavki", verb: "imati" },
6658
+ set: { unit: "stavki", verb: "imati" }
6376
6659
  };
6377
6660
  function getSizing(origin) {
6378
6661
  return Sizable[origin] ?? null;
6379
6662
  }
6380
6663
  const FormatDictionary = {
6381
- regex: "bemenet",
6382
- email: "email c\xEDm",
6664
+ regex: "unos",
6665
+ email: "email adresa",
6383
6666
  url: "URL",
6384
6667
  emoji: "emoji",
6385
6668
  uuid: "UUID",
@@ -6392,25 +6675,37 @@
6392
6675
  ulid: "ULID",
6393
6676
  xid: "XID",
6394
6677
  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",
6678
+ datetime: "ISO datum i vrijeme",
6679
+ date: "ISO datum",
6680
+ time: "ISO vrijeme",
6681
+ duration: "ISO trajanje",
6682
+ ipv4: "IPv4 adresa",
6683
+ ipv6: "IPv6 adresa",
6684
+ cidrv4: "IPv4 raspon",
6685
+ cidrv6: "IPv6 raspon",
6686
+ base64: "base64 kodirani tekst",
6687
+ base64url: "base64url kodirani tekst",
6688
+ json_string: "JSON tekst",
6689
+ e164: "E.164 broj",
6407
6690
  jwt: "JWT",
6408
- template_literal: "bemenet"
6691
+ template_literal: "unos"
6409
6692
  };
6410
6693
  const TypeDictionary = {
6411
6694
  nan: "NaN",
6412
- number: "sz\xE1m",
6413
- array: "t\xF6mb"
6695
+ string: "tekst",
6696
+ number: "broj",
6697
+ boolean: "boolean",
6698
+ array: "niz",
6699
+ object: "objekt",
6700
+ set: "skup",
6701
+ file: "datoteka",
6702
+ date: "datum",
6703
+ bigint: "bigint",
6704
+ symbol: "simbol",
6705
+ undefined: "undefined",
6706
+ null: "null",
6707
+ function: "funkcija",
6708
+ map: "mapa"
6414
6709
  };
6415
6710
  return (issue2) => {
6416
6711
  switch (issue2.code) {
@@ -6419,20 +6714,131 @@
6419
6714
  const receivedType = parsedType(issue2.input);
6420
6715
  const received = TypeDictionary[receivedType] ?? receivedType;
6421
6716
  if (/^[A-Z]/.test(issue2.expected)) {
6422
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6717
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
6423
6718
  }
6424
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6719
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
6425
6720
  }
6426
6721
  case "invalid_value":
6427
6722
  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, "|")}`;
6723
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
6724
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
6430
6725
  case "too_big": {
6431
6726
  const adj = issue2.inclusive ? "<=" : "<";
6432
6727
  const sizing = getSizing(issue2.origin);
6728
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6433
6729
  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()}`;
6730
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6731
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6732
+ }
6733
+ case "too_small": {
6734
+ const adj = issue2.inclusive ? ">=" : ">";
6735
+ const sizing = getSizing(issue2.origin);
6736
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6737
+ if (sizing) {
6738
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6739
+ }
6740
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
6741
+ }
6742
+ case "invalid_format": {
6743
+ const _issue = issue2;
6744
+ if (_issue.format === "starts_with")
6745
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
6746
+ if (_issue.format === "ends_with")
6747
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
6748
+ if (_issue.format === "includes")
6749
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
6750
+ if (_issue.format === "regex")
6751
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
6752
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
6753
+ }
6754
+ case "not_multiple_of":
6755
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
6756
+ case "unrecognized_keys":
6757
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
6758
+ case "invalid_key":
6759
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6760
+ case "invalid_union":
6761
+ return "Neispravan unos";
6762
+ case "invalid_element":
6763
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6764
+ default:
6765
+ return `Neispravan unos`;
6766
+ }
6767
+ };
6768
+ };
6769
+ function hr_default() {
6770
+ return {
6771
+ localeError: error18()
6772
+ };
6773
+ }
6774
+
6775
+ // node_modules/zod/v4/locales/hu.js
6776
+ var error19 = () => {
6777
+ const Sizable = {
6778
+ string: { unit: "karakter", verb: "legyen" },
6779
+ file: { unit: "byte", verb: "legyen" },
6780
+ array: { unit: "elem", verb: "legyen" },
6781
+ set: { unit: "elem", verb: "legyen" }
6782
+ };
6783
+ function getSizing(origin) {
6784
+ return Sizable[origin] ?? null;
6785
+ }
6786
+ const FormatDictionary = {
6787
+ regex: "bemenet",
6788
+ email: "email c\xEDm",
6789
+ url: "URL",
6790
+ emoji: "emoji",
6791
+ uuid: "UUID",
6792
+ uuidv4: "UUIDv4",
6793
+ uuidv6: "UUIDv6",
6794
+ nanoid: "nanoid",
6795
+ guid: "GUID",
6796
+ cuid: "cuid",
6797
+ cuid2: "cuid2",
6798
+ ulid: "ULID",
6799
+ xid: "XID",
6800
+ ksuid: "KSUID",
6801
+ datetime: "ISO id\u0151b\xE9lyeg",
6802
+ date: "ISO d\xE1tum",
6803
+ time: "ISO id\u0151",
6804
+ duration: "ISO id\u0151intervallum",
6805
+ ipv4: "IPv4 c\xEDm",
6806
+ ipv6: "IPv6 c\xEDm",
6807
+ cidrv4: "IPv4 tartom\xE1ny",
6808
+ cidrv6: "IPv6 tartom\xE1ny",
6809
+ base64: "base64-k\xF3dolt string",
6810
+ base64url: "base64url-k\xF3dolt string",
6811
+ json_string: "JSON string",
6812
+ e164: "E.164 sz\xE1m",
6813
+ jwt: "JWT",
6814
+ template_literal: "bemenet"
6815
+ };
6816
+ const TypeDictionary = {
6817
+ nan: "NaN",
6818
+ number: "sz\xE1m",
6819
+ array: "t\xF6mb"
6820
+ };
6821
+ return (issue2) => {
6822
+ switch (issue2.code) {
6823
+ case "invalid_type": {
6824
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6825
+ const receivedType = parsedType(issue2.input);
6826
+ const received = TypeDictionary[receivedType] ?? receivedType;
6827
+ if (/^[A-Z]/.test(issue2.expected)) {
6828
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6829
+ }
6830
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6831
+ }
6832
+ case "invalid_value":
6833
+ if (issue2.values.length === 1)
6834
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6835
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6836
+ case "too_big": {
6837
+ const adj = issue2.inclusive ? "<=" : "<";
6838
+ const sizing = getSizing(issue2.origin);
6839
+ if (sizing)
6840
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6841
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6436
6842
  }
6437
6843
  case "too_small": {
6438
6844
  const adj = issue2.inclusive ? ">=" : ">";
@@ -6471,7 +6877,7 @@
6471
6877
  };
6472
6878
  function hu_default() {
6473
6879
  return {
6474
- localeError: error17()
6880
+ localeError: error19()
6475
6881
  };
6476
6882
  }
6477
6883
 
@@ -6486,7 +6892,7 @@
6486
6892
  const lastChar = word[word.length - 1];
6487
6893
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
6488
6894
  }
6489
- var error18 = () => {
6895
+ var error20 = () => {
6490
6896
  const Sizable = {
6491
6897
  string: {
6492
6898
  unit: {
@@ -6619,12 +7025,12 @@
6619
7025
  };
6620
7026
  function hy_default() {
6621
7027
  return {
6622
- localeError: error18()
7028
+ localeError: error20()
6623
7029
  };
6624
7030
  }
6625
7031
 
6626
7032
  // node_modules/zod/v4/locales/id.js
6627
- var error19 = () => {
7033
+ var error21 = () => {
6628
7034
  const Sizable = {
6629
7035
  string: { unit: "karakter", verb: "memiliki" },
6630
7036
  file: { unit: "byte", verb: "memiliki" },
@@ -6726,12 +7132,12 @@
6726
7132
  };
6727
7133
  function id_default() {
6728
7134
  return {
6729
- localeError: error19()
7135
+ localeError: error21()
6730
7136
  };
6731
7137
  }
6732
7138
 
6733
7139
  // node_modules/zod/v4/locales/is.js
6734
- var error20 = () => {
7140
+ var error22 = () => {
6735
7141
  const Sizable = {
6736
7142
  string: { unit: "stafi", verb: "a\xF0 hafa" },
6737
7143
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -6836,12 +7242,12 @@
6836
7242
  };
6837
7243
  function is_default() {
6838
7244
  return {
6839
- localeError: error20()
7245
+ localeError: error22()
6840
7246
  };
6841
7247
  }
6842
7248
 
6843
7249
  // node_modules/zod/v4/locales/it.js
6844
- var error21 = () => {
7250
+ var error23 = () => {
6845
7251
  const Sizable = {
6846
7252
  string: { unit: "caratteri", verb: "avere" },
6847
7253
  file: { unit: "byte", verb: "avere" },
@@ -6926,7 +7332,7 @@
6926
7332
  return `Stringa non valida: deve includere "${_issue.includes}"`;
6927
7333
  if (_issue.format === "regex")
6928
7334
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
6929
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7335
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6930
7336
  }
6931
7337
  case "not_multiple_of":
6932
7338
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -6945,12 +7351,12 @@
6945
7351
  };
6946
7352
  function it_default() {
6947
7353
  return {
6948
- localeError: error21()
7354
+ localeError: error23()
6949
7355
  };
6950
7356
  }
6951
7357
 
6952
7358
  // node_modules/zod/v4/locales/ja.js
6953
- var error22 = () => {
7359
+ var error24 = () => {
6954
7360
  const Sizable = {
6955
7361
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
6956
7362
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7053,12 +7459,12 @@
7053
7459
  };
7054
7460
  function ja_default() {
7055
7461
  return {
7056
- localeError: error22()
7462
+ localeError: error24()
7057
7463
  };
7058
7464
  }
7059
7465
 
7060
7466
  // node_modules/zod/v4/locales/ka.js
7061
- var error23 = () => {
7467
+ var error25 = () => {
7062
7468
  const Sizable = {
7063
7469
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7064
7470
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7091,9 +7497,9 @@
7091
7497
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
7092
7498
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7093
7499
  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",
7500
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7501
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7502
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
7097
7503
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
7098
7504
  jwt: "JWT",
7099
7505
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -7101,7 +7507,7 @@
7101
7507
  const TypeDictionary = {
7102
7508
  nan: "NaN",
7103
7509
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
7104
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7510
+ string: "\u10D5\u10D4\u10DA\u10D8",
7105
7511
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
7106
7512
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
7107
7513
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7139,14 +7545,14 @@
7139
7545
  case "invalid_format": {
7140
7546
  const _issue = issue2;
7141
7547
  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`;
7548
+ 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
7549
  }
7144
7550
  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`;
7551
+ 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
7552
  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`;
7553
+ 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
7554
  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}`;
7555
+ 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
7556
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7151
7557
  }
7152
7558
  case "not_multiple_of":
@@ -7166,12 +7572,12 @@
7166
7572
  };
7167
7573
  function ka_default() {
7168
7574
  return {
7169
- localeError: error23()
7575
+ localeError: error25()
7170
7576
  };
7171
7577
  }
7172
7578
 
7173
7579
  // node_modules/zod/v4/locales/km.js
7174
- var error24 = () => {
7580
+ var error26 = () => {
7175
7581
  const Sizable = {
7176
7582
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7177
7583
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7277,7 +7683,7 @@
7277
7683
  };
7278
7684
  function km_default() {
7279
7685
  return {
7280
- localeError: error24()
7686
+ localeError: error26()
7281
7687
  };
7282
7688
  }
7283
7689
 
@@ -7287,7 +7693,7 @@
7287
7693
  }
7288
7694
 
7289
7695
  // node_modules/zod/v4/locales/ko.js
7290
- var error25 = () => {
7696
+ var error27 = () => {
7291
7697
  const Sizable = {
7292
7698
  string: { unit: "\uBB38\uC790", verb: "to have" },
7293
7699
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7394,7 +7800,7 @@
7394
7800
  };
7395
7801
  function ko_default() {
7396
7802
  return {
7397
- localeError: error25()
7803
+ localeError: error27()
7398
7804
  };
7399
7805
  }
7400
7806
 
@@ -7412,7 +7818,7 @@
7412
7818
  return "one";
7413
7819
  return "few";
7414
7820
  }
7415
- var error26 = () => {
7821
+ var error28 = () => {
7416
7822
  const Sizable = {
7417
7823
  string: {
7418
7824
  unit: {
@@ -7598,12 +8004,12 @@
7598
8004
  };
7599
8005
  function lt_default() {
7600
8006
  return {
7601
- localeError: error26()
8007
+ localeError: error28()
7602
8008
  };
7603
8009
  }
7604
8010
 
7605
8011
  // node_modules/zod/v4/locales/mk.js
7606
- var error27 = () => {
8012
+ var error29 = () => {
7607
8013
  const Sizable = {
7608
8014
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7609
8015
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7708,12 +8114,12 @@
7708
8114
  };
7709
8115
  function mk_default() {
7710
8116
  return {
7711
- localeError: error27()
8117
+ localeError: error29()
7712
8118
  };
7713
8119
  }
7714
8120
 
7715
8121
  // node_modules/zod/v4/locales/ms.js
7716
- var error28 = () => {
8122
+ var error30 = () => {
7717
8123
  const Sizable = {
7718
8124
  string: { unit: "aksara", verb: "mempunyai" },
7719
8125
  file: { unit: "bait", verb: "mempunyai" },
@@ -7816,12 +8222,12 @@
7816
8222
  };
7817
8223
  function ms_default() {
7818
8224
  return {
7819
- localeError: error28()
8225
+ localeError: error30()
7820
8226
  };
7821
8227
  }
7822
8228
 
7823
8229
  // node_modules/zod/v4/locales/nl.js
7824
- var error29 = () => {
8230
+ var error31 = () => {
7825
8231
  const Sizable = {
7826
8232
  string: { unit: "tekens", verb: "heeft" },
7827
8233
  file: { unit: "bytes", verb: "heeft" },
@@ -7927,12 +8333,12 @@
7927
8333
  };
7928
8334
  function nl_default() {
7929
8335
  return {
7930
- localeError: error29()
8336
+ localeError: error31()
7931
8337
  };
7932
8338
  }
7933
8339
 
7934
8340
  // node_modules/zod/v4/locales/no.js
7935
- var error30 = () => {
8341
+ var error32 = () => {
7936
8342
  const Sizable = {
7937
8343
  string: { unit: "tegn", verb: "\xE5 ha" },
7938
8344
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8036,12 +8442,12 @@
8036
8442
  };
8037
8443
  function no_default() {
8038
8444
  return {
8039
- localeError: error30()
8445
+ localeError: error32()
8040
8446
  };
8041
8447
  }
8042
8448
 
8043
8449
  // node_modules/zod/v4/locales/ota.js
8044
- var error31 = () => {
8450
+ var error33 = () => {
8045
8451
  const Sizable = {
8046
8452
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8047
8453
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8146,12 +8552,12 @@
8146
8552
  };
8147
8553
  function ota_default() {
8148
8554
  return {
8149
- localeError: error31()
8555
+ localeError: error33()
8150
8556
  };
8151
8557
  }
8152
8558
 
8153
8559
  // node_modules/zod/v4/locales/ps.js
8154
- var error32 = () => {
8560
+ var error34 = () => {
8155
8561
  const Sizable = {
8156
8562
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8157
8563
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8261,12 +8667,12 @@
8261
8667
  };
8262
8668
  function ps_default() {
8263
8669
  return {
8264
- localeError: error32()
8670
+ localeError: error34()
8265
8671
  };
8266
8672
  }
8267
8673
 
8268
8674
  // node_modules/zod/v4/locales/pl.js
8269
- var error33 = () => {
8675
+ var error35 = () => {
8270
8676
  const Sizable = {
8271
8677
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8272
8678
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8371,12 +8777,12 @@
8371
8777
  };
8372
8778
  function pl_default() {
8373
8779
  return {
8374
- localeError: error33()
8780
+ localeError: error35()
8375
8781
  };
8376
8782
  }
8377
8783
 
8378
8784
  // node_modules/zod/v4/locales/pt.js
8379
- var error34 = () => {
8785
+ var error36 = () => {
8380
8786
  const Sizable = {
8381
8787
  string: { unit: "caracteres", verb: "ter" },
8382
8788
  file: { unit: "bytes", verb: "ter" },
@@ -8480,7 +8886,127 @@
8480
8886
  };
8481
8887
  function pt_default() {
8482
8888
  return {
8483
- localeError: error34()
8889
+ localeError: error36()
8890
+ };
8891
+ }
8892
+
8893
+ // node_modules/zod/v4/locales/ro.js
8894
+ var error37 = () => {
8895
+ const Sizable = {
8896
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
8897
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
8898
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8899
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8900
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
8901
+ };
8902
+ function getSizing(origin) {
8903
+ return Sizable[origin] ?? null;
8904
+ }
8905
+ const FormatDictionary = {
8906
+ regex: "intrare",
8907
+ email: "adres\u0103 de email",
8908
+ url: "URL",
8909
+ emoji: "emoji",
8910
+ uuid: "UUID",
8911
+ uuidv4: "UUIDv4",
8912
+ uuidv6: "UUIDv6",
8913
+ nanoid: "nanoid",
8914
+ guid: "GUID",
8915
+ cuid: "cuid",
8916
+ cuid2: "cuid2",
8917
+ ulid: "ULID",
8918
+ xid: "XID",
8919
+ ksuid: "KSUID",
8920
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
8921
+ date: "dat\u0103 ISO",
8922
+ time: "or\u0103 ISO",
8923
+ duration: "durat\u0103 ISO",
8924
+ ipv4: "adres\u0103 IPv4",
8925
+ ipv6: "adres\u0103 IPv6",
8926
+ mac: "adres\u0103 MAC",
8927
+ cidrv4: "interval IPv4",
8928
+ cidrv6: "interval IPv6",
8929
+ base64: "\u0219ir codat base64",
8930
+ base64url: "\u0219ir codat base64url",
8931
+ json_string: "\u0219ir JSON",
8932
+ e164: "num\u0103r E.164",
8933
+ jwt: "JWT",
8934
+ template_literal: "intrare"
8935
+ };
8936
+ const TypeDictionary = {
8937
+ nan: "NaN",
8938
+ string: "\u0219ir",
8939
+ number: "num\u0103r",
8940
+ boolean: "boolean",
8941
+ function: "func\u021Bie",
8942
+ array: "matrice",
8943
+ object: "obiect",
8944
+ undefined: "nedefinit",
8945
+ symbol: "simbol",
8946
+ bigint: "num\u0103r mare",
8947
+ void: "void",
8948
+ never: "never",
8949
+ map: "hart\u0103",
8950
+ set: "set"
8951
+ };
8952
+ return (issue2) => {
8953
+ switch (issue2.code) {
8954
+ case "invalid_type": {
8955
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8956
+ const receivedType = parsedType(issue2.input);
8957
+ const received = TypeDictionary[receivedType] ?? receivedType;
8958
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
8959
+ }
8960
+ case "invalid_value":
8961
+ if (issue2.values.length === 1)
8962
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
8963
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
8964
+ case "too_big": {
8965
+ const adj = issue2.inclusive ? "<=" : "<";
8966
+ const sizing = getSizing(issue2.origin);
8967
+ if (sizing)
8968
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
8969
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
8970
+ }
8971
+ case "too_small": {
8972
+ const adj = issue2.inclusive ? ">=" : ">";
8973
+ const sizing = getSizing(issue2.origin);
8974
+ if (sizing) {
8975
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8976
+ }
8977
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
8978
+ }
8979
+ case "invalid_format": {
8980
+ const _issue = issue2;
8981
+ if (_issue.format === "starts_with") {
8982
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
8983
+ }
8984
+ if (_issue.format === "ends_with")
8985
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
8986
+ if (_issue.format === "includes")
8987
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
8988
+ if (_issue.format === "regex")
8989
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
8990
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8991
+ }
8992
+ case "not_multiple_of":
8993
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
8994
+ case "unrecognized_keys":
8995
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
8996
+ case "invalid_key":
8997
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
8998
+ case "invalid_union":
8999
+ return "Intrare invalid\u0103";
9000
+ case "invalid_element":
9001
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
9002
+ default:
9003
+ return `Intrare invalid\u0103`;
9004
+ }
9005
+ };
9006
+ };
9007
+ function ro_default() {
9008
+ return {
9009
+ localeError: error37()
8484
9010
  };
8485
9011
  }
8486
9012
 
@@ -8500,7 +9026,7 @@
8500
9026
  }
8501
9027
  return many;
8502
9028
  }
8503
- var error35 = () => {
9029
+ var error38 = () => {
8504
9030
  const Sizable = {
8505
9031
  string: {
8506
9032
  unit: {
@@ -8637,12 +9163,12 @@
8637
9163
  };
8638
9164
  function ru_default() {
8639
9165
  return {
8640
- localeError: error35()
9166
+ localeError: error38()
8641
9167
  };
8642
9168
  }
8643
9169
 
8644
9170
  // node_modules/zod/v4/locales/sl.js
8645
- var error36 = () => {
9171
+ var error39 = () => {
8646
9172
  const Sizable = {
8647
9173
  string: { unit: "znakov", verb: "imeti" },
8648
9174
  file: { unit: "bajtov", verb: "imeti" },
@@ -8747,12 +9273,12 @@
8747
9273
  };
8748
9274
  function sl_default() {
8749
9275
  return {
8750
- localeError: error36()
9276
+ localeError: error39()
8751
9277
  };
8752
9278
  }
8753
9279
 
8754
9280
  // node_modules/zod/v4/locales/sv.js
8755
- var error37 = () => {
9281
+ var error40 = () => {
8756
9282
  const Sizable = {
8757
9283
  string: { unit: "tecken", verb: "att ha" },
8758
9284
  file: { unit: "bytes", verb: "att ha" },
@@ -8858,12 +9384,12 @@
8858
9384
  };
8859
9385
  function sv_default() {
8860
9386
  return {
8861
- localeError: error37()
9387
+ localeError: error40()
8862
9388
  };
8863
9389
  }
8864
9390
 
8865
9391
  // node_modules/zod/v4/locales/ta.js
8866
- var error38 = () => {
9392
+ var error41 = () => {
8867
9393
  const Sizable = {
8868
9394
  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
9395
  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 +9495,12 @@
8969
9495
  };
8970
9496
  function ta_default() {
8971
9497
  return {
8972
- localeError: error38()
9498
+ localeError: error41()
8973
9499
  };
8974
9500
  }
8975
9501
 
8976
9502
  // node_modules/zod/v4/locales/th.js
8977
- var error39 = () => {
9503
+ var error42 = () => {
8978
9504
  const Sizable = {
8979
9505
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
8980
9506
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9080,12 +9606,12 @@
9080
9606
  };
9081
9607
  function th_default() {
9082
9608
  return {
9083
- localeError: error39()
9609
+ localeError: error42()
9084
9610
  };
9085
9611
  }
9086
9612
 
9087
9613
  // node_modules/zod/v4/locales/tr.js
9088
- var error40 = () => {
9614
+ var error43 = () => {
9089
9615
  const Sizable = {
9090
9616
  string: { unit: "karakter", verb: "olmal\u0131" },
9091
9617
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9186,12 +9712,12 @@
9186
9712
  };
9187
9713
  function tr_default() {
9188
9714
  return {
9189
- localeError: error40()
9715
+ localeError: error43()
9190
9716
  };
9191
9717
  }
9192
9718
 
9193
9719
  // node_modules/zod/v4/locales/uk.js
9194
- var error41 = () => {
9720
+ var error44 = () => {
9195
9721
  const Sizable = {
9196
9722
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9197
9723
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9295,7 +9821,7 @@
9295
9821
  };
9296
9822
  function uk_default() {
9297
9823
  return {
9298
- localeError: error41()
9824
+ localeError: error44()
9299
9825
  };
9300
9826
  }
9301
9827
 
@@ -9305,7 +9831,7 @@
9305
9831
  }
9306
9832
 
9307
9833
  // node_modules/zod/v4/locales/ur.js
9308
- var error42 = () => {
9834
+ var error45 = () => {
9309
9835
  const Sizable = {
9310
9836
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9311
9837
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9411,17 +9937,18 @@
9411
9937
  };
9412
9938
  function ur_default() {
9413
9939
  return {
9414
- localeError: error42()
9940
+ localeError: error45()
9415
9941
  };
9416
9942
  }
9417
9943
 
9418
9944
  // node_modules/zod/v4/locales/uz.js
9419
- var error43 = () => {
9945
+ var error46 = () => {
9420
9946
  const Sizable = {
9421
9947
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
9422
9948
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
9423
9949
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
9424
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
9950
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
9951
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9425
9952
  };
9426
9953
  function getSizing(origin) {
9427
9954
  return Sizable[origin] ?? null;
@@ -9521,12 +10048,12 @@
9521
10048
  };
9522
10049
  function uz_default() {
9523
10050
  return {
9524
- localeError: error43()
10051
+ localeError: error46()
9525
10052
  };
9526
10053
  }
9527
10054
 
9528
10055
  // node_modules/zod/v4/locales/vi.js
9529
- var error44 = () => {
10056
+ var error47 = () => {
9530
10057
  const Sizable = {
9531
10058
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
9532
10059
  file: { unit: "byte", verb: "c\xF3" },
@@ -9630,12 +10157,12 @@
9630
10157
  };
9631
10158
  function vi_default() {
9632
10159
  return {
9633
- localeError: error44()
10160
+ localeError: error47()
9634
10161
  };
9635
10162
  }
9636
10163
 
9637
10164
  // node_modules/zod/v4/locales/zh-CN.js
9638
- var error45 = () => {
10165
+ var error48 = () => {
9639
10166
  const Sizable = {
9640
10167
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
9641
10168
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -9740,12 +10267,12 @@
9740
10267
  };
9741
10268
  function zh_CN_default() {
9742
10269
  return {
9743
- localeError: error45()
10270
+ localeError: error48()
9744
10271
  };
9745
10272
  }
9746
10273
 
9747
10274
  // node_modules/zod/v4/locales/zh-TW.js
9748
- var error46 = () => {
10275
+ var error49 = () => {
9749
10276
  const Sizable = {
9750
10277
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
9751
10278
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -9848,12 +10375,12 @@
9848
10375
  };
9849
10376
  function zh_TW_default() {
9850
10377
  return {
9851
- localeError: error46()
10378
+ localeError: error49()
9852
10379
  };
9853
10380
  }
9854
10381
 
9855
10382
  // node_modules/zod/v4/locales/yo.js
9856
- var error47 = () => {
10383
+ var error50 = () => {
9857
10384
  const Sizable = {
9858
10385
  string: { unit: "\xE0mi", verb: "n\xED" },
9859
10386
  file: { unit: "bytes", verb: "n\xED" },
@@ -9956,12 +10483,12 @@
9956
10483
  };
9957
10484
  function yo_default() {
9958
10485
  return {
9959
- localeError: error47()
10486
+ localeError: error50()
9960
10487
  };
9961
10488
  }
9962
10489
 
9963
10490
  // node_modules/zod/v4/core/registries.js
9964
- var _a;
10491
+ var _a2;
9965
10492
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
9966
10493
  var $input = /* @__PURE__ */ Symbol("ZodInput");
9967
10494
  var $ZodRegistry = class {
@@ -10007,7 +10534,7 @@
10007
10534
  function registry() {
10008
10535
  return new $ZodRegistry();
10009
10536
  }
10010
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10537
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10011
10538
  var globalRegistry = globalThis.__zod_globalRegistry;
10012
10539
 
10013
10540
  // node_modules/zod/v4/core/api.js
@@ -10925,7 +11452,7 @@
10925
11452
  return schema;
10926
11453
  }
10927
11454
  // @__NO_SIDE_EFFECTS__
10928
- function _superRefine(fn) {
11455
+ function _superRefine(fn, params) {
10929
11456
  const ch = /* @__PURE__ */ _check((payload) => {
10930
11457
  payload.addIssue = (issue2) => {
10931
11458
  if (typeof issue2 === "string") {
@@ -10942,7 +11469,7 @@
10942
11469
  }
10943
11470
  };
10944
11471
  return fn(payload.value, payload);
10945
- });
11472
+ }, params);
10946
11473
  return ch;
10947
11474
  }
10948
11475
  // @__NO_SIDE_EFFECTS__
@@ -11072,7 +11599,7 @@
11072
11599
  };
11073
11600
  }
11074
11601
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
11075
- var _a2;
11602
+ var _a3;
11076
11603
  const def = schema._zod.def;
11077
11604
  const seen = ctx.seen.get(schema);
11078
11605
  if (seen) {
@@ -11119,8 +11646,8 @@
11119
11646
  delete result.schema.examples;
11120
11647
  delete result.schema.default;
11121
11648
  }
11122
- if (ctx.io === "input" && result.schema._prefault)
11123
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11649
+ if (ctx.io === "input" && "_prefault" in result.schema)
11650
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11124
11651
  delete result.schema._prefault;
11125
11652
  const _result = ctx.seen.get(schema);
11126
11653
  return _result.schema;
@@ -11301,10 +11828,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11301
11828
  result.$id = ctx.external.uri(id);
11302
11829
  }
11303
11830
  Object.assign(result, root.def ?? root.schema);
11831
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
11832
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
11833
+ delete result.id;
11304
11834
  const defs = ctx.external?.defs ?? {};
11305
11835
  for (const entry of ctx.seen.entries()) {
11306
11836
  const seen = entry[1];
11307
11837
  if (seen.def && seen.defId) {
11838
+ if (seen.def.id === seen.defId)
11839
+ delete seen.def.id;
11308
11840
  defs[seen.defId] = seen.def;
11309
11841
  }
11310
11842
  }
@@ -11360,6 +11892,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11360
11892
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
11361
11893
  }
11362
11894
  if (def.type === "pipe") {
11895
+ if (_schema._zod.traits.has("$ZodCodec"))
11896
+ return true;
11363
11897
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
11364
11898
  }
11365
11899
  if (def.type === "object") {
@@ -11449,39 +11983,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11449
11983
  json2.type = "integer";
11450
11984
  else
11451
11985
  json2.type = "number";
11452
- if (typeof exclusiveMinimum === "number") {
11453
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11986
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
11987
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
11988
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
11989
+ if (exMin) {
11990
+ if (legacy) {
11454
11991
  json2.minimum = exclusiveMinimum;
11455
11992
  json2.exclusiveMinimum = true;
11456
11993
  } else {
11457
11994
  json2.exclusiveMinimum = exclusiveMinimum;
11458
11995
  }
11459
- }
11460
- if (typeof minimum === "number") {
11996
+ } else if (typeof minimum === "number") {
11461
11997
  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
11998
  }
11469
- if (typeof exclusiveMaximum === "number") {
11470
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11999
+ if (exMax) {
12000
+ if (legacy) {
11471
12001
  json2.maximum = exclusiveMaximum;
11472
12002
  json2.exclusiveMaximum = true;
11473
12003
  } else {
11474
12004
  json2.exclusiveMaximum = exclusiveMaximum;
11475
12005
  }
11476
- }
11477
- if (typeof maximum === "number") {
12006
+ } else if (typeof maximum === "number") {
11478
12007
  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
12008
  }
11486
12009
  if (typeof multipleOf === "number")
11487
12010
  json2.multipleOf = multipleOf;
@@ -11653,7 +12176,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11653
12176
  if (typeof maximum === "number")
11654
12177
  json2.maxItems = maximum;
11655
12178
  json2.type = "array";
11656
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
12179
+ json2.items = process2(def.element, ctx, {
12180
+ ...params,
12181
+ path: [...params.path, "items"]
12182
+ });
11657
12183
  };
11658
12184
  var objectProcessor = (schema, ctx, _json, params) => {
11659
12185
  const json2 = _json;
@@ -11846,7 +12372,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11846
12372
  };
11847
12373
  var pipeProcessor = (schema, ctx, _json, params) => {
11848
12374
  const def = schema._zod.def;
11849
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
12375
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
12376
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
11850
12377
  process2(innerType, ctx, params);
11851
12378
  const seen = ctx.seen.get(schema);
11852
12379
  seen.ref = innerType;
@@ -12080,6 +12607,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12080
12607
  ZodOptional: () => ZodOptional,
12081
12608
  ZodPipe: () => ZodPipe,
12082
12609
  ZodPrefault: () => ZodPrefault,
12610
+ ZodPreprocess: () => ZodPreprocess,
12083
12611
  ZodPromise: () => ZodPromise,
12084
12612
  ZodReadonly: () => ZodReadonly,
12085
12613
  ZodRecord: () => ZodRecord,
@@ -12140,6 +12668,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12140
12668
  int32: () => int32,
12141
12669
  int64: () => int64,
12142
12670
  intersection: () => intersection,
12671
+ invertCodec: () => invertCodec,
12143
12672
  ipv4: () => ipv42,
12144
12673
  ipv6: () => ipv62,
12145
12674
  json: () => json,
@@ -12309,8 +12838,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12309
12838
  }
12310
12839
  });
12311
12840
  };
12312
- var ZodError = $constructor("ZodError", initializer2);
12313
- var ZodRealError = $constructor("ZodError", initializer2, {
12841
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
12842
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12314
12843
  Parent: Error
12315
12844
  });
12316
12845
 
@@ -12329,6 +12858,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12329
12858
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12330
12859
 
12331
12860
  // node_modules/zod/v4/classic/schemas.js
12861
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
12862
+ function _installLazyMethods(inst, group, methods) {
12863
+ const proto = Object.getPrototypeOf(inst);
12864
+ let installed = _installedGroups.get(proto);
12865
+ if (!installed) {
12866
+ installed = /* @__PURE__ */ new Set();
12867
+ _installedGroups.set(proto, installed);
12868
+ }
12869
+ if (installed.has(group))
12870
+ return;
12871
+ installed.add(group);
12872
+ for (const key in methods) {
12873
+ const fn = methods[key];
12874
+ Object.defineProperty(proto, key, {
12875
+ configurable: true,
12876
+ enumerable: false,
12877
+ get() {
12878
+ const bound = fn.bind(this);
12879
+ Object.defineProperty(this, key, {
12880
+ configurable: true,
12881
+ writable: true,
12882
+ enumerable: true,
12883
+ value: bound
12884
+ });
12885
+ return bound;
12886
+ },
12887
+ set(v) {
12888
+ Object.defineProperty(this, key, {
12889
+ configurable: true,
12890
+ writable: true,
12891
+ enumerable: true,
12892
+ value: v
12893
+ });
12894
+ }
12895
+ });
12896
+ }
12897
+ }
12332
12898
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12333
12899
  $ZodType.init(inst, def);
12334
12900
  Object.assign(inst["~standard"], {
@@ -12341,23 +12907,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12341
12907
  inst.def = def;
12342
12908
  inst.type = def.type;
12343
12909
  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
12910
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12362
12911
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12363
12912
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12371,45 +12920,108 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12371
12920
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12372
12921
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12373
12922
  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
- };
12923
+ _installLazyMethods(inst, "ZodType", {
12924
+ check(...chks) {
12925
+ const def2 = this.def;
12926
+ return this.clone(util_exports.mergeDefs(def2, {
12927
+ checks: [
12928
+ ...def2.checks ?? [],
12929
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12930
+ ]
12931
+ }), { parent: true });
12932
+ },
12933
+ with(...chks) {
12934
+ return this.check(...chks);
12935
+ },
12936
+ clone(def2, params) {
12937
+ return clone(this, def2, params);
12938
+ },
12939
+ brand() {
12940
+ return this;
12941
+ },
12942
+ register(reg, meta3) {
12943
+ reg.add(this, meta3);
12944
+ return this;
12945
+ },
12946
+ refine(check2, params) {
12947
+ return this.check(refine(check2, params));
12948
+ },
12949
+ superRefine(refinement, params) {
12950
+ return this.check(superRefine(refinement, params));
12951
+ },
12952
+ overwrite(fn) {
12953
+ return this.check(_overwrite(fn));
12954
+ },
12955
+ optional() {
12956
+ return optional(this);
12957
+ },
12958
+ exactOptional() {
12959
+ return exactOptional(this);
12960
+ },
12961
+ nullable() {
12962
+ return nullable(this);
12963
+ },
12964
+ nullish() {
12965
+ return optional(nullable(this));
12966
+ },
12967
+ nonoptional(params) {
12968
+ return nonoptional(this, params);
12969
+ },
12970
+ array() {
12971
+ return array(this);
12972
+ },
12973
+ or(arg) {
12974
+ return union([this, arg]);
12975
+ },
12976
+ and(arg) {
12977
+ return intersection(this, arg);
12978
+ },
12979
+ transform(tx) {
12980
+ return pipe(this, transform(tx));
12981
+ },
12982
+ default(d) {
12983
+ return _default2(this, d);
12984
+ },
12985
+ prefault(d) {
12986
+ return prefault(this, d);
12987
+ },
12988
+ catch(params) {
12989
+ return _catch2(this, params);
12990
+ },
12991
+ pipe(target) {
12992
+ return pipe(this, target);
12993
+ },
12994
+ readonly() {
12995
+ return readonly(this);
12996
+ },
12997
+ describe(description) {
12998
+ const cl = this.clone();
12999
+ globalRegistry.add(cl, { description });
13000
+ return cl;
13001
+ },
13002
+ meta(...args) {
13003
+ if (args.length === 0)
13004
+ return globalRegistry.get(this);
13005
+ const cl = this.clone();
13006
+ globalRegistry.add(cl, args[0]);
13007
+ return cl;
13008
+ },
13009
+ isOptional() {
13010
+ return this.safeParse(void 0).success;
13011
+ },
13012
+ isNullable() {
13013
+ return this.safeParse(null).success;
13014
+ },
13015
+ apply(fn) {
13016
+ return fn(this);
13017
+ }
13018
+ });
12396
13019
  Object.defineProperty(inst, "description", {
12397
13020
  get() {
12398
13021
  return globalRegistry.get(inst)?.description;
12399
13022
  },
12400
13023
  configurable: true
12401
13024
  });
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
13025
  return inst;
12414
13026
  });
12415
13027
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -12420,21 +13032,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12420
13032
  inst.format = bag.format ?? null;
12421
13033
  inst.minLength = bag.minimum ?? null;
12422
13034
  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());
13035
+ _installLazyMethods(inst, "_ZodString", {
13036
+ regex(...args) {
13037
+ return this.check(_regex(...args));
13038
+ },
13039
+ includes(...args) {
13040
+ return this.check(_includes(...args));
13041
+ },
13042
+ startsWith(...args) {
13043
+ return this.check(_startsWith(...args));
13044
+ },
13045
+ endsWith(...args) {
13046
+ return this.check(_endsWith(...args));
13047
+ },
13048
+ min(...args) {
13049
+ return this.check(_minLength(...args));
13050
+ },
13051
+ max(...args) {
13052
+ return this.check(_maxLength(...args));
13053
+ },
13054
+ length(...args) {
13055
+ return this.check(_length(...args));
13056
+ },
13057
+ nonempty(...args) {
13058
+ return this.check(_minLength(1, ...args));
13059
+ },
13060
+ lowercase(params) {
13061
+ return this.check(_lowercase(params));
13062
+ },
13063
+ uppercase(params) {
13064
+ return this.check(_uppercase(params));
13065
+ },
13066
+ trim() {
13067
+ return this.check(_trim());
13068
+ },
13069
+ normalize(...args) {
13070
+ return this.check(_normalize(...args));
13071
+ },
13072
+ toLowerCase() {
13073
+ return this.check(_toLowerCase());
13074
+ },
13075
+ toUpperCase() {
13076
+ return this.check(_toUpperCase());
13077
+ },
13078
+ slugify() {
13079
+ return this.check(_slugify());
13080
+ }
13081
+ });
12438
13082
  });
12439
13083
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
12440
13084
  $ZodString.init(inst, def);
@@ -12513,7 +13157,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12513
13157
  }
12514
13158
  function httpUrl(params) {
12515
13159
  return _url(ZodURL, {
12516
- protocol: /^https?$/,
13160
+ protocol: regexes_exports.httpProtocol,
12517
13161
  hostname: regexes_exports.domain,
12518
13162
  ...util_exports.normalizeParams(params)
12519
13163
  });
@@ -12655,21 +13299,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12655
13299
  $ZodNumber.init(inst, def);
12656
13300
  ZodType.init(inst, def);
12657
13301
  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;
13302
+ _installLazyMethods(inst, "ZodNumber", {
13303
+ gt(value, params) {
13304
+ return this.check(_gt(value, params));
13305
+ },
13306
+ gte(value, params) {
13307
+ return this.check(_gte(value, params));
13308
+ },
13309
+ min(value, params) {
13310
+ return this.check(_gte(value, params));
13311
+ },
13312
+ lt(value, params) {
13313
+ return this.check(_lt(value, params));
13314
+ },
13315
+ lte(value, params) {
13316
+ return this.check(_lte(value, params));
13317
+ },
13318
+ max(value, params) {
13319
+ return this.check(_lte(value, params));
13320
+ },
13321
+ int(params) {
13322
+ return this.check(int(params));
13323
+ },
13324
+ safe(params) {
13325
+ return this.check(int(params));
13326
+ },
13327
+ positive(params) {
13328
+ return this.check(_gt(0, params));
13329
+ },
13330
+ nonnegative(params) {
13331
+ return this.check(_gte(0, params));
13332
+ },
13333
+ negative(params) {
13334
+ return this.check(_lt(0, params));
13335
+ },
13336
+ nonpositive(params) {
13337
+ return this.check(_lte(0, params));
13338
+ },
13339
+ multipleOf(value, params) {
13340
+ return this.check(_multipleOf(value, params));
13341
+ },
13342
+ step(value, params) {
13343
+ return this.check(_multipleOf(value, params));
13344
+ },
13345
+ finite() {
13346
+ return this;
13347
+ }
13348
+ });
12673
13349
  const bag = inst._zod.bag;
12674
13350
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
12675
13351
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -12816,11 +13492,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12816
13492
  ZodType.init(inst, def);
12817
13493
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
12818
13494
  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;
13495
+ _installLazyMethods(inst, "ZodArray", {
13496
+ min(n, params) {
13497
+ return this.check(_minLength(n, params));
13498
+ },
13499
+ nonempty(params) {
13500
+ return this.check(_minLength(1, params));
13501
+ },
13502
+ max(n, params) {
13503
+ return this.check(_maxLength(n, params));
13504
+ },
13505
+ length(n, params) {
13506
+ return this.check(_length(n, params));
13507
+ },
13508
+ unwrap() {
13509
+ return this.element;
13510
+ }
13511
+ });
12824
13512
  });
12825
13513
  function array(element, params) {
12826
13514
  return _array(ZodArray, element, params);
@@ -12836,23 +13524,47 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12836
13524
  util_exports.defineLazy(inst, "shape", () => {
12837
13525
  return def.shape;
12838
13526
  });
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]);
13527
+ _installLazyMethods(inst, "ZodObject", {
13528
+ keyof() {
13529
+ return _enum2(Object.keys(this._zod.def.shape));
13530
+ },
13531
+ catchall(catchall) {
13532
+ return this.clone({ ...this._zod.def, catchall });
13533
+ },
13534
+ passthrough() {
13535
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13536
+ },
13537
+ loose() {
13538
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13539
+ },
13540
+ strict() {
13541
+ return this.clone({ ...this._zod.def, catchall: never() });
13542
+ },
13543
+ strip() {
13544
+ return this.clone({ ...this._zod.def, catchall: void 0 });
13545
+ },
13546
+ extend(incoming) {
13547
+ return util_exports.extend(this, incoming);
13548
+ },
13549
+ safeExtend(incoming) {
13550
+ return util_exports.safeExtend(this, incoming);
13551
+ },
13552
+ merge(other) {
13553
+ return util_exports.merge(this, other);
13554
+ },
13555
+ pick(mask) {
13556
+ return util_exports.pick(this, mask);
13557
+ },
13558
+ omit(mask) {
13559
+ return util_exports.omit(this, mask);
13560
+ },
13561
+ partial(...args) {
13562
+ return util_exports.partial(ZodOptional, this, args[0]);
13563
+ },
13564
+ required(...args) {
13565
+ return util_exports.required(ZodNonOptional, this, args[0]);
13566
+ }
13567
+ });
12856
13568
  });
12857
13569
  function object(shape, params) {
12858
13570
  const def = {
@@ -12957,6 +13669,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12957
13669
  inst.valueType = def.valueType;
12958
13670
  });
12959
13671
  function record(keyType, valueType, params) {
13672
+ if (!valueType || !valueType._zod) {
13673
+ return new ZodRecord({
13674
+ type: "record",
13675
+ keyType: string2(),
13676
+ valueType: keyType,
13677
+ ...util_exports.normalizeParams(valueType)
13678
+ });
13679
+ }
12960
13680
  return new ZodRecord({
12961
13681
  type: "record",
12962
13682
  keyType,
@@ -13128,10 +13848,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13128
13848
  if (output instanceof Promise) {
13129
13849
  return output.then((output2) => {
13130
13850
  payload.value = output2;
13851
+ payload.fallback = true;
13131
13852
  return payload;
13132
13853
  });
13133
13854
  }
13134
13855
  payload.value = output;
13856
+ payload.fallback = true;
13135
13857
  return payload;
13136
13858
  };
13137
13859
  });
@@ -13286,6 +14008,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13286
14008
  reverseTransform: params.encode
13287
14009
  });
13288
14010
  }
14011
+ function invertCodec(codec2) {
14012
+ const def = codec2._zod.def;
14013
+ return new ZodCodec({
14014
+ type: "pipe",
14015
+ in: def.out,
14016
+ out: def.in,
14017
+ transform: def.reverseTransform,
14018
+ reverseTransform: def.transform
14019
+ });
14020
+ }
14021
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
14022
+ ZodPipe.init(inst, def);
14023
+ $ZodPreprocess.init(inst, def);
14024
+ });
13289
14025
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13290
14026
  $ZodReadonly.init(inst, def);
13291
14027
  ZodType.init(inst, def);
@@ -13365,8 +14101,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13365
14101
  function refine(fn, _params = {}) {
13366
14102
  return _refine(ZodCustom, fn, _params);
13367
14103
  }
13368
- function superRefine(fn) {
13369
- return _superRefine(fn);
14104
+ function superRefine(fn, params) {
14105
+ return _superRefine(fn, params);
13370
14106
  }
13371
14107
  var describe2 = describe;
13372
14108
  var meta2 = meta;
@@ -13404,7 +14140,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13404
14140
  return jsonSchema;
13405
14141
  }
13406
14142
  function preprocess(fn, schema) {
13407
- return pipe(transform(fn), schema);
14143
+ return new ZodPreprocess({
14144
+ type: "pipe",
14145
+ in: transform(fn),
14146
+ out: schema
14147
+ });
13408
14148
  }
13409
14149
 
13410
14150
  // node_modules/zod/v4/classic/compat.js
@@ -13825,12 +14565,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13825
14565
  default:
13826
14566
  throw new Error(`Unsupported type: ${type}`);
13827
14567
  }
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
14568
  return zodSchema;
13835
14569
  }
13836
14570
  function convertSchema(schema, ctx) {
@@ -13867,6 +14601,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13867
14601
  if (schema.readOnly === true) {
13868
14602
  baseSchema = z.readonly(baseSchema);
13869
14603
  }
14604
+ if (schema.default !== void 0) {
14605
+ baseSchema = baseSchema.default(schema.default);
14606
+ }
13870
14607
  const extraMeta = {};
13871
14608
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
13872
14609
  for (const key of coreMetadataKeys) {
@@ -13888,23 +14625,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13888
14625
  if (Object.keys(extraMeta).length > 0) {
13889
14626
  ctx.registry.add(baseSchema, extraMeta);
13890
14627
  }
14628
+ if (schema.description) {
14629
+ baseSchema = baseSchema.describe(schema.description);
14630
+ }
13891
14631
  return baseSchema;
13892
14632
  }
13893
14633
  function fromJSONSchema(schema, params) {
13894
14634
  if (typeof schema === "boolean") {
13895
14635
  return schema ? z.any() : z.never();
13896
14636
  }
13897
- const version2 = detectVersion(schema, params?.defaultTarget);
13898
- const defs = schema.$defs || schema.definitions || {};
14637
+ let normalized;
14638
+ try {
14639
+ normalized = JSON.parse(JSON.stringify(schema));
14640
+ } catch {
14641
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14642
+ }
14643
+ const version2 = detectVersion(normalized, params?.defaultTarget);
14644
+ const defs = normalized.$defs || normalized.definitions || {};
13899
14645
  const ctx = {
13900
14646
  version: version2,
13901
14647
  defs,
13902
14648
  refs: /* @__PURE__ */ new Map(),
13903
14649
  processing: /* @__PURE__ */ new Set(),
13904
- rootSchema: schema,
14650
+ rootSchema: normalized,
13905
14651
  registry: params?.registry ?? globalRegistry
13906
14652
  };
13907
- return convertSchema(schema, ctx);
14653
+ return convertSchema(normalized, ctx);
13908
14654
  }
13909
14655
 
13910
14656
  // node_modules/zod/v4/classic/coerce.js
@@ -13972,7 +14718,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13972
14718
  };
13973
14719
  var src_default = new PreScriptTestPlugin();
13974
14720
 
13975
- // dist/_adapter_entry_59df686a-e5bf-42bd-b613-e8c55f4d2b70.ts
14721
+ // dist/_adapter_entry_a7d76603-acdb-40be-8c87-59b0022833af.ts
13976
14722
  if (!globalThis.__openTabs) {
13977
14723
  globalThis.__openTabs = {};
13978
14724
  } else {
@@ -14190,5 +14936,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14190
14936
  };
14191
14937
  delete src_default.onDeactivate;
14192
14938
  }
14193
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["prescript-test"]){var a=o.adapters["prescript-test"];a.__adapterHash="421dfa6b053b42b6a7e437fee174d1983e0011de71b1e09d558b61457b4227d7";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});}})();
14939
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["prescript-test"]){var a=o.adapters["prescript-test"];a.__adapterHash="34e72de03f51c0d59c8c2dc617f8a6771d551eb9fb8818df8ce007398c2502c3";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
14940
  //# sourceMappingURL=adapter.iife.js.map