@settlemint/sdk-eas 2.4.1-prb593b885 → 2.4.1-prccf1e4e6
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.js +695 -1034
- package/dist/browser/eas.js.map +1 -1
- package/dist/eas.cjs +695 -1034
- package/dist/eas.cjs.map +1 -1
- package/dist/eas.js +695 -1034
- package/dist/eas.js.map +1 -1
- package/package.json +3 -3
package/dist/eas.cjs
CHANGED
|
@@ -106,9 +106,7 @@ const EAS_FIELD_TYPES = {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
//#endregion
|
|
109
|
-
//#region ../../node_modules/zod/v4/core/core.js
|
|
110
|
-
/** A special constant with type `never` */
|
|
111
|
-
const NEVER = Object.freeze({ status: "aborted" });
|
|
109
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/core.js
|
|
112
110
|
function $constructor(name, initializer$2, params) {
|
|
113
111
|
function init(inst, def) {
|
|
114
112
|
var _a;
|
|
@@ -159,7 +157,7 @@ function config(newConfig) {
|
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
//#endregion
|
|
162
|
-
//#region ../../node_modules/zod/v4/core/util.js
|
|
160
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/util.js
|
|
163
161
|
var util_exports = {};
|
|
164
162
|
__export(util_exports, {
|
|
165
163
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -174,7 +172,6 @@ __export(util_exports, {
|
|
|
174
172
|
assertNotEqual: () => assertNotEqual,
|
|
175
173
|
assignProp: () => assignProp,
|
|
176
174
|
cached: () => cached,
|
|
177
|
-
captureStackTrace: () => captureStackTrace,
|
|
178
175
|
cleanEnum: () => cleanEnum,
|
|
179
176
|
cleanRegex: () => cleanRegex,
|
|
180
177
|
clone: () => clone,
|
|
@@ -313,14 +310,10 @@ function randomString(length = 10) {
|
|
|
313
310
|
function esc(str) {
|
|
314
311
|
return JSON.stringify(str);
|
|
315
312
|
}
|
|
316
|
-
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
317
313
|
function isObject(data) {
|
|
318
314
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
319
315
|
}
|
|
320
316
|
const allowsEval = cached(() => {
|
|
321
|
-
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
322
|
-
return false;
|
|
323
|
-
}
|
|
324
317
|
try {
|
|
325
318
|
const F = Function;
|
|
326
319
|
new F("");
|
|
@@ -329,6 +322,9 @@ const allowsEval = cached(() => {
|
|
|
329
322
|
return false;
|
|
330
323
|
}
|
|
331
324
|
});
|
|
325
|
+
function _isObject(o) {
|
|
326
|
+
return Object.prototype.toString.call(o) === "[object Object]";
|
|
327
|
+
}
|
|
332
328
|
function isPlainObject(o) {
|
|
333
329
|
if (isObject(o) === false) return false;
|
|
334
330
|
const ctor = o.constructor;
|
|
@@ -508,9 +504,6 @@ function omit(schema, mask) {
|
|
|
508
504
|
});
|
|
509
505
|
}
|
|
510
506
|
function extend(schema, shape) {
|
|
511
|
-
if (!isPlainObject(shape)) {
|
|
512
|
-
throw new Error("Invalid input to extend: expected a plain object");
|
|
513
|
-
}
|
|
514
507
|
const def = {
|
|
515
508
|
...schema._zod.def,
|
|
516
509
|
get shape() {
|
|
@@ -598,7 +591,7 @@ function required(Class$1, schema, mask) {
|
|
|
598
591
|
}
|
|
599
592
|
function aborted(x, startIndex = 0) {
|
|
600
593
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
601
|
-
if (x.issues[i]
|
|
594
|
+
if (x.issues[i].continue !== true) return true;
|
|
602
595
|
}
|
|
603
596
|
return false;
|
|
604
597
|
}
|
|
@@ -662,7 +655,7 @@ var Class = class {
|
|
|
662
655
|
};
|
|
663
656
|
|
|
664
657
|
//#endregion
|
|
665
|
-
//#region ../../node_modules/zod/v4/core/errors.js
|
|
658
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/errors.js
|
|
666
659
|
const initializer$1 = (inst, def) => {
|
|
667
660
|
inst.name = "$ZodError";
|
|
668
661
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -679,17 +672,13 @@ const initializer$1 = (inst, def) => {
|
|
|
679
672
|
},
|
|
680
673
|
enumerable: true
|
|
681
674
|
});
|
|
682
|
-
Object.defineProperty(inst, "toString", {
|
|
683
|
-
value: () => inst.message,
|
|
684
|
-
enumerable: false
|
|
685
|
-
});
|
|
686
675
|
};
|
|
687
676
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
688
677
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
689
|
-
function flattenError(error$
|
|
678
|
+
function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
690
679
|
const fieldErrors = {};
|
|
691
680
|
const formErrors = [];
|
|
692
|
-
for (const sub of error$
|
|
681
|
+
for (const sub of error$37.issues) {
|
|
693
682
|
if (sub.path.length > 0) {
|
|
694
683
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
695
684
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -702,13 +691,13 @@ function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
|
702
691
|
fieldErrors
|
|
703
692
|
};
|
|
704
693
|
}
|
|
705
|
-
function formatError(error$
|
|
694
|
+
function formatError(error$37, _mapper) {
|
|
706
695
|
const mapper = _mapper || function(issue$1) {
|
|
707
696
|
return issue$1.message;
|
|
708
697
|
};
|
|
709
698
|
const fieldErrors = { _errors: [] };
|
|
710
|
-
const processError = (error$
|
|
711
|
-
for (const issue$1 of error$
|
|
699
|
+
const processError = (error$38) => {
|
|
700
|
+
for (const issue$1 of error$38.issues) {
|
|
712
701
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
713
702
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
714
703
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -735,17 +724,17 @@ function formatError(error$39, _mapper) {
|
|
|
735
724
|
}
|
|
736
725
|
}
|
|
737
726
|
};
|
|
738
|
-
processError(error$
|
|
727
|
+
processError(error$37);
|
|
739
728
|
return fieldErrors;
|
|
740
729
|
}
|
|
741
|
-
function treeifyError(error$
|
|
730
|
+
function treeifyError(error$37, _mapper) {
|
|
742
731
|
const mapper = _mapper || function(issue$1) {
|
|
743
732
|
return issue$1.message;
|
|
744
733
|
};
|
|
745
734
|
const result = { errors: [] };
|
|
746
|
-
const processError = (error$
|
|
735
|
+
const processError = (error$38, path = []) => {
|
|
747
736
|
var _a, _b;
|
|
748
|
-
for (const issue$1 of error$
|
|
737
|
+
for (const issue$1 of error$38.issues) {
|
|
749
738
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
750
739
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
751
740
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -780,7 +769,7 @@ function treeifyError(error$39, _mapper) {
|
|
|
780
769
|
}
|
|
781
770
|
}
|
|
782
771
|
};
|
|
783
|
-
processError(error$
|
|
772
|
+
processError(error$37);
|
|
784
773
|
return result;
|
|
785
774
|
}
|
|
786
775
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -828,9 +817,9 @@ function toDotPath(path) {
|
|
|
828
817
|
}
|
|
829
818
|
return segs.join("");
|
|
830
819
|
}
|
|
831
|
-
function prettifyError(error$
|
|
820
|
+
function prettifyError(error$37) {
|
|
832
821
|
const lines = [];
|
|
833
|
-
const issues = [...error$
|
|
822
|
+
const issues = [...error$37.issues].sort((a, b) => a.path.length - b.path.length);
|
|
834
823
|
for (const issue$1 of issues) {
|
|
835
824
|
lines.push(`✖ ${issue$1.message}`);
|
|
836
825
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -839,7 +828,7 @@ function prettifyError(error$39) {
|
|
|
839
828
|
}
|
|
840
829
|
|
|
841
830
|
//#endregion
|
|
842
|
-
//#region ../../node_modules/zod/v4/core/parse.js
|
|
831
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/parse.js
|
|
843
832
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
844
833
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
845
834
|
const result = schema._zod.run({
|
|
@@ -851,7 +840,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
851
840
|
}
|
|
852
841
|
if (result.issues.length) {
|
|
853
842
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
854
|
-
captureStackTrace(e, _params?.callee);
|
|
843
|
+
Error.captureStackTrace(e, _params?.callee);
|
|
855
844
|
throw e;
|
|
856
845
|
}
|
|
857
846
|
return result.value;
|
|
@@ -866,7 +855,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
866
855
|
if (result instanceof Promise) result = await result;
|
|
867
856
|
if (result.issues.length) {
|
|
868
857
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
869
|
-
captureStackTrace(e, params?.callee);
|
|
858
|
+
Error.captureStackTrace(e, params?.callee);
|
|
870
859
|
throw e;
|
|
871
860
|
}
|
|
872
861
|
return result.value;
|
|
@@ -911,9 +900,10 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
911
900
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
912
901
|
|
|
913
902
|
//#endregion
|
|
914
|
-
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
903
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/regexes.js
|
|
915
904
|
var regexes_exports = {};
|
|
916
905
|
__export(regexes_exports, {
|
|
906
|
+
_emoji: () => _emoji$1,
|
|
917
907
|
base64: () => base64$1,
|
|
918
908
|
base64url: () => base64url$1,
|
|
919
909
|
bigint: () => bigint$2,
|
|
@@ -999,23 +989,27 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
999
989
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
1000
990
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1001
991
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
1002
|
-
const dateSource = `(
|
|
992
|
+
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])))`;
|
|
1003
993
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
1004
994
|
function timeSource(args) {
|
|
1005
|
-
|
|
1006
|
-
|
|
995
|
+
let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
|
|
996
|
+
if (args.precision) {
|
|
997
|
+
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
998
|
+
} else if (args.precision == null) {
|
|
999
|
+
regex = `${regex}(\\.\\d+)?`;
|
|
1000
|
+
}
|
|
1007
1001
|
return regex;
|
|
1008
1002
|
}
|
|
1009
1003
|
function time$1(args) {
|
|
1010
1004
|
return new RegExp(`^${timeSource(args)}$`);
|
|
1011
1005
|
}
|
|
1012
1006
|
function datetime$1(args) {
|
|
1013
|
-
|
|
1014
|
-
const opts = [
|
|
1015
|
-
|
|
1016
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
1017
|
-
|
|
1018
|
-
return new RegExp(`^${
|
|
1007
|
+
let regex = `${dateSource}T${timeSource(args)}`;
|
|
1008
|
+
const opts = [];
|
|
1009
|
+
opts.push(args.local ? `Z?` : `Z`);
|
|
1010
|
+
if (args.offset) opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
1011
|
+
regex = `${regex}(${opts.join("|")})`;
|
|
1012
|
+
return new RegExp(`^${regex}$`);
|
|
1019
1013
|
}
|
|
1020
1014
|
const string$2 = (params) => {
|
|
1021
1015
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1031,7 +1025,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
1031
1025
|
const uppercase = /^[^a-z]*$/;
|
|
1032
1026
|
|
|
1033
1027
|
//#endregion
|
|
1034
|
-
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1028
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/checks.js
|
|
1035
1029
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1036
1030
|
var _a;
|
|
1037
1031
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1222,12 +1216,11 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1222
1216
|
};
|
|
1223
1217
|
});
|
|
1224
1218
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1225
|
-
var _a;
|
|
1226
1219
|
$ZodCheck.init(inst, def);
|
|
1227
|
-
|
|
1220
|
+
inst._zod.when = (payload) => {
|
|
1228
1221
|
const val = payload.value;
|
|
1229
1222
|
return !nullish$1(val) && val.size !== undefined;
|
|
1230
|
-
}
|
|
1223
|
+
};
|
|
1231
1224
|
inst._zod.onattach.push((inst$1) => {
|
|
1232
1225
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1233
1226
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1247,12 +1240,11 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1247
1240
|
};
|
|
1248
1241
|
});
|
|
1249
1242
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1250
|
-
var _a;
|
|
1251
1243
|
$ZodCheck.init(inst, def);
|
|
1252
|
-
|
|
1244
|
+
inst._zod.when = (payload) => {
|
|
1253
1245
|
const val = payload.value;
|
|
1254
1246
|
return !nullish$1(val) && val.size !== undefined;
|
|
1255
|
-
}
|
|
1247
|
+
};
|
|
1256
1248
|
inst._zod.onattach.push((inst$1) => {
|
|
1257
1249
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1258
1250
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1272,12 +1264,11 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1272
1264
|
};
|
|
1273
1265
|
});
|
|
1274
1266
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1275
|
-
var _a;
|
|
1276
1267
|
$ZodCheck.init(inst, def);
|
|
1277
|
-
|
|
1268
|
+
inst._zod.when = (payload) => {
|
|
1278
1269
|
const val = payload.value;
|
|
1279
1270
|
return !nullish$1(val) && val.size !== undefined;
|
|
1280
|
-
}
|
|
1271
|
+
};
|
|
1281
1272
|
inst._zod.onattach.push((inst$1) => {
|
|
1282
1273
|
const bag = inst$1._zod.bag;
|
|
1283
1274
|
bag.minimum = def.size;
|
|
@@ -1298,8 +1289,6 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1298
1289
|
code: "too_small",
|
|
1299
1290
|
minimum: def.size
|
|
1300
1291
|
},
|
|
1301
|
-
inclusive: true,
|
|
1302
|
-
exact: true,
|
|
1303
1292
|
input: payload.value,
|
|
1304
1293
|
inst,
|
|
1305
1294
|
continue: !def.abort
|
|
@@ -1307,12 +1296,11 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1307
1296
|
};
|
|
1308
1297
|
});
|
|
1309
1298
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1310
|
-
var _a;
|
|
1311
1299
|
$ZodCheck.init(inst, def);
|
|
1312
|
-
|
|
1300
|
+
inst._zod.when = (payload) => {
|
|
1313
1301
|
const val = payload.value;
|
|
1314
1302
|
return !nullish$1(val) && val.length !== undefined;
|
|
1315
|
-
}
|
|
1303
|
+
};
|
|
1316
1304
|
inst._zod.onattach.push((inst$1) => {
|
|
1317
1305
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1318
1306
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1334,12 +1322,11 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1334
1322
|
};
|
|
1335
1323
|
});
|
|
1336
1324
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1337
|
-
var _a;
|
|
1338
1325
|
$ZodCheck.init(inst, def);
|
|
1339
|
-
|
|
1326
|
+
inst._zod.when = (payload) => {
|
|
1340
1327
|
const val = payload.value;
|
|
1341
1328
|
return !nullish$1(val) && val.length !== undefined;
|
|
1342
|
-
}
|
|
1329
|
+
};
|
|
1343
1330
|
inst._zod.onattach.push((inst$1) => {
|
|
1344
1331
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1345
1332
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1361,12 +1348,11 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1361
1348
|
};
|
|
1362
1349
|
});
|
|
1363
1350
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1364
|
-
var _a;
|
|
1365
1351
|
$ZodCheck.init(inst, def);
|
|
1366
|
-
|
|
1352
|
+
inst._zod.when = (payload) => {
|
|
1367
1353
|
const val = payload.value;
|
|
1368
1354
|
return !nullish$1(val) && val.length !== undefined;
|
|
1369
|
-
}
|
|
1355
|
+
};
|
|
1370
1356
|
inst._zod.onattach.push((inst$1) => {
|
|
1371
1357
|
const bag = inst$1._zod.bag;
|
|
1372
1358
|
bag.minimum = def.length;
|
|
@@ -1388,8 +1374,6 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1388
1374
|
code: "too_small",
|
|
1389
1375
|
minimum: def.length
|
|
1390
1376
|
},
|
|
1391
|
-
inclusive: true,
|
|
1392
|
-
exact: true,
|
|
1393
1377
|
input: payload.value,
|
|
1394
1378
|
inst,
|
|
1395
1379
|
continue: !def.abort
|
|
@@ -1397,7 +1381,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1397
1381
|
};
|
|
1398
1382
|
});
|
|
1399
1383
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1400
|
-
var _a
|
|
1384
|
+
var _a;
|
|
1401
1385
|
$ZodCheck.init(inst, def);
|
|
1402
1386
|
inst._zod.onattach.push((inst$1) => {
|
|
1403
1387
|
const bag = inst$1._zod.bag;
|
|
@@ -1407,7 +1391,8 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1407
1391
|
bag.patterns.add(def.pattern);
|
|
1408
1392
|
}
|
|
1409
1393
|
});
|
|
1410
|
-
|
|
1394
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1395
|
+
if (!def.pattern) throw new Error("Not implemented.");
|
|
1411
1396
|
def.pattern.lastIndex = 0;
|
|
1412
1397
|
if (def.pattern.test(payload.value)) return;
|
|
1413
1398
|
payload.issues.push({
|
|
@@ -1420,7 +1405,6 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1420
1405
|
continue: !def.abort
|
|
1421
1406
|
});
|
|
1422
1407
|
});
|
|
1423
|
-
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1424
1408
|
});
|
|
1425
1409
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1426
1410
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1544,6 +1528,7 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1544
1528
|
code: "invalid_value",
|
|
1545
1529
|
values: def.mime,
|
|
1546
1530
|
input: payload.value.type,
|
|
1531
|
+
path: ["type"],
|
|
1547
1532
|
inst
|
|
1548
1533
|
});
|
|
1549
1534
|
};
|
|
@@ -1556,7 +1541,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1556
1541
|
});
|
|
1557
1542
|
|
|
1558
1543
|
//#endregion
|
|
1559
|
-
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1544
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/doc.js
|
|
1560
1545
|
var Doc = class {
|
|
1561
1546
|
constructor(args = []) {
|
|
1562
1547
|
this.content = [];
|
|
@@ -1592,18 +1577,19 @@ var Doc = class {
|
|
|
1592
1577
|
};
|
|
1593
1578
|
|
|
1594
1579
|
//#endregion
|
|
1595
|
-
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1580
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/versions.js
|
|
1596
1581
|
const version = {
|
|
1597
1582
|
major: 4,
|
|
1598
1583
|
minor: 0,
|
|
1599
|
-
patch:
|
|
1584
|
+
patch: 0
|
|
1600
1585
|
};
|
|
1601
1586
|
|
|
1602
1587
|
//#endregion
|
|
1603
|
-
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1588
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/schemas.js
|
|
1604
1589
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1605
1590
|
var _a;
|
|
1606
1591
|
inst ?? (inst = {});
|
|
1592
|
+
inst._zod.id = def.type + "_" + randomString(10);
|
|
1607
1593
|
inst._zod.def = def;
|
|
1608
1594
|
inst._zod.bag = inst._zod.bag || {};
|
|
1609
1595
|
inst._zod.version = version;
|
|
@@ -1626,11 +1612,13 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1626
1612
|
let isAborted = aborted(payload);
|
|
1627
1613
|
let asyncResult;
|
|
1628
1614
|
for (const ch of checks$1) {
|
|
1629
|
-
if (ch._zod.
|
|
1630
|
-
const shouldRun = ch._zod.
|
|
1615
|
+
if (ch._zod.when) {
|
|
1616
|
+
const shouldRun = ch._zod.when(payload);
|
|
1631
1617
|
if (!shouldRun) continue;
|
|
1632
|
-
} else
|
|
1633
|
-
|
|
1618
|
+
} else {
|
|
1619
|
+
if (isAborted) {
|
|
1620
|
+
continue;
|
|
1621
|
+
}
|
|
1634
1622
|
}
|
|
1635
1623
|
const currLen = payload.issues.length;
|
|
1636
1624
|
const _ = ch._zod.check(payload);
|
|
@@ -1730,9 +1718,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1730
1718
|
$ZodStringFormat.init(inst, def);
|
|
1731
1719
|
inst._zod.check = (payload) => {
|
|
1732
1720
|
try {
|
|
1733
|
-
const
|
|
1734
|
-
const url$1 = new URL(orig);
|
|
1735
|
-
const href = url$1.href;
|
|
1721
|
+
const url$1 = new URL(payload.value);
|
|
1736
1722
|
if (def.hostname) {
|
|
1737
1723
|
def.hostname.lastIndex = 0;
|
|
1738
1724
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1761,11 +1747,6 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1761
1747
|
});
|
|
1762
1748
|
}
|
|
1763
1749
|
}
|
|
1764
|
-
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1765
|
-
payload.value = href.slice(0, -1);
|
|
1766
|
-
} else {
|
|
1767
|
-
payload.value = href;
|
|
1768
|
-
}
|
|
1769
1750
|
return;
|
|
1770
1751
|
} catch (_) {
|
|
1771
1752
|
payload.issues.push({
|
|
@@ -1936,7 +1917,6 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1936
1917
|
const tokensParts = token.split(".");
|
|
1937
1918
|
if (tokensParts.length !== 3) return false;
|
|
1938
1919
|
const [header] = tokensParts;
|
|
1939
|
-
if (!header) return false;
|
|
1940
1920
|
const parsedHeader = JSON.parse(atob(header));
|
|
1941
1921
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1942
1922
|
if (!parsedHeader.alg) return false;
|
|
@@ -1959,19 +1939,6 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1959
1939
|
});
|
|
1960
1940
|
};
|
|
1961
1941
|
});
|
|
1962
|
-
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1963
|
-
$ZodStringFormat.init(inst, def);
|
|
1964
|
-
inst._zod.check = (payload) => {
|
|
1965
|
-
if (def.fn(payload.value)) return;
|
|
1966
|
-
payload.issues.push({
|
|
1967
|
-
code: "invalid_format",
|
|
1968
|
-
format: def.format,
|
|
1969
|
-
input: payload.value,
|
|
1970
|
-
inst,
|
|
1971
|
-
continue: !def.abort
|
|
1972
|
-
});
|
|
1973
|
-
};
|
|
1974
|
-
});
|
|
1975
1942
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1976
1943
|
$ZodType.init(inst, def);
|
|
1977
1944
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -2023,11 +1990,12 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2023
1990
|
if (def.coerce) try {
|
|
2024
1991
|
payload.value = BigInt(payload.value);
|
|
2025
1992
|
} catch (_) {}
|
|
2026
|
-
|
|
1993
|
+
const { value: input } = payload;
|
|
1994
|
+
if (typeof input === "bigint") return payload;
|
|
2027
1995
|
payload.issues.push({
|
|
2028
1996
|
expected: "bigint",
|
|
2029
1997
|
code: "invalid_type",
|
|
2030
|
-
input
|
|
1998
|
+
input,
|
|
2031
1999
|
inst
|
|
2032
2000
|
});
|
|
2033
2001
|
return payload;
|
|
@@ -2040,7 +2008,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
2040
2008
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
2041
2009
|
$ZodType.init(inst, def);
|
|
2042
2010
|
inst._zod.parse = (payload, _ctx) => {
|
|
2043
|
-
const input = payload
|
|
2011
|
+
const { value: input } = payload;
|
|
2044
2012
|
if (typeof input === "symbol") return payload;
|
|
2045
2013
|
payload.issues.push({
|
|
2046
2014
|
expected: "symbol",
|
|
@@ -2055,10 +2023,8 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
2055
2023
|
$ZodType.init(inst, def);
|
|
2056
2024
|
inst._zod.pattern = _undefined$2;
|
|
2057
2025
|
inst._zod.values = new Set([undefined]);
|
|
2058
|
-
inst._zod.optin = "optional";
|
|
2059
|
-
inst._zod.optout = "optional";
|
|
2060
2026
|
inst._zod.parse = (payload, _ctx) => {
|
|
2061
|
-
const input = payload
|
|
2027
|
+
const { value: input } = payload;
|
|
2062
2028
|
if (typeof input === "undefined") return payload;
|
|
2063
2029
|
payload.issues.push({
|
|
2064
2030
|
expected: "undefined",
|
|
@@ -2074,7 +2040,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
2074
2040
|
inst._zod.pattern = _null$2;
|
|
2075
2041
|
inst._zod.values = new Set([null]);
|
|
2076
2042
|
inst._zod.parse = (payload, _ctx) => {
|
|
2077
|
-
const input = payload
|
|
2043
|
+
const { value: input } = payload;
|
|
2078
2044
|
if (input === null) return payload;
|
|
2079
2045
|
payload.issues.push({
|
|
2080
2046
|
expected: "null",
|
|
@@ -2108,7 +2074,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2108
2074
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2109
2075
|
$ZodType.init(inst, def);
|
|
2110
2076
|
inst._zod.parse = (payload, _ctx) => {
|
|
2111
|
-
const input = payload
|
|
2077
|
+
const { value: input } = payload;
|
|
2112
2078
|
if (typeof input === "undefined") return payload;
|
|
2113
2079
|
payload.issues.push({
|
|
2114
2080
|
expected: "void",
|
|
@@ -2239,20 +2205,19 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2239
2205
|
"payload",
|
|
2240
2206
|
"ctx"
|
|
2241
2207
|
]);
|
|
2242
|
-
const
|
|
2208
|
+
const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
|
|
2243
2209
|
const parseStr = (key) => {
|
|
2244
2210
|
const k = esc(key);
|
|
2245
2211
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2246
2212
|
};
|
|
2247
2213
|
doc.write(`const input = payload.value;`);
|
|
2248
2214
|
const ids = Object.create(null);
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
ids[key] = `key_${counter++}`;
|
|
2215
|
+
for (const key of keys) {
|
|
2216
|
+
ids[key] = randomString(15);
|
|
2252
2217
|
}
|
|
2253
2218
|
doc.write(`const newResult = {}`);
|
|
2254
|
-
for (const key of
|
|
2255
|
-
if (
|
|
2219
|
+
for (const key of keys) {
|
|
2220
|
+
if (optionalKeys$1.has(key)) {
|
|
2256
2221
|
const id = ids[key];
|
|
2257
2222
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2258
2223
|
const k = esc(key);
|
|
@@ -2297,7 +2262,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2297
2262
|
const jit = !globalConfig.jitless;
|
|
2298
2263
|
const allowsEval$1 = allowsEval;
|
|
2299
2264
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2300
|
-
const catchall = def
|
|
2265
|
+
const { catchall } = def;
|
|
2301
2266
|
let value;
|
|
2302
2267
|
inst._zod.parse = (payload, ctx) => {
|
|
2303
2268
|
value ?? (value = _normalized.value);
|
|
@@ -2327,10 +2292,12 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2327
2292
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2328
2293
|
if (r instanceof Promise) {
|
|
2329
2294
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2330
|
-
} else if (isOptional) {
|
|
2331
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2332
2295
|
} else {
|
|
2333
|
-
|
|
2296
|
+
if (isOptional) {
|
|
2297
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2298
|
+
} else {
|
|
2299
|
+
handleObjectResult(r, payload, key);
|
|
2300
|
+
}
|
|
2334
2301
|
}
|
|
2335
2302
|
}
|
|
2336
2303
|
}
|
|
@@ -2388,8 +2355,6 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2388
2355
|
}
|
|
2389
2356
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2390
2357
|
$ZodType.init(inst, def);
|
|
2391
|
-
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2392
|
-
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2393
2358
|
defineLazy(inst._zod, "values", () => {
|
|
2394
2359
|
if (def.options.every((o) => o._zod.values)) {
|
|
2395
2360
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2489,7 +2454,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2489
2454
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2490
2455
|
$ZodType.init(inst, def);
|
|
2491
2456
|
inst._zod.parse = (payload, ctx) => {
|
|
2492
|
-
const input = payload
|
|
2457
|
+
const { value: input } = payload;
|
|
2493
2458
|
const left = def.left._zod.run({
|
|
2494
2459
|
value: input,
|
|
2495
2460
|
issues: []
|
|
@@ -2946,9 +2911,6 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2946
2911
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2947
2912
|
});
|
|
2948
2913
|
inst._zod.parse = (payload, ctx) => {
|
|
2949
|
-
if (def.innerType._zod.optin === "optional") {
|
|
2950
|
-
return def.innerType._zod.run(payload, ctx);
|
|
2951
|
-
}
|
|
2952
2914
|
if (payload.value === undefined) {
|
|
2953
2915
|
return payload;
|
|
2954
2916
|
}
|
|
@@ -3048,7 +3010,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3048
3010
|
});
|
|
3049
3011
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3050
3012
|
$ZodType.init(inst, def);
|
|
3051
|
-
inst._zod
|
|
3013
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3052
3014
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3053
3015
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3054
3016
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3119,7 +3081,6 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3119
3081
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3120
3082
|
$ZodType.init(inst, def);
|
|
3121
3083
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3122
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3123
3084
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3124
3085
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3125
3086
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3170,7 +3131,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3170
3131
|
input: payload.value,
|
|
3171
3132
|
inst,
|
|
3172
3133
|
code: "invalid_format",
|
|
3173
|
-
format:
|
|
3134
|
+
format: "template_literal",
|
|
3174
3135
|
pattern: inst._zod.pattern.source
|
|
3175
3136
|
});
|
|
3176
3137
|
return payload;
|
|
@@ -3230,8 +3191,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3230
3191
|
}
|
|
3231
3192
|
|
|
3232
3193
|
//#endregion
|
|
3233
|
-
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3234
|
-
const error$
|
|
3194
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ar.js
|
|
3195
|
+
const error$36 = () => {
|
|
3235
3196
|
const Sizable = {
|
|
3236
3197
|
string: {
|
|
3237
3198
|
unit: "حرف",
|
|
@@ -3253,7 +3214,7 @@ const error$38 = () => {
|
|
|
3253
3214
|
function getSizing(origin) {
|
|
3254
3215
|
return Sizable[origin] ?? null;
|
|
3255
3216
|
}
|
|
3256
|
-
const parsedType$
|
|
3217
|
+
const parsedType$2 = (data) => {
|
|
3257
3218
|
const t = typeof data;
|
|
3258
3219
|
switch (t) {
|
|
3259
3220
|
case "number": {
|
|
@@ -3305,7 +3266,7 @@ const error$38 = () => {
|
|
|
3305
3266
|
};
|
|
3306
3267
|
return (issue$1) => {
|
|
3307
3268
|
switch (issue$1.code) {
|
|
3308
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3269
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$2(issue$1.input)}`;
|
|
3309
3270
|
case "invalid_value":
|
|
3310
3271
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3311
3272
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3341,12 +3302,12 @@ const error$38 = () => {
|
|
|
3341
3302
|
};
|
|
3342
3303
|
};
|
|
3343
3304
|
function ar_default() {
|
|
3344
|
-
return { localeError: error$
|
|
3305
|
+
return { localeError: error$36() };
|
|
3345
3306
|
}
|
|
3346
3307
|
|
|
3347
3308
|
//#endregion
|
|
3348
|
-
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3349
|
-
const error$
|
|
3309
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/az.js
|
|
3310
|
+
const error$35 = () => {
|
|
3350
3311
|
const Sizable = {
|
|
3351
3312
|
string: {
|
|
3352
3313
|
unit: "simvol",
|
|
@@ -3368,7 +3329,7 @@ const error$37 = () => {
|
|
|
3368
3329
|
function getSizing(origin) {
|
|
3369
3330
|
return Sizable[origin] ?? null;
|
|
3370
3331
|
}
|
|
3371
|
-
const parsedType$
|
|
3332
|
+
const parsedType$2 = (data) => {
|
|
3372
3333
|
const t = typeof data;
|
|
3373
3334
|
switch (t) {
|
|
3374
3335
|
case "number": {
|
|
@@ -3420,7 +3381,7 @@ const error$37 = () => {
|
|
|
3420
3381
|
};
|
|
3421
3382
|
return (issue$1) => {
|
|
3422
3383
|
switch (issue$1.code) {
|
|
3423
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3384
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$2(issue$1.input)}`;
|
|
3424
3385
|
case "invalid_value":
|
|
3425
3386
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3426
3387
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3454,11 +3415,11 @@ const error$37 = () => {
|
|
|
3454
3415
|
};
|
|
3455
3416
|
};
|
|
3456
3417
|
function az_default() {
|
|
3457
|
-
return { localeError: error$
|
|
3418
|
+
return { localeError: error$35() };
|
|
3458
3419
|
}
|
|
3459
3420
|
|
|
3460
3421
|
//#endregion
|
|
3461
|
-
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3422
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/be.js
|
|
3462
3423
|
function getBelarusianPlural(count, one, few, many) {
|
|
3463
3424
|
const absCount = Math.abs(count);
|
|
3464
3425
|
const lastDigit = absCount % 10;
|
|
@@ -3474,7 +3435,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3474
3435
|
}
|
|
3475
3436
|
return many;
|
|
3476
3437
|
}
|
|
3477
|
-
const error$
|
|
3438
|
+
const error$34 = () => {
|
|
3478
3439
|
const Sizable = {
|
|
3479
3440
|
string: {
|
|
3480
3441
|
unit: {
|
|
@@ -3512,7 +3473,7 @@ const error$36 = () => {
|
|
|
3512
3473
|
function getSizing(origin) {
|
|
3513
3474
|
return Sizable[origin] ?? null;
|
|
3514
3475
|
}
|
|
3515
|
-
const parsedType$
|
|
3476
|
+
const parsedType$2 = (data) => {
|
|
3516
3477
|
const t = typeof data;
|
|
3517
3478
|
switch (t) {
|
|
3518
3479
|
case "number": {
|
|
@@ -3564,7 +3525,7 @@ const error$36 = () => {
|
|
|
3564
3525
|
};
|
|
3565
3526
|
return (issue$1) => {
|
|
3566
3527
|
switch (issue$1.code) {
|
|
3567
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3528
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$2(issue$1.input)}`;
|
|
3568
3529
|
case "invalid_value":
|
|
3569
3530
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3570
3531
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3606,12 +3567,12 @@ const error$36 = () => {
|
|
|
3606
3567
|
};
|
|
3607
3568
|
};
|
|
3608
3569
|
function be_default() {
|
|
3609
|
-
return { localeError: error$
|
|
3570
|
+
return { localeError: error$34() };
|
|
3610
3571
|
}
|
|
3611
3572
|
|
|
3612
3573
|
//#endregion
|
|
3613
|
-
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3614
|
-
const error$
|
|
3574
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ca.js
|
|
3575
|
+
const error$33 = () => {
|
|
3615
3576
|
const Sizable = {
|
|
3616
3577
|
string: {
|
|
3617
3578
|
unit: "caràcters",
|
|
@@ -3633,7 +3594,7 @@ const error$35 = () => {
|
|
|
3633
3594
|
function getSizing(origin) {
|
|
3634
3595
|
return Sizable[origin] ?? null;
|
|
3635
3596
|
}
|
|
3636
|
-
const parsedType$
|
|
3597
|
+
const parsedType$2 = (data) => {
|
|
3637
3598
|
const t = typeof data;
|
|
3638
3599
|
switch (t) {
|
|
3639
3600
|
case "number": {
|
|
@@ -3685,7 +3646,7 @@ const error$35 = () => {
|
|
|
3685
3646
|
};
|
|
3686
3647
|
return (issue$1) => {
|
|
3687
3648
|
switch (issue$1.code) {
|
|
3688
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3649
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$2(issue$1.input)}`;
|
|
3689
3650
|
case "invalid_value":
|
|
3690
3651
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3691
3652
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3723,12 +3684,12 @@ const error$35 = () => {
|
|
|
3723
3684
|
};
|
|
3724
3685
|
};
|
|
3725
3686
|
function ca_default() {
|
|
3726
|
-
return { localeError: error$
|
|
3687
|
+
return { localeError: error$33() };
|
|
3727
3688
|
}
|
|
3728
3689
|
|
|
3729
3690
|
//#endregion
|
|
3730
|
-
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3731
|
-
const error$
|
|
3691
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/cs.js
|
|
3692
|
+
const error$32 = () => {
|
|
3732
3693
|
const Sizable = {
|
|
3733
3694
|
string: {
|
|
3734
3695
|
unit: "znaků",
|
|
@@ -3750,7 +3711,7 @@ const error$34 = () => {
|
|
|
3750
3711
|
function getSizing(origin) {
|
|
3751
3712
|
return Sizable[origin] ?? null;
|
|
3752
3713
|
}
|
|
3753
|
-
const parsedType$
|
|
3714
|
+
const parsedType$2 = (data) => {
|
|
3754
3715
|
const t = typeof data;
|
|
3755
3716
|
switch (t) {
|
|
3756
3717
|
case "number": {
|
|
@@ -3820,7 +3781,7 @@ const error$34 = () => {
|
|
|
3820
3781
|
};
|
|
3821
3782
|
return (issue$1) => {
|
|
3822
3783
|
switch (issue$1.code) {
|
|
3823
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3784
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$2(issue$1.input)}`;
|
|
3824
3785
|
case "invalid_value":
|
|
3825
3786
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3826
3787
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3858,12 +3819,12 @@ const error$34 = () => {
|
|
|
3858
3819
|
};
|
|
3859
3820
|
};
|
|
3860
3821
|
function cs_default() {
|
|
3861
|
-
return { localeError: error$
|
|
3822
|
+
return { localeError: error$32() };
|
|
3862
3823
|
}
|
|
3863
3824
|
|
|
3864
3825
|
//#endregion
|
|
3865
|
-
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3866
|
-
const error$
|
|
3826
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/de.js
|
|
3827
|
+
const error$31 = () => {
|
|
3867
3828
|
const Sizable = {
|
|
3868
3829
|
string: {
|
|
3869
3830
|
unit: "Zeichen",
|
|
@@ -3885,7 +3846,7 @@ const error$33 = () => {
|
|
|
3885
3846
|
function getSizing(origin) {
|
|
3886
3847
|
return Sizable[origin] ?? null;
|
|
3887
3848
|
}
|
|
3888
|
-
const parsedType$
|
|
3849
|
+
const parsedType$2 = (data) => {
|
|
3889
3850
|
const t = typeof data;
|
|
3890
3851
|
switch (t) {
|
|
3891
3852
|
case "number": {
|
|
@@ -3937,7 +3898,7 @@ const error$33 = () => {
|
|
|
3937
3898
|
};
|
|
3938
3899
|
return (issue$1) => {
|
|
3939
3900
|
switch (issue$1.code) {
|
|
3940
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3901
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$2(issue$1.input)}`;
|
|
3941
3902
|
case "invalid_value":
|
|
3942
3903
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3943
3904
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3973,12 +3934,12 @@ const error$33 = () => {
|
|
|
3973
3934
|
};
|
|
3974
3935
|
};
|
|
3975
3936
|
function de_default() {
|
|
3976
|
-
return { localeError: error$
|
|
3937
|
+
return { localeError: error$31() };
|
|
3977
3938
|
}
|
|
3978
3939
|
|
|
3979
3940
|
//#endregion
|
|
3980
|
-
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3981
|
-
const parsedType$
|
|
3941
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/en.js
|
|
3942
|
+
const parsedType$1 = (data) => {
|
|
3982
3943
|
const t = typeof data;
|
|
3983
3944
|
switch (t) {
|
|
3984
3945
|
case "number": {
|
|
@@ -3998,7 +3959,7 @@ const parsedType$2 = (data) => {
|
|
|
3998
3959
|
}
|
|
3999
3960
|
return t;
|
|
4000
3961
|
};
|
|
4001
|
-
const error$
|
|
3962
|
+
const error$30 = () => {
|
|
4002
3963
|
const Sizable = {
|
|
4003
3964
|
string: {
|
|
4004
3965
|
unit: "characters",
|
|
@@ -4052,7 +4013,7 @@ const error$32 = () => {
|
|
|
4052
4013
|
};
|
|
4053
4014
|
return (issue$1) => {
|
|
4054
4015
|
switch (issue$1.code) {
|
|
4055
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
4016
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$1(issue$1.input)}`;
|
|
4056
4017
|
case "invalid_value":
|
|
4057
4018
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4058
4019
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4090,127 +4051,12 @@ const error$32 = () => {
|
|
|
4090
4051
|
};
|
|
4091
4052
|
};
|
|
4092
4053
|
function en_default() {
|
|
4093
|
-
return { localeError: error$
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
//#endregion
|
|
4097
|
-
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4098
|
-
const parsedType$1 = (data) => {
|
|
4099
|
-
const t = typeof data;
|
|
4100
|
-
switch (t) {
|
|
4101
|
-
case "number": {
|
|
4102
|
-
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4103
|
-
}
|
|
4104
|
-
case "object": {
|
|
4105
|
-
if (Array.isArray(data)) {
|
|
4106
|
-
return "tabelo";
|
|
4107
|
-
}
|
|
4108
|
-
if (data === null) {
|
|
4109
|
-
return "senvalora";
|
|
4110
|
-
}
|
|
4111
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4112
|
-
return data.constructor.name;
|
|
4113
|
-
}
|
|
4114
|
-
}
|
|
4115
|
-
}
|
|
4116
|
-
return t;
|
|
4117
|
-
};
|
|
4118
|
-
const error$31 = () => {
|
|
4119
|
-
const Sizable = {
|
|
4120
|
-
string: {
|
|
4121
|
-
unit: "karaktrojn",
|
|
4122
|
-
verb: "havi"
|
|
4123
|
-
},
|
|
4124
|
-
file: {
|
|
4125
|
-
unit: "bajtojn",
|
|
4126
|
-
verb: "havi"
|
|
4127
|
-
},
|
|
4128
|
-
array: {
|
|
4129
|
-
unit: "elementojn",
|
|
4130
|
-
verb: "havi"
|
|
4131
|
-
},
|
|
4132
|
-
set: {
|
|
4133
|
-
unit: "elementojn",
|
|
4134
|
-
verb: "havi"
|
|
4135
|
-
}
|
|
4136
|
-
};
|
|
4137
|
-
function getSizing(origin) {
|
|
4138
|
-
return Sizable[origin] ?? null;
|
|
4139
|
-
}
|
|
4140
|
-
const Nouns = {
|
|
4141
|
-
regex: "enigo",
|
|
4142
|
-
email: "retadreso",
|
|
4143
|
-
url: "URL",
|
|
4144
|
-
emoji: "emoĝio",
|
|
4145
|
-
uuid: "UUID",
|
|
4146
|
-
uuidv4: "UUIDv4",
|
|
4147
|
-
uuidv6: "UUIDv6",
|
|
4148
|
-
nanoid: "nanoid",
|
|
4149
|
-
guid: "GUID",
|
|
4150
|
-
cuid: "cuid",
|
|
4151
|
-
cuid2: "cuid2",
|
|
4152
|
-
ulid: "ULID",
|
|
4153
|
-
xid: "XID",
|
|
4154
|
-
ksuid: "KSUID",
|
|
4155
|
-
datetime: "ISO-datotempo",
|
|
4156
|
-
date: "ISO-dato",
|
|
4157
|
-
time: "ISO-tempo",
|
|
4158
|
-
duration: "ISO-daŭro",
|
|
4159
|
-
ipv4: "IPv4-adreso",
|
|
4160
|
-
ipv6: "IPv6-adreso",
|
|
4161
|
-
cidrv4: "IPv4-rango",
|
|
4162
|
-
cidrv6: "IPv6-rango",
|
|
4163
|
-
base64: "64-ume kodita karaktraro",
|
|
4164
|
-
base64url: "URL-64-ume kodita karaktraro",
|
|
4165
|
-
json_string: "JSON-karaktraro",
|
|
4166
|
-
e164: "E.164-nombro",
|
|
4167
|
-
jwt: "JWT",
|
|
4168
|
-
template_literal: "enigo"
|
|
4169
|
-
};
|
|
4170
|
-
return (issue$1) => {
|
|
4171
|
-
switch (issue$1.code) {
|
|
4172
|
-
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4173
|
-
case "invalid_value":
|
|
4174
|
-
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4175
|
-
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4176
|
-
case "too_big": {
|
|
4177
|
-
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4178
|
-
const sizing = getSizing(issue$1.origin);
|
|
4179
|
-
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4180
|
-
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4181
|
-
}
|
|
4182
|
-
case "too_small": {
|
|
4183
|
-
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4184
|
-
const sizing = getSizing(issue$1.origin);
|
|
4185
|
-
if (sizing) {
|
|
4186
|
-
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4187
|
-
}
|
|
4188
|
-
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4189
|
-
}
|
|
4190
|
-
case "invalid_format": {
|
|
4191
|
-
const _issue = issue$1;
|
|
4192
|
-
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4193
|
-
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4194
|
-
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4195
|
-
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4196
|
-
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4197
|
-
}
|
|
4198
|
-
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4199
|
-
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4200
|
-
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4201
|
-
case "invalid_union": return "Nevalida enigo";
|
|
4202
|
-
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4203
|
-
default: return `Nevalida enigo`;
|
|
4204
|
-
}
|
|
4205
|
-
};
|
|
4206
|
-
};
|
|
4207
|
-
function eo_default() {
|
|
4208
|
-
return { localeError: error$31() };
|
|
4054
|
+
return { localeError: error$30() };
|
|
4209
4055
|
}
|
|
4210
4056
|
|
|
4211
4057
|
//#endregion
|
|
4212
|
-
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4213
|
-
const error$
|
|
4058
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/es.js
|
|
4059
|
+
const error$29 = () => {
|
|
4214
4060
|
const Sizable = {
|
|
4215
4061
|
string: {
|
|
4216
4062
|
unit: "caracteres",
|
|
@@ -4232,7 +4078,7 @@ const error$30 = () => {
|
|
|
4232
4078
|
function getSizing(origin) {
|
|
4233
4079
|
return Sizable[origin] ?? null;
|
|
4234
4080
|
}
|
|
4235
|
-
const parsedType$
|
|
4081
|
+
const parsedType$2 = (data) => {
|
|
4236
4082
|
const t = typeof data;
|
|
4237
4083
|
switch (t) {
|
|
4238
4084
|
case "number": {
|
|
@@ -4284,7 +4130,7 @@ const error$30 = () => {
|
|
|
4284
4130
|
};
|
|
4285
4131
|
return (issue$1) => {
|
|
4286
4132
|
switch (issue$1.code) {
|
|
4287
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4133
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$2(issue$1.input)}`;
|
|
4288
4134
|
case "invalid_value":
|
|
4289
4135
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4290
4136
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4320,12 +4166,12 @@ const error$30 = () => {
|
|
|
4320
4166
|
};
|
|
4321
4167
|
};
|
|
4322
4168
|
function es_default() {
|
|
4323
|
-
return { localeError: error$
|
|
4169
|
+
return { localeError: error$29() };
|
|
4324
4170
|
}
|
|
4325
4171
|
|
|
4326
4172
|
//#endregion
|
|
4327
|
-
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4328
|
-
const error$
|
|
4173
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fa.js
|
|
4174
|
+
const error$28 = () => {
|
|
4329
4175
|
const Sizable = {
|
|
4330
4176
|
string: {
|
|
4331
4177
|
unit: "کاراکتر",
|
|
@@ -4347,7 +4193,7 @@ const error$29 = () => {
|
|
|
4347
4193
|
function getSizing(origin) {
|
|
4348
4194
|
return Sizable[origin] ?? null;
|
|
4349
4195
|
}
|
|
4350
|
-
const parsedType$
|
|
4196
|
+
const parsedType$2 = (data) => {
|
|
4351
4197
|
const t = typeof data;
|
|
4352
4198
|
switch (t) {
|
|
4353
4199
|
case "number": {
|
|
@@ -4399,7 +4245,7 @@ const error$29 = () => {
|
|
|
4399
4245
|
};
|
|
4400
4246
|
return (issue$1) => {
|
|
4401
4247
|
switch (issue$1.code) {
|
|
4402
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4248
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$2(issue$1.input)} دریافت شد`;
|
|
4403
4249
|
case "invalid_value":
|
|
4404
4250
|
if (issue$1.values.length === 1) {
|
|
4405
4251
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4447,12 +4293,12 @@ const error$29 = () => {
|
|
|
4447
4293
|
};
|
|
4448
4294
|
};
|
|
4449
4295
|
function fa_default() {
|
|
4450
|
-
return { localeError: error$
|
|
4296
|
+
return { localeError: error$28() };
|
|
4451
4297
|
}
|
|
4452
4298
|
|
|
4453
4299
|
//#endregion
|
|
4454
|
-
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4455
|
-
const error$
|
|
4300
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fi.js
|
|
4301
|
+
const error$27 = () => {
|
|
4456
4302
|
const Sizable = {
|
|
4457
4303
|
string: {
|
|
4458
4304
|
unit: "merkkiä",
|
|
@@ -4490,7 +4336,7 @@ const error$28 = () => {
|
|
|
4490
4336
|
function getSizing(origin) {
|
|
4491
4337
|
return Sizable[origin] ?? null;
|
|
4492
4338
|
}
|
|
4493
|
-
const parsedType$
|
|
4339
|
+
const parsedType$2 = (data) => {
|
|
4494
4340
|
const t = typeof data;
|
|
4495
4341
|
switch (t) {
|
|
4496
4342
|
case "number": {
|
|
@@ -4542,7 +4388,7 @@ const error$28 = () => {
|
|
|
4542
4388
|
};
|
|
4543
4389
|
return (issue$1) => {
|
|
4544
4390
|
switch (issue$1.code) {
|
|
4545
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4391
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$2(issue$1.input)}`;
|
|
4546
4392
|
case "invalid_value":
|
|
4547
4393
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4548
4394
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4582,12 +4428,12 @@ const error$28 = () => {
|
|
|
4582
4428
|
};
|
|
4583
4429
|
};
|
|
4584
4430
|
function fi_default() {
|
|
4585
|
-
return { localeError: error$
|
|
4431
|
+
return { localeError: error$27() };
|
|
4586
4432
|
}
|
|
4587
4433
|
|
|
4588
4434
|
//#endregion
|
|
4589
|
-
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4590
|
-
const error$
|
|
4435
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fr.js
|
|
4436
|
+
const error$26 = () => {
|
|
4591
4437
|
const Sizable = {
|
|
4592
4438
|
string: {
|
|
4593
4439
|
unit: "caractères",
|
|
@@ -4609,7 +4455,7 @@ const error$27 = () => {
|
|
|
4609
4455
|
function getSizing(origin) {
|
|
4610
4456
|
return Sizable[origin] ?? null;
|
|
4611
4457
|
}
|
|
4612
|
-
const parsedType$
|
|
4458
|
+
const parsedType$2 = (data) => {
|
|
4613
4459
|
const t = typeof data;
|
|
4614
4460
|
switch (t) {
|
|
4615
4461
|
case "number": {
|
|
@@ -4661,7 +4507,7 @@ const error$27 = () => {
|
|
|
4661
4507
|
};
|
|
4662
4508
|
return (issue$1) => {
|
|
4663
4509
|
switch (issue$1.code) {
|
|
4664
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4510
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$2(issue$1.input)} reçu`;
|
|
4665
4511
|
case "invalid_value":
|
|
4666
4512
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4667
4513
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4697,12 +4543,12 @@ const error$27 = () => {
|
|
|
4697
4543
|
};
|
|
4698
4544
|
};
|
|
4699
4545
|
function fr_default() {
|
|
4700
|
-
return { localeError: error$
|
|
4546
|
+
return { localeError: error$26() };
|
|
4701
4547
|
}
|
|
4702
4548
|
|
|
4703
4549
|
//#endregion
|
|
4704
|
-
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4705
|
-
const error$
|
|
4550
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fr-CA.js
|
|
4551
|
+
const error$25 = () => {
|
|
4706
4552
|
const Sizable = {
|
|
4707
4553
|
string: {
|
|
4708
4554
|
unit: "caractères",
|
|
@@ -4724,7 +4570,7 @@ const error$26 = () => {
|
|
|
4724
4570
|
function getSizing(origin) {
|
|
4725
4571
|
return Sizable[origin] ?? null;
|
|
4726
4572
|
}
|
|
4727
|
-
const parsedType$
|
|
4573
|
+
const parsedType$2 = (data) => {
|
|
4728
4574
|
const t = typeof data;
|
|
4729
4575
|
switch (t) {
|
|
4730
4576
|
case "number": {
|
|
@@ -4776,7 +4622,7 @@ const error$26 = () => {
|
|
|
4776
4622
|
};
|
|
4777
4623
|
return (issue$1) => {
|
|
4778
4624
|
switch (issue$1.code) {
|
|
4779
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4625
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$2(issue$1.input)}`;
|
|
4780
4626
|
case "invalid_value":
|
|
4781
4627
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4782
4628
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4814,12 +4660,12 @@ const error$26 = () => {
|
|
|
4814
4660
|
};
|
|
4815
4661
|
};
|
|
4816
4662
|
function fr_CA_default() {
|
|
4817
|
-
return { localeError: error$
|
|
4663
|
+
return { localeError: error$25() };
|
|
4818
4664
|
}
|
|
4819
4665
|
|
|
4820
4666
|
//#endregion
|
|
4821
|
-
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4822
|
-
const error$
|
|
4667
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/he.js
|
|
4668
|
+
const error$24 = () => {
|
|
4823
4669
|
const Sizable = {
|
|
4824
4670
|
string: {
|
|
4825
4671
|
unit: "אותיות",
|
|
@@ -4841,7 +4687,7 @@ const error$25 = () => {
|
|
|
4841
4687
|
function getSizing(origin) {
|
|
4842
4688
|
return Sizable[origin] ?? null;
|
|
4843
4689
|
}
|
|
4844
|
-
const parsedType$
|
|
4690
|
+
const parsedType$2 = (data) => {
|
|
4845
4691
|
const t = typeof data;
|
|
4846
4692
|
switch (t) {
|
|
4847
4693
|
case "number": {
|
|
@@ -4893,7 +4739,7 @@ const error$25 = () => {
|
|
|
4893
4739
|
};
|
|
4894
4740
|
return (issue$1) => {
|
|
4895
4741
|
switch (issue$1.code) {
|
|
4896
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4742
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$2(issue$1.input)}`;
|
|
4897
4743
|
case "invalid_value":
|
|
4898
4744
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4899
4745
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4929,12 +4775,12 @@ const error$25 = () => {
|
|
|
4929
4775
|
};
|
|
4930
4776
|
};
|
|
4931
4777
|
function he_default() {
|
|
4932
|
-
return { localeError: error$
|
|
4778
|
+
return { localeError: error$24() };
|
|
4933
4779
|
}
|
|
4934
4780
|
|
|
4935
4781
|
//#endregion
|
|
4936
|
-
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4937
|
-
const error$
|
|
4782
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/hu.js
|
|
4783
|
+
const error$23 = () => {
|
|
4938
4784
|
const Sizable = {
|
|
4939
4785
|
string: {
|
|
4940
4786
|
unit: "karakter",
|
|
@@ -4956,7 +4802,7 @@ const error$24 = () => {
|
|
|
4956
4802
|
function getSizing(origin) {
|
|
4957
4803
|
return Sizable[origin] ?? null;
|
|
4958
4804
|
}
|
|
4959
|
-
const parsedType$
|
|
4805
|
+
const parsedType$2 = (data) => {
|
|
4960
4806
|
const t = typeof data;
|
|
4961
4807
|
switch (t) {
|
|
4962
4808
|
case "number": {
|
|
@@ -5008,7 +4854,7 @@ const error$24 = () => {
|
|
|
5008
4854
|
};
|
|
5009
4855
|
return (issue$1) => {
|
|
5010
4856
|
switch (issue$1.code) {
|
|
5011
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4857
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$2(issue$1.input)}`;
|
|
5012
4858
|
case "invalid_value":
|
|
5013
4859
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5014
4860
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5044,12 +4890,12 @@ const error$24 = () => {
|
|
|
5044
4890
|
};
|
|
5045
4891
|
};
|
|
5046
4892
|
function hu_default() {
|
|
5047
|
-
return { localeError: error$
|
|
4893
|
+
return { localeError: error$23() };
|
|
5048
4894
|
}
|
|
5049
4895
|
|
|
5050
4896
|
//#endregion
|
|
5051
|
-
//#region ../../node_modules/zod/v4/locales/id.js
|
|
5052
|
-
const error$
|
|
4897
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/id.js
|
|
4898
|
+
const error$22 = () => {
|
|
5053
4899
|
const Sizable = {
|
|
5054
4900
|
string: {
|
|
5055
4901
|
unit: "karakter",
|
|
@@ -5071,7 +4917,7 @@ const error$23 = () => {
|
|
|
5071
4917
|
function getSizing(origin) {
|
|
5072
4918
|
return Sizable[origin] ?? null;
|
|
5073
4919
|
}
|
|
5074
|
-
const parsedType$
|
|
4920
|
+
const parsedType$2 = (data) => {
|
|
5075
4921
|
const t = typeof data;
|
|
5076
4922
|
switch (t) {
|
|
5077
4923
|
case "number": {
|
|
@@ -5123,7 +4969,7 @@ const error$23 = () => {
|
|
|
5123
4969
|
};
|
|
5124
4970
|
return (issue$1) => {
|
|
5125
4971
|
switch (issue$1.code) {
|
|
5126
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
4972
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
|
|
5127
4973
|
case "invalid_value":
|
|
5128
4974
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5129
4975
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5159,12 +5005,12 @@ const error$23 = () => {
|
|
|
5159
5005
|
};
|
|
5160
5006
|
};
|
|
5161
5007
|
function id_default() {
|
|
5162
|
-
return { localeError: error$
|
|
5008
|
+
return { localeError: error$22() };
|
|
5163
5009
|
}
|
|
5164
5010
|
|
|
5165
5011
|
//#endregion
|
|
5166
|
-
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5167
|
-
const error$
|
|
5012
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/it.js
|
|
5013
|
+
const error$21 = () => {
|
|
5168
5014
|
const Sizable = {
|
|
5169
5015
|
string: {
|
|
5170
5016
|
unit: "caratteri",
|
|
@@ -5186,7 +5032,7 @@ const error$22 = () => {
|
|
|
5186
5032
|
function getSizing(origin) {
|
|
5187
5033
|
return Sizable[origin] ?? null;
|
|
5188
5034
|
}
|
|
5189
|
-
const parsedType$
|
|
5035
|
+
const parsedType$2 = (data) => {
|
|
5190
5036
|
const t = typeof data;
|
|
5191
5037
|
switch (t) {
|
|
5192
5038
|
case "number": {
|
|
@@ -5238,7 +5084,7 @@ const error$22 = () => {
|
|
|
5238
5084
|
};
|
|
5239
5085
|
return (issue$1) => {
|
|
5240
5086
|
switch (issue$1.code) {
|
|
5241
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5087
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$2(issue$1.input)}`;
|
|
5242
5088
|
case "invalid_value":
|
|
5243
5089
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5244
5090
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5274,12 +5120,12 @@ const error$22 = () => {
|
|
|
5274
5120
|
};
|
|
5275
5121
|
};
|
|
5276
5122
|
function it_default() {
|
|
5277
|
-
return { localeError: error$
|
|
5123
|
+
return { localeError: error$21() };
|
|
5278
5124
|
}
|
|
5279
5125
|
|
|
5280
5126
|
//#endregion
|
|
5281
|
-
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5282
|
-
const error$
|
|
5127
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ja.js
|
|
5128
|
+
const error$20 = () => {
|
|
5283
5129
|
const Sizable = {
|
|
5284
5130
|
string: {
|
|
5285
5131
|
unit: "文字",
|
|
@@ -5301,7 +5147,7 @@ const error$21 = () => {
|
|
|
5301
5147
|
function getSizing(origin) {
|
|
5302
5148
|
return Sizable[origin] ?? null;
|
|
5303
5149
|
}
|
|
5304
|
-
const parsedType$
|
|
5150
|
+
const parsedType$2 = (data) => {
|
|
5305
5151
|
const t = typeof data;
|
|
5306
5152
|
switch (t) {
|
|
5307
5153
|
case "number": {
|
|
@@ -5353,21 +5199,21 @@ const error$21 = () => {
|
|
|
5353
5199
|
};
|
|
5354
5200
|
return (issue$1) => {
|
|
5355
5201
|
switch (issue$1.code) {
|
|
5356
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5202
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$2(issue$1.input)}が入力されました`;
|
|
5357
5203
|
case "invalid_value":
|
|
5358
5204
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5359
5205
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5360
5206
|
case "too_big": {
|
|
5361
|
-
const adj = issue$1.inclusive ? "
|
|
5207
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
5362
5208
|
const sizing = getSizing(issue$1.origin);
|
|
5363
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5364
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5209
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}である必要があります`;
|
|
5210
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}である必要があります`;
|
|
5365
5211
|
}
|
|
5366
5212
|
case "too_small": {
|
|
5367
|
-
const adj = issue$1.inclusive ? "
|
|
5213
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
5368
5214
|
const sizing = getSizing(issue$1.origin);
|
|
5369
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5370
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5215
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}である必要があります`;
|
|
5216
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}である必要があります`;
|
|
5371
5217
|
}
|
|
5372
5218
|
case "invalid_format": {
|
|
5373
5219
|
const _issue = issue$1;
|
|
@@ -5387,12 +5233,12 @@ const error$21 = () => {
|
|
|
5387
5233
|
};
|
|
5388
5234
|
};
|
|
5389
5235
|
function ja_default() {
|
|
5390
|
-
return { localeError: error$
|
|
5236
|
+
return { localeError: error$20() };
|
|
5391
5237
|
}
|
|
5392
5238
|
|
|
5393
5239
|
//#endregion
|
|
5394
|
-
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5395
|
-
const error$
|
|
5240
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/kh.js
|
|
5241
|
+
const error$19 = () => {
|
|
5396
5242
|
const Sizable = {
|
|
5397
5243
|
string: {
|
|
5398
5244
|
unit: "តួអក្សរ",
|
|
@@ -5414,7 +5260,7 @@ const error$20 = () => {
|
|
|
5414
5260
|
function getSizing(origin) {
|
|
5415
5261
|
return Sizable[origin] ?? null;
|
|
5416
5262
|
}
|
|
5417
|
-
const parsedType$
|
|
5263
|
+
const parsedType$2 = (data) => {
|
|
5418
5264
|
const t = typeof data;
|
|
5419
5265
|
switch (t) {
|
|
5420
5266
|
case "number": {
|
|
@@ -5466,7 +5312,7 @@ const error$20 = () => {
|
|
|
5466
5312
|
};
|
|
5467
5313
|
return (issue$1) => {
|
|
5468
5314
|
switch (issue$1.code) {
|
|
5469
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5315
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$2(issue$1.input)}`;
|
|
5470
5316
|
case "invalid_value":
|
|
5471
5317
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5472
5318
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5504,12 +5350,12 @@ const error$20 = () => {
|
|
|
5504
5350
|
};
|
|
5505
5351
|
};
|
|
5506
5352
|
function kh_default() {
|
|
5507
|
-
return { localeError: error$
|
|
5353
|
+
return { localeError: error$19() };
|
|
5508
5354
|
}
|
|
5509
5355
|
|
|
5510
5356
|
//#endregion
|
|
5511
|
-
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5512
|
-
const error$
|
|
5357
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ko.js
|
|
5358
|
+
const error$18 = () => {
|
|
5513
5359
|
const Sizable = {
|
|
5514
5360
|
string: {
|
|
5515
5361
|
unit: "문자",
|
|
@@ -5531,7 +5377,7 @@ const error$19 = () => {
|
|
|
5531
5377
|
function getSizing(origin) {
|
|
5532
5378
|
return Sizable[origin] ?? null;
|
|
5533
5379
|
}
|
|
5534
|
-
const parsedType$
|
|
5380
|
+
const parsedType$2 = (data) => {
|
|
5535
5381
|
const t = typeof data;
|
|
5536
5382
|
switch (t) {
|
|
5537
5383
|
case "number": {
|
|
@@ -5583,7 +5429,7 @@ const error$19 = () => {
|
|
|
5583
5429
|
};
|
|
5584
5430
|
return (issue$1) => {
|
|
5585
5431
|
switch (issue$1.code) {
|
|
5586
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5432
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$2(issue$1.input)}입니다`;
|
|
5587
5433
|
case "invalid_value":
|
|
5588
5434
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5589
5435
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5625,12 +5471,12 @@ const error$19 = () => {
|
|
|
5625
5471
|
};
|
|
5626
5472
|
};
|
|
5627
5473
|
function ko_default() {
|
|
5628
|
-
return { localeError: error$
|
|
5474
|
+
return { localeError: error$18() };
|
|
5629
5475
|
}
|
|
5630
5476
|
|
|
5631
5477
|
//#endregion
|
|
5632
|
-
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5633
|
-
const error$
|
|
5478
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/mk.js
|
|
5479
|
+
const error$17 = () => {
|
|
5634
5480
|
const Sizable = {
|
|
5635
5481
|
string: {
|
|
5636
5482
|
unit: "знаци",
|
|
@@ -5652,7 +5498,7 @@ const error$18 = () => {
|
|
|
5652
5498
|
function getSizing(origin) {
|
|
5653
5499
|
return Sizable[origin] ?? null;
|
|
5654
5500
|
}
|
|
5655
|
-
const parsedType$
|
|
5501
|
+
const parsedType$2 = (data) => {
|
|
5656
5502
|
const t = typeof data;
|
|
5657
5503
|
switch (t) {
|
|
5658
5504
|
case "number": {
|
|
@@ -5704,7 +5550,7 @@ const error$18 = () => {
|
|
|
5704
5550
|
};
|
|
5705
5551
|
return (issue$1) => {
|
|
5706
5552
|
switch (issue$1.code) {
|
|
5707
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5553
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$2(issue$1.input)}`;
|
|
5708
5554
|
case "invalid_value":
|
|
5709
5555
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5710
5556
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5742,12 +5588,12 @@ const error$18 = () => {
|
|
|
5742
5588
|
};
|
|
5743
5589
|
};
|
|
5744
5590
|
function mk_default() {
|
|
5745
|
-
return { localeError: error$
|
|
5591
|
+
return { localeError: error$17() };
|
|
5746
5592
|
}
|
|
5747
5593
|
|
|
5748
5594
|
//#endregion
|
|
5749
|
-
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5750
|
-
const error$
|
|
5595
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ms.js
|
|
5596
|
+
const error$16 = () => {
|
|
5751
5597
|
const Sizable = {
|
|
5752
5598
|
string: {
|
|
5753
5599
|
unit: "aksara",
|
|
@@ -5769,7 +5615,7 @@ const error$17 = () => {
|
|
|
5769
5615
|
function getSizing(origin) {
|
|
5770
5616
|
return Sizable[origin] ?? null;
|
|
5771
5617
|
}
|
|
5772
|
-
const parsedType$
|
|
5618
|
+
const parsedType$2 = (data) => {
|
|
5773
5619
|
const t = typeof data;
|
|
5774
5620
|
switch (t) {
|
|
5775
5621
|
case "number": {
|
|
@@ -5821,7 +5667,7 @@ const error$17 = () => {
|
|
|
5821
5667
|
};
|
|
5822
5668
|
return (issue$1) => {
|
|
5823
5669
|
switch (issue$1.code) {
|
|
5824
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5670
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
|
|
5825
5671
|
case "invalid_value":
|
|
5826
5672
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5827
5673
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5857,12 +5703,12 @@ const error$17 = () => {
|
|
|
5857
5703
|
};
|
|
5858
5704
|
};
|
|
5859
5705
|
function ms_default() {
|
|
5860
|
-
return { localeError: error$
|
|
5706
|
+
return { localeError: error$16() };
|
|
5861
5707
|
}
|
|
5862
5708
|
|
|
5863
5709
|
//#endregion
|
|
5864
|
-
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5865
|
-
const error$
|
|
5710
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/nl.js
|
|
5711
|
+
const error$15 = () => {
|
|
5866
5712
|
const Sizable = {
|
|
5867
5713
|
string: { unit: "tekens" },
|
|
5868
5714
|
file: { unit: "bytes" },
|
|
@@ -5872,7 +5718,7 @@ const error$16 = () => {
|
|
|
5872
5718
|
function getSizing(origin) {
|
|
5873
5719
|
return Sizable[origin] ?? null;
|
|
5874
5720
|
}
|
|
5875
|
-
const parsedType$
|
|
5721
|
+
const parsedType$2 = (data) => {
|
|
5876
5722
|
const t = typeof data;
|
|
5877
5723
|
switch (t) {
|
|
5878
5724
|
case "number": {
|
|
@@ -5924,7 +5770,7 @@ const error$16 = () => {
|
|
|
5924
5770
|
};
|
|
5925
5771
|
return (issue$1) => {
|
|
5926
5772
|
switch (issue$1.code) {
|
|
5927
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5773
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$2(issue$1.input)}`;
|
|
5928
5774
|
case "invalid_value":
|
|
5929
5775
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5930
5776
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5962,12 +5808,12 @@ const error$16 = () => {
|
|
|
5962
5808
|
};
|
|
5963
5809
|
};
|
|
5964
5810
|
function nl_default() {
|
|
5965
|
-
return { localeError: error$
|
|
5811
|
+
return { localeError: error$15() };
|
|
5966
5812
|
}
|
|
5967
5813
|
|
|
5968
5814
|
//#endregion
|
|
5969
|
-
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5970
|
-
const error$
|
|
5815
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/no.js
|
|
5816
|
+
const error$14 = () => {
|
|
5971
5817
|
const Sizable = {
|
|
5972
5818
|
string: {
|
|
5973
5819
|
unit: "tegn",
|
|
@@ -5989,7 +5835,7 @@ const error$15 = () => {
|
|
|
5989
5835
|
function getSizing(origin) {
|
|
5990
5836
|
return Sizable[origin] ?? null;
|
|
5991
5837
|
}
|
|
5992
|
-
const parsedType$
|
|
5838
|
+
const parsedType$2 = (data) => {
|
|
5993
5839
|
const t = typeof data;
|
|
5994
5840
|
switch (t) {
|
|
5995
5841
|
case "number": {
|
|
@@ -6041,7 +5887,7 @@ const error$15 = () => {
|
|
|
6041
5887
|
};
|
|
6042
5888
|
return (issue$1) => {
|
|
6043
5889
|
switch (issue$1.code) {
|
|
6044
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
5890
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$2(issue$1.input)}`;
|
|
6045
5891
|
case "invalid_value":
|
|
6046
5892
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6047
5893
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6077,12 +5923,12 @@ const error$15 = () => {
|
|
|
6077
5923
|
};
|
|
6078
5924
|
};
|
|
6079
5925
|
function no_default() {
|
|
6080
|
-
return { localeError: error$
|
|
5926
|
+
return { localeError: error$14() };
|
|
6081
5927
|
}
|
|
6082
5928
|
|
|
6083
5929
|
//#endregion
|
|
6084
|
-
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6085
|
-
const error$
|
|
5930
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ota.js
|
|
5931
|
+
const error$13 = () => {
|
|
6086
5932
|
const Sizable = {
|
|
6087
5933
|
string: {
|
|
6088
5934
|
unit: "harf",
|
|
@@ -6104,7 +5950,7 @@ const error$14 = () => {
|
|
|
6104
5950
|
function getSizing(origin) {
|
|
6105
5951
|
return Sizable[origin] ?? null;
|
|
6106
5952
|
}
|
|
6107
|
-
const parsedType$
|
|
5953
|
+
const parsedType$2 = (data) => {
|
|
6108
5954
|
const t = typeof data;
|
|
6109
5955
|
switch (t) {
|
|
6110
5956
|
case "number": {
|
|
@@ -6156,7 +6002,7 @@ const error$14 = () => {
|
|
|
6156
6002
|
};
|
|
6157
6003
|
return (issue$1) => {
|
|
6158
6004
|
switch (issue$1.code) {
|
|
6159
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6005
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$2(issue$1.input)}`;
|
|
6160
6006
|
case "invalid_value":
|
|
6161
6007
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6162
6008
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6192,138 +6038,11 @@ const error$14 = () => {
|
|
|
6192
6038
|
};
|
|
6193
6039
|
};
|
|
6194
6040
|
function ota_default() {
|
|
6195
|
-
return { localeError: error$14() };
|
|
6196
|
-
}
|
|
6197
|
-
|
|
6198
|
-
//#endregion
|
|
6199
|
-
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6200
|
-
const error$13 = () => {
|
|
6201
|
-
const Sizable = {
|
|
6202
|
-
string: {
|
|
6203
|
-
unit: "توکي",
|
|
6204
|
-
verb: "ولري"
|
|
6205
|
-
},
|
|
6206
|
-
file: {
|
|
6207
|
-
unit: "بایټس",
|
|
6208
|
-
verb: "ولري"
|
|
6209
|
-
},
|
|
6210
|
-
array: {
|
|
6211
|
-
unit: "توکي",
|
|
6212
|
-
verb: "ولري"
|
|
6213
|
-
},
|
|
6214
|
-
set: {
|
|
6215
|
-
unit: "توکي",
|
|
6216
|
-
verb: "ولري"
|
|
6217
|
-
}
|
|
6218
|
-
};
|
|
6219
|
-
function getSizing(origin) {
|
|
6220
|
-
return Sizable[origin] ?? null;
|
|
6221
|
-
}
|
|
6222
|
-
const parsedType$3 = (data) => {
|
|
6223
|
-
const t = typeof data;
|
|
6224
|
-
switch (t) {
|
|
6225
|
-
case "number": {
|
|
6226
|
-
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6227
|
-
}
|
|
6228
|
-
case "object": {
|
|
6229
|
-
if (Array.isArray(data)) {
|
|
6230
|
-
return "ارې";
|
|
6231
|
-
}
|
|
6232
|
-
if (data === null) {
|
|
6233
|
-
return "null";
|
|
6234
|
-
}
|
|
6235
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6236
|
-
return data.constructor.name;
|
|
6237
|
-
}
|
|
6238
|
-
}
|
|
6239
|
-
}
|
|
6240
|
-
return t;
|
|
6241
|
-
};
|
|
6242
|
-
const Nouns = {
|
|
6243
|
-
regex: "ورودي",
|
|
6244
|
-
email: "بریښنالیک",
|
|
6245
|
-
url: "یو آر ال",
|
|
6246
|
-
emoji: "ایموجي",
|
|
6247
|
-
uuid: "UUID",
|
|
6248
|
-
uuidv4: "UUIDv4",
|
|
6249
|
-
uuidv6: "UUIDv6",
|
|
6250
|
-
nanoid: "nanoid",
|
|
6251
|
-
guid: "GUID",
|
|
6252
|
-
cuid: "cuid",
|
|
6253
|
-
cuid2: "cuid2",
|
|
6254
|
-
ulid: "ULID",
|
|
6255
|
-
xid: "XID",
|
|
6256
|
-
ksuid: "KSUID",
|
|
6257
|
-
datetime: "نیټه او وخت",
|
|
6258
|
-
date: "نېټه",
|
|
6259
|
-
time: "وخت",
|
|
6260
|
-
duration: "موده",
|
|
6261
|
-
ipv4: "د IPv4 پته",
|
|
6262
|
-
ipv6: "د IPv6 پته",
|
|
6263
|
-
cidrv4: "د IPv4 ساحه",
|
|
6264
|
-
cidrv6: "د IPv6 ساحه",
|
|
6265
|
-
base64: "base64-encoded متن",
|
|
6266
|
-
base64url: "base64url-encoded متن",
|
|
6267
|
-
json_string: "JSON متن",
|
|
6268
|
-
e164: "د E.164 شمېره",
|
|
6269
|
-
jwt: "JWT",
|
|
6270
|
-
template_literal: "ورودي"
|
|
6271
|
-
};
|
|
6272
|
-
return (issue$1) => {
|
|
6273
|
-
switch (issue$1.code) {
|
|
6274
|
-
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6275
|
-
case "invalid_value":
|
|
6276
|
-
if (issue$1.values.length === 1) {
|
|
6277
|
-
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6278
|
-
}
|
|
6279
|
-
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6280
|
-
case "too_big": {
|
|
6281
|
-
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6282
|
-
const sizing = getSizing(issue$1.origin);
|
|
6283
|
-
if (sizing) {
|
|
6284
|
-
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6285
|
-
}
|
|
6286
|
-
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6287
|
-
}
|
|
6288
|
-
case "too_small": {
|
|
6289
|
-
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6290
|
-
const sizing = getSizing(issue$1.origin);
|
|
6291
|
-
if (sizing) {
|
|
6292
|
-
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6293
|
-
}
|
|
6294
|
-
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6295
|
-
}
|
|
6296
|
-
case "invalid_format": {
|
|
6297
|
-
const _issue = issue$1;
|
|
6298
|
-
if (_issue.format === "starts_with") {
|
|
6299
|
-
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6300
|
-
}
|
|
6301
|
-
if (_issue.format === "ends_with") {
|
|
6302
|
-
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6303
|
-
}
|
|
6304
|
-
if (_issue.format === "includes") {
|
|
6305
|
-
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6306
|
-
}
|
|
6307
|
-
if (_issue.format === "regex") {
|
|
6308
|
-
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6309
|
-
}
|
|
6310
|
-
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6311
|
-
}
|
|
6312
|
-
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6313
|
-
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6314
|
-
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6315
|
-
case "invalid_union": return `ناسمه ورودي`;
|
|
6316
|
-
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6317
|
-
default: return `ناسمه ورودي`;
|
|
6318
|
-
}
|
|
6319
|
-
};
|
|
6320
|
-
};
|
|
6321
|
-
function ps_default() {
|
|
6322
6041
|
return { localeError: error$13() };
|
|
6323
6042
|
}
|
|
6324
6043
|
|
|
6325
6044
|
//#endregion
|
|
6326
|
-
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
6045
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/pl.js
|
|
6327
6046
|
const error$12 = () => {
|
|
6328
6047
|
const Sizable = {
|
|
6329
6048
|
string: {
|
|
@@ -6346,7 +6065,7 @@ const error$12 = () => {
|
|
|
6346
6065
|
function getSizing(origin) {
|
|
6347
6066
|
return Sizable[origin] ?? null;
|
|
6348
6067
|
}
|
|
6349
|
-
const parsedType$
|
|
6068
|
+
const parsedType$2 = (data) => {
|
|
6350
6069
|
const t = typeof data;
|
|
6351
6070
|
switch (t) {
|
|
6352
6071
|
case "number": {
|
|
@@ -6398,7 +6117,7 @@ const error$12 = () => {
|
|
|
6398
6117
|
};
|
|
6399
6118
|
return (issue$1) => {
|
|
6400
6119
|
switch (issue$1.code) {
|
|
6401
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6120
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$2(issue$1.input)}`;
|
|
6402
6121
|
case "invalid_value":
|
|
6403
6122
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6404
6123
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6440,7 +6159,7 @@ function pl_default() {
|
|
|
6440
6159
|
}
|
|
6441
6160
|
|
|
6442
6161
|
//#endregion
|
|
6443
|
-
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6162
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/pt.js
|
|
6444
6163
|
const error$11 = () => {
|
|
6445
6164
|
const Sizable = {
|
|
6446
6165
|
string: {
|
|
@@ -6463,7 +6182,7 @@ const error$11 = () => {
|
|
|
6463
6182
|
function getSizing(origin) {
|
|
6464
6183
|
return Sizable[origin] ?? null;
|
|
6465
6184
|
}
|
|
6466
|
-
const parsedType$
|
|
6185
|
+
const parsedType$2 = (data) => {
|
|
6467
6186
|
const t = typeof data;
|
|
6468
6187
|
switch (t) {
|
|
6469
6188
|
case "number": {
|
|
@@ -6515,7 +6234,7 @@ const error$11 = () => {
|
|
|
6515
6234
|
};
|
|
6516
6235
|
return (issue$1) => {
|
|
6517
6236
|
switch (issue$1.code) {
|
|
6518
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6237
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$2(issue$1.input)}`;
|
|
6519
6238
|
case "invalid_value":
|
|
6520
6239
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6521
6240
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6555,7 +6274,7 @@ function pt_default() {
|
|
|
6555
6274
|
}
|
|
6556
6275
|
|
|
6557
6276
|
//#endregion
|
|
6558
|
-
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6277
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ru.js
|
|
6559
6278
|
function getRussianPlural(count, one, few, many) {
|
|
6560
6279
|
const absCount = Math.abs(count);
|
|
6561
6280
|
const lastDigit = absCount % 10;
|
|
@@ -6609,7 +6328,7 @@ const error$10 = () => {
|
|
|
6609
6328
|
function getSizing(origin) {
|
|
6610
6329
|
return Sizable[origin] ?? null;
|
|
6611
6330
|
}
|
|
6612
|
-
const parsedType$
|
|
6331
|
+
const parsedType$2 = (data) => {
|
|
6613
6332
|
const t = typeof data;
|
|
6614
6333
|
switch (t) {
|
|
6615
6334
|
case "number": {
|
|
@@ -6661,7 +6380,7 @@ const error$10 = () => {
|
|
|
6661
6380
|
};
|
|
6662
6381
|
return (issue$1) => {
|
|
6663
6382
|
switch (issue$1.code) {
|
|
6664
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6383
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$2(issue$1.input)}`;
|
|
6665
6384
|
case "invalid_value":
|
|
6666
6385
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6667
6386
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6707,7 +6426,7 @@ function ru_default() {
|
|
|
6707
6426
|
}
|
|
6708
6427
|
|
|
6709
6428
|
//#endregion
|
|
6710
|
-
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6429
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/sl.js
|
|
6711
6430
|
const error$9 = () => {
|
|
6712
6431
|
const Sizable = {
|
|
6713
6432
|
string: {
|
|
@@ -6730,7 +6449,7 @@ const error$9 = () => {
|
|
|
6730
6449
|
function getSizing(origin) {
|
|
6731
6450
|
return Sizable[origin] ?? null;
|
|
6732
6451
|
}
|
|
6733
|
-
const parsedType$
|
|
6452
|
+
const parsedType$2 = (data) => {
|
|
6734
6453
|
const t = typeof data;
|
|
6735
6454
|
switch (t) {
|
|
6736
6455
|
case "number": {
|
|
@@ -6782,7 +6501,7 @@ const error$9 = () => {
|
|
|
6782
6501
|
};
|
|
6783
6502
|
return (issue$1) => {
|
|
6784
6503
|
switch (issue$1.code) {
|
|
6785
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6504
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$2(issue$1.input)}`;
|
|
6786
6505
|
case "invalid_value":
|
|
6787
6506
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6788
6507
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6824,7 +6543,7 @@ function sl_default() {
|
|
|
6824
6543
|
}
|
|
6825
6544
|
|
|
6826
6545
|
//#endregion
|
|
6827
|
-
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6546
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/sv.js
|
|
6828
6547
|
const error$8 = () => {
|
|
6829
6548
|
const Sizable = {
|
|
6830
6549
|
string: {
|
|
@@ -6847,7 +6566,7 @@ const error$8 = () => {
|
|
|
6847
6566
|
function getSizing(origin) {
|
|
6848
6567
|
return Sizable[origin] ?? null;
|
|
6849
6568
|
}
|
|
6850
|
-
const parsedType$
|
|
6569
|
+
const parsedType$2 = (data) => {
|
|
6851
6570
|
const t = typeof data;
|
|
6852
6571
|
switch (t) {
|
|
6853
6572
|
case "number": {
|
|
@@ -6899,7 +6618,7 @@ const error$8 = () => {
|
|
|
6899
6618
|
};
|
|
6900
6619
|
return (issue$1) => {
|
|
6901
6620
|
switch (issue$1.code) {
|
|
6902
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6621
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$2(issue$1.input)}`;
|
|
6903
6622
|
case "invalid_value":
|
|
6904
6623
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6905
6624
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6943,7 +6662,7 @@ function sv_default() {
|
|
|
6943
6662
|
}
|
|
6944
6663
|
|
|
6945
6664
|
//#endregion
|
|
6946
|
-
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6665
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ta.js
|
|
6947
6666
|
const error$7 = () => {
|
|
6948
6667
|
const Sizable = {
|
|
6949
6668
|
string: {
|
|
@@ -6966,7 +6685,7 @@ const error$7 = () => {
|
|
|
6966
6685
|
function getSizing(origin) {
|
|
6967
6686
|
return Sizable[origin] ?? null;
|
|
6968
6687
|
}
|
|
6969
|
-
const parsedType$
|
|
6688
|
+
const parsedType$2 = (data) => {
|
|
6970
6689
|
const t = typeof data;
|
|
6971
6690
|
switch (t) {
|
|
6972
6691
|
case "number": {
|
|
@@ -7018,7 +6737,7 @@ const error$7 = () => {
|
|
|
7018
6737
|
};
|
|
7019
6738
|
return (issue$1) => {
|
|
7020
6739
|
switch (issue$1.code) {
|
|
7021
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
6740
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$2(issue$1.input)}`;
|
|
7022
6741
|
case "invalid_value":
|
|
7023
6742
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7024
6743
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -7060,7 +6779,7 @@ function ta_default() {
|
|
|
7060
6779
|
}
|
|
7061
6780
|
|
|
7062
6781
|
//#endregion
|
|
7063
|
-
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6782
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/th.js
|
|
7064
6783
|
const error$6 = () => {
|
|
7065
6784
|
const Sizable = {
|
|
7066
6785
|
string: {
|
|
@@ -7083,7 +6802,7 @@ const error$6 = () => {
|
|
|
7083
6802
|
function getSizing(origin) {
|
|
7084
6803
|
return Sizable[origin] ?? null;
|
|
7085
6804
|
}
|
|
7086
|
-
const parsedType$
|
|
6805
|
+
const parsedType$2 = (data) => {
|
|
7087
6806
|
const t = typeof data;
|
|
7088
6807
|
switch (t) {
|
|
7089
6808
|
case "number": {
|
|
@@ -7135,7 +6854,7 @@ const error$6 = () => {
|
|
|
7135
6854
|
};
|
|
7136
6855
|
return (issue$1) => {
|
|
7137
6856
|
switch (issue$1.code) {
|
|
7138
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
6857
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$2(issue$1.input)}`;
|
|
7139
6858
|
case "invalid_value":
|
|
7140
6859
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7141
6860
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7177,7 +6896,7 @@ function th_default() {
|
|
|
7177
6896
|
}
|
|
7178
6897
|
|
|
7179
6898
|
//#endregion
|
|
7180
|
-
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6899
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/tr.js
|
|
7181
6900
|
const parsedType = (data) => {
|
|
7182
6901
|
const t = typeof data;
|
|
7183
6902
|
switch (t) {
|
|
@@ -7290,7 +7009,7 @@ function tr_default() {
|
|
|
7290
7009
|
}
|
|
7291
7010
|
|
|
7292
7011
|
//#endregion
|
|
7293
|
-
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
7012
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ua.js
|
|
7294
7013
|
const error$4 = () => {
|
|
7295
7014
|
const Sizable = {
|
|
7296
7015
|
string: {
|
|
@@ -7313,7 +7032,7 @@ const error$4 = () => {
|
|
|
7313
7032
|
function getSizing(origin) {
|
|
7314
7033
|
return Sizable[origin] ?? null;
|
|
7315
7034
|
}
|
|
7316
|
-
const parsedType$
|
|
7035
|
+
const parsedType$2 = (data) => {
|
|
7317
7036
|
const t = typeof data;
|
|
7318
7037
|
switch (t) {
|
|
7319
7038
|
case "number": {
|
|
@@ -7365,7 +7084,7 @@ const error$4 = () => {
|
|
|
7365
7084
|
};
|
|
7366
7085
|
return (issue$1) => {
|
|
7367
7086
|
switch (issue$1.code) {
|
|
7368
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7087
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$2(issue$1.input)}`;
|
|
7369
7088
|
case "invalid_value":
|
|
7370
7089
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7371
7090
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7405,7 +7124,7 @@ function ua_default() {
|
|
|
7405
7124
|
}
|
|
7406
7125
|
|
|
7407
7126
|
//#endregion
|
|
7408
|
-
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7127
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ur.js
|
|
7409
7128
|
const error$3 = () => {
|
|
7410
7129
|
const Sizable = {
|
|
7411
7130
|
string: {
|
|
@@ -7428,7 +7147,7 @@ const error$3 = () => {
|
|
|
7428
7147
|
function getSizing(origin) {
|
|
7429
7148
|
return Sizable[origin] ?? null;
|
|
7430
7149
|
}
|
|
7431
|
-
const parsedType$
|
|
7150
|
+
const parsedType$2 = (data) => {
|
|
7432
7151
|
const t = typeof data;
|
|
7433
7152
|
switch (t) {
|
|
7434
7153
|
case "number": {
|
|
@@ -7480,7 +7199,7 @@ const error$3 = () => {
|
|
|
7480
7199
|
};
|
|
7481
7200
|
return (issue$1) => {
|
|
7482
7201
|
switch (issue$1.code) {
|
|
7483
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7202
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$2(issue$1.input)} موصول ہوا`;
|
|
7484
7203
|
case "invalid_value":
|
|
7485
7204
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7486
7205
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7522,7 +7241,7 @@ function ur_default() {
|
|
|
7522
7241
|
}
|
|
7523
7242
|
|
|
7524
7243
|
//#endregion
|
|
7525
|
-
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7244
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/vi.js
|
|
7526
7245
|
const error$2 = () => {
|
|
7527
7246
|
const Sizable = {
|
|
7528
7247
|
string: {
|
|
@@ -7545,7 +7264,7 @@ const error$2 = () => {
|
|
|
7545
7264
|
function getSizing(origin) {
|
|
7546
7265
|
return Sizable[origin] ?? null;
|
|
7547
7266
|
}
|
|
7548
|
-
const parsedType$
|
|
7267
|
+
const parsedType$2 = (data) => {
|
|
7549
7268
|
const t = typeof data;
|
|
7550
7269
|
switch (t) {
|
|
7551
7270
|
case "number": {
|
|
@@ -7597,7 +7316,7 @@ const error$2 = () => {
|
|
|
7597
7316
|
};
|
|
7598
7317
|
return (issue$1) => {
|
|
7599
7318
|
switch (issue$1.code) {
|
|
7600
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7319
|
+
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$2(issue$1.input)}`;
|
|
7601
7320
|
case "invalid_value":
|
|
7602
7321
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7603
7322
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7637,7 +7356,7 @@ function vi_default() {
|
|
|
7637
7356
|
}
|
|
7638
7357
|
|
|
7639
7358
|
//#endregion
|
|
7640
|
-
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7359
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/zh-CN.js
|
|
7641
7360
|
const error$1 = () => {
|
|
7642
7361
|
const Sizable = {
|
|
7643
7362
|
string: {
|
|
@@ -7660,7 +7379,7 @@ const error$1 = () => {
|
|
|
7660
7379
|
function getSizing(origin) {
|
|
7661
7380
|
return Sizable[origin] ?? null;
|
|
7662
7381
|
}
|
|
7663
|
-
const parsedType$
|
|
7382
|
+
const parsedType$2 = (data) => {
|
|
7664
7383
|
const t = typeof data;
|
|
7665
7384
|
switch (t) {
|
|
7666
7385
|
case "number": {
|
|
@@ -7712,7 +7431,7 @@ const error$1 = () => {
|
|
|
7712
7431
|
};
|
|
7713
7432
|
return (issue$1) => {
|
|
7714
7433
|
switch (issue$1.code) {
|
|
7715
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7434
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$2(issue$1.input)}`;
|
|
7716
7435
|
case "invalid_value":
|
|
7717
7436
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7718
7437
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7752,7 +7471,7 @@ function zh_CN_default() {
|
|
|
7752
7471
|
}
|
|
7753
7472
|
|
|
7754
7473
|
//#endregion
|
|
7755
|
-
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7474
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/zh-TW.js
|
|
7756
7475
|
const error = () => {
|
|
7757
7476
|
const Sizable = {
|
|
7758
7477
|
string: {
|
|
@@ -7775,7 +7494,7 @@ const error = () => {
|
|
|
7775
7494
|
function getSizing(origin) {
|
|
7776
7495
|
return Sizable[origin] ?? null;
|
|
7777
7496
|
}
|
|
7778
|
-
const parsedType$
|
|
7497
|
+
const parsedType$2 = (data) => {
|
|
7779
7498
|
const t = typeof data;
|
|
7780
7499
|
switch (t) {
|
|
7781
7500
|
case "number": {
|
|
@@ -7827,7 +7546,7 @@ const error = () => {
|
|
|
7827
7546
|
};
|
|
7828
7547
|
return (issue$1) => {
|
|
7829
7548
|
switch (issue$1.code) {
|
|
7830
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7549
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$2(issue$1.input)}`;
|
|
7831
7550
|
case "invalid_value":
|
|
7832
7551
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7833
7552
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7869,7 +7588,7 @@ function zh_TW_default() {
|
|
|
7869
7588
|
}
|
|
7870
7589
|
|
|
7871
7590
|
//#endregion
|
|
7872
|
-
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7591
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/index.js
|
|
7873
7592
|
var locales_exports = {};
|
|
7874
7593
|
__export(locales_exports, {
|
|
7875
7594
|
ar: () => ar_default,
|
|
@@ -7879,7 +7598,6 @@ __export(locales_exports, {
|
|
|
7879
7598
|
cs: () => cs_default,
|
|
7880
7599
|
de: () => de_default,
|
|
7881
7600
|
en: () => en_default,
|
|
7882
|
-
eo: () => eo_default,
|
|
7883
7601
|
es: () => es_default,
|
|
7884
7602
|
fa: () => fa_default,
|
|
7885
7603
|
fi: () => fi_default,
|
|
@@ -7898,7 +7616,6 @@ __export(locales_exports, {
|
|
|
7898
7616
|
no: () => no_default,
|
|
7899
7617
|
ota: () => ota_default,
|
|
7900
7618
|
pl: () => pl_default,
|
|
7901
|
-
ps: () => ps_default,
|
|
7902
7619
|
pt: () => pt_default,
|
|
7903
7620
|
ru: () => ru_default,
|
|
7904
7621
|
sl: () => sl_default,
|
|
@@ -7914,12 +7631,12 @@ __export(locales_exports, {
|
|
|
7914
7631
|
});
|
|
7915
7632
|
|
|
7916
7633
|
//#endregion
|
|
7917
|
-
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7634
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/registries.js
|
|
7918
7635
|
const $output = Symbol("ZodOutput");
|
|
7919
7636
|
const $input = Symbol("ZodInput");
|
|
7920
7637
|
var $ZodRegistry = class {
|
|
7921
7638
|
constructor() {
|
|
7922
|
-
this._map = new
|
|
7639
|
+
this._map = new WeakMap();
|
|
7923
7640
|
this._idmap = new Map();
|
|
7924
7641
|
}
|
|
7925
7642
|
add(schema, ..._meta) {
|
|
@@ -7933,16 +7650,7 @@ var $ZodRegistry = class {
|
|
|
7933
7650
|
}
|
|
7934
7651
|
return this;
|
|
7935
7652
|
}
|
|
7936
|
-
clear() {
|
|
7937
|
-
this._map = new Map();
|
|
7938
|
-
this._idmap = new Map();
|
|
7939
|
-
return this;
|
|
7940
|
-
}
|
|
7941
7653
|
remove(schema) {
|
|
7942
|
-
const meta = this._map.get(schema);
|
|
7943
|
-
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7944
|
-
this._idmap.delete(meta.id);
|
|
7945
|
-
}
|
|
7946
7654
|
this._map.delete(schema);
|
|
7947
7655
|
return this;
|
|
7948
7656
|
}
|
|
@@ -7968,7 +7676,7 @@ function registry() {
|
|
|
7968
7676
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7969
7677
|
|
|
7970
7678
|
//#endregion
|
|
7971
|
-
//#region ../../node_modules/zod/v4/core/api.js
|
|
7679
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/api.js
|
|
7972
7680
|
function _string(Class$1, params) {
|
|
7973
7681
|
return new Class$1({
|
|
7974
7682
|
type: "string",
|
|
@@ -8183,13 +7891,6 @@ function _jwt(Class$1, params) {
|
|
|
8183
7891
|
...normalizeParams(params)
|
|
8184
7892
|
});
|
|
8185
7893
|
}
|
|
8186
|
-
const TimePrecision = {
|
|
8187
|
-
Any: null,
|
|
8188
|
-
Minute: -1,
|
|
8189
|
-
Second: 0,
|
|
8190
|
-
Millisecond: 3,
|
|
8191
|
-
Microsecond: 6
|
|
8192
|
-
};
|
|
8193
7894
|
function _isoDateTime(Class$1, params) {
|
|
8194
7895
|
return new Class$1({
|
|
8195
7896
|
type: "string",
|
|
@@ -8756,8 +8457,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8756
8457
|
return schema;
|
|
8757
8458
|
}
|
|
8758
8459
|
function _stringbool(Classes, _params) {
|
|
8759
|
-
const
|
|
8760
|
-
let truthyArray =
|
|
8460
|
+
const { case: _case, error: error$37, truthy, falsy } = normalizeParams(_params);
|
|
8461
|
+
let truthyArray = truthy ?? [
|
|
8761
8462
|
"true",
|
|
8762
8463
|
"1",
|
|
8763
8464
|
"yes",
|
|
@@ -8765,7 +8466,7 @@ function _stringbool(Classes, _params) {
|
|
|
8765
8466
|
"y",
|
|
8766
8467
|
"enabled"
|
|
8767
8468
|
];
|
|
8768
|
-
let falsyArray =
|
|
8469
|
+
let falsyArray = falsy ?? [
|
|
8769
8470
|
"false",
|
|
8770
8471
|
"0",
|
|
8771
8472
|
"no",
|
|
@@ -8773,7 +8474,7 @@ function _stringbool(Classes, _params) {
|
|
|
8773
8474
|
"n",
|
|
8774
8475
|
"disabled"
|
|
8775
8476
|
];
|
|
8776
|
-
if (
|
|
8477
|
+
if (_case !== "sensitive") {
|
|
8777
8478
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8778
8479
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8779
8480
|
}
|
|
@@ -8787,7 +8488,7 @@ function _stringbool(Classes, _params) {
|
|
|
8787
8488
|
type: "transform",
|
|
8788
8489
|
transform: (input, payload) => {
|
|
8789
8490
|
let data = input;
|
|
8790
|
-
if (
|
|
8491
|
+
if (_case !== "sensitive") data = data.toLowerCase();
|
|
8791
8492
|
if (truthySet.has(data)) {
|
|
8792
8493
|
return true;
|
|
8793
8494
|
} else if (falsySet.has(data)) {
|
|
@@ -8803,47 +8504,31 @@ function _stringbool(Classes, _params) {
|
|
|
8803
8504
|
return {};
|
|
8804
8505
|
}
|
|
8805
8506
|
},
|
|
8806
|
-
error:
|
|
8507
|
+
error: error$37
|
|
8807
8508
|
});
|
|
8808
8509
|
const innerPipe = new _Pipe({
|
|
8809
8510
|
type: "pipe",
|
|
8810
8511
|
in: new _String({
|
|
8811
8512
|
type: "string",
|
|
8812
|
-
error:
|
|
8513
|
+
error: error$37
|
|
8813
8514
|
}),
|
|
8814
8515
|
out: tx,
|
|
8815
|
-
error:
|
|
8516
|
+
error: error$37
|
|
8816
8517
|
});
|
|
8817
8518
|
const outerPipe = new _Pipe({
|
|
8818
8519
|
type: "pipe",
|
|
8819
8520
|
in: innerPipe,
|
|
8820
8521
|
out: new _Boolean({
|
|
8821
8522
|
type: "boolean",
|
|
8822
|
-
error:
|
|
8523
|
+
error: error$37
|
|
8823
8524
|
}),
|
|
8824
|
-
error:
|
|
8525
|
+
error: error$37
|
|
8825
8526
|
});
|
|
8826
8527
|
return outerPipe;
|
|
8827
8528
|
}
|
|
8828
|
-
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8829
|
-
const params = normalizeParams(_params);
|
|
8830
|
-
const def = {
|
|
8831
|
-
...normalizeParams(_params),
|
|
8832
|
-
check: "string_format",
|
|
8833
|
-
type: "string",
|
|
8834
|
-
format,
|
|
8835
|
-
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8836
|
-
...params
|
|
8837
|
-
};
|
|
8838
|
-
if (fnOrRegex instanceof RegExp) {
|
|
8839
|
-
def.pattern = fnOrRegex;
|
|
8840
|
-
}
|
|
8841
|
-
const inst = new Class$1(def);
|
|
8842
|
-
return inst;
|
|
8843
|
-
}
|
|
8844
8529
|
|
|
8845
8530
|
//#endregion
|
|
8846
|
-
//#region ../../node_modules/zod/v4/core/function.js
|
|
8531
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/function.js
|
|
8847
8532
|
var $ZodFunction = class {
|
|
8848
8533
|
constructor(def) {
|
|
8849
8534
|
this._def = def;
|
|
@@ -8914,7 +8599,7 @@ function _function(params) {
|
|
|
8914
8599
|
}
|
|
8915
8600
|
|
|
8916
8601
|
//#endregion
|
|
8917
|
-
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8602
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/to-json-schema.js
|
|
8918
8603
|
var JSONSchemaGenerator = class {
|
|
8919
8604
|
constructor(params) {
|
|
8920
8605
|
this.counter = 0;
|
|
@@ -8950,435 +8635,431 @@ var JSONSchemaGenerator = class {
|
|
|
8950
8635
|
const result = {
|
|
8951
8636
|
schema: {},
|
|
8952
8637
|
count: 1,
|
|
8953
|
-
cycle: undefined
|
|
8954
|
-
path: _params.path
|
|
8638
|
+
cycle: undefined
|
|
8955
8639
|
};
|
|
8956
8640
|
this.seen.set(schema, result);
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8641
|
+
if (schema._zod.toJSONSchema) {
|
|
8642
|
+
result.schema = schema._zod.toJSONSchema();
|
|
8643
|
+
}
|
|
8644
|
+
const params = {
|
|
8645
|
+
..._params,
|
|
8646
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8647
|
+
path: _params.path
|
|
8648
|
+
};
|
|
8649
|
+
const parent = schema._zod.parent;
|
|
8650
|
+
if (parent) {
|
|
8651
|
+
result.ref = parent;
|
|
8652
|
+
this.process(parent, params);
|
|
8653
|
+
this.seen.get(parent).isParent = true;
|
|
8960
8654
|
} else {
|
|
8961
|
-
const
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
const _json = result.schema;
|
|
8973
|
-
switch (def.type) {
|
|
8974
|
-
case "string": {
|
|
8975
|
-
const json$1 = _json;
|
|
8976
|
-
json$1.type = "string";
|
|
8977
|
-
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8978
|
-
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8979
|
-
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8980
|
-
if (format) {
|
|
8981
|
-
json$1.format = formatMap[format] ?? format;
|
|
8982
|
-
if (json$1.format === "") delete json$1.format;
|
|
8983
|
-
}
|
|
8984
|
-
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8985
|
-
if (patterns && patterns.size > 0) {
|
|
8986
|
-
const regexes = [...patterns];
|
|
8987
|
-
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8988
|
-
else if (regexes.length > 1) {
|
|
8989
|
-
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8990
|
-
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8991
|
-
pattern: regex.source
|
|
8992
|
-
}))];
|
|
8993
|
-
}
|
|
8994
|
-
}
|
|
8995
|
-
break;
|
|
8996
|
-
}
|
|
8997
|
-
case "number": {
|
|
8998
|
-
const json$1 = _json;
|
|
8999
|
-
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
9000
|
-
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
9001
|
-
else json$1.type = "number";
|
|
9002
|
-
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
9003
|
-
if (typeof minimum === "number") {
|
|
9004
|
-
json$1.minimum = minimum;
|
|
9005
|
-
if (typeof exclusiveMinimum === "number") {
|
|
9006
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9007
|
-
else delete json$1.exclusiveMinimum;
|
|
9008
|
-
}
|
|
9009
|
-
}
|
|
9010
|
-
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
9011
|
-
if (typeof maximum === "number") {
|
|
9012
|
-
json$1.maximum = maximum;
|
|
9013
|
-
if (typeof exclusiveMaximum === "number") {
|
|
9014
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9015
|
-
else delete json$1.exclusiveMaximum;
|
|
9016
|
-
}
|
|
9017
|
-
}
|
|
9018
|
-
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9019
|
-
break;
|
|
9020
|
-
}
|
|
9021
|
-
case "boolean": {
|
|
9022
|
-
const json$1 = _json;
|
|
9023
|
-
json$1.type = "boolean";
|
|
9024
|
-
break;
|
|
9025
|
-
}
|
|
9026
|
-
case "bigint": {
|
|
9027
|
-
if (this.unrepresentable === "throw") {
|
|
9028
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9029
|
-
}
|
|
9030
|
-
break;
|
|
8655
|
+
const _json = result.schema;
|
|
8656
|
+
switch (def.type) {
|
|
8657
|
+
case "string": {
|
|
8658
|
+
const json$1 = _json;
|
|
8659
|
+
json$1.type = "string";
|
|
8660
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8661
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8662
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8663
|
+
if (format) {
|
|
8664
|
+
json$1.format = formatMap[format] ?? format;
|
|
8665
|
+
if (json$1.format === "") delete json$1.format;
|
|
9031
8666
|
}
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
8667
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8668
|
+
if (patterns && patterns.size > 0) {
|
|
8669
|
+
const regexes = [...patterns];
|
|
8670
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8671
|
+
else if (regexes.length > 1) {
|
|
8672
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8673
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8674
|
+
pattern: regex.source
|
|
8675
|
+
}))];
|
|
9035
8676
|
}
|
|
9036
|
-
break;
|
|
9037
8677
|
}
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
8678
|
+
break;
|
|
8679
|
+
}
|
|
8680
|
+
case "number": {
|
|
8681
|
+
const json$1 = _json;
|
|
8682
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8683
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8684
|
+
else json$1.type = "number";
|
|
8685
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8686
|
+
if (typeof minimum === "number") {
|
|
8687
|
+
json$1.minimum = minimum;
|
|
8688
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8689
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8690
|
+
else delete json$1.exclusiveMinimum;
|
|
9051
8691
|
}
|
|
9052
|
-
break;
|
|
9053
8692
|
}
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
8693
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8694
|
+
if (typeof maximum === "number") {
|
|
8695
|
+
json$1.maximum = maximum;
|
|
8696
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8697
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8698
|
+
else delete json$1.exclusiveMaximum;
|
|
9057
8699
|
}
|
|
9058
|
-
break;
|
|
9059
|
-
}
|
|
9060
|
-
case "never": {
|
|
9061
|
-
_json.not = {};
|
|
9062
|
-
break;
|
|
9063
8700
|
}
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
8701
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
8702
|
+
break;
|
|
8703
|
+
}
|
|
8704
|
+
case "boolean": {
|
|
8705
|
+
const json$1 = _json;
|
|
8706
|
+
json$1.type = "boolean";
|
|
8707
|
+
break;
|
|
8708
|
+
}
|
|
8709
|
+
case "bigint": {
|
|
8710
|
+
if (this.unrepresentable === "throw") {
|
|
8711
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9069
8712
|
}
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
json$1.type = "array";
|
|
9076
|
-
json$1.items = this.process(def.element, {
|
|
9077
|
-
...params,
|
|
9078
|
-
path: [...params.path, "items"]
|
|
9079
|
-
});
|
|
9080
|
-
break;
|
|
8713
|
+
break;
|
|
8714
|
+
}
|
|
8715
|
+
case "symbol": {
|
|
8716
|
+
if (this.unrepresentable === "throw") {
|
|
8717
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9081
8718
|
}
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
if (requiredKeys.size > 0) {
|
|
9107
|
-
json$1.required = Array.from(requiredKeys);
|
|
9108
|
-
}
|
|
9109
|
-
if (def.catchall?._zod.def.type === "never") {
|
|
9110
|
-
json$1.additionalProperties = false;
|
|
9111
|
-
} else if (!def.catchall) {
|
|
9112
|
-
if (this.io === "output") json$1.additionalProperties = false;
|
|
9113
|
-
} else if (def.catchall) {
|
|
9114
|
-
json$1.additionalProperties = this.process(def.catchall, {
|
|
9115
|
-
...params,
|
|
9116
|
-
path: [...params.path, "additionalProperties"]
|
|
9117
|
-
});
|
|
9118
|
-
}
|
|
9119
|
-
break;
|
|
8719
|
+
break;
|
|
8720
|
+
}
|
|
8721
|
+
case "undefined": {
|
|
8722
|
+
const json$1 = _json;
|
|
8723
|
+
json$1.type = "null";
|
|
8724
|
+
break;
|
|
8725
|
+
}
|
|
8726
|
+
case "null": {
|
|
8727
|
+
_json.type = "null";
|
|
8728
|
+
break;
|
|
8729
|
+
}
|
|
8730
|
+
case "any": {
|
|
8731
|
+
break;
|
|
8732
|
+
}
|
|
8733
|
+
case "unknown": {
|
|
8734
|
+
break;
|
|
8735
|
+
}
|
|
8736
|
+
case "never": {
|
|
8737
|
+
_json.not = {};
|
|
8738
|
+
break;
|
|
8739
|
+
}
|
|
8740
|
+
case "void": {
|
|
8741
|
+
if (this.unrepresentable === "throw") {
|
|
8742
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
9120
8743
|
}
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
...params.path,
|
|
9127
|
-
"anyOf",
|
|
9128
|
-
i
|
|
9129
|
-
]
|
|
9130
|
-
}));
|
|
9131
|
-
break;
|
|
8744
|
+
break;
|
|
8745
|
+
}
|
|
8746
|
+
case "date": {
|
|
8747
|
+
if (this.unrepresentable === "throw") {
|
|
8748
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
9132
8749
|
}
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
8750
|
+
break;
|
|
8751
|
+
}
|
|
8752
|
+
case "array": {
|
|
8753
|
+
const json$1 = _json;
|
|
8754
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
8755
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8756
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8757
|
+
json$1.type = "array";
|
|
8758
|
+
json$1.items = this.process(def.element, {
|
|
8759
|
+
...params,
|
|
8760
|
+
path: [...params.path, "items"]
|
|
8761
|
+
});
|
|
8762
|
+
break;
|
|
8763
|
+
}
|
|
8764
|
+
case "object": {
|
|
8765
|
+
const json$1 = _json;
|
|
8766
|
+
json$1.type = "object";
|
|
8767
|
+
json$1.properties = {};
|
|
8768
|
+
const shape = def.shape;
|
|
8769
|
+
for (const key in shape) {
|
|
8770
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9144
8771
|
...params,
|
|
9145
8772
|
path: [
|
|
9146
8773
|
...params.path,
|
|
9147
|
-
"
|
|
9148
|
-
|
|
8774
|
+
"properties",
|
|
8775
|
+
key
|
|
9149
8776
|
]
|
|
9150
8777
|
});
|
|
9151
|
-
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9152
|
-
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9153
|
-
json$1.allOf = allOf;
|
|
9154
|
-
break;
|
|
9155
8778
|
}
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
path: [
|
|
9162
|
-
...params.path,
|
|
9163
|
-
"prefixItems",
|
|
9164
|
-
i
|
|
9165
|
-
]
|
|
9166
|
-
}));
|
|
9167
|
-
if (this.target === "draft-2020-12") {
|
|
9168
|
-
json$1.prefixItems = prefixItems;
|
|
8779
|
+
const allKeys = new Set(Object.keys(shape));
|
|
8780
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
8781
|
+
const v = def.shape[key]._zod;
|
|
8782
|
+
if (this.io === "input") {
|
|
8783
|
+
return v.optin === undefined;
|
|
9169
8784
|
} else {
|
|
9170
|
-
|
|
8785
|
+
return v.optout === undefined;
|
|
9171
8786
|
}
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
path: [...params.path, "items"]
|
|
9176
|
-
});
|
|
9177
|
-
if (this.target === "draft-2020-12") {
|
|
9178
|
-
json$1.items = rest;
|
|
9179
|
-
} else {
|
|
9180
|
-
json$1.additionalItems = rest;
|
|
9181
|
-
}
|
|
9182
|
-
}
|
|
9183
|
-
if (def.rest) {
|
|
9184
|
-
json$1.items = this.process(def.rest, {
|
|
9185
|
-
...params,
|
|
9186
|
-
path: [...params.path, "items"]
|
|
9187
|
-
});
|
|
9188
|
-
}
|
|
9189
|
-
const { minimum, maximum } = schema._zod.bag;
|
|
9190
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9191
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9192
|
-
break;
|
|
8787
|
+
}));
|
|
8788
|
+
if (requiredKeys.size > 0) {
|
|
8789
|
+
json$1.required = Array.from(requiredKeys);
|
|
9193
8790
|
}
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
json$1.
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
});
|
|
9201
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8791
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
8792
|
+
json$1.additionalProperties = false;
|
|
8793
|
+
} else if (!def.catchall) {
|
|
8794
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
8795
|
+
} else if (def.catchall) {
|
|
8796
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9202
8797
|
...params,
|
|
9203
8798
|
path: [...params.path, "additionalProperties"]
|
|
9204
8799
|
});
|
|
9205
|
-
break;
|
|
9206
8800
|
}
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
8801
|
+
break;
|
|
8802
|
+
}
|
|
8803
|
+
case "union": {
|
|
8804
|
+
const json$1 = _json;
|
|
8805
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8806
|
+
...params,
|
|
8807
|
+
path: [
|
|
8808
|
+
...params.path,
|
|
8809
|
+
"anyOf",
|
|
8810
|
+
i
|
|
8811
|
+
]
|
|
8812
|
+
}));
|
|
8813
|
+
break;
|
|
8814
|
+
}
|
|
8815
|
+
case "intersection": {
|
|
8816
|
+
const json$1 = _json;
|
|
8817
|
+
const a = this.process(def.left, {
|
|
8818
|
+
...params,
|
|
8819
|
+
path: [
|
|
8820
|
+
...params.path,
|
|
8821
|
+
"allOf",
|
|
8822
|
+
0
|
|
8823
|
+
]
|
|
8824
|
+
});
|
|
8825
|
+
const b = this.process(def.right, {
|
|
8826
|
+
...params,
|
|
8827
|
+
path: [
|
|
8828
|
+
...params.path,
|
|
8829
|
+
"allOf",
|
|
8830
|
+
1
|
|
8831
|
+
]
|
|
8832
|
+
});
|
|
8833
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
8834
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
8835
|
+
json$1.allOf = allOf;
|
|
8836
|
+
break;
|
|
8837
|
+
}
|
|
8838
|
+
case "tuple": {
|
|
8839
|
+
const json$1 = _json;
|
|
8840
|
+
json$1.type = "array";
|
|
8841
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8842
|
+
...params,
|
|
8843
|
+
path: [
|
|
8844
|
+
...params.path,
|
|
8845
|
+
"prefixItems",
|
|
8846
|
+
i
|
|
8847
|
+
]
|
|
8848
|
+
}));
|
|
8849
|
+
if (this.target === "draft-2020-12") {
|
|
8850
|
+
json$1.prefixItems = prefixItems;
|
|
8851
|
+
} else {
|
|
8852
|
+
json$1.items = prefixItems;
|
|
9212
8853
|
}
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
8854
|
+
if (def.rest) {
|
|
8855
|
+
const rest = this.process(def.rest, {
|
|
8856
|
+
...params,
|
|
8857
|
+
path: [...params.path, "items"]
|
|
8858
|
+
});
|
|
8859
|
+
if (this.target === "draft-2020-12") {
|
|
8860
|
+
json$1.items = rest;
|
|
8861
|
+
} else {
|
|
8862
|
+
json$1.additionalItems = rest;
|
|
9216
8863
|
}
|
|
9217
|
-
break;
|
|
9218
8864
|
}
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
8865
|
+
if (def.rest) {
|
|
8866
|
+
json$1.items = this.process(def.rest, {
|
|
8867
|
+
...params,
|
|
8868
|
+
path: [...params.path, "items"]
|
|
8869
|
+
});
|
|
8870
|
+
}
|
|
8871
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
8872
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8873
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8874
|
+
break;
|
|
8875
|
+
}
|
|
8876
|
+
case "record": {
|
|
8877
|
+
const json$1 = _json;
|
|
8878
|
+
json$1.type = "object";
|
|
8879
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8880
|
+
...params,
|
|
8881
|
+
path: [...params.path, "propertyNames"]
|
|
8882
|
+
});
|
|
8883
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
8884
|
+
...params,
|
|
8885
|
+
path: [...params.path, "additionalProperties"]
|
|
8886
|
+
});
|
|
8887
|
+
break;
|
|
8888
|
+
}
|
|
8889
|
+
case "map": {
|
|
8890
|
+
if (this.unrepresentable === "throw") {
|
|
8891
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9226
8892
|
}
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
if (this.unrepresentable === "throw") {
|
|
9233
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9234
|
-
} else {}
|
|
9235
|
-
} else if (typeof val === "bigint") {
|
|
9236
|
-
if (this.unrepresentable === "throw") {
|
|
9237
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9238
|
-
} else {
|
|
9239
|
-
vals.push(Number(val));
|
|
9240
|
-
}
|
|
9241
|
-
} else {
|
|
9242
|
-
vals.push(val);
|
|
9243
|
-
}
|
|
9244
|
-
}
|
|
9245
|
-
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9246
|
-
const val = vals[0];
|
|
9247
|
-
json$1.type = val === null ? "null" : typeof val;
|
|
9248
|
-
json$1.const = val;
|
|
9249
|
-
} else {
|
|
9250
|
-
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9251
|
-
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9252
|
-
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9253
|
-
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9254
|
-
json$1.enum = vals;
|
|
9255
|
-
}
|
|
9256
|
-
break;
|
|
8893
|
+
break;
|
|
8894
|
+
}
|
|
8895
|
+
case "set": {
|
|
8896
|
+
if (this.unrepresentable === "throw") {
|
|
8897
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9257
8898
|
}
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
8899
|
+
break;
|
|
8900
|
+
}
|
|
8901
|
+
case "enum": {
|
|
8902
|
+
const json$1 = _json;
|
|
8903
|
+
const values = getEnumValues(def.entries);
|
|
8904
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
8905
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
8906
|
+
json$1.enum = values;
|
|
8907
|
+
break;
|
|
8908
|
+
}
|
|
8909
|
+
case "literal": {
|
|
8910
|
+
const json$1 = _json;
|
|
8911
|
+
const vals = [];
|
|
8912
|
+
for (const val of def.values) {
|
|
8913
|
+
if (val === undefined) {
|
|
8914
|
+
if (this.unrepresentable === "throw") {
|
|
8915
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8916
|
+
} else {}
|
|
8917
|
+
} else if (typeof val === "bigint") {
|
|
8918
|
+
if (this.unrepresentable === "throw") {
|
|
8919
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9272
8920
|
} else {
|
|
9273
|
-
|
|
9274
|
-
const mFile = {
|
|
9275
|
-
...file$1,
|
|
9276
|
-
contentMediaType: m
|
|
9277
|
-
};
|
|
9278
|
-
return mFile;
|
|
9279
|
-
});
|
|
8921
|
+
vals.push(Number(val));
|
|
9280
8922
|
}
|
|
9281
8923
|
} else {
|
|
9282
|
-
|
|
9283
|
-
}
|
|
9284
|
-
break;
|
|
9285
|
-
}
|
|
9286
|
-
case "transform": {
|
|
9287
|
-
if (this.unrepresentable === "throw") {
|
|
9288
|
-
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
8924
|
+
vals.push(val);
|
|
9289
8925
|
}
|
|
9290
|
-
break;
|
|
9291
8926
|
}
|
|
9292
|
-
|
|
9293
|
-
const
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
}
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
case "success": {
|
|
9303
|
-
const json$1 = _json;
|
|
9304
|
-
json$1.type = "boolean";
|
|
9305
|
-
break;
|
|
9306
|
-
}
|
|
9307
|
-
case "default": {
|
|
9308
|
-
this.process(def.innerType, params);
|
|
9309
|
-
result.ref = def.innerType;
|
|
9310
|
-
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9311
|
-
break;
|
|
9312
|
-
}
|
|
9313
|
-
case "prefault": {
|
|
9314
|
-
this.process(def.innerType, params);
|
|
9315
|
-
result.ref = def.innerType;
|
|
9316
|
-
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9317
|
-
break;
|
|
9318
|
-
}
|
|
9319
|
-
case "catch": {
|
|
9320
|
-
this.process(def.innerType, params);
|
|
9321
|
-
result.ref = def.innerType;
|
|
9322
|
-
let catchValue;
|
|
9323
|
-
try {
|
|
9324
|
-
catchValue = def.catchValue(undefined);
|
|
9325
|
-
} catch {
|
|
9326
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9327
|
-
}
|
|
9328
|
-
_json.default = catchValue;
|
|
9329
|
-
break;
|
|
8927
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
8928
|
+
const val = vals[0];
|
|
8929
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
8930
|
+
json$1.const = val;
|
|
8931
|
+
} else {
|
|
8932
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
8933
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
8934
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
8935
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
8936
|
+
json$1.enum = vals;
|
|
9330
8937
|
}
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
8938
|
+
break;
|
|
8939
|
+
}
|
|
8940
|
+
case "file": {
|
|
8941
|
+
const json$1 = _json;
|
|
8942
|
+
const file$1 = {
|
|
8943
|
+
type: "string",
|
|
8944
|
+
format: "binary",
|
|
8945
|
+
contentEncoding: "binary"
|
|
8946
|
+
};
|
|
8947
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
8948
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
8949
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
8950
|
+
if (mime) {
|
|
8951
|
+
if (mime.length === 1) {
|
|
8952
|
+
file$1.contentMediaType = mime[0];
|
|
8953
|
+
Object.assign(json$1, file$1);
|
|
8954
|
+
} else {
|
|
8955
|
+
json$1.anyOf = mime.map((m) => {
|
|
8956
|
+
const mFile = {
|
|
8957
|
+
...file$1,
|
|
8958
|
+
contentMediaType: m
|
|
8959
|
+
};
|
|
8960
|
+
return mFile;
|
|
8961
|
+
});
|
|
9334
8962
|
}
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
case "template_literal": {
|
|
9338
|
-
const json$1 = _json;
|
|
9339
|
-
const pattern = schema._zod.pattern;
|
|
9340
|
-
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9341
|
-
json$1.type = "string";
|
|
9342
|
-
json$1.pattern = pattern.source;
|
|
9343
|
-
break;
|
|
9344
|
-
}
|
|
9345
|
-
case "pipe": {
|
|
9346
|
-
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9347
|
-
this.process(innerType, params);
|
|
9348
|
-
result.ref = innerType;
|
|
9349
|
-
break;
|
|
9350
|
-
}
|
|
9351
|
-
case "readonly": {
|
|
9352
|
-
this.process(def.innerType, params);
|
|
9353
|
-
result.ref = def.innerType;
|
|
9354
|
-
_json.readOnly = true;
|
|
9355
|
-
break;
|
|
9356
|
-
}
|
|
9357
|
-
case "promise": {
|
|
9358
|
-
this.process(def.innerType, params);
|
|
9359
|
-
result.ref = def.innerType;
|
|
9360
|
-
break;
|
|
8963
|
+
} else {
|
|
8964
|
+
Object.assign(json$1, file$1);
|
|
9361
8965
|
}
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
8966
|
+
break;
|
|
8967
|
+
}
|
|
8968
|
+
case "transform": {
|
|
8969
|
+
if (this.unrepresentable === "throw") {
|
|
8970
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9366
8971
|
}
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
8972
|
+
break;
|
|
8973
|
+
}
|
|
8974
|
+
case "nullable": {
|
|
8975
|
+
const inner = this.process(def.innerType, params);
|
|
8976
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
8977
|
+
break;
|
|
8978
|
+
}
|
|
8979
|
+
case "nonoptional": {
|
|
8980
|
+
this.process(def.innerType, params);
|
|
8981
|
+
result.ref = def.innerType;
|
|
8982
|
+
break;
|
|
8983
|
+
}
|
|
8984
|
+
case "success": {
|
|
8985
|
+
const json$1 = _json;
|
|
8986
|
+
json$1.type = "boolean";
|
|
8987
|
+
break;
|
|
8988
|
+
}
|
|
8989
|
+
case "default": {
|
|
8990
|
+
this.process(def.innerType, params);
|
|
8991
|
+
result.ref = def.innerType;
|
|
8992
|
+
_json.default = def.defaultValue;
|
|
8993
|
+
break;
|
|
8994
|
+
}
|
|
8995
|
+
case "prefault": {
|
|
8996
|
+
this.process(def.innerType, params);
|
|
8997
|
+
result.ref = def.innerType;
|
|
8998
|
+
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8999
|
+
break;
|
|
9000
|
+
}
|
|
9001
|
+
case "catch": {
|
|
9002
|
+
this.process(def.innerType, params);
|
|
9003
|
+
result.ref = def.innerType;
|
|
9004
|
+
let catchValue;
|
|
9005
|
+
try {
|
|
9006
|
+
catchValue = def.catchValue(undefined);
|
|
9007
|
+
} catch {
|
|
9008
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9372
9009
|
}
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9010
|
+
_json.default = catchValue;
|
|
9011
|
+
break;
|
|
9012
|
+
}
|
|
9013
|
+
case "nan": {
|
|
9014
|
+
if (this.unrepresentable === "throw") {
|
|
9015
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9378
9016
|
}
|
|
9379
|
-
|
|
9380
|
-
|
|
9017
|
+
break;
|
|
9018
|
+
}
|
|
9019
|
+
case "template_literal": {
|
|
9020
|
+
const json$1 = _json;
|
|
9021
|
+
const pattern = schema._zod.pattern;
|
|
9022
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9023
|
+
json$1.type = "string";
|
|
9024
|
+
json$1.pattern = pattern.source;
|
|
9025
|
+
break;
|
|
9026
|
+
}
|
|
9027
|
+
case "pipe": {
|
|
9028
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9029
|
+
this.process(innerType, params);
|
|
9030
|
+
result.ref = innerType;
|
|
9031
|
+
break;
|
|
9032
|
+
}
|
|
9033
|
+
case "readonly": {
|
|
9034
|
+
this.process(def.innerType, params);
|
|
9035
|
+
result.ref = def.innerType;
|
|
9036
|
+
_json.readOnly = true;
|
|
9037
|
+
break;
|
|
9038
|
+
}
|
|
9039
|
+
case "promise": {
|
|
9040
|
+
this.process(def.innerType, params);
|
|
9041
|
+
result.ref = def.innerType;
|
|
9042
|
+
break;
|
|
9043
|
+
}
|
|
9044
|
+
case "optional": {
|
|
9045
|
+
this.process(def.innerType, params);
|
|
9046
|
+
result.ref = def.innerType;
|
|
9047
|
+
break;
|
|
9048
|
+
}
|
|
9049
|
+
case "lazy": {
|
|
9050
|
+
const innerType = schema._zod.innerType;
|
|
9051
|
+
this.process(innerType, params);
|
|
9052
|
+
result.ref = innerType;
|
|
9053
|
+
break;
|
|
9054
|
+
}
|
|
9055
|
+
case "custom": {
|
|
9056
|
+
if (this.unrepresentable === "throw") {
|
|
9057
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9381
9058
|
}
|
|
9059
|
+
break;
|
|
9060
|
+
}
|
|
9061
|
+
default: {
|
|
9062
|
+
def;
|
|
9382
9063
|
}
|
|
9383
9064
|
}
|
|
9384
9065
|
}
|
|
@@ -9405,15 +9086,12 @@ var JSONSchemaGenerator = class {
|
|
|
9405
9086
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9406
9087
|
if (params.external) {
|
|
9407
9088
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9408
|
-
|
|
9409
|
-
if (externalId) {
|
|
9410
|
-
return { ref: uriGenerator(externalId) };
|
|
9411
|
-
}
|
|
9089
|
+
if (externalId) return { ref: params.external.uri(externalId) };
|
|
9412
9090
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9413
9091
|
entry[1].defId = id;
|
|
9414
9092
|
return {
|
|
9415
9093
|
defId: id,
|
|
9416
|
-
ref: `${
|
|
9094
|
+
ref: `${params.external.uri("__shared")}#/${defsSegment}/${id}`
|
|
9417
9095
|
};
|
|
9418
9096
|
}
|
|
9419
9097
|
if (entry[1] === root) {
|
|
@@ -9441,14 +9119,6 @@ var JSONSchemaGenerator = class {
|
|
|
9441
9119
|
}
|
|
9442
9120
|
schema$1.$ref = ref;
|
|
9443
9121
|
};
|
|
9444
|
-
if (params.cycles === "throw") {
|
|
9445
|
-
for (const entry of this.seen.entries()) {
|
|
9446
|
-
const seen = entry[1];
|
|
9447
|
-
if (seen.cycle) {
|
|
9448
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9449
|
-
}
|
|
9450
|
-
}
|
|
9451
|
-
}
|
|
9452
9122
|
for (const entry of this.seen.entries()) {
|
|
9453
9123
|
const seen = entry[1];
|
|
9454
9124
|
if (schema === entry[0]) {
|
|
@@ -9468,7 +9138,11 @@ var JSONSchemaGenerator = class {
|
|
|
9468
9138
|
continue;
|
|
9469
9139
|
}
|
|
9470
9140
|
if (seen.cycle) {
|
|
9471
|
-
|
|
9141
|
+
if (params.cycles === "throw") {
|
|
9142
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9143
|
+
} else if (params.cycles === "ref") {
|
|
9144
|
+
extractToDef(entry);
|
|
9145
|
+
}
|
|
9472
9146
|
continue;
|
|
9473
9147
|
}
|
|
9474
9148
|
if (seen.count > 1) {
|
|
@@ -9500,8 +9174,7 @@ var JSONSchemaGenerator = class {
|
|
|
9500
9174
|
}
|
|
9501
9175
|
if (!seen.isParent) this.override({
|
|
9502
9176
|
zodSchema,
|
|
9503
|
-
jsonSchema: schema$1
|
|
9504
|
-
path: seen.path ?? []
|
|
9177
|
+
jsonSchema: schema$1
|
|
9505
9178
|
});
|
|
9506
9179
|
};
|
|
9507
9180
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9515,11 +9188,6 @@ var JSONSchemaGenerator = class {
|
|
|
9515
9188
|
} else {
|
|
9516
9189
|
console.warn(`Invalid target: ${this.target}`);
|
|
9517
9190
|
}
|
|
9518
|
-
if (params.external?.uri) {
|
|
9519
|
-
const id = params.external.registry.get(schema)?.id;
|
|
9520
|
-
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9521
|
-
result.$id = params.external.uri(id);
|
|
9522
|
-
}
|
|
9523
9191
|
Object.assign(result, root.def);
|
|
9524
9192
|
const defs = params.external?.defs ?? {};
|
|
9525
9193
|
for (const entry of this.seen.entries()) {
|
|
@@ -9528,13 +9196,11 @@ var JSONSchemaGenerator = class {
|
|
|
9528
9196
|
defs[seen.defId] = seen.def;
|
|
9529
9197
|
}
|
|
9530
9198
|
}
|
|
9531
|
-
if (params.external)
|
|
9532
|
-
if (
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
result.definitions = defs;
|
|
9537
|
-
}
|
|
9199
|
+
if (!params.external && Object.keys(defs).length > 0) {
|
|
9200
|
+
if (this.target === "draft-2020-12") {
|
|
9201
|
+
result.$defs = defs;
|
|
9202
|
+
} else {
|
|
9203
|
+
result.definitions = defs;
|
|
9538
9204
|
}
|
|
9539
9205
|
}
|
|
9540
9206
|
try {
|
|
@@ -9555,7 +9221,7 @@ function toJSONSchema(input, _params) {
|
|
|
9555
9221
|
const schemas = {};
|
|
9556
9222
|
const external = {
|
|
9557
9223
|
registry: input,
|
|
9558
|
-
uri: _params?.uri,
|
|
9224
|
+
uri: _params?.uri || ((id) => id),
|
|
9559
9225
|
defs
|
|
9560
9226
|
};
|
|
9561
9227
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9666,11 +9332,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9666
9332
|
}
|
|
9667
9333
|
|
|
9668
9334
|
//#endregion
|
|
9669
|
-
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9335
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/json-schema.js
|
|
9670
9336
|
var json_schema_exports = {};
|
|
9671
9337
|
|
|
9672
9338
|
//#endregion
|
|
9673
|
-
//#region ../../node_modules/zod/v4/core/index.js
|
|
9339
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/index.js
|
|
9674
9340
|
var core_exports = {};
|
|
9675
9341
|
__export(core_exports, {
|
|
9676
9342
|
$ZodAny: () => $ZodAny,
|
|
@@ -9709,7 +9375,6 @@ __export(core_exports, {
|
|
|
9709
9375
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9710
9376
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9711
9377
|
$ZodCustom: () => $ZodCustom,
|
|
9712
|
-
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9713
9378
|
$ZodDate: () => $ZodDate,
|
|
9714
9379
|
$ZodDefault: () => $ZodDefault,
|
|
9715
9380
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9774,8 +9439,6 @@ __export(core_exports, {
|
|
|
9774
9439
|
Doc: () => Doc,
|
|
9775
9440
|
JSONSchema: () => json_schema_exports,
|
|
9776
9441
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9777
|
-
NEVER: () => NEVER,
|
|
9778
|
-
TimePrecision: () => TimePrecision,
|
|
9779
9442
|
_any: () => _any,
|
|
9780
9443
|
_array: () => _array,
|
|
9781
9444
|
_base64: () => _base64,
|
|
@@ -9865,7 +9528,6 @@ __export(core_exports, {
|
|
|
9865
9528
|
_size: () => _size,
|
|
9866
9529
|
_startsWith: () => _startsWith,
|
|
9867
9530
|
_string: () => _string,
|
|
9868
|
-
_stringFormat: () => _stringFormat,
|
|
9869
9531
|
_stringbool: () => _stringbool,
|
|
9870
9532
|
_success: () => _success,
|
|
9871
9533
|
_symbol: () => _symbol,
|
|
@@ -9915,7 +9577,7 @@ __export(core_exports, {
|
|
|
9915
9577
|
});
|
|
9916
9578
|
|
|
9917
9579
|
//#endregion
|
|
9918
|
-
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9580
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/iso.js
|
|
9919
9581
|
var iso_exports = {};
|
|
9920
9582
|
__export(iso_exports, {
|
|
9921
9583
|
ZodISODate: () => ZodISODate,
|
|
@@ -9957,7 +9619,7 @@ function duration(params) {
|
|
|
9957
9619
|
}
|
|
9958
9620
|
|
|
9959
9621
|
//#endregion
|
|
9960
|
-
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9622
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/errors.js
|
|
9961
9623
|
const initializer = (inst, issues) => {
|
|
9962
9624
|
$ZodError.init(inst, issues);
|
|
9963
9625
|
inst.name = "ZodError";
|
|
@@ -9975,14 +9637,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9975
9637
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9976
9638
|
|
|
9977
9639
|
//#endregion
|
|
9978
|
-
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9640
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/parse.js
|
|
9979
9641
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9980
9642
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9981
9643
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9982
9644
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9983
9645
|
|
|
9984
9646
|
//#endregion
|
|
9985
|
-
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9647
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/schemas.js
|
|
9986
9648
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9987
9649
|
$ZodType.init(inst, def);
|
|
9988
9650
|
inst.def = def;
|
|
@@ -10250,13 +9912,6 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
10250
9912
|
function jwt(params) {
|
|
10251
9913
|
return _jwt(ZodJWT, params);
|
|
10252
9914
|
}
|
|
10253
|
-
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10254
|
-
$ZodCustomStringFormat.init(inst, def);
|
|
10255
|
-
ZodStringFormat.init(inst, def);
|
|
10256
|
-
});
|
|
10257
|
-
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10258
|
-
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10259
|
-
}
|
|
10260
9915
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
10261
9916
|
$ZodNumber.init(inst, def);
|
|
10262
9917
|
ZodType.init(inst, def);
|
|
@@ -10426,7 +10081,9 @@ function keyof(schema) {
|
|
|
10426
10081
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10427
10082
|
$ZodObject.init(inst, def);
|
|
10428
10083
|
ZodType.init(inst, def);
|
|
10429
|
-
defineLazy(inst, "shape", () =>
|
|
10084
|
+
defineLazy(inst, "shape", () => {
|
|
10085
|
+
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10086
|
+
});
|
|
10430
10087
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10431
10088
|
inst.catchall = (catchall) => inst.clone({
|
|
10432
10089
|
...inst._zod.def,
|
|
@@ -10871,8 +10528,11 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10871
10528
|
$ZodCustom.init(inst, def);
|
|
10872
10529
|
ZodType.init(inst, def);
|
|
10873
10530
|
});
|
|
10874
|
-
function check(fn) {
|
|
10875
|
-
const ch = new $ZodCheck({
|
|
10531
|
+
function check(fn, params) {
|
|
10532
|
+
const ch = new $ZodCheck({
|
|
10533
|
+
check: "custom",
|
|
10534
|
+
...normalizeParams(params)
|
|
10535
|
+
});
|
|
10876
10536
|
ch._zod.check = fn;
|
|
10877
10537
|
return ch;
|
|
10878
10538
|
}
|
|
@@ -10882,7 +10542,7 @@ function custom(fn, _params) {
|
|
|
10882
10542
|
function refine(fn, _params = {}) {
|
|
10883
10543
|
return _refine(ZodCustom, fn, _params);
|
|
10884
10544
|
}
|
|
10885
|
-
function superRefine(fn) {
|
|
10545
|
+
function superRefine(fn, params) {
|
|
10886
10546
|
const ch = check((payload) => {
|
|
10887
10547
|
payload.addIssue = (issue$1) => {
|
|
10888
10548
|
if (typeof issue$1 === "string") {
|
|
@@ -10898,7 +10558,7 @@ function superRefine(fn) {
|
|
|
10898
10558
|
}
|
|
10899
10559
|
};
|
|
10900
10560
|
return fn(payload.value, payload);
|
|
10901
|
-
});
|
|
10561
|
+
}, params);
|
|
10902
10562
|
return ch;
|
|
10903
10563
|
}
|
|
10904
10564
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10936,7 +10596,7 @@ function preprocess(fn, schema) {
|
|
|
10936
10596
|
}
|
|
10937
10597
|
|
|
10938
10598
|
//#endregion
|
|
10939
|
-
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10599
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/compat.js
|
|
10940
10600
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10941
10601
|
const ZodIssueCode = {
|
|
10942
10602
|
invalid_type: "invalid_type",
|
|
@@ -10951,6 +10611,10 @@ const ZodIssueCode = {
|
|
|
10951
10611
|
invalid_value: "invalid_value",
|
|
10952
10612
|
custom: "custom"
|
|
10953
10613
|
};
|
|
10614
|
+
/** @deprecated Not necessary in Zod 4. */
|
|
10615
|
+
const INVALID = Object.freeze({ status: "aborted" });
|
|
10616
|
+
/** A special constant with type `never` */
|
|
10617
|
+
const NEVER = INVALID;
|
|
10954
10618
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10955
10619
|
function setErrorMap(map$1) {
|
|
10956
10620
|
config({ customError: map$1 });
|
|
@@ -10961,7 +10625,7 @@ function getErrorMap() {
|
|
|
10961
10625
|
}
|
|
10962
10626
|
|
|
10963
10627
|
//#endregion
|
|
10964
|
-
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10628
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/coerce.js
|
|
10965
10629
|
var coerce_exports = {};
|
|
10966
10630
|
__export(coerce_exports, {
|
|
10967
10631
|
bigint: () => bigint,
|
|
@@ -10987,14 +10651,13 @@ function date(params) {
|
|
|
10987
10651
|
}
|
|
10988
10652
|
|
|
10989
10653
|
//#endregion
|
|
10990
|
-
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10654
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/external.js
|
|
10991
10655
|
var external_exports = {};
|
|
10992
10656
|
__export(external_exports, {
|
|
10993
10657
|
$brand: () => $brand,
|
|
10994
10658
|
$input: () => $input,
|
|
10995
10659
|
$output: () => $output,
|
|
10996
10660
|
NEVER: () => NEVER,
|
|
10997
|
-
TimePrecision: () => TimePrecision,
|
|
10998
10661
|
ZodAny: () => ZodAny,
|
|
10999
10662
|
ZodArray: () => ZodArray,
|
|
11000
10663
|
ZodBase64: () => ZodBase64,
|
|
@@ -11008,7 +10671,6 @@ __export(external_exports, {
|
|
|
11008
10671
|
ZodCUID2: () => ZodCUID2,
|
|
11009
10672
|
ZodCatch: () => ZodCatch,
|
|
11010
10673
|
ZodCustom: () => ZodCustom,
|
|
11011
|
-
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
11012
10674
|
ZodDate: () => ZodDate,
|
|
11013
10675
|
ZodDefault: () => ZodDefault,
|
|
11014
10676
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -11170,7 +10832,6 @@ __export(external_exports, {
|
|
|
11170
10832
|
startsWith: () => _startsWith,
|
|
11171
10833
|
strictObject: () => strictObject,
|
|
11172
10834
|
string: () => string$1,
|
|
11173
|
-
stringFormat: () => stringFormat,
|
|
11174
10835
|
stringbool: () => stringbool,
|
|
11175
10836
|
success: () => success,
|
|
11176
10837
|
superRefine: () => superRefine,
|
|
@@ -11201,11 +10862,11 @@ __export(external_exports, {
|
|
|
11201
10862
|
config(en_default());
|
|
11202
10863
|
|
|
11203
10864
|
//#endregion
|
|
11204
|
-
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10865
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/index.js
|
|
11205
10866
|
var classic_default = external_exports;
|
|
11206
10867
|
|
|
11207
10868
|
//#endregion
|
|
11208
|
-
//#region ../../node_modules/zod/v4/index.js
|
|
10869
|
+
//#region ../../node_modules/zod/dist/esm/v4/index.js
|
|
11209
10870
|
var v4_default = classic_default;
|
|
11210
10871
|
|
|
11211
10872
|
//#endregion
|
|
@@ -11340,8 +11001,8 @@ var EASClient = class {
|
|
|
11340
11001
|
};
|
|
11341
11002
|
return this.deployedAddresses;
|
|
11342
11003
|
} catch (err) {
|
|
11343
|
-
const error$
|
|
11344
|
-
throw new Error(`Failed to deploy EAS contracts: ${error$
|
|
11004
|
+
const error$37 = err;
|
|
11005
|
+
throw new Error(`Failed to deploy EAS contracts: ${error$37.message}`);
|
|
11345
11006
|
}
|
|
11346
11007
|
}
|
|
11347
11008
|
/**
|
|
@@ -11402,8 +11063,8 @@ var EASClient = class {
|
|
|
11402
11063
|
success: true
|
|
11403
11064
|
};
|
|
11404
11065
|
} catch (err) {
|
|
11405
|
-
const error$
|
|
11406
|
-
throw new Error(`Failed to register schema: ${error$
|
|
11066
|
+
const error$37 = err;
|
|
11067
|
+
throw new Error(`Failed to register schema: ${error$37.message}`);
|
|
11407
11068
|
}
|
|
11408
11069
|
}
|
|
11409
11070
|
/**
|
|
@@ -11469,8 +11130,8 @@ var EASClient = class {
|
|
|
11469
11130
|
success: true
|
|
11470
11131
|
};
|
|
11471
11132
|
} catch (err) {
|
|
11472
|
-
const error$
|
|
11473
|
-
throw new Error(`Failed to create attestation: ${error$
|
|
11133
|
+
const error$37 = err;
|
|
11134
|
+
throw new Error(`Failed to create attestation: ${error$37.message}`);
|
|
11474
11135
|
}
|
|
11475
11136
|
}
|
|
11476
11137
|
/**
|
|
@@ -11552,8 +11213,8 @@ var EASClient = class {
|
|
|
11552
11213
|
success: true
|
|
11553
11214
|
};
|
|
11554
11215
|
} catch (err) {
|
|
11555
|
-
const error$
|
|
11556
|
-
throw new Error(`Failed to create multiple attestations: ${error$
|
|
11216
|
+
const error$37 = err;
|
|
11217
|
+
throw new Error(`Failed to create multiple attestations: ${error$37.message}`);
|
|
11557
11218
|
}
|
|
11558
11219
|
}
|
|
11559
11220
|
/**
|
|
@@ -11608,8 +11269,8 @@ var EASClient = class {
|
|
|
11608
11269
|
success: true
|
|
11609
11270
|
};
|
|
11610
11271
|
} catch (err) {
|
|
11611
|
-
const error$
|
|
11612
|
-
throw new Error(`Failed to revoke attestation: ${error$
|
|
11272
|
+
const error$37 = err;
|
|
11273
|
+
throw new Error(`Failed to revoke attestation: ${error$37.message}`);
|
|
11613
11274
|
}
|
|
11614
11275
|
}
|
|
11615
11276
|
/**
|