@settlemint/sdk-utils 2.4.1-prb0c72988 → 2.4.1-prb593b885
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 +1065 -726
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.js +1065 -726
- package/dist/environment.js.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/url.cjs +0 -3
- package/dist/url.cjs.map +1 -1
- package/dist/url.js +0 -3
- package/dist/url.js.map +1 -1
- package/dist/validation.cjs +1029 -690
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +1029 -690
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/validation.cjs
CHANGED
|
@@ -9,7 +9,9 @@ var __export = (target, all) => {
|
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
|
|
12
|
-
//#region ../../node_modules/zod/
|
|
12
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
13
|
+
/** A special constant with type `never` */
|
|
14
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
13
15
|
function $constructor(name, initializer$2, params) {
|
|
14
16
|
function init(inst, def) {
|
|
15
17
|
var _a;
|
|
@@ -60,7 +62,7 @@ function config(newConfig) {
|
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/zod/
|
|
65
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
64
66
|
var util_exports = {};
|
|
65
67
|
__export(util_exports, {
|
|
66
68
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -75,6 +77,7 @@ __export(util_exports, {
|
|
|
75
77
|
assertNotEqual: () => assertNotEqual,
|
|
76
78
|
assignProp: () => assignProp,
|
|
77
79
|
cached: () => cached,
|
|
80
|
+
captureStackTrace: () => captureStackTrace,
|
|
78
81
|
cleanEnum: () => cleanEnum,
|
|
79
82
|
cleanRegex: () => cleanRegex,
|
|
80
83
|
clone: () => clone,
|
|
@@ -213,10 +216,14 @@ function randomString(length = 10) {
|
|
|
213
216
|
function esc(str) {
|
|
214
217
|
return JSON.stringify(str);
|
|
215
218
|
}
|
|
219
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
216
220
|
function isObject(data) {
|
|
217
221
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
218
222
|
}
|
|
219
223
|
const allowsEval = cached(() => {
|
|
224
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
220
227
|
try {
|
|
221
228
|
const F = Function;
|
|
222
229
|
new F("");
|
|
@@ -225,9 +232,6 @@ const allowsEval = cached(() => {
|
|
|
225
232
|
return false;
|
|
226
233
|
}
|
|
227
234
|
});
|
|
228
|
-
function _isObject(o) {
|
|
229
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
230
|
-
}
|
|
231
235
|
function isPlainObject(o) {
|
|
232
236
|
if (isObject(o) === false) return false;
|
|
233
237
|
const ctor = o.constructor;
|
|
@@ -407,6 +411,9 @@ function omit(schema, mask) {
|
|
|
407
411
|
});
|
|
408
412
|
}
|
|
409
413
|
function extend(schema, shape) {
|
|
414
|
+
if (!isPlainObject(shape)) {
|
|
415
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
416
|
+
}
|
|
410
417
|
const def = {
|
|
411
418
|
...schema._zod.def,
|
|
412
419
|
get shape() {
|
|
@@ -494,7 +501,7 @@ function required(Class$1, schema, mask) {
|
|
|
494
501
|
}
|
|
495
502
|
function aborted(x, startIndex = 0) {
|
|
496
503
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
497
|
-
if (x.issues[i]
|
|
504
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
498
505
|
}
|
|
499
506
|
return false;
|
|
500
507
|
}
|
|
@@ -558,7 +565,7 @@ var Class = class {
|
|
|
558
565
|
};
|
|
559
566
|
|
|
560
567
|
//#endregion
|
|
561
|
-
//#region ../../node_modules/zod/
|
|
568
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
562
569
|
const initializer$1 = (inst, def) => {
|
|
563
570
|
inst.name = "$ZodError";
|
|
564
571
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -575,13 +582,17 @@ const initializer$1 = (inst, def) => {
|
|
|
575
582
|
},
|
|
576
583
|
enumerable: true
|
|
577
584
|
});
|
|
585
|
+
Object.defineProperty(inst, "toString", {
|
|
586
|
+
value: () => inst.message,
|
|
587
|
+
enumerable: false
|
|
588
|
+
});
|
|
578
589
|
};
|
|
579
590
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
580
591
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
581
|
-
function flattenError(error$
|
|
592
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
582
593
|
const fieldErrors = {};
|
|
583
594
|
const formErrors = [];
|
|
584
|
-
for (const sub of error$
|
|
595
|
+
for (const sub of error$39.issues) {
|
|
585
596
|
if (sub.path.length > 0) {
|
|
586
597
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
587
598
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -594,13 +605,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
594
605
|
fieldErrors
|
|
595
606
|
};
|
|
596
607
|
}
|
|
597
|
-
function formatError(error$
|
|
608
|
+
function formatError(error$39, _mapper) {
|
|
598
609
|
const mapper = _mapper || function(issue$1) {
|
|
599
610
|
return issue$1.message;
|
|
600
611
|
};
|
|
601
612
|
const fieldErrors = { _errors: [] };
|
|
602
|
-
const processError = (error$
|
|
603
|
-
for (const issue$1 of error$
|
|
613
|
+
const processError = (error$40) => {
|
|
614
|
+
for (const issue$1 of error$40.issues) {
|
|
604
615
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
605
616
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
606
617
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -627,17 +638,17 @@ function formatError(error$37, _mapper) {
|
|
|
627
638
|
}
|
|
628
639
|
}
|
|
629
640
|
};
|
|
630
|
-
processError(error$
|
|
641
|
+
processError(error$39);
|
|
631
642
|
return fieldErrors;
|
|
632
643
|
}
|
|
633
|
-
function treeifyError(error$
|
|
644
|
+
function treeifyError(error$39, _mapper) {
|
|
634
645
|
const mapper = _mapper || function(issue$1) {
|
|
635
646
|
return issue$1.message;
|
|
636
647
|
};
|
|
637
648
|
const result = { errors: [] };
|
|
638
|
-
const processError = (error$
|
|
649
|
+
const processError = (error$40, path = []) => {
|
|
639
650
|
var _a, _b;
|
|
640
|
-
for (const issue$1 of error$
|
|
651
|
+
for (const issue$1 of error$40.issues) {
|
|
641
652
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
642
653
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
643
654
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -672,7 +683,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
672
683
|
}
|
|
673
684
|
}
|
|
674
685
|
};
|
|
675
|
-
processError(error$
|
|
686
|
+
processError(error$39);
|
|
676
687
|
return result;
|
|
677
688
|
}
|
|
678
689
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -720,9 +731,9 @@ function toDotPath(path) {
|
|
|
720
731
|
}
|
|
721
732
|
return segs.join("");
|
|
722
733
|
}
|
|
723
|
-
function prettifyError(error$
|
|
734
|
+
function prettifyError(error$39) {
|
|
724
735
|
const lines = [];
|
|
725
|
-
const issues = [...error$
|
|
736
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
726
737
|
for (const issue$1 of issues) {
|
|
727
738
|
lines.push(`✖ ${issue$1.message}`);
|
|
728
739
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -731,7 +742,7 @@ function prettifyError(error$37) {
|
|
|
731
742
|
}
|
|
732
743
|
|
|
733
744
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/zod/
|
|
745
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
735
746
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
736
747
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
737
748
|
const result = schema._zod.run({
|
|
@@ -743,7 +754,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
743
754
|
}
|
|
744
755
|
if (result.issues.length) {
|
|
745
756
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
746
|
-
|
|
757
|
+
captureStackTrace(e, _params?.callee);
|
|
747
758
|
throw e;
|
|
748
759
|
}
|
|
749
760
|
return result.value;
|
|
@@ -758,7 +769,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
758
769
|
if (result instanceof Promise) result = await result;
|
|
759
770
|
if (result.issues.length) {
|
|
760
771
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
761
|
-
|
|
772
|
+
captureStackTrace(e, params?.callee);
|
|
762
773
|
throw e;
|
|
763
774
|
}
|
|
764
775
|
return result.value;
|
|
@@ -803,10 +814,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
803
814
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
804
815
|
|
|
805
816
|
//#endregion
|
|
806
|
-
//#region ../../node_modules/zod/
|
|
817
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
807
818
|
var regexes_exports = {};
|
|
808
819
|
__export(regexes_exports, {
|
|
809
|
-
_emoji: () => _emoji$1,
|
|
810
820
|
base64: () => base64$1,
|
|
811
821
|
base64url: () => base64url$1,
|
|
812
822
|
bigint: () => bigint$2,
|
|
@@ -892,27 +902,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
892
902
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
893
903
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
894
904
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
895
|
-
const dateSource = `((
|
|
905
|
+
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])))`;
|
|
896
906
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
897
907
|
function timeSource(args) {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
901
|
-
} else if (args.precision == null) {
|
|
902
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
903
|
-
}
|
|
908
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
909
|
+
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+)?)?`;
|
|
904
910
|
return regex;
|
|
905
911
|
}
|
|
906
912
|
function time$1(args) {
|
|
907
913
|
return new RegExp(`^${timeSource(args)}$`);
|
|
908
914
|
}
|
|
909
915
|
function datetime$1(args) {
|
|
910
|
-
|
|
911
|
-
const opts = [];
|
|
912
|
-
|
|
913
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
914
|
-
|
|
915
|
-
return new RegExp(`^${
|
|
916
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
917
|
+
const opts = ["Z"];
|
|
918
|
+
if (args.local) opts.push("");
|
|
919
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
920
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
921
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
916
922
|
}
|
|
917
923
|
const string$2 = (params) => {
|
|
918
924
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -928,7 +934,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
928
934
|
const uppercase = /^[^a-z]*$/;
|
|
929
935
|
|
|
930
936
|
//#endregion
|
|
931
|
-
//#region ../../node_modules/zod/
|
|
937
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
932
938
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
933
939
|
var _a;
|
|
934
940
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1119,11 +1125,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1119
1125
|
};
|
|
1120
1126
|
});
|
|
1121
1127
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1128
|
+
var _a;
|
|
1122
1129
|
$ZodCheck.init(inst, def);
|
|
1123
|
-
inst._zod.when = (payload) => {
|
|
1130
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1124
1131
|
const val = payload.value;
|
|
1125
1132
|
return !nullish$1(val) && val.size !== undefined;
|
|
1126
|
-
};
|
|
1133
|
+
});
|
|
1127
1134
|
inst._zod.onattach.push((inst$1) => {
|
|
1128
1135
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1129
1136
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1143,11 +1150,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1143
1150
|
};
|
|
1144
1151
|
});
|
|
1145
1152
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1153
|
+
var _a;
|
|
1146
1154
|
$ZodCheck.init(inst, def);
|
|
1147
|
-
inst._zod.when = (payload) => {
|
|
1155
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1148
1156
|
const val = payload.value;
|
|
1149
1157
|
return !nullish$1(val) && val.size !== undefined;
|
|
1150
|
-
};
|
|
1158
|
+
});
|
|
1151
1159
|
inst._zod.onattach.push((inst$1) => {
|
|
1152
1160
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1153
1161
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1167,11 +1175,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1167
1175
|
};
|
|
1168
1176
|
});
|
|
1169
1177
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1178
|
+
var _a;
|
|
1170
1179
|
$ZodCheck.init(inst, def);
|
|
1171
|
-
inst._zod.when = (payload) => {
|
|
1180
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1172
1181
|
const val = payload.value;
|
|
1173
1182
|
return !nullish$1(val) && val.size !== undefined;
|
|
1174
|
-
};
|
|
1183
|
+
});
|
|
1175
1184
|
inst._zod.onattach.push((inst$1) => {
|
|
1176
1185
|
const bag = inst$1._zod.bag;
|
|
1177
1186
|
bag.minimum = def.size;
|
|
@@ -1192,6 +1201,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1192
1201
|
code: "too_small",
|
|
1193
1202
|
minimum: def.size
|
|
1194
1203
|
},
|
|
1204
|
+
inclusive: true,
|
|
1205
|
+
exact: true,
|
|
1195
1206
|
input: payload.value,
|
|
1196
1207
|
inst,
|
|
1197
1208
|
continue: !def.abort
|
|
@@ -1199,11 +1210,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1199
1210
|
};
|
|
1200
1211
|
});
|
|
1201
1212
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1213
|
+
var _a;
|
|
1202
1214
|
$ZodCheck.init(inst, def);
|
|
1203
|
-
inst._zod.when = (payload) => {
|
|
1215
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1204
1216
|
const val = payload.value;
|
|
1205
1217
|
return !nullish$1(val) && val.length !== undefined;
|
|
1206
|
-
};
|
|
1218
|
+
});
|
|
1207
1219
|
inst._zod.onattach.push((inst$1) => {
|
|
1208
1220
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1209
1221
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1225,11 +1237,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1225
1237
|
};
|
|
1226
1238
|
});
|
|
1227
1239
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1240
|
+
var _a;
|
|
1228
1241
|
$ZodCheck.init(inst, def);
|
|
1229
|
-
inst._zod.when = (payload) => {
|
|
1242
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1230
1243
|
const val = payload.value;
|
|
1231
1244
|
return !nullish$1(val) && val.length !== undefined;
|
|
1232
|
-
};
|
|
1245
|
+
});
|
|
1233
1246
|
inst._zod.onattach.push((inst$1) => {
|
|
1234
1247
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1235
1248
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1251,11 +1264,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1251
1264
|
};
|
|
1252
1265
|
});
|
|
1253
1266
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1267
|
+
var _a;
|
|
1254
1268
|
$ZodCheck.init(inst, def);
|
|
1255
|
-
inst._zod.when = (payload) => {
|
|
1269
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1256
1270
|
const val = payload.value;
|
|
1257
1271
|
return !nullish$1(val) && val.length !== undefined;
|
|
1258
|
-
};
|
|
1272
|
+
});
|
|
1259
1273
|
inst._zod.onattach.push((inst$1) => {
|
|
1260
1274
|
const bag = inst$1._zod.bag;
|
|
1261
1275
|
bag.minimum = def.length;
|
|
@@ -1277,6 +1291,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1277
1291
|
code: "too_small",
|
|
1278
1292
|
minimum: def.length
|
|
1279
1293
|
},
|
|
1294
|
+
inclusive: true,
|
|
1295
|
+
exact: true,
|
|
1280
1296
|
input: payload.value,
|
|
1281
1297
|
inst,
|
|
1282
1298
|
continue: !def.abort
|
|
@@ -1284,7 +1300,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1284
1300
|
};
|
|
1285
1301
|
});
|
|
1286
1302
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1287
|
-
var _a;
|
|
1303
|
+
var _a, _b;
|
|
1288
1304
|
$ZodCheck.init(inst, def);
|
|
1289
1305
|
inst._zod.onattach.push((inst$1) => {
|
|
1290
1306
|
const bag = inst$1._zod.bag;
|
|
@@ -1294,8 +1310,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1294
1310
|
bag.patterns.add(def.pattern);
|
|
1295
1311
|
}
|
|
1296
1312
|
});
|
|
1297
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1298
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1313
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1299
1314
|
def.pattern.lastIndex = 0;
|
|
1300
1315
|
if (def.pattern.test(payload.value)) return;
|
|
1301
1316
|
payload.issues.push({
|
|
@@ -1308,6 +1323,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1308
1323
|
continue: !def.abort
|
|
1309
1324
|
});
|
|
1310
1325
|
});
|
|
1326
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1311
1327
|
});
|
|
1312
1328
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1313
1329
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1431,7 +1447,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1431
1447
|
code: "invalid_value",
|
|
1432
1448
|
values: def.mime,
|
|
1433
1449
|
input: payload.value.type,
|
|
1434
|
-
path: ["type"],
|
|
1435
1450
|
inst
|
|
1436
1451
|
});
|
|
1437
1452
|
};
|
|
@@ -1444,7 +1459,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1444
1459
|
});
|
|
1445
1460
|
|
|
1446
1461
|
//#endregion
|
|
1447
|
-
//#region ../../node_modules/zod/
|
|
1462
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1448
1463
|
var Doc = class {
|
|
1449
1464
|
constructor(args = []) {
|
|
1450
1465
|
this.content = [];
|
|
@@ -1480,19 +1495,18 @@ var Doc = class {
|
|
|
1480
1495
|
};
|
|
1481
1496
|
|
|
1482
1497
|
//#endregion
|
|
1483
|
-
//#region ../../node_modules/zod/
|
|
1498
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1484
1499
|
const version = {
|
|
1485
1500
|
major: 4,
|
|
1486
1501
|
minor: 0,
|
|
1487
|
-
patch:
|
|
1502
|
+
patch: 2
|
|
1488
1503
|
};
|
|
1489
1504
|
|
|
1490
1505
|
//#endregion
|
|
1491
|
-
//#region ../../node_modules/zod/
|
|
1506
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1492
1507
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1493
1508
|
var _a;
|
|
1494
1509
|
inst ?? (inst = {});
|
|
1495
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1496
1510
|
inst._zod.def = def;
|
|
1497
1511
|
inst._zod.bag = inst._zod.bag || {};
|
|
1498
1512
|
inst._zod.version = version;
|
|
@@ -1515,13 +1529,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1515
1529
|
let isAborted = aborted(payload);
|
|
1516
1530
|
let asyncResult;
|
|
1517
1531
|
for (const ch of checks$1) {
|
|
1518
|
-
if (ch._zod.when) {
|
|
1519
|
-
const shouldRun = ch._zod.when(payload);
|
|
1532
|
+
if (ch._zod.def.when) {
|
|
1533
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1520
1534
|
if (!shouldRun) continue;
|
|
1521
|
-
} else {
|
|
1522
|
-
|
|
1523
|
-
continue;
|
|
1524
|
-
}
|
|
1535
|
+
} else if (isAborted) {
|
|
1536
|
+
continue;
|
|
1525
1537
|
}
|
|
1526
1538
|
const currLen = payload.issues.length;
|
|
1527
1539
|
const _ = ch._zod.check(payload);
|
|
@@ -1621,7 +1633,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1621
1633
|
$ZodStringFormat.init(inst, def);
|
|
1622
1634
|
inst._zod.check = (payload) => {
|
|
1623
1635
|
try {
|
|
1624
|
-
const
|
|
1636
|
+
const orig = payload.value;
|
|
1637
|
+
const url$1 = new URL(orig);
|
|
1638
|
+
const href = url$1.href;
|
|
1625
1639
|
if (def.hostname) {
|
|
1626
1640
|
def.hostname.lastIndex = 0;
|
|
1627
1641
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1650,6 +1664,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1650
1664
|
});
|
|
1651
1665
|
}
|
|
1652
1666
|
}
|
|
1667
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1668
|
+
payload.value = href.slice(0, -1);
|
|
1669
|
+
} else {
|
|
1670
|
+
payload.value = href;
|
|
1671
|
+
}
|
|
1653
1672
|
return;
|
|
1654
1673
|
} catch (_) {
|
|
1655
1674
|
payload.issues.push({
|
|
@@ -1820,6 +1839,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1820
1839
|
const tokensParts = token.split(".");
|
|
1821
1840
|
if (tokensParts.length !== 3) return false;
|
|
1822
1841
|
const [header] = tokensParts;
|
|
1842
|
+
if (!header) return false;
|
|
1823
1843
|
const parsedHeader = JSON.parse(atob(header));
|
|
1824
1844
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1825
1845
|
if (!parsedHeader.alg) return false;
|
|
@@ -1842,6 +1862,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1842
1862
|
});
|
|
1843
1863
|
};
|
|
1844
1864
|
});
|
|
1865
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1866
|
+
$ZodStringFormat.init(inst, def);
|
|
1867
|
+
inst._zod.check = (payload) => {
|
|
1868
|
+
if (def.fn(payload.value)) return;
|
|
1869
|
+
payload.issues.push({
|
|
1870
|
+
code: "invalid_format",
|
|
1871
|
+
format: def.format,
|
|
1872
|
+
input: payload.value,
|
|
1873
|
+
inst,
|
|
1874
|
+
continue: !def.abort
|
|
1875
|
+
});
|
|
1876
|
+
};
|
|
1877
|
+
});
|
|
1845
1878
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1846
1879
|
$ZodType.init(inst, def);
|
|
1847
1880
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -1893,12 +1926,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
1893
1926
|
if (def.coerce) try {
|
|
1894
1927
|
payload.value = BigInt(payload.value);
|
|
1895
1928
|
} catch (_) {}
|
|
1896
|
-
|
|
1897
|
-
if (typeof input === "bigint") return payload;
|
|
1929
|
+
if (typeof payload.value === "bigint") return payload;
|
|
1898
1930
|
payload.issues.push({
|
|
1899
1931
|
expected: "bigint",
|
|
1900
1932
|
code: "invalid_type",
|
|
1901
|
-
input,
|
|
1933
|
+
input: payload.value,
|
|
1902
1934
|
inst
|
|
1903
1935
|
});
|
|
1904
1936
|
return payload;
|
|
@@ -1911,7 +1943,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
1911
1943
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
1912
1944
|
$ZodType.init(inst, def);
|
|
1913
1945
|
inst._zod.parse = (payload, _ctx) => {
|
|
1914
|
-
const
|
|
1946
|
+
const input = payload.value;
|
|
1915
1947
|
if (typeof input === "symbol") return payload;
|
|
1916
1948
|
payload.issues.push({
|
|
1917
1949
|
expected: "symbol",
|
|
@@ -1926,8 +1958,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
1926
1958
|
$ZodType.init(inst, def);
|
|
1927
1959
|
inst._zod.pattern = _undefined$2;
|
|
1928
1960
|
inst._zod.values = new Set([undefined]);
|
|
1961
|
+
inst._zod.optin = "optional";
|
|
1962
|
+
inst._zod.optout = "optional";
|
|
1929
1963
|
inst._zod.parse = (payload, _ctx) => {
|
|
1930
|
-
const
|
|
1964
|
+
const input = payload.value;
|
|
1931
1965
|
if (typeof input === "undefined") return payload;
|
|
1932
1966
|
payload.issues.push({
|
|
1933
1967
|
expected: "undefined",
|
|
@@ -1943,7 +1977,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1943
1977
|
inst._zod.pattern = _null$2;
|
|
1944
1978
|
inst._zod.values = new Set([null]);
|
|
1945
1979
|
inst._zod.parse = (payload, _ctx) => {
|
|
1946
|
-
const
|
|
1980
|
+
const input = payload.value;
|
|
1947
1981
|
if (input === null) return payload;
|
|
1948
1982
|
payload.issues.push({
|
|
1949
1983
|
expected: "null",
|
|
@@ -1977,7 +2011,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
1977
2011
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
1978
2012
|
$ZodType.init(inst, def);
|
|
1979
2013
|
inst._zod.parse = (payload, _ctx) => {
|
|
1980
|
-
const
|
|
2014
|
+
const input = payload.value;
|
|
1981
2015
|
if (typeof input === "undefined") return payload;
|
|
1982
2016
|
payload.issues.push({
|
|
1983
2017
|
expected: "void",
|
|
@@ -2108,19 +2142,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2108
2142
|
"payload",
|
|
2109
2143
|
"ctx"
|
|
2110
2144
|
]);
|
|
2111
|
-
const
|
|
2145
|
+
const normalized = _normalized.value;
|
|
2112
2146
|
const parseStr = (key) => {
|
|
2113
2147
|
const k = esc(key);
|
|
2114
2148
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2115
2149
|
};
|
|
2116
2150
|
doc.write(`const input = payload.value;`);
|
|
2117
2151
|
const ids = Object.create(null);
|
|
2118
|
-
|
|
2119
|
-
|
|
2152
|
+
let counter = 0;
|
|
2153
|
+
for (const key of normalized.keys) {
|
|
2154
|
+
ids[key] = `key_${counter++}`;
|
|
2120
2155
|
}
|
|
2121
2156
|
doc.write(`const newResult = {}`);
|
|
2122
|
-
for (const key of keys) {
|
|
2123
|
-
if (optionalKeys
|
|
2157
|
+
for (const key of normalized.keys) {
|
|
2158
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2124
2159
|
const id = ids[key];
|
|
2125
2160
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2126
2161
|
const k = esc(key);
|
|
@@ -2165,7 +2200,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2165
2200
|
const jit = !globalConfig.jitless;
|
|
2166
2201
|
const allowsEval$1 = allowsEval;
|
|
2167
2202
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2168
|
-
const
|
|
2203
|
+
const catchall = def.catchall;
|
|
2169
2204
|
let value;
|
|
2170
2205
|
inst._zod.parse = (payload, ctx) => {
|
|
2171
2206
|
value ?? (value = _normalized.value);
|
|
@@ -2195,12 +2230,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2195
2230
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2196
2231
|
if (r instanceof Promise) {
|
|
2197
2232
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2233
|
+
} else if (isOptional) {
|
|
2234
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2198
2235
|
} else {
|
|
2199
|
-
|
|
2200
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2201
|
-
} else {
|
|
2202
|
-
handleObjectResult(r, payload, key);
|
|
2203
|
-
}
|
|
2236
|
+
handleObjectResult(r, payload, key);
|
|
2204
2237
|
}
|
|
2205
2238
|
}
|
|
2206
2239
|
}
|
|
@@ -2258,6 +2291,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2258
2291
|
}
|
|
2259
2292
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2260
2293
|
$ZodType.init(inst, def);
|
|
2294
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2295
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2261
2296
|
defineLazy(inst._zod, "values", () => {
|
|
2262
2297
|
if (def.options.every((o) => o._zod.values)) {
|
|
2263
2298
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2357,7 +2392,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2357
2392
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2358
2393
|
$ZodType.init(inst, def);
|
|
2359
2394
|
inst._zod.parse = (payload, ctx) => {
|
|
2360
|
-
const
|
|
2395
|
+
const input = payload.value;
|
|
2361
2396
|
const left = def.left._zod.run({
|
|
2362
2397
|
value: input,
|
|
2363
2398
|
issues: []
|
|
@@ -2814,6 +2849,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2814
2849
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2815
2850
|
});
|
|
2816
2851
|
inst._zod.parse = (payload, ctx) => {
|
|
2852
|
+
if (def.innerType._zod.optin === "optional") {
|
|
2853
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2854
|
+
}
|
|
2817
2855
|
if (payload.value === undefined) {
|
|
2818
2856
|
return payload;
|
|
2819
2857
|
}
|
|
@@ -2913,7 +2951,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
2913
2951
|
});
|
|
2914
2952
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2915
2953
|
$ZodType.init(inst, def);
|
|
2916
|
-
|
|
2954
|
+
inst._zod.optin = "optional";
|
|
2917
2955
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2918
2956
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2919
2957
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2984,6 +3022,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
2984
3022
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
2985
3023
|
$ZodType.init(inst, def);
|
|
2986
3024
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3025
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2987
3026
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2988
3027
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2989
3028
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3034,7 +3073,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3034
3073
|
input: payload.value,
|
|
3035
3074
|
inst,
|
|
3036
3075
|
code: "invalid_format",
|
|
3037
|
-
format: "template_literal",
|
|
3076
|
+
format: def.format ?? "template_literal",
|
|
3038
3077
|
pattern: inst._zod.pattern.source
|
|
3039
3078
|
});
|
|
3040
3079
|
return payload;
|
|
@@ -3094,8 +3133,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3094
3133
|
}
|
|
3095
3134
|
|
|
3096
3135
|
//#endregion
|
|
3097
|
-
//#region ../../node_modules/zod/
|
|
3098
|
-
const error$
|
|
3136
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3137
|
+
const error$38 = () => {
|
|
3099
3138
|
const Sizable = {
|
|
3100
3139
|
string: {
|
|
3101
3140
|
unit: "حرف",
|
|
@@ -3117,7 +3156,7 @@ const error$36 = () => {
|
|
|
3117
3156
|
function getSizing(origin) {
|
|
3118
3157
|
return Sizable[origin] ?? null;
|
|
3119
3158
|
}
|
|
3120
|
-
const parsedType$
|
|
3159
|
+
const parsedType$3 = (data) => {
|
|
3121
3160
|
const t = typeof data;
|
|
3122
3161
|
switch (t) {
|
|
3123
3162
|
case "number": {
|
|
@@ -3169,7 +3208,7 @@ const error$36 = () => {
|
|
|
3169
3208
|
};
|
|
3170
3209
|
return (issue$1) => {
|
|
3171
3210
|
switch (issue$1.code) {
|
|
3172
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3211
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3173
3212
|
case "invalid_value":
|
|
3174
3213
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3175
3214
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3205,12 +3244,12 @@ const error$36 = () => {
|
|
|
3205
3244
|
};
|
|
3206
3245
|
};
|
|
3207
3246
|
function ar_default() {
|
|
3208
|
-
return { localeError: error$
|
|
3247
|
+
return { localeError: error$38() };
|
|
3209
3248
|
}
|
|
3210
3249
|
|
|
3211
3250
|
//#endregion
|
|
3212
|
-
//#region ../../node_modules/zod/
|
|
3213
|
-
const error$
|
|
3251
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3252
|
+
const error$37 = () => {
|
|
3214
3253
|
const Sizable = {
|
|
3215
3254
|
string: {
|
|
3216
3255
|
unit: "simvol",
|
|
@@ -3232,7 +3271,7 @@ const error$35 = () => {
|
|
|
3232
3271
|
function getSizing(origin) {
|
|
3233
3272
|
return Sizable[origin] ?? null;
|
|
3234
3273
|
}
|
|
3235
|
-
const parsedType$
|
|
3274
|
+
const parsedType$3 = (data) => {
|
|
3236
3275
|
const t = typeof data;
|
|
3237
3276
|
switch (t) {
|
|
3238
3277
|
case "number": {
|
|
@@ -3284,7 +3323,7 @@ const error$35 = () => {
|
|
|
3284
3323
|
};
|
|
3285
3324
|
return (issue$1) => {
|
|
3286
3325
|
switch (issue$1.code) {
|
|
3287
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3326
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3288
3327
|
case "invalid_value":
|
|
3289
3328
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3290
3329
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3318,11 +3357,11 @@ const error$35 = () => {
|
|
|
3318
3357
|
};
|
|
3319
3358
|
};
|
|
3320
3359
|
function az_default() {
|
|
3321
|
-
return { localeError: error$
|
|
3360
|
+
return { localeError: error$37() };
|
|
3322
3361
|
}
|
|
3323
3362
|
|
|
3324
3363
|
//#endregion
|
|
3325
|
-
//#region ../../node_modules/zod/
|
|
3364
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3326
3365
|
function getBelarusianPlural(count, one, few, many) {
|
|
3327
3366
|
const absCount = Math.abs(count);
|
|
3328
3367
|
const lastDigit = absCount % 10;
|
|
@@ -3338,7 +3377,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3338
3377
|
}
|
|
3339
3378
|
return many;
|
|
3340
3379
|
}
|
|
3341
|
-
const error$
|
|
3380
|
+
const error$36 = () => {
|
|
3342
3381
|
const Sizable = {
|
|
3343
3382
|
string: {
|
|
3344
3383
|
unit: {
|
|
@@ -3376,7 +3415,7 @@ const error$34 = () => {
|
|
|
3376
3415
|
function getSizing(origin) {
|
|
3377
3416
|
return Sizable[origin] ?? null;
|
|
3378
3417
|
}
|
|
3379
|
-
const parsedType$
|
|
3418
|
+
const parsedType$3 = (data) => {
|
|
3380
3419
|
const t = typeof data;
|
|
3381
3420
|
switch (t) {
|
|
3382
3421
|
case "number": {
|
|
@@ -3428,7 +3467,7 @@ const error$34 = () => {
|
|
|
3428
3467
|
};
|
|
3429
3468
|
return (issue$1) => {
|
|
3430
3469
|
switch (issue$1.code) {
|
|
3431
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3470
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3432
3471
|
case "invalid_value":
|
|
3433
3472
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3434
3473
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3470,12 +3509,12 @@ const error$34 = () => {
|
|
|
3470
3509
|
};
|
|
3471
3510
|
};
|
|
3472
3511
|
function be_default() {
|
|
3473
|
-
return { localeError: error$
|
|
3512
|
+
return { localeError: error$36() };
|
|
3474
3513
|
}
|
|
3475
3514
|
|
|
3476
3515
|
//#endregion
|
|
3477
|
-
//#region ../../node_modules/zod/
|
|
3478
|
-
const error$
|
|
3516
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3517
|
+
const error$35 = () => {
|
|
3479
3518
|
const Sizable = {
|
|
3480
3519
|
string: {
|
|
3481
3520
|
unit: "caràcters",
|
|
@@ -3497,7 +3536,7 @@ const error$33 = () => {
|
|
|
3497
3536
|
function getSizing(origin) {
|
|
3498
3537
|
return Sizable[origin] ?? null;
|
|
3499
3538
|
}
|
|
3500
|
-
const parsedType$
|
|
3539
|
+
const parsedType$3 = (data) => {
|
|
3501
3540
|
const t = typeof data;
|
|
3502
3541
|
switch (t) {
|
|
3503
3542
|
case "number": {
|
|
@@ -3549,7 +3588,7 @@ const error$33 = () => {
|
|
|
3549
3588
|
};
|
|
3550
3589
|
return (issue$1) => {
|
|
3551
3590
|
switch (issue$1.code) {
|
|
3552
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3591
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
3553
3592
|
case "invalid_value":
|
|
3554
3593
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3555
3594
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3587,12 +3626,12 @@ const error$33 = () => {
|
|
|
3587
3626
|
};
|
|
3588
3627
|
};
|
|
3589
3628
|
function ca_default() {
|
|
3590
|
-
return { localeError: error$
|
|
3629
|
+
return { localeError: error$35() };
|
|
3591
3630
|
}
|
|
3592
3631
|
|
|
3593
3632
|
//#endregion
|
|
3594
|
-
//#region ../../node_modules/zod/
|
|
3595
|
-
const error$
|
|
3633
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3634
|
+
const error$34 = () => {
|
|
3596
3635
|
const Sizable = {
|
|
3597
3636
|
string: {
|
|
3598
3637
|
unit: "znaků",
|
|
@@ -3614,7 +3653,7 @@ const error$32 = () => {
|
|
|
3614
3653
|
function getSizing(origin) {
|
|
3615
3654
|
return Sizable[origin] ?? null;
|
|
3616
3655
|
}
|
|
3617
|
-
const parsedType$
|
|
3656
|
+
const parsedType$3 = (data) => {
|
|
3618
3657
|
const t = typeof data;
|
|
3619
3658
|
switch (t) {
|
|
3620
3659
|
case "number": {
|
|
@@ -3684,7 +3723,7 @@ const error$32 = () => {
|
|
|
3684
3723
|
};
|
|
3685
3724
|
return (issue$1) => {
|
|
3686
3725
|
switch (issue$1.code) {
|
|
3687
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3726
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
3688
3727
|
case "invalid_value":
|
|
3689
3728
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3690
3729
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3722,12 +3761,12 @@ const error$32 = () => {
|
|
|
3722
3761
|
};
|
|
3723
3762
|
};
|
|
3724
3763
|
function cs_default() {
|
|
3725
|
-
return { localeError: error$
|
|
3764
|
+
return { localeError: error$34() };
|
|
3726
3765
|
}
|
|
3727
3766
|
|
|
3728
3767
|
//#endregion
|
|
3729
|
-
//#region ../../node_modules/zod/
|
|
3730
|
-
const error$
|
|
3768
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3769
|
+
const error$33 = () => {
|
|
3731
3770
|
const Sizable = {
|
|
3732
3771
|
string: {
|
|
3733
3772
|
unit: "Zeichen",
|
|
@@ -3749,7 +3788,7 @@ const error$31 = () => {
|
|
|
3749
3788
|
function getSizing(origin) {
|
|
3750
3789
|
return Sizable[origin] ?? null;
|
|
3751
3790
|
}
|
|
3752
|
-
const parsedType$
|
|
3791
|
+
const parsedType$3 = (data) => {
|
|
3753
3792
|
const t = typeof data;
|
|
3754
3793
|
switch (t) {
|
|
3755
3794
|
case "number": {
|
|
@@ -3801,7 +3840,7 @@ const error$31 = () => {
|
|
|
3801
3840
|
};
|
|
3802
3841
|
return (issue$1) => {
|
|
3803
3842
|
switch (issue$1.code) {
|
|
3804
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3843
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
3805
3844
|
case "invalid_value":
|
|
3806
3845
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3807
3846
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3837,12 +3876,12 @@ const error$31 = () => {
|
|
|
3837
3876
|
};
|
|
3838
3877
|
};
|
|
3839
3878
|
function de_default() {
|
|
3840
|
-
return { localeError: error$
|
|
3879
|
+
return { localeError: error$33() };
|
|
3841
3880
|
}
|
|
3842
3881
|
|
|
3843
3882
|
//#endregion
|
|
3844
|
-
//#region ../../node_modules/zod/
|
|
3845
|
-
const parsedType$
|
|
3883
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3884
|
+
const parsedType$2 = (data) => {
|
|
3846
3885
|
const t = typeof data;
|
|
3847
3886
|
switch (t) {
|
|
3848
3887
|
case "number": {
|
|
@@ -3862,7 +3901,7 @@ const parsedType$1 = (data) => {
|
|
|
3862
3901
|
}
|
|
3863
3902
|
return t;
|
|
3864
3903
|
};
|
|
3865
|
-
const error$
|
|
3904
|
+
const error$32 = () => {
|
|
3866
3905
|
const Sizable = {
|
|
3867
3906
|
string: {
|
|
3868
3907
|
unit: "characters",
|
|
@@ -3916,7 +3955,7 @@ const error$30 = () => {
|
|
|
3916
3955
|
};
|
|
3917
3956
|
return (issue$1) => {
|
|
3918
3957
|
switch (issue$1.code) {
|
|
3919
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
3958
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
3920
3959
|
case "invalid_value":
|
|
3921
3960
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3922
3961
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3954,12 +3993,127 @@ const error$30 = () => {
|
|
|
3954
3993
|
};
|
|
3955
3994
|
};
|
|
3956
3995
|
function en_default() {
|
|
3957
|
-
return { localeError: error$
|
|
3996
|
+
return { localeError: error$32() };
|
|
3958
3997
|
}
|
|
3959
3998
|
|
|
3960
3999
|
//#endregion
|
|
3961
|
-
//#region ../../node_modules/zod/
|
|
3962
|
-
const
|
|
4000
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4001
|
+
const parsedType$1 = (data) => {
|
|
4002
|
+
const t = typeof data;
|
|
4003
|
+
switch (t) {
|
|
4004
|
+
case "number": {
|
|
4005
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4006
|
+
}
|
|
4007
|
+
case "object": {
|
|
4008
|
+
if (Array.isArray(data)) {
|
|
4009
|
+
return "tabelo";
|
|
4010
|
+
}
|
|
4011
|
+
if (data === null) {
|
|
4012
|
+
return "senvalora";
|
|
4013
|
+
}
|
|
4014
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4015
|
+
return data.constructor.name;
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
return t;
|
|
4020
|
+
};
|
|
4021
|
+
const error$31 = () => {
|
|
4022
|
+
const Sizable = {
|
|
4023
|
+
string: {
|
|
4024
|
+
unit: "karaktrojn",
|
|
4025
|
+
verb: "havi"
|
|
4026
|
+
},
|
|
4027
|
+
file: {
|
|
4028
|
+
unit: "bajtojn",
|
|
4029
|
+
verb: "havi"
|
|
4030
|
+
},
|
|
4031
|
+
array: {
|
|
4032
|
+
unit: "elementojn",
|
|
4033
|
+
verb: "havi"
|
|
4034
|
+
},
|
|
4035
|
+
set: {
|
|
4036
|
+
unit: "elementojn",
|
|
4037
|
+
verb: "havi"
|
|
4038
|
+
}
|
|
4039
|
+
};
|
|
4040
|
+
function getSizing(origin) {
|
|
4041
|
+
return Sizable[origin] ?? null;
|
|
4042
|
+
}
|
|
4043
|
+
const Nouns = {
|
|
4044
|
+
regex: "enigo",
|
|
4045
|
+
email: "retadreso",
|
|
4046
|
+
url: "URL",
|
|
4047
|
+
emoji: "emoĝio",
|
|
4048
|
+
uuid: "UUID",
|
|
4049
|
+
uuidv4: "UUIDv4",
|
|
4050
|
+
uuidv6: "UUIDv6",
|
|
4051
|
+
nanoid: "nanoid",
|
|
4052
|
+
guid: "GUID",
|
|
4053
|
+
cuid: "cuid",
|
|
4054
|
+
cuid2: "cuid2",
|
|
4055
|
+
ulid: "ULID",
|
|
4056
|
+
xid: "XID",
|
|
4057
|
+
ksuid: "KSUID",
|
|
4058
|
+
datetime: "ISO-datotempo",
|
|
4059
|
+
date: "ISO-dato",
|
|
4060
|
+
time: "ISO-tempo",
|
|
4061
|
+
duration: "ISO-daŭro",
|
|
4062
|
+
ipv4: "IPv4-adreso",
|
|
4063
|
+
ipv6: "IPv6-adreso",
|
|
4064
|
+
cidrv4: "IPv4-rango",
|
|
4065
|
+
cidrv6: "IPv6-rango",
|
|
4066
|
+
base64: "64-ume kodita karaktraro",
|
|
4067
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4068
|
+
json_string: "JSON-karaktraro",
|
|
4069
|
+
e164: "E.164-nombro",
|
|
4070
|
+
jwt: "JWT",
|
|
4071
|
+
template_literal: "enigo"
|
|
4072
|
+
};
|
|
4073
|
+
return (issue$1) => {
|
|
4074
|
+
switch (issue$1.code) {
|
|
4075
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4076
|
+
case "invalid_value":
|
|
4077
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4078
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4079
|
+
case "too_big": {
|
|
4080
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4081
|
+
const sizing = getSizing(issue$1.origin);
|
|
4082
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4083
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4084
|
+
}
|
|
4085
|
+
case "too_small": {
|
|
4086
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4087
|
+
const sizing = getSizing(issue$1.origin);
|
|
4088
|
+
if (sizing) {
|
|
4089
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4090
|
+
}
|
|
4091
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4092
|
+
}
|
|
4093
|
+
case "invalid_format": {
|
|
4094
|
+
const _issue = issue$1;
|
|
4095
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4096
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4097
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4098
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4099
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4100
|
+
}
|
|
4101
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4102
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4103
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4104
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4105
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4106
|
+
default: return `Nevalida enigo`;
|
|
4107
|
+
}
|
|
4108
|
+
};
|
|
4109
|
+
};
|
|
4110
|
+
function eo_default() {
|
|
4111
|
+
return { localeError: error$31() };
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
//#endregion
|
|
4115
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4116
|
+
const error$30 = () => {
|
|
3963
4117
|
const Sizable = {
|
|
3964
4118
|
string: {
|
|
3965
4119
|
unit: "caracteres",
|
|
@@ -3981,7 +4135,7 @@ const error$29 = () => {
|
|
|
3981
4135
|
function getSizing(origin) {
|
|
3982
4136
|
return Sizable[origin] ?? null;
|
|
3983
4137
|
}
|
|
3984
|
-
const parsedType$
|
|
4138
|
+
const parsedType$3 = (data) => {
|
|
3985
4139
|
const t = typeof data;
|
|
3986
4140
|
switch (t) {
|
|
3987
4141
|
case "number": {
|
|
@@ -4033,7 +4187,7 @@ const error$29 = () => {
|
|
|
4033
4187
|
};
|
|
4034
4188
|
return (issue$1) => {
|
|
4035
4189
|
switch (issue$1.code) {
|
|
4036
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4190
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4037
4191
|
case "invalid_value":
|
|
4038
4192
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4039
4193
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4069,12 +4223,12 @@ const error$29 = () => {
|
|
|
4069
4223
|
};
|
|
4070
4224
|
};
|
|
4071
4225
|
function es_default() {
|
|
4072
|
-
return { localeError: error$
|
|
4226
|
+
return { localeError: error$30() };
|
|
4073
4227
|
}
|
|
4074
4228
|
|
|
4075
4229
|
//#endregion
|
|
4076
|
-
//#region ../../node_modules/zod/
|
|
4077
|
-
const error$
|
|
4230
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4231
|
+
const error$29 = () => {
|
|
4078
4232
|
const Sizable = {
|
|
4079
4233
|
string: {
|
|
4080
4234
|
unit: "کاراکتر",
|
|
@@ -4096,7 +4250,7 @@ const error$28 = () => {
|
|
|
4096
4250
|
function getSizing(origin) {
|
|
4097
4251
|
return Sizable[origin] ?? null;
|
|
4098
4252
|
}
|
|
4099
|
-
const parsedType$
|
|
4253
|
+
const parsedType$3 = (data) => {
|
|
4100
4254
|
const t = typeof data;
|
|
4101
4255
|
switch (t) {
|
|
4102
4256
|
case "number": {
|
|
@@ -4148,7 +4302,7 @@ const error$28 = () => {
|
|
|
4148
4302
|
};
|
|
4149
4303
|
return (issue$1) => {
|
|
4150
4304
|
switch (issue$1.code) {
|
|
4151
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4305
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4152
4306
|
case "invalid_value":
|
|
4153
4307
|
if (issue$1.values.length === 1) {
|
|
4154
4308
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4196,12 +4350,12 @@ const error$28 = () => {
|
|
|
4196
4350
|
};
|
|
4197
4351
|
};
|
|
4198
4352
|
function fa_default() {
|
|
4199
|
-
return { localeError: error$
|
|
4353
|
+
return { localeError: error$29() };
|
|
4200
4354
|
}
|
|
4201
4355
|
|
|
4202
4356
|
//#endregion
|
|
4203
|
-
//#region ../../node_modules/zod/
|
|
4204
|
-
const error$
|
|
4357
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4358
|
+
const error$28 = () => {
|
|
4205
4359
|
const Sizable = {
|
|
4206
4360
|
string: {
|
|
4207
4361
|
unit: "merkkiä",
|
|
@@ -4239,7 +4393,7 @@ const error$27 = () => {
|
|
|
4239
4393
|
function getSizing(origin) {
|
|
4240
4394
|
return Sizable[origin] ?? null;
|
|
4241
4395
|
}
|
|
4242
|
-
const parsedType$
|
|
4396
|
+
const parsedType$3 = (data) => {
|
|
4243
4397
|
const t = typeof data;
|
|
4244
4398
|
switch (t) {
|
|
4245
4399
|
case "number": {
|
|
@@ -4291,7 +4445,7 @@ const error$27 = () => {
|
|
|
4291
4445
|
};
|
|
4292
4446
|
return (issue$1) => {
|
|
4293
4447
|
switch (issue$1.code) {
|
|
4294
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4448
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4295
4449
|
case "invalid_value":
|
|
4296
4450
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4297
4451
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4331,12 +4485,12 @@ const error$27 = () => {
|
|
|
4331
4485
|
};
|
|
4332
4486
|
};
|
|
4333
4487
|
function fi_default() {
|
|
4334
|
-
return { localeError: error$
|
|
4488
|
+
return { localeError: error$28() };
|
|
4335
4489
|
}
|
|
4336
4490
|
|
|
4337
4491
|
//#endregion
|
|
4338
|
-
//#region ../../node_modules/zod/
|
|
4339
|
-
const error$
|
|
4492
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4493
|
+
const error$27 = () => {
|
|
4340
4494
|
const Sizable = {
|
|
4341
4495
|
string: {
|
|
4342
4496
|
unit: "caractères",
|
|
@@ -4358,7 +4512,7 @@ const error$26 = () => {
|
|
|
4358
4512
|
function getSizing(origin) {
|
|
4359
4513
|
return Sizable[origin] ?? null;
|
|
4360
4514
|
}
|
|
4361
|
-
const parsedType$
|
|
4515
|
+
const parsedType$3 = (data) => {
|
|
4362
4516
|
const t = typeof data;
|
|
4363
4517
|
switch (t) {
|
|
4364
4518
|
case "number": {
|
|
@@ -4410,7 +4564,7 @@ const error$26 = () => {
|
|
|
4410
4564
|
};
|
|
4411
4565
|
return (issue$1) => {
|
|
4412
4566
|
switch (issue$1.code) {
|
|
4413
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4567
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4414
4568
|
case "invalid_value":
|
|
4415
4569
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4416
4570
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4446,12 +4600,12 @@ const error$26 = () => {
|
|
|
4446
4600
|
};
|
|
4447
4601
|
};
|
|
4448
4602
|
function fr_default() {
|
|
4449
|
-
return { localeError: error$
|
|
4603
|
+
return { localeError: error$27() };
|
|
4450
4604
|
}
|
|
4451
4605
|
|
|
4452
4606
|
//#endregion
|
|
4453
|
-
//#region ../../node_modules/zod/
|
|
4454
|
-
const error$
|
|
4607
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4608
|
+
const error$26 = () => {
|
|
4455
4609
|
const Sizable = {
|
|
4456
4610
|
string: {
|
|
4457
4611
|
unit: "caractères",
|
|
@@ -4473,7 +4627,7 @@ const error$25 = () => {
|
|
|
4473
4627
|
function getSizing(origin) {
|
|
4474
4628
|
return Sizable[origin] ?? null;
|
|
4475
4629
|
}
|
|
4476
|
-
const parsedType$
|
|
4630
|
+
const parsedType$3 = (data) => {
|
|
4477
4631
|
const t = typeof data;
|
|
4478
4632
|
switch (t) {
|
|
4479
4633
|
case "number": {
|
|
@@ -4525,7 +4679,7 @@ const error$25 = () => {
|
|
|
4525
4679
|
};
|
|
4526
4680
|
return (issue$1) => {
|
|
4527
4681
|
switch (issue$1.code) {
|
|
4528
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4682
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
4529
4683
|
case "invalid_value":
|
|
4530
4684
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4531
4685
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4563,12 +4717,12 @@ const error$25 = () => {
|
|
|
4563
4717
|
};
|
|
4564
4718
|
};
|
|
4565
4719
|
function fr_CA_default() {
|
|
4566
|
-
return { localeError: error$
|
|
4720
|
+
return { localeError: error$26() };
|
|
4567
4721
|
}
|
|
4568
4722
|
|
|
4569
4723
|
//#endregion
|
|
4570
|
-
//#region ../../node_modules/zod/
|
|
4571
|
-
const error$
|
|
4724
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4725
|
+
const error$25 = () => {
|
|
4572
4726
|
const Sizable = {
|
|
4573
4727
|
string: {
|
|
4574
4728
|
unit: "אותיות",
|
|
@@ -4590,7 +4744,7 @@ const error$24 = () => {
|
|
|
4590
4744
|
function getSizing(origin) {
|
|
4591
4745
|
return Sizable[origin] ?? null;
|
|
4592
4746
|
}
|
|
4593
|
-
const parsedType$
|
|
4747
|
+
const parsedType$3 = (data) => {
|
|
4594
4748
|
const t = typeof data;
|
|
4595
4749
|
switch (t) {
|
|
4596
4750
|
case "number": {
|
|
@@ -4642,7 +4796,7 @@ const error$24 = () => {
|
|
|
4642
4796
|
};
|
|
4643
4797
|
return (issue$1) => {
|
|
4644
4798
|
switch (issue$1.code) {
|
|
4645
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4799
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
4646
4800
|
case "invalid_value":
|
|
4647
4801
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4648
4802
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4678,12 +4832,12 @@ const error$24 = () => {
|
|
|
4678
4832
|
};
|
|
4679
4833
|
};
|
|
4680
4834
|
function he_default() {
|
|
4681
|
-
return { localeError: error$
|
|
4835
|
+
return { localeError: error$25() };
|
|
4682
4836
|
}
|
|
4683
4837
|
|
|
4684
4838
|
//#endregion
|
|
4685
|
-
//#region ../../node_modules/zod/
|
|
4686
|
-
const error$
|
|
4839
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4840
|
+
const error$24 = () => {
|
|
4687
4841
|
const Sizable = {
|
|
4688
4842
|
string: {
|
|
4689
4843
|
unit: "karakter",
|
|
@@ -4705,7 +4859,7 @@ const error$23 = () => {
|
|
|
4705
4859
|
function getSizing(origin) {
|
|
4706
4860
|
return Sizable[origin] ?? null;
|
|
4707
4861
|
}
|
|
4708
|
-
const parsedType$
|
|
4862
|
+
const parsedType$3 = (data) => {
|
|
4709
4863
|
const t = typeof data;
|
|
4710
4864
|
switch (t) {
|
|
4711
4865
|
case "number": {
|
|
@@ -4757,7 +4911,7 @@ const error$23 = () => {
|
|
|
4757
4911
|
};
|
|
4758
4912
|
return (issue$1) => {
|
|
4759
4913
|
switch (issue$1.code) {
|
|
4760
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4914
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
4761
4915
|
case "invalid_value":
|
|
4762
4916
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4763
4917
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4793,12 +4947,12 @@ const error$23 = () => {
|
|
|
4793
4947
|
};
|
|
4794
4948
|
};
|
|
4795
4949
|
function hu_default() {
|
|
4796
|
-
return { localeError: error$
|
|
4950
|
+
return { localeError: error$24() };
|
|
4797
4951
|
}
|
|
4798
4952
|
|
|
4799
4953
|
//#endregion
|
|
4800
|
-
//#region ../../node_modules/zod/
|
|
4801
|
-
const error$
|
|
4954
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
4955
|
+
const error$23 = () => {
|
|
4802
4956
|
const Sizable = {
|
|
4803
4957
|
string: {
|
|
4804
4958
|
unit: "karakter",
|
|
@@ -4820,7 +4974,7 @@ const error$22 = () => {
|
|
|
4820
4974
|
function getSizing(origin) {
|
|
4821
4975
|
return Sizable[origin] ?? null;
|
|
4822
4976
|
}
|
|
4823
|
-
const parsedType$
|
|
4977
|
+
const parsedType$3 = (data) => {
|
|
4824
4978
|
const t = typeof data;
|
|
4825
4979
|
switch (t) {
|
|
4826
4980
|
case "number": {
|
|
@@ -4872,7 +5026,7 @@ const error$22 = () => {
|
|
|
4872
5026
|
};
|
|
4873
5027
|
return (issue$1) => {
|
|
4874
5028
|
switch (issue$1.code) {
|
|
4875
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5029
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
4876
5030
|
case "invalid_value":
|
|
4877
5031
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4878
5032
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4908,12 +5062,12 @@ const error$22 = () => {
|
|
|
4908
5062
|
};
|
|
4909
5063
|
};
|
|
4910
5064
|
function id_default() {
|
|
4911
|
-
return { localeError: error$
|
|
5065
|
+
return { localeError: error$23() };
|
|
4912
5066
|
}
|
|
4913
5067
|
|
|
4914
5068
|
//#endregion
|
|
4915
|
-
//#region ../../node_modules/zod/
|
|
4916
|
-
const error$
|
|
5069
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5070
|
+
const error$22 = () => {
|
|
4917
5071
|
const Sizable = {
|
|
4918
5072
|
string: {
|
|
4919
5073
|
unit: "caratteri",
|
|
@@ -4935,7 +5089,7 @@ const error$21 = () => {
|
|
|
4935
5089
|
function getSizing(origin) {
|
|
4936
5090
|
return Sizable[origin] ?? null;
|
|
4937
5091
|
}
|
|
4938
|
-
const parsedType$
|
|
5092
|
+
const parsedType$3 = (data) => {
|
|
4939
5093
|
const t = typeof data;
|
|
4940
5094
|
switch (t) {
|
|
4941
5095
|
case "number": {
|
|
@@ -4987,7 +5141,7 @@ const error$21 = () => {
|
|
|
4987
5141
|
};
|
|
4988
5142
|
return (issue$1) => {
|
|
4989
5143
|
switch (issue$1.code) {
|
|
4990
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5144
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
4991
5145
|
case "invalid_value":
|
|
4992
5146
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4993
5147
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5023,12 +5177,12 @@ const error$21 = () => {
|
|
|
5023
5177
|
};
|
|
5024
5178
|
};
|
|
5025
5179
|
function it_default() {
|
|
5026
|
-
return { localeError: error$
|
|
5180
|
+
return { localeError: error$22() };
|
|
5027
5181
|
}
|
|
5028
5182
|
|
|
5029
5183
|
//#endregion
|
|
5030
|
-
//#region ../../node_modules/zod/
|
|
5031
|
-
const error$
|
|
5184
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5185
|
+
const error$21 = () => {
|
|
5032
5186
|
const Sizable = {
|
|
5033
5187
|
string: {
|
|
5034
5188
|
unit: "文字",
|
|
@@ -5050,7 +5204,7 @@ const error$20 = () => {
|
|
|
5050
5204
|
function getSizing(origin) {
|
|
5051
5205
|
return Sizable[origin] ?? null;
|
|
5052
5206
|
}
|
|
5053
|
-
const parsedType$
|
|
5207
|
+
const parsedType$3 = (data) => {
|
|
5054
5208
|
const t = typeof data;
|
|
5055
5209
|
switch (t) {
|
|
5056
5210
|
case "number": {
|
|
@@ -5102,21 +5256,21 @@ const error$20 = () => {
|
|
|
5102
5256
|
};
|
|
5103
5257
|
return (issue$1) => {
|
|
5104
5258
|
switch (issue$1.code) {
|
|
5105
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5259
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5106
5260
|
case "invalid_value":
|
|
5107
5261
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5108
5262
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5109
5263
|
case "too_big": {
|
|
5110
|
-
const adj = issue$1.inclusive ? "
|
|
5264
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5111
5265
|
const sizing = getSizing(issue$1.origin);
|
|
5112
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5113
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5266
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5267
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5114
5268
|
}
|
|
5115
5269
|
case "too_small": {
|
|
5116
|
-
const adj = issue$1.inclusive ? "
|
|
5270
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5117
5271
|
const sizing = getSizing(issue$1.origin);
|
|
5118
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5119
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5272
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5273
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5120
5274
|
}
|
|
5121
5275
|
case "invalid_format": {
|
|
5122
5276
|
const _issue = issue$1;
|
|
@@ -5136,12 +5290,12 @@ const error$20 = () => {
|
|
|
5136
5290
|
};
|
|
5137
5291
|
};
|
|
5138
5292
|
function ja_default() {
|
|
5139
|
-
return { localeError: error$
|
|
5293
|
+
return { localeError: error$21() };
|
|
5140
5294
|
}
|
|
5141
5295
|
|
|
5142
5296
|
//#endregion
|
|
5143
|
-
//#region ../../node_modules/zod/
|
|
5144
|
-
const error$
|
|
5297
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5298
|
+
const error$20 = () => {
|
|
5145
5299
|
const Sizable = {
|
|
5146
5300
|
string: {
|
|
5147
5301
|
unit: "តួអក្សរ",
|
|
@@ -5163,7 +5317,7 @@ const error$19 = () => {
|
|
|
5163
5317
|
function getSizing(origin) {
|
|
5164
5318
|
return Sizable[origin] ?? null;
|
|
5165
5319
|
}
|
|
5166
|
-
const parsedType$
|
|
5320
|
+
const parsedType$3 = (data) => {
|
|
5167
5321
|
const t = typeof data;
|
|
5168
5322
|
switch (t) {
|
|
5169
5323
|
case "number": {
|
|
@@ -5215,7 +5369,7 @@ const error$19 = () => {
|
|
|
5215
5369
|
};
|
|
5216
5370
|
return (issue$1) => {
|
|
5217
5371
|
switch (issue$1.code) {
|
|
5218
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5372
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5219
5373
|
case "invalid_value":
|
|
5220
5374
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5221
5375
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5253,12 +5407,12 @@ const error$19 = () => {
|
|
|
5253
5407
|
};
|
|
5254
5408
|
};
|
|
5255
5409
|
function kh_default() {
|
|
5256
|
-
return { localeError: error$
|
|
5410
|
+
return { localeError: error$20() };
|
|
5257
5411
|
}
|
|
5258
5412
|
|
|
5259
5413
|
//#endregion
|
|
5260
|
-
//#region ../../node_modules/zod/
|
|
5261
|
-
const error$
|
|
5414
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5415
|
+
const error$19 = () => {
|
|
5262
5416
|
const Sizable = {
|
|
5263
5417
|
string: {
|
|
5264
5418
|
unit: "문자",
|
|
@@ -5280,7 +5434,7 @@ const error$18 = () => {
|
|
|
5280
5434
|
function getSizing(origin) {
|
|
5281
5435
|
return Sizable[origin] ?? null;
|
|
5282
5436
|
}
|
|
5283
|
-
const parsedType$
|
|
5437
|
+
const parsedType$3 = (data) => {
|
|
5284
5438
|
const t = typeof data;
|
|
5285
5439
|
switch (t) {
|
|
5286
5440
|
case "number": {
|
|
@@ -5332,7 +5486,7 @@ const error$18 = () => {
|
|
|
5332
5486
|
};
|
|
5333
5487
|
return (issue$1) => {
|
|
5334
5488
|
switch (issue$1.code) {
|
|
5335
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5489
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5336
5490
|
case "invalid_value":
|
|
5337
5491
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5338
5492
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5374,12 +5528,12 @@ const error$18 = () => {
|
|
|
5374
5528
|
};
|
|
5375
5529
|
};
|
|
5376
5530
|
function ko_default() {
|
|
5377
|
-
return { localeError: error$
|
|
5531
|
+
return { localeError: error$19() };
|
|
5378
5532
|
}
|
|
5379
5533
|
|
|
5380
5534
|
//#endregion
|
|
5381
|
-
//#region ../../node_modules/zod/
|
|
5382
|
-
const error$
|
|
5535
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5536
|
+
const error$18 = () => {
|
|
5383
5537
|
const Sizable = {
|
|
5384
5538
|
string: {
|
|
5385
5539
|
unit: "знаци",
|
|
@@ -5401,7 +5555,7 @@ const error$17 = () => {
|
|
|
5401
5555
|
function getSizing(origin) {
|
|
5402
5556
|
return Sizable[origin] ?? null;
|
|
5403
5557
|
}
|
|
5404
|
-
const parsedType$
|
|
5558
|
+
const parsedType$3 = (data) => {
|
|
5405
5559
|
const t = typeof data;
|
|
5406
5560
|
switch (t) {
|
|
5407
5561
|
case "number": {
|
|
@@ -5453,7 +5607,7 @@ const error$17 = () => {
|
|
|
5453
5607
|
};
|
|
5454
5608
|
return (issue$1) => {
|
|
5455
5609
|
switch (issue$1.code) {
|
|
5456
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5610
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5457
5611
|
case "invalid_value":
|
|
5458
5612
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5459
5613
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5491,12 +5645,12 @@ const error$17 = () => {
|
|
|
5491
5645
|
};
|
|
5492
5646
|
};
|
|
5493
5647
|
function mk_default() {
|
|
5494
|
-
return { localeError: error$
|
|
5648
|
+
return { localeError: error$18() };
|
|
5495
5649
|
}
|
|
5496
5650
|
|
|
5497
5651
|
//#endregion
|
|
5498
|
-
//#region ../../node_modules/zod/
|
|
5499
|
-
const error$
|
|
5652
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5653
|
+
const error$17 = () => {
|
|
5500
5654
|
const Sizable = {
|
|
5501
5655
|
string: {
|
|
5502
5656
|
unit: "aksara",
|
|
@@ -5518,7 +5672,7 @@ const error$16 = () => {
|
|
|
5518
5672
|
function getSizing(origin) {
|
|
5519
5673
|
return Sizable[origin] ?? null;
|
|
5520
5674
|
}
|
|
5521
|
-
const parsedType$
|
|
5675
|
+
const parsedType$3 = (data) => {
|
|
5522
5676
|
const t = typeof data;
|
|
5523
5677
|
switch (t) {
|
|
5524
5678
|
case "number": {
|
|
@@ -5570,7 +5724,7 @@ const error$16 = () => {
|
|
|
5570
5724
|
};
|
|
5571
5725
|
return (issue$1) => {
|
|
5572
5726
|
switch (issue$1.code) {
|
|
5573
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5727
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5574
5728
|
case "invalid_value":
|
|
5575
5729
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5576
5730
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5606,12 +5760,12 @@ const error$16 = () => {
|
|
|
5606
5760
|
};
|
|
5607
5761
|
};
|
|
5608
5762
|
function ms_default() {
|
|
5609
|
-
return { localeError: error$
|
|
5763
|
+
return { localeError: error$17() };
|
|
5610
5764
|
}
|
|
5611
5765
|
|
|
5612
5766
|
//#endregion
|
|
5613
|
-
//#region ../../node_modules/zod/
|
|
5614
|
-
const error$
|
|
5767
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5768
|
+
const error$16 = () => {
|
|
5615
5769
|
const Sizable = {
|
|
5616
5770
|
string: { unit: "tekens" },
|
|
5617
5771
|
file: { unit: "bytes" },
|
|
@@ -5621,7 +5775,7 @@ const error$15 = () => {
|
|
|
5621
5775
|
function getSizing(origin) {
|
|
5622
5776
|
return Sizable[origin] ?? null;
|
|
5623
5777
|
}
|
|
5624
|
-
const parsedType$
|
|
5778
|
+
const parsedType$3 = (data) => {
|
|
5625
5779
|
const t = typeof data;
|
|
5626
5780
|
switch (t) {
|
|
5627
5781
|
case "number": {
|
|
@@ -5673,7 +5827,7 @@ const error$15 = () => {
|
|
|
5673
5827
|
};
|
|
5674
5828
|
return (issue$1) => {
|
|
5675
5829
|
switch (issue$1.code) {
|
|
5676
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5830
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
5677
5831
|
case "invalid_value":
|
|
5678
5832
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5679
5833
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5711,12 +5865,12 @@ const error$15 = () => {
|
|
|
5711
5865
|
};
|
|
5712
5866
|
};
|
|
5713
5867
|
function nl_default() {
|
|
5714
|
-
return { localeError: error$
|
|
5868
|
+
return { localeError: error$16() };
|
|
5715
5869
|
}
|
|
5716
5870
|
|
|
5717
5871
|
//#endregion
|
|
5718
|
-
//#region ../../node_modules/zod/
|
|
5719
|
-
const error$
|
|
5872
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5873
|
+
const error$15 = () => {
|
|
5720
5874
|
const Sizable = {
|
|
5721
5875
|
string: {
|
|
5722
5876
|
unit: "tegn",
|
|
@@ -5738,7 +5892,7 @@ const error$14 = () => {
|
|
|
5738
5892
|
function getSizing(origin) {
|
|
5739
5893
|
return Sizable[origin] ?? null;
|
|
5740
5894
|
}
|
|
5741
|
-
const parsedType$
|
|
5895
|
+
const parsedType$3 = (data) => {
|
|
5742
5896
|
const t = typeof data;
|
|
5743
5897
|
switch (t) {
|
|
5744
5898
|
case "number": {
|
|
@@ -5790,7 +5944,7 @@ const error$14 = () => {
|
|
|
5790
5944
|
};
|
|
5791
5945
|
return (issue$1) => {
|
|
5792
5946
|
switch (issue$1.code) {
|
|
5793
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
5947
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
5794
5948
|
case "invalid_value":
|
|
5795
5949
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5796
5950
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5826,12 +5980,12 @@ const error$14 = () => {
|
|
|
5826
5980
|
};
|
|
5827
5981
|
};
|
|
5828
5982
|
function no_default() {
|
|
5829
|
-
return { localeError: error$
|
|
5983
|
+
return { localeError: error$15() };
|
|
5830
5984
|
}
|
|
5831
5985
|
|
|
5832
5986
|
//#endregion
|
|
5833
|
-
//#region ../../node_modules/zod/
|
|
5834
|
-
const error$
|
|
5987
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
5988
|
+
const error$14 = () => {
|
|
5835
5989
|
const Sizable = {
|
|
5836
5990
|
string: {
|
|
5837
5991
|
unit: "harf",
|
|
@@ -5853,7 +6007,7 @@ const error$13 = () => {
|
|
|
5853
6007
|
function getSizing(origin) {
|
|
5854
6008
|
return Sizable[origin] ?? null;
|
|
5855
6009
|
}
|
|
5856
|
-
const parsedType$
|
|
6010
|
+
const parsedType$3 = (data) => {
|
|
5857
6011
|
const t = typeof data;
|
|
5858
6012
|
switch (t) {
|
|
5859
6013
|
case "number": {
|
|
@@ -5905,7 +6059,7 @@ const error$13 = () => {
|
|
|
5905
6059
|
};
|
|
5906
6060
|
return (issue$1) => {
|
|
5907
6061
|
switch (issue$1.code) {
|
|
5908
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6062
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
5909
6063
|
case "invalid_value":
|
|
5910
6064
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5911
6065
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5941,11 +6095,138 @@ const error$13 = () => {
|
|
|
5941
6095
|
};
|
|
5942
6096
|
};
|
|
5943
6097
|
function ota_default() {
|
|
6098
|
+
return { localeError: error$14() };
|
|
6099
|
+
}
|
|
6100
|
+
|
|
6101
|
+
//#endregion
|
|
6102
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6103
|
+
const error$13 = () => {
|
|
6104
|
+
const Sizable = {
|
|
6105
|
+
string: {
|
|
6106
|
+
unit: "توکي",
|
|
6107
|
+
verb: "ولري"
|
|
6108
|
+
},
|
|
6109
|
+
file: {
|
|
6110
|
+
unit: "بایټس",
|
|
6111
|
+
verb: "ولري"
|
|
6112
|
+
},
|
|
6113
|
+
array: {
|
|
6114
|
+
unit: "توکي",
|
|
6115
|
+
verb: "ولري"
|
|
6116
|
+
},
|
|
6117
|
+
set: {
|
|
6118
|
+
unit: "توکي",
|
|
6119
|
+
verb: "ولري"
|
|
6120
|
+
}
|
|
6121
|
+
};
|
|
6122
|
+
function getSizing(origin) {
|
|
6123
|
+
return Sizable[origin] ?? null;
|
|
6124
|
+
}
|
|
6125
|
+
const parsedType$3 = (data) => {
|
|
6126
|
+
const t = typeof data;
|
|
6127
|
+
switch (t) {
|
|
6128
|
+
case "number": {
|
|
6129
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6130
|
+
}
|
|
6131
|
+
case "object": {
|
|
6132
|
+
if (Array.isArray(data)) {
|
|
6133
|
+
return "ارې";
|
|
6134
|
+
}
|
|
6135
|
+
if (data === null) {
|
|
6136
|
+
return "null";
|
|
6137
|
+
}
|
|
6138
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6139
|
+
return data.constructor.name;
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
}
|
|
6143
|
+
return t;
|
|
6144
|
+
};
|
|
6145
|
+
const Nouns = {
|
|
6146
|
+
regex: "ورودي",
|
|
6147
|
+
email: "بریښنالیک",
|
|
6148
|
+
url: "یو آر ال",
|
|
6149
|
+
emoji: "ایموجي",
|
|
6150
|
+
uuid: "UUID",
|
|
6151
|
+
uuidv4: "UUIDv4",
|
|
6152
|
+
uuidv6: "UUIDv6",
|
|
6153
|
+
nanoid: "nanoid",
|
|
6154
|
+
guid: "GUID",
|
|
6155
|
+
cuid: "cuid",
|
|
6156
|
+
cuid2: "cuid2",
|
|
6157
|
+
ulid: "ULID",
|
|
6158
|
+
xid: "XID",
|
|
6159
|
+
ksuid: "KSUID",
|
|
6160
|
+
datetime: "نیټه او وخت",
|
|
6161
|
+
date: "نېټه",
|
|
6162
|
+
time: "وخت",
|
|
6163
|
+
duration: "موده",
|
|
6164
|
+
ipv4: "د IPv4 پته",
|
|
6165
|
+
ipv6: "د IPv6 پته",
|
|
6166
|
+
cidrv4: "د IPv4 ساحه",
|
|
6167
|
+
cidrv6: "د IPv6 ساحه",
|
|
6168
|
+
base64: "base64-encoded متن",
|
|
6169
|
+
base64url: "base64url-encoded متن",
|
|
6170
|
+
json_string: "JSON متن",
|
|
6171
|
+
e164: "د E.164 شمېره",
|
|
6172
|
+
jwt: "JWT",
|
|
6173
|
+
template_literal: "ورودي"
|
|
6174
|
+
};
|
|
6175
|
+
return (issue$1) => {
|
|
6176
|
+
switch (issue$1.code) {
|
|
6177
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6178
|
+
case "invalid_value":
|
|
6179
|
+
if (issue$1.values.length === 1) {
|
|
6180
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6181
|
+
}
|
|
6182
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6183
|
+
case "too_big": {
|
|
6184
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6185
|
+
const sizing = getSizing(issue$1.origin);
|
|
6186
|
+
if (sizing) {
|
|
6187
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6188
|
+
}
|
|
6189
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6190
|
+
}
|
|
6191
|
+
case "too_small": {
|
|
6192
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6193
|
+
const sizing = getSizing(issue$1.origin);
|
|
6194
|
+
if (sizing) {
|
|
6195
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6196
|
+
}
|
|
6197
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6198
|
+
}
|
|
6199
|
+
case "invalid_format": {
|
|
6200
|
+
const _issue = issue$1;
|
|
6201
|
+
if (_issue.format === "starts_with") {
|
|
6202
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6203
|
+
}
|
|
6204
|
+
if (_issue.format === "ends_with") {
|
|
6205
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6206
|
+
}
|
|
6207
|
+
if (_issue.format === "includes") {
|
|
6208
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6209
|
+
}
|
|
6210
|
+
if (_issue.format === "regex") {
|
|
6211
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6212
|
+
}
|
|
6213
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6214
|
+
}
|
|
6215
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6216
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6217
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6218
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6219
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6220
|
+
default: return `ناسمه ورودي`;
|
|
6221
|
+
}
|
|
6222
|
+
};
|
|
6223
|
+
};
|
|
6224
|
+
function ps_default() {
|
|
5944
6225
|
return { localeError: error$13() };
|
|
5945
6226
|
}
|
|
5946
6227
|
|
|
5947
6228
|
//#endregion
|
|
5948
|
-
//#region ../../node_modules/zod/
|
|
6229
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
5949
6230
|
const error$12 = () => {
|
|
5950
6231
|
const Sizable = {
|
|
5951
6232
|
string: {
|
|
@@ -5968,7 +6249,7 @@ const error$12 = () => {
|
|
|
5968
6249
|
function getSizing(origin) {
|
|
5969
6250
|
return Sizable[origin] ?? null;
|
|
5970
6251
|
}
|
|
5971
|
-
const parsedType$
|
|
6252
|
+
const parsedType$3 = (data) => {
|
|
5972
6253
|
const t = typeof data;
|
|
5973
6254
|
switch (t) {
|
|
5974
6255
|
case "number": {
|
|
@@ -6020,7 +6301,7 @@ const error$12 = () => {
|
|
|
6020
6301
|
};
|
|
6021
6302
|
return (issue$1) => {
|
|
6022
6303
|
switch (issue$1.code) {
|
|
6023
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6304
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6024
6305
|
case "invalid_value":
|
|
6025
6306
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6026
6307
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6062,7 +6343,7 @@ function pl_default() {
|
|
|
6062
6343
|
}
|
|
6063
6344
|
|
|
6064
6345
|
//#endregion
|
|
6065
|
-
//#region ../../node_modules/zod/
|
|
6346
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6066
6347
|
const error$11 = () => {
|
|
6067
6348
|
const Sizable = {
|
|
6068
6349
|
string: {
|
|
@@ -6085,7 +6366,7 @@ const error$11 = () => {
|
|
|
6085
6366
|
function getSizing(origin) {
|
|
6086
6367
|
return Sizable[origin] ?? null;
|
|
6087
6368
|
}
|
|
6088
|
-
const parsedType$
|
|
6369
|
+
const parsedType$3 = (data) => {
|
|
6089
6370
|
const t = typeof data;
|
|
6090
6371
|
switch (t) {
|
|
6091
6372
|
case "number": {
|
|
@@ -6137,7 +6418,7 @@ const error$11 = () => {
|
|
|
6137
6418
|
};
|
|
6138
6419
|
return (issue$1) => {
|
|
6139
6420
|
switch (issue$1.code) {
|
|
6140
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6421
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6141
6422
|
case "invalid_value":
|
|
6142
6423
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6143
6424
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6177,7 +6458,7 @@ function pt_default() {
|
|
|
6177
6458
|
}
|
|
6178
6459
|
|
|
6179
6460
|
//#endregion
|
|
6180
|
-
//#region ../../node_modules/zod/
|
|
6461
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6181
6462
|
function getRussianPlural(count, one, few, many) {
|
|
6182
6463
|
const absCount = Math.abs(count);
|
|
6183
6464
|
const lastDigit = absCount % 10;
|
|
@@ -6231,7 +6512,7 @@ const error$10 = () => {
|
|
|
6231
6512
|
function getSizing(origin) {
|
|
6232
6513
|
return Sizable[origin] ?? null;
|
|
6233
6514
|
}
|
|
6234
|
-
const parsedType$
|
|
6515
|
+
const parsedType$3 = (data) => {
|
|
6235
6516
|
const t = typeof data;
|
|
6236
6517
|
switch (t) {
|
|
6237
6518
|
case "number": {
|
|
@@ -6283,7 +6564,7 @@ const error$10 = () => {
|
|
|
6283
6564
|
};
|
|
6284
6565
|
return (issue$1) => {
|
|
6285
6566
|
switch (issue$1.code) {
|
|
6286
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6567
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6287
6568
|
case "invalid_value":
|
|
6288
6569
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6289
6570
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6329,7 +6610,7 @@ function ru_default() {
|
|
|
6329
6610
|
}
|
|
6330
6611
|
|
|
6331
6612
|
//#endregion
|
|
6332
|
-
//#region ../../node_modules/zod/
|
|
6613
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6333
6614
|
const error$9 = () => {
|
|
6334
6615
|
const Sizable = {
|
|
6335
6616
|
string: {
|
|
@@ -6352,7 +6633,7 @@ const error$9 = () => {
|
|
|
6352
6633
|
function getSizing(origin) {
|
|
6353
6634
|
return Sizable[origin] ?? null;
|
|
6354
6635
|
}
|
|
6355
|
-
const parsedType$
|
|
6636
|
+
const parsedType$3 = (data) => {
|
|
6356
6637
|
const t = typeof data;
|
|
6357
6638
|
switch (t) {
|
|
6358
6639
|
case "number": {
|
|
@@ -6404,7 +6685,7 @@ const error$9 = () => {
|
|
|
6404
6685
|
};
|
|
6405
6686
|
return (issue$1) => {
|
|
6406
6687
|
switch (issue$1.code) {
|
|
6407
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6688
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6408
6689
|
case "invalid_value":
|
|
6409
6690
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6410
6691
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6446,7 +6727,7 @@ function sl_default() {
|
|
|
6446
6727
|
}
|
|
6447
6728
|
|
|
6448
6729
|
//#endregion
|
|
6449
|
-
//#region ../../node_modules/zod/
|
|
6730
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6450
6731
|
const error$8 = () => {
|
|
6451
6732
|
const Sizable = {
|
|
6452
6733
|
string: {
|
|
@@ -6469,7 +6750,7 @@ const error$8 = () => {
|
|
|
6469
6750
|
function getSizing(origin) {
|
|
6470
6751
|
return Sizable[origin] ?? null;
|
|
6471
6752
|
}
|
|
6472
|
-
const parsedType$
|
|
6753
|
+
const parsedType$3 = (data) => {
|
|
6473
6754
|
const t = typeof data;
|
|
6474
6755
|
switch (t) {
|
|
6475
6756
|
case "number": {
|
|
@@ -6521,7 +6802,7 @@ const error$8 = () => {
|
|
|
6521
6802
|
};
|
|
6522
6803
|
return (issue$1) => {
|
|
6523
6804
|
switch (issue$1.code) {
|
|
6524
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6805
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6525
6806
|
case "invalid_value":
|
|
6526
6807
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6527
6808
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6565,7 +6846,7 @@ function sv_default() {
|
|
|
6565
6846
|
}
|
|
6566
6847
|
|
|
6567
6848
|
//#endregion
|
|
6568
|
-
//#region ../../node_modules/zod/
|
|
6849
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6569
6850
|
const error$7 = () => {
|
|
6570
6851
|
const Sizable = {
|
|
6571
6852
|
string: {
|
|
@@ -6588,7 +6869,7 @@ const error$7 = () => {
|
|
|
6588
6869
|
function getSizing(origin) {
|
|
6589
6870
|
return Sizable[origin] ?? null;
|
|
6590
6871
|
}
|
|
6591
|
-
const parsedType$
|
|
6872
|
+
const parsedType$3 = (data) => {
|
|
6592
6873
|
const t = typeof data;
|
|
6593
6874
|
switch (t) {
|
|
6594
6875
|
case "number": {
|
|
@@ -6640,7 +6921,7 @@ const error$7 = () => {
|
|
|
6640
6921
|
};
|
|
6641
6922
|
return (issue$1) => {
|
|
6642
6923
|
switch (issue$1.code) {
|
|
6643
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
6924
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
6644
6925
|
case "invalid_value":
|
|
6645
6926
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6646
6927
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -6682,7 +6963,7 @@ function ta_default() {
|
|
|
6682
6963
|
}
|
|
6683
6964
|
|
|
6684
6965
|
//#endregion
|
|
6685
|
-
//#region ../../node_modules/zod/
|
|
6966
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6686
6967
|
const error$6 = () => {
|
|
6687
6968
|
const Sizable = {
|
|
6688
6969
|
string: {
|
|
@@ -6705,7 +6986,7 @@ const error$6 = () => {
|
|
|
6705
6986
|
function getSizing(origin) {
|
|
6706
6987
|
return Sizable[origin] ?? null;
|
|
6707
6988
|
}
|
|
6708
|
-
const parsedType$
|
|
6989
|
+
const parsedType$3 = (data) => {
|
|
6709
6990
|
const t = typeof data;
|
|
6710
6991
|
switch (t) {
|
|
6711
6992
|
case "number": {
|
|
@@ -6757,7 +7038,7 @@ const error$6 = () => {
|
|
|
6757
7038
|
};
|
|
6758
7039
|
return (issue$1) => {
|
|
6759
7040
|
switch (issue$1.code) {
|
|
6760
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7041
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
6761
7042
|
case "invalid_value":
|
|
6762
7043
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6763
7044
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6799,7 +7080,7 @@ function th_default() {
|
|
|
6799
7080
|
}
|
|
6800
7081
|
|
|
6801
7082
|
//#endregion
|
|
6802
|
-
//#region ../../node_modules/zod/
|
|
7083
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6803
7084
|
const parsedType = (data) => {
|
|
6804
7085
|
const t = typeof data;
|
|
6805
7086
|
switch (t) {
|
|
@@ -6912,7 +7193,7 @@ function tr_default() {
|
|
|
6912
7193
|
}
|
|
6913
7194
|
|
|
6914
7195
|
//#endregion
|
|
6915
|
-
//#region ../../node_modules/zod/
|
|
7196
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
6916
7197
|
const error$4 = () => {
|
|
6917
7198
|
const Sizable = {
|
|
6918
7199
|
string: {
|
|
@@ -6935,7 +7216,7 @@ const error$4 = () => {
|
|
|
6935
7216
|
function getSizing(origin) {
|
|
6936
7217
|
return Sizable[origin] ?? null;
|
|
6937
7218
|
}
|
|
6938
|
-
const parsedType$
|
|
7219
|
+
const parsedType$3 = (data) => {
|
|
6939
7220
|
const t = typeof data;
|
|
6940
7221
|
switch (t) {
|
|
6941
7222
|
case "number": {
|
|
@@ -6987,7 +7268,7 @@ const error$4 = () => {
|
|
|
6987
7268
|
};
|
|
6988
7269
|
return (issue$1) => {
|
|
6989
7270
|
switch (issue$1.code) {
|
|
6990
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7271
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
6991
7272
|
case "invalid_value":
|
|
6992
7273
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6993
7274
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7027,7 +7308,7 @@ function ua_default() {
|
|
|
7027
7308
|
}
|
|
7028
7309
|
|
|
7029
7310
|
//#endregion
|
|
7030
|
-
//#region ../../node_modules/zod/
|
|
7311
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7031
7312
|
const error$3 = () => {
|
|
7032
7313
|
const Sizable = {
|
|
7033
7314
|
string: {
|
|
@@ -7050,7 +7331,7 @@ const error$3 = () => {
|
|
|
7050
7331
|
function getSizing(origin) {
|
|
7051
7332
|
return Sizable[origin] ?? null;
|
|
7052
7333
|
}
|
|
7053
|
-
const parsedType$
|
|
7334
|
+
const parsedType$3 = (data) => {
|
|
7054
7335
|
const t = typeof data;
|
|
7055
7336
|
switch (t) {
|
|
7056
7337
|
case "number": {
|
|
@@ -7102,7 +7383,7 @@ const error$3 = () => {
|
|
|
7102
7383
|
};
|
|
7103
7384
|
return (issue$1) => {
|
|
7104
7385
|
switch (issue$1.code) {
|
|
7105
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7386
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7106
7387
|
case "invalid_value":
|
|
7107
7388
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7108
7389
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7144,7 +7425,7 @@ function ur_default() {
|
|
|
7144
7425
|
}
|
|
7145
7426
|
|
|
7146
7427
|
//#endregion
|
|
7147
|
-
//#region ../../node_modules/zod/
|
|
7428
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7148
7429
|
const error$2 = () => {
|
|
7149
7430
|
const Sizable = {
|
|
7150
7431
|
string: {
|
|
@@ -7167,7 +7448,7 @@ const error$2 = () => {
|
|
|
7167
7448
|
function getSizing(origin) {
|
|
7168
7449
|
return Sizable[origin] ?? null;
|
|
7169
7450
|
}
|
|
7170
|
-
const parsedType$
|
|
7451
|
+
const parsedType$3 = (data) => {
|
|
7171
7452
|
const t = typeof data;
|
|
7172
7453
|
switch (t) {
|
|
7173
7454
|
case "number": {
|
|
@@ -7219,7 +7500,7 @@ const error$2 = () => {
|
|
|
7219
7500
|
};
|
|
7220
7501
|
return (issue$1) => {
|
|
7221
7502
|
switch (issue$1.code) {
|
|
7222
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7503
|
+
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)}`;
|
|
7223
7504
|
case "invalid_value":
|
|
7224
7505
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7225
7506
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7259,7 +7540,7 @@ function vi_default() {
|
|
|
7259
7540
|
}
|
|
7260
7541
|
|
|
7261
7542
|
//#endregion
|
|
7262
|
-
//#region ../../node_modules/zod/
|
|
7543
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7263
7544
|
const error$1 = () => {
|
|
7264
7545
|
const Sizable = {
|
|
7265
7546
|
string: {
|
|
@@ -7282,7 +7563,7 @@ const error$1 = () => {
|
|
|
7282
7563
|
function getSizing(origin) {
|
|
7283
7564
|
return Sizable[origin] ?? null;
|
|
7284
7565
|
}
|
|
7285
|
-
const parsedType$
|
|
7566
|
+
const parsedType$3 = (data) => {
|
|
7286
7567
|
const t = typeof data;
|
|
7287
7568
|
switch (t) {
|
|
7288
7569
|
case "number": {
|
|
@@ -7334,7 +7615,7 @@ const error$1 = () => {
|
|
|
7334
7615
|
};
|
|
7335
7616
|
return (issue$1) => {
|
|
7336
7617
|
switch (issue$1.code) {
|
|
7337
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7618
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7338
7619
|
case "invalid_value":
|
|
7339
7620
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7340
7621
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7374,7 +7655,7 @@ function zh_CN_default() {
|
|
|
7374
7655
|
}
|
|
7375
7656
|
|
|
7376
7657
|
//#endregion
|
|
7377
|
-
//#region ../../node_modules/zod/
|
|
7658
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7378
7659
|
const error = () => {
|
|
7379
7660
|
const Sizable = {
|
|
7380
7661
|
string: {
|
|
@@ -7397,7 +7678,7 @@ const error = () => {
|
|
|
7397
7678
|
function getSizing(origin) {
|
|
7398
7679
|
return Sizable[origin] ?? null;
|
|
7399
7680
|
}
|
|
7400
|
-
const parsedType$
|
|
7681
|
+
const parsedType$3 = (data) => {
|
|
7401
7682
|
const t = typeof data;
|
|
7402
7683
|
switch (t) {
|
|
7403
7684
|
case "number": {
|
|
@@ -7449,7 +7730,7 @@ const error = () => {
|
|
|
7449
7730
|
};
|
|
7450
7731
|
return (issue$1) => {
|
|
7451
7732
|
switch (issue$1.code) {
|
|
7452
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7733
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7453
7734
|
case "invalid_value":
|
|
7454
7735
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7455
7736
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7491,7 +7772,7 @@ function zh_TW_default() {
|
|
|
7491
7772
|
}
|
|
7492
7773
|
|
|
7493
7774
|
//#endregion
|
|
7494
|
-
//#region ../../node_modules/zod/
|
|
7775
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7495
7776
|
var locales_exports = {};
|
|
7496
7777
|
__export(locales_exports, {
|
|
7497
7778
|
ar: () => ar_default,
|
|
@@ -7501,6 +7782,7 @@ __export(locales_exports, {
|
|
|
7501
7782
|
cs: () => cs_default,
|
|
7502
7783
|
de: () => de_default,
|
|
7503
7784
|
en: () => en_default,
|
|
7785
|
+
eo: () => eo_default,
|
|
7504
7786
|
es: () => es_default,
|
|
7505
7787
|
fa: () => fa_default,
|
|
7506
7788
|
fi: () => fi_default,
|
|
@@ -7519,6 +7801,7 @@ __export(locales_exports, {
|
|
|
7519
7801
|
no: () => no_default,
|
|
7520
7802
|
ota: () => ota_default,
|
|
7521
7803
|
pl: () => pl_default,
|
|
7804
|
+
ps: () => ps_default,
|
|
7522
7805
|
pt: () => pt_default,
|
|
7523
7806
|
ru: () => ru_default,
|
|
7524
7807
|
sl: () => sl_default,
|
|
@@ -7534,12 +7817,12 @@ __export(locales_exports, {
|
|
|
7534
7817
|
});
|
|
7535
7818
|
|
|
7536
7819
|
//#endregion
|
|
7537
|
-
//#region ../../node_modules/zod/
|
|
7820
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7538
7821
|
const $output = Symbol("ZodOutput");
|
|
7539
7822
|
const $input = Symbol("ZodInput");
|
|
7540
7823
|
var $ZodRegistry = class {
|
|
7541
7824
|
constructor() {
|
|
7542
|
-
this._map = new
|
|
7825
|
+
this._map = new Map();
|
|
7543
7826
|
this._idmap = new Map();
|
|
7544
7827
|
}
|
|
7545
7828
|
add(schema, ..._meta) {
|
|
@@ -7553,7 +7836,16 @@ var $ZodRegistry = class {
|
|
|
7553
7836
|
}
|
|
7554
7837
|
return this;
|
|
7555
7838
|
}
|
|
7839
|
+
clear() {
|
|
7840
|
+
this._map = new Map();
|
|
7841
|
+
this._idmap = new Map();
|
|
7842
|
+
return this;
|
|
7843
|
+
}
|
|
7556
7844
|
remove(schema) {
|
|
7845
|
+
const meta = this._map.get(schema);
|
|
7846
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7847
|
+
this._idmap.delete(meta.id);
|
|
7848
|
+
}
|
|
7557
7849
|
this._map.delete(schema);
|
|
7558
7850
|
return this;
|
|
7559
7851
|
}
|
|
@@ -7579,7 +7871,7 @@ function registry() {
|
|
|
7579
7871
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7580
7872
|
|
|
7581
7873
|
//#endregion
|
|
7582
|
-
//#region ../../node_modules/zod/
|
|
7874
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
7583
7875
|
function _string(Class$1, params) {
|
|
7584
7876
|
return new Class$1({
|
|
7585
7877
|
type: "string",
|
|
@@ -7794,6 +8086,13 @@ function _jwt(Class$1, params) {
|
|
|
7794
8086
|
...normalizeParams(params)
|
|
7795
8087
|
});
|
|
7796
8088
|
}
|
|
8089
|
+
const TimePrecision = {
|
|
8090
|
+
Any: null,
|
|
8091
|
+
Minute: -1,
|
|
8092
|
+
Second: 0,
|
|
8093
|
+
Millisecond: 3,
|
|
8094
|
+
Microsecond: 6
|
|
8095
|
+
};
|
|
7797
8096
|
function _isoDateTime(Class$1, params) {
|
|
7798
8097
|
return new Class$1({
|
|
7799
8098
|
type: "string",
|
|
@@ -8360,8 +8659,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8360
8659
|
return schema;
|
|
8361
8660
|
}
|
|
8362
8661
|
function _stringbool(Classes, _params) {
|
|
8363
|
-
const
|
|
8364
|
-
let truthyArray = truthy ?? [
|
|
8662
|
+
const params = normalizeParams(_params);
|
|
8663
|
+
let truthyArray = params.truthy ?? [
|
|
8365
8664
|
"true",
|
|
8366
8665
|
"1",
|
|
8367
8666
|
"yes",
|
|
@@ -8369,7 +8668,7 @@ function _stringbool(Classes, _params) {
|
|
|
8369
8668
|
"y",
|
|
8370
8669
|
"enabled"
|
|
8371
8670
|
];
|
|
8372
|
-
let falsyArray = falsy ?? [
|
|
8671
|
+
let falsyArray = params.falsy ?? [
|
|
8373
8672
|
"false",
|
|
8374
8673
|
"0",
|
|
8375
8674
|
"no",
|
|
@@ -8377,7 +8676,7 @@ function _stringbool(Classes, _params) {
|
|
|
8377
8676
|
"n",
|
|
8378
8677
|
"disabled"
|
|
8379
8678
|
];
|
|
8380
|
-
if (
|
|
8679
|
+
if (params.case !== "sensitive") {
|
|
8381
8680
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8382
8681
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8383
8682
|
}
|
|
@@ -8391,7 +8690,7 @@ function _stringbool(Classes, _params) {
|
|
|
8391
8690
|
type: "transform",
|
|
8392
8691
|
transform: (input, payload) => {
|
|
8393
8692
|
let data = input;
|
|
8394
|
-
if (
|
|
8693
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8395
8694
|
if (truthySet.has(data)) {
|
|
8396
8695
|
return true;
|
|
8397
8696
|
} else if (falsySet.has(data)) {
|
|
@@ -8407,31 +8706,47 @@ function _stringbool(Classes, _params) {
|
|
|
8407
8706
|
return {};
|
|
8408
8707
|
}
|
|
8409
8708
|
},
|
|
8410
|
-
error: error
|
|
8709
|
+
error: params.error
|
|
8411
8710
|
});
|
|
8412
8711
|
const innerPipe = new _Pipe({
|
|
8413
8712
|
type: "pipe",
|
|
8414
8713
|
in: new _String({
|
|
8415
8714
|
type: "string",
|
|
8416
|
-
error: error
|
|
8715
|
+
error: params.error
|
|
8417
8716
|
}),
|
|
8418
8717
|
out: tx,
|
|
8419
|
-
error: error
|
|
8718
|
+
error: params.error
|
|
8420
8719
|
});
|
|
8421
8720
|
const outerPipe = new _Pipe({
|
|
8422
8721
|
type: "pipe",
|
|
8423
8722
|
in: innerPipe,
|
|
8424
8723
|
out: new _Boolean({
|
|
8425
8724
|
type: "boolean",
|
|
8426
|
-
error: error
|
|
8725
|
+
error: params.error
|
|
8427
8726
|
}),
|
|
8428
|
-
error: error
|
|
8727
|
+
error: params.error
|
|
8429
8728
|
});
|
|
8430
8729
|
return outerPipe;
|
|
8431
8730
|
}
|
|
8731
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8732
|
+
const params = normalizeParams(_params);
|
|
8733
|
+
const def = {
|
|
8734
|
+
...normalizeParams(_params),
|
|
8735
|
+
check: "string_format",
|
|
8736
|
+
type: "string",
|
|
8737
|
+
format,
|
|
8738
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8739
|
+
...params
|
|
8740
|
+
};
|
|
8741
|
+
if (fnOrRegex instanceof RegExp) {
|
|
8742
|
+
def.pattern = fnOrRegex;
|
|
8743
|
+
}
|
|
8744
|
+
const inst = new Class$1(def);
|
|
8745
|
+
return inst;
|
|
8746
|
+
}
|
|
8432
8747
|
|
|
8433
8748
|
//#endregion
|
|
8434
|
-
//#region ../../node_modules/zod/
|
|
8749
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8435
8750
|
var $ZodFunction = class {
|
|
8436
8751
|
constructor(def) {
|
|
8437
8752
|
this._def = def;
|
|
@@ -8502,7 +8817,7 @@ function _function(params) {
|
|
|
8502
8817
|
}
|
|
8503
8818
|
|
|
8504
8819
|
//#endregion
|
|
8505
|
-
//#region ../../node_modules/zod/
|
|
8820
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8506
8821
|
var JSONSchemaGenerator = class {
|
|
8507
8822
|
constructor(params) {
|
|
8508
8823
|
this.counter = 0;
|
|
@@ -8538,431 +8853,435 @@ var JSONSchemaGenerator = class {
|
|
|
8538
8853
|
const result = {
|
|
8539
8854
|
schema: {},
|
|
8540
8855
|
count: 1,
|
|
8541
|
-
cycle: undefined
|
|
8542
|
-
};
|
|
8543
|
-
this.seen.set(schema, result);
|
|
8544
|
-
if (schema._zod.toJSONSchema) {
|
|
8545
|
-
result.schema = schema._zod.toJSONSchema();
|
|
8546
|
-
}
|
|
8547
|
-
const params = {
|
|
8548
|
-
..._params,
|
|
8549
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
8856
|
+
cycle: undefined,
|
|
8550
8857
|
path: _params.path
|
|
8551
8858
|
};
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
this.seen.get(parent).isParent = true;
|
|
8859
|
+
this.seen.set(schema, result);
|
|
8860
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
8861
|
+
if (overrideSchema) {
|
|
8862
|
+
result.schema = overrideSchema;
|
|
8557
8863
|
} else {
|
|
8558
|
-
const
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8864
|
+
const params = {
|
|
8865
|
+
..._params,
|
|
8866
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8867
|
+
path: _params.path
|
|
8868
|
+
};
|
|
8869
|
+
const parent = schema._zod.parent;
|
|
8870
|
+
if (parent) {
|
|
8871
|
+
result.ref = parent;
|
|
8872
|
+
this.process(parent, params);
|
|
8873
|
+
this.seen.get(parent).isParent = true;
|
|
8874
|
+
} else {
|
|
8875
|
+
const _json = result.schema;
|
|
8876
|
+
switch (def.type) {
|
|
8877
|
+
case "string": {
|
|
8878
|
+
const json$1 = _json;
|
|
8879
|
+
json$1.type = "string";
|
|
8880
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8881
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8882
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8883
|
+
if (format) {
|
|
8884
|
+
json$1.format = formatMap[format] ?? format;
|
|
8885
|
+
if (json$1.format === "") delete json$1.format;
|
|
8886
|
+
}
|
|
8887
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8888
|
+
if (patterns && patterns.size > 0) {
|
|
8889
|
+
const regexes = [...patterns];
|
|
8890
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8891
|
+
else if (regexes.length > 1) {
|
|
8892
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8893
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8894
|
+
pattern: regex.source
|
|
8895
|
+
}))];
|
|
8896
|
+
}
|
|
8897
|
+
}
|
|
8898
|
+
break;
|
|
8569
8899
|
}
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
const
|
|
8573
|
-
if (
|
|
8574
|
-
else
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8900
|
+
case "number": {
|
|
8901
|
+
const json$1 = _json;
|
|
8902
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8903
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8904
|
+
else json$1.type = "number";
|
|
8905
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8906
|
+
if (typeof minimum === "number") {
|
|
8907
|
+
json$1.minimum = minimum;
|
|
8908
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8909
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8910
|
+
else delete json$1.exclusiveMinimum;
|
|
8911
|
+
}
|
|
8579
8912
|
}
|
|
8913
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8914
|
+
if (typeof maximum === "number") {
|
|
8915
|
+
json$1.maximum = maximum;
|
|
8916
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8917
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8918
|
+
else delete json$1.exclusiveMaximum;
|
|
8919
|
+
}
|
|
8920
|
+
}
|
|
8921
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
8922
|
+
break;
|
|
8580
8923
|
}
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
if (typeof minimum === "number") {
|
|
8590
|
-
json$1.minimum = minimum;
|
|
8591
|
-
if (typeof exclusiveMinimum === "number") {
|
|
8592
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8593
|
-
else delete json$1.exclusiveMinimum;
|
|
8924
|
+
case "boolean": {
|
|
8925
|
+
const json$1 = _json;
|
|
8926
|
+
json$1.type = "boolean";
|
|
8927
|
+
break;
|
|
8928
|
+
}
|
|
8929
|
+
case "bigint": {
|
|
8930
|
+
if (this.unrepresentable === "throw") {
|
|
8931
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8594
8932
|
}
|
|
8933
|
+
break;
|
|
8595
8934
|
}
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
if (typeof exclusiveMaximum === "number") {
|
|
8600
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8601
|
-
else delete json$1.exclusiveMaximum;
|
|
8935
|
+
case "symbol": {
|
|
8936
|
+
if (this.unrepresentable === "throw") {
|
|
8937
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8602
8938
|
}
|
|
8939
|
+
break;
|
|
8603
8940
|
}
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
case "boolean": {
|
|
8608
|
-
const json$1 = _json;
|
|
8609
|
-
json$1.type = "boolean";
|
|
8610
|
-
break;
|
|
8611
|
-
}
|
|
8612
|
-
case "bigint": {
|
|
8613
|
-
if (this.unrepresentable === "throw") {
|
|
8614
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8941
|
+
case "null": {
|
|
8942
|
+
_json.type = "null";
|
|
8943
|
+
break;
|
|
8615
8944
|
}
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
case "symbol": {
|
|
8619
|
-
if (this.unrepresentable === "throw") {
|
|
8620
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8945
|
+
case "any": {
|
|
8946
|
+
break;
|
|
8621
8947
|
}
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
case "undefined": {
|
|
8625
|
-
const json$1 = _json;
|
|
8626
|
-
json$1.type = "null";
|
|
8627
|
-
break;
|
|
8628
|
-
}
|
|
8629
|
-
case "null": {
|
|
8630
|
-
_json.type = "null";
|
|
8631
|
-
break;
|
|
8632
|
-
}
|
|
8633
|
-
case "any": {
|
|
8634
|
-
break;
|
|
8635
|
-
}
|
|
8636
|
-
case "unknown": {
|
|
8637
|
-
break;
|
|
8638
|
-
}
|
|
8639
|
-
case "never": {
|
|
8640
|
-
_json.not = {};
|
|
8641
|
-
break;
|
|
8642
|
-
}
|
|
8643
|
-
case "void": {
|
|
8644
|
-
if (this.unrepresentable === "throw") {
|
|
8645
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
8948
|
+
case "unknown": {
|
|
8949
|
+
break;
|
|
8646
8950
|
}
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8951
|
+
case "undefined": {
|
|
8952
|
+
if (this.unrepresentable === "throw") {
|
|
8953
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
8954
|
+
}
|
|
8955
|
+
break;
|
|
8652
8956
|
}
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8659
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8660
|
-
json$1.type = "array";
|
|
8661
|
-
json$1.items = this.process(def.element, {
|
|
8662
|
-
...params,
|
|
8663
|
-
path: [...params.path, "items"]
|
|
8664
|
-
});
|
|
8665
|
-
break;
|
|
8666
|
-
}
|
|
8667
|
-
case "object": {
|
|
8668
|
-
const json$1 = _json;
|
|
8669
|
-
json$1.type = "object";
|
|
8670
|
-
json$1.properties = {};
|
|
8671
|
-
const shape = def.shape;
|
|
8672
|
-
for (const key in shape) {
|
|
8673
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
8674
|
-
...params,
|
|
8675
|
-
path: [
|
|
8676
|
-
...params.path,
|
|
8677
|
-
"properties",
|
|
8678
|
-
key
|
|
8679
|
-
]
|
|
8680
|
-
});
|
|
8957
|
+
case "void": {
|
|
8958
|
+
if (this.unrepresentable === "throw") {
|
|
8959
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
8960
|
+
}
|
|
8961
|
+
break;
|
|
8681
8962
|
}
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8963
|
+
case "never": {
|
|
8964
|
+
_json.not = {};
|
|
8965
|
+
break;
|
|
8966
|
+
}
|
|
8967
|
+
case "date": {
|
|
8968
|
+
if (this.unrepresentable === "throw") {
|
|
8969
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
8689
8970
|
}
|
|
8690
|
-
|
|
8691
|
-
if (requiredKeys.size > 0) {
|
|
8692
|
-
json$1.required = Array.from(requiredKeys);
|
|
8971
|
+
break;
|
|
8693
8972
|
}
|
|
8694
|
-
|
|
8695
|
-
json$1
|
|
8696
|
-
|
|
8697
|
-
if (
|
|
8698
|
-
|
|
8699
|
-
json$1.
|
|
8973
|
+
case "array": {
|
|
8974
|
+
const json$1 = _json;
|
|
8975
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
8976
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8977
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8978
|
+
json$1.type = "array";
|
|
8979
|
+
json$1.items = this.process(def.element, {
|
|
8700
8980
|
...params,
|
|
8701
|
-
path: [...params.path, "
|
|
8981
|
+
path: [...params.path, "items"]
|
|
8702
8982
|
});
|
|
8983
|
+
break;
|
|
8703
8984
|
}
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
const json$1 = _json;
|
|
8743
|
-
json$1.type = "array";
|
|
8744
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8745
|
-
...params,
|
|
8746
|
-
path: [
|
|
8747
|
-
...params.path,
|
|
8748
|
-
"prefixItems",
|
|
8749
|
-
i
|
|
8750
|
-
]
|
|
8751
|
-
}));
|
|
8752
|
-
if (this.target === "draft-2020-12") {
|
|
8753
|
-
json$1.prefixItems = prefixItems;
|
|
8754
|
-
} else {
|
|
8755
|
-
json$1.items = prefixItems;
|
|
8985
|
+
case "object": {
|
|
8986
|
+
const json$1 = _json;
|
|
8987
|
+
json$1.type = "object";
|
|
8988
|
+
json$1.properties = {};
|
|
8989
|
+
const shape = def.shape;
|
|
8990
|
+
for (const key in shape) {
|
|
8991
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
8992
|
+
...params,
|
|
8993
|
+
path: [
|
|
8994
|
+
...params.path,
|
|
8995
|
+
"properties",
|
|
8996
|
+
key
|
|
8997
|
+
]
|
|
8998
|
+
});
|
|
8999
|
+
}
|
|
9000
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9001
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9002
|
+
const v = def.shape[key]._zod;
|
|
9003
|
+
if (this.io === "input") {
|
|
9004
|
+
return v.optin === undefined;
|
|
9005
|
+
} else {
|
|
9006
|
+
return v.optout === undefined;
|
|
9007
|
+
}
|
|
9008
|
+
}));
|
|
9009
|
+
if (requiredKeys.size > 0) {
|
|
9010
|
+
json$1.required = Array.from(requiredKeys);
|
|
9011
|
+
}
|
|
9012
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9013
|
+
json$1.additionalProperties = false;
|
|
9014
|
+
} else if (!def.catchall) {
|
|
9015
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9016
|
+
} else if (def.catchall) {
|
|
9017
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9018
|
+
...params,
|
|
9019
|
+
path: [...params.path, "additionalProperties"]
|
|
9020
|
+
});
|
|
9021
|
+
}
|
|
9022
|
+
break;
|
|
8756
9023
|
}
|
|
8757
|
-
|
|
8758
|
-
const
|
|
9024
|
+
case "union": {
|
|
9025
|
+
const json$1 = _json;
|
|
9026
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8759
9027
|
...params,
|
|
8760
|
-
path: [
|
|
9028
|
+
path: [
|
|
9029
|
+
...params.path,
|
|
9030
|
+
"anyOf",
|
|
9031
|
+
i
|
|
9032
|
+
]
|
|
9033
|
+
}));
|
|
9034
|
+
break;
|
|
9035
|
+
}
|
|
9036
|
+
case "intersection": {
|
|
9037
|
+
const json$1 = _json;
|
|
9038
|
+
const a = this.process(def.left, {
|
|
9039
|
+
...params,
|
|
9040
|
+
path: [
|
|
9041
|
+
...params.path,
|
|
9042
|
+
"allOf",
|
|
9043
|
+
0
|
|
9044
|
+
]
|
|
9045
|
+
});
|
|
9046
|
+
const b = this.process(def.right, {
|
|
9047
|
+
...params,
|
|
9048
|
+
path: [
|
|
9049
|
+
...params.path,
|
|
9050
|
+
"allOf",
|
|
9051
|
+
1
|
|
9052
|
+
]
|
|
8761
9053
|
});
|
|
9054
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9055
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9056
|
+
json$1.allOf = allOf;
|
|
9057
|
+
break;
|
|
9058
|
+
}
|
|
9059
|
+
case "tuple": {
|
|
9060
|
+
const json$1 = _json;
|
|
9061
|
+
json$1.type = "array";
|
|
9062
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9063
|
+
...params,
|
|
9064
|
+
path: [
|
|
9065
|
+
...params.path,
|
|
9066
|
+
"prefixItems",
|
|
9067
|
+
i
|
|
9068
|
+
]
|
|
9069
|
+
}));
|
|
8762
9070
|
if (this.target === "draft-2020-12") {
|
|
8763
|
-
json$1.
|
|
9071
|
+
json$1.prefixItems = prefixItems;
|
|
8764
9072
|
} else {
|
|
8765
|
-
json$1.
|
|
9073
|
+
json$1.items = prefixItems;
|
|
9074
|
+
}
|
|
9075
|
+
if (def.rest) {
|
|
9076
|
+
const rest = this.process(def.rest, {
|
|
9077
|
+
...params,
|
|
9078
|
+
path: [...params.path, "items"]
|
|
9079
|
+
});
|
|
9080
|
+
if (this.target === "draft-2020-12") {
|
|
9081
|
+
json$1.items = rest;
|
|
9082
|
+
} else {
|
|
9083
|
+
json$1.additionalItems = rest;
|
|
9084
|
+
}
|
|
8766
9085
|
}
|
|
9086
|
+
if (def.rest) {
|
|
9087
|
+
json$1.items = this.process(def.rest, {
|
|
9088
|
+
...params,
|
|
9089
|
+
path: [...params.path, "items"]
|
|
9090
|
+
});
|
|
9091
|
+
}
|
|
9092
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9093
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9094
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9095
|
+
break;
|
|
8767
9096
|
}
|
|
8768
|
-
|
|
8769
|
-
json$1
|
|
9097
|
+
case "record": {
|
|
9098
|
+
const json$1 = _json;
|
|
9099
|
+
json$1.type = "object";
|
|
9100
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8770
9101
|
...params,
|
|
8771
|
-
path: [...params.path, "
|
|
9102
|
+
path: [...params.path, "propertyNames"]
|
|
8772
9103
|
});
|
|
9104
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9105
|
+
...params,
|
|
9106
|
+
path: [...params.path, "additionalProperties"]
|
|
9107
|
+
});
|
|
9108
|
+
break;
|
|
8773
9109
|
}
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
case "record": {
|
|
8780
|
-
const json$1 = _json;
|
|
8781
|
-
json$1.type = "object";
|
|
8782
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
8783
|
-
...params,
|
|
8784
|
-
path: [...params.path, "propertyNames"]
|
|
8785
|
-
});
|
|
8786
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8787
|
-
...params,
|
|
8788
|
-
path: [...params.path, "additionalProperties"]
|
|
8789
|
-
});
|
|
8790
|
-
break;
|
|
8791
|
-
}
|
|
8792
|
-
case "map": {
|
|
8793
|
-
if (this.unrepresentable === "throw") {
|
|
8794
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9110
|
+
case "map": {
|
|
9111
|
+
if (this.unrepresentable === "throw") {
|
|
9112
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9113
|
+
}
|
|
9114
|
+
break;
|
|
8795
9115
|
}
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
9116
|
+
case "set": {
|
|
9117
|
+
if (this.unrepresentable === "throw") {
|
|
9118
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9119
|
+
}
|
|
9120
|
+
break;
|
|
9121
|
+
}
|
|
9122
|
+
case "enum": {
|
|
9123
|
+
const json$1 = _json;
|
|
9124
|
+
const values = getEnumValues(def.entries);
|
|
9125
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9126
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9127
|
+
json$1.enum = values;
|
|
9128
|
+
break;
|
|
8801
9129
|
}
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
if (val === undefined) {
|
|
8817
|
-
if (this.unrepresentable === "throw") {
|
|
8818
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8819
|
-
} else {}
|
|
8820
|
-
} else if (typeof val === "bigint") {
|
|
8821
|
-
if (this.unrepresentable === "throw") {
|
|
8822
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9130
|
+
case "literal": {
|
|
9131
|
+
const json$1 = _json;
|
|
9132
|
+
const vals = [];
|
|
9133
|
+
for (const val of def.values) {
|
|
9134
|
+
if (val === undefined) {
|
|
9135
|
+
if (this.unrepresentable === "throw") {
|
|
9136
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9137
|
+
} else {}
|
|
9138
|
+
} else if (typeof val === "bigint") {
|
|
9139
|
+
if (this.unrepresentable === "throw") {
|
|
9140
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9141
|
+
} else {
|
|
9142
|
+
vals.push(Number(val));
|
|
9143
|
+
}
|
|
8823
9144
|
} else {
|
|
8824
|
-
vals.push(
|
|
9145
|
+
vals.push(val);
|
|
8825
9146
|
}
|
|
9147
|
+
}
|
|
9148
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9149
|
+
const val = vals[0];
|
|
9150
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9151
|
+
json$1.const = val;
|
|
8826
9152
|
} else {
|
|
8827
|
-
vals.
|
|
9153
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9154
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9155
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9156
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9157
|
+
json$1.enum = vals;
|
|
8828
9158
|
}
|
|
9159
|
+
break;
|
|
8829
9160
|
}
|
|
8830
|
-
|
|
8831
|
-
const
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
if (
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
if (mime) {
|
|
8854
|
-
if (mime.length === 1) {
|
|
8855
|
-
file$1.contentMediaType = mime[0];
|
|
8856
|
-
Object.assign(json$1, file$1);
|
|
9161
|
+
case "file": {
|
|
9162
|
+
const json$1 = _json;
|
|
9163
|
+
const file$1 = {
|
|
9164
|
+
type: "string",
|
|
9165
|
+
format: "binary",
|
|
9166
|
+
contentEncoding: "binary"
|
|
9167
|
+
};
|
|
9168
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9169
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9170
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9171
|
+
if (mime) {
|
|
9172
|
+
if (mime.length === 1) {
|
|
9173
|
+
file$1.contentMediaType = mime[0];
|
|
9174
|
+
Object.assign(json$1, file$1);
|
|
9175
|
+
} else {
|
|
9176
|
+
json$1.anyOf = mime.map((m) => {
|
|
9177
|
+
const mFile = {
|
|
9178
|
+
...file$1,
|
|
9179
|
+
contentMediaType: m
|
|
9180
|
+
};
|
|
9181
|
+
return mFile;
|
|
9182
|
+
});
|
|
9183
|
+
}
|
|
8857
9184
|
} else {
|
|
8858
|
-
json$1
|
|
8859
|
-
const mFile = {
|
|
8860
|
-
...file$1,
|
|
8861
|
-
contentMediaType: m
|
|
8862
|
-
};
|
|
8863
|
-
return mFile;
|
|
8864
|
-
});
|
|
9185
|
+
Object.assign(json$1, file$1);
|
|
8865
9186
|
}
|
|
8866
|
-
|
|
8867
|
-
Object.assign(json$1, file$1);
|
|
9187
|
+
break;
|
|
8868
9188
|
}
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
9189
|
+
case "transform": {
|
|
9190
|
+
if (this.unrepresentable === "throw") {
|
|
9191
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9192
|
+
}
|
|
9193
|
+
break;
|
|
8874
9194
|
}
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
8880
|
-
break;
|
|
8881
|
-
}
|
|
8882
|
-
case "nonoptional": {
|
|
8883
|
-
this.process(def.innerType, params);
|
|
8884
|
-
result.ref = def.innerType;
|
|
8885
|
-
break;
|
|
8886
|
-
}
|
|
8887
|
-
case "success": {
|
|
8888
|
-
const json$1 = _json;
|
|
8889
|
-
json$1.type = "boolean";
|
|
8890
|
-
break;
|
|
8891
|
-
}
|
|
8892
|
-
case "default": {
|
|
8893
|
-
this.process(def.innerType, params);
|
|
8894
|
-
result.ref = def.innerType;
|
|
8895
|
-
_json.default = def.defaultValue;
|
|
8896
|
-
break;
|
|
8897
|
-
}
|
|
8898
|
-
case "prefault": {
|
|
8899
|
-
this.process(def.innerType, params);
|
|
8900
|
-
result.ref = def.innerType;
|
|
8901
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8902
|
-
break;
|
|
8903
|
-
}
|
|
8904
|
-
case "catch": {
|
|
8905
|
-
this.process(def.innerType, params);
|
|
8906
|
-
result.ref = def.innerType;
|
|
8907
|
-
let catchValue;
|
|
8908
|
-
try {
|
|
8909
|
-
catchValue = def.catchValue(undefined);
|
|
8910
|
-
} catch {
|
|
8911
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9195
|
+
case "nullable": {
|
|
9196
|
+
const inner = this.process(def.innerType, params);
|
|
9197
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9198
|
+
break;
|
|
8912
9199
|
}
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
if (this.unrepresentable === "throw") {
|
|
8918
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9200
|
+
case "nonoptional": {
|
|
9201
|
+
this.process(def.innerType, params);
|
|
9202
|
+
result.ref = def.innerType;
|
|
9203
|
+
break;
|
|
8919
9204
|
}
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
9205
|
+
case "success": {
|
|
9206
|
+
const json$1 = _json;
|
|
9207
|
+
json$1.type = "boolean";
|
|
9208
|
+
break;
|
|
9209
|
+
}
|
|
9210
|
+
case "default": {
|
|
9211
|
+
this.process(def.innerType, params);
|
|
9212
|
+
result.ref = def.innerType;
|
|
9213
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9214
|
+
break;
|
|
9215
|
+
}
|
|
9216
|
+
case "prefault": {
|
|
9217
|
+
this.process(def.innerType, params);
|
|
9218
|
+
result.ref = def.innerType;
|
|
9219
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9220
|
+
break;
|
|
9221
|
+
}
|
|
9222
|
+
case "catch": {
|
|
9223
|
+
this.process(def.innerType, params);
|
|
9224
|
+
result.ref = def.innerType;
|
|
9225
|
+
let catchValue;
|
|
9226
|
+
try {
|
|
9227
|
+
catchValue = def.catchValue(undefined);
|
|
9228
|
+
} catch {
|
|
9229
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9230
|
+
}
|
|
9231
|
+
_json.default = catchValue;
|
|
9232
|
+
break;
|
|
9233
|
+
}
|
|
9234
|
+
case "nan": {
|
|
9235
|
+
if (this.unrepresentable === "throw") {
|
|
9236
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9237
|
+
}
|
|
9238
|
+
break;
|
|
9239
|
+
}
|
|
9240
|
+
case "template_literal": {
|
|
9241
|
+
const json$1 = _json;
|
|
9242
|
+
const pattern = schema._zod.pattern;
|
|
9243
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9244
|
+
json$1.type = "string";
|
|
9245
|
+
json$1.pattern = pattern.source;
|
|
9246
|
+
break;
|
|
9247
|
+
}
|
|
9248
|
+
case "pipe": {
|
|
9249
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9250
|
+
this.process(innerType, params);
|
|
9251
|
+
result.ref = innerType;
|
|
9252
|
+
break;
|
|
9253
|
+
}
|
|
9254
|
+
case "readonly": {
|
|
9255
|
+
this.process(def.innerType, params);
|
|
9256
|
+
result.ref = def.innerType;
|
|
9257
|
+
_json.readOnly = true;
|
|
9258
|
+
break;
|
|
9259
|
+
}
|
|
9260
|
+
case "promise": {
|
|
9261
|
+
this.process(def.innerType, params);
|
|
9262
|
+
result.ref = def.innerType;
|
|
9263
|
+
break;
|
|
9264
|
+
}
|
|
9265
|
+
case "optional": {
|
|
9266
|
+
this.process(def.innerType, params);
|
|
9267
|
+
result.ref = def.innerType;
|
|
9268
|
+
break;
|
|
9269
|
+
}
|
|
9270
|
+
case "lazy": {
|
|
9271
|
+
const innerType = schema._zod.innerType;
|
|
9272
|
+
this.process(innerType, params);
|
|
9273
|
+
result.ref = innerType;
|
|
9274
|
+
break;
|
|
9275
|
+
}
|
|
9276
|
+
case "custom": {
|
|
9277
|
+
if (this.unrepresentable === "throw") {
|
|
9278
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9279
|
+
}
|
|
9280
|
+
break;
|
|
9281
|
+
}
|
|
9282
|
+
default: {
|
|
9283
|
+
def;
|
|
8961
9284
|
}
|
|
8962
|
-
break;
|
|
8963
|
-
}
|
|
8964
|
-
default: {
|
|
8965
|
-
def;
|
|
8966
9285
|
}
|
|
8967
9286
|
}
|
|
8968
9287
|
}
|
|
@@ -8989,12 +9308,15 @@ var JSONSchemaGenerator = class {
|
|
|
8989
9308
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
8990
9309
|
if (params.external) {
|
|
8991
9310
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
8992
|
-
|
|
9311
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9312
|
+
if (externalId) {
|
|
9313
|
+
return { ref: uriGenerator(externalId) };
|
|
9314
|
+
}
|
|
8993
9315
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
8994
9316
|
entry[1].defId = id;
|
|
8995
9317
|
return {
|
|
8996
9318
|
defId: id,
|
|
8997
|
-
ref: `${
|
|
9319
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
8998
9320
|
};
|
|
8999
9321
|
}
|
|
9000
9322
|
if (entry[1] === root) {
|
|
@@ -9022,6 +9344,14 @@ var JSONSchemaGenerator = class {
|
|
|
9022
9344
|
}
|
|
9023
9345
|
schema$1.$ref = ref;
|
|
9024
9346
|
};
|
|
9347
|
+
if (params.cycles === "throw") {
|
|
9348
|
+
for (const entry of this.seen.entries()) {
|
|
9349
|
+
const seen = entry[1];
|
|
9350
|
+
if (seen.cycle) {
|
|
9351
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
}
|
|
9025
9355
|
for (const entry of this.seen.entries()) {
|
|
9026
9356
|
const seen = entry[1];
|
|
9027
9357
|
if (schema === entry[0]) {
|
|
@@ -9041,11 +9371,7 @@ var JSONSchemaGenerator = class {
|
|
|
9041
9371
|
continue;
|
|
9042
9372
|
}
|
|
9043
9373
|
if (seen.cycle) {
|
|
9044
|
-
|
|
9045
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9046
|
-
} else if (params.cycles === "ref") {
|
|
9047
|
-
extractToDef(entry);
|
|
9048
|
-
}
|
|
9374
|
+
extractToDef(entry);
|
|
9049
9375
|
continue;
|
|
9050
9376
|
}
|
|
9051
9377
|
if (seen.count > 1) {
|
|
@@ -9077,7 +9403,8 @@ var JSONSchemaGenerator = class {
|
|
|
9077
9403
|
}
|
|
9078
9404
|
if (!seen.isParent) this.override({
|
|
9079
9405
|
zodSchema,
|
|
9080
|
-
jsonSchema: schema$1
|
|
9406
|
+
jsonSchema: schema$1,
|
|
9407
|
+
path: seen.path ?? []
|
|
9081
9408
|
});
|
|
9082
9409
|
};
|
|
9083
9410
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9091,6 +9418,11 @@ var JSONSchemaGenerator = class {
|
|
|
9091
9418
|
} else {
|
|
9092
9419
|
console.warn(`Invalid target: ${this.target}`);
|
|
9093
9420
|
}
|
|
9421
|
+
if (params.external?.uri) {
|
|
9422
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9423
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9424
|
+
result.$id = params.external.uri(id);
|
|
9425
|
+
}
|
|
9094
9426
|
Object.assign(result, root.def);
|
|
9095
9427
|
const defs = params.external?.defs ?? {};
|
|
9096
9428
|
for (const entry of this.seen.entries()) {
|
|
@@ -9099,11 +9431,13 @@ var JSONSchemaGenerator = class {
|
|
|
9099
9431
|
defs[seen.defId] = seen.def;
|
|
9100
9432
|
}
|
|
9101
9433
|
}
|
|
9102
|
-
if (
|
|
9103
|
-
if (
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9434
|
+
if (params.external) {} else {
|
|
9435
|
+
if (Object.keys(defs).length > 0) {
|
|
9436
|
+
if (this.target === "draft-2020-12") {
|
|
9437
|
+
result.$defs = defs;
|
|
9438
|
+
} else {
|
|
9439
|
+
result.definitions = defs;
|
|
9440
|
+
}
|
|
9107
9441
|
}
|
|
9108
9442
|
}
|
|
9109
9443
|
try {
|
|
@@ -9124,7 +9458,7 @@ function toJSONSchema(input, _params) {
|
|
|
9124
9458
|
const schemas = {};
|
|
9125
9459
|
const external = {
|
|
9126
9460
|
registry: input,
|
|
9127
|
-
uri: _params?.uri
|
|
9461
|
+
uri: _params?.uri,
|
|
9128
9462
|
defs
|
|
9129
9463
|
};
|
|
9130
9464
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9235,11 +9569,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9235
9569
|
}
|
|
9236
9570
|
|
|
9237
9571
|
//#endregion
|
|
9238
|
-
//#region ../../node_modules/zod/
|
|
9572
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9239
9573
|
var json_schema_exports = {};
|
|
9240
9574
|
|
|
9241
9575
|
//#endregion
|
|
9242
|
-
//#region ../../node_modules/zod/
|
|
9576
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9243
9577
|
var core_exports = {};
|
|
9244
9578
|
__export(core_exports, {
|
|
9245
9579
|
$ZodAny: () => $ZodAny,
|
|
@@ -9278,6 +9612,7 @@ __export(core_exports, {
|
|
|
9278
9612
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9279
9613
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9280
9614
|
$ZodCustom: () => $ZodCustom,
|
|
9615
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9281
9616
|
$ZodDate: () => $ZodDate,
|
|
9282
9617
|
$ZodDefault: () => $ZodDefault,
|
|
9283
9618
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9342,6 +9677,8 @@ __export(core_exports, {
|
|
|
9342
9677
|
Doc: () => Doc,
|
|
9343
9678
|
JSONSchema: () => json_schema_exports,
|
|
9344
9679
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9680
|
+
NEVER: () => NEVER,
|
|
9681
|
+
TimePrecision: () => TimePrecision,
|
|
9345
9682
|
_any: () => _any,
|
|
9346
9683
|
_array: () => _array,
|
|
9347
9684
|
_base64: () => _base64,
|
|
@@ -9431,6 +9768,7 @@ __export(core_exports, {
|
|
|
9431
9768
|
_size: () => _size,
|
|
9432
9769
|
_startsWith: () => _startsWith,
|
|
9433
9770
|
_string: () => _string,
|
|
9771
|
+
_stringFormat: () => _stringFormat,
|
|
9434
9772
|
_stringbool: () => _stringbool,
|
|
9435
9773
|
_success: () => _success,
|
|
9436
9774
|
_symbol: () => _symbol,
|
|
@@ -9480,7 +9818,7 @@ __export(core_exports, {
|
|
|
9480
9818
|
});
|
|
9481
9819
|
|
|
9482
9820
|
//#endregion
|
|
9483
|
-
//#region ../../node_modules/zod/
|
|
9821
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9484
9822
|
var iso_exports = {};
|
|
9485
9823
|
__export(iso_exports, {
|
|
9486
9824
|
ZodISODate: () => ZodISODate,
|
|
@@ -9522,7 +9860,7 @@ function duration(params) {
|
|
|
9522
9860
|
}
|
|
9523
9861
|
|
|
9524
9862
|
//#endregion
|
|
9525
|
-
//#region ../../node_modules/zod/
|
|
9863
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9526
9864
|
const initializer = (inst, issues) => {
|
|
9527
9865
|
$ZodError.init(inst, issues);
|
|
9528
9866
|
inst.name = "ZodError";
|
|
@@ -9540,14 +9878,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9540
9878
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9541
9879
|
|
|
9542
9880
|
//#endregion
|
|
9543
|
-
//#region ../../node_modules/zod/
|
|
9881
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9544
9882
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9545
9883
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9546
9884
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9547
9885
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9548
9886
|
|
|
9549
9887
|
//#endregion
|
|
9550
|
-
//#region ../../node_modules/zod/
|
|
9888
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9551
9889
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9552
9890
|
$ZodType.init(inst, def);
|
|
9553
9891
|
inst.def = def;
|
|
@@ -9815,6 +10153,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
9815
10153
|
function jwt(params) {
|
|
9816
10154
|
return _jwt(ZodJWT, params);
|
|
9817
10155
|
}
|
|
10156
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10157
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10158
|
+
ZodStringFormat.init(inst, def);
|
|
10159
|
+
});
|
|
10160
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10161
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10162
|
+
}
|
|
9818
10163
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
9819
10164
|
$ZodNumber.init(inst, def);
|
|
9820
10165
|
ZodType.init(inst, def);
|
|
@@ -9984,9 +10329,7 @@ function keyof(schema) {
|
|
|
9984
10329
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
9985
10330
|
$ZodObject.init(inst, def);
|
|
9986
10331
|
ZodType.init(inst, def);
|
|
9987
|
-
defineLazy(inst, "shape", () =>
|
|
9988
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
9989
|
-
});
|
|
10332
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
9990
10333
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
9991
10334
|
inst.catchall = (catchall) => inst.clone({
|
|
9992
10335
|
...inst._zod.def,
|
|
@@ -10431,11 +10774,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10431
10774
|
$ZodCustom.init(inst, def);
|
|
10432
10775
|
ZodType.init(inst, def);
|
|
10433
10776
|
});
|
|
10434
|
-
function check(fn
|
|
10435
|
-
const ch = new $ZodCheck({
|
|
10436
|
-
check: "custom",
|
|
10437
|
-
...normalizeParams(params)
|
|
10438
|
-
});
|
|
10777
|
+
function check(fn) {
|
|
10778
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10439
10779
|
ch._zod.check = fn;
|
|
10440
10780
|
return ch;
|
|
10441
10781
|
}
|
|
@@ -10445,7 +10785,7 @@ function custom(fn, _params) {
|
|
|
10445
10785
|
function refine(fn, _params = {}) {
|
|
10446
10786
|
return _refine(ZodCustom, fn, _params);
|
|
10447
10787
|
}
|
|
10448
|
-
function superRefine(fn
|
|
10788
|
+
function superRefine(fn) {
|
|
10449
10789
|
const ch = check((payload) => {
|
|
10450
10790
|
payload.addIssue = (issue$1) => {
|
|
10451
10791
|
if (typeof issue$1 === "string") {
|
|
@@ -10461,7 +10801,7 @@ function superRefine(fn, params) {
|
|
|
10461
10801
|
}
|
|
10462
10802
|
};
|
|
10463
10803
|
return fn(payload.value, payload);
|
|
10464
|
-
}
|
|
10804
|
+
});
|
|
10465
10805
|
return ch;
|
|
10466
10806
|
}
|
|
10467
10807
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10499,7 +10839,7 @@ function preprocess(fn, schema) {
|
|
|
10499
10839
|
}
|
|
10500
10840
|
|
|
10501
10841
|
//#endregion
|
|
10502
|
-
//#region ../../node_modules/zod/
|
|
10842
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10503
10843
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10504
10844
|
const ZodIssueCode = {
|
|
10505
10845
|
invalid_type: "invalid_type",
|
|
@@ -10514,10 +10854,6 @@ const ZodIssueCode = {
|
|
|
10514
10854
|
invalid_value: "invalid_value",
|
|
10515
10855
|
custom: "custom"
|
|
10516
10856
|
};
|
|
10517
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10518
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10519
|
-
/** A special constant with type `never` */
|
|
10520
|
-
const NEVER = INVALID;
|
|
10521
10857
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10522
10858
|
function setErrorMap(map$1) {
|
|
10523
10859
|
config({ customError: map$1 });
|
|
@@ -10528,7 +10864,7 @@ function getErrorMap() {
|
|
|
10528
10864
|
}
|
|
10529
10865
|
|
|
10530
10866
|
//#endregion
|
|
10531
|
-
//#region ../../node_modules/zod/
|
|
10867
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10532
10868
|
var coerce_exports = {};
|
|
10533
10869
|
__export(coerce_exports, {
|
|
10534
10870
|
bigint: () => bigint,
|
|
@@ -10554,13 +10890,14 @@ function date(params) {
|
|
|
10554
10890
|
}
|
|
10555
10891
|
|
|
10556
10892
|
//#endregion
|
|
10557
|
-
//#region ../../node_modules/zod/
|
|
10893
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10558
10894
|
var external_exports = {};
|
|
10559
10895
|
__export(external_exports, {
|
|
10560
10896
|
$brand: () => $brand,
|
|
10561
10897
|
$input: () => $input,
|
|
10562
10898
|
$output: () => $output,
|
|
10563
10899
|
NEVER: () => NEVER,
|
|
10900
|
+
TimePrecision: () => TimePrecision,
|
|
10564
10901
|
ZodAny: () => ZodAny,
|
|
10565
10902
|
ZodArray: () => ZodArray,
|
|
10566
10903
|
ZodBase64: () => ZodBase64,
|
|
@@ -10574,6 +10911,7 @@ __export(external_exports, {
|
|
|
10574
10911
|
ZodCUID2: () => ZodCUID2,
|
|
10575
10912
|
ZodCatch: () => ZodCatch,
|
|
10576
10913
|
ZodCustom: () => ZodCustom,
|
|
10914
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
10577
10915
|
ZodDate: () => ZodDate,
|
|
10578
10916
|
ZodDefault: () => ZodDefault,
|
|
10579
10917
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -10735,6 +11073,7 @@ __export(external_exports, {
|
|
|
10735
11073
|
startsWith: () => _startsWith,
|
|
10736
11074
|
strictObject: () => strictObject,
|
|
10737
11075
|
string: () => string$1,
|
|
11076
|
+
stringFormat: () => stringFormat,
|
|
10738
11077
|
stringbool: () => stringbool,
|
|
10739
11078
|
success: () => success,
|
|
10740
11079
|
superRefine: () => superRefine,
|
|
@@ -10765,11 +11104,11 @@ __export(external_exports, {
|
|
|
10765
11104
|
config(en_default());
|
|
10766
11105
|
|
|
10767
11106
|
//#endregion
|
|
10768
|
-
//#region ../../node_modules/zod/
|
|
11107
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10769
11108
|
var classic_default = external_exports;
|
|
10770
11109
|
|
|
10771
11110
|
//#endregion
|
|
10772
|
-
//#region ../../node_modules/zod/
|
|
11111
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
10773
11112
|
var v4_default = classic_default;
|
|
10774
11113
|
|
|
10775
11114
|
//#endregion
|
|
@@ -10790,12 +11129,12 @@ var v4_default = classic_default;
|
|
|
10790
11129
|
function validate(schema, value) {
|
|
10791
11130
|
try {
|
|
10792
11131
|
return schema.parse(value);
|
|
10793
|
-
} catch (error$
|
|
10794
|
-
if (error$
|
|
10795
|
-
const formattedErrors = error$
|
|
10796
|
-
throw new Error(`Validation error${error$
|
|
11132
|
+
} catch (error$39) {
|
|
11133
|
+
if (error$39 instanceof ZodError) {
|
|
11134
|
+
const formattedErrors = error$39.issues.map((err) => `- ${err.path.join(".")}: ${err.message}`).join("\n");
|
|
11135
|
+
throw new Error(`Validation error${error$39.issues.length > 1 ? "s" : ""}:\n${formattedErrors}`);
|
|
10797
11136
|
}
|
|
10798
|
-
throw error$
|
|
11137
|
+
throw error$39;
|
|
10799
11138
|
}
|
|
10800
11139
|
}
|
|
10801
11140
|
|