@settlemint/sdk-eas 2.4.1-prb593b885 → 2.4.1-prc7777fc9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eas.js CHANGED
@@ -88,9 +88,7 @@ const EAS_FIELD_TYPES = {
88
88
  };
89
89
 
90
90
  //#endregion
91
- //#region ../../node_modules/zod/v4/core/core.js
92
- /** A special constant with type `never` */
93
- const NEVER = Object.freeze({ status: "aborted" });
91
+ //#region ../../node_modules/zod/dist/esm/v4/core/core.js
94
92
  function $constructor(name, initializer$2, params) {
95
93
  function init(inst, def) {
96
94
  var _a;
@@ -141,7 +139,7 @@ function config(newConfig) {
141
139
  }
142
140
 
143
141
  //#endregion
144
- //#region ../../node_modules/zod/v4/core/util.js
142
+ //#region ../../node_modules/zod/dist/esm/v4/core/util.js
145
143
  var util_exports = {};
146
144
  __export(util_exports, {
147
145
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -156,7 +154,6 @@ __export(util_exports, {
156
154
  assertNotEqual: () => assertNotEqual,
157
155
  assignProp: () => assignProp,
158
156
  cached: () => cached,
159
- captureStackTrace: () => captureStackTrace,
160
157
  cleanEnum: () => cleanEnum,
161
158
  cleanRegex: () => cleanRegex,
162
159
  clone: () => clone,
@@ -295,14 +292,10 @@ function randomString(length = 10) {
295
292
  function esc(str) {
296
293
  return JSON.stringify(str);
297
294
  }
298
- const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
299
295
  function isObject(data) {
300
296
  return typeof data === "object" && data !== null && !Array.isArray(data);
301
297
  }
302
298
  const allowsEval = cached(() => {
303
- if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
304
- return false;
305
- }
306
299
  try {
307
300
  const F = Function;
308
301
  new F("");
@@ -311,6 +304,9 @@ const allowsEval = cached(() => {
311
304
  return false;
312
305
  }
313
306
  });
307
+ function _isObject(o) {
308
+ return Object.prototype.toString.call(o) === "[object Object]";
309
+ }
314
310
  function isPlainObject(o) {
315
311
  if (isObject(o) === false) return false;
316
312
  const ctor = o.constructor;
@@ -490,9 +486,6 @@ function omit(schema, mask) {
490
486
  });
491
487
  }
492
488
  function extend(schema, shape) {
493
- if (!isPlainObject(shape)) {
494
- throw new Error("Invalid input to extend: expected a plain object");
495
- }
496
489
  const def = {
497
490
  ...schema._zod.def,
498
491
  get shape() {
@@ -580,7 +573,7 @@ function required(Class$1, schema, mask) {
580
573
  }
581
574
  function aborted(x, startIndex = 0) {
582
575
  for (let i = startIndex; i < x.issues.length; i++) {
583
- if (x.issues[i]?.continue !== true) return true;
576
+ if (x.issues[i].continue !== true) return true;
584
577
  }
585
578
  return false;
586
579
  }
@@ -644,7 +637,7 @@ var Class = class {
644
637
  };
645
638
 
646
639
  //#endregion
647
- //#region ../../node_modules/zod/v4/core/errors.js
640
+ //#region ../../node_modules/zod/dist/esm/v4/core/errors.js
648
641
  const initializer$1 = (inst, def) => {
649
642
  inst.name = "$ZodError";
650
643
  Object.defineProperty(inst, "_zod", {
@@ -661,17 +654,13 @@ const initializer$1 = (inst, def) => {
661
654
  },
662
655
  enumerable: true
663
656
  });
664
- Object.defineProperty(inst, "toString", {
665
- value: () => inst.message,
666
- enumerable: false
667
- });
668
657
  };
669
658
  const $ZodError = $constructor("$ZodError", initializer$1);
670
659
  const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
671
- function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
660
+ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
672
661
  const fieldErrors = {};
673
662
  const formErrors = [];
674
- for (const sub of error$39.issues) {
663
+ for (const sub of error$37.issues) {
675
664
  if (sub.path.length > 0) {
676
665
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
677
666
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -684,13 +673,13 @@ function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
684
673
  fieldErrors
685
674
  };
686
675
  }
687
- function formatError(error$39, _mapper) {
676
+ function formatError(error$37, _mapper) {
688
677
  const mapper = _mapper || function(issue$1) {
689
678
  return issue$1.message;
690
679
  };
691
680
  const fieldErrors = { _errors: [] };
692
- const processError = (error$40) => {
693
- for (const issue$1 of error$40.issues) {
681
+ const processError = (error$38) => {
682
+ for (const issue$1 of error$38.issues) {
694
683
  if (issue$1.code === "invalid_union" && issue$1.errors.length) {
695
684
  issue$1.errors.map((issues) => processError({ issues }));
696
685
  } else if (issue$1.code === "invalid_key") {
@@ -717,17 +706,17 @@ function formatError(error$39, _mapper) {
717
706
  }
718
707
  }
719
708
  };
720
- processError(error$39);
709
+ processError(error$37);
721
710
  return fieldErrors;
722
711
  }
723
- function treeifyError(error$39, _mapper) {
712
+ function treeifyError(error$37, _mapper) {
724
713
  const mapper = _mapper || function(issue$1) {
725
714
  return issue$1.message;
726
715
  };
727
716
  const result = { errors: [] };
728
- const processError = (error$40, path = []) => {
717
+ const processError = (error$38, path = []) => {
729
718
  var _a, _b;
730
- for (const issue$1 of error$40.issues) {
719
+ for (const issue$1 of error$38.issues) {
731
720
  if (issue$1.code === "invalid_union" && issue$1.errors.length) {
732
721
  issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
733
722
  } else if (issue$1.code === "invalid_key") {
@@ -762,7 +751,7 @@ function treeifyError(error$39, _mapper) {
762
751
  }
763
752
  }
764
753
  };
765
- processError(error$39);
754
+ processError(error$37);
766
755
  return result;
767
756
  }
768
757
  /** Format a ZodError as a human-readable string in the following form.
@@ -810,9 +799,9 @@ function toDotPath(path) {
810
799
  }
811
800
  return segs.join("");
812
801
  }
813
- function prettifyError(error$39) {
802
+ function prettifyError(error$37) {
814
803
  const lines = [];
815
- const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
804
+ const issues = [...error$37.issues].sort((a, b) => a.path.length - b.path.length);
816
805
  for (const issue$1 of issues) {
817
806
  lines.push(`✖ ${issue$1.message}`);
818
807
  if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
@@ -821,7 +810,7 @@ function prettifyError(error$39) {
821
810
  }
822
811
 
823
812
  //#endregion
824
- //#region ../../node_modules/zod/v4/core/parse.js
813
+ //#region ../../node_modules/zod/dist/esm/v4/core/parse.js
825
814
  const _parse = (_Err) => (schema, value, _ctx, _params) => {
826
815
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
827
816
  const result = schema._zod.run({
@@ -833,7 +822,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
833
822
  }
834
823
  if (result.issues.length) {
835
824
  const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
836
- captureStackTrace(e, _params?.callee);
825
+ Error.captureStackTrace(e, _params?.callee);
837
826
  throw e;
838
827
  }
839
828
  return result.value;
@@ -848,7 +837,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
848
837
  if (result instanceof Promise) result = await result;
849
838
  if (result.issues.length) {
850
839
  const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
851
- captureStackTrace(e, params?.callee);
840
+ Error.captureStackTrace(e, params?.callee);
852
841
  throw e;
853
842
  }
854
843
  return result.value;
@@ -893,9 +882,10 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
893
882
  const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
894
883
 
895
884
  //#endregion
896
- //#region ../../node_modules/zod/v4/core/regexes.js
885
+ //#region ../../node_modules/zod/dist/esm/v4/core/regexes.js
897
886
  var regexes_exports = {};
898
887
  __export(regexes_exports, {
888
+ _emoji: () => _emoji$1,
899
889
  base64: () => base64$1,
900
890
  base64url: () => base64url$1,
901
891
  bigint: () => bigint$2,
@@ -981,23 +971,27 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
981
971
  const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
982
972
  const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
983
973
  const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
984
- const 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])))`;
974
+ const 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])))`;
985
975
  const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
986
976
  function timeSource(args) {
987
- const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
988
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
977
+ let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
978
+ if (args.precision) {
979
+ regex = `${regex}\\.\\d{${args.precision}}`;
980
+ } else if (args.precision == null) {
981
+ regex = `${regex}(\\.\\d+)?`;
982
+ }
989
983
  return regex;
990
984
  }
991
985
  function time$1(args) {
992
986
  return new RegExp(`^${timeSource(args)}$`);
993
987
  }
994
988
  function datetime$1(args) {
995
- const time$2 = timeSource({ precision: args.precision });
996
- const opts = ["Z"];
997
- if (args.local) opts.push("");
998
- if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
999
- const timeRegex = `${time$2}(?:${opts.join("|")})`;
1000
- return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
989
+ let regex = `${dateSource}T${timeSource(args)}`;
990
+ const opts = [];
991
+ opts.push(args.local ? `Z?` : `Z`);
992
+ if (args.offset) opts.push(`([+-]\\d{2}:?\\d{2})`);
993
+ regex = `${regex}(${opts.join("|")})`;
994
+ return new RegExp(`^${regex}$`);
1001
995
  }
1002
996
  const string$2 = (params) => {
1003
997
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
@@ -1013,7 +1007,7 @@ const lowercase = /^[^A-Z]*$/;
1013
1007
  const uppercase = /^[^a-z]*$/;
1014
1008
 
1015
1009
  //#endregion
1016
- //#region ../../node_modules/zod/v4/core/checks.js
1010
+ //#region ../../node_modules/zod/dist/esm/v4/core/checks.js
1017
1011
  const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1018
1012
  var _a;
1019
1013
  inst._zod ?? (inst._zod = {});
@@ -1204,12 +1198,11 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
1204
1198
  };
1205
1199
  });
1206
1200
  const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
1207
- var _a;
1208
1201
  $ZodCheck.init(inst, def);
1209
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1202
+ inst._zod.when = (payload) => {
1210
1203
  const val = payload.value;
1211
1204
  return !nullish$1(val) && val.size !== undefined;
1212
- });
1205
+ };
1213
1206
  inst._zod.onattach.push((inst$1) => {
1214
1207
  const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1215
1208
  if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
@@ -1229,12 +1222,11 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
1229
1222
  };
1230
1223
  });
1231
1224
  const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
1232
- var _a;
1233
1225
  $ZodCheck.init(inst, def);
1234
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1226
+ inst._zod.when = (payload) => {
1235
1227
  const val = payload.value;
1236
1228
  return !nullish$1(val) && val.size !== undefined;
1237
- });
1229
+ };
1238
1230
  inst._zod.onattach.push((inst$1) => {
1239
1231
  const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1240
1232
  if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
@@ -1254,12 +1246,11 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
1254
1246
  };
1255
1247
  });
1256
1248
  const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
1257
- var _a;
1258
1249
  $ZodCheck.init(inst, def);
1259
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1250
+ inst._zod.when = (payload) => {
1260
1251
  const val = payload.value;
1261
1252
  return !nullish$1(val) && val.size !== undefined;
1262
- });
1253
+ };
1263
1254
  inst._zod.onattach.push((inst$1) => {
1264
1255
  const bag = inst$1._zod.bag;
1265
1256
  bag.minimum = def.size;
@@ -1280,8 +1271,6 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
1280
1271
  code: "too_small",
1281
1272
  minimum: def.size
1282
1273
  },
1283
- inclusive: true,
1284
- exact: true,
1285
1274
  input: payload.value,
1286
1275
  inst,
1287
1276
  continue: !def.abort
@@ -1289,12 +1278,11 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
1289
1278
  };
1290
1279
  });
1291
1280
  const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1292
- var _a;
1293
1281
  $ZodCheck.init(inst, def);
1294
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1282
+ inst._zod.when = (payload) => {
1295
1283
  const val = payload.value;
1296
1284
  return !nullish$1(val) && val.length !== undefined;
1297
- });
1285
+ };
1298
1286
  inst._zod.onattach.push((inst$1) => {
1299
1287
  const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1300
1288
  if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
@@ -1316,12 +1304,11 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
1316
1304
  };
1317
1305
  });
1318
1306
  const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
1319
- var _a;
1320
1307
  $ZodCheck.init(inst, def);
1321
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1308
+ inst._zod.when = (payload) => {
1322
1309
  const val = payload.value;
1323
1310
  return !nullish$1(val) && val.length !== undefined;
1324
- });
1311
+ };
1325
1312
  inst._zod.onattach.push((inst$1) => {
1326
1313
  const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1327
1314
  if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
@@ -1343,12 +1330,11 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
1343
1330
  };
1344
1331
  });
1345
1332
  const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1346
- var _a;
1347
1333
  $ZodCheck.init(inst, def);
1348
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1334
+ inst._zod.when = (payload) => {
1349
1335
  const val = payload.value;
1350
1336
  return !nullish$1(val) && val.length !== undefined;
1351
- });
1337
+ };
1352
1338
  inst._zod.onattach.push((inst$1) => {
1353
1339
  const bag = inst$1._zod.bag;
1354
1340
  bag.minimum = def.length;
@@ -1370,8 +1356,6 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
1370
1356
  code: "too_small",
1371
1357
  minimum: def.length
1372
1358
  },
1373
- inclusive: true,
1374
- exact: true,
1375
1359
  input: payload.value,
1376
1360
  inst,
1377
1361
  continue: !def.abort
@@ -1379,7 +1363,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
1379
1363
  };
1380
1364
  });
1381
1365
  const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
1382
- var _a, _b;
1366
+ var _a;
1383
1367
  $ZodCheck.init(inst, def);
1384
1368
  inst._zod.onattach.push((inst$1) => {
1385
1369
  const bag = inst$1._zod.bag;
@@ -1389,7 +1373,8 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
1389
1373
  bag.patterns.add(def.pattern);
1390
1374
  }
1391
1375
  });
1392
- if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
1376
+ (_a = inst._zod).check ?? (_a.check = (payload) => {
1377
+ if (!def.pattern) throw new Error("Not implemented.");
1393
1378
  def.pattern.lastIndex = 0;
1394
1379
  if (def.pattern.test(payload.value)) return;
1395
1380
  payload.issues.push({
@@ -1402,7 +1387,6 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
1402
1387
  continue: !def.abort
1403
1388
  });
1404
1389
  });
1405
- else (_b = inst._zod).check ?? (_b.check = () => {});
1406
1390
  });
1407
1391
  const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
1408
1392
  $ZodCheckStringFormat.init(inst, def);
@@ -1526,6 +1510,7 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
1526
1510
  code: "invalid_value",
1527
1511
  values: def.mime,
1528
1512
  input: payload.value.type,
1513
+ path: ["type"],
1529
1514
  inst
1530
1515
  });
1531
1516
  };
@@ -1538,7 +1523,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
1538
1523
  });
1539
1524
 
1540
1525
  //#endregion
1541
- //#region ../../node_modules/zod/v4/core/doc.js
1526
+ //#region ../../node_modules/zod/dist/esm/v4/core/doc.js
1542
1527
  var Doc = class {
1543
1528
  constructor(args = []) {
1544
1529
  this.content = [];
@@ -1574,18 +1559,19 @@ var Doc = class {
1574
1559
  };
1575
1560
 
1576
1561
  //#endregion
1577
- //#region ../../node_modules/zod/v4/core/versions.js
1562
+ //#region ../../node_modules/zod/dist/esm/v4/core/versions.js
1578
1563
  const version = {
1579
1564
  major: 4,
1580
1565
  minor: 0,
1581
- patch: 2
1566
+ patch: 0
1582
1567
  };
1583
1568
 
1584
1569
  //#endregion
1585
- //#region ../../node_modules/zod/v4/core/schemas.js
1570
+ //#region ../../node_modules/zod/dist/esm/v4/core/schemas.js
1586
1571
  const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1587
1572
  var _a;
1588
1573
  inst ?? (inst = {});
1574
+ inst._zod.id = def.type + "_" + randomString(10);
1589
1575
  inst._zod.def = def;
1590
1576
  inst._zod.bag = inst._zod.bag || {};
1591
1577
  inst._zod.version = version;
@@ -1608,11 +1594,13 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1608
1594
  let isAborted = aborted(payload);
1609
1595
  let asyncResult;
1610
1596
  for (const ch of checks$1) {
1611
- if (ch._zod.def.when) {
1612
- const shouldRun = ch._zod.def.when(payload);
1597
+ if (ch._zod.when) {
1598
+ const shouldRun = ch._zod.when(payload);
1613
1599
  if (!shouldRun) continue;
1614
- } else if (isAborted) {
1615
- continue;
1600
+ } else {
1601
+ if (isAborted) {
1602
+ continue;
1603
+ }
1616
1604
  }
1617
1605
  const currLen = payload.issues.length;
1618
1606
  const _ = ch._zod.check(payload);
@@ -1712,9 +1700,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1712
1700
  $ZodStringFormat.init(inst, def);
1713
1701
  inst._zod.check = (payload) => {
1714
1702
  try {
1715
- const orig = payload.value;
1716
- const url$1 = new URL(orig);
1717
- const href = url$1.href;
1703
+ const url$1 = new URL(payload.value);
1718
1704
  if (def.hostname) {
1719
1705
  def.hostname.lastIndex = 0;
1720
1706
  if (!def.hostname.test(url$1.hostname)) {
@@ -1743,11 +1729,6 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1743
1729
  });
1744
1730
  }
1745
1731
  }
1746
- if (!orig.endsWith("/") && href.endsWith("/")) {
1747
- payload.value = href.slice(0, -1);
1748
- } else {
1749
- payload.value = href;
1750
- }
1751
1732
  return;
1752
1733
  } catch (_) {
1753
1734
  payload.issues.push({
@@ -1918,7 +1899,6 @@ function isValidJWT(token, algorithm = null) {
1918
1899
  const tokensParts = token.split(".");
1919
1900
  if (tokensParts.length !== 3) return false;
1920
1901
  const [header] = tokensParts;
1921
- if (!header) return false;
1922
1902
  const parsedHeader = JSON.parse(atob(header));
1923
1903
  if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
1924
1904
  if (!parsedHeader.alg) return false;
@@ -1941,19 +1921,6 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
1941
1921
  });
1942
1922
  };
1943
1923
  });
1944
- const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
1945
- $ZodStringFormat.init(inst, def);
1946
- inst._zod.check = (payload) => {
1947
- if (def.fn(payload.value)) return;
1948
- payload.issues.push({
1949
- code: "invalid_format",
1950
- format: def.format,
1951
- input: payload.value,
1952
- inst,
1953
- continue: !def.abort
1954
- });
1955
- };
1956
- });
1957
1924
  const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
1958
1925
  $ZodType.init(inst, def);
1959
1926
  inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
@@ -2005,11 +1972,12 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
2005
1972
  if (def.coerce) try {
2006
1973
  payload.value = BigInt(payload.value);
2007
1974
  } catch (_) {}
2008
- if (typeof payload.value === "bigint") return payload;
1975
+ const { value: input } = payload;
1976
+ if (typeof input === "bigint") return payload;
2009
1977
  payload.issues.push({
2010
1978
  expected: "bigint",
2011
1979
  code: "invalid_type",
2012
- input: payload.value,
1980
+ input,
2013
1981
  inst
2014
1982
  });
2015
1983
  return payload;
@@ -2022,7 +1990,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
2022
1990
  const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
2023
1991
  $ZodType.init(inst, def);
2024
1992
  inst._zod.parse = (payload, _ctx) => {
2025
- const input = payload.value;
1993
+ const { value: input } = payload;
2026
1994
  if (typeof input === "symbol") return payload;
2027
1995
  payload.issues.push({
2028
1996
  expected: "symbol",
@@ -2037,10 +2005,8 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
2037
2005
  $ZodType.init(inst, def);
2038
2006
  inst._zod.pattern = _undefined$2;
2039
2007
  inst._zod.values = new Set([undefined]);
2040
- inst._zod.optin = "optional";
2041
- inst._zod.optout = "optional";
2042
2008
  inst._zod.parse = (payload, _ctx) => {
2043
- const input = payload.value;
2009
+ const { value: input } = payload;
2044
2010
  if (typeof input === "undefined") return payload;
2045
2011
  payload.issues.push({
2046
2012
  expected: "undefined",
@@ -2056,7 +2022,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
2056
2022
  inst._zod.pattern = _null$2;
2057
2023
  inst._zod.values = new Set([null]);
2058
2024
  inst._zod.parse = (payload, _ctx) => {
2059
- const input = payload.value;
2025
+ const { value: input } = payload;
2060
2026
  if (input === null) return payload;
2061
2027
  payload.issues.push({
2062
2028
  expected: "null",
@@ -2090,7 +2056,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
2090
2056
  const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
2091
2057
  $ZodType.init(inst, def);
2092
2058
  inst._zod.parse = (payload, _ctx) => {
2093
- const input = payload.value;
2059
+ const { value: input } = payload;
2094
2060
  if (typeof input === "undefined") return payload;
2095
2061
  payload.issues.push({
2096
2062
  expected: "void",
@@ -2221,20 +2187,19 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2221
2187
  "payload",
2222
2188
  "ctx"
2223
2189
  ]);
2224
- const normalized = _normalized.value;
2190
+ const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
2225
2191
  const parseStr = (key) => {
2226
2192
  const k = esc(key);
2227
2193
  return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
2228
2194
  };
2229
2195
  doc.write(`const input = payload.value;`);
2230
2196
  const ids = Object.create(null);
2231
- let counter = 0;
2232
- for (const key of normalized.keys) {
2233
- ids[key] = `key_${counter++}`;
2197
+ for (const key of keys) {
2198
+ ids[key] = randomString(15);
2234
2199
  }
2235
2200
  doc.write(`const newResult = {}`);
2236
- for (const key of normalized.keys) {
2237
- if (normalized.optionalKeys.has(key)) {
2201
+ for (const key of keys) {
2202
+ if (optionalKeys$1.has(key)) {
2238
2203
  const id = ids[key];
2239
2204
  doc.write(`const ${id} = ${parseStr(key)};`);
2240
2205
  const k = esc(key);
@@ -2279,7 +2244,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2279
2244
  const jit = !globalConfig.jitless;
2280
2245
  const allowsEval$1 = allowsEval;
2281
2246
  const fastEnabled = jit && allowsEval$1.value;
2282
- const catchall = def.catchall;
2247
+ const { catchall } = def;
2283
2248
  let value;
2284
2249
  inst._zod.parse = (payload, ctx) => {
2285
2250
  value ?? (value = _normalized.value);
@@ -2309,10 +2274,12 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2309
2274
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
2310
2275
  if (r instanceof Promise) {
2311
2276
  proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
2312
- } else if (isOptional) {
2313
- handleOptionalObjectResult(r, payload, key, input);
2314
2277
  } else {
2315
- handleObjectResult(r, payload, key);
2278
+ if (isOptional) {
2279
+ handleOptionalObjectResult(r, payload, key, input);
2280
+ } else {
2281
+ handleObjectResult(r, payload, key);
2282
+ }
2316
2283
  }
2317
2284
  }
2318
2285
  }
@@ -2370,8 +2337,6 @@ function handleUnionResults(results, final, inst, ctx) {
2370
2337
  }
2371
2338
  const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
2372
2339
  $ZodType.init(inst, def);
2373
- defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
2374
- defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
2375
2340
  defineLazy(inst._zod, "values", () => {
2376
2341
  if (def.options.every((o) => o._zod.values)) {
2377
2342
  return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
@@ -2471,7 +2436,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
2471
2436
  const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
2472
2437
  $ZodType.init(inst, def);
2473
2438
  inst._zod.parse = (payload, ctx) => {
2474
- const input = payload.value;
2439
+ const { value: input } = payload;
2475
2440
  const left = def.left._zod.run({
2476
2441
  value: input,
2477
2442
  issues: []
@@ -2928,9 +2893,6 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
2928
2893
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
2929
2894
  });
2930
2895
  inst._zod.parse = (payload, ctx) => {
2931
- if (def.innerType._zod.optin === "optional") {
2932
- return def.innerType._zod.run(payload, ctx);
2933
- }
2934
2896
  if (payload.value === undefined) {
2935
2897
  return payload;
2936
2898
  }
@@ -3030,7 +2992,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
3030
2992
  });
3031
2993
  const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
3032
2994
  $ZodType.init(inst, def);
3033
- inst._zod.optin = "optional";
2995
+ defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
3034
2996
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
3035
2997
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
3036
2998
  inst._zod.parse = (payload, ctx) => {
@@ -3101,7 +3063,6 @@ function handlePipeResult(left, def, ctx) {
3101
3063
  const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
3102
3064
  $ZodType.init(inst, def);
3103
3065
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
3104
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
3105
3066
  defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
3106
3067
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
3107
3068
  inst._zod.parse = (payload, ctx) => {
@@ -3152,7 +3113,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
3152
3113
  input: payload.value,
3153
3114
  inst,
3154
3115
  code: "invalid_format",
3155
- format: def.format ?? "template_literal",
3116
+ format: "template_literal",
3156
3117
  pattern: inst._zod.pattern.source
3157
3118
  });
3158
3119
  return payload;
@@ -3212,8 +3173,8 @@ function handleRefineResult(result, payload, input, inst) {
3212
3173
  }
3213
3174
 
3214
3175
  //#endregion
3215
- //#region ../../node_modules/zod/v4/locales/ar.js
3216
- const error$38 = () => {
3176
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ar.js
3177
+ const error$36 = () => {
3217
3178
  const Sizable = {
3218
3179
  string: {
3219
3180
  unit: "حرف",
@@ -3235,7 +3196,7 @@ const error$38 = () => {
3235
3196
  function getSizing(origin) {
3236
3197
  return Sizable[origin] ?? null;
3237
3198
  }
3238
- const parsedType$3 = (data) => {
3199
+ const parsedType$2 = (data) => {
3239
3200
  const t = typeof data;
3240
3201
  switch (t) {
3241
3202
  case "number": {
@@ -3287,7 +3248,7 @@ const error$38 = () => {
3287
3248
  };
3288
3249
  return (issue$1) => {
3289
3250
  switch (issue$1.code) {
3290
- case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
3251
+ case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$2(issue$1.input)}`;
3291
3252
  case "invalid_value":
3292
3253
  if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
3293
3254
  return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
@@ -3323,12 +3284,12 @@ const error$38 = () => {
3323
3284
  };
3324
3285
  };
3325
3286
  function ar_default() {
3326
- return { localeError: error$38() };
3287
+ return { localeError: error$36() };
3327
3288
  }
3328
3289
 
3329
3290
  //#endregion
3330
- //#region ../../node_modules/zod/v4/locales/az.js
3331
- const error$37 = () => {
3291
+ //#region ../../node_modules/zod/dist/esm/v4/locales/az.js
3292
+ const error$35 = () => {
3332
3293
  const Sizable = {
3333
3294
  string: {
3334
3295
  unit: "simvol",
@@ -3350,7 +3311,7 @@ const error$37 = () => {
3350
3311
  function getSizing(origin) {
3351
3312
  return Sizable[origin] ?? null;
3352
3313
  }
3353
- const parsedType$3 = (data) => {
3314
+ const parsedType$2 = (data) => {
3354
3315
  const t = typeof data;
3355
3316
  switch (t) {
3356
3317
  case "number": {
@@ -3402,7 +3363,7 @@ const error$37 = () => {
3402
3363
  };
3403
3364
  return (issue$1) => {
3404
3365
  switch (issue$1.code) {
3405
- case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
3366
+ case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$2(issue$1.input)}`;
3406
3367
  case "invalid_value":
3407
3368
  if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
3408
3369
  return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
@@ -3436,11 +3397,11 @@ const error$37 = () => {
3436
3397
  };
3437
3398
  };
3438
3399
  function az_default() {
3439
- return { localeError: error$37() };
3400
+ return { localeError: error$35() };
3440
3401
  }
3441
3402
 
3442
3403
  //#endregion
3443
- //#region ../../node_modules/zod/v4/locales/be.js
3404
+ //#region ../../node_modules/zod/dist/esm/v4/locales/be.js
3444
3405
  function getBelarusianPlural(count, one, few, many) {
3445
3406
  const absCount = Math.abs(count);
3446
3407
  const lastDigit = absCount % 10;
@@ -3456,7 +3417,7 @@ function getBelarusianPlural(count, one, few, many) {
3456
3417
  }
3457
3418
  return many;
3458
3419
  }
3459
- const error$36 = () => {
3420
+ const error$34 = () => {
3460
3421
  const Sizable = {
3461
3422
  string: {
3462
3423
  unit: {
@@ -3494,7 +3455,7 @@ const error$36 = () => {
3494
3455
  function getSizing(origin) {
3495
3456
  return Sizable[origin] ?? null;
3496
3457
  }
3497
- const parsedType$3 = (data) => {
3458
+ const parsedType$2 = (data) => {
3498
3459
  const t = typeof data;
3499
3460
  switch (t) {
3500
3461
  case "number": {
@@ -3546,7 +3507,7 @@ const error$36 = () => {
3546
3507
  };
3547
3508
  return (issue$1) => {
3548
3509
  switch (issue$1.code) {
3549
- case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
3510
+ case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$2(issue$1.input)}`;
3550
3511
  case "invalid_value":
3551
3512
  if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
3552
3513
  return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
@@ -3588,12 +3549,12 @@ const error$36 = () => {
3588
3549
  };
3589
3550
  };
3590
3551
  function be_default() {
3591
- return { localeError: error$36() };
3552
+ return { localeError: error$34() };
3592
3553
  }
3593
3554
 
3594
3555
  //#endregion
3595
- //#region ../../node_modules/zod/v4/locales/ca.js
3596
- const error$35 = () => {
3556
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ca.js
3557
+ const error$33 = () => {
3597
3558
  const Sizable = {
3598
3559
  string: {
3599
3560
  unit: "caràcters",
@@ -3615,7 +3576,7 @@ const error$35 = () => {
3615
3576
  function getSizing(origin) {
3616
3577
  return Sizable[origin] ?? null;
3617
3578
  }
3618
- const parsedType$3 = (data) => {
3579
+ const parsedType$2 = (data) => {
3619
3580
  const t = typeof data;
3620
3581
  switch (t) {
3621
3582
  case "number": {
@@ -3667,7 +3628,7 @@ const error$35 = () => {
3667
3628
  };
3668
3629
  return (issue$1) => {
3669
3630
  switch (issue$1.code) {
3670
- case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
3631
+ case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$2(issue$1.input)}`;
3671
3632
  case "invalid_value":
3672
3633
  if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
3673
3634
  return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
@@ -3705,12 +3666,12 @@ const error$35 = () => {
3705
3666
  };
3706
3667
  };
3707
3668
  function ca_default() {
3708
- return { localeError: error$35() };
3669
+ return { localeError: error$33() };
3709
3670
  }
3710
3671
 
3711
3672
  //#endregion
3712
- //#region ../../node_modules/zod/v4/locales/cs.js
3713
- const error$34 = () => {
3673
+ //#region ../../node_modules/zod/dist/esm/v4/locales/cs.js
3674
+ const error$32 = () => {
3714
3675
  const Sizable = {
3715
3676
  string: {
3716
3677
  unit: "znaků",
@@ -3732,7 +3693,7 @@ const error$34 = () => {
3732
3693
  function getSizing(origin) {
3733
3694
  return Sizable[origin] ?? null;
3734
3695
  }
3735
- const parsedType$3 = (data) => {
3696
+ const parsedType$2 = (data) => {
3736
3697
  const t = typeof data;
3737
3698
  switch (t) {
3738
3699
  case "number": {
@@ -3802,7 +3763,7 @@ const error$34 = () => {
3802
3763
  };
3803
3764
  return (issue$1) => {
3804
3765
  switch (issue$1.code) {
3805
- case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
3766
+ case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$2(issue$1.input)}`;
3806
3767
  case "invalid_value":
3807
3768
  if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
3808
3769
  return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
@@ -3840,12 +3801,12 @@ const error$34 = () => {
3840
3801
  };
3841
3802
  };
3842
3803
  function cs_default() {
3843
- return { localeError: error$34() };
3804
+ return { localeError: error$32() };
3844
3805
  }
3845
3806
 
3846
3807
  //#endregion
3847
- //#region ../../node_modules/zod/v4/locales/de.js
3848
- const error$33 = () => {
3808
+ //#region ../../node_modules/zod/dist/esm/v4/locales/de.js
3809
+ const error$31 = () => {
3849
3810
  const Sizable = {
3850
3811
  string: {
3851
3812
  unit: "Zeichen",
@@ -3867,7 +3828,7 @@ const error$33 = () => {
3867
3828
  function getSizing(origin) {
3868
3829
  return Sizable[origin] ?? null;
3869
3830
  }
3870
- const parsedType$3 = (data) => {
3831
+ const parsedType$2 = (data) => {
3871
3832
  const t = typeof data;
3872
3833
  switch (t) {
3873
3834
  case "number": {
@@ -3919,7 +3880,7 @@ const error$33 = () => {
3919
3880
  };
3920
3881
  return (issue$1) => {
3921
3882
  switch (issue$1.code) {
3922
- case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
3883
+ case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$2(issue$1.input)}`;
3923
3884
  case "invalid_value":
3924
3885
  if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
3925
3886
  return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
@@ -3955,12 +3916,12 @@ const error$33 = () => {
3955
3916
  };
3956
3917
  };
3957
3918
  function de_default() {
3958
- return { localeError: error$33() };
3919
+ return { localeError: error$31() };
3959
3920
  }
3960
3921
 
3961
3922
  //#endregion
3962
- //#region ../../node_modules/zod/v4/locales/en.js
3963
- const parsedType$2 = (data) => {
3923
+ //#region ../../node_modules/zod/dist/esm/v4/locales/en.js
3924
+ const parsedType$1 = (data) => {
3964
3925
  const t = typeof data;
3965
3926
  switch (t) {
3966
3927
  case "number": {
@@ -3980,7 +3941,7 @@ const parsedType$2 = (data) => {
3980
3941
  }
3981
3942
  return t;
3982
3943
  };
3983
- const error$32 = () => {
3944
+ const error$30 = () => {
3984
3945
  const Sizable = {
3985
3946
  string: {
3986
3947
  unit: "characters",
@@ -4034,7 +3995,7 @@ const error$32 = () => {
4034
3995
  };
4035
3996
  return (issue$1) => {
4036
3997
  switch (issue$1.code) {
4037
- case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
3998
+ case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$1(issue$1.input)}`;
4038
3999
  case "invalid_value":
4039
4000
  if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
4040
4001
  return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
@@ -4072,127 +4033,12 @@ const error$32 = () => {
4072
4033
  };
4073
4034
  };
4074
4035
  function en_default() {
4075
- return { localeError: error$32() };
4076
- }
4077
-
4078
- //#endregion
4079
- //#region ../../node_modules/zod/v4/locales/eo.js
4080
- const parsedType$1 = (data) => {
4081
- const t = typeof data;
4082
- switch (t) {
4083
- case "number": {
4084
- return Number.isNaN(data) ? "NaN" : "nombro";
4085
- }
4086
- case "object": {
4087
- if (Array.isArray(data)) {
4088
- return "tabelo";
4089
- }
4090
- if (data === null) {
4091
- return "senvalora";
4092
- }
4093
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4094
- return data.constructor.name;
4095
- }
4096
- }
4097
- }
4098
- return t;
4099
- };
4100
- const error$31 = () => {
4101
- const Sizable = {
4102
- string: {
4103
- unit: "karaktrojn",
4104
- verb: "havi"
4105
- },
4106
- file: {
4107
- unit: "bajtojn",
4108
- verb: "havi"
4109
- },
4110
- array: {
4111
- unit: "elementojn",
4112
- verb: "havi"
4113
- },
4114
- set: {
4115
- unit: "elementojn",
4116
- verb: "havi"
4117
- }
4118
- };
4119
- function getSizing(origin) {
4120
- return Sizable[origin] ?? null;
4121
- }
4122
- const Nouns = {
4123
- regex: "enigo",
4124
- email: "retadreso",
4125
- url: "URL",
4126
- emoji: "emoĝio",
4127
- uuid: "UUID",
4128
- uuidv4: "UUIDv4",
4129
- uuidv6: "UUIDv6",
4130
- nanoid: "nanoid",
4131
- guid: "GUID",
4132
- cuid: "cuid",
4133
- cuid2: "cuid2",
4134
- ulid: "ULID",
4135
- xid: "XID",
4136
- ksuid: "KSUID",
4137
- datetime: "ISO-datotempo",
4138
- date: "ISO-dato",
4139
- time: "ISO-tempo",
4140
- duration: "ISO-daŭro",
4141
- ipv4: "IPv4-adreso",
4142
- ipv6: "IPv6-adreso",
4143
- cidrv4: "IPv4-rango",
4144
- cidrv6: "IPv6-rango",
4145
- base64: "64-ume kodita karaktraro",
4146
- base64url: "URL-64-ume kodita karaktraro",
4147
- json_string: "JSON-karaktraro",
4148
- e164: "E.164-nombro",
4149
- jwt: "JWT",
4150
- template_literal: "enigo"
4151
- };
4152
- return (issue$1) => {
4153
- switch (issue$1.code) {
4154
- case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
4155
- case "invalid_value":
4156
- if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
4157
- return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
4158
- case "too_big": {
4159
- const adj = issue$1.inclusive ? "<=" : "<";
4160
- const sizing = getSizing(issue$1.origin);
4161
- if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
4162
- return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
4163
- }
4164
- case "too_small": {
4165
- const adj = issue$1.inclusive ? ">=" : ">";
4166
- const sizing = getSizing(issue$1.origin);
4167
- if (sizing) {
4168
- return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
4169
- }
4170
- return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
4171
- }
4172
- case "invalid_format": {
4173
- const _issue = issue$1;
4174
- if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
4175
- if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
4176
- if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
4177
- if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
4178
- return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
4179
- }
4180
- case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
4181
- case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
4182
- case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
4183
- case "invalid_union": return "Nevalida enigo";
4184
- case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
4185
- default: return `Nevalida enigo`;
4186
- }
4187
- };
4188
- };
4189
- function eo_default() {
4190
- return { localeError: error$31() };
4036
+ return { localeError: error$30() };
4191
4037
  }
4192
4038
 
4193
4039
  //#endregion
4194
- //#region ../../node_modules/zod/v4/locales/es.js
4195
- const error$30 = () => {
4040
+ //#region ../../node_modules/zod/dist/esm/v4/locales/es.js
4041
+ const error$29 = () => {
4196
4042
  const Sizable = {
4197
4043
  string: {
4198
4044
  unit: "caracteres",
@@ -4214,7 +4060,7 @@ const error$30 = () => {
4214
4060
  function getSizing(origin) {
4215
4061
  return Sizable[origin] ?? null;
4216
4062
  }
4217
- const parsedType$3 = (data) => {
4063
+ const parsedType$2 = (data) => {
4218
4064
  const t = typeof data;
4219
4065
  switch (t) {
4220
4066
  case "number": {
@@ -4266,7 +4112,7 @@ const error$30 = () => {
4266
4112
  };
4267
4113
  return (issue$1) => {
4268
4114
  switch (issue$1.code) {
4269
- case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
4115
+ case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$2(issue$1.input)}`;
4270
4116
  case "invalid_value":
4271
4117
  if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
4272
4118
  return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
@@ -4302,12 +4148,12 @@ const error$30 = () => {
4302
4148
  };
4303
4149
  };
4304
4150
  function es_default() {
4305
- return { localeError: error$30() };
4151
+ return { localeError: error$29() };
4306
4152
  }
4307
4153
 
4308
4154
  //#endregion
4309
- //#region ../../node_modules/zod/v4/locales/fa.js
4310
- const error$29 = () => {
4155
+ //#region ../../node_modules/zod/dist/esm/v4/locales/fa.js
4156
+ const error$28 = () => {
4311
4157
  const Sizable = {
4312
4158
  string: {
4313
4159
  unit: "کاراکتر",
@@ -4329,7 +4175,7 @@ const error$29 = () => {
4329
4175
  function getSizing(origin) {
4330
4176
  return Sizable[origin] ?? null;
4331
4177
  }
4332
- const parsedType$3 = (data) => {
4178
+ const parsedType$2 = (data) => {
4333
4179
  const t = typeof data;
4334
4180
  switch (t) {
4335
4181
  case "number": {
@@ -4381,7 +4227,7 @@ const error$29 = () => {
4381
4227
  };
4382
4228
  return (issue$1) => {
4383
4229
  switch (issue$1.code) {
4384
- case "invalid_type": return `ورودی نامعتبر: می‌بایست ${issue$1.expected} می‌بود، ${parsedType$3(issue$1.input)} دریافت شد`;
4230
+ case "invalid_type": return `ورودی نامعتبر: می‌بایست ${issue$1.expected} می‌بود، ${parsedType$2(issue$1.input)} دریافت شد`;
4385
4231
  case "invalid_value":
4386
4232
  if (issue$1.values.length === 1) {
4387
4233
  return `ورودی نامعتبر: می‌بایست ${stringifyPrimitive(issue$1.values[0])} می‌بود`;
@@ -4429,12 +4275,12 @@ const error$29 = () => {
4429
4275
  };
4430
4276
  };
4431
4277
  function fa_default() {
4432
- return { localeError: error$29() };
4278
+ return { localeError: error$28() };
4433
4279
  }
4434
4280
 
4435
4281
  //#endregion
4436
- //#region ../../node_modules/zod/v4/locales/fi.js
4437
- const error$28 = () => {
4282
+ //#region ../../node_modules/zod/dist/esm/v4/locales/fi.js
4283
+ const error$27 = () => {
4438
4284
  const Sizable = {
4439
4285
  string: {
4440
4286
  unit: "merkkiä",
@@ -4472,7 +4318,7 @@ const error$28 = () => {
4472
4318
  function getSizing(origin) {
4473
4319
  return Sizable[origin] ?? null;
4474
4320
  }
4475
- const parsedType$3 = (data) => {
4321
+ const parsedType$2 = (data) => {
4476
4322
  const t = typeof data;
4477
4323
  switch (t) {
4478
4324
  case "number": {
@@ -4524,7 +4370,7 @@ const error$28 = () => {
4524
4370
  };
4525
4371
  return (issue$1) => {
4526
4372
  switch (issue$1.code) {
4527
- case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
4373
+ case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$2(issue$1.input)}`;
4528
4374
  case "invalid_value":
4529
4375
  if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
4530
4376
  return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
@@ -4564,12 +4410,12 @@ const error$28 = () => {
4564
4410
  };
4565
4411
  };
4566
4412
  function fi_default() {
4567
- return { localeError: error$28() };
4413
+ return { localeError: error$27() };
4568
4414
  }
4569
4415
 
4570
4416
  //#endregion
4571
- //#region ../../node_modules/zod/v4/locales/fr.js
4572
- const error$27 = () => {
4417
+ //#region ../../node_modules/zod/dist/esm/v4/locales/fr.js
4418
+ const error$26 = () => {
4573
4419
  const Sizable = {
4574
4420
  string: {
4575
4421
  unit: "caractères",
@@ -4591,7 +4437,7 @@ const error$27 = () => {
4591
4437
  function getSizing(origin) {
4592
4438
  return Sizable[origin] ?? null;
4593
4439
  }
4594
- const parsedType$3 = (data) => {
4440
+ const parsedType$2 = (data) => {
4595
4441
  const t = typeof data;
4596
4442
  switch (t) {
4597
4443
  case "number": {
@@ -4643,7 +4489,7 @@ const error$27 = () => {
4643
4489
  };
4644
4490
  return (issue$1) => {
4645
4491
  switch (issue$1.code) {
4646
- case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
4492
+ case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$2(issue$1.input)} reçu`;
4647
4493
  case "invalid_value":
4648
4494
  if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
4649
4495
  return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
@@ -4679,12 +4525,12 @@ const error$27 = () => {
4679
4525
  };
4680
4526
  };
4681
4527
  function fr_default() {
4682
- return { localeError: error$27() };
4528
+ return { localeError: error$26() };
4683
4529
  }
4684
4530
 
4685
4531
  //#endregion
4686
- //#region ../../node_modules/zod/v4/locales/fr-CA.js
4687
- const error$26 = () => {
4532
+ //#region ../../node_modules/zod/dist/esm/v4/locales/fr-CA.js
4533
+ const error$25 = () => {
4688
4534
  const Sizable = {
4689
4535
  string: {
4690
4536
  unit: "caractères",
@@ -4706,7 +4552,7 @@ const error$26 = () => {
4706
4552
  function getSizing(origin) {
4707
4553
  return Sizable[origin] ?? null;
4708
4554
  }
4709
- const parsedType$3 = (data) => {
4555
+ const parsedType$2 = (data) => {
4710
4556
  const t = typeof data;
4711
4557
  switch (t) {
4712
4558
  case "number": {
@@ -4758,7 +4604,7 @@ const error$26 = () => {
4758
4604
  };
4759
4605
  return (issue$1) => {
4760
4606
  switch (issue$1.code) {
4761
- case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
4607
+ case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$2(issue$1.input)}`;
4762
4608
  case "invalid_value":
4763
4609
  if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
4764
4610
  return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
@@ -4796,12 +4642,12 @@ const error$26 = () => {
4796
4642
  };
4797
4643
  };
4798
4644
  function fr_CA_default() {
4799
- return { localeError: error$26() };
4645
+ return { localeError: error$25() };
4800
4646
  }
4801
4647
 
4802
4648
  //#endregion
4803
- //#region ../../node_modules/zod/v4/locales/he.js
4804
- const error$25 = () => {
4649
+ //#region ../../node_modules/zod/dist/esm/v4/locales/he.js
4650
+ const error$24 = () => {
4805
4651
  const Sizable = {
4806
4652
  string: {
4807
4653
  unit: "אותיות",
@@ -4823,7 +4669,7 @@ const error$25 = () => {
4823
4669
  function getSizing(origin) {
4824
4670
  return Sizable[origin] ?? null;
4825
4671
  }
4826
- const parsedType$3 = (data) => {
4672
+ const parsedType$2 = (data) => {
4827
4673
  const t = typeof data;
4828
4674
  switch (t) {
4829
4675
  case "number": {
@@ -4875,7 +4721,7 @@ const error$25 = () => {
4875
4721
  };
4876
4722
  return (issue$1) => {
4877
4723
  switch (issue$1.code) {
4878
- case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
4724
+ case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$2(issue$1.input)}`;
4879
4725
  case "invalid_value":
4880
4726
  if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
4881
4727
  return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
@@ -4911,12 +4757,12 @@ const error$25 = () => {
4911
4757
  };
4912
4758
  };
4913
4759
  function he_default() {
4914
- return { localeError: error$25() };
4760
+ return { localeError: error$24() };
4915
4761
  }
4916
4762
 
4917
4763
  //#endregion
4918
- //#region ../../node_modules/zod/v4/locales/hu.js
4919
- const error$24 = () => {
4764
+ //#region ../../node_modules/zod/dist/esm/v4/locales/hu.js
4765
+ const error$23 = () => {
4920
4766
  const Sizable = {
4921
4767
  string: {
4922
4768
  unit: "karakter",
@@ -4938,7 +4784,7 @@ const error$24 = () => {
4938
4784
  function getSizing(origin) {
4939
4785
  return Sizable[origin] ?? null;
4940
4786
  }
4941
- const parsedType$3 = (data) => {
4787
+ const parsedType$2 = (data) => {
4942
4788
  const t = typeof data;
4943
4789
  switch (t) {
4944
4790
  case "number": {
@@ -4990,7 +4836,7 @@ const error$24 = () => {
4990
4836
  };
4991
4837
  return (issue$1) => {
4992
4838
  switch (issue$1.code) {
4993
- case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
4839
+ case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$2(issue$1.input)}`;
4994
4840
  case "invalid_value":
4995
4841
  if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
4996
4842
  return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
@@ -5026,12 +4872,12 @@ const error$24 = () => {
5026
4872
  };
5027
4873
  };
5028
4874
  function hu_default() {
5029
- return { localeError: error$24() };
4875
+ return { localeError: error$23() };
5030
4876
  }
5031
4877
 
5032
4878
  //#endregion
5033
- //#region ../../node_modules/zod/v4/locales/id.js
5034
- const error$23 = () => {
4879
+ //#region ../../node_modules/zod/dist/esm/v4/locales/id.js
4880
+ const error$22 = () => {
5035
4881
  const Sizable = {
5036
4882
  string: {
5037
4883
  unit: "karakter",
@@ -5053,7 +4899,7 @@ const error$23 = () => {
5053
4899
  function getSizing(origin) {
5054
4900
  return Sizable[origin] ?? null;
5055
4901
  }
5056
- const parsedType$3 = (data) => {
4902
+ const parsedType$2 = (data) => {
5057
4903
  const t = typeof data;
5058
4904
  switch (t) {
5059
4905
  case "number": {
@@ -5105,7 +4951,7 @@ const error$23 = () => {
5105
4951
  };
5106
4952
  return (issue$1) => {
5107
4953
  switch (issue$1.code) {
5108
- case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
4954
+ case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
5109
4955
  case "invalid_value":
5110
4956
  if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
5111
4957
  return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
@@ -5141,12 +4987,12 @@ const error$23 = () => {
5141
4987
  };
5142
4988
  };
5143
4989
  function id_default() {
5144
- return { localeError: error$23() };
4990
+ return { localeError: error$22() };
5145
4991
  }
5146
4992
 
5147
4993
  //#endregion
5148
- //#region ../../node_modules/zod/v4/locales/it.js
5149
- const error$22 = () => {
4994
+ //#region ../../node_modules/zod/dist/esm/v4/locales/it.js
4995
+ const error$21 = () => {
5150
4996
  const Sizable = {
5151
4997
  string: {
5152
4998
  unit: "caratteri",
@@ -5168,7 +5014,7 @@ const error$22 = () => {
5168
5014
  function getSizing(origin) {
5169
5015
  return Sizable[origin] ?? null;
5170
5016
  }
5171
- const parsedType$3 = (data) => {
5017
+ const parsedType$2 = (data) => {
5172
5018
  const t = typeof data;
5173
5019
  switch (t) {
5174
5020
  case "number": {
@@ -5220,7 +5066,7 @@ const error$22 = () => {
5220
5066
  };
5221
5067
  return (issue$1) => {
5222
5068
  switch (issue$1.code) {
5223
- case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
5069
+ case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$2(issue$1.input)}`;
5224
5070
  case "invalid_value":
5225
5071
  if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
5226
5072
  return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
@@ -5256,12 +5102,12 @@ const error$22 = () => {
5256
5102
  };
5257
5103
  };
5258
5104
  function it_default() {
5259
- return { localeError: error$22() };
5105
+ return { localeError: error$21() };
5260
5106
  }
5261
5107
 
5262
5108
  //#endregion
5263
- //#region ../../node_modules/zod/v4/locales/ja.js
5264
- const error$21 = () => {
5109
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ja.js
5110
+ const error$20 = () => {
5265
5111
  const Sizable = {
5266
5112
  string: {
5267
5113
  unit: "文字",
@@ -5283,7 +5129,7 @@ const error$21 = () => {
5283
5129
  function getSizing(origin) {
5284
5130
  return Sizable[origin] ?? null;
5285
5131
  }
5286
- const parsedType$3 = (data) => {
5132
+ const parsedType$2 = (data) => {
5287
5133
  const t = typeof data;
5288
5134
  switch (t) {
5289
5135
  case "number": {
@@ -5335,21 +5181,21 @@ const error$21 = () => {
5335
5181
  };
5336
5182
  return (issue$1) => {
5337
5183
  switch (issue$1.code) {
5338
- case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
5184
+ case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$2(issue$1.input)}が入力されました`;
5339
5185
  case "invalid_value":
5340
5186
  if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
5341
5187
  return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
5342
5188
  case "too_big": {
5343
- const adj = issue$1.inclusive ? "以下である" : "より小さい";
5189
+ const adj = issue$1.inclusive ? "<=" : "<";
5344
5190
  const sizing = getSizing(issue$1.origin);
5345
- if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
5346
- return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
5191
+ if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}である必要があります`;
5192
+ return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}である必要があります`;
5347
5193
  }
5348
5194
  case "too_small": {
5349
- const adj = issue$1.inclusive ? "以上である" : "より大きい";
5195
+ const adj = issue$1.inclusive ? ">=" : ">";
5350
5196
  const sizing = getSizing(issue$1.origin);
5351
- if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
5352
- return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
5197
+ if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}である必要があります`;
5198
+ return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}である必要があります`;
5353
5199
  }
5354
5200
  case "invalid_format": {
5355
5201
  const _issue = issue$1;
@@ -5369,12 +5215,12 @@ const error$21 = () => {
5369
5215
  };
5370
5216
  };
5371
5217
  function ja_default() {
5372
- return { localeError: error$21() };
5218
+ return { localeError: error$20() };
5373
5219
  }
5374
5220
 
5375
5221
  //#endregion
5376
- //#region ../../node_modules/zod/v4/locales/kh.js
5377
- const error$20 = () => {
5222
+ //#region ../../node_modules/zod/dist/esm/v4/locales/kh.js
5223
+ const error$19 = () => {
5378
5224
  const Sizable = {
5379
5225
  string: {
5380
5226
  unit: "តួអក្សរ",
@@ -5396,7 +5242,7 @@ const error$20 = () => {
5396
5242
  function getSizing(origin) {
5397
5243
  return Sizable[origin] ?? null;
5398
5244
  }
5399
- const parsedType$3 = (data) => {
5245
+ const parsedType$2 = (data) => {
5400
5246
  const t = typeof data;
5401
5247
  switch (t) {
5402
5248
  case "number": {
@@ -5448,7 +5294,7 @@ const error$20 = () => {
5448
5294
  };
5449
5295
  return (issue$1) => {
5450
5296
  switch (issue$1.code) {
5451
- case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
5297
+ case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$2(issue$1.input)}`;
5452
5298
  case "invalid_value":
5453
5299
  if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
5454
5300
  return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
@@ -5486,12 +5332,12 @@ const error$20 = () => {
5486
5332
  };
5487
5333
  };
5488
5334
  function kh_default() {
5489
- return { localeError: error$20() };
5335
+ return { localeError: error$19() };
5490
5336
  }
5491
5337
 
5492
5338
  //#endregion
5493
- //#region ../../node_modules/zod/v4/locales/ko.js
5494
- const error$19 = () => {
5339
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ko.js
5340
+ const error$18 = () => {
5495
5341
  const Sizable = {
5496
5342
  string: {
5497
5343
  unit: "문자",
@@ -5513,7 +5359,7 @@ const error$19 = () => {
5513
5359
  function getSizing(origin) {
5514
5360
  return Sizable[origin] ?? null;
5515
5361
  }
5516
- const parsedType$3 = (data) => {
5362
+ const parsedType$2 = (data) => {
5517
5363
  const t = typeof data;
5518
5364
  switch (t) {
5519
5365
  case "number": {
@@ -5565,7 +5411,7 @@ const error$19 = () => {
5565
5411
  };
5566
5412
  return (issue$1) => {
5567
5413
  switch (issue$1.code) {
5568
- case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
5414
+ case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$2(issue$1.input)}입니다`;
5569
5415
  case "invalid_value":
5570
5416
  if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
5571
5417
  return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
@@ -5607,12 +5453,12 @@ const error$19 = () => {
5607
5453
  };
5608
5454
  };
5609
5455
  function ko_default() {
5610
- return { localeError: error$19() };
5456
+ return { localeError: error$18() };
5611
5457
  }
5612
5458
 
5613
5459
  //#endregion
5614
- //#region ../../node_modules/zod/v4/locales/mk.js
5615
- const error$18 = () => {
5460
+ //#region ../../node_modules/zod/dist/esm/v4/locales/mk.js
5461
+ const error$17 = () => {
5616
5462
  const Sizable = {
5617
5463
  string: {
5618
5464
  unit: "знаци",
@@ -5634,7 +5480,7 @@ const error$18 = () => {
5634
5480
  function getSizing(origin) {
5635
5481
  return Sizable[origin] ?? null;
5636
5482
  }
5637
- const parsedType$3 = (data) => {
5483
+ const parsedType$2 = (data) => {
5638
5484
  const t = typeof data;
5639
5485
  switch (t) {
5640
5486
  case "number": {
@@ -5686,7 +5532,7 @@ const error$18 = () => {
5686
5532
  };
5687
5533
  return (issue$1) => {
5688
5534
  switch (issue$1.code) {
5689
- case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
5535
+ case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$2(issue$1.input)}`;
5690
5536
  case "invalid_value":
5691
5537
  if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
5692
5538
  return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
@@ -5724,12 +5570,12 @@ const error$18 = () => {
5724
5570
  };
5725
5571
  };
5726
5572
  function mk_default() {
5727
- return { localeError: error$18() };
5573
+ return { localeError: error$17() };
5728
5574
  }
5729
5575
 
5730
5576
  //#endregion
5731
- //#region ../../node_modules/zod/v4/locales/ms.js
5732
- const error$17 = () => {
5577
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ms.js
5578
+ const error$16 = () => {
5733
5579
  const Sizable = {
5734
5580
  string: {
5735
5581
  unit: "aksara",
@@ -5751,7 +5597,7 @@ const error$17 = () => {
5751
5597
  function getSizing(origin) {
5752
5598
  return Sizable[origin] ?? null;
5753
5599
  }
5754
- const parsedType$3 = (data) => {
5600
+ const parsedType$2 = (data) => {
5755
5601
  const t = typeof data;
5756
5602
  switch (t) {
5757
5603
  case "number": {
@@ -5803,7 +5649,7 @@ const error$17 = () => {
5803
5649
  };
5804
5650
  return (issue$1) => {
5805
5651
  switch (issue$1.code) {
5806
- case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
5652
+ case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
5807
5653
  case "invalid_value":
5808
5654
  if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
5809
5655
  return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
@@ -5839,12 +5685,12 @@ const error$17 = () => {
5839
5685
  };
5840
5686
  };
5841
5687
  function ms_default() {
5842
- return { localeError: error$17() };
5688
+ return { localeError: error$16() };
5843
5689
  }
5844
5690
 
5845
5691
  //#endregion
5846
- //#region ../../node_modules/zod/v4/locales/nl.js
5847
- const error$16 = () => {
5692
+ //#region ../../node_modules/zod/dist/esm/v4/locales/nl.js
5693
+ const error$15 = () => {
5848
5694
  const Sizable = {
5849
5695
  string: { unit: "tekens" },
5850
5696
  file: { unit: "bytes" },
@@ -5854,7 +5700,7 @@ const error$16 = () => {
5854
5700
  function getSizing(origin) {
5855
5701
  return Sizable[origin] ?? null;
5856
5702
  }
5857
- const parsedType$3 = (data) => {
5703
+ const parsedType$2 = (data) => {
5858
5704
  const t = typeof data;
5859
5705
  switch (t) {
5860
5706
  case "number": {
@@ -5906,7 +5752,7 @@ const error$16 = () => {
5906
5752
  };
5907
5753
  return (issue$1) => {
5908
5754
  switch (issue$1.code) {
5909
- case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
5755
+ case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$2(issue$1.input)}`;
5910
5756
  case "invalid_value":
5911
5757
  if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
5912
5758
  return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
@@ -5944,12 +5790,12 @@ const error$16 = () => {
5944
5790
  };
5945
5791
  };
5946
5792
  function nl_default() {
5947
- return { localeError: error$16() };
5793
+ return { localeError: error$15() };
5948
5794
  }
5949
5795
 
5950
5796
  //#endregion
5951
- //#region ../../node_modules/zod/v4/locales/no.js
5952
- const error$15 = () => {
5797
+ //#region ../../node_modules/zod/dist/esm/v4/locales/no.js
5798
+ const error$14 = () => {
5953
5799
  const Sizable = {
5954
5800
  string: {
5955
5801
  unit: "tegn",
@@ -5971,7 +5817,7 @@ const error$15 = () => {
5971
5817
  function getSizing(origin) {
5972
5818
  return Sizable[origin] ?? null;
5973
5819
  }
5974
- const parsedType$3 = (data) => {
5820
+ const parsedType$2 = (data) => {
5975
5821
  const t = typeof data;
5976
5822
  switch (t) {
5977
5823
  case "number": {
@@ -6023,7 +5869,7 @@ const error$15 = () => {
6023
5869
  };
6024
5870
  return (issue$1) => {
6025
5871
  switch (issue$1.code) {
6026
- case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
5872
+ case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$2(issue$1.input)}`;
6027
5873
  case "invalid_value":
6028
5874
  if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
6029
5875
  return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
@@ -6059,12 +5905,12 @@ const error$15 = () => {
6059
5905
  };
6060
5906
  };
6061
5907
  function no_default() {
6062
- return { localeError: error$15() };
5908
+ return { localeError: error$14() };
6063
5909
  }
6064
5910
 
6065
5911
  //#endregion
6066
- //#region ../../node_modules/zod/v4/locales/ota.js
6067
- const error$14 = () => {
5912
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ota.js
5913
+ const error$13 = () => {
6068
5914
  const Sizable = {
6069
5915
  string: {
6070
5916
  unit: "harf",
@@ -6086,7 +5932,7 @@ const error$14 = () => {
6086
5932
  function getSizing(origin) {
6087
5933
  return Sizable[origin] ?? null;
6088
5934
  }
6089
- const parsedType$3 = (data) => {
5935
+ const parsedType$2 = (data) => {
6090
5936
  const t = typeof data;
6091
5937
  switch (t) {
6092
5938
  case "number": {
@@ -6138,7 +5984,7 @@ const error$14 = () => {
6138
5984
  };
6139
5985
  return (issue$1) => {
6140
5986
  switch (issue$1.code) {
6141
- case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
5987
+ case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$2(issue$1.input)}`;
6142
5988
  case "invalid_value":
6143
5989
  if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
6144
5990
  return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
@@ -6174,138 +6020,11 @@ const error$14 = () => {
6174
6020
  };
6175
6021
  };
6176
6022
  function ota_default() {
6177
- return { localeError: error$14() };
6178
- }
6179
-
6180
- //#endregion
6181
- //#region ../../node_modules/zod/v4/locales/ps.js
6182
- const error$13 = () => {
6183
- const Sizable = {
6184
- string: {
6185
- unit: "توکي",
6186
- verb: "ولري"
6187
- },
6188
- file: {
6189
- unit: "بایټس",
6190
- verb: "ولري"
6191
- },
6192
- array: {
6193
- unit: "توکي",
6194
- verb: "ولري"
6195
- },
6196
- set: {
6197
- unit: "توکي",
6198
- verb: "ولري"
6199
- }
6200
- };
6201
- function getSizing(origin) {
6202
- return Sizable[origin] ?? null;
6203
- }
6204
- const parsedType$3 = (data) => {
6205
- const t = typeof data;
6206
- switch (t) {
6207
- case "number": {
6208
- return Number.isNaN(data) ? "NaN" : "عدد";
6209
- }
6210
- case "object": {
6211
- if (Array.isArray(data)) {
6212
- return "ارې";
6213
- }
6214
- if (data === null) {
6215
- return "null";
6216
- }
6217
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6218
- return data.constructor.name;
6219
- }
6220
- }
6221
- }
6222
- return t;
6223
- };
6224
- const Nouns = {
6225
- regex: "ورودي",
6226
- email: "بریښنالیک",
6227
- url: "یو آر ال",
6228
- emoji: "ایموجي",
6229
- uuid: "UUID",
6230
- uuidv4: "UUIDv4",
6231
- uuidv6: "UUIDv6",
6232
- nanoid: "nanoid",
6233
- guid: "GUID",
6234
- cuid: "cuid",
6235
- cuid2: "cuid2",
6236
- ulid: "ULID",
6237
- xid: "XID",
6238
- ksuid: "KSUID",
6239
- datetime: "نیټه او وخت",
6240
- date: "نېټه",
6241
- time: "وخت",
6242
- duration: "موده",
6243
- ipv4: "د IPv4 پته",
6244
- ipv6: "د IPv6 پته",
6245
- cidrv4: "د IPv4 ساحه",
6246
- cidrv6: "د IPv6 ساحه",
6247
- base64: "base64-encoded متن",
6248
- base64url: "base64url-encoded متن",
6249
- json_string: "JSON متن",
6250
- e164: "د E.164 شمېره",
6251
- jwt: "JWT",
6252
- template_literal: "ورودي"
6253
- };
6254
- return (issue$1) => {
6255
- switch (issue$1.code) {
6256
- case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
6257
- case "invalid_value":
6258
- if (issue$1.values.length === 1) {
6259
- return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
6260
- }
6261
- return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
6262
- case "too_big": {
6263
- const adj = issue$1.inclusive ? "<=" : "<";
6264
- const sizing = getSizing(issue$1.origin);
6265
- if (sizing) {
6266
- return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
6267
- }
6268
- return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
6269
- }
6270
- case "too_small": {
6271
- const adj = issue$1.inclusive ? ">=" : ">";
6272
- const sizing = getSizing(issue$1.origin);
6273
- if (sizing) {
6274
- return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
6275
- }
6276
- return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
6277
- }
6278
- case "invalid_format": {
6279
- const _issue = issue$1;
6280
- if (_issue.format === "starts_with") {
6281
- return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
6282
- }
6283
- if (_issue.format === "ends_with") {
6284
- return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
6285
- }
6286
- if (_issue.format === "includes") {
6287
- return `ناسم متن: باید "${_issue.includes}" ولري`;
6288
- }
6289
- if (_issue.format === "regex") {
6290
- return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
6291
- }
6292
- return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
6293
- }
6294
- case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
6295
- case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
6296
- case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
6297
- case "invalid_union": return `ناسمه ورودي`;
6298
- case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
6299
- default: return `ناسمه ورودي`;
6300
- }
6301
- };
6302
- };
6303
- function ps_default() {
6304
6023
  return { localeError: error$13() };
6305
6024
  }
6306
6025
 
6307
6026
  //#endregion
6308
- //#region ../../node_modules/zod/v4/locales/pl.js
6027
+ //#region ../../node_modules/zod/dist/esm/v4/locales/pl.js
6309
6028
  const error$12 = () => {
6310
6029
  const Sizable = {
6311
6030
  string: {
@@ -6328,7 +6047,7 @@ const error$12 = () => {
6328
6047
  function getSizing(origin) {
6329
6048
  return Sizable[origin] ?? null;
6330
6049
  }
6331
- const parsedType$3 = (data) => {
6050
+ const parsedType$2 = (data) => {
6332
6051
  const t = typeof data;
6333
6052
  switch (t) {
6334
6053
  case "number": {
@@ -6380,7 +6099,7 @@ const error$12 = () => {
6380
6099
  };
6381
6100
  return (issue$1) => {
6382
6101
  switch (issue$1.code) {
6383
- case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
6102
+ case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$2(issue$1.input)}`;
6384
6103
  case "invalid_value":
6385
6104
  if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
6386
6105
  return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
@@ -6422,7 +6141,7 @@ function pl_default() {
6422
6141
  }
6423
6142
 
6424
6143
  //#endregion
6425
- //#region ../../node_modules/zod/v4/locales/pt.js
6144
+ //#region ../../node_modules/zod/dist/esm/v4/locales/pt.js
6426
6145
  const error$11 = () => {
6427
6146
  const Sizable = {
6428
6147
  string: {
@@ -6445,7 +6164,7 @@ const error$11 = () => {
6445
6164
  function getSizing(origin) {
6446
6165
  return Sizable[origin] ?? null;
6447
6166
  }
6448
- const parsedType$3 = (data) => {
6167
+ const parsedType$2 = (data) => {
6449
6168
  const t = typeof data;
6450
6169
  switch (t) {
6451
6170
  case "number": {
@@ -6497,7 +6216,7 @@ const error$11 = () => {
6497
6216
  };
6498
6217
  return (issue$1) => {
6499
6218
  switch (issue$1.code) {
6500
- case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
6219
+ case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$2(issue$1.input)}`;
6501
6220
  case "invalid_value":
6502
6221
  if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
6503
6222
  return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
@@ -6537,7 +6256,7 @@ function pt_default() {
6537
6256
  }
6538
6257
 
6539
6258
  //#endregion
6540
- //#region ../../node_modules/zod/v4/locales/ru.js
6259
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ru.js
6541
6260
  function getRussianPlural(count, one, few, many) {
6542
6261
  const absCount = Math.abs(count);
6543
6262
  const lastDigit = absCount % 10;
@@ -6591,7 +6310,7 @@ const error$10 = () => {
6591
6310
  function getSizing(origin) {
6592
6311
  return Sizable[origin] ?? null;
6593
6312
  }
6594
- const parsedType$3 = (data) => {
6313
+ const parsedType$2 = (data) => {
6595
6314
  const t = typeof data;
6596
6315
  switch (t) {
6597
6316
  case "number": {
@@ -6643,7 +6362,7 @@ const error$10 = () => {
6643
6362
  };
6644
6363
  return (issue$1) => {
6645
6364
  switch (issue$1.code) {
6646
- case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
6365
+ case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$2(issue$1.input)}`;
6647
6366
  case "invalid_value":
6648
6367
  if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
6649
6368
  return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
@@ -6689,7 +6408,7 @@ function ru_default() {
6689
6408
  }
6690
6409
 
6691
6410
  //#endregion
6692
- //#region ../../node_modules/zod/v4/locales/sl.js
6411
+ //#region ../../node_modules/zod/dist/esm/v4/locales/sl.js
6693
6412
  const error$9 = () => {
6694
6413
  const Sizable = {
6695
6414
  string: {
@@ -6712,7 +6431,7 @@ const error$9 = () => {
6712
6431
  function getSizing(origin) {
6713
6432
  return Sizable[origin] ?? null;
6714
6433
  }
6715
- const parsedType$3 = (data) => {
6434
+ const parsedType$2 = (data) => {
6716
6435
  const t = typeof data;
6717
6436
  switch (t) {
6718
6437
  case "number": {
@@ -6764,7 +6483,7 @@ const error$9 = () => {
6764
6483
  };
6765
6484
  return (issue$1) => {
6766
6485
  switch (issue$1.code) {
6767
- case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
6486
+ case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$2(issue$1.input)}`;
6768
6487
  case "invalid_value":
6769
6488
  if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
6770
6489
  return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
@@ -6806,7 +6525,7 @@ function sl_default() {
6806
6525
  }
6807
6526
 
6808
6527
  //#endregion
6809
- //#region ../../node_modules/zod/v4/locales/sv.js
6528
+ //#region ../../node_modules/zod/dist/esm/v4/locales/sv.js
6810
6529
  const error$8 = () => {
6811
6530
  const Sizable = {
6812
6531
  string: {
@@ -6829,7 +6548,7 @@ const error$8 = () => {
6829
6548
  function getSizing(origin) {
6830
6549
  return Sizable[origin] ?? null;
6831
6550
  }
6832
- const parsedType$3 = (data) => {
6551
+ const parsedType$2 = (data) => {
6833
6552
  const t = typeof data;
6834
6553
  switch (t) {
6835
6554
  case "number": {
@@ -6881,7 +6600,7 @@ const error$8 = () => {
6881
6600
  };
6882
6601
  return (issue$1) => {
6883
6602
  switch (issue$1.code) {
6884
- case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
6603
+ case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$2(issue$1.input)}`;
6885
6604
  case "invalid_value":
6886
6605
  if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
6887
6606
  return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
@@ -6925,7 +6644,7 @@ function sv_default() {
6925
6644
  }
6926
6645
 
6927
6646
  //#endregion
6928
- //#region ../../node_modules/zod/v4/locales/ta.js
6647
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ta.js
6929
6648
  const error$7 = () => {
6930
6649
  const Sizable = {
6931
6650
  string: {
@@ -6948,7 +6667,7 @@ const error$7 = () => {
6948
6667
  function getSizing(origin) {
6949
6668
  return Sizable[origin] ?? null;
6950
6669
  }
6951
- const parsedType$3 = (data) => {
6670
+ const parsedType$2 = (data) => {
6952
6671
  const t = typeof data;
6953
6672
  switch (t) {
6954
6673
  case "number": {
@@ -7000,7 +6719,7 @@ const error$7 = () => {
7000
6719
  };
7001
6720
  return (issue$1) => {
7002
6721
  switch (issue$1.code) {
7003
- case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
6722
+ case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$2(issue$1.input)}`;
7004
6723
  case "invalid_value":
7005
6724
  if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
7006
6725
  return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
@@ -7042,7 +6761,7 @@ function ta_default() {
7042
6761
  }
7043
6762
 
7044
6763
  //#endregion
7045
- //#region ../../node_modules/zod/v4/locales/th.js
6764
+ //#region ../../node_modules/zod/dist/esm/v4/locales/th.js
7046
6765
  const error$6 = () => {
7047
6766
  const Sizable = {
7048
6767
  string: {
@@ -7065,7 +6784,7 @@ const error$6 = () => {
7065
6784
  function getSizing(origin) {
7066
6785
  return Sizable[origin] ?? null;
7067
6786
  }
7068
- const parsedType$3 = (data) => {
6787
+ const parsedType$2 = (data) => {
7069
6788
  const t = typeof data;
7070
6789
  switch (t) {
7071
6790
  case "number": {
@@ -7117,7 +6836,7 @@ const error$6 = () => {
7117
6836
  };
7118
6837
  return (issue$1) => {
7119
6838
  switch (issue$1.code) {
7120
- case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
6839
+ case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$2(issue$1.input)}`;
7121
6840
  case "invalid_value":
7122
6841
  if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
7123
6842
  return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
@@ -7159,7 +6878,7 @@ function th_default() {
7159
6878
  }
7160
6879
 
7161
6880
  //#endregion
7162
- //#region ../../node_modules/zod/v4/locales/tr.js
6881
+ //#region ../../node_modules/zod/dist/esm/v4/locales/tr.js
7163
6882
  const parsedType = (data) => {
7164
6883
  const t = typeof data;
7165
6884
  switch (t) {
@@ -7272,7 +6991,7 @@ function tr_default() {
7272
6991
  }
7273
6992
 
7274
6993
  //#endregion
7275
- //#region ../../node_modules/zod/v4/locales/ua.js
6994
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ua.js
7276
6995
  const error$4 = () => {
7277
6996
  const Sizable = {
7278
6997
  string: {
@@ -7295,7 +7014,7 @@ const error$4 = () => {
7295
7014
  function getSizing(origin) {
7296
7015
  return Sizable[origin] ?? null;
7297
7016
  }
7298
- const parsedType$3 = (data) => {
7017
+ const parsedType$2 = (data) => {
7299
7018
  const t = typeof data;
7300
7019
  switch (t) {
7301
7020
  case "number": {
@@ -7347,7 +7066,7 @@ const error$4 = () => {
7347
7066
  };
7348
7067
  return (issue$1) => {
7349
7068
  switch (issue$1.code) {
7350
- case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
7069
+ case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$2(issue$1.input)}`;
7351
7070
  case "invalid_value":
7352
7071
  if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
7353
7072
  return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
@@ -7387,7 +7106,7 @@ function ua_default() {
7387
7106
  }
7388
7107
 
7389
7108
  //#endregion
7390
- //#region ../../node_modules/zod/v4/locales/ur.js
7109
+ //#region ../../node_modules/zod/dist/esm/v4/locales/ur.js
7391
7110
  const error$3 = () => {
7392
7111
  const Sizable = {
7393
7112
  string: {
@@ -7410,7 +7129,7 @@ const error$3 = () => {
7410
7129
  function getSizing(origin) {
7411
7130
  return Sizable[origin] ?? null;
7412
7131
  }
7413
- const parsedType$3 = (data) => {
7132
+ const parsedType$2 = (data) => {
7414
7133
  const t = typeof data;
7415
7134
  switch (t) {
7416
7135
  case "number": {
@@ -7462,7 +7181,7 @@ const error$3 = () => {
7462
7181
  };
7463
7182
  return (issue$1) => {
7464
7183
  switch (issue$1.code) {
7465
- case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
7184
+ case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$2(issue$1.input)} موصول ہوا`;
7466
7185
  case "invalid_value":
7467
7186
  if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
7468
7187
  return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
@@ -7504,7 +7223,7 @@ function ur_default() {
7504
7223
  }
7505
7224
 
7506
7225
  //#endregion
7507
- //#region ../../node_modules/zod/v4/locales/vi.js
7226
+ //#region ../../node_modules/zod/dist/esm/v4/locales/vi.js
7508
7227
  const error$2 = () => {
7509
7228
  const Sizable = {
7510
7229
  string: {
@@ -7527,7 +7246,7 @@ const error$2 = () => {
7527
7246
  function getSizing(origin) {
7528
7247
  return Sizable[origin] ?? null;
7529
7248
  }
7530
- const parsedType$3 = (data) => {
7249
+ const parsedType$2 = (data) => {
7531
7250
  const t = typeof data;
7532
7251
  switch (t) {
7533
7252
  case "number": {
@@ -7579,7 +7298,7 @@ const error$2 = () => {
7579
7298
  };
7580
7299
  return (issue$1) => {
7581
7300
  switch (issue$1.code) {
7582
- case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$3(issue$1.input)}`;
7301
+ case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$2(issue$1.input)}`;
7583
7302
  case "invalid_value":
7584
7303
  if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
7585
7304
  return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
@@ -7619,7 +7338,7 @@ function vi_default() {
7619
7338
  }
7620
7339
 
7621
7340
  //#endregion
7622
- //#region ../../node_modules/zod/v4/locales/zh-CN.js
7341
+ //#region ../../node_modules/zod/dist/esm/v4/locales/zh-CN.js
7623
7342
  const error$1 = () => {
7624
7343
  const Sizable = {
7625
7344
  string: {
@@ -7642,7 +7361,7 @@ const error$1 = () => {
7642
7361
  function getSizing(origin) {
7643
7362
  return Sizable[origin] ?? null;
7644
7363
  }
7645
- const parsedType$3 = (data) => {
7364
+ const parsedType$2 = (data) => {
7646
7365
  const t = typeof data;
7647
7366
  switch (t) {
7648
7367
  case "number": {
@@ -7694,7 +7413,7 @@ const error$1 = () => {
7694
7413
  };
7695
7414
  return (issue$1) => {
7696
7415
  switch (issue$1.code) {
7697
- case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
7416
+ case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$2(issue$1.input)}`;
7698
7417
  case "invalid_value":
7699
7418
  if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
7700
7419
  return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
@@ -7734,7 +7453,7 @@ function zh_CN_default() {
7734
7453
  }
7735
7454
 
7736
7455
  //#endregion
7737
- //#region ../../node_modules/zod/v4/locales/zh-TW.js
7456
+ //#region ../../node_modules/zod/dist/esm/v4/locales/zh-TW.js
7738
7457
  const error = () => {
7739
7458
  const Sizable = {
7740
7459
  string: {
@@ -7757,7 +7476,7 @@ const error = () => {
7757
7476
  function getSizing(origin) {
7758
7477
  return Sizable[origin] ?? null;
7759
7478
  }
7760
- const parsedType$3 = (data) => {
7479
+ const parsedType$2 = (data) => {
7761
7480
  const t = typeof data;
7762
7481
  switch (t) {
7763
7482
  case "number": {
@@ -7809,7 +7528,7 @@ const error = () => {
7809
7528
  };
7810
7529
  return (issue$1) => {
7811
7530
  switch (issue$1.code) {
7812
- case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
7531
+ case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$2(issue$1.input)}`;
7813
7532
  case "invalid_value":
7814
7533
  if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
7815
7534
  return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
@@ -7851,7 +7570,7 @@ function zh_TW_default() {
7851
7570
  }
7852
7571
 
7853
7572
  //#endregion
7854
- //#region ../../node_modules/zod/v4/locales/index.js
7573
+ //#region ../../node_modules/zod/dist/esm/v4/locales/index.js
7855
7574
  var locales_exports = {};
7856
7575
  __export(locales_exports, {
7857
7576
  ar: () => ar_default,
@@ -7861,7 +7580,6 @@ __export(locales_exports, {
7861
7580
  cs: () => cs_default,
7862
7581
  de: () => de_default,
7863
7582
  en: () => en_default,
7864
- eo: () => eo_default,
7865
7583
  es: () => es_default,
7866
7584
  fa: () => fa_default,
7867
7585
  fi: () => fi_default,
@@ -7880,7 +7598,6 @@ __export(locales_exports, {
7880
7598
  no: () => no_default,
7881
7599
  ota: () => ota_default,
7882
7600
  pl: () => pl_default,
7883
- ps: () => ps_default,
7884
7601
  pt: () => pt_default,
7885
7602
  ru: () => ru_default,
7886
7603
  sl: () => sl_default,
@@ -7896,12 +7613,12 @@ __export(locales_exports, {
7896
7613
  });
7897
7614
 
7898
7615
  //#endregion
7899
- //#region ../../node_modules/zod/v4/core/registries.js
7616
+ //#region ../../node_modules/zod/dist/esm/v4/core/registries.js
7900
7617
  const $output = Symbol("ZodOutput");
7901
7618
  const $input = Symbol("ZodInput");
7902
7619
  var $ZodRegistry = class {
7903
7620
  constructor() {
7904
- this._map = new Map();
7621
+ this._map = new WeakMap();
7905
7622
  this._idmap = new Map();
7906
7623
  }
7907
7624
  add(schema, ..._meta) {
@@ -7915,16 +7632,7 @@ var $ZodRegistry = class {
7915
7632
  }
7916
7633
  return this;
7917
7634
  }
7918
- clear() {
7919
- this._map = new Map();
7920
- this._idmap = new Map();
7921
- return this;
7922
- }
7923
7635
  remove(schema) {
7924
- const meta = this._map.get(schema);
7925
- if (meta && typeof meta === "object" && "id" in meta) {
7926
- this._idmap.delete(meta.id);
7927
- }
7928
7636
  this._map.delete(schema);
7929
7637
  return this;
7930
7638
  }
@@ -7950,7 +7658,7 @@ function registry() {
7950
7658
  const globalRegistry = /* @__PURE__ */ registry();
7951
7659
 
7952
7660
  //#endregion
7953
- //#region ../../node_modules/zod/v4/core/api.js
7661
+ //#region ../../node_modules/zod/dist/esm/v4/core/api.js
7954
7662
  function _string(Class$1, params) {
7955
7663
  return new Class$1({
7956
7664
  type: "string",
@@ -8165,13 +7873,6 @@ function _jwt(Class$1, params) {
8165
7873
  ...normalizeParams(params)
8166
7874
  });
8167
7875
  }
8168
- const TimePrecision = {
8169
- Any: null,
8170
- Minute: -1,
8171
- Second: 0,
8172
- Millisecond: 3,
8173
- Microsecond: 6
8174
- };
8175
7876
  function _isoDateTime(Class$1, params) {
8176
7877
  return new Class$1({
8177
7878
  type: "string",
@@ -8738,8 +8439,8 @@ function _refine(Class$1, fn, _params) {
8738
8439
  return schema;
8739
8440
  }
8740
8441
  function _stringbool(Classes, _params) {
8741
- const params = normalizeParams(_params);
8742
- let truthyArray = params.truthy ?? [
8442
+ const { case: _case, error: error$37, truthy, falsy } = normalizeParams(_params);
8443
+ let truthyArray = truthy ?? [
8743
8444
  "true",
8744
8445
  "1",
8745
8446
  "yes",
@@ -8747,7 +8448,7 @@ function _stringbool(Classes, _params) {
8747
8448
  "y",
8748
8449
  "enabled"
8749
8450
  ];
8750
- let falsyArray = params.falsy ?? [
8451
+ let falsyArray = falsy ?? [
8751
8452
  "false",
8752
8453
  "0",
8753
8454
  "no",
@@ -8755,7 +8456,7 @@ function _stringbool(Classes, _params) {
8755
8456
  "n",
8756
8457
  "disabled"
8757
8458
  ];
8758
- if (params.case !== "sensitive") {
8459
+ if (_case !== "sensitive") {
8759
8460
  truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
8760
8461
  falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
8761
8462
  }
@@ -8769,7 +8470,7 @@ function _stringbool(Classes, _params) {
8769
8470
  type: "transform",
8770
8471
  transform: (input, payload) => {
8771
8472
  let data = input;
8772
- if (params.case !== "sensitive") data = data.toLowerCase();
8473
+ if (_case !== "sensitive") data = data.toLowerCase();
8773
8474
  if (truthySet.has(data)) {
8774
8475
  return true;
8775
8476
  } else if (falsySet.has(data)) {
@@ -8785,47 +8486,31 @@ function _stringbool(Classes, _params) {
8785
8486
  return {};
8786
8487
  }
8787
8488
  },
8788
- error: params.error
8489
+ error: error$37
8789
8490
  });
8790
8491
  const innerPipe = new _Pipe({
8791
8492
  type: "pipe",
8792
8493
  in: new _String({
8793
8494
  type: "string",
8794
- error: params.error
8495
+ error: error$37
8795
8496
  }),
8796
8497
  out: tx,
8797
- error: params.error
8498
+ error: error$37
8798
8499
  });
8799
8500
  const outerPipe = new _Pipe({
8800
8501
  type: "pipe",
8801
8502
  in: innerPipe,
8802
8503
  out: new _Boolean({
8803
8504
  type: "boolean",
8804
- error: params.error
8505
+ error: error$37
8805
8506
  }),
8806
- error: params.error
8507
+ error: error$37
8807
8508
  });
8808
8509
  return outerPipe;
8809
8510
  }
8810
- function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
8811
- const params = normalizeParams(_params);
8812
- const def = {
8813
- ...normalizeParams(_params),
8814
- check: "string_format",
8815
- type: "string",
8816
- format,
8817
- fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
8818
- ...params
8819
- };
8820
- if (fnOrRegex instanceof RegExp) {
8821
- def.pattern = fnOrRegex;
8822
- }
8823
- const inst = new Class$1(def);
8824
- return inst;
8825
- }
8826
8511
 
8827
8512
  //#endregion
8828
- //#region ../../node_modules/zod/v4/core/function.js
8513
+ //#region ../../node_modules/zod/dist/esm/v4/core/function.js
8829
8514
  var $ZodFunction = class {
8830
8515
  constructor(def) {
8831
8516
  this._def = def;
@@ -8896,7 +8581,7 @@ function _function(params) {
8896
8581
  }
8897
8582
 
8898
8583
  //#endregion
8899
- //#region ../../node_modules/zod/v4/core/to-json-schema.js
8584
+ //#region ../../node_modules/zod/dist/esm/v4/core/to-json-schema.js
8900
8585
  var JSONSchemaGenerator = class {
8901
8586
  constructor(params) {
8902
8587
  this.counter = 0;
@@ -8932,435 +8617,431 @@ var JSONSchemaGenerator = class {
8932
8617
  const result = {
8933
8618
  schema: {},
8934
8619
  count: 1,
8935
- cycle: undefined,
8936
- path: _params.path
8620
+ cycle: undefined
8937
8621
  };
8938
8622
  this.seen.set(schema, result);
8939
- const overrideSchema = schema._zod.toJSONSchema?.();
8940
- if (overrideSchema) {
8941
- result.schema = overrideSchema;
8623
+ if (schema._zod.toJSONSchema) {
8624
+ result.schema = schema._zod.toJSONSchema();
8625
+ }
8626
+ const params = {
8627
+ ..._params,
8628
+ schemaPath: [..._params.schemaPath, schema],
8629
+ path: _params.path
8630
+ };
8631
+ const parent = schema._zod.parent;
8632
+ if (parent) {
8633
+ result.ref = parent;
8634
+ this.process(parent, params);
8635
+ this.seen.get(parent).isParent = true;
8942
8636
  } else {
8943
- const params = {
8944
- ..._params,
8945
- schemaPath: [..._params.schemaPath, schema],
8946
- path: _params.path
8947
- };
8948
- const parent = schema._zod.parent;
8949
- if (parent) {
8950
- result.ref = parent;
8951
- this.process(parent, params);
8952
- this.seen.get(parent).isParent = true;
8953
- } else {
8954
- const _json = result.schema;
8955
- switch (def.type) {
8956
- case "string": {
8957
- const json$1 = _json;
8958
- json$1.type = "string";
8959
- const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
8960
- if (typeof minimum === "number") json$1.minLength = minimum;
8961
- if (typeof maximum === "number") json$1.maxLength = maximum;
8962
- if (format) {
8963
- json$1.format = formatMap[format] ?? format;
8964
- if (json$1.format === "") delete json$1.format;
8965
- }
8966
- if (contentEncoding) json$1.contentEncoding = contentEncoding;
8967
- if (patterns && patterns.size > 0) {
8968
- const regexes = [...patterns];
8969
- if (regexes.length === 1) json$1.pattern = regexes[0].source;
8970
- else if (regexes.length > 1) {
8971
- result.schema.allOf = [...regexes.map((regex) => ({
8972
- ...this.target === "draft-7" ? { type: "string" } : {},
8973
- pattern: regex.source
8974
- }))];
8975
- }
8976
- }
8977
- break;
8978
- }
8979
- case "number": {
8980
- const json$1 = _json;
8981
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
8982
- if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
8983
- else json$1.type = "number";
8984
- if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
8985
- if (typeof minimum === "number") {
8986
- json$1.minimum = minimum;
8987
- if (typeof exclusiveMinimum === "number") {
8988
- if (exclusiveMinimum >= minimum) delete json$1.minimum;
8989
- else delete json$1.exclusiveMinimum;
8990
- }
8991
- }
8992
- if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
8993
- if (typeof maximum === "number") {
8994
- json$1.maximum = maximum;
8995
- if (typeof exclusiveMaximum === "number") {
8996
- if (exclusiveMaximum <= maximum) delete json$1.maximum;
8997
- else delete json$1.exclusiveMaximum;
8998
- }
8999
- }
9000
- if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
9001
- break;
9002
- }
9003
- case "boolean": {
9004
- const json$1 = _json;
9005
- json$1.type = "boolean";
9006
- break;
9007
- }
9008
- case "bigint": {
9009
- if (this.unrepresentable === "throw") {
9010
- throw new Error("BigInt cannot be represented in JSON Schema");
9011
- }
9012
- break;
8637
+ const _json = result.schema;
8638
+ switch (def.type) {
8639
+ case "string": {
8640
+ const json$1 = _json;
8641
+ json$1.type = "string";
8642
+ const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
8643
+ if (typeof minimum === "number") json$1.minLength = minimum;
8644
+ if (typeof maximum === "number") json$1.maxLength = maximum;
8645
+ if (format) {
8646
+ json$1.format = formatMap[format] ?? format;
8647
+ if (json$1.format === "") delete json$1.format;
9013
8648
  }
9014
- case "symbol": {
9015
- if (this.unrepresentable === "throw") {
9016
- throw new Error("Symbols cannot be represented in JSON Schema");
8649
+ if (contentEncoding) json$1.contentEncoding = contentEncoding;
8650
+ if (patterns && patterns.size > 0) {
8651
+ const regexes = [...patterns];
8652
+ if (regexes.length === 1) json$1.pattern = regexes[0].source;
8653
+ else if (regexes.length > 1) {
8654
+ result.schema.allOf = [...regexes.map((regex) => ({
8655
+ ...this.target === "draft-7" ? { type: "string" } : {},
8656
+ pattern: regex.source
8657
+ }))];
9017
8658
  }
9018
- break;
9019
8659
  }
9020
- case "null": {
9021
- _json.type = "null";
9022
- break;
9023
- }
9024
- case "any": {
9025
- break;
9026
- }
9027
- case "unknown": {
9028
- break;
9029
- }
9030
- case "undefined": {
9031
- if (this.unrepresentable === "throw") {
9032
- throw new Error("Undefined cannot be represented in JSON Schema");
8660
+ break;
8661
+ }
8662
+ case "number": {
8663
+ const json$1 = _json;
8664
+ const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
8665
+ if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
8666
+ else json$1.type = "number";
8667
+ if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
8668
+ if (typeof minimum === "number") {
8669
+ json$1.minimum = minimum;
8670
+ if (typeof exclusiveMinimum === "number") {
8671
+ if (exclusiveMinimum >= minimum) delete json$1.minimum;
8672
+ else delete json$1.exclusiveMinimum;
9033
8673
  }
9034
- break;
9035
8674
  }
9036
- case "void": {
9037
- if (this.unrepresentable === "throw") {
9038
- throw new Error("Void cannot be represented in JSON Schema");
8675
+ if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
8676
+ if (typeof maximum === "number") {
8677
+ json$1.maximum = maximum;
8678
+ if (typeof exclusiveMaximum === "number") {
8679
+ if (exclusiveMaximum <= maximum) delete json$1.maximum;
8680
+ else delete json$1.exclusiveMaximum;
9039
8681
  }
9040
- break;
9041
- }
9042
- case "never": {
9043
- _json.not = {};
9044
- break;
9045
8682
  }
9046
- case "date": {
9047
- if (this.unrepresentable === "throw") {
9048
- throw new Error("Date cannot be represented in JSON Schema");
9049
- }
9050
- break;
8683
+ if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
8684
+ break;
8685
+ }
8686
+ case "boolean": {
8687
+ const json$1 = _json;
8688
+ json$1.type = "boolean";
8689
+ break;
8690
+ }
8691
+ case "bigint": {
8692
+ if (this.unrepresentable === "throw") {
8693
+ throw new Error("BigInt cannot be represented in JSON Schema");
9051
8694
  }
9052
- case "array": {
9053
- const json$1 = _json;
9054
- const { minimum, maximum } = schema._zod.bag;
9055
- if (typeof minimum === "number") json$1.minItems = minimum;
9056
- if (typeof maximum === "number") json$1.maxItems = maximum;
9057
- json$1.type = "array";
9058
- json$1.items = this.process(def.element, {
9059
- ...params,
9060
- path: [...params.path, "items"]
9061
- });
9062
- break;
8695
+ break;
8696
+ }
8697
+ case "symbol": {
8698
+ if (this.unrepresentable === "throw") {
8699
+ throw new Error("Symbols cannot be represented in JSON Schema");
9063
8700
  }
9064
- case "object": {
9065
- const json$1 = _json;
9066
- json$1.type = "object";
9067
- json$1.properties = {};
9068
- const shape = def.shape;
9069
- for (const key in shape) {
9070
- json$1.properties[key] = this.process(shape[key], {
9071
- ...params,
9072
- path: [
9073
- ...params.path,
9074
- "properties",
9075
- key
9076
- ]
9077
- });
9078
- }
9079
- const allKeys = new Set(Object.keys(shape));
9080
- const requiredKeys = new Set([...allKeys].filter((key) => {
9081
- const v = def.shape[key]._zod;
9082
- if (this.io === "input") {
9083
- return v.optin === undefined;
9084
- } else {
9085
- return v.optout === undefined;
9086
- }
9087
- }));
9088
- if (requiredKeys.size > 0) {
9089
- json$1.required = Array.from(requiredKeys);
9090
- }
9091
- if (def.catchall?._zod.def.type === "never") {
9092
- json$1.additionalProperties = false;
9093
- } else if (!def.catchall) {
9094
- if (this.io === "output") json$1.additionalProperties = false;
9095
- } else if (def.catchall) {
9096
- json$1.additionalProperties = this.process(def.catchall, {
9097
- ...params,
9098
- path: [...params.path, "additionalProperties"]
9099
- });
9100
- }
9101
- break;
8701
+ break;
8702
+ }
8703
+ case "undefined": {
8704
+ const json$1 = _json;
8705
+ json$1.type = "null";
8706
+ break;
8707
+ }
8708
+ case "null": {
8709
+ _json.type = "null";
8710
+ break;
8711
+ }
8712
+ case "any": {
8713
+ break;
8714
+ }
8715
+ case "unknown": {
8716
+ break;
8717
+ }
8718
+ case "never": {
8719
+ _json.not = {};
8720
+ break;
8721
+ }
8722
+ case "void": {
8723
+ if (this.unrepresentable === "throw") {
8724
+ throw new Error("Void cannot be represented in JSON Schema");
9102
8725
  }
9103
- case "union": {
9104
- const json$1 = _json;
9105
- json$1.anyOf = def.options.map((x, i) => this.process(x, {
9106
- ...params,
9107
- path: [
9108
- ...params.path,
9109
- "anyOf",
9110
- i
9111
- ]
9112
- }));
9113
- break;
8726
+ break;
8727
+ }
8728
+ case "date": {
8729
+ if (this.unrepresentable === "throw") {
8730
+ throw new Error("Date cannot be represented in JSON Schema");
9114
8731
  }
9115
- case "intersection": {
9116
- const json$1 = _json;
9117
- const a = this.process(def.left, {
9118
- ...params,
9119
- path: [
9120
- ...params.path,
9121
- "allOf",
9122
- 0
9123
- ]
9124
- });
9125
- const b = this.process(def.right, {
8732
+ break;
8733
+ }
8734
+ case "array": {
8735
+ const json$1 = _json;
8736
+ const { minimum, maximum } = schema._zod.bag;
8737
+ if (typeof minimum === "number") json$1.minItems = minimum;
8738
+ if (typeof maximum === "number") json$1.maxItems = maximum;
8739
+ json$1.type = "array";
8740
+ json$1.items = this.process(def.element, {
8741
+ ...params,
8742
+ path: [...params.path, "items"]
8743
+ });
8744
+ break;
8745
+ }
8746
+ case "object": {
8747
+ const json$1 = _json;
8748
+ json$1.type = "object";
8749
+ json$1.properties = {};
8750
+ const shape = def.shape;
8751
+ for (const key in shape) {
8752
+ json$1.properties[key] = this.process(shape[key], {
9126
8753
  ...params,
9127
8754
  path: [
9128
8755
  ...params.path,
9129
- "allOf",
9130
- 1
8756
+ "properties",
8757
+ key
9131
8758
  ]
9132
8759
  });
9133
- const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
9134
- const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
9135
- json$1.allOf = allOf;
9136
- break;
9137
8760
  }
9138
- case "tuple": {
9139
- const json$1 = _json;
9140
- json$1.type = "array";
9141
- const prefixItems = def.items.map((x, i) => this.process(x, {
9142
- ...params,
9143
- path: [
9144
- ...params.path,
9145
- "prefixItems",
9146
- i
9147
- ]
9148
- }));
9149
- if (this.target === "draft-2020-12") {
9150
- json$1.prefixItems = prefixItems;
8761
+ const allKeys = new Set(Object.keys(shape));
8762
+ const requiredKeys = new Set([...allKeys].filter((key) => {
8763
+ const v = def.shape[key]._zod;
8764
+ if (this.io === "input") {
8765
+ return v.optin === undefined;
9151
8766
  } else {
9152
- json$1.items = prefixItems;
8767
+ return v.optout === undefined;
9153
8768
  }
9154
- if (def.rest) {
9155
- const rest = this.process(def.rest, {
9156
- ...params,
9157
- path: [...params.path, "items"]
9158
- });
9159
- if (this.target === "draft-2020-12") {
9160
- json$1.items = rest;
9161
- } else {
9162
- json$1.additionalItems = rest;
9163
- }
9164
- }
9165
- if (def.rest) {
9166
- json$1.items = this.process(def.rest, {
9167
- ...params,
9168
- path: [...params.path, "items"]
9169
- });
9170
- }
9171
- const { minimum, maximum } = schema._zod.bag;
9172
- if (typeof minimum === "number") json$1.minItems = minimum;
9173
- if (typeof maximum === "number") json$1.maxItems = maximum;
9174
- break;
8769
+ }));
8770
+ if (requiredKeys.size > 0) {
8771
+ json$1.required = Array.from(requiredKeys);
9175
8772
  }
9176
- case "record": {
9177
- const json$1 = _json;
9178
- json$1.type = "object";
9179
- json$1.propertyNames = this.process(def.keyType, {
9180
- ...params,
9181
- path: [...params.path, "propertyNames"]
9182
- });
9183
- json$1.additionalProperties = this.process(def.valueType, {
8773
+ if (def.catchall?._zod.def.type === "never") {
8774
+ json$1.additionalProperties = false;
8775
+ } else if (!def.catchall) {
8776
+ if (this.io === "output") json$1.additionalProperties = false;
8777
+ } else if (def.catchall) {
8778
+ json$1.additionalProperties = this.process(def.catchall, {
9184
8779
  ...params,
9185
8780
  path: [...params.path, "additionalProperties"]
9186
8781
  });
9187
- break;
9188
8782
  }
9189
- case "map": {
9190
- if (this.unrepresentable === "throw") {
9191
- throw new Error("Map cannot be represented in JSON Schema");
9192
- }
9193
- break;
8783
+ break;
8784
+ }
8785
+ case "union": {
8786
+ const json$1 = _json;
8787
+ json$1.anyOf = def.options.map((x, i) => this.process(x, {
8788
+ ...params,
8789
+ path: [
8790
+ ...params.path,
8791
+ "anyOf",
8792
+ i
8793
+ ]
8794
+ }));
8795
+ break;
8796
+ }
8797
+ case "intersection": {
8798
+ const json$1 = _json;
8799
+ const a = this.process(def.left, {
8800
+ ...params,
8801
+ path: [
8802
+ ...params.path,
8803
+ "allOf",
8804
+ 0
8805
+ ]
8806
+ });
8807
+ const b = this.process(def.right, {
8808
+ ...params,
8809
+ path: [
8810
+ ...params.path,
8811
+ "allOf",
8812
+ 1
8813
+ ]
8814
+ });
8815
+ const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
8816
+ const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
8817
+ json$1.allOf = allOf;
8818
+ break;
8819
+ }
8820
+ case "tuple": {
8821
+ const json$1 = _json;
8822
+ json$1.type = "array";
8823
+ const prefixItems = def.items.map((x, i) => this.process(x, {
8824
+ ...params,
8825
+ path: [
8826
+ ...params.path,
8827
+ "prefixItems",
8828
+ i
8829
+ ]
8830
+ }));
8831
+ if (this.target === "draft-2020-12") {
8832
+ json$1.prefixItems = prefixItems;
8833
+ } else {
8834
+ json$1.items = prefixItems;
9194
8835
  }
9195
- case "set": {
9196
- if (this.unrepresentable === "throw") {
9197
- throw new Error("Set cannot be represented in JSON Schema");
8836
+ if (def.rest) {
8837
+ const rest = this.process(def.rest, {
8838
+ ...params,
8839
+ path: [...params.path, "items"]
8840
+ });
8841
+ if (this.target === "draft-2020-12") {
8842
+ json$1.items = rest;
8843
+ } else {
8844
+ json$1.additionalItems = rest;
9198
8845
  }
9199
- break;
9200
8846
  }
9201
- case "enum": {
9202
- const json$1 = _json;
9203
- const values = getEnumValues(def.entries);
9204
- if (values.every((v) => typeof v === "number")) json$1.type = "number";
9205
- if (values.every((v) => typeof v === "string")) json$1.type = "string";
9206
- json$1.enum = values;
9207
- break;
8847
+ if (def.rest) {
8848
+ json$1.items = this.process(def.rest, {
8849
+ ...params,
8850
+ path: [...params.path, "items"]
8851
+ });
8852
+ }
8853
+ const { minimum, maximum } = schema._zod.bag;
8854
+ if (typeof minimum === "number") json$1.minItems = minimum;
8855
+ if (typeof maximum === "number") json$1.maxItems = maximum;
8856
+ break;
8857
+ }
8858
+ case "record": {
8859
+ const json$1 = _json;
8860
+ json$1.type = "object";
8861
+ json$1.propertyNames = this.process(def.keyType, {
8862
+ ...params,
8863
+ path: [...params.path, "propertyNames"]
8864
+ });
8865
+ json$1.additionalProperties = this.process(def.valueType, {
8866
+ ...params,
8867
+ path: [...params.path, "additionalProperties"]
8868
+ });
8869
+ break;
8870
+ }
8871
+ case "map": {
8872
+ if (this.unrepresentable === "throw") {
8873
+ throw new Error("Map cannot be represented in JSON Schema");
9208
8874
  }
9209
- case "literal": {
9210
- const json$1 = _json;
9211
- const vals = [];
9212
- for (const val of def.values) {
9213
- if (val === undefined) {
9214
- if (this.unrepresentable === "throw") {
9215
- throw new Error("Literal `undefined` cannot be represented in JSON Schema");
9216
- } else {}
9217
- } else if (typeof val === "bigint") {
9218
- if (this.unrepresentable === "throw") {
9219
- throw new Error("BigInt literals cannot be represented in JSON Schema");
9220
- } else {
9221
- vals.push(Number(val));
9222
- }
9223
- } else {
9224
- vals.push(val);
9225
- }
9226
- }
9227
- if (vals.length === 0) {} else if (vals.length === 1) {
9228
- const val = vals[0];
9229
- json$1.type = val === null ? "null" : typeof val;
9230
- json$1.const = val;
9231
- } else {
9232
- if (vals.every((v) => typeof v === "number")) json$1.type = "number";
9233
- if (vals.every((v) => typeof v === "string")) json$1.type = "string";
9234
- if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
9235
- if (vals.every((v) => v === null)) json$1.type = "null";
9236
- json$1.enum = vals;
9237
- }
9238
- break;
8875
+ break;
8876
+ }
8877
+ case "set": {
8878
+ if (this.unrepresentable === "throw") {
8879
+ throw new Error("Set cannot be represented in JSON Schema");
9239
8880
  }
9240
- case "file": {
9241
- const json$1 = _json;
9242
- const file$1 = {
9243
- type: "string",
9244
- format: "binary",
9245
- contentEncoding: "binary"
9246
- };
9247
- const { minimum, maximum, mime } = schema._zod.bag;
9248
- if (minimum !== undefined) file$1.minLength = minimum;
9249
- if (maximum !== undefined) file$1.maxLength = maximum;
9250
- if (mime) {
9251
- if (mime.length === 1) {
9252
- file$1.contentMediaType = mime[0];
9253
- Object.assign(json$1, file$1);
8881
+ break;
8882
+ }
8883
+ case "enum": {
8884
+ const json$1 = _json;
8885
+ const values = getEnumValues(def.entries);
8886
+ if (values.every((v) => typeof v === "number")) json$1.type = "number";
8887
+ if (values.every((v) => typeof v === "string")) json$1.type = "string";
8888
+ json$1.enum = values;
8889
+ break;
8890
+ }
8891
+ case "literal": {
8892
+ const json$1 = _json;
8893
+ const vals = [];
8894
+ for (const val of def.values) {
8895
+ if (val === undefined) {
8896
+ if (this.unrepresentable === "throw") {
8897
+ throw new Error("Literal `undefined` cannot be represented in JSON Schema");
8898
+ } else {}
8899
+ } else if (typeof val === "bigint") {
8900
+ if (this.unrepresentable === "throw") {
8901
+ throw new Error("BigInt literals cannot be represented in JSON Schema");
9254
8902
  } else {
9255
- json$1.anyOf = mime.map((m) => {
9256
- const mFile = {
9257
- ...file$1,
9258
- contentMediaType: m
9259
- };
9260
- return mFile;
9261
- });
8903
+ vals.push(Number(val));
9262
8904
  }
9263
8905
  } else {
9264
- Object.assign(json$1, file$1);
9265
- }
9266
- break;
9267
- }
9268
- case "transform": {
9269
- if (this.unrepresentable === "throw") {
9270
- throw new Error("Transforms cannot be represented in JSON Schema");
8906
+ vals.push(val);
9271
8907
  }
9272
- break;
9273
8908
  }
9274
- case "nullable": {
9275
- const inner = this.process(def.innerType, params);
9276
- _json.anyOf = [inner, { type: "null" }];
9277
- break;
9278
- }
9279
- case "nonoptional": {
9280
- this.process(def.innerType, params);
9281
- result.ref = def.innerType;
9282
- break;
9283
- }
9284
- case "success": {
9285
- const json$1 = _json;
9286
- json$1.type = "boolean";
9287
- break;
9288
- }
9289
- case "default": {
9290
- this.process(def.innerType, params);
9291
- result.ref = def.innerType;
9292
- _json.default = JSON.parse(JSON.stringify(def.defaultValue));
9293
- break;
9294
- }
9295
- case "prefault": {
9296
- this.process(def.innerType, params);
9297
- result.ref = def.innerType;
9298
- if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
9299
- break;
9300
- }
9301
- case "catch": {
9302
- this.process(def.innerType, params);
9303
- result.ref = def.innerType;
9304
- let catchValue;
9305
- try {
9306
- catchValue = def.catchValue(undefined);
9307
- } catch {
9308
- throw new Error("Dynamic catch values are not supported in JSON Schema");
9309
- }
9310
- _json.default = catchValue;
9311
- break;
8909
+ if (vals.length === 0) {} else if (vals.length === 1) {
8910
+ const val = vals[0];
8911
+ json$1.type = val === null ? "null" : typeof val;
8912
+ json$1.const = val;
8913
+ } else {
8914
+ if (vals.every((v) => typeof v === "number")) json$1.type = "number";
8915
+ if (vals.every((v) => typeof v === "string")) json$1.type = "string";
8916
+ if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
8917
+ if (vals.every((v) => v === null)) json$1.type = "null";
8918
+ json$1.enum = vals;
9312
8919
  }
9313
- case "nan": {
9314
- if (this.unrepresentable === "throw") {
9315
- throw new Error("NaN cannot be represented in JSON Schema");
8920
+ break;
8921
+ }
8922
+ case "file": {
8923
+ const json$1 = _json;
8924
+ const file$1 = {
8925
+ type: "string",
8926
+ format: "binary",
8927
+ contentEncoding: "binary"
8928
+ };
8929
+ const { minimum, maximum, mime } = schema._zod.bag;
8930
+ if (minimum !== undefined) file$1.minLength = minimum;
8931
+ if (maximum !== undefined) file$1.maxLength = maximum;
8932
+ if (mime) {
8933
+ if (mime.length === 1) {
8934
+ file$1.contentMediaType = mime[0];
8935
+ Object.assign(json$1, file$1);
8936
+ } else {
8937
+ json$1.anyOf = mime.map((m) => {
8938
+ const mFile = {
8939
+ ...file$1,
8940
+ contentMediaType: m
8941
+ };
8942
+ return mFile;
8943
+ });
9316
8944
  }
9317
- break;
9318
- }
9319
- case "template_literal": {
9320
- const json$1 = _json;
9321
- const pattern = schema._zod.pattern;
9322
- if (!pattern) throw new Error("Pattern not found in template literal");
9323
- json$1.type = "string";
9324
- json$1.pattern = pattern.source;
9325
- break;
9326
- }
9327
- case "pipe": {
9328
- const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
9329
- this.process(innerType, params);
9330
- result.ref = innerType;
9331
- break;
9332
- }
9333
- case "readonly": {
9334
- this.process(def.innerType, params);
9335
- result.ref = def.innerType;
9336
- _json.readOnly = true;
9337
- break;
9338
- }
9339
- case "promise": {
9340
- this.process(def.innerType, params);
9341
- result.ref = def.innerType;
9342
- break;
8945
+ } else {
8946
+ Object.assign(json$1, file$1);
9343
8947
  }
9344
- case "optional": {
9345
- this.process(def.innerType, params);
9346
- result.ref = def.innerType;
9347
- break;
8948
+ break;
8949
+ }
8950
+ case "transform": {
8951
+ if (this.unrepresentable === "throw") {
8952
+ throw new Error("Transforms cannot be represented in JSON Schema");
9348
8953
  }
9349
- case "lazy": {
9350
- const innerType = schema._zod.innerType;
9351
- this.process(innerType, params);
9352
- result.ref = innerType;
9353
- break;
8954
+ break;
8955
+ }
8956
+ case "nullable": {
8957
+ const inner = this.process(def.innerType, params);
8958
+ _json.anyOf = [inner, { type: "null" }];
8959
+ break;
8960
+ }
8961
+ case "nonoptional": {
8962
+ this.process(def.innerType, params);
8963
+ result.ref = def.innerType;
8964
+ break;
8965
+ }
8966
+ case "success": {
8967
+ const json$1 = _json;
8968
+ json$1.type = "boolean";
8969
+ break;
8970
+ }
8971
+ case "default": {
8972
+ this.process(def.innerType, params);
8973
+ result.ref = def.innerType;
8974
+ _json.default = def.defaultValue;
8975
+ break;
8976
+ }
8977
+ case "prefault": {
8978
+ this.process(def.innerType, params);
8979
+ result.ref = def.innerType;
8980
+ if (this.io === "input") _json._prefault = def.defaultValue;
8981
+ break;
8982
+ }
8983
+ case "catch": {
8984
+ this.process(def.innerType, params);
8985
+ result.ref = def.innerType;
8986
+ let catchValue;
8987
+ try {
8988
+ catchValue = def.catchValue(undefined);
8989
+ } catch {
8990
+ throw new Error("Dynamic catch values are not supported in JSON Schema");
9354
8991
  }
9355
- case "custom": {
9356
- if (this.unrepresentable === "throw") {
9357
- throw new Error("Custom types cannot be represented in JSON Schema");
9358
- }
9359
- break;
8992
+ _json.default = catchValue;
8993
+ break;
8994
+ }
8995
+ case "nan": {
8996
+ if (this.unrepresentable === "throw") {
8997
+ throw new Error("NaN cannot be represented in JSON Schema");
9360
8998
  }
9361
- default: {
9362
- def;
8999
+ break;
9000
+ }
9001
+ case "template_literal": {
9002
+ const json$1 = _json;
9003
+ const pattern = schema._zod.pattern;
9004
+ if (!pattern) throw new Error("Pattern not found in template literal");
9005
+ json$1.type = "string";
9006
+ json$1.pattern = pattern.source;
9007
+ break;
9008
+ }
9009
+ case "pipe": {
9010
+ const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
9011
+ this.process(innerType, params);
9012
+ result.ref = innerType;
9013
+ break;
9014
+ }
9015
+ case "readonly": {
9016
+ this.process(def.innerType, params);
9017
+ result.ref = def.innerType;
9018
+ _json.readOnly = true;
9019
+ break;
9020
+ }
9021
+ case "promise": {
9022
+ this.process(def.innerType, params);
9023
+ result.ref = def.innerType;
9024
+ break;
9025
+ }
9026
+ case "optional": {
9027
+ this.process(def.innerType, params);
9028
+ result.ref = def.innerType;
9029
+ break;
9030
+ }
9031
+ case "lazy": {
9032
+ const innerType = schema._zod.innerType;
9033
+ this.process(innerType, params);
9034
+ result.ref = innerType;
9035
+ break;
9036
+ }
9037
+ case "custom": {
9038
+ if (this.unrepresentable === "throw") {
9039
+ throw new Error("Custom types cannot be represented in JSON Schema");
9363
9040
  }
9041
+ break;
9042
+ }
9043
+ default: {
9044
+ def;
9364
9045
  }
9365
9046
  }
9366
9047
  }
@@ -9387,15 +9068,12 @@ var JSONSchemaGenerator = class {
9387
9068
  const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
9388
9069
  if (params.external) {
9389
9070
  const externalId = params.external.registry.get(entry[0])?.id;
9390
- const uriGenerator = params.external.uri ?? ((id$1) => id$1);
9391
- if (externalId) {
9392
- return { ref: uriGenerator(externalId) };
9393
- }
9071
+ if (externalId) return { ref: params.external.uri(externalId) };
9394
9072
  const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
9395
9073
  entry[1].defId = id;
9396
9074
  return {
9397
9075
  defId: id,
9398
- ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
9076
+ ref: `${params.external.uri("__shared")}#/${defsSegment}/${id}`
9399
9077
  };
9400
9078
  }
9401
9079
  if (entry[1] === root) {
@@ -9423,14 +9101,6 @@ var JSONSchemaGenerator = class {
9423
9101
  }
9424
9102
  schema$1.$ref = ref;
9425
9103
  };
9426
- if (params.cycles === "throw") {
9427
- for (const entry of this.seen.entries()) {
9428
- const seen = entry[1];
9429
- if (seen.cycle) {
9430
- throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
9431
- }
9432
- }
9433
- }
9434
9104
  for (const entry of this.seen.entries()) {
9435
9105
  const seen = entry[1];
9436
9106
  if (schema === entry[0]) {
@@ -9450,7 +9120,11 @@ var JSONSchemaGenerator = class {
9450
9120
  continue;
9451
9121
  }
9452
9122
  if (seen.cycle) {
9453
- extractToDef(entry);
9123
+ if (params.cycles === "throw") {
9124
+ throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
9125
+ } else if (params.cycles === "ref") {
9126
+ extractToDef(entry);
9127
+ }
9454
9128
  continue;
9455
9129
  }
9456
9130
  if (seen.count > 1) {
@@ -9482,8 +9156,7 @@ var JSONSchemaGenerator = class {
9482
9156
  }
9483
9157
  if (!seen.isParent) this.override({
9484
9158
  zodSchema,
9485
- jsonSchema: schema$1,
9486
- path: seen.path ?? []
9159
+ jsonSchema: schema$1
9487
9160
  });
9488
9161
  };
9489
9162
  for (const entry of [...this.seen.entries()].reverse()) {
@@ -9497,11 +9170,6 @@ var JSONSchemaGenerator = class {
9497
9170
  } else {
9498
9171
  console.warn(`Invalid target: ${this.target}`);
9499
9172
  }
9500
- if (params.external?.uri) {
9501
- const id = params.external.registry.get(schema)?.id;
9502
- if (!id) throw new Error("Schema is missing an `id` property");
9503
- result.$id = params.external.uri(id);
9504
- }
9505
9173
  Object.assign(result, root.def);
9506
9174
  const defs = params.external?.defs ?? {};
9507
9175
  for (const entry of this.seen.entries()) {
@@ -9510,13 +9178,11 @@ var JSONSchemaGenerator = class {
9510
9178
  defs[seen.defId] = seen.def;
9511
9179
  }
9512
9180
  }
9513
- if (params.external) {} else {
9514
- if (Object.keys(defs).length > 0) {
9515
- if (this.target === "draft-2020-12") {
9516
- result.$defs = defs;
9517
- } else {
9518
- result.definitions = defs;
9519
- }
9181
+ if (!params.external && Object.keys(defs).length > 0) {
9182
+ if (this.target === "draft-2020-12") {
9183
+ result.$defs = defs;
9184
+ } else {
9185
+ result.definitions = defs;
9520
9186
  }
9521
9187
  }
9522
9188
  try {
@@ -9537,7 +9203,7 @@ function toJSONSchema(input, _params) {
9537
9203
  const schemas = {};
9538
9204
  const external = {
9539
9205
  registry: input,
9540
- uri: _params?.uri,
9206
+ uri: _params?.uri || ((id) => id),
9541
9207
  defs
9542
9208
  };
9543
9209
  for (const entry of input._idmap.entries()) {
@@ -9648,11 +9314,11 @@ function isTransforming(_schema, _ctx) {
9648
9314
  }
9649
9315
 
9650
9316
  //#endregion
9651
- //#region ../../node_modules/zod/v4/core/json-schema.js
9317
+ //#region ../../node_modules/zod/dist/esm/v4/core/json-schema.js
9652
9318
  var json_schema_exports = {};
9653
9319
 
9654
9320
  //#endregion
9655
- //#region ../../node_modules/zod/v4/core/index.js
9321
+ //#region ../../node_modules/zod/dist/esm/v4/core/index.js
9656
9322
  var core_exports = {};
9657
9323
  __export(core_exports, {
9658
9324
  $ZodAny: () => $ZodAny,
@@ -9691,7 +9357,6 @@ __export(core_exports, {
9691
9357
  $ZodCheckStringFormat: () => $ZodCheckStringFormat,
9692
9358
  $ZodCheckUpperCase: () => $ZodCheckUpperCase,
9693
9359
  $ZodCustom: () => $ZodCustom,
9694
- $ZodCustomStringFormat: () => $ZodCustomStringFormat,
9695
9360
  $ZodDate: () => $ZodDate,
9696
9361
  $ZodDefault: () => $ZodDefault,
9697
9362
  $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
@@ -9756,8 +9421,6 @@ __export(core_exports, {
9756
9421
  Doc: () => Doc,
9757
9422
  JSONSchema: () => json_schema_exports,
9758
9423
  JSONSchemaGenerator: () => JSONSchemaGenerator,
9759
- NEVER: () => NEVER,
9760
- TimePrecision: () => TimePrecision,
9761
9424
  _any: () => _any,
9762
9425
  _array: () => _array,
9763
9426
  _base64: () => _base64,
@@ -9847,7 +9510,6 @@ __export(core_exports, {
9847
9510
  _size: () => _size,
9848
9511
  _startsWith: () => _startsWith,
9849
9512
  _string: () => _string,
9850
- _stringFormat: () => _stringFormat,
9851
9513
  _stringbool: () => _stringbool,
9852
9514
  _success: () => _success,
9853
9515
  _symbol: () => _symbol,
@@ -9897,7 +9559,7 @@ __export(core_exports, {
9897
9559
  });
9898
9560
 
9899
9561
  //#endregion
9900
- //#region ../../node_modules/zod/v4/classic/iso.js
9562
+ //#region ../../node_modules/zod/dist/esm/v4/classic/iso.js
9901
9563
  var iso_exports = {};
9902
9564
  __export(iso_exports, {
9903
9565
  ZodISODate: () => ZodISODate,
@@ -9939,7 +9601,7 @@ function duration(params) {
9939
9601
  }
9940
9602
 
9941
9603
  //#endregion
9942
- //#region ../../node_modules/zod/v4/classic/errors.js
9604
+ //#region ../../node_modules/zod/dist/esm/v4/classic/errors.js
9943
9605
  const initializer = (inst, issues) => {
9944
9606
  $ZodError.init(inst, issues);
9945
9607
  inst.name = "ZodError";
@@ -9957,14 +9619,14 @@ const ZodError = $constructor("ZodError", initializer);
9957
9619
  const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
9958
9620
 
9959
9621
  //#endregion
9960
- //#region ../../node_modules/zod/v4/classic/parse.js
9622
+ //#region ../../node_modules/zod/dist/esm/v4/classic/parse.js
9961
9623
  const parse = /* @__PURE__ */ _parse(ZodRealError);
9962
9624
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
9963
9625
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
9964
9626
  const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
9965
9627
 
9966
9628
  //#endregion
9967
- //#region ../../node_modules/zod/v4/classic/schemas.js
9629
+ //#region ../../node_modules/zod/dist/esm/v4/classic/schemas.js
9968
9630
  const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
9969
9631
  $ZodType.init(inst, def);
9970
9632
  inst.def = def;
@@ -10232,13 +9894,6 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
10232
9894
  function jwt(params) {
10233
9895
  return _jwt(ZodJWT, params);
10234
9896
  }
10235
- const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
10236
- $ZodCustomStringFormat.init(inst, def);
10237
- ZodStringFormat.init(inst, def);
10238
- });
10239
- function stringFormat(format, fnOrRegex, _params = {}) {
10240
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
10241
- }
10242
9897
  const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
10243
9898
  $ZodNumber.init(inst, def);
10244
9899
  ZodType.init(inst, def);
@@ -10408,7 +10063,9 @@ function keyof(schema) {
10408
10063
  const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
10409
10064
  $ZodObject.init(inst, def);
10410
10065
  ZodType.init(inst, def);
10411
- defineLazy(inst, "shape", () => def.shape);
10066
+ defineLazy(inst, "shape", () => {
10067
+ return Object.fromEntries(Object.entries(inst._zod.def.shape));
10068
+ });
10412
10069
  inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
10413
10070
  inst.catchall = (catchall) => inst.clone({
10414
10071
  ...inst._zod.def,
@@ -10853,8 +10510,11 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
10853
10510
  $ZodCustom.init(inst, def);
10854
10511
  ZodType.init(inst, def);
10855
10512
  });
10856
- function check(fn) {
10857
- const ch = new $ZodCheck({ check: "custom" });
10513
+ function check(fn, params) {
10514
+ const ch = new $ZodCheck({
10515
+ check: "custom",
10516
+ ...normalizeParams(params)
10517
+ });
10858
10518
  ch._zod.check = fn;
10859
10519
  return ch;
10860
10520
  }
@@ -10864,7 +10524,7 @@ function custom(fn, _params) {
10864
10524
  function refine(fn, _params = {}) {
10865
10525
  return _refine(ZodCustom, fn, _params);
10866
10526
  }
10867
- function superRefine(fn) {
10527
+ function superRefine(fn, params) {
10868
10528
  const ch = check((payload) => {
10869
10529
  payload.addIssue = (issue$1) => {
10870
10530
  if (typeof issue$1 === "string") {
@@ -10880,7 +10540,7 @@ function superRefine(fn) {
10880
10540
  }
10881
10541
  };
10882
10542
  return fn(payload.value, payload);
10883
- });
10543
+ }, params);
10884
10544
  return ch;
10885
10545
  }
10886
10546
  function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
@@ -10918,7 +10578,7 @@ function preprocess(fn, schema) {
10918
10578
  }
10919
10579
 
10920
10580
  //#endregion
10921
- //#region ../../node_modules/zod/v4/classic/compat.js
10581
+ //#region ../../node_modules/zod/dist/esm/v4/classic/compat.js
10922
10582
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
10923
10583
  const ZodIssueCode = {
10924
10584
  invalid_type: "invalid_type",
@@ -10933,6 +10593,10 @@ const ZodIssueCode = {
10933
10593
  invalid_value: "invalid_value",
10934
10594
  custom: "custom"
10935
10595
  };
10596
+ /** @deprecated Not necessary in Zod 4. */
10597
+ const INVALID = Object.freeze({ status: "aborted" });
10598
+ /** A special constant with type `never` */
10599
+ const NEVER = INVALID;
10936
10600
  /** @deprecated Use `z.config(params)` instead. */
10937
10601
  function setErrorMap(map$1) {
10938
10602
  config({ customError: map$1 });
@@ -10943,7 +10607,7 @@ function getErrorMap() {
10943
10607
  }
10944
10608
 
10945
10609
  //#endregion
10946
- //#region ../../node_modules/zod/v4/classic/coerce.js
10610
+ //#region ../../node_modules/zod/dist/esm/v4/classic/coerce.js
10947
10611
  var coerce_exports = {};
10948
10612
  __export(coerce_exports, {
10949
10613
  bigint: () => bigint,
@@ -10969,14 +10633,13 @@ function date(params) {
10969
10633
  }
10970
10634
 
10971
10635
  //#endregion
10972
- //#region ../../node_modules/zod/v4/classic/external.js
10636
+ //#region ../../node_modules/zod/dist/esm/v4/classic/external.js
10973
10637
  var external_exports = {};
10974
10638
  __export(external_exports, {
10975
10639
  $brand: () => $brand,
10976
10640
  $input: () => $input,
10977
10641
  $output: () => $output,
10978
10642
  NEVER: () => NEVER,
10979
- TimePrecision: () => TimePrecision,
10980
10643
  ZodAny: () => ZodAny,
10981
10644
  ZodArray: () => ZodArray,
10982
10645
  ZodBase64: () => ZodBase64,
@@ -10990,7 +10653,6 @@ __export(external_exports, {
10990
10653
  ZodCUID2: () => ZodCUID2,
10991
10654
  ZodCatch: () => ZodCatch,
10992
10655
  ZodCustom: () => ZodCustom,
10993
- ZodCustomStringFormat: () => ZodCustomStringFormat,
10994
10656
  ZodDate: () => ZodDate,
10995
10657
  ZodDefault: () => ZodDefault,
10996
10658
  ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
@@ -11152,7 +10814,6 @@ __export(external_exports, {
11152
10814
  startsWith: () => _startsWith,
11153
10815
  strictObject: () => strictObject,
11154
10816
  string: () => string$1,
11155
- stringFormat: () => stringFormat,
11156
10817
  stringbool: () => stringbool,
11157
10818
  success: () => success,
11158
10819
  superRefine: () => superRefine,
@@ -11183,11 +10844,11 @@ __export(external_exports, {
11183
10844
  config(en_default());
11184
10845
 
11185
10846
  //#endregion
11186
- //#region ../../node_modules/zod/v4/classic/index.js
10847
+ //#region ../../node_modules/zod/dist/esm/v4/classic/index.js
11187
10848
  var classic_default = external_exports;
11188
10849
 
11189
10850
  //#endregion
11190
- //#region ../../node_modules/zod/v4/index.js
10851
+ //#region ../../node_modules/zod/dist/esm/v4/index.js
11191
10852
  var v4_default = classic_default;
11192
10853
 
11193
10854
  //#endregion
@@ -11322,8 +10983,8 @@ var EASClient = class {
11322
10983
  };
11323
10984
  return this.deployedAddresses;
11324
10985
  } catch (err) {
11325
- const error$39 = err;
11326
- throw new Error(`Failed to deploy EAS contracts: ${error$39.message}`);
10986
+ const error$37 = err;
10987
+ throw new Error(`Failed to deploy EAS contracts: ${error$37.message}`);
11327
10988
  }
11328
10989
  }
11329
10990
  /**
@@ -11384,8 +11045,8 @@ var EASClient = class {
11384
11045
  success: true
11385
11046
  };
11386
11047
  } catch (err) {
11387
- const error$39 = err;
11388
- throw new Error(`Failed to register schema: ${error$39.message}`);
11048
+ const error$37 = err;
11049
+ throw new Error(`Failed to register schema: ${error$37.message}`);
11389
11050
  }
11390
11051
  }
11391
11052
  /**
@@ -11451,8 +11112,8 @@ var EASClient = class {
11451
11112
  success: true
11452
11113
  };
11453
11114
  } catch (err) {
11454
- const error$39 = err;
11455
- throw new Error(`Failed to create attestation: ${error$39.message}`);
11115
+ const error$37 = err;
11116
+ throw new Error(`Failed to create attestation: ${error$37.message}`);
11456
11117
  }
11457
11118
  }
11458
11119
  /**
@@ -11534,8 +11195,8 @@ var EASClient = class {
11534
11195
  success: true
11535
11196
  };
11536
11197
  } catch (err) {
11537
- const error$39 = err;
11538
- throw new Error(`Failed to create multiple attestations: ${error$39.message}`);
11198
+ const error$37 = err;
11199
+ throw new Error(`Failed to create multiple attestations: ${error$37.message}`);
11539
11200
  }
11540
11201
  }
11541
11202
  /**
@@ -11590,8 +11251,8 @@ var EASClient = class {
11590
11251
  success: true
11591
11252
  };
11592
11253
  } catch (err) {
11593
- const error$39 = err;
11594
- throw new Error(`Failed to revoke attestation: ${error$39.message}`);
11254
+ const error$37 = err;
11255
+ throw new Error(`Failed to revoke attestation: ${error$37.message}`);
11595
11256
  }
11596
11257
  }
11597
11258
  /**