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