@settlemint/sdk-utils 2.5.1-prca5edae9 → 2.5.1-pre6103334
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/environment.cjs +1071 -727
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.js +1071 -727
- package/dist/environment.js.map +1 -1
- package/dist/logging.d.cts +1 -1
- package/dist/logging.d.ts +1 -1
- package/dist/terminal.d.cts +1 -1
- package/dist/terminal.d.ts +1 -1
- package/dist/validation.cjs +1035 -691
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/dist/validation.js +1035 -691
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/environment.js
CHANGED
|
@@ -350,10 +350,10 @@ var SpinnerError = class extends Error {
|
|
|
350
350
|
* });
|
|
351
351
|
*/
|
|
352
352
|
const spinner = async (options) => {
|
|
353
|
-
const handleError = (error$
|
|
354
|
-
const errorMessage = maskTokens(error$
|
|
355
|
-
note(redBright(`${errorMessage}\n\n${error$
|
|
356
|
-
throw new SpinnerError(errorMessage, error$
|
|
353
|
+
const handleError = (error$39) => {
|
|
354
|
+
const errorMessage = maskTokens(error$39.message);
|
|
355
|
+
note(redBright(`${errorMessage}\n\n${error$39.stack}`));
|
|
356
|
+
throw new SpinnerError(errorMessage, error$39);
|
|
357
357
|
};
|
|
358
358
|
if (isInCi || !shouldPrint()) {
|
|
359
359
|
try {
|
|
@@ -481,7 +481,9 @@ function table(title, data) {
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/zod/
|
|
484
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
485
|
+
/** A special constant with type `never` */
|
|
486
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
485
487
|
function $constructor(name, initializer$2, params) {
|
|
486
488
|
function init(inst, def) {
|
|
487
489
|
var _a;
|
|
@@ -532,7 +534,7 @@ function config$1(newConfig) {
|
|
|
532
534
|
}
|
|
533
535
|
|
|
534
536
|
//#endregion
|
|
535
|
-
//#region ../../node_modules/zod/
|
|
537
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
536
538
|
var util_exports = {};
|
|
537
539
|
__export(util_exports, {
|
|
538
540
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -547,6 +549,7 @@ __export(util_exports, {
|
|
|
547
549
|
assertNotEqual: () => assertNotEqual,
|
|
548
550
|
assignProp: () => assignProp,
|
|
549
551
|
cached: () => cached,
|
|
552
|
+
captureStackTrace: () => captureStackTrace,
|
|
550
553
|
cleanEnum: () => cleanEnum,
|
|
551
554
|
cleanRegex: () => cleanRegex,
|
|
552
555
|
clone: () => clone,
|
|
@@ -685,10 +688,14 @@ function randomString(length = 10) {
|
|
|
685
688
|
function esc(str) {
|
|
686
689
|
return JSON.stringify(str);
|
|
687
690
|
}
|
|
691
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
688
692
|
function isObject(data) {
|
|
689
693
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
690
694
|
}
|
|
691
695
|
const allowsEval = cached(() => {
|
|
696
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
697
|
+
return false;
|
|
698
|
+
}
|
|
692
699
|
try {
|
|
693
700
|
const F = Function;
|
|
694
701
|
new F("");
|
|
@@ -697,9 +704,6 @@ const allowsEval = cached(() => {
|
|
|
697
704
|
return false;
|
|
698
705
|
}
|
|
699
706
|
});
|
|
700
|
-
function _isObject(o) {
|
|
701
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
702
|
-
}
|
|
703
707
|
function isPlainObject(o) {
|
|
704
708
|
if (isObject(o) === false) return false;
|
|
705
709
|
const ctor = o.constructor;
|
|
@@ -879,6 +883,9 @@ function omit(schema, mask) {
|
|
|
879
883
|
});
|
|
880
884
|
}
|
|
881
885
|
function extend(schema, shape) {
|
|
886
|
+
if (!isPlainObject(shape)) {
|
|
887
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
888
|
+
}
|
|
882
889
|
const def = {
|
|
883
890
|
...schema._zod.def,
|
|
884
891
|
get shape() {
|
|
@@ -966,7 +973,7 @@ function required(Class$1, schema, mask) {
|
|
|
966
973
|
}
|
|
967
974
|
function aborted(x, startIndex = 0) {
|
|
968
975
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
969
|
-
if (x.issues[i]
|
|
976
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
970
977
|
}
|
|
971
978
|
return false;
|
|
972
979
|
}
|
|
@@ -1030,7 +1037,7 @@ var Class = class {
|
|
|
1030
1037
|
};
|
|
1031
1038
|
|
|
1032
1039
|
//#endregion
|
|
1033
|
-
//#region ../../node_modules/zod/
|
|
1040
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
1034
1041
|
const initializer$1 = (inst, def) => {
|
|
1035
1042
|
inst.name = "$ZodError";
|
|
1036
1043
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1047,13 +1054,17 @@ const initializer$1 = (inst, def) => {
|
|
|
1047
1054
|
},
|
|
1048
1055
|
enumerable: true
|
|
1049
1056
|
});
|
|
1057
|
+
Object.defineProperty(inst, "toString", {
|
|
1058
|
+
value: () => inst.message,
|
|
1059
|
+
enumerable: false
|
|
1060
|
+
});
|
|
1050
1061
|
};
|
|
1051
1062
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
1052
1063
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
1053
|
-
function flattenError(error$
|
|
1064
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
1054
1065
|
const fieldErrors = {};
|
|
1055
1066
|
const formErrors = [];
|
|
1056
|
-
for (const sub of error$
|
|
1067
|
+
for (const sub of error$39.issues) {
|
|
1057
1068
|
if (sub.path.length > 0) {
|
|
1058
1069
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1059
1070
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1066,13 +1077,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
1066
1077
|
fieldErrors
|
|
1067
1078
|
};
|
|
1068
1079
|
}
|
|
1069
|
-
function formatError(error$
|
|
1080
|
+
function formatError(error$39, _mapper) {
|
|
1070
1081
|
const mapper = _mapper || function(issue$1) {
|
|
1071
1082
|
return issue$1.message;
|
|
1072
1083
|
};
|
|
1073
1084
|
const fieldErrors = { _errors: [] };
|
|
1074
|
-
const processError = (error$
|
|
1075
|
-
for (const issue$1 of error$
|
|
1085
|
+
const processError = (error$40) => {
|
|
1086
|
+
for (const issue$1 of error$40.issues) {
|
|
1076
1087
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1077
1088
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
1078
1089
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1099,17 +1110,17 @@ function formatError(error$37, _mapper) {
|
|
|
1099
1110
|
}
|
|
1100
1111
|
}
|
|
1101
1112
|
};
|
|
1102
|
-
processError(error$
|
|
1113
|
+
processError(error$39);
|
|
1103
1114
|
return fieldErrors;
|
|
1104
1115
|
}
|
|
1105
|
-
function treeifyError(error$
|
|
1116
|
+
function treeifyError(error$39, _mapper) {
|
|
1106
1117
|
const mapper = _mapper || function(issue$1) {
|
|
1107
1118
|
return issue$1.message;
|
|
1108
1119
|
};
|
|
1109
1120
|
const result = { errors: [] };
|
|
1110
|
-
const processError = (error$
|
|
1121
|
+
const processError = (error$40, path$1 = []) => {
|
|
1111
1122
|
var _a, _b;
|
|
1112
|
-
for (const issue$1 of error$
|
|
1123
|
+
for (const issue$1 of error$40.issues) {
|
|
1113
1124
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1114
1125
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
1115
1126
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1144,7 +1155,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
1144
1155
|
}
|
|
1145
1156
|
}
|
|
1146
1157
|
};
|
|
1147
|
-
processError(error$
|
|
1158
|
+
processError(error$39);
|
|
1148
1159
|
return result;
|
|
1149
1160
|
}
|
|
1150
1161
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -1192,9 +1203,9 @@ function toDotPath(path$1) {
|
|
|
1192
1203
|
}
|
|
1193
1204
|
return segs.join("");
|
|
1194
1205
|
}
|
|
1195
|
-
function prettifyError(error$
|
|
1206
|
+
function prettifyError(error$39) {
|
|
1196
1207
|
const lines = [];
|
|
1197
|
-
const issues = [...error$
|
|
1208
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
1198
1209
|
for (const issue$1 of issues) {
|
|
1199
1210
|
lines.push(`✖ ${issue$1.message}`);
|
|
1200
1211
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -1203,7 +1214,7 @@ function prettifyError(error$37) {
|
|
|
1203
1214
|
}
|
|
1204
1215
|
|
|
1205
1216
|
//#endregion
|
|
1206
|
-
//#region ../../node_modules/zod/
|
|
1217
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
1207
1218
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1208
1219
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1209
1220
|
const result = schema._zod.run({
|
|
@@ -1215,7 +1226,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1215
1226
|
}
|
|
1216
1227
|
if (result.issues.length) {
|
|
1217
1228
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$1())));
|
|
1218
|
-
|
|
1229
|
+
captureStackTrace(e, _params?.callee);
|
|
1219
1230
|
throw e;
|
|
1220
1231
|
}
|
|
1221
1232
|
return result.value;
|
|
@@ -1230,7 +1241,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
1230
1241
|
if (result instanceof Promise) result = await result;
|
|
1231
1242
|
if (result.issues.length) {
|
|
1232
1243
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$1())));
|
|
1233
|
-
|
|
1244
|
+
captureStackTrace(e, params?.callee);
|
|
1234
1245
|
throw e;
|
|
1235
1246
|
}
|
|
1236
1247
|
return result.value;
|
|
@@ -1275,10 +1286,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1275
1286
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1276
1287
|
|
|
1277
1288
|
//#endregion
|
|
1278
|
-
//#region ../../node_modules/zod/
|
|
1289
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
1279
1290
|
var regexes_exports = {};
|
|
1280
1291
|
__export(regexes_exports, {
|
|
1281
|
-
_emoji: () => _emoji$1,
|
|
1282
1292
|
base64: () => base64$1,
|
|
1283
1293
|
base64url: () => base64url$1,
|
|
1284
1294
|
bigint: () => bigint$2,
|
|
@@ -1364,27 +1374,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
1364
1374
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
1365
1375
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1366
1376
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
1367
|
-
const dateSource = `((
|
|
1377
|
+
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])))`;
|
|
1368
1378
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
1369
1379
|
function timeSource(args) {
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
1373
|
-
} else if (args.precision == null) {
|
|
1374
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
1375
|
-
}
|
|
1380
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
1381
|
+
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+)?)?`;
|
|
1376
1382
|
return regex;
|
|
1377
1383
|
}
|
|
1378
1384
|
function time$1(args) {
|
|
1379
1385
|
return new RegExp(`^${timeSource(args)}$`);
|
|
1380
1386
|
}
|
|
1381
1387
|
function datetime$1(args) {
|
|
1382
|
-
|
|
1383
|
-
const opts = [];
|
|
1384
|
-
|
|
1385
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
1386
|
-
|
|
1387
|
-
return new RegExp(`^${
|
|
1388
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
1389
|
+
const opts = ["Z"];
|
|
1390
|
+
if (args.local) opts.push("");
|
|
1391
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
1392
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
1393
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
1388
1394
|
}
|
|
1389
1395
|
const string$2 = (params) => {
|
|
1390
1396
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1400,7 +1406,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
1400
1406
|
const uppercase = /^[^a-z]*$/;
|
|
1401
1407
|
|
|
1402
1408
|
//#endregion
|
|
1403
|
-
//#region ../../node_modules/zod/
|
|
1409
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1404
1410
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1405
1411
|
var _a;
|
|
1406
1412
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1591,11 +1597,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1591
1597
|
};
|
|
1592
1598
|
});
|
|
1593
1599
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1600
|
+
var _a;
|
|
1594
1601
|
$ZodCheck.init(inst, def);
|
|
1595
|
-
inst._zod.when = (payload) => {
|
|
1602
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1596
1603
|
const val = payload.value;
|
|
1597
1604
|
return !nullish$1(val) && val.size !== undefined;
|
|
1598
|
-
};
|
|
1605
|
+
});
|
|
1599
1606
|
inst._zod.onattach.push((inst$1) => {
|
|
1600
1607
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1601
1608
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1615,11 +1622,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1615
1622
|
};
|
|
1616
1623
|
});
|
|
1617
1624
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1625
|
+
var _a;
|
|
1618
1626
|
$ZodCheck.init(inst, def);
|
|
1619
|
-
inst._zod.when = (payload) => {
|
|
1627
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1620
1628
|
const val = payload.value;
|
|
1621
1629
|
return !nullish$1(val) && val.size !== undefined;
|
|
1622
|
-
};
|
|
1630
|
+
});
|
|
1623
1631
|
inst._zod.onattach.push((inst$1) => {
|
|
1624
1632
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1625
1633
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1639,11 +1647,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1639
1647
|
};
|
|
1640
1648
|
});
|
|
1641
1649
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1650
|
+
var _a;
|
|
1642
1651
|
$ZodCheck.init(inst, def);
|
|
1643
|
-
inst._zod.when = (payload) => {
|
|
1652
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1644
1653
|
const val = payload.value;
|
|
1645
1654
|
return !nullish$1(val) && val.size !== undefined;
|
|
1646
|
-
};
|
|
1655
|
+
});
|
|
1647
1656
|
inst._zod.onattach.push((inst$1) => {
|
|
1648
1657
|
const bag = inst$1._zod.bag;
|
|
1649
1658
|
bag.minimum = def.size;
|
|
@@ -1664,6 +1673,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1664
1673
|
code: "too_small",
|
|
1665
1674
|
minimum: def.size
|
|
1666
1675
|
},
|
|
1676
|
+
inclusive: true,
|
|
1677
|
+
exact: true,
|
|
1667
1678
|
input: payload.value,
|
|
1668
1679
|
inst,
|
|
1669
1680
|
continue: !def.abort
|
|
@@ -1671,11 +1682,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1671
1682
|
};
|
|
1672
1683
|
});
|
|
1673
1684
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1685
|
+
var _a;
|
|
1674
1686
|
$ZodCheck.init(inst, def);
|
|
1675
|
-
inst._zod.when = (payload) => {
|
|
1687
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1676
1688
|
const val = payload.value;
|
|
1677
1689
|
return !nullish$1(val) && val.length !== undefined;
|
|
1678
|
-
};
|
|
1690
|
+
});
|
|
1679
1691
|
inst._zod.onattach.push((inst$1) => {
|
|
1680
1692
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1681
1693
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1697,11 +1709,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1697
1709
|
};
|
|
1698
1710
|
});
|
|
1699
1711
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1712
|
+
var _a;
|
|
1700
1713
|
$ZodCheck.init(inst, def);
|
|
1701
|
-
inst._zod.when = (payload) => {
|
|
1714
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1702
1715
|
const val = payload.value;
|
|
1703
1716
|
return !nullish$1(val) && val.length !== undefined;
|
|
1704
|
-
};
|
|
1717
|
+
});
|
|
1705
1718
|
inst._zod.onattach.push((inst$1) => {
|
|
1706
1719
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1707
1720
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1723,11 +1736,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1723
1736
|
};
|
|
1724
1737
|
});
|
|
1725
1738
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1739
|
+
var _a;
|
|
1726
1740
|
$ZodCheck.init(inst, def);
|
|
1727
|
-
inst._zod.when = (payload) => {
|
|
1741
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1728
1742
|
const val = payload.value;
|
|
1729
1743
|
return !nullish$1(val) && val.length !== undefined;
|
|
1730
|
-
};
|
|
1744
|
+
});
|
|
1731
1745
|
inst._zod.onattach.push((inst$1) => {
|
|
1732
1746
|
const bag = inst$1._zod.bag;
|
|
1733
1747
|
bag.minimum = def.length;
|
|
@@ -1749,6 +1763,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1749
1763
|
code: "too_small",
|
|
1750
1764
|
minimum: def.length
|
|
1751
1765
|
},
|
|
1766
|
+
inclusive: true,
|
|
1767
|
+
exact: true,
|
|
1752
1768
|
input: payload.value,
|
|
1753
1769
|
inst,
|
|
1754
1770
|
continue: !def.abort
|
|
@@ -1756,7 +1772,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1756
1772
|
};
|
|
1757
1773
|
});
|
|
1758
1774
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1759
|
-
var _a;
|
|
1775
|
+
var _a, _b;
|
|
1760
1776
|
$ZodCheck.init(inst, def);
|
|
1761
1777
|
inst._zod.onattach.push((inst$1) => {
|
|
1762
1778
|
const bag = inst$1._zod.bag;
|
|
@@ -1766,8 +1782,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1766
1782
|
bag.patterns.add(def.pattern);
|
|
1767
1783
|
}
|
|
1768
1784
|
});
|
|
1769
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1770
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1785
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1771
1786
|
def.pattern.lastIndex = 0;
|
|
1772
1787
|
if (def.pattern.test(payload.value)) return;
|
|
1773
1788
|
payload.issues.push({
|
|
@@ -1780,6 +1795,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1780
1795
|
continue: !def.abort
|
|
1781
1796
|
});
|
|
1782
1797
|
});
|
|
1798
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1783
1799
|
});
|
|
1784
1800
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1785
1801
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1903,7 +1919,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1903
1919
|
code: "invalid_value",
|
|
1904
1920
|
values: def.mime,
|
|
1905
1921
|
input: payload.value.type,
|
|
1906
|
-
path: ["type"],
|
|
1907
1922
|
inst
|
|
1908
1923
|
});
|
|
1909
1924
|
};
|
|
@@ -1916,7 +1931,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1916
1931
|
});
|
|
1917
1932
|
|
|
1918
1933
|
//#endregion
|
|
1919
|
-
//#region ../../node_modules/zod/
|
|
1934
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1920
1935
|
var Doc = class {
|
|
1921
1936
|
constructor(args = []) {
|
|
1922
1937
|
this.content = [];
|
|
@@ -1952,19 +1967,18 @@ var Doc = class {
|
|
|
1952
1967
|
};
|
|
1953
1968
|
|
|
1954
1969
|
//#endregion
|
|
1955
|
-
//#region ../../node_modules/zod/
|
|
1970
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1956
1971
|
const version = {
|
|
1957
1972
|
major: 4,
|
|
1958
1973
|
minor: 0,
|
|
1959
|
-
patch:
|
|
1974
|
+
patch: 5
|
|
1960
1975
|
};
|
|
1961
1976
|
|
|
1962
1977
|
//#endregion
|
|
1963
|
-
//#region ../../node_modules/zod/
|
|
1978
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1964
1979
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1965
1980
|
var _a;
|
|
1966
1981
|
inst ?? (inst = {});
|
|
1967
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1968
1982
|
inst._zod.def = def;
|
|
1969
1983
|
inst._zod.bag = inst._zod.bag || {};
|
|
1970
1984
|
inst._zod.version = version;
|
|
@@ -1987,13 +2001,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1987
2001
|
let isAborted = aborted(payload);
|
|
1988
2002
|
let asyncResult;
|
|
1989
2003
|
for (const ch of checks$1) {
|
|
1990
|
-
if (ch._zod.when) {
|
|
1991
|
-
const shouldRun = ch._zod.when(payload);
|
|
2004
|
+
if (ch._zod.def.when) {
|
|
2005
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1992
2006
|
if (!shouldRun) continue;
|
|
1993
|
-
} else {
|
|
1994
|
-
|
|
1995
|
-
continue;
|
|
1996
|
-
}
|
|
2007
|
+
} else if (isAborted) {
|
|
2008
|
+
continue;
|
|
1997
2009
|
}
|
|
1998
2010
|
const currLen = payload.issues.length;
|
|
1999
2011
|
const _ = ch._zod.check(payload);
|
|
@@ -2093,7 +2105,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2093
2105
|
$ZodStringFormat.init(inst, def);
|
|
2094
2106
|
inst._zod.check = (payload) => {
|
|
2095
2107
|
try {
|
|
2096
|
-
const
|
|
2108
|
+
const orig = payload.value;
|
|
2109
|
+
const url$1 = new URL(orig);
|
|
2110
|
+
const href = url$1.href;
|
|
2097
2111
|
if (def.hostname) {
|
|
2098
2112
|
def.hostname.lastIndex = 0;
|
|
2099
2113
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -2122,6 +2136,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2122
2136
|
});
|
|
2123
2137
|
}
|
|
2124
2138
|
}
|
|
2139
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
2140
|
+
payload.value = href.slice(0, -1);
|
|
2141
|
+
} else {
|
|
2142
|
+
payload.value = href;
|
|
2143
|
+
}
|
|
2125
2144
|
return;
|
|
2126
2145
|
} catch (_) {
|
|
2127
2146
|
payload.issues.push({
|
|
@@ -2292,6 +2311,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
2292
2311
|
const tokensParts = token.split(".");
|
|
2293
2312
|
if (tokensParts.length !== 3) return false;
|
|
2294
2313
|
const [header] = tokensParts;
|
|
2314
|
+
if (!header) return false;
|
|
2295
2315
|
const parsedHeader = JSON.parse(atob(header));
|
|
2296
2316
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
2297
2317
|
if (!parsedHeader.alg) return false;
|
|
@@ -2314,6 +2334,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
2314
2334
|
});
|
|
2315
2335
|
};
|
|
2316
2336
|
});
|
|
2337
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
2338
|
+
$ZodStringFormat.init(inst, def);
|
|
2339
|
+
inst._zod.check = (payload) => {
|
|
2340
|
+
if (def.fn(payload.value)) return;
|
|
2341
|
+
payload.issues.push({
|
|
2342
|
+
code: "invalid_format",
|
|
2343
|
+
format: def.format,
|
|
2344
|
+
input: payload.value,
|
|
2345
|
+
inst,
|
|
2346
|
+
continue: !def.abort
|
|
2347
|
+
});
|
|
2348
|
+
};
|
|
2349
|
+
});
|
|
2317
2350
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
2318
2351
|
$ZodType.init(inst, def);
|
|
2319
2352
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -2365,12 +2398,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2365
2398
|
if (def.coerce) try {
|
|
2366
2399
|
payload.value = BigInt(payload.value);
|
|
2367
2400
|
} catch (_) {}
|
|
2368
|
-
|
|
2369
|
-
if (typeof input === "bigint") return payload;
|
|
2401
|
+
if (typeof payload.value === "bigint") return payload;
|
|
2370
2402
|
payload.issues.push({
|
|
2371
2403
|
expected: "bigint",
|
|
2372
2404
|
code: "invalid_type",
|
|
2373
|
-
input,
|
|
2405
|
+
input: payload.value,
|
|
2374
2406
|
inst
|
|
2375
2407
|
});
|
|
2376
2408
|
return payload;
|
|
@@ -2383,7 +2415,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
2383
2415
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
2384
2416
|
$ZodType.init(inst, def);
|
|
2385
2417
|
inst._zod.parse = (payload, _ctx) => {
|
|
2386
|
-
const
|
|
2418
|
+
const input = payload.value;
|
|
2387
2419
|
if (typeof input === "symbol") return payload;
|
|
2388
2420
|
payload.issues.push({
|
|
2389
2421
|
expected: "symbol",
|
|
@@ -2398,8 +2430,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
2398
2430
|
$ZodType.init(inst, def);
|
|
2399
2431
|
inst._zod.pattern = _undefined$2;
|
|
2400
2432
|
inst._zod.values = new Set([undefined]);
|
|
2433
|
+
inst._zod.optin = "optional";
|
|
2434
|
+
inst._zod.optout = "optional";
|
|
2401
2435
|
inst._zod.parse = (payload, _ctx) => {
|
|
2402
|
-
const
|
|
2436
|
+
const input = payload.value;
|
|
2403
2437
|
if (typeof input === "undefined") return payload;
|
|
2404
2438
|
payload.issues.push({
|
|
2405
2439
|
expected: "undefined",
|
|
@@ -2415,7 +2449,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
2415
2449
|
inst._zod.pattern = _null$2;
|
|
2416
2450
|
inst._zod.values = new Set([null]);
|
|
2417
2451
|
inst._zod.parse = (payload, _ctx) => {
|
|
2418
|
-
const
|
|
2452
|
+
const input = payload.value;
|
|
2419
2453
|
if (input === null) return payload;
|
|
2420
2454
|
payload.issues.push({
|
|
2421
2455
|
expected: "null",
|
|
@@ -2449,7 +2483,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2449
2483
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2450
2484
|
$ZodType.init(inst, def);
|
|
2451
2485
|
inst._zod.parse = (payload, _ctx) => {
|
|
2452
|
-
const
|
|
2486
|
+
const input = payload.value;
|
|
2453
2487
|
if (typeof input === "undefined") return payload;
|
|
2454
2488
|
payload.issues.push({
|
|
2455
2489
|
expected: "void",
|
|
@@ -2580,19 +2614,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2580
2614
|
"payload",
|
|
2581
2615
|
"ctx"
|
|
2582
2616
|
]);
|
|
2583
|
-
const
|
|
2617
|
+
const normalized = _normalized.value;
|
|
2584
2618
|
const parseStr = (key) => {
|
|
2585
2619
|
const k = esc(key);
|
|
2586
2620
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2587
2621
|
};
|
|
2588
2622
|
doc.write(`const input = payload.value;`);
|
|
2589
2623
|
const ids = Object.create(null);
|
|
2590
|
-
|
|
2591
|
-
|
|
2624
|
+
let counter = 0;
|
|
2625
|
+
for (const key of normalized.keys) {
|
|
2626
|
+
ids[key] = `key_${counter++}`;
|
|
2592
2627
|
}
|
|
2593
2628
|
doc.write(`const newResult = {}`);
|
|
2594
|
-
for (const key of keys) {
|
|
2595
|
-
if (optionalKeys
|
|
2629
|
+
for (const key of normalized.keys) {
|
|
2630
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2596
2631
|
const id = ids[key];
|
|
2597
2632
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2598
2633
|
const k = esc(key);
|
|
@@ -2637,7 +2672,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2637
2672
|
const jit = !globalConfig.jitless;
|
|
2638
2673
|
const allowsEval$1 = allowsEval;
|
|
2639
2674
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2640
|
-
const
|
|
2675
|
+
const catchall = def.catchall;
|
|
2641
2676
|
let value;
|
|
2642
2677
|
inst._zod.parse = (payload, ctx) => {
|
|
2643
2678
|
value ?? (value = _normalized.value);
|
|
@@ -2667,12 +2702,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2667
2702
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2668
2703
|
if (r instanceof Promise) {
|
|
2669
2704
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2705
|
+
} else if (isOptional) {
|
|
2706
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2670
2707
|
} else {
|
|
2671
|
-
|
|
2672
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2673
|
-
} else {
|
|
2674
|
-
handleObjectResult(r, payload, key);
|
|
2675
|
-
}
|
|
2708
|
+
handleObjectResult(r, payload, key);
|
|
2676
2709
|
}
|
|
2677
2710
|
}
|
|
2678
2711
|
}
|
|
@@ -2730,6 +2763,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2730
2763
|
}
|
|
2731
2764
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2732
2765
|
$ZodType.init(inst, def);
|
|
2766
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2767
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2733
2768
|
defineLazy(inst._zod, "values", () => {
|
|
2734
2769
|
if (def.options.every((o) => o._zod.values)) {
|
|
2735
2770
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2786,7 +2821,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2786
2821
|
const opts = def.options;
|
|
2787
2822
|
const map$1 = new Map();
|
|
2788
2823
|
for (const o of opts) {
|
|
2789
|
-
const values = o._zod.propValues[def.discriminator];
|
|
2824
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
2790
2825
|
if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
2791
2826
|
for (const v of values) {
|
|
2792
2827
|
if (map$1.has(v)) {
|
|
@@ -2829,7 +2864,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2829
2864
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2830
2865
|
$ZodType.init(inst, def);
|
|
2831
2866
|
inst._zod.parse = (payload, ctx) => {
|
|
2832
|
-
const
|
|
2867
|
+
const input = payload.value;
|
|
2833
2868
|
const left = def.left._zod.run({
|
|
2834
2869
|
value: input,
|
|
2835
2870
|
issues: []
|
|
@@ -3286,6 +3321,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
3286
3321
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
3287
3322
|
});
|
|
3288
3323
|
inst._zod.parse = (payload, ctx) => {
|
|
3324
|
+
if (def.innerType._zod.optin === "optional") {
|
|
3325
|
+
return def.innerType._zod.run(payload, ctx);
|
|
3326
|
+
}
|
|
3289
3327
|
if (payload.value === undefined) {
|
|
3290
3328
|
return payload;
|
|
3291
3329
|
}
|
|
@@ -3385,7 +3423,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3385
3423
|
});
|
|
3386
3424
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3387
3425
|
$ZodType.init(inst, def);
|
|
3388
|
-
|
|
3426
|
+
inst._zod.optin = "optional";
|
|
3389
3427
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3390
3428
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3391
3429
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3436,6 +3474,7 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
3436
3474
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
3437
3475
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
3438
3476
|
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
3477
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
3439
3478
|
inst._zod.parse = (payload, ctx) => {
|
|
3440
3479
|
const left = def.in._zod.run(payload, ctx);
|
|
3441
3480
|
if (left instanceof Promise) {
|
|
@@ -3456,6 +3495,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3456
3495
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3457
3496
|
$ZodType.init(inst, def);
|
|
3458
3497
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3498
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3459
3499
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3460
3500
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3461
3501
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3506,7 +3546,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3506
3546
|
input: payload.value,
|
|
3507
3547
|
inst,
|
|
3508
3548
|
code: "invalid_format",
|
|
3509
|
-
format: "template_literal",
|
|
3549
|
+
format: def.format ?? "template_literal",
|
|
3510
3550
|
pattern: inst._zod.pattern.source
|
|
3511
3551
|
});
|
|
3512
3552
|
return payload;
|
|
@@ -3566,8 +3606,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3566
3606
|
}
|
|
3567
3607
|
|
|
3568
3608
|
//#endregion
|
|
3569
|
-
//#region ../../node_modules/zod/
|
|
3570
|
-
const error$
|
|
3609
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3610
|
+
const error$38 = () => {
|
|
3571
3611
|
const Sizable = {
|
|
3572
3612
|
string: {
|
|
3573
3613
|
unit: "حرف",
|
|
@@ -3589,7 +3629,7 @@ const error$36 = () => {
|
|
|
3589
3629
|
function getSizing(origin) {
|
|
3590
3630
|
return Sizable[origin] ?? null;
|
|
3591
3631
|
}
|
|
3592
|
-
const parsedType$
|
|
3632
|
+
const parsedType$3 = (data) => {
|
|
3593
3633
|
const t = typeof data;
|
|
3594
3634
|
switch (t) {
|
|
3595
3635
|
case "number": {
|
|
@@ -3641,7 +3681,7 @@ const error$36 = () => {
|
|
|
3641
3681
|
};
|
|
3642
3682
|
return (issue$1) => {
|
|
3643
3683
|
switch (issue$1.code) {
|
|
3644
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3684
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3645
3685
|
case "invalid_value":
|
|
3646
3686
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3647
3687
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3677,12 +3717,12 @@ const error$36 = () => {
|
|
|
3677
3717
|
};
|
|
3678
3718
|
};
|
|
3679
3719
|
function ar_default() {
|
|
3680
|
-
return { localeError: error$
|
|
3720
|
+
return { localeError: error$38() };
|
|
3681
3721
|
}
|
|
3682
3722
|
|
|
3683
3723
|
//#endregion
|
|
3684
|
-
//#region ../../node_modules/zod/
|
|
3685
|
-
const error$
|
|
3724
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3725
|
+
const error$37 = () => {
|
|
3686
3726
|
const Sizable = {
|
|
3687
3727
|
string: {
|
|
3688
3728
|
unit: "simvol",
|
|
@@ -3704,7 +3744,7 @@ const error$35 = () => {
|
|
|
3704
3744
|
function getSizing(origin) {
|
|
3705
3745
|
return Sizable[origin] ?? null;
|
|
3706
3746
|
}
|
|
3707
|
-
const parsedType$
|
|
3747
|
+
const parsedType$3 = (data) => {
|
|
3708
3748
|
const t = typeof data;
|
|
3709
3749
|
switch (t) {
|
|
3710
3750
|
case "number": {
|
|
@@ -3756,7 +3796,7 @@ const error$35 = () => {
|
|
|
3756
3796
|
};
|
|
3757
3797
|
return (issue$1) => {
|
|
3758
3798
|
switch (issue$1.code) {
|
|
3759
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3799
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3760
3800
|
case "invalid_value":
|
|
3761
3801
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3762
3802
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3790,11 +3830,11 @@ const error$35 = () => {
|
|
|
3790
3830
|
};
|
|
3791
3831
|
};
|
|
3792
3832
|
function az_default() {
|
|
3793
|
-
return { localeError: error$
|
|
3833
|
+
return { localeError: error$37() };
|
|
3794
3834
|
}
|
|
3795
3835
|
|
|
3796
3836
|
//#endregion
|
|
3797
|
-
//#region ../../node_modules/zod/
|
|
3837
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3798
3838
|
function getBelarusianPlural(count, one, few, many) {
|
|
3799
3839
|
const absCount = Math.abs(count);
|
|
3800
3840
|
const lastDigit = absCount % 10;
|
|
@@ -3810,7 +3850,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3810
3850
|
}
|
|
3811
3851
|
return many;
|
|
3812
3852
|
}
|
|
3813
|
-
const error$
|
|
3853
|
+
const error$36 = () => {
|
|
3814
3854
|
const Sizable = {
|
|
3815
3855
|
string: {
|
|
3816
3856
|
unit: {
|
|
@@ -3848,7 +3888,7 @@ const error$34 = () => {
|
|
|
3848
3888
|
function getSizing(origin) {
|
|
3849
3889
|
return Sizable[origin] ?? null;
|
|
3850
3890
|
}
|
|
3851
|
-
const parsedType$
|
|
3891
|
+
const parsedType$3 = (data) => {
|
|
3852
3892
|
const t = typeof data;
|
|
3853
3893
|
switch (t) {
|
|
3854
3894
|
case "number": {
|
|
@@ -3900,7 +3940,7 @@ const error$34 = () => {
|
|
|
3900
3940
|
};
|
|
3901
3941
|
return (issue$1) => {
|
|
3902
3942
|
switch (issue$1.code) {
|
|
3903
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3943
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3904
3944
|
case "invalid_value":
|
|
3905
3945
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3906
3946
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3942,12 +3982,12 @@ const error$34 = () => {
|
|
|
3942
3982
|
};
|
|
3943
3983
|
};
|
|
3944
3984
|
function be_default() {
|
|
3945
|
-
return { localeError: error$
|
|
3985
|
+
return { localeError: error$36() };
|
|
3946
3986
|
}
|
|
3947
3987
|
|
|
3948
3988
|
//#endregion
|
|
3949
|
-
//#region ../../node_modules/zod/
|
|
3950
|
-
const error$
|
|
3989
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3990
|
+
const error$35 = () => {
|
|
3951
3991
|
const Sizable = {
|
|
3952
3992
|
string: {
|
|
3953
3993
|
unit: "caràcters",
|
|
@@ -3969,7 +4009,7 @@ const error$33 = () => {
|
|
|
3969
4009
|
function getSizing(origin) {
|
|
3970
4010
|
return Sizable[origin] ?? null;
|
|
3971
4011
|
}
|
|
3972
|
-
const parsedType$
|
|
4012
|
+
const parsedType$3 = (data) => {
|
|
3973
4013
|
const t = typeof data;
|
|
3974
4014
|
switch (t) {
|
|
3975
4015
|
case "number": {
|
|
@@ -4021,7 +4061,7 @@ const error$33 = () => {
|
|
|
4021
4061
|
};
|
|
4022
4062
|
return (issue$1) => {
|
|
4023
4063
|
switch (issue$1.code) {
|
|
4024
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
4064
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
4025
4065
|
case "invalid_value":
|
|
4026
4066
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4027
4067
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -4059,12 +4099,12 @@ const error$33 = () => {
|
|
|
4059
4099
|
};
|
|
4060
4100
|
};
|
|
4061
4101
|
function ca_default() {
|
|
4062
|
-
return { localeError: error$
|
|
4102
|
+
return { localeError: error$35() };
|
|
4063
4103
|
}
|
|
4064
4104
|
|
|
4065
4105
|
//#endregion
|
|
4066
|
-
//#region ../../node_modules/zod/
|
|
4067
|
-
const error$
|
|
4106
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
4107
|
+
const error$34 = () => {
|
|
4068
4108
|
const Sizable = {
|
|
4069
4109
|
string: {
|
|
4070
4110
|
unit: "znaků",
|
|
@@ -4086,7 +4126,7 @@ const error$32 = () => {
|
|
|
4086
4126
|
function getSizing(origin) {
|
|
4087
4127
|
return Sizable[origin] ?? null;
|
|
4088
4128
|
}
|
|
4089
|
-
const parsedType$
|
|
4129
|
+
const parsedType$3 = (data) => {
|
|
4090
4130
|
const t = typeof data;
|
|
4091
4131
|
switch (t) {
|
|
4092
4132
|
case "number": {
|
|
@@ -4156,7 +4196,7 @@ const error$32 = () => {
|
|
|
4156
4196
|
};
|
|
4157
4197
|
return (issue$1) => {
|
|
4158
4198
|
switch (issue$1.code) {
|
|
4159
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
4199
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
4160
4200
|
case "invalid_value":
|
|
4161
4201
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4162
4202
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4194,12 +4234,12 @@ const error$32 = () => {
|
|
|
4194
4234
|
};
|
|
4195
4235
|
};
|
|
4196
4236
|
function cs_default() {
|
|
4197
|
-
return { localeError: error$
|
|
4237
|
+
return { localeError: error$34() };
|
|
4198
4238
|
}
|
|
4199
4239
|
|
|
4200
4240
|
//#endregion
|
|
4201
|
-
//#region ../../node_modules/zod/
|
|
4202
|
-
const error$
|
|
4241
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
4242
|
+
const error$33 = () => {
|
|
4203
4243
|
const Sizable = {
|
|
4204
4244
|
string: {
|
|
4205
4245
|
unit: "Zeichen",
|
|
@@ -4221,7 +4261,7 @@ const error$31 = () => {
|
|
|
4221
4261
|
function getSizing(origin) {
|
|
4222
4262
|
return Sizable[origin] ?? null;
|
|
4223
4263
|
}
|
|
4224
|
-
const parsedType$
|
|
4264
|
+
const parsedType$3 = (data) => {
|
|
4225
4265
|
const t = typeof data;
|
|
4226
4266
|
switch (t) {
|
|
4227
4267
|
case "number": {
|
|
@@ -4273,7 +4313,7 @@ const error$31 = () => {
|
|
|
4273
4313
|
};
|
|
4274
4314
|
return (issue$1) => {
|
|
4275
4315
|
switch (issue$1.code) {
|
|
4276
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
4316
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
4277
4317
|
case "invalid_value":
|
|
4278
4318
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4279
4319
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4309,12 +4349,12 @@ const error$31 = () => {
|
|
|
4309
4349
|
};
|
|
4310
4350
|
};
|
|
4311
4351
|
function de_default() {
|
|
4312
|
-
return { localeError: error$
|
|
4352
|
+
return { localeError: error$33() };
|
|
4313
4353
|
}
|
|
4314
4354
|
|
|
4315
4355
|
//#endregion
|
|
4316
|
-
//#region ../../node_modules/zod/
|
|
4317
|
-
const parsedType$
|
|
4356
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
4357
|
+
const parsedType$2 = (data) => {
|
|
4318
4358
|
const t = typeof data;
|
|
4319
4359
|
switch (t) {
|
|
4320
4360
|
case "number": {
|
|
@@ -4334,7 +4374,7 @@ const parsedType$1 = (data) => {
|
|
|
4334
4374
|
}
|
|
4335
4375
|
return t;
|
|
4336
4376
|
};
|
|
4337
|
-
const error$
|
|
4377
|
+
const error$32 = () => {
|
|
4338
4378
|
const Sizable = {
|
|
4339
4379
|
string: {
|
|
4340
4380
|
unit: "characters",
|
|
@@ -4388,7 +4428,7 @@ const error$30 = () => {
|
|
|
4388
4428
|
};
|
|
4389
4429
|
return (issue$1) => {
|
|
4390
4430
|
switch (issue$1.code) {
|
|
4391
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
4431
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
4392
4432
|
case "invalid_value":
|
|
4393
4433
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4394
4434
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4426,12 +4466,127 @@ const error$30 = () => {
|
|
|
4426
4466
|
};
|
|
4427
4467
|
};
|
|
4428
4468
|
function en_default() {
|
|
4429
|
-
return { localeError: error$
|
|
4469
|
+
return { localeError: error$32() };
|
|
4430
4470
|
}
|
|
4431
4471
|
|
|
4432
4472
|
//#endregion
|
|
4433
|
-
//#region ../../node_modules/zod/
|
|
4434
|
-
const
|
|
4473
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4474
|
+
const parsedType$1 = (data) => {
|
|
4475
|
+
const t = typeof data;
|
|
4476
|
+
switch (t) {
|
|
4477
|
+
case "number": {
|
|
4478
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4479
|
+
}
|
|
4480
|
+
case "object": {
|
|
4481
|
+
if (Array.isArray(data)) {
|
|
4482
|
+
return "tabelo";
|
|
4483
|
+
}
|
|
4484
|
+
if (data === null) {
|
|
4485
|
+
return "senvalora";
|
|
4486
|
+
}
|
|
4487
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4488
|
+
return data.constructor.name;
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
return t;
|
|
4493
|
+
};
|
|
4494
|
+
const error$31 = () => {
|
|
4495
|
+
const Sizable = {
|
|
4496
|
+
string: {
|
|
4497
|
+
unit: "karaktrojn",
|
|
4498
|
+
verb: "havi"
|
|
4499
|
+
},
|
|
4500
|
+
file: {
|
|
4501
|
+
unit: "bajtojn",
|
|
4502
|
+
verb: "havi"
|
|
4503
|
+
},
|
|
4504
|
+
array: {
|
|
4505
|
+
unit: "elementojn",
|
|
4506
|
+
verb: "havi"
|
|
4507
|
+
},
|
|
4508
|
+
set: {
|
|
4509
|
+
unit: "elementojn",
|
|
4510
|
+
verb: "havi"
|
|
4511
|
+
}
|
|
4512
|
+
};
|
|
4513
|
+
function getSizing(origin) {
|
|
4514
|
+
return Sizable[origin] ?? null;
|
|
4515
|
+
}
|
|
4516
|
+
const Nouns = {
|
|
4517
|
+
regex: "enigo",
|
|
4518
|
+
email: "retadreso",
|
|
4519
|
+
url: "URL",
|
|
4520
|
+
emoji: "emoĝio",
|
|
4521
|
+
uuid: "UUID",
|
|
4522
|
+
uuidv4: "UUIDv4",
|
|
4523
|
+
uuidv6: "UUIDv6",
|
|
4524
|
+
nanoid: "nanoid",
|
|
4525
|
+
guid: "GUID",
|
|
4526
|
+
cuid: "cuid",
|
|
4527
|
+
cuid2: "cuid2",
|
|
4528
|
+
ulid: "ULID",
|
|
4529
|
+
xid: "XID",
|
|
4530
|
+
ksuid: "KSUID",
|
|
4531
|
+
datetime: "ISO-datotempo",
|
|
4532
|
+
date: "ISO-dato",
|
|
4533
|
+
time: "ISO-tempo",
|
|
4534
|
+
duration: "ISO-daŭro",
|
|
4535
|
+
ipv4: "IPv4-adreso",
|
|
4536
|
+
ipv6: "IPv6-adreso",
|
|
4537
|
+
cidrv4: "IPv4-rango",
|
|
4538
|
+
cidrv6: "IPv6-rango",
|
|
4539
|
+
base64: "64-ume kodita karaktraro",
|
|
4540
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4541
|
+
json_string: "JSON-karaktraro",
|
|
4542
|
+
e164: "E.164-nombro",
|
|
4543
|
+
jwt: "JWT",
|
|
4544
|
+
template_literal: "enigo"
|
|
4545
|
+
};
|
|
4546
|
+
return (issue$1) => {
|
|
4547
|
+
switch (issue$1.code) {
|
|
4548
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4549
|
+
case "invalid_value":
|
|
4550
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4551
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4552
|
+
case "too_big": {
|
|
4553
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4554
|
+
const sizing = getSizing(issue$1.origin);
|
|
4555
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4556
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4557
|
+
}
|
|
4558
|
+
case "too_small": {
|
|
4559
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4560
|
+
const sizing = getSizing(issue$1.origin);
|
|
4561
|
+
if (sizing) {
|
|
4562
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4563
|
+
}
|
|
4564
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4565
|
+
}
|
|
4566
|
+
case "invalid_format": {
|
|
4567
|
+
const _issue = issue$1;
|
|
4568
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4569
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4570
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4571
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4572
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4573
|
+
}
|
|
4574
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4575
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4576
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4577
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4578
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4579
|
+
default: return `Nevalida enigo`;
|
|
4580
|
+
}
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
function eo_default() {
|
|
4584
|
+
return { localeError: error$31() };
|
|
4585
|
+
}
|
|
4586
|
+
|
|
4587
|
+
//#endregion
|
|
4588
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4589
|
+
const error$30 = () => {
|
|
4435
4590
|
const Sizable = {
|
|
4436
4591
|
string: {
|
|
4437
4592
|
unit: "caracteres",
|
|
@@ -4453,7 +4608,7 @@ const error$29 = () => {
|
|
|
4453
4608
|
function getSizing(origin) {
|
|
4454
4609
|
return Sizable[origin] ?? null;
|
|
4455
4610
|
}
|
|
4456
|
-
const parsedType$
|
|
4611
|
+
const parsedType$3 = (data) => {
|
|
4457
4612
|
const t = typeof data;
|
|
4458
4613
|
switch (t) {
|
|
4459
4614
|
case "number": {
|
|
@@ -4505,7 +4660,7 @@ const error$29 = () => {
|
|
|
4505
4660
|
};
|
|
4506
4661
|
return (issue$1) => {
|
|
4507
4662
|
switch (issue$1.code) {
|
|
4508
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4663
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4509
4664
|
case "invalid_value":
|
|
4510
4665
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4511
4666
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4541,12 +4696,12 @@ const error$29 = () => {
|
|
|
4541
4696
|
};
|
|
4542
4697
|
};
|
|
4543
4698
|
function es_default() {
|
|
4544
|
-
return { localeError: error$
|
|
4699
|
+
return { localeError: error$30() };
|
|
4545
4700
|
}
|
|
4546
4701
|
|
|
4547
4702
|
//#endregion
|
|
4548
|
-
//#region ../../node_modules/zod/
|
|
4549
|
-
const error$
|
|
4703
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4704
|
+
const error$29 = () => {
|
|
4550
4705
|
const Sizable = {
|
|
4551
4706
|
string: {
|
|
4552
4707
|
unit: "کاراکتر",
|
|
@@ -4568,7 +4723,7 @@ const error$28 = () => {
|
|
|
4568
4723
|
function getSizing(origin) {
|
|
4569
4724
|
return Sizable[origin] ?? null;
|
|
4570
4725
|
}
|
|
4571
|
-
const parsedType$
|
|
4726
|
+
const parsedType$3 = (data) => {
|
|
4572
4727
|
const t = typeof data;
|
|
4573
4728
|
switch (t) {
|
|
4574
4729
|
case "number": {
|
|
@@ -4620,7 +4775,7 @@ const error$28 = () => {
|
|
|
4620
4775
|
};
|
|
4621
4776
|
return (issue$1) => {
|
|
4622
4777
|
switch (issue$1.code) {
|
|
4623
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4778
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4624
4779
|
case "invalid_value":
|
|
4625
4780
|
if (issue$1.values.length === 1) {
|
|
4626
4781
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4668,12 +4823,12 @@ const error$28 = () => {
|
|
|
4668
4823
|
};
|
|
4669
4824
|
};
|
|
4670
4825
|
function fa_default() {
|
|
4671
|
-
return { localeError: error$
|
|
4826
|
+
return { localeError: error$29() };
|
|
4672
4827
|
}
|
|
4673
4828
|
|
|
4674
4829
|
//#endregion
|
|
4675
|
-
//#region ../../node_modules/zod/
|
|
4676
|
-
const error$
|
|
4830
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4831
|
+
const error$28 = () => {
|
|
4677
4832
|
const Sizable = {
|
|
4678
4833
|
string: {
|
|
4679
4834
|
unit: "merkkiä",
|
|
@@ -4711,7 +4866,7 @@ const error$27 = () => {
|
|
|
4711
4866
|
function getSizing(origin) {
|
|
4712
4867
|
return Sizable[origin] ?? null;
|
|
4713
4868
|
}
|
|
4714
|
-
const parsedType$
|
|
4869
|
+
const parsedType$3 = (data) => {
|
|
4715
4870
|
const t = typeof data;
|
|
4716
4871
|
switch (t) {
|
|
4717
4872
|
case "number": {
|
|
@@ -4763,7 +4918,7 @@ const error$27 = () => {
|
|
|
4763
4918
|
};
|
|
4764
4919
|
return (issue$1) => {
|
|
4765
4920
|
switch (issue$1.code) {
|
|
4766
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4921
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4767
4922
|
case "invalid_value":
|
|
4768
4923
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4769
4924
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4803,12 +4958,12 @@ const error$27 = () => {
|
|
|
4803
4958
|
};
|
|
4804
4959
|
};
|
|
4805
4960
|
function fi_default() {
|
|
4806
|
-
return { localeError: error$
|
|
4961
|
+
return { localeError: error$28() };
|
|
4807
4962
|
}
|
|
4808
4963
|
|
|
4809
4964
|
//#endregion
|
|
4810
|
-
//#region ../../node_modules/zod/
|
|
4811
|
-
const error$
|
|
4965
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4966
|
+
const error$27 = () => {
|
|
4812
4967
|
const Sizable = {
|
|
4813
4968
|
string: {
|
|
4814
4969
|
unit: "caractères",
|
|
@@ -4830,7 +4985,7 @@ const error$26 = () => {
|
|
|
4830
4985
|
function getSizing(origin) {
|
|
4831
4986
|
return Sizable[origin] ?? null;
|
|
4832
4987
|
}
|
|
4833
|
-
const parsedType$
|
|
4988
|
+
const parsedType$3 = (data) => {
|
|
4834
4989
|
const t = typeof data;
|
|
4835
4990
|
switch (t) {
|
|
4836
4991
|
case "number": {
|
|
@@ -4882,7 +5037,7 @@ const error$26 = () => {
|
|
|
4882
5037
|
};
|
|
4883
5038
|
return (issue$1) => {
|
|
4884
5039
|
switch (issue$1.code) {
|
|
4885
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
5040
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4886
5041
|
case "invalid_value":
|
|
4887
5042
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4888
5043
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4918,12 +5073,12 @@ const error$26 = () => {
|
|
|
4918
5073
|
};
|
|
4919
5074
|
};
|
|
4920
5075
|
function fr_default() {
|
|
4921
|
-
return { localeError: error$
|
|
5076
|
+
return { localeError: error$27() };
|
|
4922
5077
|
}
|
|
4923
5078
|
|
|
4924
5079
|
//#endregion
|
|
4925
|
-
//#region ../../node_modules/zod/
|
|
4926
|
-
const error$
|
|
5080
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
5081
|
+
const error$26 = () => {
|
|
4927
5082
|
const Sizable = {
|
|
4928
5083
|
string: {
|
|
4929
5084
|
unit: "caractères",
|
|
@@ -4945,7 +5100,7 @@ const error$25 = () => {
|
|
|
4945
5100
|
function getSizing(origin) {
|
|
4946
5101
|
return Sizable[origin] ?? null;
|
|
4947
5102
|
}
|
|
4948
|
-
const parsedType$
|
|
5103
|
+
const parsedType$3 = (data) => {
|
|
4949
5104
|
const t = typeof data;
|
|
4950
5105
|
switch (t) {
|
|
4951
5106
|
case "number": {
|
|
@@ -4997,7 +5152,7 @@ const error$25 = () => {
|
|
|
4997
5152
|
};
|
|
4998
5153
|
return (issue$1) => {
|
|
4999
5154
|
switch (issue$1.code) {
|
|
5000
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
5155
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
5001
5156
|
case "invalid_value":
|
|
5002
5157
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5003
5158
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5035,12 +5190,12 @@ const error$25 = () => {
|
|
|
5035
5190
|
};
|
|
5036
5191
|
};
|
|
5037
5192
|
function fr_CA_default() {
|
|
5038
|
-
return { localeError: error$
|
|
5193
|
+
return { localeError: error$26() };
|
|
5039
5194
|
}
|
|
5040
5195
|
|
|
5041
5196
|
//#endregion
|
|
5042
|
-
//#region ../../node_modules/zod/
|
|
5043
|
-
const error$
|
|
5197
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
5198
|
+
const error$25 = () => {
|
|
5044
5199
|
const Sizable = {
|
|
5045
5200
|
string: {
|
|
5046
5201
|
unit: "אותיות",
|
|
@@ -5062,7 +5217,7 @@ const error$24 = () => {
|
|
|
5062
5217
|
function getSizing(origin) {
|
|
5063
5218
|
return Sizable[origin] ?? null;
|
|
5064
5219
|
}
|
|
5065
|
-
const parsedType$
|
|
5220
|
+
const parsedType$3 = (data) => {
|
|
5066
5221
|
const t = typeof data;
|
|
5067
5222
|
switch (t) {
|
|
5068
5223
|
case "number": {
|
|
@@ -5114,7 +5269,7 @@ const error$24 = () => {
|
|
|
5114
5269
|
};
|
|
5115
5270
|
return (issue$1) => {
|
|
5116
5271
|
switch (issue$1.code) {
|
|
5117
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
5272
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
5118
5273
|
case "invalid_value":
|
|
5119
5274
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5120
5275
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5150,12 +5305,12 @@ const error$24 = () => {
|
|
|
5150
5305
|
};
|
|
5151
5306
|
};
|
|
5152
5307
|
function he_default() {
|
|
5153
|
-
return { localeError: error$
|
|
5308
|
+
return { localeError: error$25() };
|
|
5154
5309
|
}
|
|
5155
5310
|
|
|
5156
5311
|
//#endregion
|
|
5157
|
-
//#region ../../node_modules/zod/
|
|
5158
|
-
const error$
|
|
5312
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
5313
|
+
const error$24 = () => {
|
|
5159
5314
|
const Sizable = {
|
|
5160
5315
|
string: {
|
|
5161
5316
|
unit: "karakter",
|
|
@@ -5177,7 +5332,7 @@ const error$23 = () => {
|
|
|
5177
5332
|
function getSizing(origin) {
|
|
5178
5333
|
return Sizable[origin] ?? null;
|
|
5179
5334
|
}
|
|
5180
|
-
const parsedType$
|
|
5335
|
+
const parsedType$3 = (data) => {
|
|
5181
5336
|
const t = typeof data;
|
|
5182
5337
|
switch (t) {
|
|
5183
5338
|
case "number": {
|
|
@@ -5229,7 +5384,7 @@ const error$23 = () => {
|
|
|
5229
5384
|
};
|
|
5230
5385
|
return (issue$1) => {
|
|
5231
5386
|
switch (issue$1.code) {
|
|
5232
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
5387
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
5233
5388
|
case "invalid_value":
|
|
5234
5389
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5235
5390
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5265,12 +5420,12 @@ const error$23 = () => {
|
|
|
5265
5420
|
};
|
|
5266
5421
|
};
|
|
5267
5422
|
function hu_default() {
|
|
5268
|
-
return { localeError: error$
|
|
5423
|
+
return { localeError: error$24() };
|
|
5269
5424
|
}
|
|
5270
5425
|
|
|
5271
5426
|
//#endregion
|
|
5272
|
-
//#region ../../node_modules/zod/
|
|
5273
|
-
const error$
|
|
5427
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
5428
|
+
const error$23 = () => {
|
|
5274
5429
|
const Sizable = {
|
|
5275
5430
|
string: {
|
|
5276
5431
|
unit: "karakter",
|
|
@@ -5292,7 +5447,7 @@ const error$22 = () => {
|
|
|
5292
5447
|
function getSizing(origin) {
|
|
5293
5448
|
return Sizable[origin] ?? null;
|
|
5294
5449
|
}
|
|
5295
|
-
const parsedType$
|
|
5450
|
+
const parsedType$3 = (data) => {
|
|
5296
5451
|
const t = typeof data;
|
|
5297
5452
|
switch (t) {
|
|
5298
5453
|
case "number": {
|
|
@@ -5344,7 +5499,7 @@ const error$22 = () => {
|
|
|
5344
5499
|
};
|
|
5345
5500
|
return (issue$1) => {
|
|
5346
5501
|
switch (issue$1.code) {
|
|
5347
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5502
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5348
5503
|
case "invalid_value":
|
|
5349
5504
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5350
5505
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5380,12 +5535,12 @@ const error$22 = () => {
|
|
|
5380
5535
|
};
|
|
5381
5536
|
};
|
|
5382
5537
|
function id_default() {
|
|
5383
|
-
return { localeError: error$
|
|
5538
|
+
return { localeError: error$23() };
|
|
5384
5539
|
}
|
|
5385
5540
|
|
|
5386
5541
|
//#endregion
|
|
5387
|
-
//#region ../../node_modules/zod/
|
|
5388
|
-
const error$
|
|
5542
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5543
|
+
const error$22 = () => {
|
|
5389
5544
|
const Sizable = {
|
|
5390
5545
|
string: {
|
|
5391
5546
|
unit: "caratteri",
|
|
@@ -5407,7 +5562,7 @@ const error$21 = () => {
|
|
|
5407
5562
|
function getSizing(origin) {
|
|
5408
5563
|
return Sizable[origin] ?? null;
|
|
5409
5564
|
}
|
|
5410
|
-
const parsedType$
|
|
5565
|
+
const parsedType$3 = (data) => {
|
|
5411
5566
|
const t = typeof data;
|
|
5412
5567
|
switch (t) {
|
|
5413
5568
|
case "number": {
|
|
@@ -5459,7 +5614,7 @@ const error$21 = () => {
|
|
|
5459
5614
|
};
|
|
5460
5615
|
return (issue$1) => {
|
|
5461
5616
|
switch (issue$1.code) {
|
|
5462
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5617
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
5463
5618
|
case "invalid_value":
|
|
5464
5619
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5465
5620
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5495,12 +5650,12 @@ const error$21 = () => {
|
|
|
5495
5650
|
};
|
|
5496
5651
|
};
|
|
5497
5652
|
function it_default() {
|
|
5498
|
-
return { localeError: error$
|
|
5653
|
+
return { localeError: error$22() };
|
|
5499
5654
|
}
|
|
5500
5655
|
|
|
5501
5656
|
//#endregion
|
|
5502
|
-
//#region ../../node_modules/zod/
|
|
5503
|
-
const error$
|
|
5657
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5658
|
+
const error$21 = () => {
|
|
5504
5659
|
const Sizable = {
|
|
5505
5660
|
string: {
|
|
5506
5661
|
unit: "文字",
|
|
@@ -5522,7 +5677,7 @@ const error$20 = () => {
|
|
|
5522
5677
|
function getSizing(origin) {
|
|
5523
5678
|
return Sizable[origin] ?? null;
|
|
5524
5679
|
}
|
|
5525
|
-
const parsedType$
|
|
5680
|
+
const parsedType$3 = (data) => {
|
|
5526
5681
|
const t = typeof data;
|
|
5527
5682
|
switch (t) {
|
|
5528
5683
|
case "number": {
|
|
@@ -5574,21 +5729,21 @@ const error$20 = () => {
|
|
|
5574
5729
|
};
|
|
5575
5730
|
return (issue$1) => {
|
|
5576
5731
|
switch (issue$1.code) {
|
|
5577
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5732
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5578
5733
|
case "invalid_value":
|
|
5579
5734
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5580
5735
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5581
5736
|
case "too_big": {
|
|
5582
|
-
const adj = issue$1.inclusive ? "
|
|
5737
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5583
5738
|
const sizing = getSizing(issue$1.origin);
|
|
5584
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5585
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5739
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5740
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5586
5741
|
}
|
|
5587
5742
|
case "too_small": {
|
|
5588
|
-
const adj = issue$1.inclusive ? "
|
|
5743
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5589
5744
|
const sizing = getSizing(issue$1.origin);
|
|
5590
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5591
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5745
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5746
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5592
5747
|
}
|
|
5593
5748
|
case "invalid_format": {
|
|
5594
5749
|
const _issue = issue$1;
|
|
@@ -5608,12 +5763,12 @@ const error$20 = () => {
|
|
|
5608
5763
|
};
|
|
5609
5764
|
};
|
|
5610
5765
|
function ja_default() {
|
|
5611
|
-
return { localeError: error$
|
|
5766
|
+
return { localeError: error$21() };
|
|
5612
5767
|
}
|
|
5613
5768
|
|
|
5614
5769
|
//#endregion
|
|
5615
|
-
//#region ../../node_modules/zod/
|
|
5616
|
-
const error$
|
|
5770
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5771
|
+
const error$20 = () => {
|
|
5617
5772
|
const Sizable = {
|
|
5618
5773
|
string: {
|
|
5619
5774
|
unit: "តួអក្សរ",
|
|
@@ -5635,7 +5790,7 @@ const error$19 = () => {
|
|
|
5635
5790
|
function getSizing(origin) {
|
|
5636
5791
|
return Sizable[origin] ?? null;
|
|
5637
5792
|
}
|
|
5638
|
-
const parsedType$
|
|
5793
|
+
const parsedType$3 = (data) => {
|
|
5639
5794
|
const t = typeof data;
|
|
5640
5795
|
switch (t) {
|
|
5641
5796
|
case "number": {
|
|
@@ -5687,7 +5842,7 @@ const error$19 = () => {
|
|
|
5687
5842
|
};
|
|
5688
5843
|
return (issue$1) => {
|
|
5689
5844
|
switch (issue$1.code) {
|
|
5690
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5845
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5691
5846
|
case "invalid_value":
|
|
5692
5847
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5693
5848
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5725,12 +5880,12 @@ const error$19 = () => {
|
|
|
5725
5880
|
};
|
|
5726
5881
|
};
|
|
5727
5882
|
function kh_default() {
|
|
5728
|
-
return { localeError: error$
|
|
5883
|
+
return { localeError: error$20() };
|
|
5729
5884
|
}
|
|
5730
5885
|
|
|
5731
5886
|
//#endregion
|
|
5732
|
-
//#region ../../node_modules/zod/
|
|
5733
|
-
const error$
|
|
5887
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5888
|
+
const error$19 = () => {
|
|
5734
5889
|
const Sizable = {
|
|
5735
5890
|
string: {
|
|
5736
5891
|
unit: "문자",
|
|
@@ -5752,7 +5907,7 @@ const error$18 = () => {
|
|
|
5752
5907
|
function getSizing(origin) {
|
|
5753
5908
|
return Sizable[origin] ?? null;
|
|
5754
5909
|
}
|
|
5755
|
-
const parsedType$
|
|
5910
|
+
const parsedType$3 = (data) => {
|
|
5756
5911
|
const t = typeof data;
|
|
5757
5912
|
switch (t) {
|
|
5758
5913
|
case "number": {
|
|
@@ -5804,7 +5959,7 @@ const error$18 = () => {
|
|
|
5804
5959
|
};
|
|
5805
5960
|
return (issue$1) => {
|
|
5806
5961
|
switch (issue$1.code) {
|
|
5807
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5962
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5808
5963
|
case "invalid_value":
|
|
5809
5964
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5810
5965
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5846,12 +6001,12 @@ const error$18 = () => {
|
|
|
5846
6001
|
};
|
|
5847
6002
|
};
|
|
5848
6003
|
function ko_default() {
|
|
5849
|
-
return { localeError: error$
|
|
6004
|
+
return { localeError: error$19() };
|
|
5850
6005
|
}
|
|
5851
6006
|
|
|
5852
6007
|
//#endregion
|
|
5853
|
-
//#region ../../node_modules/zod/
|
|
5854
|
-
const error$
|
|
6008
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
6009
|
+
const error$18 = () => {
|
|
5855
6010
|
const Sizable = {
|
|
5856
6011
|
string: {
|
|
5857
6012
|
unit: "знаци",
|
|
@@ -5873,7 +6028,7 @@ const error$17 = () => {
|
|
|
5873
6028
|
function getSizing(origin) {
|
|
5874
6029
|
return Sizable[origin] ?? null;
|
|
5875
6030
|
}
|
|
5876
|
-
const parsedType$
|
|
6031
|
+
const parsedType$3 = (data) => {
|
|
5877
6032
|
const t = typeof data;
|
|
5878
6033
|
switch (t) {
|
|
5879
6034
|
case "number": {
|
|
@@ -5925,7 +6080,7 @@ const error$17 = () => {
|
|
|
5925
6080
|
};
|
|
5926
6081
|
return (issue$1) => {
|
|
5927
6082
|
switch (issue$1.code) {
|
|
5928
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
6083
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5929
6084
|
case "invalid_value":
|
|
5930
6085
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5931
6086
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5963,12 +6118,12 @@ const error$17 = () => {
|
|
|
5963
6118
|
};
|
|
5964
6119
|
};
|
|
5965
6120
|
function mk_default() {
|
|
5966
|
-
return { localeError: error$
|
|
6121
|
+
return { localeError: error$18() };
|
|
5967
6122
|
}
|
|
5968
6123
|
|
|
5969
6124
|
//#endregion
|
|
5970
|
-
//#region ../../node_modules/zod/
|
|
5971
|
-
const error$
|
|
6125
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
6126
|
+
const error$17 = () => {
|
|
5972
6127
|
const Sizable = {
|
|
5973
6128
|
string: {
|
|
5974
6129
|
unit: "aksara",
|
|
@@ -5990,7 +6145,7 @@ const error$16 = () => {
|
|
|
5990
6145
|
function getSizing(origin) {
|
|
5991
6146
|
return Sizable[origin] ?? null;
|
|
5992
6147
|
}
|
|
5993
|
-
const parsedType$
|
|
6148
|
+
const parsedType$3 = (data) => {
|
|
5994
6149
|
const t = typeof data;
|
|
5995
6150
|
switch (t) {
|
|
5996
6151
|
case "number": {
|
|
@@ -6042,7 +6197,7 @@ const error$16 = () => {
|
|
|
6042
6197
|
};
|
|
6043
6198
|
return (issue$1) => {
|
|
6044
6199
|
switch (issue$1.code) {
|
|
6045
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
6200
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
6046
6201
|
case "invalid_value":
|
|
6047
6202
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6048
6203
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6078,12 +6233,12 @@ const error$16 = () => {
|
|
|
6078
6233
|
};
|
|
6079
6234
|
};
|
|
6080
6235
|
function ms_default() {
|
|
6081
|
-
return { localeError: error$
|
|
6236
|
+
return { localeError: error$17() };
|
|
6082
6237
|
}
|
|
6083
6238
|
|
|
6084
6239
|
//#endregion
|
|
6085
|
-
//#region ../../node_modules/zod/
|
|
6086
|
-
const error$
|
|
6240
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
6241
|
+
const error$16 = () => {
|
|
6087
6242
|
const Sizable = {
|
|
6088
6243
|
string: { unit: "tekens" },
|
|
6089
6244
|
file: { unit: "bytes" },
|
|
@@ -6093,7 +6248,7 @@ const error$15 = () => {
|
|
|
6093
6248
|
function getSizing(origin) {
|
|
6094
6249
|
return Sizable[origin] ?? null;
|
|
6095
6250
|
}
|
|
6096
|
-
const parsedType$
|
|
6251
|
+
const parsedType$3 = (data) => {
|
|
6097
6252
|
const t = typeof data;
|
|
6098
6253
|
switch (t) {
|
|
6099
6254
|
case "number": {
|
|
@@ -6145,7 +6300,7 @@ const error$15 = () => {
|
|
|
6145
6300
|
};
|
|
6146
6301
|
return (issue$1) => {
|
|
6147
6302
|
switch (issue$1.code) {
|
|
6148
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
6303
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
6149
6304
|
case "invalid_value":
|
|
6150
6305
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6151
6306
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6183,12 +6338,12 @@ const error$15 = () => {
|
|
|
6183
6338
|
};
|
|
6184
6339
|
};
|
|
6185
6340
|
function nl_default() {
|
|
6186
|
-
return { localeError: error$
|
|
6341
|
+
return { localeError: error$16() };
|
|
6187
6342
|
}
|
|
6188
6343
|
|
|
6189
6344
|
//#endregion
|
|
6190
|
-
//#region ../../node_modules/zod/
|
|
6191
|
-
const error$
|
|
6345
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
6346
|
+
const error$15 = () => {
|
|
6192
6347
|
const Sizable = {
|
|
6193
6348
|
string: {
|
|
6194
6349
|
unit: "tegn",
|
|
@@ -6210,7 +6365,7 @@ const error$14 = () => {
|
|
|
6210
6365
|
function getSizing(origin) {
|
|
6211
6366
|
return Sizable[origin] ?? null;
|
|
6212
6367
|
}
|
|
6213
|
-
const parsedType$
|
|
6368
|
+
const parsedType$3 = (data) => {
|
|
6214
6369
|
const t = typeof data;
|
|
6215
6370
|
switch (t) {
|
|
6216
6371
|
case "number": {
|
|
@@ -6262,7 +6417,7 @@ const error$14 = () => {
|
|
|
6262
6417
|
};
|
|
6263
6418
|
return (issue$1) => {
|
|
6264
6419
|
switch (issue$1.code) {
|
|
6265
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
6420
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
6266
6421
|
case "invalid_value":
|
|
6267
6422
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6268
6423
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6298,12 +6453,12 @@ const error$14 = () => {
|
|
|
6298
6453
|
};
|
|
6299
6454
|
};
|
|
6300
6455
|
function no_default() {
|
|
6301
|
-
return { localeError: error$
|
|
6456
|
+
return { localeError: error$15() };
|
|
6302
6457
|
}
|
|
6303
6458
|
|
|
6304
6459
|
//#endregion
|
|
6305
|
-
//#region ../../node_modules/zod/
|
|
6306
|
-
const error$
|
|
6460
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6461
|
+
const error$14 = () => {
|
|
6307
6462
|
const Sizable = {
|
|
6308
6463
|
string: {
|
|
6309
6464
|
unit: "harf",
|
|
@@ -6325,7 +6480,7 @@ const error$13 = () => {
|
|
|
6325
6480
|
function getSizing(origin) {
|
|
6326
6481
|
return Sizable[origin] ?? null;
|
|
6327
6482
|
}
|
|
6328
|
-
const parsedType$
|
|
6483
|
+
const parsedType$3 = (data) => {
|
|
6329
6484
|
const t = typeof data;
|
|
6330
6485
|
switch (t) {
|
|
6331
6486
|
case "number": {
|
|
@@ -6377,7 +6532,7 @@ const error$13 = () => {
|
|
|
6377
6532
|
};
|
|
6378
6533
|
return (issue$1) => {
|
|
6379
6534
|
switch (issue$1.code) {
|
|
6380
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6535
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
6381
6536
|
case "invalid_value":
|
|
6382
6537
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6383
6538
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6413,42 +6568,42 @@ const error$13 = () => {
|
|
|
6413
6568
|
};
|
|
6414
6569
|
};
|
|
6415
6570
|
function ota_default() {
|
|
6416
|
-
return { localeError: error$
|
|
6571
|
+
return { localeError: error$14() };
|
|
6417
6572
|
}
|
|
6418
6573
|
|
|
6419
6574
|
//#endregion
|
|
6420
|
-
//#region ../../node_modules/zod/
|
|
6421
|
-
const error$
|
|
6575
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6576
|
+
const error$13 = () => {
|
|
6422
6577
|
const Sizable = {
|
|
6423
6578
|
string: {
|
|
6424
|
-
unit: "
|
|
6425
|
-
verb: "
|
|
6579
|
+
unit: "توکي",
|
|
6580
|
+
verb: "ولري"
|
|
6426
6581
|
},
|
|
6427
6582
|
file: {
|
|
6428
|
-
unit: "
|
|
6429
|
-
verb: "
|
|
6583
|
+
unit: "بایټس",
|
|
6584
|
+
verb: "ولري"
|
|
6430
6585
|
},
|
|
6431
6586
|
array: {
|
|
6432
|
-
unit: "
|
|
6433
|
-
verb: "
|
|
6587
|
+
unit: "توکي",
|
|
6588
|
+
verb: "ولري"
|
|
6434
6589
|
},
|
|
6435
6590
|
set: {
|
|
6436
|
-
unit: "
|
|
6437
|
-
verb: "
|
|
6591
|
+
unit: "توکي",
|
|
6592
|
+
verb: "ولري"
|
|
6438
6593
|
}
|
|
6439
6594
|
};
|
|
6440
6595
|
function getSizing(origin) {
|
|
6441
6596
|
return Sizable[origin] ?? null;
|
|
6442
6597
|
}
|
|
6443
|
-
const parsedType$
|
|
6598
|
+
const parsedType$3 = (data) => {
|
|
6444
6599
|
const t = typeof data;
|
|
6445
6600
|
switch (t) {
|
|
6446
6601
|
case "number": {
|
|
6447
|
-
return Number.isNaN(data) ? "NaN" : "
|
|
6602
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6448
6603
|
}
|
|
6449
6604
|
case "object": {
|
|
6450
6605
|
if (Array.isArray(data)) {
|
|
6451
|
-
return "
|
|
6606
|
+
return "ارې";
|
|
6452
6607
|
}
|
|
6453
6608
|
if (data === null) {
|
|
6454
6609
|
return "null";
|
|
@@ -6461,10 +6616,10 @@ const error$12 = () => {
|
|
|
6461
6616
|
return t;
|
|
6462
6617
|
};
|
|
6463
6618
|
const Nouns = {
|
|
6464
|
-
regex: "
|
|
6465
|
-
email: "
|
|
6466
|
-
url: "
|
|
6467
|
-
emoji: "
|
|
6619
|
+
regex: "ورودي",
|
|
6620
|
+
email: "بریښنالیک",
|
|
6621
|
+
url: "یو آر ال",
|
|
6622
|
+
emoji: "ایموجي",
|
|
6468
6623
|
uuid: "UUID",
|
|
6469
6624
|
uuidv4: "UUIDv4",
|
|
6470
6625
|
uuidv6: "UUIDv6",
|
|
@@ -6475,26 +6630,153 @@ const error$12 = () => {
|
|
|
6475
6630
|
ulid: "ULID",
|
|
6476
6631
|
xid: "XID",
|
|
6477
6632
|
ksuid: "KSUID",
|
|
6478
|
-
datetime: "
|
|
6479
|
-
date: "
|
|
6480
|
-
time: "
|
|
6481
|
-
duration: "
|
|
6482
|
-
ipv4: "
|
|
6483
|
-
ipv6: "
|
|
6484
|
-
cidrv4: "
|
|
6485
|
-
cidrv6: "
|
|
6486
|
-
base64: "
|
|
6487
|
-
base64url: "
|
|
6488
|
-
json_string: "
|
|
6489
|
-
e164: "
|
|
6633
|
+
datetime: "نیټه او وخت",
|
|
6634
|
+
date: "نېټه",
|
|
6635
|
+
time: "وخت",
|
|
6636
|
+
duration: "موده",
|
|
6637
|
+
ipv4: "د IPv4 پته",
|
|
6638
|
+
ipv6: "د IPv6 پته",
|
|
6639
|
+
cidrv4: "د IPv4 ساحه",
|
|
6640
|
+
cidrv6: "د IPv6 ساحه",
|
|
6641
|
+
base64: "base64-encoded متن",
|
|
6642
|
+
base64url: "base64url-encoded متن",
|
|
6643
|
+
json_string: "JSON متن",
|
|
6644
|
+
e164: "د E.164 شمېره",
|
|
6490
6645
|
jwt: "JWT",
|
|
6491
|
-
template_literal: "
|
|
6646
|
+
template_literal: "ورودي"
|
|
6492
6647
|
};
|
|
6493
6648
|
return (issue$1) => {
|
|
6494
6649
|
switch (issue$1.code) {
|
|
6495
|
-
case "invalid_type": return
|
|
6650
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6496
6651
|
case "invalid_value":
|
|
6497
|
-
if (issue$1.values.length === 1)
|
|
6652
|
+
if (issue$1.values.length === 1) {
|
|
6653
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6654
|
+
}
|
|
6655
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6656
|
+
case "too_big": {
|
|
6657
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6658
|
+
const sizing = getSizing(issue$1.origin);
|
|
6659
|
+
if (sizing) {
|
|
6660
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6661
|
+
}
|
|
6662
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6663
|
+
}
|
|
6664
|
+
case "too_small": {
|
|
6665
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6666
|
+
const sizing = getSizing(issue$1.origin);
|
|
6667
|
+
if (sizing) {
|
|
6668
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6669
|
+
}
|
|
6670
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6671
|
+
}
|
|
6672
|
+
case "invalid_format": {
|
|
6673
|
+
const _issue = issue$1;
|
|
6674
|
+
if (_issue.format === "starts_with") {
|
|
6675
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6676
|
+
}
|
|
6677
|
+
if (_issue.format === "ends_with") {
|
|
6678
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6679
|
+
}
|
|
6680
|
+
if (_issue.format === "includes") {
|
|
6681
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6682
|
+
}
|
|
6683
|
+
if (_issue.format === "regex") {
|
|
6684
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6685
|
+
}
|
|
6686
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6687
|
+
}
|
|
6688
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6689
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6690
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6691
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6692
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6693
|
+
default: return `ناسمه ورودي`;
|
|
6694
|
+
}
|
|
6695
|
+
};
|
|
6696
|
+
};
|
|
6697
|
+
function ps_default() {
|
|
6698
|
+
return { localeError: error$13() };
|
|
6699
|
+
}
|
|
6700
|
+
|
|
6701
|
+
//#endregion
|
|
6702
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
6703
|
+
const error$12 = () => {
|
|
6704
|
+
const Sizable = {
|
|
6705
|
+
string: {
|
|
6706
|
+
unit: "znaków",
|
|
6707
|
+
verb: "mieć"
|
|
6708
|
+
},
|
|
6709
|
+
file: {
|
|
6710
|
+
unit: "bajtów",
|
|
6711
|
+
verb: "mieć"
|
|
6712
|
+
},
|
|
6713
|
+
array: {
|
|
6714
|
+
unit: "elementów",
|
|
6715
|
+
verb: "mieć"
|
|
6716
|
+
},
|
|
6717
|
+
set: {
|
|
6718
|
+
unit: "elementów",
|
|
6719
|
+
verb: "mieć"
|
|
6720
|
+
}
|
|
6721
|
+
};
|
|
6722
|
+
function getSizing(origin) {
|
|
6723
|
+
return Sizable[origin] ?? null;
|
|
6724
|
+
}
|
|
6725
|
+
const parsedType$3 = (data) => {
|
|
6726
|
+
const t = typeof data;
|
|
6727
|
+
switch (t) {
|
|
6728
|
+
case "number": {
|
|
6729
|
+
return Number.isNaN(data) ? "NaN" : "liczba";
|
|
6730
|
+
}
|
|
6731
|
+
case "object": {
|
|
6732
|
+
if (Array.isArray(data)) {
|
|
6733
|
+
return "tablica";
|
|
6734
|
+
}
|
|
6735
|
+
if (data === null) {
|
|
6736
|
+
return "null";
|
|
6737
|
+
}
|
|
6738
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6739
|
+
return data.constructor.name;
|
|
6740
|
+
}
|
|
6741
|
+
}
|
|
6742
|
+
}
|
|
6743
|
+
return t;
|
|
6744
|
+
};
|
|
6745
|
+
const Nouns = {
|
|
6746
|
+
regex: "wyrażenie",
|
|
6747
|
+
email: "adres email",
|
|
6748
|
+
url: "URL",
|
|
6749
|
+
emoji: "emoji",
|
|
6750
|
+
uuid: "UUID",
|
|
6751
|
+
uuidv4: "UUIDv4",
|
|
6752
|
+
uuidv6: "UUIDv6",
|
|
6753
|
+
nanoid: "nanoid",
|
|
6754
|
+
guid: "GUID",
|
|
6755
|
+
cuid: "cuid",
|
|
6756
|
+
cuid2: "cuid2",
|
|
6757
|
+
ulid: "ULID",
|
|
6758
|
+
xid: "XID",
|
|
6759
|
+
ksuid: "KSUID",
|
|
6760
|
+
datetime: "data i godzina w formacie ISO",
|
|
6761
|
+
date: "data w formacie ISO",
|
|
6762
|
+
time: "godzina w formacie ISO",
|
|
6763
|
+
duration: "czas trwania ISO",
|
|
6764
|
+
ipv4: "adres IPv4",
|
|
6765
|
+
ipv6: "adres IPv6",
|
|
6766
|
+
cidrv4: "zakres IPv4",
|
|
6767
|
+
cidrv6: "zakres IPv6",
|
|
6768
|
+
base64: "ciąg znaków zakodowany w formacie base64",
|
|
6769
|
+
base64url: "ciąg znaków zakodowany w formacie base64url",
|
|
6770
|
+
json_string: "ciąg znaków w formacie JSON",
|
|
6771
|
+
e164: "liczba E.164",
|
|
6772
|
+
jwt: "JWT",
|
|
6773
|
+
template_literal: "wejście"
|
|
6774
|
+
};
|
|
6775
|
+
return (issue$1) => {
|
|
6776
|
+
switch (issue$1.code) {
|
|
6777
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6778
|
+
case "invalid_value":
|
|
6779
|
+
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6498
6780
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
6499
6781
|
case "too_big": {
|
|
6500
6782
|
const adj = issue$1.inclusive ? "<=" : "<";
|
|
@@ -6534,7 +6816,7 @@ function pl_default() {
|
|
|
6534
6816
|
}
|
|
6535
6817
|
|
|
6536
6818
|
//#endregion
|
|
6537
|
-
//#region ../../node_modules/zod/
|
|
6819
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6538
6820
|
const error$11 = () => {
|
|
6539
6821
|
const Sizable = {
|
|
6540
6822
|
string: {
|
|
@@ -6557,7 +6839,7 @@ const error$11 = () => {
|
|
|
6557
6839
|
function getSizing(origin) {
|
|
6558
6840
|
return Sizable[origin] ?? null;
|
|
6559
6841
|
}
|
|
6560
|
-
const parsedType$
|
|
6842
|
+
const parsedType$3 = (data) => {
|
|
6561
6843
|
const t = typeof data;
|
|
6562
6844
|
switch (t) {
|
|
6563
6845
|
case "number": {
|
|
@@ -6609,7 +6891,7 @@ const error$11 = () => {
|
|
|
6609
6891
|
};
|
|
6610
6892
|
return (issue$1) => {
|
|
6611
6893
|
switch (issue$1.code) {
|
|
6612
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6894
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6613
6895
|
case "invalid_value":
|
|
6614
6896
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6615
6897
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6649,7 +6931,7 @@ function pt_default() {
|
|
|
6649
6931
|
}
|
|
6650
6932
|
|
|
6651
6933
|
//#endregion
|
|
6652
|
-
//#region ../../node_modules/zod/
|
|
6934
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6653
6935
|
function getRussianPlural(count, one, few, many) {
|
|
6654
6936
|
const absCount = Math.abs(count);
|
|
6655
6937
|
const lastDigit = absCount % 10;
|
|
@@ -6703,7 +6985,7 @@ const error$10 = () => {
|
|
|
6703
6985
|
function getSizing(origin) {
|
|
6704
6986
|
return Sizable[origin] ?? null;
|
|
6705
6987
|
}
|
|
6706
|
-
const parsedType$
|
|
6988
|
+
const parsedType$3 = (data) => {
|
|
6707
6989
|
const t = typeof data;
|
|
6708
6990
|
switch (t) {
|
|
6709
6991
|
case "number": {
|
|
@@ -6755,7 +7037,7 @@ const error$10 = () => {
|
|
|
6755
7037
|
};
|
|
6756
7038
|
return (issue$1) => {
|
|
6757
7039
|
switch (issue$1.code) {
|
|
6758
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
7040
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6759
7041
|
case "invalid_value":
|
|
6760
7042
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6761
7043
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6801,7 +7083,7 @@ function ru_default() {
|
|
|
6801
7083
|
}
|
|
6802
7084
|
|
|
6803
7085
|
//#endregion
|
|
6804
|
-
//#region ../../node_modules/zod/
|
|
7086
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6805
7087
|
const error$9 = () => {
|
|
6806
7088
|
const Sizable = {
|
|
6807
7089
|
string: {
|
|
@@ -6824,7 +7106,7 @@ const error$9 = () => {
|
|
|
6824
7106
|
function getSizing(origin) {
|
|
6825
7107
|
return Sizable[origin] ?? null;
|
|
6826
7108
|
}
|
|
6827
|
-
const parsedType$
|
|
7109
|
+
const parsedType$3 = (data) => {
|
|
6828
7110
|
const t = typeof data;
|
|
6829
7111
|
switch (t) {
|
|
6830
7112
|
case "number": {
|
|
@@ -6876,7 +7158,7 @@ const error$9 = () => {
|
|
|
6876
7158
|
};
|
|
6877
7159
|
return (issue$1) => {
|
|
6878
7160
|
switch (issue$1.code) {
|
|
6879
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
7161
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6880
7162
|
case "invalid_value":
|
|
6881
7163
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6882
7164
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6918,7 +7200,7 @@ function sl_default() {
|
|
|
6918
7200
|
}
|
|
6919
7201
|
|
|
6920
7202
|
//#endregion
|
|
6921
|
-
//#region ../../node_modules/zod/
|
|
7203
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6922
7204
|
const error$8 = () => {
|
|
6923
7205
|
const Sizable = {
|
|
6924
7206
|
string: {
|
|
@@ -6941,7 +7223,7 @@ const error$8 = () => {
|
|
|
6941
7223
|
function getSizing(origin) {
|
|
6942
7224
|
return Sizable[origin] ?? null;
|
|
6943
7225
|
}
|
|
6944
|
-
const parsedType$
|
|
7226
|
+
const parsedType$3 = (data) => {
|
|
6945
7227
|
const t = typeof data;
|
|
6946
7228
|
switch (t) {
|
|
6947
7229
|
case "number": {
|
|
@@ -6993,7 +7275,7 @@ const error$8 = () => {
|
|
|
6993
7275
|
};
|
|
6994
7276
|
return (issue$1) => {
|
|
6995
7277
|
switch (issue$1.code) {
|
|
6996
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
7278
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6997
7279
|
case "invalid_value":
|
|
6998
7280
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6999
7281
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7037,7 +7319,7 @@ function sv_default() {
|
|
|
7037
7319
|
}
|
|
7038
7320
|
|
|
7039
7321
|
//#endregion
|
|
7040
|
-
//#region ../../node_modules/zod/
|
|
7322
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
7041
7323
|
const error$7 = () => {
|
|
7042
7324
|
const Sizable = {
|
|
7043
7325
|
string: {
|
|
@@ -7060,7 +7342,7 @@ const error$7 = () => {
|
|
|
7060
7342
|
function getSizing(origin) {
|
|
7061
7343
|
return Sizable[origin] ?? null;
|
|
7062
7344
|
}
|
|
7063
|
-
const parsedType$
|
|
7345
|
+
const parsedType$3 = (data) => {
|
|
7064
7346
|
const t = typeof data;
|
|
7065
7347
|
switch (t) {
|
|
7066
7348
|
case "number": {
|
|
@@ -7112,7 +7394,7 @@ const error$7 = () => {
|
|
|
7112
7394
|
};
|
|
7113
7395
|
return (issue$1) => {
|
|
7114
7396
|
switch (issue$1.code) {
|
|
7115
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
7397
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
7116
7398
|
case "invalid_value":
|
|
7117
7399
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7118
7400
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -7154,7 +7436,7 @@ function ta_default() {
|
|
|
7154
7436
|
}
|
|
7155
7437
|
|
|
7156
7438
|
//#endregion
|
|
7157
|
-
//#region ../../node_modules/zod/
|
|
7439
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
7158
7440
|
const error$6 = () => {
|
|
7159
7441
|
const Sizable = {
|
|
7160
7442
|
string: {
|
|
@@ -7177,7 +7459,7 @@ const error$6 = () => {
|
|
|
7177
7459
|
function getSizing(origin) {
|
|
7178
7460
|
return Sizable[origin] ?? null;
|
|
7179
7461
|
}
|
|
7180
|
-
const parsedType$
|
|
7462
|
+
const parsedType$3 = (data) => {
|
|
7181
7463
|
const t = typeof data;
|
|
7182
7464
|
switch (t) {
|
|
7183
7465
|
case "number": {
|
|
@@ -7229,7 +7511,7 @@ const error$6 = () => {
|
|
|
7229
7511
|
};
|
|
7230
7512
|
return (issue$1) => {
|
|
7231
7513
|
switch (issue$1.code) {
|
|
7232
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7514
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
7233
7515
|
case "invalid_value":
|
|
7234
7516
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7235
7517
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7271,7 +7553,7 @@ function th_default() {
|
|
|
7271
7553
|
}
|
|
7272
7554
|
|
|
7273
7555
|
//#endregion
|
|
7274
|
-
//#region ../../node_modules/zod/
|
|
7556
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
7275
7557
|
const parsedType = (data) => {
|
|
7276
7558
|
const t = typeof data;
|
|
7277
7559
|
switch (t) {
|
|
@@ -7384,7 +7666,7 @@ function tr_default() {
|
|
|
7384
7666
|
}
|
|
7385
7667
|
|
|
7386
7668
|
//#endregion
|
|
7387
|
-
//#region ../../node_modules/zod/
|
|
7669
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
7388
7670
|
const error$4 = () => {
|
|
7389
7671
|
const Sizable = {
|
|
7390
7672
|
string: {
|
|
@@ -7407,7 +7689,7 @@ const error$4 = () => {
|
|
|
7407
7689
|
function getSizing(origin) {
|
|
7408
7690
|
return Sizable[origin] ?? null;
|
|
7409
7691
|
}
|
|
7410
|
-
const parsedType$
|
|
7692
|
+
const parsedType$3 = (data) => {
|
|
7411
7693
|
const t = typeof data;
|
|
7412
7694
|
switch (t) {
|
|
7413
7695
|
case "number": {
|
|
@@ -7459,7 +7741,7 @@ const error$4 = () => {
|
|
|
7459
7741
|
};
|
|
7460
7742
|
return (issue$1) => {
|
|
7461
7743
|
switch (issue$1.code) {
|
|
7462
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7744
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
7463
7745
|
case "invalid_value":
|
|
7464
7746
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7465
7747
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7499,7 +7781,7 @@ function ua_default() {
|
|
|
7499
7781
|
}
|
|
7500
7782
|
|
|
7501
7783
|
//#endregion
|
|
7502
|
-
//#region ../../node_modules/zod/
|
|
7784
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7503
7785
|
const error$3 = () => {
|
|
7504
7786
|
const Sizable = {
|
|
7505
7787
|
string: {
|
|
@@ -7522,7 +7804,7 @@ const error$3 = () => {
|
|
|
7522
7804
|
function getSizing(origin) {
|
|
7523
7805
|
return Sizable[origin] ?? null;
|
|
7524
7806
|
}
|
|
7525
|
-
const parsedType$
|
|
7807
|
+
const parsedType$3 = (data) => {
|
|
7526
7808
|
const t = typeof data;
|
|
7527
7809
|
switch (t) {
|
|
7528
7810
|
case "number": {
|
|
@@ -7574,7 +7856,7 @@ const error$3 = () => {
|
|
|
7574
7856
|
};
|
|
7575
7857
|
return (issue$1) => {
|
|
7576
7858
|
switch (issue$1.code) {
|
|
7577
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7859
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7578
7860
|
case "invalid_value":
|
|
7579
7861
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7580
7862
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7616,7 +7898,7 @@ function ur_default() {
|
|
|
7616
7898
|
}
|
|
7617
7899
|
|
|
7618
7900
|
//#endregion
|
|
7619
|
-
//#region ../../node_modules/zod/
|
|
7901
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7620
7902
|
const error$2 = () => {
|
|
7621
7903
|
const Sizable = {
|
|
7622
7904
|
string: {
|
|
@@ -7639,7 +7921,7 @@ const error$2 = () => {
|
|
|
7639
7921
|
function getSizing(origin) {
|
|
7640
7922
|
return Sizable[origin] ?? null;
|
|
7641
7923
|
}
|
|
7642
|
-
const parsedType$
|
|
7924
|
+
const parsedType$3 = (data) => {
|
|
7643
7925
|
const t = typeof data;
|
|
7644
7926
|
switch (t) {
|
|
7645
7927
|
case "number": {
|
|
@@ -7691,7 +7973,7 @@ const error$2 = () => {
|
|
|
7691
7973
|
};
|
|
7692
7974
|
return (issue$1) => {
|
|
7693
7975
|
switch (issue$1.code) {
|
|
7694
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7976
|
+
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)}`;
|
|
7695
7977
|
case "invalid_value":
|
|
7696
7978
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7697
7979
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7731,7 +8013,7 @@ function vi_default() {
|
|
|
7731
8013
|
}
|
|
7732
8014
|
|
|
7733
8015
|
//#endregion
|
|
7734
|
-
//#region ../../node_modules/zod/
|
|
8016
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7735
8017
|
const error$1 = () => {
|
|
7736
8018
|
const Sizable = {
|
|
7737
8019
|
string: {
|
|
@@ -7754,7 +8036,7 @@ const error$1 = () => {
|
|
|
7754
8036
|
function getSizing(origin) {
|
|
7755
8037
|
return Sizable[origin] ?? null;
|
|
7756
8038
|
}
|
|
7757
|
-
const parsedType$
|
|
8039
|
+
const parsedType$3 = (data) => {
|
|
7758
8040
|
const t = typeof data;
|
|
7759
8041
|
switch (t) {
|
|
7760
8042
|
case "number": {
|
|
@@ -7806,7 +8088,7 @@ const error$1 = () => {
|
|
|
7806
8088
|
};
|
|
7807
8089
|
return (issue$1) => {
|
|
7808
8090
|
switch (issue$1.code) {
|
|
7809
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
8091
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7810
8092
|
case "invalid_value":
|
|
7811
8093
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7812
8094
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7846,7 +8128,7 @@ function zh_CN_default() {
|
|
|
7846
8128
|
}
|
|
7847
8129
|
|
|
7848
8130
|
//#endregion
|
|
7849
|
-
//#region ../../node_modules/zod/
|
|
8131
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7850
8132
|
const error = () => {
|
|
7851
8133
|
const Sizable = {
|
|
7852
8134
|
string: {
|
|
@@ -7869,7 +8151,7 @@ const error = () => {
|
|
|
7869
8151
|
function getSizing(origin) {
|
|
7870
8152
|
return Sizable[origin] ?? null;
|
|
7871
8153
|
}
|
|
7872
|
-
const parsedType$
|
|
8154
|
+
const parsedType$3 = (data) => {
|
|
7873
8155
|
const t = typeof data;
|
|
7874
8156
|
switch (t) {
|
|
7875
8157
|
case "number": {
|
|
@@ -7921,7 +8203,7 @@ const error = () => {
|
|
|
7921
8203
|
};
|
|
7922
8204
|
return (issue$1) => {
|
|
7923
8205
|
switch (issue$1.code) {
|
|
7924
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
8206
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7925
8207
|
case "invalid_value":
|
|
7926
8208
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7927
8209
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7963,7 +8245,7 @@ function zh_TW_default() {
|
|
|
7963
8245
|
}
|
|
7964
8246
|
|
|
7965
8247
|
//#endregion
|
|
7966
|
-
//#region ../../node_modules/zod/
|
|
8248
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7967
8249
|
var locales_exports = {};
|
|
7968
8250
|
__export(locales_exports, {
|
|
7969
8251
|
ar: () => ar_default,
|
|
@@ -7973,6 +8255,7 @@ __export(locales_exports, {
|
|
|
7973
8255
|
cs: () => cs_default,
|
|
7974
8256
|
de: () => de_default,
|
|
7975
8257
|
en: () => en_default,
|
|
8258
|
+
eo: () => eo_default,
|
|
7976
8259
|
es: () => es_default,
|
|
7977
8260
|
fa: () => fa_default,
|
|
7978
8261
|
fi: () => fi_default,
|
|
@@ -7991,6 +8274,7 @@ __export(locales_exports, {
|
|
|
7991
8274
|
no: () => no_default,
|
|
7992
8275
|
ota: () => ota_default,
|
|
7993
8276
|
pl: () => pl_default,
|
|
8277
|
+
ps: () => ps_default,
|
|
7994
8278
|
pt: () => pt_default,
|
|
7995
8279
|
ru: () => ru_default,
|
|
7996
8280
|
sl: () => sl_default,
|
|
@@ -8006,12 +8290,12 @@ __export(locales_exports, {
|
|
|
8006
8290
|
});
|
|
8007
8291
|
|
|
8008
8292
|
//#endregion
|
|
8009
|
-
//#region ../../node_modules/zod/
|
|
8293
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
8010
8294
|
const $output = Symbol("ZodOutput");
|
|
8011
8295
|
const $input = Symbol("ZodInput");
|
|
8012
8296
|
var $ZodRegistry = class {
|
|
8013
8297
|
constructor() {
|
|
8014
|
-
this._map = new
|
|
8298
|
+
this._map = new Map();
|
|
8015
8299
|
this._idmap = new Map();
|
|
8016
8300
|
}
|
|
8017
8301
|
add(schema, ..._meta) {
|
|
@@ -8025,7 +8309,16 @@ var $ZodRegistry = class {
|
|
|
8025
8309
|
}
|
|
8026
8310
|
return this;
|
|
8027
8311
|
}
|
|
8312
|
+
clear() {
|
|
8313
|
+
this._map = new Map();
|
|
8314
|
+
this._idmap = new Map();
|
|
8315
|
+
return this;
|
|
8316
|
+
}
|
|
8028
8317
|
remove(schema) {
|
|
8318
|
+
const meta = this._map.get(schema);
|
|
8319
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
8320
|
+
this._idmap.delete(meta.id);
|
|
8321
|
+
}
|
|
8029
8322
|
this._map.delete(schema);
|
|
8030
8323
|
return this;
|
|
8031
8324
|
}
|
|
@@ -8051,7 +8344,7 @@ function registry() {
|
|
|
8051
8344
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
8052
8345
|
|
|
8053
8346
|
//#endregion
|
|
8054
|
-
//#region ../../node_modules/zod/
|
|
8347
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
8055
8348
|
function _string(Class$1, params) {
|
|
8056
8349
|
return new Class$1({
|
|
8057
8350
|
type: "string",
|
|
@@ -8266,6 +8559,13 @@ function _jwt(Class$1, params) {
|
|
|
8266
8559
|
...normalizeParams(params)
|
|
8267
8560
|
});
|
|
8268
8561
|
}
|
|
8562
|
+
const TimePrecision = {
|
|
8563
|
+
Any: null,
|
|
8564
|
+
Minute: -1,
|
|
8565
|
+
Second: 0,
|
|
8566
|
+
Millisecond: 3,
|
|
8567
|
+
Microsecond: 6
|
|
8568
|
+
};
|
|
8269
8569
|
function _isoDateTime(Class$1, params) {
|
|
8270
8570
|
return new Class$1({
|
|
8271
8571
|
type: "string",
|
|
@@ -8832,8 +9132,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8832
9132
|
return schema;
|
|
8833
9133
|
}
|
|
8834
9134
|
function _stringbool(Classes, _params) {
|
|
8835
|
-
const
|
|
8836
|
-
let truthyArray = truthy ?? [
|
|
9135
|
+
const params = normalizeParams(_params);
|
|
9136
|
+
let truthyArray = params.truthy ?? [
|
|
8837
9137
|
"true",
|
|
8838
9138
|
"1",
|
|
8839
9139
|
"yes",
|
|
@@ -8841,7 +9141,7 @@ function _stringbool(Classes, _params) {
|
|
|
8841
9141
|
"y",
|
|
8842
9142
|
"enabled"
|
|
8843
9143
|
];
|
|
8844
|
-
let falsyArray = falsy ?? [
|
|
9144
|
+
let falsyArray = params.falsy ?? [
|
|
8845
9145
|
"false",
|
|
8846
9146
|
"0",
|
|
8847
9147
|
"no",
|
|
@@ -8849,7 +9149,7 @@ function _stringbool(Classes, _params) {
|
|
|
8849
9149
|
"n",
|
|
8850
9150
|
"disabled"
|
|
8851
9151
|
];
|
|
8852
|
-
if (
|
|
9152
|
+
if (params.case !== "sensitive") {
|
|
8853
9153
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8854
9154
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8855
9155
|
}
|
|
@@ -8863,7 +9163,7 @@ function _stringbool(Classes, _params) {
|
|
|
8863
9163
|
type: "transform",
|
|
8864
9164
|
transform: (input, payload) => {
|
|
8865
9165
|
let data = input;
|
|
8866
|
-
if (
|
|
9166
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8867
9167
|
if (truthySet.has(data)) {
|
|
8868
9168
|
return true;
|
|
8869
9169
|
} else if (falsySet.has(data)) {
|
|
@@ -8879,31 +9179,47 @@ function _stringbool(Classes, _params) {
|
|
|
8879
9179
|
return {};
|
|
8880
9180
|
}
|
|
8881
9181
|
},
|
|
8882
|
-
error: error
|
|
9182
|
+
error: params.error
|
|
8883
9183
|
});
|
|
8884
9184
|
const innerPipe = new _Pipe({
|
|
8885
9185
|
type: "pipe",
|
|
8886
9186
|
in: new _String({
|
|
8887
9187
|
type: "string",
|
|
8888
|
-
error: error
|
|
9188
|
+
error: params.error
|
|
8889
9189
|
}),
|
|
8890
9190
|
out: tx,
|
|
8891
|
-
error: error
|
|
9191
|
+
error: params.error
|
|
8892
9192
|
});
|
|
8893
9193
|
const outerPipe = new _Pipe({
|
|
8894
9194
|
type: "pipe",
|
|
8895
9195
|
in: innerPipe,
|
|
8896
9196
|
out: new _Boolean({
|
|
8897
9197
|
type: "boolean",
|
|
8898
|
-
error: error
|
|
9198
|
+
error: params.error
|
|
8899
9199
|
}),
|
|
8900
|
-
error: error
|
|
9200
|
+
error: params.error
|
|
8901
9201
|
});
|
|
8902
9202
|
return outerPipe;
|
|
8903
9203
|
}
|
|
9204
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
9205
|
+
const params = normalizeParams(_params);
|
|
9206
|
+
const def = {
|
|
9207
|
+
...normalizeParams(_params),
|
|
9208
|
+
check: "string_format",
|
|
9209
|
+
type: "string",
|
|
9210
|
+
format,
|
|
9211
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
9212
|
+
...params
|
|
9213
|
+
};
|
|
9214
|
+
if (fnOrRegex instanceof RegExp) {
|
|
9215
|
+
def.pattern = fnOrRegex;
|
|
9216
|
+
}
|
|
9217
|
+
const inst = new Class$1(def);
|
|
9218
|
+
return inst;
|
|
9219
|
+
}
|
|
8904
9220
|
|
|
8905
9221
|
//#endregion
|
|
8906
|
-
//#region ../../node_modules/zod/
|
|
9222
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8907
9223
|
var $ZodFunction = class {
|
|
8908
9224
|
constructor(def) {
|
|
8909
9225
|
this._def = def;
|
|
@@ -8974,7 +9290,7 @@ function _function(params) {
|
|
|
8974
9290
|
}
|
|
8975
9291
|
|
|
8976
9292
|
//#endregion
|
|
8977
|
-
//#region ../../node_modules/zod/
|
|
9293
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8978
9294
|
var JSONSchemaGenerator = class {
|
|
8979
9295
|
constructor(params) {
|
|
8980
9296
|
this.counter = 0;
|
|
@@ -9010,431 +9326,435 @@ var JSONSchemaGenerator = class {
|
|
|
9010
9326
|
const result = {
|
|
9011
9327
|
schema: {},
|
|
9012
9328
|
count: 1,
|
|
9013
|
-
cycle: undefined
|
|
9014
|
-
};
|
|
9015
|
-
this.seen.set(schema, result);
|
|
9016
|
-
if (schema._zod.toJSONSchema) {
|
|
9017
|
-
result.schema = schema._zod.toJSONSchema();
|
|
9018
|
-
}
|
|
9019
|
-
const params = {
|
|
9020
|
-
..._params,
|
|
9021
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
9329
|
+
cycle: undefined,
|
|
9022
9330
|
path: _params.path
|
|
9023
9331
|
};
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
this.seen.get(parent).isParent = true;
|
|
9332
|
+
this.seen.set(schema, result);
|
|
9333
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
9334
|
+
if (overrideSchema) {
|
|
9335
|
+
result.schema = overrideSchema;
|
|
9029
9336
|
} else {
|
|
9030
|
-
const
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9337
|
+
const params = {
|
|
9338
|
+
..._params,
|
|
9339
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
9340
|
+
path: _params.path
|
|
9341
|
+
};
|
|
9342
|
+
const parent = schema._zod.parent;
|
|
9343
|
+
if (parent) {
|
|
9344
|
+
result.ref = parent;
|
|
9345
|
+
this.process(parent, params);
|
|
9346
|
+
this.seen.get(parent).isParent = true;
|
|
9347
|
+
} else {
|
|
9348
|
+
const _json = result.schema;
|
|
9349
|
+
switch (def.type) {
|
|
9350
|
+
case "string": {
|
|
9351
|
+
const json$1 = _json;
|
|
9352
|
+
json$1.type = "string";
|
|
9353
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
9354
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
9355
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
9356
|
+
if (format) {
|
|
9357
|
+
json$1.format = formatMap[format] ?? format;
|
|
9358
|
+
if (json$1.format === "") delete json$1.format;
|
|
9359
|
+
}
|
|
9360
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
9361
|
+
if (patterns && patterns.size > 0) {
|
|
9362
|
+
const regexes = [...patterns];
|
|
9363
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
9364
|
+
else if (regexes.length > 1) {
|
|
9365
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
9366
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
9367
|
+
pattern: regex.source
|
|
9368
|
+
}))];
|
|
9369
|
+
}
|
|
9370
|
+
}
|
|
9371
|
+
break;
|
|
9041
9372
|
}
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
const
|
|
9045
|
-
if (
|
|
9046
|
-
else
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9373
|
+
case "number": {
|
|
9374
|
+
const json$1 = _json;
|
|
9375
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
9376
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
9377
|
+
else json$1.type = "number";
|
|
9378
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
9379
|
+
if (typeof minimum === "number") {
|
|
9380
|
+
json$1.minimum = minimum;
|
|
9381
|
+
if (typeof exclusiveMinimum === "number") {
|
|
9382
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9383
|
+
else delete json$1.exclusiveMinimum;
|
|
9384
|
+
}
|
|
9051
9385
|
}
|
|
9386
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
9387
|
+
if (typeof maximum === "number") {
|
|
9388
|
+
json$1.maximum = maximum;
|
|
9389
|
+
if (typeof exclusiveMaximum === "number") {
|
|
9390
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9391
|
+
else delete json$1.exclusiveMaximum;
|
|
9392
|
+
}
|
|
9393
|
+
}
|
|
9394
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9395
|
+
break;
|
|
9052
9396
|
}
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
if (typeof minimum === "number") {
|
|
9062
|
-
json$1.minimum = minimum;
|
|
9063
|
-
if (typeof exclusiveMinimum === "number") {
|
|
9064
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9065
|
-
else delete json$1.exclusiveMinimum;
|
|
9397
|
+
case "boolean": {
|
|
9398
|
+
const json$1 = _json;
|
|
9399
|
+
json$1.type = "boolean";
|
|
9400
|
+
break;
|
|
9401
|
+
}
|
|
9402
|
+
case "bigint": {
|
|
9403
|
+
if (this.unrepresentable === "throw") {
|
|
9404
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9066
9405
|
}
|
|
9406
|
+
break;
|
|
9067
9407
|
}
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
if (typeof exclusiveMaximum === "number") {
|
|
9072
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9073
|
-
else delete json$1.exclusiveMaximum;
|
|
9408
|
+
case "symbol": {
|
|
9409
|
+
if (this.unrepresentable === "throw") {
|
|
9410
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9074
9411
|
}
|
|
9412
|
+
break;
|
|
9075
9413
|
}
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
case "boolean": {
|
|
9080
|
-
const json$1 = _json;
|
|
9081
|
-
json$1.type = "boolean";
|
|
9082
|
-
break;
|
|
9083
|
-
}
|
|
9084
|
-
case "bigint": {
|
|
9085
|
-
if (this.unrepresentable === "throw") {
|
|
9086
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9414
|
+
case "null": {
|
|
9415
|
+
_json.type = "null";
|
|
9416
|
+
break;
|
|
9087
9417
|
}
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
case "symbol": {
|
|
9091
|
-
if (this.unrepresentable === "throw") {
|
|
9092
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9418
|
+
case "any": {
|
|
9419
|
+
break;
|
|
9093
9420
|
}
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
case "undefined": {
|
|
9097
|
-
const json$1 = _json;
|
|
9098
|
-
json$1.type = "null";
|
|
9099
|
-
break;
|
|
9100
|
-
}
|
|
9101
|
-
case "null": {
|
|
9102
|
-
_json.type = "null";
|
|
9103
|
-
break;
|
|
9104
|
-
}
|
|
9105
|
-
case "any": {
|
|
9106
|
-
break;
|
|
9107
|
-
}
|
|
9108
|
-
case "unknown": {
|
|
9109
|
-
break;
|
|
9110
|
-
}
|
|
9111
|
-
case "never": {
|
|
9112
|
-
_json.not = {};
|
|
9113
|
-
break;
|
|
9114
|
-
}
|
|
9115
|
-
case "void": {
|
|
9116
|
-
if (this.unrepresentable === "throw") {
|
|
9117
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
9421
|
+
case "unknown": {
|
|
9422
|
+
break;
|
|
9118
9423
|
}
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9424
|
+
case "undefined": {
|
|
9425
|
+
if (this.unrepresentable === "throw") {
|
|
9426
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
9427
|
+
}
|
|
9428
|
+
break;
|
|
9124
9429
|
}
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9131
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9132
|
-
json$1.type = "array";
|
|
9133
|
-
json$1.items = this.process(def.element, {
|
|
9134
|
-
...params,
|
|
9135
|
-
path: [...params.path, "items"]
|
|
9136
|
-
});
|
|
9137
|
-
break;
|
|
9138
|
-
}
|
|
9139
|
-
case "object": {
|
|
9140
|
-
const json$1 = _json;
|
|
9141
|
-
json$1.type = "object";
|
|
9142
|
-
json$1.properties = {};
|
|
9143
|
-
const shape = def.shape;
|
|
9144
|
-
for (const key in shape) {
|
|
9145
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
9146
|
-
...params,
|
|
9147
|
-
path: [
|
|
9148
|
-
...params.path,
|
|
9149
|
-
"properties",
|
|
9150
|
-
key
|
|
9151
|
-
]
|
|
9152
|
-
});
|
|
9430
|
+
case "void": {
|
|
9431
|
+
if (this.unrepresentable === "throw") {
|
|
9432
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
9433
|
+
}
|
|
9434
|
+
break;
|
|
9153
9435
|
}
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9436
|
+
case "never": {
|
|
9437
|
+
_json.not = {};
|
|
9438
|
+
break;
|
|
9439
|
+
}
|
|
9440
|
+
case "date": {
|
|
9441
|
+
if (this.unrepresentable === "throw") {
|
|
9442
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
9161
9443
|
}
|
|
9162
|
-
|
|
9163
|
-
if (requiredKeys.size > 0) {
|
|
9164
|
-
json$1.required = Array.from(requiredKeys);
|
|
9444
|
+
break;
|
|
9165
9445
|
}
|
|
9166
|
-
|
|
9167
|
-
json$1
|
|
9168
|
-
|
|
9169
|
-
if (
|
|
9170
|
-
|
|
9171
|
-
json$1.
|
|
9446
|
+
case "array": {
|
|
9447
|
+
const json$1 = _json;
|
|
9448
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9449
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9450
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9451
|
+
json$1.type = "array";
|
|
9452
|
+
json$1.items = this.process(def.element, {
|
|
9172
9453
|
...params,
|
|
9173
|
-
path: [...params.path, "
|
|
9454
|
+
path: [...params.path, "items"]
|
|
9174
9455
|
});
|
|
9456
|
+
break;
|
|
9175
9457
|
}
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
const json$1 = _json;
|
|
9215
|
-
json$1.type = "array";
|
|
9216
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9217
|
-
...params,
|
|
9218
|
-
path: [
|
|
9219
|
-
...params.path,
|
|
9220
|
-
"prefixItems",
|
|
9221
|
-
i
|
|
9222
|
-
]
|
|
9223
|
-
}));
|
|
9224
|
-
if (this.target === "draft-2020-12") {
|
|
9225
|
-
json$1.prefixItems = prefixItems;
|
|
9226
|
-
} else {
|
|
9227
|
-
json$1.items = prefixItems;
|
|
9458
|
+
case "object": {
|
|
9459
|
+
const json$1 = _json;
|
|
9460
|
+
json$1.type = "object";
|
|
9461
|
+
json$1.properties = {};
|
|
9462
|
+
const shape = def.shape;
|
|
9463
|
+
for (const key in shape) {
|
|
9464
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9465
|
+
...params,
|
|
9466
|
+
path: [
|
|
9467
|
+
...params.path,
|
|
9468
|
+
"properties",
|
|
9469
|
+
key
|
|
9470
|
+
]
|
|
9471
|
+
});
|
|
9472
|
+
}
|
|
9473
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9474
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9475
|
+
const v = def.shape[key]._zod;
|
|
9476
|
+
if (this.io === "input") {
|
|
9477
|
+
return v.optin === undefined;
|
|
9478
|
+
} else {
|
|
9479
|
+
return v.optout === undefined;
|
|
9480
|
+
}
|
|
9481
|
+
}));
|
|
9482
|
+
if (requiredKeys.size > 0) {
|
|
9483
|
+
json$1.required = Array.from(requiredKeys);
|
|
9484
|
+
}
|
|
9485
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9486
|
+
json$1.additionalProperties = false;
|
|
9487
|
+
} else if (!def.catchall) {
|
|
9488
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9489
|
+
} else if (def.catchall) {
|
|
9490
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9491
|
+
...params,
|
|
9492
|
+
path: [...params.path, "additionalProperties"]
|
|
9493
|
+
});
|
|
9494
|
+
}
|
|
9495
|
+
break;
|
|
9228
9496
|
}
|
|
9229
|
-
|
|
9230
|
-
const
|
|
9497
|
+
case "union": {
|
|
9498
|
+
const json$1 = _json;
|
|
9499
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
9231
9500
|
...params,
|
|
9232
|
-
path: [
|
|
9501
|
+
path: [
|
|
9502
|
+
...params.path,
|
|
9503
|
+
"anyOf",
|
|
9504
|
+
i
|
|
9505
|
+
]
|
|
9506
|
+
}));
|
|
9507
|
+
break;
|
|
9508
|
+
}
|
|
9509
|
+
case "intersection": {
|
|
9510
|
+
const json$1 = _json;
|
|
9511
|
+
const a = this.process(def.left, {
|
|
9512
|
+
...params,
|
|
9513
|
+
path: [
|
|
9514
|
+
...params.path,
|
|
9515
|
+
"allOf",
|
|
9516
|
+
0
|
|
9517
|
+
]
|
|
9518
|
+
});
|
|
9519
|
+
const b = this.process(def.right, {
|
|
9520
|
+
...params,
|
|
9521
|
+
path: [
|
|
9522
|
+
...params.path,
|
|
9523
|
+
"allOf",
|
|
9524
|
+
1
|
|
9525
|
+
]
|
|
9233
9526
|
});
|
|
9527
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9528
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9529
|
+
json$1.allOf = allOf;
|
|
9530
|
+
break;
|
|
9531
|
+
}
|
|
9532
|
+
case "tuple": {
|
|
9533
|
+
const json$1 = _json;
|
|
9534
|
+
json$1.type = "array";
|
|
9535
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9536
|
+
...params,
|
|
9537
|
+
path: [
|
|
9538
|
+
...params.path,
|
|
9539
|
+
"prefixItems",
|
|
9540
|
+
i
|
|
9541
|
+
]
|
|
9542
|
+
}));
|
|
9234
9543
|
if (this.target === "draft-2020-12") {
|
|
9235
|
-
json$1.
|
|
9544
|
+
json$1.prefixItems = prefixItems;
|
|
9236
9545
|
} else {
|
|
9237
|
-
json$1.
|
|
9546
|
+
json$1.items = prefixItems;
|
|
9547
|
+
}
|
|
9548
|
+
if (def.rest) {
|
|
9549
|
+
const rest = this.process(def.rest, {
|
|
9550
|
+
...params,
|
|
9551
|
+
path: [...params.path, "items"]
|
|
9552
|
+
});
|
|
9553
|
+
if (this.target === "draft-2020-12") {
|
|
9554
|
+
json$1.items = rest;
|
|
9555
|
+
} else {
|
|
9556
|
+
json$1.additionalItems = rest;
|
|
9557
|
+
}
|
|
9238
9558
|
}
|
|
9559
|
+
if (def.rest) {
|
|
9560
|
+
json$1.items = this.process(def.rest, {
|
|
9561
|
+
...params,
|
|
9562
|
+
path: [...params.path, "items"]
|
|
9563
|
+
});
|
|
9564
|
+
}
|
|
9565
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9566
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9567
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9568
|
+
break;
|
|
9239
9569
|
}
|
|
9240
|
-
|
|
9241
|
-
json$1
|
|
9570
|
+
case "record": {
|
|
9571
|
+
const json$1 = _json;
|
|
9572
|
+
json$1.type = "object";
|
|
9573
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
9242
9574
|
...params,
|
|
9243
|
-
path: [...params.path, "
|
|
9575
|
+
path: [...params.path, "propertyNames"]
|
|
9244
9576
|
});
|
|
9577
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9578
|
+
...params,
|
|
9579
|
+
path: [...params.path, "additionalProperties"]
|
|
9580
|
+
});
|
|
9581
|
+
break;
|
|
9245
9582
|
}
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
case "record": {
|
|
9252
|
-
const json$1 = _json;
|
|
9253
|
-
json$1.type = "object";
|
|
9254
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
9255
|
-
...params,
|
|
9256
|
-
path: [...params.path, "propertyNames"]
|
|
9257
|
-
});
|
|
9258
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
9259
|
-
...params,
|
|
9260
|
-
path: [...params.path, "additionalProperties"]
|
|
9261
|
-
});
|
|
9262
|
-
break;
|
|
9263
|
-
}
|
|
9264
|
-
case "map": {
|
|
9265
|
-
if (this.unrepresentable === "throw") {
|
|
9266
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9583
|
+
case "map": {
|
|
9584
|
+
if (this.unrepresentable === "throw") {
|
|
9585
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9586
|
+
}
|
|
9587
|
+
break;
|
|
9267
9588
|
}
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9589
|
+
case "set": {
|
|
9590
|
+
if (this.unrepresentable === "throw") {
|
|
9591
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9592
|
+
}
|
|
9593
|
+
break;
|
|
9273
9594
|
}
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9595
|
+
case "enum": {
|
|
9596
|
+
const json$1 = _json;
|
|
9597
|
+
const values = getEnumValues(def.entries);
|
|
9598
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9599
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9600
|
+
json$1.enum = values;
|
|
9601
|
+
break;
|
|
9602
|
+
}
|
|
9603
|
+
case "literal": {
|
|
9604
|
+
const json$1 = _json;
|
|
9605
|
+
const vals = [];
|
|
9606
|
+
for (const val of def.values) {
|
|
9607
|
+
if (val === undefined) {
|
|
9608
|
+
if (this.unrepresentable === "throw") {
|
|
9609
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9610
|
+
} else {}
|
|
9611
|
+
} else if (typeof val === "bigint") {
|
|
9612
|
+
if (this.unrepresentable === "throw") {
|
|
9613
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9614
|
+
} else {
|
|
9615
|
+
vals.push(Number(val));
|
|
9616
|
+
}
|
|
9295
9617
|
} else {
|
|
9296
|
-
vals.push(
|
|
9618
|
+
vals.push(val);
|
|
9297
9619
|
}
|
|
9620
|
+
}
|
|
9621
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9622
|
+
const val = vals[0];
|
|
9623
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9624
|
+
json$1.const = val;
|
|
9298
9625
|
} else {
|
|
9299
|
-
vals.
|
|
9626
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9627
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9628
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9629
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9630
|
+
json$1.enum = vals;
|
|
9300
9631
|
}
|
|
9632
|
+
break;
|
|
9301
9633
|
}
|
|
9302
|
-
|
|
9303
|
-
const
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
if (
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
if (mime) {
|
|
9326
|
-
if (mime.length === 1) {
|
|
9327
|
-
file$1.contentMediaType = mime[0];
|
|
9328
|
-
Object.assign(json$1, file$1);
|
|
9634
|
+
case "file": {
|
|
9635
|
+
const json$1 = _json;
|
|
9636
|
+
const file$1 = {
|
|
9637
|
+
type: "string",
|
|
9638
|
+
format: "binary",
|
|
9639
|
+
contentEncoding: "binary"
|
|
9640
|
+
};
|
|
9641
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9642
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9643
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9644
|
+
if (mime) {
|
|
9645
|
+
if (mime.length === 1) {
|
|
9646
|
+
file$1.contentMediaType = mime[0];
|
|
9647
|
+
Object.assign(json$1, file$1);
|
|
9648
|
+
} else {
|
|
9649
|
+
json$1.anyOf = mime.map((m) => {
|
|
9650
|
+
const mFile = {
|
|
9651
|
+
...file$1,
|
|
9652
|
+
contentMediaType: m
|
|
9653
|
+
};
|
|
9654
|
+
return mFile;
|
|
9655
|
+
});
|
|
9656
|
+
}
|
|
9329
9657
|
} else {
|
|
9330
|
-
json$1
|
|
9331
|
-
const mFile = {
|
|
9332
|
-
...file$1,
|
|
9333
|
-
contentMediaType: m
|
|
9334
|
-
};
|
|
9335
|
-
return mFile;
|
|
9336
|
-
});
|
|
9658
|
+
Object.assign(json$1, file$1);
|
|
9337
9659
|
}
|
|
9338
|
-
|
|
9339
|
-
Object.assign(json$1, file$1);
|
|
9660
|
+
break;
|
|
9340
9661
|
}
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9662
|
+
case "transform": {
|
|
9663
|
+
if (this.unrepresentable === "throw") {
|
|
9664
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9665
|
+
}
|
|
9666
|
+
break;
|
|
9346
9667
|
}
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
9352
|
-
break;
|
|
9353
|
-
}
|
|
9354
|
-
case "nonoptional": {
|
|
9355
|
-
this.process(def.innerType, params);
|
|
9356
|
-
result.ref = def.innerType;
|
|
9357
|
-
break;
|
|
9358
|
-
}
|
|
9359
|
-
case "success": {
|
|
9360
|
-
const json$1 = _json;
|
|
9361
|
-
json$1.type = "boolean";
|
|
9362
|
-
break;
|
|
9363
|
-
}
|
|
9364
|
-
case "default": {
|
|
9365
|
-
this.process(def.innerType, params);
|
|
9366
|
-
result.ref = def.innerType;
|
|
9367
|
-
_json.default = def.defaultValue;
|
|
9368
|
-
break;
|
|
9369
|
-
}
|
|
9370
|
-
case "prefault": {
|
|
9371
|
-
this.process(def.innerType, params);
|
|
9372
|
-
result.ref = def.innerType;
|
|
9373
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
9374
|
-
break;
|
|
9375
|
-
}
|
|
9376
|
-
case "catch": {
|
|
9377
|
-
this.process(def.innerType, params);
|
|
9378
|
-
result.ref = def.innerType;
|
|
9379
|
-
let catchValue;
|
|
9380
|
-
try {
|
|
9381
|
-
catchValue = def.catchValue(undefined);
|
|
9382
|
-
} catch {
|
|
9383
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9668
|
+
case "nullable": {
|
|
9669
|
+
const inner = this.process(def.innerType, params);
|
|
9670
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9671
|
+
break;
|
|
9384
9672
|
}
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
if (this.unrepresentable === "throw") {
|
|
9390
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9673
|
+
case "nonoptional": {
|
|
9674
|
+
this.process(def.innerType, params);
|
|
9675
|
+
result.ref = def.innerType;
|
|
9676
|
+
break;
|
|
9391
9677
|
}
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9678
|
+
case "success": {
|
|
9679
|
+
const json$1 = _json;
|
|
9680
|
+
json$1.type = "boolean";
|
|
9681
|
+
break;
|
|
9682
|
+
}
|
|
9683
|
+
case "default": {
|
|
9684
|
+
this.process(def.innerType, params);
|
|
9685
|
+
result.ref = def.innerType;
|
|
9686
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9687
|
+
break;
|
|
9688
|
+
}
|
|
9689
|
+
case "prefault": {
|
|
9690
|
+
this.process(def.innerType, params);
|
|
9691
|
+
result.ref = def.innerType;
|
|
9692
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9693
|
+
break;
|
|
9694
|
+
}
|
|
9695
|
+
case "catch": {
|
|
9696
|
+
this.process(def.innerType, params);
|
|
9697
|
+
result.ref = def.innerType;
|
|
9698
|
+
let catchValue;
|
|
9699
|
+
try {
|
|
9700
|
+
catchValue = def.catchValue(undefined);
|
|
9701
|
+
} catch {
|
|
9702
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9703
|
+
}
|
|
9704
|
+
_json.default = catchValue;
|
|
9705
|
+
break;
|
|
9706
|
+
}
|
|
9707
|
+
case "nan": {
|
|
9708
|
+
if (this.unrepresentable === "throw") {
|
|
9709
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9710
|
+
}
|
|
9711
|
+
break;
|
|
9712
|
+
}
|
|
9713
|
+
case "template_literal": {
|
|
9714
|
+
const json$1 = _json;
|
|
9715
|
+
const pattern = schema._zod.pattern;
|
|
9716
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9717
|
+
json$1.type = "string";
|
|
9718
|
+
json$1.pattern = pattern.source;
|
|
9719
|
+
break;
|
|
9720
|
+
}
|
|
9721
|
+
case "pipe": {
|
|
9722
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9723
|
+
this.process(innerType, params);
|
|
9724
|
+
result.ref = innerType;
|
|
9725
|
+
break;
|
|
9726
|
+
}
|
|
9727
|
+
case "readonly": {
|
|
9728
|
+
this.process(def.innerType, params);
|
|
9729
|
+
result.ref = def.innerType;
|
|
9730
|
+
_json.readOnly = true;
|
|
9731
|
+
break;
|
|
9732
|
+
}
|
|
9733
|
+
case "promise": {
|
|
9734
|
+
this.process(def.innerType, params);
|
|
9735
|
+
result.ref = def.innerType;
|
|
9736
|
+
break;
|
|
9737
|
+
}
|
|
9738
|
+
case "optional": {
|
|
9739
|
+
this.process(def.innerType, params);
|
|
9740
|
+
result.ref = def.innerType;
|
|
9741
|
+
break;
|
|
9742
|
+
}
|
|
9743
|
+
case "lazy": {
|
|
9744
|
+
const innerType = schema._zod.innerType;
|
|
9745
|
+
this.process(innerType, params);
|
|
9746
|
+
result.ref = innerType;
|
|
9747
|
+
break;
|
|
9748
|
+
}
|
|
9749
|
+
case "custom": {
|
|
9750
|
+
if (this.unrepresentable === "throw") {
|
|
9751
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9752
|
+
}
|
|
9753
|
+
break;
|
|
9754
|
+
}
|
|
9755
|
+
default: {
|
|
9756
|
+
def;
|
|
9433
9757
|
}
|
|
9434
|
-
break;
|
|
9435
|
-
}
|
|
9436
|
-
default: {
|
|
9437
|
-
def;
|
|
9438
9758
|
}
|
|
9439
9759
|
}
|
|
9440
9760
|
}
|
|
@@ -9461,12 +9781,15 @@ var JSONSchemaGenerator = class {
|
|
|
9461
9781
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9462
9782
|
if (params.external) {
|
|
9463
9783
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9464
|
-
|
|
9784
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9785
|
+
if (externalId) {
|
|
9786
|
+
return { ref: uriGenerator(externalId) };
|
|
9787
|
+
}
|
|
9465
9788
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9466
9789
|
entry[1].defId = id;
|
|
9467
9790
|
return {
|
|
9468
9791
|
defId: id,
|
|
9469
|
-
ref: `${
|
|
9792
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9470
9793
|
};
|
|
9471
9794
|
}
|
|
9472
9795
|
if (entry[1] === root) {
|
|
@@ -9494,6 +9817,14 @@ var JSONSchemaGenerator = class {
|
|
|
9494
9817
|
}
|
|
9495
9818
|
schema$1.$ref = ref;
|
|
9496
9819
|
};
|
|
9820
|
+
if (params.cycles === "throw") {
|
|
9821
|
+
for (const entry of this.seen.entries()) {
|
|
9822
|
+
const seen = entry[1];
|
|
9823
|
+
if (seen.cycle) {
|
|
9824
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9825
|
+
}
|
|
9826
|
+
}
|
|
9827
|
+
}
|
|
9497
9828
|
for (const entry of this.seen.entries()) {
|
|
9498
9829
|
const seen = entry[1];
|
|
9499
9830
|
if (schema === entry[0]) {
|
|
@@ -9513,11 +9844,7 @@ var JSONSchemaGenerator = class {
|
|
|
9513
9844
|
continue;
|
|
9514
9845
|
}
|
|
9515
9846
|
if (seen.cycle) {
|
|
9516
|
-
|
|
9517
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9518
|
-
} else if (params.cycles === "ref") {
|
|
9519
|
-
extractToDef(entry);
|
|
9520
|
-
}
|
|
9847
|
+
extractToDef(entry);
|
|
9521
9848
|
continue;
|
|
9522
9849
|
}
|
|
9523
9850
|
if (seen.count > 1) {
|
|
@@ -9549,7 +9876,8 @@ var JSONSchemaGenerator = class {
|
|
|
9549
9876
|
}
|
|
9550
9877
|
if (!seen.isParent) this.override({
|
|
9551
9878
|
zodSchema,
|
|
9552
|
-
jsonSchema: schema$1
|
|
9879
|
+
jsonSchema: schema$1,
|
|
9880
|
+
path: seen.path ?? []
|
|
9553
9881
|
});
|
|
9554
9882
|
};
|
|
9555
9883
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9563,6 +9891,11 @@ var JSONSchemaGenerator = class {
|
|
|
9563
9891
|
} else {
|
|
9564
9892
|
console.warn(`Invalid target: ${this.target}`);
|
|
9565
9893
|
}
|
|
9894
|
+
if (params.external?.uri) {
|
|
9895
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9896
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9897
|
+
result.$id = params.external.uri(id);
|
|
9898
|
+
}
|
|
9566
9899
|
Object.assign(result, root.def);
|
|
9567
9900
|
const defs = params.external?.defs ?? {};
|
|
9568
9901
|
for (const entry of this.seen.entries()) {
|
|
@@ -9571,11 +9904,13 @@ var JSONSchemaGenerator = class {
|
|
|
9571
9904
|
defs[seen.defId] = seen.def;
|
|
9572
9905
|
}
|
|
9573
9906
|
}
|
|
9574
|
-
if (
|
|
9575
|
-
if (
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9907
|
+
if (params.external) {} else {
|
|
9908
|
+
if (Object.keys(defs).length > 0) {
|
|
9909
|
+
if (this.target === "draft-2020-12") {
|
|
9910
|
+
result.$defs = defs;
|
|
9911
|
+
} else {
|
|
9912
|
+
result.definitions = defs;
|
|
9913
|
+
}
|
|
9579
9914
|
}
|
|
9580
9915
|
}
|
|
9581
9916
|
try {
|
|
@@ -9596,7 +9931,7 @@ function toJSONSchema(input, _params) {
|
|
|
9596
9931
|
const schemas = {};
|
|
9597
9932
|
const external = {
|
|
9598
9933
|
registry: input,
|
|
9599
|
-
uri: _params?.uri
|
|
9934
|
+
uri: _params?.uri,
|
|
9600
9935
|
defs
|
|
9601
9936
|
};
|
|
9602
9937
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9707,11 +10042,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9707
10042
|
}
|
|
9708
10043
|
|
|
9709
10044
|
//#endregion
|
|
9710
|
-
//#region ../../node_modules/zod/
|
|
10045
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9711
10046
|
var json_schema_exports = {};
|
|
9712
10047
|
|
|
9713
10048
|
//#endregion
|
|
9714
|
-
//#region ../../node_modules/zod/
|
|
10049
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9715
10050
|
var core_exports = {};
|
|
9716
10051
|
__export(core_exports, {
|
|
9717
10052
|
$ZodAny: () => $ZodAny,
|
|
@@ -9750,6 +10085,7 @@ __export(core_exports, {
|
|
|
9750
10085
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9751
10086
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9752
10087
|
$ZodCustom: () => $ZodCustom,
|
|
10088
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9753
10089
|
$ZodDate: () => $ZodDate,
|
|
9754
10090
|
$ZodDefault: () => $ZodDefault,
|
|
9755
10091
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9814,6 +10150,8 @@ __export(core_exports, {
|
|
|
9814
10150
|
Doc: () => Doc,
|
|
9815
10151
|
JSONSchema: () => json_schema_exports,
|
|
9816
10152
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
10153
|
+
NEVER: () => NEVER,
|
|
10154
|
+
TimePrecision: () => TimePrecision,
|
|
9817
10155
|
_any: () => _any,
|
|
9818
10156
|
_array: () => _array,
|
|
9819
10157
|
_base64: () => _base64,
|
|
@@ -9903,6 +10241,7 @@ __export(core_exports, {
|
|
|
9903
10241
|
_size: () => _size,
|
|
9904
10242
|
_startsWith: () => _startsWith,
|
|
9905
10243
|
_string: () => _string,
|
|
10244
|
+
_stringFormat: () => _stringFormat,
|
|
9906
10245
|
_stringbool: () => _stringbool,
|
|
9907
10246
|
_success: () => _success,
|
|
9908
10247
|
_symbol: () => _symbol,
|
|
@@ -9952,7 +10291,7 @@ __export(core_exports, {
|
|
|
9952
10291
|
});
|
|
9953
10292
|
|
|
9954
10293
|
//#endregion
|
|
9955
|
-
//#region ../../node_modules/zod/
|
|
10294
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9956
10295
|
var iso_exports = {};
|
|
9957
10296
|
__export(iso_exports, {
|
|
9958
10297
|
ZodISODate: () => ZodISODate,
|
|
@@ -9994,7 +10333,7 @@ function duration(params) {
|
|
|
9994
10333
|
}
|
|
9995
10334
|
|
|
9996
10335
|
//#endregion
|
|
9997
|
-
//#region ../../node_modules/zod/
|
|
10336
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9998
10337
|
const initializer = (inst, issues) => {
|
|
9999
10338
|
$ZodError.init(inst, issues);
|
|
10000
10339
|
inst.name = "ZodError";
|
|
@@ -10012,14 +10351,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
10012
10351
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
10013
10352
|
|
|
10014
10353
|
//#endregion
|
|
10015
|
-
//#region ../../node_modules/zod/
|
|
10354
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
10016
10355
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
10017
10356
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
10018
10357
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
10019
10358
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
10020
10359
|
|
|
10021
10360
|
//#endregion
|
|
10022
|
-
//#region ../../node_modules/zod/
|
|
10361
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
10023
10362
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
10024
10363
|
$ZodType.init(inst, def);
|
|
10025
10364
|
inst.def = def;
|
|
@@ -10287,6 +10626,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
10287
10626
|
function jwt(params) {
|
|
10288
10627
|
return _jwt(ZodJWT, params);
|
|
10289
10628
|
}
|
|
10629
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10630
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10631
|
+
ZodStringFormat.init(inst, def);
|
|
10632
|
+
});
|
|
10633
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10634
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10635
|
+
}
|
|
10290
10636
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
10291
10637
|
$ZodNumber.init(inst, def);
|
|
10292
10638
|
ZodType.init(inst, def);
|
|
@@ -10456,9 +10802,7 @@ function keyof(schema) {
|
|
|
10456
10802
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10457
10803
|
$ZodObject.init(inst, def);
|
|
10458
10804
|
ZodType.init(inst, def);
|
|
10459
|
-
defineLazy(inst, "shape", () =>
|
|
10460
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10461
|
-
});
|
|
10805
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
10462
10806
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10463
10807
|
inst.catchall = (catchall) => inst.clone({
|
|
10464
10808
|
...inst._zod.def,
|
|
@@ -10903,11 +11247,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10903
11247
|
$ZodCustom.init(inst, def);
|
|
10904
11248
|
ZodType.init(inst, def);
|
|
10905
11249
|
});
|
|
10906
|
-
function check(fn
|
|
10907
|
-
const ch = new $ZodCheck({
|
|
10908
|
-
check: "custom",
|
|
10909
|
-
...normalizeParams(params)
|
|
10910
|
-
});
|
|
11250
|
+
function check(fn) {
|
|
11251
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10911
11252
|
ch._zod.check = fn;
|
|
10912
11253
|
return ch;
|
|
10913
11254
|
}
|
|
@@ -10917,7 +11258,7 @@ function custom(fn, _params) {
|
|
|
10917
11258
|
function refine(fn, _params = {}) {
|
|
10918
11259
|
return _refine(ZodCustom, fn, _params);
|
|
10919
11260
|
}
|
|
10920
|
-
function superRefine(fn
|
|
11261
|
+
function superRefine(fn) {
|
|
10921
11262
|
const ch = check((payload) => {
|
|
10922
11263
|
payload.addIssue = (issue$1) => {
|
|
10923
11264
|
if (typeof issue$1 === "string") {
|
|
@@ -10933,7 +11274,7 @@ function superRefine(fn, params) {
|
|
|
10933
11274
|
}
|
|
10934
11275
|
};
|
|
10935
11276
|
return fn(payload.value, payload);
|
|
10936
|
-
}
|
|
11277
|
+
});
|
|
10937
11278
|
return ch;
|
|
10938
11279
|
}
|
|
10939
11280
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10971,7 +11312,7 @@ function preprocess(fn, schema) {
|
|
|
10971
11312
|
}
|
|
10972
11313
|
|
|
10973
11314
|
//#endregion
|
|
10974
|
-
//#region ../../node_modules/zod/
|
|
11315
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10975
11316
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10976
11317
|
const ZodIssueCode = {
|
|
10977
11318
|
invalid_type: "invalid_type",
|
|
@@ -10986,10 +11327,6 @@ const ZodIssueCode = {
|
|
|
10986
11327
|
invalid_value: "invalid_value",
|
|
10987
11328
|
custom: "custom"
|
|
10988
11329
|
};
|
|
10989
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10990
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10991
|
-
/** A special constant with type `never` */
|
|
10992
|
-
const NEVER = INVALID;
|
|
10993
11330
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10994
11331
|
function setErrorMap(map$1) {
|
|
10995
11332
|
config$1({ customError: map$1 });
|
|
@@ -10998,9 +11335,12 @@ function setErrorMap(map$1) {
|
|
|
10998
11335
|
function getErrorMap() {
|
|
10999
11336
|
return config$1().customError;
|
|
11000
11337
|
}
|
|
11338
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
11339
|
+
var ZodFirstPartyTypeKind;
|
|
11340
|
+
(function(ZodFirstPartyTypeKind$1) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
11001
11341
|
|
|
11002
11342
|
//#endregion
|
|
11003
|
-
//#region ../../node_modules/zod/
|
|
11343
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
11004
11344
|
var coerce_exports = {};
|
|
11005
11345
|
__export(coerce_exports, {
|
|
11006
11346
|
bigint: () => bigint,
|
|
@@ -11026,13 +11366,14 @@ function date(params) {
|
|
|
11026
11366
|
}
|
|
11027
11367
|
|
|
11028
11368
|
//#endregion
|
|
11029
|
-
//#region ../../node_modules/zod/
|
|
11369
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
11030
11370
|
var external_exports = {};
|
|
11031
11371
|
__export(external_exports, {
|
|
11032
11372
|
$brand: () => $brand,
|
|
11033
11373
|
$input: () => $input,
|
|
11034
11374
|
$output: () => $output,
|
|
11035
11375
|
NEVER: () => NEVER,
|
|
11376
|
+
TimePrecision: () => TimePrecision,
|
|
11036
11377
|
ZodAny: () => ZodAny,
|
|
11037
11378
|
ZodArray: () => ZodArray,
|
|
11038
11379
|
ZodBase64: () => ZodBase64,
|
|
@@ -11046,6 +11387,7 @@ __export(external_exports, {
|
|
|
11046
11387
|
ZodCUID2: () => ZodCUID2,
|
|
11047
11388
|
ZodCatch: () => ZodCatch,
|
|
11048
11389
|
ZodCustom: () => ZodCustom,
|
|
11390
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
11049
11391
|
ZodDate: () => ZodDate,
|
|
11050
11392
|
ZodDefault: () => ZodDefault,
|
|
11051
11393
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -11055,6 +11397,7 @@ __export(external_exports, {
|
|
|
11055
11397
|
ZodEnum: () => ZodEnum,
|
|
11056
11398
|
ZodError: () => ZodError,
|
|
11057
11399
|
ZodFile: () => ZodFile,
|
|
11400
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
11058
11401
|
ZodGUID: () => ZodGUID,
|
|
11059
11402
|
ZodIPv4: () => ZodIPv4,
|
|
11060
11403
|
ZodIPv6: () => ZodIPv6,
|
|
@@ -11207,6 +11550,7 @@ __export(external_exports, {
|
|
|
11207
11550
|
startsWith: () => _startsWith,
|
|
11208
11551
|
strictObject: () => strictObject,
|
|
11209
11552
|
string: () => string$1,
|
|
11553
|
+
stringFormat: () => stringFormat,
|
|
11210
11554
|
stringbool: () => stringbool,
|
|
11211
11555
|
success: () => success,
|
|
11212
11556
|
superRefine: () => superRefine,
|
|
@@ -11237,11 +11581,11 @@ __export(external_exports, {
|
|
|
11237
11581
|
config$1(en_default());
|
|
11238
11582
|
|
|
11239
11583
|
//#endregion
|
|
11240
|
-
//#region ../../node_modules/zod/
|
|
11584
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
11241
11585
|
var classic_default = external_exports;
|
|
11242
11586
|
|
|
11243
11587
|
//#endregion
|
|
11244
|
-
//#region ../../node_modules/zod/
|
|
11588
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
11245
11589
|
var v4_default = classic_default;
|
|
11246
11590
|
|
|
11247
11591
|
//#endregion
|
|
@@ -11262,12 +11606,12 @@ var v4_default = classic_default;
|
|
|
11262
11606
|
function validate(schema, value) {
|
|
11263
11607
|
try {
|
|
11264
11608
|
return schema.parse(value);
|
|
11265
|
-
} catch (error$
|
|
11266
|
-
if (error$
|
|
11267
|
-
const formattedErrors = error$
|
|
11268
|
-
throw new Error(`Validation error${error$
|
|
11609
|
+
} catch (error$39) {
|
|
11610
|
+
if (error$39 instanceof ZodError) {
|
|
11611
|
+
const formattedErrors = error$39.issues.map((err) => `- ${err.path.join(".")}: ${err.message}`).join("\n");
|
|
11612
|
+
throw new Error(`Validation error${error$39.issues.length > 1 ? "s" : ""}:\n${formattedErrors}`);
|
|
11269
11613
|
}
|
|
11270
|
-
throw error$
|
|
11614
|
+
throw error$39;
|
|
11271
11615
|
}
|
|
11272
11616
|
}
|
|
11273
11617
|
|
|
@@ -11570,8 +11914,8 @@ async function loadEnvironmentEnv(validateEnv, prod, path$1 = process.cwd()) {
|
|
|
11570
11914
|
...parsed,
|
|
11571
11915
|
...defaultEnv
|
|
11572
11916
|
});
|
|
11573
|
-
} catch (error$
|
|
11574
|
-
cancel(error$
|
|
11917
|
+
} catch (error$39) {
|
|
11918
|
+
cancel(error$39.message);
|
|
11575
11919
|
return {};
|
|
11576
11920
|
}
|
|
11577
11921
|
}
|