@agentcash/discovery 1.6.5 → 1.7.0
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/AGENTS.md +2 -3
- package/README.md +123 -101
- package/dist/cli.cjs +1374 -861
- package/dist/cli.js +1375 -862
- package/dist/index.cjs +1402 -892
- package/dist/index.d.cts +17 -126
- package/dist/index.d.ts +17 -126
- package/dist/index.js +1390 -878
- package/dist/schemas.cjs +1250 -530
- package/dist/schemas.d.cts +1 -32
- package/dist/schemas.d.ts +1 -32
- package/dist/schemas.js +1249 -527
- package/docs/SPECIFICATION.md +270 -0
- package/docs/VALIDATION_DIAGNOSTICS_DESIGN_2026-03-03.md +117 -0
- package/package.json +24 -22
- package/dist/flags.cjs +0 -44
- package/dist/flags.d.cts +0 -6
- package/dist/flags.d.ts +0 -6
- package/dist/flags.js +0 -17
package/dist/schemas.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/zod@4.3
|
|
7
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
8
8
|
var external_exports = {};
|
|
9
9
|
__export(external_exports, {
|
|
10
10
|
$brand: () => $brand,
|
|
@@ -66,6 +66,7 @@ __export(external_exports, {
|
|
|
66
66
|
ZodOptional: () => ZodOptional,
|
|
67
67
|
ZodPipe: () => ZodPipe,
|
|
68
68
|
ZodPrefault: () => ZodPrefault,
|
|
69
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
69
70
|
ZodPromise: () => ZodPromise,
|
|
70
71
|
ZodReadonly: () => ZodReadonly,
|
|
71
72
|
ZodRealError: () => ZodRealError,
|
|
@@ -144,6 +145,7 @@ __export(external_exports, {
|
|
|
144
145
|
int32: () => int32,
|
|
145
146
|
int64: () => int64,
|
|
146
147
|
intersection: () => intersection,
|
|
148
|
+
invertCodec: () => invertCodec,
|
|
147
149
|
ipv4: () => ipv42,
|
|
148
150
|
ipv6: () => ipv62,
|
|
149
151
|
iso: () => iso_exports,
|
|
@@ -245,7 +247,7 @@ __export(external_exports, {
|
|
|
245
247
|
xor: () => xor
|
|
246
248
|
});
|
|
247
249
|
|
|
248
|
-
// node_modules/.pnpm/zod@4.3
|
|
250
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
249
251
|
var core_exports2 = {};
|
|
250
252
|
__export(core_exports2, {
|
|
251
253
|
$ZodAny: () => $ZodAny,
|
|
@@ -325,6 +327,7 @@ __export(core_exports2, {
|
|
|
325
327
|
$ZodOptional: () => $ZodOptional,
|
|
326
328
|
$ZodPipe: () => $ZodPipe,
|
|
327
329
|
$ZodPrefault: () => $ZodPrefault,
|
|
330
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
328
331
|
$ZodPromise: () => $ZodPromise,
|
|
329
332
|
$ZodReadonly: () => $ZodReadonly,
|
|
330
333
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -523,8 +526,9 @@ __export(core_exports2, {
|
|
|
523
526
|
version: () => version
|
|
524
527
|
});
|
|
525
528
|
|
|
526
|
-
// node_modules/.pnpm/zod@4.3
|
|
527
|
-
var
|
|
529
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
530
|
+
var _a;
|
|
531
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
528
532
|
status: "aborted"
|
|
529
533
|
});
|
|
530
534
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -559,10 +563,10 @@ function $constructor(name, initializer3, params) {
|
|
|
559
563
|
}
|
|
560
564
|
Object.defineProperty(Definition, "name", { value: name });
|
|
561
565
|
function _(def) {
|
|
562
|
-
var
|
|
566
|
+
var _a3;
|
|
563
567
|
const inst = params?.Parent ? new Definition() : this;
|
|
564
568
|
init(inst, def);
|
|
565
|
-
(
|
|
569
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
566
570
|
for (const fn of inst._zod.deferred) {
|
|
567
571
|
fn();
|
|
568
572
|
}
|
|
@@ -591,14 +595,15 @@ var $ZodEncodeError = class extends Error {
|
|
|
591
595
|
this.name = "ZodEncodeError";
|
|
592
596
|
}
|
|
593
597
|
};
|
|
594
|
-
|
|
598
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
599
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
595
600
|
function config(newConfig) {
|
|
596
601
|
if (newConfig)
|
|
597
602
|
Object.assign(globalConfig, newConfig);
|
|
598
603
|
return globalConfig;
|
|
599
604
|
}
|
|
600
605
|
|
|
601
|
-
// node_modules/.pnpm/zod@4.3
|
|
606
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
602
607
|
var util_exports = {};
|
|
603
608
|
__export(util_exports, {
|
|
604
609
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -624,6 +629,7 @@ __export(util_exports, {
|
|
|
624
629
|
defineLazy: () => defineLazy,
|
|
625
630
|
esc: () => esc,
|
|
626
631
|
escapeRegex: () => escapeRegex,
|
|
632
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
627
633
|
extend: () => extend,
|
|
628
634
|
finalizeIssue: () => finalizeIssue,
|
|
629
635
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -712,19 +718,12 @@ function cleanRegex(source) {
|
|
|
712
718
|
return source.slice(start, end);
|
|
713
719
|
}
|
|
714
720
|
function floatSafeRemainder(val, step) {
|
|
715
|
-
const
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
if (
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
725
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
726
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
727
|
-
return valInt % stepInt / 10 ** decCount;
|
|
721
|
+
const ratio = val / step;
|
|
722
|
+
const roundedRatio = Math.round(ratio);
|
|
723
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
724
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
725
|
+
return 0;
|
|
726
|
+
return ratio - roundedRatio;
|
|
728
727
|
}
|
|
729
728
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
730
729
|
function defineLazy(object2, key, getter) {
|
|
@@ -806,7 +805,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
806
805
|
function isObject(data) {
|
|
807
806
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
808
807
|
}
|
|
809
|
-
var allowsEval = cached(() => {
|
|
808
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
809
|
+
if (globalConfig.jitless) {
|
|
810
|
+
return false;
|
|
811
|
+
}
|
|
810
812
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
811
813
|
return false;
|
|
812
814
|
}
|
|
@@ -839,6 +841,10 @@ function shallowClone(o) {
|
|
|
839
841
|
return { ...o };
|
|
840
842
|
if (Array.isArray(o))
|
|
841
843
|
return [...o];
|
|
844
|
+
if (o instanceof Map)
|
|
845
|
+
return new Map(o);
|
|
846
|
+
if (o instanceof Set)
|
|
847
|
+
return new Set(o);
|
|
842
848
|
return o;
|
|
843
849
|
}
|
|
844
850
|
function numKeys(data) {
|
|
@@ -895,7 +901,14 @@ var getParsedType = (data) => {
|
|
|
895
901
|
}
|
|
896
902
|
};
|
|
897
903
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
898
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
904
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
905
|
+
"string",
|
|
906
|
+
"number",
|
|
907
|
+
"bigint",
|
|
908
|
+
"boolean",
|
|
909
|
+
"symbol",
|
|
910
|
+
"undefined"
|
|
911
|
+
]);
|
|
899
912
|
function escapeRegex(str) {
|
|
900
913
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
901
914
|
}
|
|
@@ -1064,6 +1077,9 @@ function safeExtend(schema, shape) {
|
|
|
1064
1077
|
return clone(schema, def);
|
|
1065
1078
|
}
|
|
1066
1079
|
function merge(a, b) {
|
|
1080
|
+
if (a._zod.def.checks?.length) {
|
|
1081
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1082
|
+
}
|
|
1067
1083
|
const def = mergeDefs(a._zod.def, {
|
|
1068
1084
|
get shape() {
|
|
1069
1085
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1073,8 +1089,7 @@ function merge(a, b) {
|
|
|
1073
1089
|
get catchall() {
|
|
1074
1090
|
return b._zod.def.catchall;
|
|
1075
1091
|
},
|
|
1076
|
-
checks: []
|
|
1077
|
-
// delete existing checks
|
|
1092
|
+
checks: b._zod.def.checks ?? []
|
|
1078
1093
|
});
|
|
1079
1094
|
return clone(a, def);
|
|
1080
1095
|
}
|
|
@@ -1157,10 +1172,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1157
1172
|
}
|
|
1158
1173
|
return false;
|
|
1159
1174
|
}
|
|
1175
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1176
|
+
if (x.aborted === true)
|
|
1177
|
+
return true;
|
|
1178
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1179
|
+
if (x.issues[i]?.continue === false) {
|
|
1180
|
+
return true;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
return false;
|
|
1184
|
+
}
|
|
1160
1185
|
function prefixIssues(path, issues) {
|
|
1161
1186
|
return issues.map((iss) => {
|
|
1162
|
-
var
|
|
1163
|
-
(
|
|
1187
|
+
var _a3;
|
|
1188
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1164
1189
|
iss.path.unshift(path);
|
|
1165
1190
|
return iss;
|
|
1166
1191
|
});
|
|
@@ -1169,17 +1194,14 @@ function unwrapMessage(message) {
|
|
|
1169
1194
|
return typeof message === "string" ? message : message?.message;
|
|
1170
1195
|
}
|
|
1171
1196
|
function finalizeIssue(iss, ctx, config2) {
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1197
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
1198
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1199
|
+
rest.path ?? (rest.path = []);
|
|
1200
|
+
rest.message = message;
|
|
1201
|
+
if (ctx?.reportInput) {
|
|
1202
|
+
rest.input = _input;
|
|
1176
1203
|
}
|
|
1177
|
-
|
|
1178
|
-
delete full.continue;
|
|
1179
|
-
if (!ctx?.reportInput) {
|
|
1180
|
-
delete full.input;
|
|
1181
|
-
}
|
|
1182
|
-
return full;
|
|
1204
|
+
return rest;
|
|
1183
1205
|
}
|
|
1184
1206
|
function getSizableOrigin(input) {
|
|
1185
1207
|
if (input instanceof Set)
|
|
@@ -1277,7 +1299,7 @@ var Class = class {
|
|
|
1277
1299
|
}
|
|
1278
1300
|
};
|
|
1279
1301
|
|
|
1280
|
-
// node_modules/.pnpm/zod@4.3
|
|
1302
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1281
1303
|
var initializer = (inst, def) => {
|
|
1282
1304
|
inst.name = "$ZodError";
|
|
1283
1305
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1296,10 +1318,10 @@ var initializer = (inst, def) => {
|
|
|
1296
1318
|
};
|
|
1297
1319
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1298
1320
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1299
|
-
function flattenError(
|
|
1321
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1300
1322
|
const fieldErrors = {};
|
|
1301
1323
|
const formErrors = [];
|
|
1302
|
-
for (const sub of
|
|
1324
|
+
for (const sub of error51.issues) {
|
|
1303
1325
|
if (sub.path.length > 0) {
|
|
1304
1326
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1305
1327
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1309,50 +1331,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1309
1331
|
}
|
|
1310
1332
|
return { formErrors, fieldErrors };
|
|
1311
1333
|
}
|
|
1312
|
-
function formatError(
|
|
1334
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1313
1335
|
const fieldErrors = { _errors: [] };
|
|
1314
|
-
const processError = (
|
|
1315
|
-
for (const issue2 of
|
|
1336
|
+
const processError = (error52, path = []) => {
|
|
1337
|
+
for (const issue2 of error52.issues) {
|
|
1316
1338
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1317
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1339
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1318
1340
|
} else if (issue2.code === "invalid_key") {
|
|
1319
|
-
processError({ issues: issue2.issues });
|
|
1341
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1320
1342
|
} else if (issue2.code === "invalid_element") {
|
|
1321
|
-
processError({ issues: issue2.issues });
|
|
1322
|
-
} else if (issue2.path.length === 0) {
|
|
1323
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1343
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1324
1344
|
} else {
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1345
|
+
const fullpath = [...path, ...issue2.path];
|
|
1346
|
+
if (fullpath.length === 0) {
|
|
1347
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1348
|
+
} else {
|
|
1349
|
+
let curr = fieldErrors;
|
|
1350
|
+
let i = 0;
|
|
1351
|
+
while (i < fullpath.length) {
|
|
1352
|
+
const el = fullpath[i];
|
|
1353
|
+
const terminal = i === fullpath.length - 1;
|
|
1354
|
+
if (!terminal) {
|
|
1355
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1356
|
+
} else {
|
|
1357
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1358
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1359
|
+
}
|
|
1360
|
+
curr = curr[el];
|
|
1361
|
+
i++;
|
|
1335
1362
|
}
|
|
1336
|
-
curr = curr[el];
|
|
1337
|
-
i++;
|
|
1338
1363
|
}
|
|
1339
1364
|
}
|
|
1340
1365
|
}
|
|
1341
1366
|
};
|
|
1342
|
-
processError(
|
|
1367
|
+
processError(error51);
|
|
1343
1368
|
return fieldErrors;
|
|
1344
1369
|
}
|
|
1345
|
-
function treeifyError(
|
|
1370
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1346
1371
|
const result = { errors: [] };
|
|
1347
|
-
const processError = (
|
|
1348
|
-
var
|
|
1349
|
-
for (const issue2 of
|
|
1372
|
+
const processError = (error52, path = []) => {
|
|
1373
|
+
var _a3, _b;
|
|
1374
|
+
for (const issue2 of error52.issues) {
|
|
1350
1375
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1351
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1376
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1352
1377
|
} else if (issue2.code === "invalid_key") {
|
|
1353
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1378
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1354
1379
|
} else if (issue2.code === "invalid_element") {
|
|
1355
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1380
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1356
1381
|
} else {
|
|
1357
1382
|
const fullpath = [...path, ...issue2.path];
|
|
1358
1383
|
if (fullpath.length === 0) {
|
|
@@ -1366,7 +1391,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1366
1391
|
const terminal = i === fullpath.length - 1;
|
|
1367
1392
|
if (typeof el === "string") {
|
|
1368
1393
|
curr.properties ?? (curr.properties = {});
|
|
1369
|
-
(
|
|
1394
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1370
1395
|
curr = curr.properties[el];
|
|
1371
1396
|
} else {
|
|
1372
1397
|
curr.items ?? (curr.items = []);
|
|
@@ -1381,7 +1406,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1381
1406
|
}
|
|
1382
1407
|
}
|
|
1383
1408
|
};
|
|
1384
|
-
processError(
|
|
1409
|
+
processError(error51);
|
|
1385
1410
|
return result;
|
|
1386
1411
|
}
|
|
1387
1412
|
function toDotPath(_path) {
|
|
@@ -1402,9 +1427,9 @@ function toDotPath(_path) {
|
|
|
1402
1427
|
}
|
|
1403
1428
|
return segs.join("");
|
|
1404
1429
|
}
|
|
1405
|
-
function prettifyError(
|
|
1430
|
+
function prettifyError(error51) {
|
|
1406
1431
|
const lines = [];
|
|
1407
|
-
const issues = [...
|
|
1432
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1408
1433
|
for (const issue2 of issues) {
|
|
1409
1434
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1410
1435
|
if (issue2.path?.length)
|
|
@@ -1413,9 +1438,9 @@ function prettifyError(error48) {
|
|
|
1413
1438
|
return lines.join("\n");
|
|
1414
1439
|
}
|
|
1415
1440
|
|
|
1416
|
-
// node_modules/.pnpm/zod@4.3
|
|
1441
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1417
1442
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1418
|
-
const ctx = _ctx ?
|
|
1443
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1419
1444
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1420
1445
|
if (result instanceof Promise) {
|
|
1421
1446
|
throw new $ZodAsyncError();
|
|
@@ -1429,7 +1454,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1429
1454
|
};
|
|
1430
1455
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1431
1456
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1432
|
-
const ctx = _ctx ?
|
|
1457
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1433
1458
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1434
1459
|
if (result instanceof Promise)
|
|
1435
1460
|
result = await result;
|
|
@@ -1454,7 +1479,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1454
1479
|
};
|
|
1455
1480
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1456
1481
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1457
|
-
const ctx = _ctx ?
|
|
1482
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1458
1483
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1459
1484
|
if (result instanceof Promise)
|
|
1460
1485
|
result = await result;
|
|
@@ -1465,7 +1490,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1465
1490
|
};
|
|
1466
1491
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1467
1492
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1468
|
-
const ctx = _ctx ?
|
|
1493
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1469
1494
|
return _parse(_Err)(schema, value, ctx);
|
|
1470
1495
|
};
|
|
1471
1496
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1474,7 +1499,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1474
1499
|
};
|
|
1475
1500
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1476
1501
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1477
|
-
const ctx = _ctx ?
|
|
1502
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1478
1503
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1479
1504
|
};
|
|
1480
1505
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1483,7 +1508,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1483
1508
|
};
|
|
1484
1509
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1485
1510
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1486
|
-
const ctx = _ctx ?
|
|
1511
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1487
1512
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1488
1513
|
};
|
|
1489
1514
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1492,7 +1517,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1492
1517
|
};
|
|
1493
1518
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1494
1519
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1495
|
-
const ctx = _ctx ?
|
|
1520
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1496
1521
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1497
1522
|
};
|
|
1498
1523
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1501,7 +1526,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1501
1526
|
};
|
|
1502
1527
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1503
1528
|
|
|
1504
|
-
// node_modules/.pnpm/zod@4.3
|
|
1529
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1505
1530
|
var regexes_exports = {};
|
|
1506
1531
|
__export(regexes_exports, {
|
|
1507
1532
|
base64: () => base64,
|
|
@@ -1525,6 +1550,7 @@ __export(regexes_exports, {
|
|
|
1525
1550
|
hex: () => hex,
|
|
1526
1551
|
hostname: () => hostname,
|
|
1527
1552
|
html5Email: () => html5Email,
|
|
1553
|
+
httpProtocol: () => httpProtocol,
|
|
1528
1554
|
idnEmail: () => idnEmail,
|
|
1529
1555
|
integer: () => integer,
|
|
1530
1556
|
ipv4: () => ipv4,
|
|
@@ -1563,7 +1589,7 @@ __export(regexes_exports, {
|
|
|
1563
1589
|
uuid7: () => uuid7,
|
|
1564
1590
|
xid: () => xid
|
|
1565
1591
|
});
|
|
1566
|
-
var cuid = /^[cC][
|
|
1592
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1567
1593
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1568
1594
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1569
1595
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1602,6 +1628,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1602
1628
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1603
1629
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
1604
1630
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1631
|
+
var httpProtocol = /^https?$/;
|
|
1605
1632
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1606
1633
|
var 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])))`;
|
|
1607
1634
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1658,12 +1685,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1658
1685
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1659
1686
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1660
1687
|
|
|
1661
|
-
// node_modules/.pnpm/zod@4.3
|
|
1688
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1662
1689
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1663
|
-
var
|
|
1690
|
+
var _a3;
|
|
1664
1691
|
inst._zod ?? (inst._zod = {});
|
|
1665
1692
|
inst._zod.def = def;
|
|
1666
|
-
(
|
|
1693
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
1667
1694
|
});
|
|
1668
1695
|
var numericOriginMap = {
|
|
1669
1696
|
number: "number",
|
|
@@ -1729,8 +1756,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1729
1756
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1730
1757
|
$ZodCheck.init(inst, def);
|
|
1731
1758
|
inst._zod.onattach.push((inst2) => {
|
|
1732
|
-
var
|
|
1733
|
-
(
|
|
1759
|
+
var _a3;
|
|
1760
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
1734
1761
|
});
|
|
1735
1762
|
inst._zod.check = (payload) => {
|
|
1736
1763
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1863,9 +1890,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1863
1890
|
};
|
|
1864
1891
|
});
|
|
1865
1892
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1866
|
-
var
|
|
1893
|
+
var _a3;
|
|
1867
1894
|
$ZodCheck.init(inst, def);
|
|
1868
|
-
(
|
|
1895
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1869
1896
|
const val = payload.value;
|
|
1870
1897
|
return !nullish(val) && val.size !== void 0;
|
|
1871
1898
|
});
|
|
@@ -1891,9 +1918,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1891
1918
|
};
|
|
1892
1919
|
});
|
|
1893
1920
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1894
|
-
var
|
|
1921
|
+
var _a3;
|
|
1895
1922
|
$ZodCheck.init(inst, def);
|
|
1896
|
-
(
|
|
1923
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1897
1924
|
const val = payload.value;
|
|
1898
1925
|
return !nullish(val) && val.size !== void 0;
|
|
1899
1926
|
});
|
|
@@ -1919,9 +1946,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1919
1946
|
};
|
|
1920
1947
|
});
|
|
1921
1948
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1922
|
-
var
|
|
1949
|
+
var _a3;
|
|
1923
1950
|
$ZodCheck.init(inst, def);
|
|
1924
|
-
(
|
|
1951
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1925
1952
|
const val = payload.value;
|
|
1926
1953
|
return !nullish(val) && val.size !== void 0;
|
|
1927
1954
|
});
|
|
@@ -1949,9 +1976,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1949
1976
|
};
|
|
1950
1977
|
});
|
|
1951
1978
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1952
|
-
var
|
|
1979
|
+
var _a3;
|
|
1953
1980
|
$ZodCheck.init(inst, def);
|
|
1954
|
-
(
|
|
1981
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1955
1982
|
const val = payload.value;
|
|
1956
1983
|
return !nullish(val) && val.length !== void 0;
|
|
1957
1984
|
});
|
|
@@ -1978,9 +2005,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
1978
2005
|
};
|
|
1979
2006
|
});
|
|
1980
2007
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1981
|
-
var
|
|
2008
|
+
var _a3;
|
|
1982
2009
|
$ZodCheck.init(inst, def);
|
|
1983
|
-
(
|
|
2010
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1984
2011
|
const val = payload.value;
|
|
1985
2012
|
return !nullish(val) && val.length !== void 0;
|
|
1986
2013
|
});
|
|
@@ -2007,9 +2034,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2007
2034
|
};
|
|
2008
2035
|
});
|
|
2009
2036
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2010
|
-
var
|
|
2037
|
+
var _a3;
|
|
2011
2038
|
$ZodCheck.init(inst, def);
|
|
2012
|
-
(
|
|
2039
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2013
2040
|
const val = payload.value;
|
|
2014
2041
|
return !nullish(val) && val.length !== void 0;
|
|
2015
2042
|
});
|
|
@@ -2038,7 +2065,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2038
2065
|
};
|
|
2039
2066
|
});
|
|
2040
2067
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2041
|
-
var
|
|
2068
|
+
var _a3, _b;
|
|
2042
2069
|
$ZodCheck.init(inst, def);
|
|
2043
2070
|
inst._zod.onattach.push((inst2) => {
|
|
2044
2071
|
const bag = inst2._zod.bag;
|
|
@@ -2049,7 +2076,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2049
2076
|
}
|
|
2050
2077
|
});
|
|
2051
2078
|
if (def.pattern)
|
|
2052
|
-
(
|
|
2079
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2053
2080
|
def.pattern.lastIndex = 0;
|
|
2054
2081
|
if (def.pattern.test(payload.value))
|
|
2055
2082
|
return;
|
|
@@ -2206,7 +2233,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2206
2233
|
};
|
|
2207
2234
|
});
|
|
2208
2235
|
|
|
2209
|
-
// node_modules/.pnpm/zod@4.3
|
|
2236
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2210
2237
|
var Doc = class {
|
|
2211
2238
|
constructor(args = []) {
|
|
2212
2239
|
this.content = [];
|
|
@@ -2242,16 +2269,16 @@ var Doc = class {
|
|
|
2242
2269
|
}
|
|
2243
2270
|
};
|
|
2244
2271
|
|
|
2245
|
-
// node_modules/.pnpm/zod@4.3
|
|
2272
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2246
2273
|
var version = {
|
|
2247
2274
|
major: 4,
|
|
2248
|
-
minor:
|
|
2249
|
-
patch:
|
|
2275
|
+
minor: 4,
|
|
2276
|
+
patch: 3
|
|
2250
2277
|
};
|
|
2251
2278
|
|
|
2252
|
-
// node_modules/.pnpm/zod@4.3
|
|
2279
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2253
2280
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2254
|
-
var
|
|
2281
|
+
var _a3;
|
|
2255
2282
|
inst ?? (inst = {});
|
|
2256
2283
|
inst._zod.def = def;
|
|
2257
2284
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2266,7 +2293,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2266
2293
|
}
|
|
2267
2294
|
}
|
|
2268
2295
|
if (checks.length === 0) {
|
|
2269
|
-
(
|
|
2296
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2270
2297
|
inst._zod.deferred?.push(() => {
|
|
2271
2298
|
inst._zod.run = inst._zod.parse;
|
|
2272
2299
|
});
|
|
@@ -2276,6 +2303,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2276
2303
|
let asyncResult;
|
|
2277
2304
|
for (const ch of checks2) {
|
|
2278
2305
|
if (ch._zod.def.when) {
|
|
2306
|
+
if (explicitlyAborted(payload))
|
|
2307
|
+
continue;
|
|
2279
2308
|
const shouldRun = ch._zod.def.when(payload);
|
|
2280
2309
|
if (!shouldRun)
|
|
2281
2310
|
continue;
|
|
@@ -2416,6 +2445,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2416
2445
|
inst._zod.check = (payload) => {
|
|
2417
2446
|
try {
|
|
2418
2447
|
const trimmed = payload.value.trim();
|
|
2448
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2449
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2450
|
+
payload.issues.push({
|
|
2451
|
+
code: "invalid_format",
|
|
2452
|
+
format: "url",
|
|
2453
|
+
note: "Invalid URL format",
|
|
2454
|
+
input: payload.value,
|
|
2455
|
+
inst,
|
|
2456
|
+
continue: !def.abort
|
|
2457
|
+
});
|
|
2458
|
+
return;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2419
2461
|
const url2 = new URL(trimmed);
|
|
2420
2462
|
if (def.hostname) {
|
|
2421
2463
|
def.hostname.lastIndex = 0;
|
|
@@ -2569,6 +2611,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2569
2611
|
function isValidBase64(data) {
|
|
2570
2612
|
if (data === "")
|
|
2571
2613
|
return true;
|
|
2614
|
+
if (/\s/.test(data))
|
|
2615
|
+
return false;
|
|
2572
2616
|
if (data.length % 4 !== 0)
|
|
2573
2617
|
return false;
|
|
2574
2618
|
try {
|
|
@@ -2761,8 +2805,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
2761
2805
|
$ZodType.init(inst, def);
|
|
2762
2806
|
inst._zod.pattern = _undefined;
|
|
2763
2807
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
2764
|
-
inst._zod.optin = "optional";
|
|
2765
|
-
inst._zod.optout = "optional";
|
|
2766
2808
|
inst._zod.parse = (payload, _ctx) => {
|
|
2767
2809
|
const input = payload.value;
|
|
2768
2810
|
if (typeof input === "undefined")
|
|
@@ -2891,15 +2933,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2891
2933
|
return payload;
|
|
2892
2934
|
};
|
|
2893
2935
|
});
|
|
2894
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
2936
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
2937
|
+
const isPresent = key in input;
|
|
2895
2938
|
if (result.issues.length) {
|
|
2896
|
-
if (isOptionalOut && !
|
|
2939
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
2897
2940
|
return;
|
|
2898
2941
|
}
|
|
2899
2942
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2900
2943
|
}
|
|
2944
|
+
if (!isPresent && !isOptionalIn) {
|
|
2945
|
+
if (!result.issues.length) {
|
|
2946
|
+
final.issues.push({
|
|
2947
|
+
code: "invalid_type",
|
|
2948
|
+
expected: "nonoptional",
|
|
2949
|
+
input: void 0,
|
|
2950
|
+
path: [key]
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
return;
|
|
2954
|
+
}
|
|
2901
2955
|
if (result.value === void 0) {
|
|
2902
|
-
if (
|
|
2956
|
+
if (isPresent) {
|
|
2903
2957
|
final.value[key] = void 0;
|
|
2904
2958
|
}
|
|
2905
2959
|
} else {
|
|
@@ -2927,8 +2981,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2927
2981
|
const keySet = def.keySet;
|
|
2928
2982
|
const _catchall = def.catchall._zod;
|
|
2929
2983
|
const t = _catchall.def.type;
|
|
2984
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
2930
2985
|
const isOptionalOut = _catchall.optout === "optional";
|
|
2931
2986
|
for (const key in input) {
|
|
2987
|
+
if (key === "__proto__")
|
|
2988
|
+
continue;
|
|
2932
2989
|
if (keySet.has(key))
|
|
2933
2990
|
continue;
|
|
2934
2991
|
if (t === "never") {
|
|
@@ -2937,9 +2994,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2937
2994
|
}
|
|
2938
2995
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2939
2996
|
if (r instanceof Promise) {
|
|
2940
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
2997
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2941
2998
|
} else {
|
|
2942
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
2999
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2943
3000
|
}
|
|
2944
3001
|
}
|
|
2945
3002
|
if (unrecognized.length) {
|
|
@@ -3005,12 +3062,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3005
3062
|
const shape = value.shape;
|
|
3006
3063
|
for (const key of value.keys) {
|
|
3007
3064
|
const el = shape[key];
|
|
3065
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3008
3066
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3009
3067
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3010
3068
|
if (r instanceof Promise) {
|
|
3011
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3069
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3012
3070
|
} else {
|
|
3013
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3071
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3014
3072
|
}
|
|
3015
3073
|
}
|
|
3016
3074
|
if (!catchall) {
|
|
@@ -3041,9 +3099,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3041
3099
|
const id = ids[key];
|
|
3042
3100
|
const k = esc(key);
|
|
3043
3101
|
const schema = shape[key];
|
|
3102
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3044
3103
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3045
3104
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3046
|
-
if (isOptionalOut) {
|
|
3105
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3047
3106
|
doc.write(`
|
|
3048
3107
|
if (${id}.issues.length) {
|
|
3049
3108
|
if (${k} in input) {
|
|
@@ -3062,6 +3121,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3062
3121
|
newResult[${k}] = ${id}.value;
|
|
3063
3122
|
}
|
|
3064
3123
|
|
|
3124
|
+
`);
|
|
3125
|
+
} else if (!isOptionalIn) {
|
|
3126
|
+
doc.write(`
|
|
3127
|
+
const ${id}_present = ${k} in input;
|
|
3128
|
+
if (${id}.issues.length) {
|
|
3129
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3130
|
+
...iss,
|
|
3131
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3132
|
+
})));
|
|
3133
|
+
}
|
|
3134
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3135
|
+
payload.issues.push({
|
|
3136
|
+
code: "invalid_type",
|
|
3137
|
+
expected: "nonoptional",
|
|
3138
|
+
input: undefined,
|
|
3139
|
+
path: [${k}]
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
if (${id}_present) {
|
|
3144
|
+
if (${id}.value === undefined) {
|
|
3145
|
+
newResult[${k}] = undefined;
|
|
3146
|
+
} else {
|
|
3147
|
+
newResult[${k}] = ${id}.value;
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3065
3151
|
`);
|
|
3066
3152
|
} else {
|
|
3067
3153
|
doc.write(`
|
|
@@ -3155,10 +3241,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3155
3241
|
}
|
|
3156
3242
|
return void 0;
|
|
3157
3243
|
});
|
|
3158
|
-
const
|
|
3159
|
-
const first = def.options[0]._zod.run;
|
|
3244
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3160
3245
|
inst._zod.parse = (payload, ctx) => {
|
|
3161
|
-
if (
|
|
3246
|
+
if (first) {
|
|
3162
3247
|
return first(payload, ctx);
|
|
3163
3248
|
}
|
|
3164
3249
|
let async = false;
|
|
@@ -3211,10 +3296,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3211
3296
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3212
3297
|
$ZodUnion.init(inst, def);
|
|
3213
3298
|
def.inclusive = false;
|
|
3214
|
-
const
|
|
3215
|
-
const first = def.options[0]._zod.run;
|
|
3299
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3216
3300
|
inst._zod.parse = (payload, ctx) => {
|
|
3217
|
-
if (
|
|
3301
|
+
if (first) {
|
|
3218
3302
|
return first(payload, ctx);
|
|
3219
3303
|
}
|
|
3220
3304
|
let async = false;
|
|
@@ -3289,7 +3373,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3289
3373
|
if (opt) {
|
|
3290
3374
|
return opt._zod.run(payload, ctx);
|
|
3291
3375
|
}
|
|
3292
|
-
if (def.unionFallback) {
|
|
3376
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3293
3377
|
return _super(payload, ctx);
|
|
3294
3378
|
}
|
|
3295
3379
|
payload.issues.push({
|
|
@@ -3297,6 +3381,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3297
3381
|
errors: [],
|
|
3298
3382
|
note: "No matching discriminator",
|
|
3299
3383
|
discriminator: def.discriminator,
|
|
3384
|
+
options: Array.from(disc.value.keys()),
|
|
3300
3385
|
input,
|
|
3301
3386
|
path: [def.discriminator],
|
|
3302
3387
|
inst
|
|
@@ -3418,64 +3503,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3418
3503
|
}
|
|
3419
3504
|
payload.value = [];
|
|
3420
3505
|
const proms = [];
|
|
3421
|
-
const
|
|
3422
|
-
const
|
|
3506
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3507
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3423
3508
|
if (!def.rest) {
|
|
3424
|
-
|
|
3425
|
-
const tooSmall = input.length < optStart - 1;
|
|
3426
|
-
if (tooBig || tooSmall) {
|
|
3509
|
+
if (input.length < optinStart) {
|
|
3427
3510
|
payload.issues.push({
|
|
3428
|
-
|
|
3511
|
+
code: "too_small",
|
|
3512
|
+
minimum: optinStart,
|
|
3513
|
+
inclusive: true,
|
|
3429
3514
|
input,
|
|
3430
3515
|
inst,
|
|
3431
3516
|
origin: "array"
|
|
3432
3517
|
});
|
|
3433
3518
|
return payload;
|
|
3434
3519
|
}
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3520
|
+
if (input.length > items.length) {
|
|
3521
|
+
payload.issues.push({
|
|
3522
|
+
code: "too_big",
|
|
3523
|
+
maximum: items.length,
|
|
3524
|
+
inclusive: true,
|
|
3525
|
+
input,
|
|
3526
|
+
inst,
|
|
3527
|
+
origin: "array"
|
|
3528
|
+
});
|
|
3442
3529
|
}
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
}, ctx);
|
|
3447
|
-
if (
|
|
3448
|
-
proms.push(
|
|
3530
|
+
}
|
|
3531
|
+
const itemResults = new Array(items.length);
|
|
3532
|
+
for (let i = 0; i < items.length; i++) {
|
|
3533
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3534
|
+
if (r instanceof Promise) {
|
|
3535
|
+
proms.push(r.then((rr) => {
|
|
3536
|
+
itemResults[i] = rr;
|
|
3537
|
+
}));
|
|
3449
3538
|
} else {
|
|
3450
|
-
|
|
3539
|
+
itemResults[i] = r;
|
|
3451
3540
|
}
|
|
3452
3541
|
}
|
|
3453
3542
|
if (def.rest) {
|
|
3543
|
+
let i = items.length - 1;
|
|
3454
3544
|
const rest = input.slice(items.length);
|
|
3455
3545
|
for (const el of rest) {
|
|
3456
3546
|
i++;
|
|
3457
|
-
const result = def.rest._zod.run({
|
|
3458
|
-
value: el,
|
|
3459
|
-
issues: []
|
|
3460
|
-
}, ctx);
|
|
3547
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3461
3548
|
if (result instanceof Promise) {
|
|
3462
|
-
proms.push(result.then((
|
|
3549
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3463
3550
|
} else {
|
|
3464
3551
|
handleTupleResult(result, payload, i);
|
|
3465
3552
|
}
|
|
3466
3553
|
}
|
|
3467
3554
|
}
|
|
3468
|
-
if (proms.length)
|
|
3469
|
-
return Promise.all(proms).then(() => payload);
|
|
3470
|
-
|
|
3555
|
+
if (proms.length) {
|
|
3556
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3557
|
+
}
|
|
3558
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3471
3559
|
};
|
|
3472
3560
|
});
|
|
3561
|
+
function getTupleOptStart(items, key) {
|
|
3562
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3563
|
+
if (items[i]._zod[key] !== "optional")
|
|
3564
|
+
return i + 1;
|
|
3565
|
+
}
|
|
3566
|
+
return 0;
|
|
3567
|
+
}
|
|
3473
3568
|
function handleTupleResult(result, final, index) {
|
|
3474
3569
|
if (result.issues.length) {
|
|
3475
3570
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3476
3571
|
}
|
|
3477
3572
|
final.value[index] = result.value;
|
|
3478
3573
|
}
|
|
3574
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3575
|
+
for (let i = 0; i < items.length; i++) {
|
|
3576
|
+
const r = itemResults[i];
|
|
3577
|
+
const isPresent = i < input.length;
|
|
3578
|
+
if (r.issues.length) {
|
|
3579
|
+
if (!isPresent && i >= optoutStart) {
|
|
3580
|
+
final.value.length = i;
|
|
3581
|
+
break;
|
|
3582
|
+
}
|
|
3583
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3584
|
+
}
|
|
3585
|
+
final.value[i] = r.value;
|
|
3586
|
+
}
|
|
3587
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3588
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3589
|
+
final.value.length = i;
|
|
3590
|
+
} else {
|
|
3591
|
+
break;
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
return final;
|
|
3595
|
+
}
|
|
3479
3596
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3480
3597
|
$ZodType.init(inst, def);
|
|
3481
3598
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3497,19 +3614,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3497
3614
|
for (const key of values) {
|
|
3498
3615
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3499
3616
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3617
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3618
|
+
if (keyResult instanceof Promise) {
|
|
3619
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3620
|
+
}
|
|
3621
|
+
if (keyResult.issues.length) {
|
|
3622
|
+
payload.issues.push({
|
|
3623
|
+
code: "invalid_key",
|
|
3624
|
+
origin: "record",
|
|
3625
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3626
|
+
input: key,
|
|
3627
|
+
path: [key],
|
|
3628
|
+
inst
|
|
3629
|
+
});
|
|
3630
|
+
continue;
|
|
3631
|
+
}
|
|
3632
|
+
const outKey = keyResult.value;
|
|
3500
3633
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3501
3634
|
if (result instanceof Promise) {
|
|
3502
3635
|
proms.push(result.then((result2) => {
|
|
3503
3636
|
if (result2.issues.length) {
|
|
3504
3637
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3505
3638
|
}
|
|
3506
|
-
payload.value[
|
|
3639
|
+
payload.value[outKey] = result2.value;
|
|
3507
3640
|
}));
|
|
3508
3641
|
} else {
|
|
3509
3642
|
if (result.issues.length) {
|
|
3510
3643
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3511
3644
|
}
|
|
3512
|
-
payload.value[
|
|
3645
|
+
payload.value[outKey] = result.value;
|
|
3513
3646
|
}
|
|
3514
3647
|
}
|
|
3515
3648
|
}
|
|
@@ -3533,6 +3666,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3533
3666
|
for (const key of Reflect.ownKeys(input)) {
|
|
3534
3667
|
if (key === "__proto__")
|
|
3535
3668
|
continue;
|
|
3669
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3670
|
+
continue;
|
|
3536
3671
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3537
3672
|
if (keyResult instanceof Promise) {
|
|
3538
3673
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3737,6 +3872,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
3737
3872
|
});
|
|
3738
3873
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3739
3874
|
$ZodType.init(inst, def);
|
|
3875
|
+
inst._zod.optin = "optional";
|
|
3740
3876
|
inst._zod.parse = (payload, ctx) => {
|
|
3741
3877
|
if (ctx.direction === "backward") {
|
|
3742
3878
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3746,6 +3882,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3746
3882
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3747
3883
|
return output.then((output2) => {
|
|
3748
3884
|
payload.value = output2;
|
|
3885
|
+
payload.fallback = true;
|
|
3749
3886
|
return payload;
|
|
3750
3887
|
});
|
|
3751
3888
|
}
|
|
@@ -3753,11 +3890,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3753
3890
|
throw new $ZodAsyncError();
|
|
3754
3891
|
}
|
|
3755
3892
|
payload.value = _out;
|
|
3893
|
+
payload.fallback = true;
|
|
3756
3894
|
return payload;
|
|
3757
3895
|
};
|
|
3758
3896
|
});
|
|
3759
3897
|
function handleOptionalResult(result, input) {
|
|
3760
|
-
if (result.issues.length
|
|
3898
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
3761
3899
|
return { issues: [], value: void 0 };
|
|
3762
3900
|
}
|
|
3763
3901
|
return result;
|
|
@@ -3775,10 +3913,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3775
3913
|
});
|
|
3776
3914
|
inst._zod.parse = (payload, ctx) => {
|
|
3777
3915
|
if (def.innerType._zod.optin === "optional") {
|
|
3916
|
+
const input = payload.value;
|
|
3778
3917
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3779
3918
|
if (result instanceof Promise)
|
|
3780
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3781
|
-
return handleOptionalResult(result,
|
|
3919
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3920
|
+
return handleOptionalResult(result, input);
|
|
3782
3921
|
}
|
|
3783
3922
|
if (payload.value === void 0) {
|
|
3784
3923
|
return payload;
|
|
@@ -3894,7 +4033,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3894
4033
|
});
|
|
3895
4034
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3896
4035
|
$ZodType.init(inst, def);
|
|
3897
|
-
|
|
4036
|
+
inst._zod.optin = "optional";
|
|
3898
4037
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3899
4038
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3900
4039
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3914,6 +4053,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3914
4053
|
input: payload.value
|
|
3915
4054
|
});
|
|
3916
4055
|
payload.issues = [];
|
|
4056
|
+
payload.fallback = true;
|
|
3917
4057
|
}
|
|
3918
4058
|
return payload;
|
|
3919
4059
|
});
|
|
@@ -3928,6 +4068,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3928
4068
|
input: payload.value
|
|
3929
4069
|
});
|
|
3930
4070
|
payload.issues = [];
|
|
4071
|
+
payload.fallback = true;
|
|
3931
4072
|
}
|
|
3932
4073
|
return payload;
|
|
3933
4074
|
};
|
|
@@ -3973,7 +4114,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3973
4114
|
left.aborted = true;
|
|
3974
4115
|
return left;
|
|
3975
4116
|
}
|
|
3976
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4117
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
3977
4118
|
}
|
|
3978
4119
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
3979
4120
|
$ZodType.init(inst, def);
|
|
@@ -4025,6 +4166,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4025
4166
|
}
|
|
4026
4167
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4027
4168
|
}
|
|
4169
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4170
|
+
$ZodPipe.init(inst, def);
|
|
4171
|
+
});
|
|
4028
4172
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4029
4173
|
$ZodType.init(inst, def);
|
|
4030
4174
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4176,7 +4320,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4176
4320
|
});
|
|
4177
4321
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4178
4322
|
$ZodType.init(inst, def);
|
|
4179
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4323
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4324
|
+
const d = def;
|
|
4325
|
+
if (!d._cachedInner)
|
|
4326
|
+
d._cachedInner = def.getter();
|
|
4327
|
+
return d._cachedInner;
|
|
4328
|
+
});
|
|
4180
4329
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4181
4330
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4182
4331
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4220,7 +4369,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4220
4369
|
}
|
|
4221
4370
|
}
|
|
4222
4371
|
|
|
4223
|
-
// node_modules/.pnpm/zod@4.3
|
|
4372
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4224
4373
|
var locales_exports = {};
|
|
4225
4374
|
__export(locales_exports, {
|
|
4226
4375
|
ar: () => ar_default,
|
|
@@ -4231,6 +4380,7 @@ __export(locales_exports, {
|
|
|
4231
4380
|
cs: () => cs_default,
|
|
4232
4381
|
da: () => da_default,
|
|
4233
4382
|
de: () => de_default,
|
|
4383
|
+
el: () => el_default,
|
|
4234
4384
|
en: () => en_default,
|
|
4235
4385
|
eo: () => eo_default,
|
|
4236
4386
|
es: () => es_default,
|
|
@@ -4239,6 +4389,7 @@ __export(locales_exports, {
|
|
|
4239
4389
|
fr: () => fr_default,
|
|
4240
4390
|
frCA: () => fr_CA_default,
|
|
4241
4391
|
he: () => he_default,
|
|
4392
|
+
hr: () => hr_default,
|
|
4242
4393
|
hu: () => hu_default,
|
|
4243
4394
|
hy: () => hy_default,
|
|
4244
4395
|
id: () => id_default,
|
|
@@ -4258,6 +4409,7 @@ __export(locales_exports, {
|
|
|
4258
4409
|
pl: () => pl_default,
|
|
4259
4410
|
ps: () => ps_default,
|
|
4260
4411
|
pt: () => pt_default,
|
|
4412
|
+
ro: () => ro_default,
|
|
4261
4413
|
ru: () => ru_default,
|
|
4262
4414
|
sl: () => sl_default,
|
|
4263
4415
|
sv: () => sv_default,
|
|
@@ -4274,7 +4426,7 @@ __export(locales_exports, {
|
|
|
4274
4426
|
zhTW: () => zh_TW_default
|
|
4275
4427
|
});
|
|
4276
4428
|
|
|
4277
|
-
// node_modules/.pnpm/zod@4.3
|
|
4429
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4278
4430
|
var error = () => {
|
|
4279
4431
|
const Sizable = {
|
|
4280
4432
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4381,7 +4533,7 @@ function ar_default() {
|
|
|
4381
4533
|
};
|
|
4382
4534
|
}
|
|
4383
4535
|
|
|
4384
|
-
// node_modules/.pnpm/zod@4.3
|
|
4536
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4385
4537
|
var error2 = () => {
|
|
4386
4538
|
const Sizable = {
|
|
4387
4539
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4487,7 +4639,7 @@ function az_default() {
|
|
|
4487
4639
|
};
|
|
4488
4640
|
}
|
|
4489
4641
|
|
|
4490
|
-
// node_modules/.pnpm/zod@4.3
|
|
4642
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4491
4643
|
function getBelarusianPlural(count, one, few, many) {
|
|
4492
4644
|
const absCount = Math.abs(count);
|
|
4493
4645
|
const lastDigit = absCount % 10;
|
|
@@ -4644,7 +4796,7 @@ function be_default() {
|
|
|
4644
4796
|
};
|
|
4645
4797
|
}
|
|
4646
4798
|
|
|
4647
|
-
// node_modules/.pnpm/zod@4.3
|
|
4799
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4648
4800
|
var error4 = () => {
|
|
4649
4801
|
const Sizable = {
|
|
4650
4802
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -4765,7 +4917,7 @@ function bg_default() {
|
|
|
4765
4917
|
};
|
|
4766
4918
|
}
|
|
4767
4919
|
|
|
4768
|
-
// node_modules/.pnpm/zod@4.3
|
|
4920
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4769
4921
|
var error5 = () => {
|
|
4770
4922
|
const Sizable = {
|
|
4771
4923
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4874,7 +5026,7 @@ function ca_default() {
|
|
|
4874
5026
|
};
|
|
4875
5027
|
}
|
|
4876
5028
|
|
|
4877
|
-
// node_modules/.pnpm/zod@4.3
|
|
5029
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
4878
5030
|
var error6 = () => {
|
|
4879
5031
|
const Sizable = {
|
|
4880
5032
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -4986,7 +5138,7 @@ function cs_default() {
|
|
|
4986
5138
|
};
|
|
4987
5139
|
}
|
|
4988
5140
|
|
|
4989
|
-
// node_modules/.pnpm/zod@4.3
|
|
5141
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
4990
5142
|
var error7 = () => {
|
|
4991
5143
|
const Sizable = {
|
|
4992
5144
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5102,7 +5254,7 @@ function da_default() {
|
|
|
5102
5254
|
};
|
|
5103
5255
|
}
|
|
5104
5256
|
|
|
5105
|
-
// node_modules/.pnpm/zod@4.3
|
|
5257
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5106
5258
|
var error8 = () => {
|
|
5107
5259
|
const Sizable = {
|
|
5108
5260
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5211,8 +5363,118 @@ function de_default() {
|
|
|
5211
5363
|
};
|
|
5212
5364
|
}
|
|
5213
5365
|
|
|
5214
|
-
// node_modules/.pnpm/zod@4.3
|
|
5366
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5215
5367
|
var error9 = () => {
|
|
5368
|
+
const Sizable = {
|
|
5369
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5370
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5371
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5372
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5373
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5374
|
+
};
|
|
5375
|
+
function getSizing(origin) {
|
|
5376
|
+
return Sizable[origin] ?? null;
|
|
5377
|
+
}
|
|
5378
|
+
const FormatDictionary = {
|
|
5379
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5380
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5381
|
+
url: "URL",
|
|
5382
|
+
emoji: "emoji",
|
|
5383
|
+
uuid: "UUID",
|
|
5384
|
+
uuidv4: "UUIDv4",
|
|
5385
|
+
uuidv6: "UUIDv6",
|
|
5386
|
+
nanoid: "nanoid",
|
|
5387
|
+
guid: "GUID",
|
|
5388
|
+
cuid: "cuid",
|
|
5389
|
+
cuid2: "cuid2",
|
|
5390
|
+
ulid: "ULID",
|
|
5391
|
+
xid: "XID",
|
|
5392
|
+
ksuid: "KSUID",
|
|
5393
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5394
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5395
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5396
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5397
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5398
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5399
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5400
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5401
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5402
|
+
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
5403
|
+
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
5404
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5405
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5406
|
+
jwt: "JWT",
|
|
5407
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5408
|
+
};
|
|
5409
|
+
const TypeDictionary = {
|
|
5410
|
+
nan: "NaN"
|
|
5411
|
+
};
|
|
5412
|
+
return (issue2) => {
|
|
5413
|
+
switch (issue2.code) {
|
|
5414
|
+
case "invalid_type": {
|
|
5415
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5416
|
+
const receivedType = parsedType(issue2.input);
|
|
5417
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5418
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5419
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5420
|
+
}
|
|
5421
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5422
|
+
}
|
|
5423
|
+
case "invalid_value":
|
|
5424
|
+
if (issue2.values.length === 1)
|
|
5425
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
5426
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
5427
|
+
case "too_big": {
|
|
5428
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5429
|
+
const sizing = getSizing(issue2.origin);
|
|
5430
|
+
if (sizing)
|
|
5431
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
5432
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
5433
|
+
}
|
|
5434
|
+
case "too_small": {
|
|
5435
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5436
|
+
const sizing = getSizing(issue2.origin);
|
|
5437
|
+
if (sizing) {
|
|
5438
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5439
|
+
}
|
|
5440
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
5441
|
+
}
|
|
5442
|
+
case "invalid_format": {
|
|
5443
|
+
const _issue = issue2;
|
|
5444
|
+
if (_issue.format === "starts_with") {
|
|
5445
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
5446
|
+
}
|
|
5447
|
+
if (_issue.format === "ends_with")
|
|
5448
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
5449
|
+
if (_issue.format === "includes")
|
|
5450
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
5451
|
+
if (_issue.format === "regex")
|
|
5452
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
5453
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5454
|
+
}
|
|
5455
|
+
case "not_multiple_of":
|
|
5456
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
5457
|
+
case "unrecognized_keys":
|
|
5458
|
+
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5459
|
+
case "invalid_key":
|
|
5460
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5461
|
+
case "invalid_union":
|
|
5462
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5463
|
+
case "invalid_element":
|
|
5464
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5465
|
+
default:
|
|
5466
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5467
|
+
}
|
|
5468
|
+
};
|
|
5469
|
+
};
|
|
5470
|
+
function el_default() {
|
|
5471
|
+
return {
|
|
5472
|
+
localeError: error9()
|
|
5473
|
+
};
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5476
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5477
|
+
var error10 = () => {
|
|
5216
5478
|
const Sizable = {
|
|
5217
5479
|
string: { unit: "characters", verb: "to have" },
|
|
5218
5480
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5306,6 +5568,10 @@ var error9 = () => {
|
|
|
5306
5568
|
case "invalid_key":
|
|
5307
5569
|
return `Invalid key in ${issue2.origin}`;
|
|
5308
5570
|
case "invalid_union":
|
|
5571
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5572
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5573
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5574
|
+
}
|
|
5309
5575
|
return "Invalid input";
|
|
5310
5576
|
case "invalid_element":
|
|
5311
5577
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5316,12 +5582,12 @@ var error9 = () => {
|
|
|
5316
5582
|
};
|
|
5317
5583
|
function en_default() {
|
|
5318
5584
|
return {
|
|
5319
|
-
localeError:
|
|
5585
|
+
localeError: error10()
|
|
5320
5586
|
};
|
|
5321
5587
|
}
|
|
5322
5588
|
|
|
5323
|
-
// node_modules/.pnpm/zod@4.3
|
|
5324
|
-
var
|
|
5589
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5590
|
+
var error11 = () => {
|
|
5325
5591
|
const Sizable = {
|
|
5326
5592
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5327
5593
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5426,12 +5692,12 @@ var error10 = () => {
|
|
|
5426
5692
|
};
|
|
5427
5693
|
function eo_default() {
|
|
5428
5694
|
return {
|
|
5429
|
-
localeError:
|
|
5695
|
+
localeError: error11()
|
|
5430
5696
|
};
|
|
5431
5697
|
}
|
|
5432
5698
|
|
|
5433
|
-
// node_modules/.pnpm/zod@4.3
|
|
5434
|
-
var
|
|
5699
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5700
|
+
var error12 = () => {
|
|
5435
5701
|
const Sizable = {
|
|
5436
5702
|
string: { unit: "caracteres", verb: "tener" },
|
|
5437
5703
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5559,12 +5825,12 @@ var error11 = () => {
|
|
|
5559
5825
|
};
|
|
5560
5826
|
function es_default() {
|
|
5561
5827
|
return {
|
|
5562
|
-
localeError:
|
|
5828
|
+
localeError: error12()
|
|
5563
5829
|
};
|
|
5564
5830
|
}
|
|
5565
5831
|
|
|
5566
|
-
// node_modules/.pnpm/zod@4.3
|
|
5567
|
-
var
|
|
5832
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5833
|
+
var error13 = () => {
|
|
5568
5834
|
const Sizable = {
|
|
5569
5835
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5570
5836
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5674,12 +5940,12 @@ var error12 = () => {
|
|
|
5674
5940
|
};
|
|
5675
5941
|
function fa_default() {
|
|
5676
5942
|
return {
|
|
5677
|
-
localeError:
|
|
5943
|
+
localeError: error13()
|
|
5678
5944
|
};
|
|
5679
5945
|
}
|
|
5680
5946
|
|
|
5681
|
-
// node_modules/.pnpm/zod@4.3
|
|
5682
|
-
var
|
|
5947
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5948
|
+
var error14 = () => {
|
|
5683
5949
|
const Sizable = {
|
|
5684
5950
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5685
5951
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -5787,12 +6053,12 @@ var error13 = () => {
|
|
|
5787
6053
|
};
|
|
5788
6054
|
function fi_default() {
|
|
5789
6055
|
return {
|
|
5790
|
-
localeError:
|
|
6056
|
+
localeError: error14()
|
|
5791
6057
|
};
|
|
5792
6058
|
}
|
|
5793
6059
|
|
|
5794
|
-
// node_modules/.pnpm/zod@4.3
|
|
5795
|
-
var
|
|
6060
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6061
|
+
var error15 = () => {
|
|
5796
6062
|
const Sizable = {
|
|
5797
6063
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5798
6064
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5833,9 +6099,27 @@ var error14 = () => {
|
|
|
5833
6099
|
template_literal: "entr\xE9e"
|
|
5834
6100
|
};
|
|
5835
6101
|
const TypeDictionary = {
|
|
5836
|
-
|
|
6102
|
+
string: "cha\xEEne",
|
|
5837
6103
|
number: "nombre",
|
|
5838
|
-
|
|
6104
|
+
int: "entier",
|
|
6105
|
+
boolean: "bool\xE9en",
|
|
6106
|
+
bigint: "grand entier",
|
|
6107
|
+
symbol: "symbole",
|
|
6108
|
+
undefined: "ind\xE9fini",
|
|
6109
|
+
null: "null",
|
|
6110
|
+
never: "jamais",
|
|
6111
|
+
void: "vide",
|
|
6112
|
+
date: "date",
|
|
6113
|
+
array: "tableau",
|
|
6114
|
+
object: "objet",
|
|
6115
|
+
tuple: "tuple",
|
|
6116
|
+
record: "enregistrement",
|
|
6117
|
+
map: "carte",
|
|
6118
|
+
set: "ensemble",
|
|
6119
|
+
file: "fichier",
|
|
6120
|
+
nonoptional: "non-optionnel",
|
|
6121
|
+
nan: "NaN",
|
|
6122
|
+
function: "fonction"
|
|
5839
6123
|
};
|
|
5840
6124
|
return (issue2) => {
|
|
5841
6125
|
switch (issue2.code) {
|
|
@@ -5856,16 +6140,15 @@ var error14 = () => {
|
|
|
5856
6140
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5857
6141
|
const sizing = getSizing(issue2.origin);
|
|
5858
6142
|
if (sizing)
|
|
5859
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5860
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6143
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6144
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
5861
6145
|
}
|
|
5862
6146
|
case "too_small": {
|
|
5863
6147
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5864
6148
|
const sizing = getSizing(issue2.origin);
|
|
5865
|
-
if (sizing)
|
|
5866
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5867
|
-
}
|
|
5868
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6149
|
+
if (sizing)
|
|
6150
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6151
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
5869
6152
|
}
|
|
5870
6153
|
case "invalid_format": {
|
|
5871
6154
|
const _issue = issue2;
|
|
@@ -5896,12 +6179,12 @@ var error14 = () => {
|
|
|
5896
6179
|
};
|
|
5897
6180
|
function fr_default() {
|
|
5898
6181
|
return {
|
|
5899
|
-
localeError:
|
|
6182
|
+
localeError: error15()
|
|
5900
6183
|
};
|
|
5901
6184
|
}
|
|
5902
6185
|
|
|
5903
|
-
// node_modules/.pnpm/zod@4.3
|
|
5904
|
-
var
|
|
6186
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6187
|
+
var error16 = () => {
|
|
5905
6188
|
const Sizable = {
|
|
5906
6189
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5907
6190
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6004,12 +6287,12 @@ var error15 = () => {
|
|
|
6004
6287
|
};
|
|
6005
6288
|
function fr_CA_default() {
|
|
6006
6289
|
return {
|
|
6007
|
-
localeError:
|
|
6290
|
+
localeError: error16()
|
|
6008
6291
|
};
|
|
6009
6292
|
}
|
|
6010
6293
|
|
|
6011
|
-
// node_modules/.pnpm/zod@4.3
|
|
6012
|
-
var
|
|
6294
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6295
|
+
var error17 = () => {
|
|
6013
6296
|
const TypeNames = {
|
|
6014
6297
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6015
6298
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6199,24 +6482,24 @@ var error16 = () => {
|
|
|
6199
6482
|
};
|
|
6200
6483
|
function he_default() {
|
|
6201
6484
|
return {
|
|
6202
|
-
localeError:
|
|
6485
|
+
localeError: error17()
|
|
6203
6486
|
};
|
|
6204
6487
|
}
|
|
6205
6488
|
|
|
6206
|
-
// node_modules/.pnpm/zod@4.3
|
|
6207
|
-
var
|
|
6489
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6490
|
+
var error18 = () => {
|
|
6208
6491
|
const Sizable = {
|
|
6209
|
-
string: { unit: "
|
|
6210
|
-
file: { unit: "
|
|
6211
|
-
array: { unit: "
|
|
6212
|
-
set: { unit: "
|
|
6492
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6493
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6494
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6495
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6213
6496
|
};
|
|
6214
6497
|
function getSizing(origin) {
|
|
6215
6498
|
return Sizable[origin] ?? null;
|
|
6216
6499
|
}
|
|
6217
6500
|
const FormatDictionary = {
|
|
6218
|
-
regex: "
|
|
6219
|
-
email: "email
|
|
6501
|
+
regex: "unos",
|
|
6502
|
+
email: "email adresa",
|
|
6220
6503
|
url: "URL",
|
|
6221
6504
|
emoji: "emoji",
|
|
6222
6505
|
uuid: "UUID",
|
|
@@ -6229,25 +6512,37 @@ var error17 = () => {
|
|
|
6229
6512
|
ulid: "ULID",
|
|
6230
6513
|
xid: "XID",
|
|
6231
6514
|
ksuid: "KSUID",
|
|
6232
|
-
datetime: "ISO
|
|
6233
|
-
date: "ISO
|
|
6234
|
-
time: "ISO
|
|
6235
|
-
duration: "ISO
|
|
6236
|
-
ipv4: "IPv4
|
|
6237
|
-
ipv6: "IPv6
|
|
6238
|
-
cidrv4: "IPv4
|
|
6239
|
-
cidrv6: "IPv6
|
|
6240
|
-
base64: "base64
|
|
6241
|
-
base64url: "base64url
|
|
6242
|
-
json_string: "JSON
|
|
6243
|
-
e164: "E.164
|
|
6515
|
+
datetime: "ISO datum i vrijeme",
|
|
6516
|
+
date: "ISO datum",
|
|
6517
|
+
time: "ISO vrijeme",
|
|
6518
|
+
duration: "ISO trajanje",
|
|
6519
|
+
ipv4: "IPv4 adresa",
|
|
6520
|
+
ipv6: "IPv6 adresa",
|
|
6521
|
+
cidrv4: "IPv4 raspon",
|
|
6522
|
+
cidrv6: "IPv6 raspon",
|
|
6523
|
+
base64: "base64 kodirani tekst",
|
|
6524
|
+
base64url: "base64url kodirani tekst",
|
|
6525
|
+
json_string: "JSON tekst",
|
|
6526
|
+
e164: "E.164 broj",
|
|
6244
6527
|
jwt: "JWT",
|
|
6245
|
-
template_literal: "
|
|
6528
|
+
template_literal: "unos"
|
|
6246
6529
|
};
|
|
6247
6530
|
const TypeDictionary = {
|
|
6248
6531
|
nan: "NaN",
|
|
6249
|
-
|
|
6250
|
-
|
|
6532
|
+
string: "tekst",
|
|
6533
|
+
number: "broj",
|
|
6534
|
+
boolean: "boolean",
|
|
6535
|
+
array: "niz",
|
|
6536
|
+
object: "objekt",
|
|
6537
|
+
set: "skup",
|
|
6538
|
+
file: "datoteka",
|
|
6539
|
+
date: "datum",
|
|
6540
|
+
bigint: "bigint",
|
|
6541
|
+
symbol: "simbol",
|
|
6542
|
+
undefined: "undefined",
|
|
6543
|
+
null: "null",
|
|
6544
|
+
function: "funkcija",
|
|
6545
|
+
map: "mapa"
|
|
6251
6546
|
};
|
|
6252
6547
|
return (issue2) => {
|
|
6253
6548
|
switch (issue2.code) {
|
|
@@ -6256,35 +6551,146 @@ var error17 = () => {
|
|
|
6256
6551
|
const receivedType = parsedType(issue2.input);
|
|
6257
6552
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6258
6553
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6259
|
-
return
|
|
6554
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6260
6555
|
}
|
|
6261
|
-
return
|
|
6556
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6262
6557
|
}
|
|
6263
6558
|
case "invalid_value":
|
|
6264
6559
|
if (issue2.values.length === 1)
|
|
6265
|
-
return
|
|
6266
|
-
return
|
|
6560
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6561
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6267
6562
|
case "too_big": {
|
|
6268
6563
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6269
6564
|
const sizing = getSizing(issue2.origin);
|
|
6565
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6270
6566
|
if (sizing)
|
|
6271
|
-
return `
|
|
6272
|
-
return `
|
|
6567
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6568
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6273
6569
|
}
|
|
6274
6570
|
case "too_small": {
|
|
6275
6571
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6276
6572
|
const sizing = getSizing(issue2.origin);
|
|
6573
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6277
6574
|
if (sizing) {
|
|
6278
|
-
return `
|
|
6575
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6279
6576
|
}
|
|
6280
|
-
return `
|
|
6577
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6281
6578
|
}
|
|
6282
6579
|
case "invalid_format": {
|
|
6283
6580
|
const _issue = issue2;
|
|
6284
6581
|
if (_issue.format === "starts_with")
|
|
6285
|
-
return
|
|
6582
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6286
6583
|
if (_issue.format === "ends_with")
|
|
6287
|
-
return
|
|
6584
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6585
|
+
if (_issue.format === "includes")
|
|
6586
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6587
|
+
if (_issue.format === "regex")
|
|
6588
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6589
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6590
|
+
}
|
|
6591
|
+
case "not_multiple_of":
|
|
6592
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6593
|
+
case "unrecognized_keys":
|
|
6594
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6595
|
+
case "invalid_key":
|
|
6596
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6597
|
+
case "invalid_union":
|
|
6598
|
+
return "Neispravan unos";
|
|
6599
|
+
case "invalid_element":
|
|
6600
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6601
|
+
default:
|
|
6602
|
+
return `Neispravan unos`;
|
|
6603
|
+
}
|
|
6604
|
+
};
|
|
6605
|
+
};
|
|
6606
|
+
function hr_default() {
|
|
6607
|
+
return {
|
|
6608
|
+
localeError: error18()
|
|
6609
|
+
};
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6612
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6613
|
+
var error19 = () => {
|
|
6614
|
+
const Sizable = {
|
|
6615
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6616
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6617
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6618
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6619
|
+
};
|
|
6620
|
+
function getSizing(origin) {
|
|
6621
|
+
return Sizable[origin] ?? null;
|
|
6622
|
+
}
|
|
6623
|
+
const FormatDictionary = {
|
|
6624
|
+
regex: "bemenet",
|
|
6625
|
+
email: "email c\xEDm",
|
|
6626
|
+
url: "URL",
|
|
6627
|
+
emoji: "emoji",
|
|
6628
|
+
uuid: "UUID",
|
|
6629
|
+
uuidv4: "UUIDv4",
|
|
6630
|
+
uuidv6: "UUIDv6",
|
|
6631
|
+
nanoid: "nanoid",
|
|
6632
|
+
guid: "GUID",
|
|
6633
|
+
cuid: "cuid",
|
|
6634
|
+
cuid2: "cuid2",
|
|
6635
|
+
ulid: "ULID",
|
|
6636
|
+
xid: "XID",
|
|
6637
|
+
ksuid: "KSUID",
|
|
6638
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
6639
|
+
date: "ISO d\xE1tum",
|
|
6640
|
+
time: "ISO id\u0151",
|
|
6641
|
+
duration: "ISO id\u0151intervallum",
|
|
6642
|
+
ipv4: "IPv4 c\xEDm",
|
|
6643
|
+
ipv6: "IPv6 c\xEDm",
|
|
6644
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
6645
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
6646
|
+
base64: "base64-k\xF3dolt string",
|
|
6647
|
+
base64url: "base64url-k\xF3dolt string",
|
|
6648
|
+
json_string: "JSON string",
|
|
6649
|
+
e164: "E.164 sz\xE1m",
|
|
6650
|
+
jwt: "JWT",
|
|
6651
|
+
template_literal: "bemenet"
|
|
6652
|
+
};
|
|
6653
|
+
const TypeDictionary = {
|
|
6654
|
+
nan: "NaN",
|
|
6655
|
+
number: "sz\xE1m",
|
|
6656
|
+
array: "t\xF6mb"
|
|
6657
|
+
};
|
|
6658
|
+
return (issue2) => {
|
|
6659
|
+
switch (issue2.code) {
|
|
6660
|
+
case "invalid_type": {
|
|
6661
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6662
|
+
const receivedType = parsedType(issue2.input);
|
|
6663
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6664
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6665
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6666
|
+
}
|
|
6667
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6668
|
+
}
|
|
6669
|
+
case "invalid_value":
|
|
6670
|
+
if (issue2.values.length === 1)
|
|
6671
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
6672
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
6673
|
+
case "too_big": {
|
|
6674
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6675
|
+
const sizing = getSizing(issue2.origin);
|
|
6676
|
+
if (sizing)
|
|
6677
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
6678
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6679
|
+
}
|
|
6680
|
+
case "too_small": {
|
|
6681
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6682
|
+
const sizing = getSizing(issue2.origin);
|
|
6683
|
+
if (sizing) {
|
|
6684
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6685
|
+
}
|
|
6686
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
6687
|
+
}
|
|
6688
|
+
case "invalid_format": {
|
|
6689
|
+
const _issue = issue2;
|
|
6690
|
+
if (_issue.format === "starts_with")
|
|
6691
|
+
return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
|
|
6692
|
+
if (_issue.format === "ends_with")
|
|
6693
|
+
return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
|
|
6288
6694
|
if (_issue.format === "includes")
|
|
6289
6695
|
return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
|
|
6290
6696
|
if (_issue.format === "regex")
|
|
@@ -6308,11 +6714,11 @@ var error17 = () => {
|
|
|
6308
6714
|
};
|
|
6309
6715
|
function hu_default() {
|
|
6310
6716
|
return {
|
|
6311
|
-
localeError:
|
|
6717
|
+
localeError: error19()
|
|
6312
6718
|
};
|
|
6313
6719
|
}
|
|
6314
6720
|
|
|
6315
|
-
// node_modules/.pnpm/zod@4.3
|
|
6721
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6316
6722
|
function getArmenianPlural(count, one, many) {
|
|
6317
6723
|
return Math.abs(count) === 1 ? one : many;
|
|
6318
6724
|
}
|
|
@@ -6323,7 +6729,7 @@ function withDefiniteArticle(word) {
|
|
|
6323
6729
|
const lastChar = word[word.length - 1];
|
|
6324
6730
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6325
6731
|
}
|
|
6326
|
-
var
|
|
6732
|
+
var error20 = () => {
|
|
6327
6733
|
const Sizable = {
|
|
6328
6734
|
string: {
|
|
6329
6735
|
unit: {
|
|
@@ -6456,12 +6862,12 @@ var error18 = () => {
|
|
|
6456
6862
|
};
|
|
6457
6863
|
function hy_default() {
|
|
6458
6864
|
return {
|
|
6459
|
-
localeError:
|
|
6865
|
+
localeError: error20()
|
|
6460
6866
|
};
|
|
6461
6867
|
}
|
|
6462
6868
|
|
|
6463
|
-
// node_modules/.pnpm/zod@4.3
|
|
6464
|
-
var
|
|
6869
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
6870
|
+
var error21 = () => {
|
|
6465
6871
|
const Sizable = {
|
|
6466
6872
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6467
6873
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6563,12 +6969,12 @@ var error19 = () => {
|
|
|
6563
6969
|
};
|
|
6564
6970
|
function id_default() {
|
|
6565
6971
|
return {
|
|
6566
|
-
localeError:
|
|
6972
|
+
localeError: error21()
|
|
6567
6973
|
};
|
|
6568
6974
|
}
|
|
6569
6975
|
|
|
6570
|
-
// node_modules/.pnpm/zod@4.3
|
|
6571
|
-
var
|
|
6976
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
6977
|
+
var error22 = () => {
|
|
6572
6978
|
const Sizable = {
|
|
6573
6979
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6574
6980
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -6673,12 +7079,12 @@ var error20 = () => {
|
|
|
6673
7079
|
};
|
|
6674
7080
|
function is_default() {
|
|
6675
7081
|
return {
|
|
6676
|
-
localeError:
|
|
7082
|
+
localeError: error22()
|
|
6677
7083
|
};
|
|
6678
7084
|
}
|
|
6679
7085
|
|
|
6680
|
-
// node_modules/.pnpm/zod@4.3
|
|
6681
|
-
var
|
|
7086
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7087
|
+
var error23 = () => {
|
|
6682
7088
|
const Sizable = {
|
|
6683
7089
|
string: { unit: "caratteri", verb: "avere" },
|
|
6684
7090
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -6763,7 +7169,7 @@ var error21 = () => {
|
|
|
6763
7169
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
6764
7170
|
if (_issue.format === "regex")
|
|
6765
7171
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
6766
|
-
return `
|
|
7172
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6767
7173
|
}
|
|
6768
7174
|
case "not_multiple_of":
|
|
6769
7175
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -6782,12 +7188,12 @@ var error21 = () => {
|
|
|
6782
7188
|
};
|
|
6783
7189
|
function it_default() {
|
|
6784
7190
|
return {
|
|
6785
|
-
localeError:
|
|
7191
|
+
localeError: error23()
|
|
6786
7192
|
};
|
|
6787
7193
|
}
|
|
6788
7194
|
|
|
6789
|
-
// node_modules/.pnpm/zod@4.3
|
|
6790
|
-
var
|
|
7195
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7196
|
+
var error24 = () => {
|
|
6791
7197
|
const Sizable = {
|
|
6792
7198
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
6793
7199
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -6890,12 +7296,12 @@ var error22 = () => {
|
|
|
6890
7296
|
};
|
|
6891
7297
|
function ja_default() {
|
|
6892
7298
|
return {
|
|
6893
|
-
localeError:
|
|
7299
|
+
localeError: error24()
|
|
6894
7300
|
};
|
|
6895
7301
|
}
|
|
6896
7302
|
|
|
6897
|
-
// node_modules/.pnpm/zod@4.3
|
|
6898
|
-
var
|
|
7303
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7304
|
+
var error25 = () => {
|
|
6899
7305
|
const Sizable = {
|
|
6900
7306
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
6901
7307
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -6928,9 +7334,9 @@ var error23 = () => {
|
|
|
6928
7334
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
6929
7335
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6930
7336
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6931
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6932
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6933
|
-
json_string: "JSON \
|
|
7337
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7338
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7339
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
6934
7340
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
6935
7341
|
jwt: "JWT",
|
|
6936
7342
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -6938,7 +7344,7 @@ var error23 = () => {
|
|
|
6938
7344
|
const TypeDictionary = {
|
|
6939
7345
|
nan: "NaN",
|
|
6940
7346
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
6941
|
-
string: "\
|
|
7347
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
6942
7348
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
6943
7349
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
6944
7350
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -6976,14 +7382,14 @@ var error23 = () => {
|
|
|
6976
7382
|
case "invalid_format": {
|
|
6977
7383
|
const _issue = issue2;
|
|
6978
7384
|
if (_issue.format === "starts_with") {
|
|
6979
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7385
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
6980
7386
|
}
|
|
6981
7387
|
if (_issue.format === "ends_with")
|
|
6982
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7388
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
6983
7389
|
if (_issue.format === "includes")
|
|
6984
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7390
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
6985
7391
|
if (_issue.format === "regex")
|
|
6986
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7392
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
6987
7393
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6988
7394
|
}
|
|
6989
7395
|
case "not_multiple_of":
|
|
@@ -7003,12 +7409,12 @@ var error23 = () => {
|
|
|
7003
7409
|
};
|
|
7004
7410
|
function ka_default() {
|
|
7005
7411
|
return {
|
|
7006
|
-
localeError:
|
|
7412
|
+
localeError: error25()
|
|
7007
7413
|
};
|
|
7008
7414
|
}
|
|
7009
7415
|
|
|
7010
|
-
// node_modules/.pnpm/zod@4.3
|
|
7011
|
-
var
|
|
7416
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7417
|
+
var error26 = () => {
|
|
7012
7418
|
const Sizable = {
|
|
7013
7419
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7014
7420
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7114,17 +7520,17 @@ var error24 = () => {
|
|
|
7114
7520
|
};
|
|
7115
7521
|
function km_default() {
|
|
7116
7522
|
return {
|
|
7117
|
-
localeError:
|
|
7523
|
+
localeError: error26()
|
|
7118
7524
|
};
|
|
7119
7525
|
}
|
|
7120
7526
|
|
|
7121
|
-
// node_modules/.pnpm/zod@4.3
|
|
7527
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7122
7528
|
function kh_default() {
|
|
7123
7529
|
return km_default();
|
|
7124
7530
|
}
|
|
7125
7531
|
|
|
7126
|
-
// node_modules/.pnpm/zod@4.3
|
|
7127
|
-
var
|
|
7532
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7533
|
+
var error27 = () => {
|
|
7128
7534
|
const Sizable = {
|
|
7129
7535
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7130
7536
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7231,11 +7637,11 @@ var error25 = () => {
|
|
|
7231
7637
|
};
|
|
7232
7638
|
function ko_default() {
|
|
7233
7639
|
return {
|
|
7234
|
-
localeError:
|
|
7640
|
+
localeError: error27()
|
|
7235
7641
|
};
|
|
7236
7642
|
}
|
|
7237
7643
|
|
|
7238
|
-
// node_modules/.pnpm/zod@4.3
|
|
7644
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7239
7645
|
var capitalizeFirstCharacter = (text) => {
|
|
7240
7646
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7241
7647
|
};
|
|
@@ -7249,7 +7655,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7249
7655
|
return "one";
|
|
7250
7656
|
return "few";
|
|
7251
7657
|
}
|
|
7252
|
-
var
|
|
7658
|
+
var error28 = () => {
|
|
7253
7659
|
const Sizable = {
|
|
7254
7660
|
string: {
|
|
7255
7661
|
unit: {
|
|
@@ -7435,12 +7841,12 @@ var error26 = () => {
|
|
|
7435
7841
|
};
|
|
7436
7842
|
function lt_default() {
|
|
7437
7843
|
return {
|
|
7438
|
-
localeError:
|
|
7844
|
+
localeError: error28()
|
|
7439
7845
|
};
|
|
7440
7846
|
}
|
|
7441
7847
|
|
|
7442
|
-
// node_modules/.pnpm/zod@4.3
|
|
7443
|
-
var
|
|
7848
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
7849
|
+
var error29 = () => {
|
|
7444
7850
|
const Sizable = {
|
|
7445
7851
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7446
7852
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7545,12 +7951,12 @@ var error27 = () => {
|
|
|
7545
7951
|
};
|
|
7546
7952
|
function mk_default() {
|
|
7547
7953
|
return {
|
|
7548
|
-
localeError:
|
|
7954
|
+
localeError: error29()
|
|
7549
7955
|
};
|
|
7550
7956
|
}
|
|
7551
7957
|
|
|
7552
|
-
// node_modules/.pnpm/zod@4.3
|
|
7553
|
-
var
|
|
7958
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7959
|
+
var error30 = () => {
|
|
7554
7960
|
const Sizable = {
|
|
7555
7961
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7556
7962
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7653,12 +8059,12 @@ var error28 = () => {
|
|
|
7653
8059
|
};
|
|
7654
8060
|
function ms_default() {
|
|
7655
8061
|
return {
|
|
7656
|
-
localeError:
|
|
8062
|
+
localeError: error30()
|
|
7657
8063
|
};
|
|
7658
8064
|
}
|
|
7659
8065
|
|
|
7660
|
-
// node_modules/.pnpm/zod@4.3
|
|
7661
|
-
var
|
|
8066
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8067
|
+
var error31 = () => {
|
|
7662
8068
|
const Sizable = {
|
|
7663
8069
|
string: { unit: "tekens", verb: "heeft" },
|
|
7664
8070
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -7764,12 +8170,12 @@ var error29 = () => {
|
|
|
7764
8170
|
};
|
|
7765
8171
|
function nl_default() {
|
|
7766
8172
|
return {
|
|
7767
|
-
localeError:
|
|
8173
|
+
localeError: error31()
|
|
7768
8174
|
};
|
|
7769
8175
|
}
|
|
7770
8176
|
|
|
7771
|
-
// node_modules/.pnpm/zod@4.3
|
|
7772
|
-
var
|
|
8177
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8178
|
+
var error32 = () => {
|
|
7773
8179
|
const Sizable = {
|
|
7774
8180
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
7775
8181
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -7873,12 +8279,12 @@ var error30 = () => {
|
|
|
7873
8279
|
};
|
|
7874
8280
|
function no_default() {
|
|
7875
8281
|
return {
|
|
7876
|
-
localeError:
|
|
8282
|
+
localeError: error32()
|
|
7877
8283
|
};
|
|
7878
8284
|
}
|
|
7879
8285
|
|
|
7880
|
-
// node_modules/.pnpm/zod@4.3
|
|
7881
|
-
var
|
|
8286
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8287
|
+
var error33 = () => {
|
|
7882
8288
|
const Sizable = {
|
|
7883
8289
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
7884
8290
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7983,12 +8389,12 @@ var error31 = () => {
|
|
|
7983
8389
|
};
|
|
7984
8390
|
function ota_default() {
|
|
7985
8391
|
return {
|
|
7986
|
-
localeError:
|
|
8392
|
+
localeError: error33()
|
|
7987
8393
|
};
|
|
7988
8394
|
}
|
|
7989
8395
|
|
|
7990
|
-
// node_modules/.pnpm/zod@4.3
|
|
7991
|
-
var
|
|
8396
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8397
|
+
var error34 = () => {
|
|
7992
8398
|
const Sizable = {
|
|
7993
8399
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
7994
8400
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8098,12 +8504,12 @@ var error32 = () => {
|
|
|
8098
8504
|
};
|
|
8099
8505
|
function ps_default() {
|
|
8100
8506
|
return {
|
|
8101
|
-
localeError:
|
|
8507
|
+
localeError: error34()
|
|
8102
8508
|
};
|
|
8103
8509
|
}
|
|
8104
8510
|
|
|
8105
|
-
// node_modules/.pnpm/zod@4.3
|
|
8106
|
-
var
|
|
8511
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8512
|
+
var error35 = () => {
|
|
8107
8513
|
const Sizable = {
|
|
8108
8514
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8109
8515
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8208,12 +8614,12 @@ var error33 = () => {
|
|
|
8208
8614
|
};
|
|
8209
8615
|
function pl_default() {
|
|
8210
8616
|
return {
|
|
8211
|
-
localeError:
|
|
8617
|
+
localeError: error35()
|
|
8212
8618
|
};
|
|
8213
8619
|
}
|
|
8214
8620
|
|
|
8215
|
-
// node_modules/.pnpm/zod@4.3
|
|
8216
|
-
var
|
|
8621
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8622
|
+
var error36 = () => {
|
|
8217
8623
|
const Sizable = {
|
|
8218
8624
|
string: { unit: "caracteres", verb: "ter" },
|
|
8219
8625
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8317,11 +8723,131 @@ var error34 = () => {
|
|
|
8317
8723
|
};
|
|
8318
8724
|
function pt_default() {
|
|
8319
8725
|
return {
|
|
8320
|
-
localeError:
|
|
8726
|
+
localeError: error36()
|
|
8727
|
+
};
|
|
8728
|
+
}
|
|
8729
|
+
|
|
8730
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8731
|
+
var error37 = () => {
|
|
8732
|
+
const Sizable = {
|
|
8733
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
8734
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
8735
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8736
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8737
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
8738
|
+
};
|
|
8739
|
+
function getSizing(origin) {
|
|
8740
|
+
return Sizable[origin] ?? null;
|
|
8741
|
+
}
|
|
8742
|
+
const FormatDictionary = {
|
|
8743
|
+
regex: "intrare",
|
|
8744
|
+
email: "adres\u0103 de email",
|
|
8745
|
+
url: "URL",
|
|
8746
|
+
emoji: "emoji",
|
|
8747
|
+
uuid: "UUID",
|
|
8748
|
+
uuidv4: "UUIDv4",
|
|
8749
|
+
uuidv6: "UUIDv6",
|
|
8750
|
+
nanoid: "nanoid",
|
|
8751
|
+
guid: "GUID",
|
|
8752
|
+
cuid: "cuid",
|
|
8753
|
+
cuid2: "cuid2",
|
|
8754
|
+
ulid: "ULID",
|
|
8755
|
+
xid: "XID",
|
|
8756
|
+
ksuid: "KSUID",
|
|
8757
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
8758
|
+
date: "dat\u0103 ISO",
|
|
8759
|
+
time: "or\u0103 ISO",
|
|
8760
|
+
duration: "durat\u0103 ISO",
|
|
8761
|
+
ipv4: "adres\u0103 IPv4",
|
|
8762
|
+
ipv6: "adres\u0103 IPv6",
|
|
8763
|
+
mac: "adres\u0103 MAC",
|
|
8764
|
+
cidrv4: "interval IPv4",
|
|
8765
|
+
cidrv6: "interval IPv6",
|
|
8766
|
+
base64: "\u0219ir codat base64",
|
|
8767
|
+
base64url: "\u0219ir codat base64url",
|
|
8768
|
+
json_string: "\u0219ir JSON",
|
|
8769
|
+
e164: "num\u0103r E.164",
|
|
8770
|
+
jwt: "JWT",
|
|
8771
|
+
template_literal: "intrare"
|
|
8772
|
+
};
|
|
8773
|
+
const TypeDictionary = {
|
|
8774
|
+
nan: "NaN",
|
|
8775
|
+
string: "\u0219ir",
|
|
8776
|
+
number: "num\u0103r",
|
|
8777
|
+
boolean: "boolean",
|
|
8778
|
+
function: "func\u021Bie",
|
|
8779
|
+
array: "matrice",
|
|
8780
|
+
object: "obiect",
|
|
8781
|
+
undefined: "nedefinit",
|
|
8782
|
+
symbol: "simbol",
|
|
8783
|
+
bigint: "num\u0103r mare",
|
|
8784
|
+
void: "void",
|
|
8785
|
+
never: "never",
|
|
8786
|
+
map: "hart\u0103",
|
|
8787
|
+
set: "set"
|
|
8788
|
+
};
|
|
8789
|
+
return (issue2) => {
|
|
8790
|
+
switch (issue2.code) {
|
|
8791
|
+
case "invalid_type": {
|
|
8792
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8793
|
+
const receivedType = parsedType(issue2.input);
|
|
8794
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8795
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
8796
|
+
}
|
|
8797
|
+
case "invalid_value":
|
|
8798
|
+
if (issue2.values.length === 1)
|
|
8799
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8800
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8801
|
+
case "too_big": {
|
|
8802
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
8803
|
+
const sizing = getSizing(issue2.origin);
|
|
8804
|
+
if (sizing)
|
|
8805
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8806
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
8807
|
+
}
|
|
8808
|
+
case "too_small": {
|
|
8809
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
8810
|
+
const sizing = getSizing(issue2.origin);
|
|
8811
|
+
if (sizing) {
|
|
8812
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8813
|
+
}
|
|
8814
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
8815
|
+
}
|
|
8816
|
+
case "invalid_format": {
|
|
8817
|
+
const _issue = issue2;
|
|
8818
|
+
if (_issue.format === "starts_with") {
|
|
8819
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
8820
|
+
}
|
|
8821
|
+
if (_issue.format === "ends_with")
|
|
8822
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
8823
|
+
if (_issue.format === "includes")
|
|
8824
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
8825
|
+
if (_issue.format === "regex")
|
|
8826
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
8827
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8828
|
+
}
|
|
8829
|
+
case "not_multiple_of":
|
|
8830
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
8831
|
+
case "unrecognized_keys":
|
|
8832
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8833
|
+
case "invalid_key":
|
|
8834
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8835
|
+
case "invalid_union":
|
|
8836
|
+
return "Intrare invalid\u0103";
|
|
8837
|
+
case "invalid_element":
|
|
8838
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8839
|
+
default:
|
|
8840
|
+
return `Intrare invalid\u0103`;
|
|
8841
|
+
}
|
|
8842
|
+
};
|
|
8843
|
+
};
|
|
8844
|
+
function ro_default() {
|
|
8845
|
+
return {
|
|
8846
|
+
localeError: error37()
|
|
8321
8847
|
};
|
|
8322
8848
|
}
|
|
8323
8849
|
|
|
8324
|
-
// node_modules/.pnpm/zod@4.3
|
|
8850
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8325
8851
|
function getRussianPlural(count, one, few, many) {
|
|
8326
8852
|
const absCount = Math.abs(count);
|
|
8327
8853
|
const lastDigit = absCount % 10;
|
|
@@ -8337,7 +8863,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8337
8863
|
}
|
|
8338
8864
|
return many;
|
|
8339
8865
|
}
|
|
8340
|
-
var
|
|
8866
|
+
var error38 = () => {
|
|
8341
8867
|
const Sizable = {
|
|
8342
8868
|
string: {
|
|
8343
8869
|
unit: {
|
|
@@ -8474,12 +9000,12 @@ var error35 = () => {
|
|
|
8474
9000
|
};
|
|
8475
9001
|
function ru_default() {
|
|
8476
9002
|
return {
|
|
8477
|
-
localeError:
|
|
9003
|
+
localeError: error38()
|
|
8478
9004
|
};
|
|
8479
9005
|
}
|
|
8480
9006
|
|
|
8481
|
-
// node_modules/.pnpm/zod@4.3
|
|
8482
|
-
var
|
|
9007
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9008
|
+
var error39 = () => {
|
|
8483
9009
|
const Sizable = {
|
|
8484
9010
|
string: { unit: "znakov", verb: "imeti" },
|
|
8485
9011
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8584,12 +9110,12 @@ var error36 = () => {
|
|
|
8584
9110
|
};
|
|
8585
9111
|
function sl_default() {
|
|
8586
9112
|
return {
|
|
8587
|
-
localeError:
|
|
9113
|
+
localeError: error39()
|
|
8588
9114
|
};
|
|
8589
9115
|
}
|
|
8590
9116
|
|
|
8591
|
-
// node_modules/.pnpm/zod@4.3
|
|
8592
|
-
var
|
|
9117
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9118
|
+
var error40 = () => {
|
|
8593
9119
|
const Sizable = {
|
|
8594
9120
|
string: { unit: "tecken", verb: "att ha" },
|
|
8595
9121
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8695,12 +9221,12 @@ var error37 = () => {
|
|
|
8695
9221
|
};
|
|
8696
9222
|
function sv_default() {
|
|
8697
9223
|
return {
|
|
8698
|
-
localeError:
|
|
9224
|
+
localeError: error40()
|
|
8699
9225
|
};
|
|
8700
9226
|
}
|
|
8701
9227
|
|
|
8702
|
-
// node_modules/.pnpm/zod@4.3
|
|
8703
|
-
var
|
|
9228
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9229
|
+
var error41 = () => {
|
|
8704
9230
|
const Sizable = {
|
|
8705
9231
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
8706
9232
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -8806,12 +9332,12 @@ var error38 = () => {
|
|
|
8806
9332
|
};
|
|
8807
9333
|
function ta_default() {
|
|
8808
9334
|
return {
|
|
8809
|
-
localeError:
|
|
9335
|
+
localeError: error41()
|
|
8810
9336
|
};
|
|
8811
9337
|
}
|
|
8812
9338
|
|
|
8813
|
-
// node_modules/.pnpm/zod@4.3
|
|
8814
|
-
var
|
|
9339
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9340
|
+
var error42 = () => {
|
|
8815
9341
|
const Sizable = {
|
|
8816
9342
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
8817
9343
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8917,12 +9443,12 @@ var error39 = () => {
|
|
|
8917
9443
|
};
|
|
8918
9444
|
function th_default() {
|
|
8919
9445
|
return {
|
|
8920
|
-
localeError:
|
|
9446
|
+
localeError: error42()
|
|
8921
9447
|
};
|
|
8922
9448
|
}
|
|
8923
9449
|
|
|
8924
|
-
// node_modules/.pnpm/zod@4.3
|
|
8925
|
-
var
|
|
9450
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9451
|
+
var error43 = () => {
|
|
8926
9452
|
const Sizable = {
|
|
8927
9453
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
8928
9454
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9023,12 +9549,12 @@ var error40 = () => {
|
|
|
9023
9549
|
};
|
|
9024
9550
|
function tr_default() {
|
|
9025
9551
|
return {
|
|
9026
|
-
localeError:
|
|
9552
|
+
localeError: error43()
|
|
9027
9553
|
};
|
|
9028
9554
|
}
|
|
9029
9555
|
|
|
9030
|
-
// node_modules/.pnpm/zod@4.3
|
|
9031
|
-
var
|
|
9556
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9557
|
+
var error44 = () => {
|
|
9032
9558
|
const Sizable = {
|
|
9033
9559
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9034
9560
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9132,17 +9658,17 @@ var error41 = () => {
|
|
|
9132
9658
|
};
|
|
9133
9659
|
function uk_default() {
|
|
9134
9660
|
return {
|
|
9135
|
-
localeError:
|
|
9661
|
+
localeError: error44()
|
|
9136
9662
|
};
|
|
9137
9663
|
}
|
|
9138
9664
|
|
|
9139
|
-
// node_modules/.pnpm/zod@4.3
|
|
9665
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9140
9666
|
function ua_default() {
|
|
9141
9667
|
return uk_default();
|
|
9142
9668
|
}
|
|
9143
9669
|
|
|
9144
|
-
// node_modules/.pnpm/zod@4.3
|
|
9145
|
-
var
|
|
9670
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9671
|
+
var error45 = () => {
|
|
9146
9672
|
const Sizable = {
|
|
9147
9673
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9148
9674
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9248,17 +9774,18 @@ var error42 = () => {
|
|
|
9248
9774
|
};
|
|
9249
9775
|
function ur_default() {
|
|
9250
9776
|
return {
|
|
9251
|
-
localeError:
|
|
9777
|
+
localeError: error45()
|
|
9252
9778
|
};
|
|
9253
9779
|
}
|
|
9254
9780
|
|
|
9255
|
-
// node_modules/.pnpm/zod@4.3
|
|
9256
|
-
var
|
|
9781
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
9782
|
+
var error46 = () => {
|
|
9257
9783
|
const Sizable = {
|
|
9258
9784
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9259
9785
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9260
9786
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9261
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9787
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9788
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9262
9789
|
};
|
|
9263
9790
|
function getSizing(origin) {
|
|
9264
9791
|
return Sizable[origin] ?? null;
|
|
@@ -9358,12 +9885,12 @@ var error43 = () => {
|
|
|
9358
9885
|
};
|
|
9359
9886
|
function uz_default() {
|
|
9360
9887
|
return {
|
|
9361
|
-
localeError:
|
|
9888
|
+
localeError: error46()
|
|
9362
9889
|
};
|
|
9363
9890
|
}
|
|
9364
9891
|
|
|
9365
|
-
// node_modules/.pnpm/zod@4.3
|
|
9366
|
-
var
|
|
9892
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
9893
|
+
var error47 = () => {
|
|
9367
9894
|
const Sizable = {
|
|
9368
9895
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9369
9896
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9467,12 +9994,12 @@ var error44 = () => {
|
|
|
9467
9994
|
};
|
|
9468
9995
|
function vi_default() {
|
|
9469
9996
|
return {
|
|
9470
|
-
localeError:
|
|
9997
|
+
localeError: error47()
|
|
9471
9998
|
};
|
|
9472
9999
|
}
|
|
9473
10000
|
|
|
9474
|
-
// node_modules/.pnpm/zod@4.3
|
|
9475
|
-
var
|
|
10001
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10002
|
+
var error48 = () => {
|
|
9476
10003
|
const Sizable = {
|
|
9477
10004
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9478
10005
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9577,12 +10104,12 @@ var error45 = () => {
|
|
|
9577
10104
|
};
|
|
9578
10105
|
function zh_CN_default() {
|
|
9579
10106
|
return {
|
|
9580
|
-
localeError:
|
|
10107
|
+
localeError: error48()
|
|
9581
10108
|
};
|
|
9582
10109
|
}
|
|
9583
10110
|
|
|
9584
|
-
// node_modules/.pnpm/zod@4.3
|
|
9585
|
-
var
|
|
10111
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10112
|
+
var error49 = () => {
|
|
9586
10113
|
const Sizable = {
|
|
9587
10114
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9588
10115
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -9685,12 +10212,12 @@ var error46 = () => {
|
|
|
9685
10212
|
};
|
|
9686
10213
|
function zh_TW_default() {
|
|
9687
10214
|
return {
|
|
9688
|
-
localeError:
|
|
10215
|
+
localeError: error49()
|
|
9689
10216
|
};
|
|
9690
10217
|
}
|
|
9691
10218
|
|
|
9692
|
-
// node_modules/.pnpm/zod@4.3
|
|
9693
|
-
var
|
|
10219
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10220
|
+
var error50 = () => {
|
|
9694
10221
|
const Sizable = {
|
|
9695
10222
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
9696
10223
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -9793,12 +10320,12 @@ var error47 = () => {
|
|
|
9793
10320
|
};
|
|
9794
10321
|
function yo_default() {
|
|
9795
10322
|
return {
|
|
9796
|
-
localeError:
|
|
10323
|
+
localeError: error50()
|
|
9797
10324
|
};
|
|
9798
10325
|
}
|
|
9799
10326
|
|
|
9800
|
-
// node_modules/.pnpm/zod@4.3
|
|
9801
|
-
var
|
|
10327
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10328
|
+
var _a2;
|
|
9802
10329
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
9803
10330
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
9804
10331
|
var $ZodRegistry = class {
|
|
@@ -9844,10 +10371,10 @@ var $ZodRegistry = class {
|
|
|
9844
10371
|
function registry() {
|
|
9845
10372
|
return new $ZodRegistry();
|
|
9846
10373
|
}
|
|
9847
|
-
(
|
|
10374
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
9848
10375
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9849
10376
|
|
|
9850
|
-
// node_modules/.pnpm/zod@4.3
|
|
10377
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
9851
10378
|
// @__NO_SIDE_EFFECTS__
|
|
9852
10379
|
function _string(Class2, params) {
|
|
9853
10380
|
return new Class2({
|
|
@@ -10762,7 +11289,7 @@ function _refine(Class2, fn, _params) {
|
|
|
10762
11289
|
return schema;
|
|
10763
11290
|
}
|
|
10764
11291
|
// @__NO_SIDE_EFFECTS__
|
|
10765
|
-
function _superRefine(fn) {
|
|
11292
|
+
function _superRefine(fn, params) {
|
|
10766
11293
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
10767
11294
|
payload.addIssue = (issue2) => {
|
|
10768
11295
|
if (typeof issue2 === "string") {
|
|
@@ -10779,7 +11306,7 @@ function _superRefine(fn) {
|
|
|
10779
11306
|
}
|
|
10780
11307
|
};
|
|
10781
11308
|
return fn(payload.value, payload);
|
|
10782
|
-
});
|
|
11309
|
+
}, params);
|
|
10783
11310
|
return ch;
|
|
10784
11311
|
}
|
|
10785
11312
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -10886,7 +11413,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10886
11413
|
return inst;
|
|
10887
11414
|
}
|
|
10888
11415
|
|
|
10889
|
-
// node_modules/.pnpm/zod@4.3
|
|
11416
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
10890
11417
|
function initializeContext(params) {
|
|
10891
11418
|
let target = params?.target ?? "draft-2020-12";
|
|
10892
11419
|
if (target === "draft-4")
|
|
@@ -10909,7 +11436,7 @@ function initializeContext(params) {
|
|
|
10909
11436
|
};
|
|
10910
11437
|
}
|
|
10911
11438
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
10912
|
-
var
|
|
11439
|
+
var _a3;
|
|
10913
11440
|
const def = schema._zod.def;
|
|
10914
11441
|
const seen = ctx.seen.get(schema);
|
|
10915
11442
|
if (seen) {
|
|
@@ -10956,8 +11483,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
10956
11483
|
delete result.schema.examples;
|
|
10957
11484
|
delete result.schema.default;
|
|
10958
11485
|
}
|
|
10959
|
-
if (ctx.io === "input" && result.schema
|
|
10960
|
-
(
|
|
11486
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11487
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
10961
11488
|
delete result.schema._prefault;
|
|
10962
11489
|
const _result = ctx.seen.get(schema);
|
|
10963
11490
|
return _result.schema;
|
|
@@ -11138,10 +11665,15 @@ function finalize(ctx, schema) {
|
|
|
11138
11665
|
result.$id = ctx.external.uri(id);
|
|
11139
11666
|
}
|
|
11140
11667
|
Object.assign(result, root.def ?? root.schema);
|
|
11668
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11669
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
11670
|
+
delete result.id;
|
|
11141
11671
|
const defs = ctx.external?.defs ?? {};
|
|
11142
11672
|
for (const entry of ctx.seen.entries()) {
|
|
11143
11673
|
const seen = entry[1];
|
|
11144
11674
|
if (seen.def && seen.defId) {
|
|
11675
|
+
if (seen.def.id === seen.defId)
|
|
11676
|
+
delete seen.def.id;
|
|
11145
11677
|
defs[seen.defId] = seen.def;
|
|
11146
11678
|
}
|
|
11147
11679
|
}
|
|
@@ -11197,6 +11729,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11197
11729
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11198
11730
|
}
|
|
11199
11731
|
if (def.type === "pipe") {
|
|
11732
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11733
|
+
return true;
|
|
11200
11734
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11201
11735
|
}
|
|
11202
11736
|
if (def.type === "object") {
|
|
@@ -11238,7 +11772,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11238
11772
|
return finalize(ctx, schema);
|
|
11239
11773
|
};
|
|
11240
11774
|
|
|
11241
|
-
// node_modules/.pnpm/zod@4.3
|
|
11775
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11242
11776
|
var formatMap = {
|
|
11243
11777
|
guid: "uuid",
|
|
11244
11778
|
url: "uri",
|
|
@@ -11286,39 +11820,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11286
11820
|
json2.type = "integer";
|
|
11287
11821
|
else
|
|
11288
11822
|
json2.type = "number";
|
|
11289
|
-
|
|
11290
|
-
|
|
11823
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
11824
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
11825
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11826
|
+
if (exMin) {
|
|
11827
|
+
if (legacy) {
|
|
11291
11828
|
json2.minimum = exclusiveMinimum;
|
|
11292
11829
|
json2.exclusiveMinimum = true;
|
|
11293
11830
|
} else {
|
|
11294
11831
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11295
11832
|
}
|
|
11296
|
-
}
|
|
11297
|
-
if (typeof minimum === "number") {
|
|
11833
|
+
} else if (typeof minimum === "number") {
|
|
11298
11834
|
json2.minimum = minimum;
|
|
11299
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11300
|
-
if (exclusiveMinimum >= minimum)
|
|
11301
|
-
delete json2.minimum;
|
|
11302
|
-
else
|
|
11303
|
-
delete json2.exclusiveMinimum;
|
|
11304
|
-
}
|
|
11305
11835
|
}
|
|
11306
|
-
if (
|
|
11307
|
-
if (
|
|
11836
|
+
if (exMax) {
|
|
11837
|
+
if (legacy) {
|
|
11308
11838
|
json2.maximum = exclusiveMaximum;
|
|
11309
11839
|
json2.exclusiveMaximum = true;
|
|
11310
11840
|
} else {
|
|
11311
11841
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11312
11842
|
}
|
|
11313
|
-
}
|
|
11314
|
-
if (typeof maximum === "number") {
|
|
11843
|
+
} else if (typeof maximum === "number") {
|
|
11315
11844
|
json2.maximum = maximum;
|
|
11316
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11317
|
-
if (exclusiveMaximum <= maximum)
|
|
11318
|
-
delete json2.maximum;
|
|
11319
|
-
else
|
|
11320
|
-
delete json2.exclusiveMaximum;
|
|
11321
|
-
}
|
|
11322
11845
|
}
|
|
11323
11846
|
if (typeof multipleOf === "number")
|
|
11324
11847
|
json2.multipleOf = multipleOf;
|
|
@@ -11490,7 +12013,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11490
12013
|
if (typeof maximum === "number")
|
|
11491
12014
|
json2.maxItems = maximum;
|
|
11492
12015
|
json2.type = "array";
|
|
11493
|
-
json2.items = process(def.element, ctx, {
|
|
12016
|
+
json2.items = process(def.element, ctx, {
|
|
12017
|
+
...params,
|
|
12018
|
+
path: [...params.path, "items"]
|
|
12019
|
+
});
|
|
11494
12020
|
};
|
|
11495
12021
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11496
12022
|
const json2 = _json;
|
|
@@ -11683,7 +12209,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
11683
12209
|
};
|
|
11684
12210
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
11685
12211
|
const def = schema._zod.def;
|
|
11686
|
-
const
|
|
12212
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12213
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11687
12214
|
process(innerType, ctx, params);
|
|
11688
12215
|
const seen = ctx.seen.get(schema);
|
|
11689
12216
|
seen.ref = innerType;
|
|
@@ -11789,7 +12316,7 @@ function toJSONSchema(input, params) {
|
|
|
11789
12316
|
return finalize(ctx, input);
|
|
11790
12317
|
}
|
|
11791
12318
|
|
|
11792
|
-
// node_modules/.pnpm/zod@4.3
|
|
12319
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
11793
12320
|
var JSONSchemaGenerator = class {
|
|
11794
12321
|
/** @deprecated Access via ctx instead */
|
|
11795
12322
|
get metadataRegistry() {
|
|
@@ -11864,10 +12391,10 @@ var JSONSchemaGenerator = class {
|
|
|
11864
12391
|
}
|
|
11865
12392
|
};
|
|
11866
12393
|
|
|
11867
|
-
// node_modules/.pnpm/zod@4.3
|
|
12394
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
11868
12395
|
var json_schema_exports = {};
|
|
11869
12396
|
|
|
11870
|
-
// node_modules/.pnpm/zod@4.3
|
|
12397
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
11871
12398
|
var schemas_exports2 = {};
|
|
11872
12399
|
__export(schemas_exports2, {
|
|
11873
12400
|
ZodAny: () => ZodAny,
|
|
@@ -11917,6 +12444,7 @@ __export(schemas_exports2, {
|
|
|
11917
12444
|
ZodOptional: () => ZodOptional,
|
|
11918
12445
|
ZodPipe: () => ZodPipe,
|
|
11919
12446
|
ZodPrefault: () => ZodPrefault,
|
|
12447
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
11920
12448
|
ZodPromise: () => ZodPromise,
|
|
11921
12449
|
ZodReadonly: () => ZodReadonly,
|
|
11922
12450
|
ZodRecord: () => ZodRecord,
|
|
@@ -11977,6 +12505,7 @@ __export(schemas_exports2, {
|
|
|
11977
12505
|
int32: () => int32,
|
|
11978
12506
|
int64: () => int64,
|
|
11979
12507
|
intersection: () => intersection,
|
|
12508
|
+
invertCodec: () => invertCodec,
|
|
11980
12509
|
ipv4: () => ipv42,
|
|
11981
12510
|
ipv6: () => ipv62,
|
|
11982
12511
|
json: () => json,
|
|
@@ -12036,7 +12565,7 @@ __export(schemas_exports2, {
|
|
|
12036
12565
|
xor: () => xor
|
|
12037
12566
|
});
|
|
12038
12567
|
|
|
12039
|
-
// node_modules/.pnpm/zod@4.3
|
|
12568
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12040
12569
|
var checks_exports2 = {};
|
|
12041
12570
|
__export(checks_exports2, {
|
|
12042
12571
|
endsWith: () => _endsWith,
|
|
@@ -12070,7 +12599,7 @@ __export(checks_exports2, {
|
|
|
12070
12599
|
uppercase: () => _uppercase
|
|
12071
12600
|
});
|
|
12072
12601
|
|
|
12073
|
-
// node_modules/.pnpm/zod@4.3
|
|
12602
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12074
12603
|
var iso_exports = {};
|
|
12075
12604
|
__export(iso_exports, {
|
|
12076
12605
|
ZodISODate: () => ZodISODate,
|
|
@@ -12111,7 +12640,7 @@ function duration2(params) {
|
|
|
12111
12640
|
return _isoDuration(ZodISODuration, params);
|
|
12112
12641
|
}
|
|
12113
12642
|
|
|
12114
|
-
// node_modules/.pnpm/zod@4.3
|
|
12643
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12115
12644
|
var initializer2 = (inst, issues) => {
|
|
12116
12645
|
$ZodError.init(inst, issues);
|
|
12117
12646
|
inst.name = "ZodError";
|
|
@@ -12146,12 +12675,12 @@ var initializer2 = (inst, issues) => {
|
|
|
12146
12675
|
}
|
|
12147
12676
|
});
|
|
12148
12677
|
};
|
|
12149
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12150
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
12678
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
12679
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12151
12680
|
Parent: Error
|
|
12152
12681
|
});
|
|
12153
12682
|
|
|
12154
|
-
// node_modules/.pnpm/zod@4.3
|
|
12683
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12155
12684
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12156
12685
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12157
12686
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12165,7 +12694,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12165
12694
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12166
12695
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12167
12696
|
|
|
12168
|
-
// node_modules/.pnpm/zod@4.3
|
|
12697
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12698
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12699
|
+
function _installLazyMethods(inst, group, methods) {
|
|
12700
|
+
const proto = Object.getPrototypeOf(inst);
|
|
12701
|
+
let installed = _installedGroups.get(proto);
|
|
12702
|
+
if (!installed) {
|
|
12703
|
+
installed = /* @__PURE__ */ new Set();
|
|
12704
|
+
_installedGroups.set(proto, installed);
|
|
12705
|
+
}
|
|
12706
|
+
if (installed.has(group))
|
|
12707
|
+
return;
|
|
12708
|
+
installed.add(group);
|
|
12709
|
+
for (const key in methods) {
|
|
12710
|
+
const fn = methods[key];
|
|
12711
|
+
Object.defineProperty(proto, key, {
|
|
12712
|
+
configurable: true,
|
|
12713
|
+
enumerable: false,
|
|
12714
|
+
get() {
|
|
12715
|
+
const bound = fn.bind(this);
|
|
12716
|
+
Object.defineProperty(this, key, {
|
|
12717
|
+
configurable: true,
|
|
12718
|
+
writable: true,
|
|
12719
|
+
enumerable: true,
|
|
12720
|
+
value: bound
|
|
12721
|
+
});
|
|
12722
|
+
return bound;
|
|
12723
|
+
},
|
|
12724
|
+
set(v) {
|
|
12725
|
+
Object.defineProperty(this, key, {
|
|
12726
|
+
configurable: true,
|
|
12727
|
+
writable: true,
|
|
12728
|
+
enumerable: true,
|
|
12729
|
+
value: v
|
|
12730
|
+
});
|
|
12731
|
+
}
|
|
12732
|
+
});
|
|
12733
|
+
}
|
|
12734
|
+
}
|
|
12169
12735
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12170
12736
|
$ZodType.init(inst, def);
|
|
12171
12737
|
Object.assign(inst["~standard"], {
|
|
@@ -12178,23 +12744,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12178
12744
|
inst.def = def;
|
|
12179
12745
|
inst.type = def.type;
|
|
12180
12746
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12181
|
-
inst.check = (...checks) => {
|
|
12182
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12183
|
-
checks: [
|
|
12184
|
-
...def.checks ?? [],
|
|
12185
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12186
|
-
]
|
|
12187
|
-
}), {
|
|
12188
|
-
parent: true
|
|
12189
|
-
});
|
|
12190
|
-
};
|
|
12191
|
-
inst.with = inst.check;
|
|
12192
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12193
|
-
inst.brand = () => inst;
|
|
12194
|
-
inst.register = ((reg, meta3) => {
|
|
12195
|
-
reg.add(inst, meta3);
|
|
12196
|
-
return inst;
|
|
12197
|
-
});
|
|
12198
12747
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12199
12748
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12200
12749
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12208,45 +12757,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12208
12757
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12209
12758
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12210
12759
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12211
|
-
inst
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12760
|
+
_installLazyMethods(inst, "ZodType", {
|
|
12761
|
+
check(...chks) {
|
|
12762
|
+
const def2 = this.def;
|
|
12763
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
12764
|
+
checks: [
|
|
12765
|
+
...def2.checks ?? [],
|
|
12766
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12767
|
+
]
|
|
12768
|
+
}), { parent: true });
|
|
12769
|
+
},
|
|
12770
|
+
with(...chks) {
|
|
12771
|
+
return this.check(...chks);
|
|
12772
|
+
},
|
|
12773
|
+
clone(def2, params) {
|
|
12774
|
+
return clone(this, def2, params);
|
|
12775
|
+
},
|
|
12776
|
+
brand() {
|
|
12777
|
+
return this;
|
|
12778
|
+
},
|
|
12779
|
+
register(reg, meta3) {
|
|
12780
|
+
reg.add(this, meta3);
|
|
12781
|
+
return this;
|
|
12782
|
+
},
|
|
12783
|
+
refine(check2, params) {
|
|
12784
|
+
return this.check(refine(check2, params));
|
|
12785
|
+
},
|
|
12786
|
+
superRefine(refinement, params) {
|
|
12787
|
+
return this.check(superRefine(refinement, params));
|
|
12788
|
+
},
|
|
12789
|
+
overwrite(fn) {
|
|
12790
|
+
return this.check(_overwrite(fn));
|
|
12791
|
+
},
|
|
12792
|
+
optional() {
|
|
12793
|
+
return optional(this);
|
|
12794
|
+
},
|
|
12795
|
+
exactOptional() {
|
|
12796
|
+
return exactOptional(this);
|
|
12797
|
+
},
|
|
12798
|
+
nullable() {
|
|
12799
|
+
return nullable(this);
|
|
12800
|
+
},
|
|
12801
|
+
nullish() {
|
|
12802
|
+
return optional(nullable(this));
|
|
12803
|
+
},
|
|
12804
|
+
nonoptional(params) {
|
|
12805
|
+
return nonoptional(this, params);
|
|
12806
|
+
},
|
|
12807
|
+
array() {
|
|
12808
|
+
return array(this);
|
|
12809
|
+
},
|
|
12810
|
+
or(arg) {
|
|
12811
|
+
return union([this, arg]);
|
|
12812
|
+
},
|
|
12813
|
+
and(arg) {
|
|
12814
|
+
return intersection(this, arg);
|
|
12815
|
+
},
|
|
12816
|
+
transform(tx) {
|
|
12817
|
+
return pipe(this, transform(tx));
|
|
12818
|
+
},
|
|
12819
|
+
default(d) {
|
|
12820
|
+
return _default2(this, d);
|
|
12821
|
+
},
|
|
12822
|
+
prefault(d) {
|
|
12823
|
+
return prefault(this, d);
|
|
12824
|
+
},
|
|
12825
|
+
catch(params) {
|
|
12826
|
+
return _catch2(this, params);
|
|
12827
|
+
},
|
|
12828
|
+
pipe(target) {
|
|
12829
|
+
return pipe(this, target);
|
|
12830
|
+
},
|
|
12831
|
+
readonly() {
|
|
12832
|
+
return readonly(this);
|
|
12833
|
+
},
|
|
12834
|
+
describe(description) {
|
|
12835
|
+
const cl = this.clone();
|
|
12836
|
+
globalRegistry.add(cl, { description });
|
|
12837
|
+
return cl;
|
|
12838
|
+
},
|
|
12839
|
+
meta(...args) {
|
|
12840
|
+
if (args.length === 0)
|
|
12841
|
+
return globalRegistry.get(this);
|
|
12842
|
+
const cl = this.clone();
|
|
12843
|
+
globalRegistry.add(cl, args[0]);
|
|
12844
|
+
return cl;
|
|
12845
|
+
},
|
|
12846
|
+
isOptional() {
|
|
12847
|
+
return this.safeParse(void 0).success;
|
|
12848
|
+
},
|
|
12849
|
+
isNullable() {
|
|
12850
|
+
return this.safeParse(null).success;
|
|
12851
|
+
},
|
|
12852
|
+
apply(fn) {
|
|
12853
|
+
return fn(this);
|
|
12854
|
+
}
|
|
12855
|
+
});
|
|
12233
12856
|
Object.defineProperty(inst, "description", {
|
|
12234
12857
|
get() {
|
|
12235
12858
|
return globalRegistry.get(inst)?.description;
|
|
12236
12859
|
},
|
|
12237
12860
|
configurable: true
|
|
12238
12861
|
});
|
|
12239
|
-
inst.meta = (...args) => {
|
|
12240
|
-
if (args.length === 0) {
|
|
12241
|
-
return globalRegistry.get(inst);
|
|
12242
|
-
}
|
|
12243
|
-
const cl = inst.clone();
|
|
12244
|
-
globalRegistry.add(cl, args[0]);
|
|
12245
|
-
return cl;
|
|
12246
|
-
};
|
|
12247
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12248
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12249
|
-
inst.apply = (fn) => fn(inst);
|
|
12250
12862
|
return inst;
|
|
12251
12863
|
});
|
|
12252
12864
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12257,21 +12869,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12257
12869
|
inst.format = bag.format ?? null;
|
|
12258
12870
|
inst.minLength = bag.minimum ?? null;
|
|
12259
12871
|
inst.maxLength = bag.maximum ?? null;
|
|
12260
|
-
inst
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12872
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
12873
|
+
regex(...args) {
|
|
12874
|
+
return this.check(_regex(...args));
|
|
12875
|
+
},
|
|
12876
|
+
includes(...args) {
|
|
12877
|
+
return this.check(_includes(...args));
|
|
12878
|
+
},
|
|
12879
|
+
startsWith(...args) {
|
|
12880
|
+
return this.check(_startsWith(...args));
|
|
12881
|
+
},
|
|
12882
|
+
endsWith(...args) {
|
|
12883
|
+
return this.check(_endsWith(...args));
|
|
12884
|
+
},
|
|
12885
|
+
min(...args) {
|
|
12886
|
+
return this.check(_minLength(...args));
|
|
12887
|
+
},
|
|
12888
|
+
max(...args) {
|
|
12889
|
+
return this.check(_maxLength(...args));
|
|
12890
|
+
},
|
|
12891
|
+
length(...args) {
|
|
12892
|
+
return this.check(_length(...args));
|
|
12893
|
+
},
|
|
12894
|
+
nonempty(...args) {
|
|
12895
|
+
return this.check(_minLength(1, ...args));
|
|
12896
|
+
},
|
|
12897
|
+
lowercase(params) {
|
|
12898
|
+
return this.check(_lowercase(params));
|
|
12899
|
+
},
|
|
12900
|
+
uppercase(params) {
|
|
12901
|
+
return this.check(_uppercase(params));
|
|
12902
|
+
},
|
|
12903
|
+
trim() {
|
|
12904
|
+
return this.check(_trim());
|
|
12905
|
+
},
|
|
12906
|
+
normalize(...args) {
|
|
12907
|
+
return this.check(_normalize(...args));
|
|
12908
|
+
},
|
|
12909
|
+
toLowerCase() {
|
|
12910
|
+
return this.check(_toLowerCase());
|
|
12911
|
+
},
|
|
12912
|
+
toUpperCase() {
|
|
12913
|
+
return this.check(_toUpperCase());
|
|
12914
|
+
},
|
|
12915
|
+
slugify() {
|
|
12916
|
+
return this.check(_slugify());
|
|
12917
|
+
}
|
|
12918
|
+
});
|
|
12275
12919
|
});
|
|
12276
12920
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12277
12921
|
$ZodString.init(inst, def);
|
|
@@ -12350,7 +12994,7 @@ function url(params) {
|
|
|
12350
12994
|
}
|
|
12351
12995
|
function httpUrl(params) {
|
|
12352
12996
|
return _url(ZodURL, {
|
|
12353
|
-
protocol:
|
|
12997
|
+
protocol: regexes_exports.httpProtocol,
|
|
12354
12998
|
hostname: regexes_exports.domain,
|
|
12355
12999
|
...util_exports.normalizeParams(params)
|
|
12356
13000
|
});
|
|
@@ -12492,21 +13136,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12492
13136
|
$ZodNumber.init(inst, def);
|
|
12493
13137
|
ZodType.init(inst, def);
|
|
12494
13138
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12495
|
-
inst
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
13139
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13140
|
+
gt(value, params) {
|
|
13141
|
+
return this.check(_gt(value, params));
|
|
13142
|
+
},
|
|
13143
|
+
gte(value, params) {
|
|
13144
|
+
return this.check(_gte(value, params));
|
|
13145
|
+
},
|
|
13146
|
+
min(value, params) {
|
|
13147
|
+
return this.check(_gte(value, params));
|
|
13148
|
+
},
|
|
13149
|
+
lt(value, params) {
|
|
13150
|
+
return this.check(_lt(value, params));
|
|
13151
|
+
},
|
|
13152
|
+
lte(value, params) {
|
|
13153
|
+
return this.check(_lte(value, params));
|
|
13154
|
+
},
|
|
13155
|
+
max(value, params) {
|
|
13156
|
+
return this.check(_lte(value, params));
|
|
13157
|
+
},
|
|
13158
|
+
int(params) {
|
|
13159
|
+
return this.check(int(params));
|
|
13160
|
+
},
|
|
13161
|
+
safe(params) {
|
|
13162
|
+
return this.check(int(params));
|
|
13163
|
+
},
|
|
13164
|
+
positive(params) {
|
|
13165
|
+
return this.check(_gt(0, params));
|
|
13166
|
+
},
|
|
13167
|
+
nonnegative(params) {
|
|
13168
|
+
return this.check(_gte(0, params));
|
|
13169
|
+
},
|
|
13170
|
+
negative(params) {
|
|
13171
|
+
return this.check(_lt(0, params));
|
|
13172
|
+
},
|
|
13173
|
+
nonpositive(params) {
|
|
13174
|
+
return this.check(_lte(0, params));
|
|
13175
|
+
},
|
|
13176
|
+
multipleOf(value, params) {
|
|
13177
|
+
return this.check(_multipleOf(value, params));
|
|
13178
|
+
},
|
|
13179
|
+
step(value, params) {
|
|
13180
|
+
return this.check(_multipleOf(value, params));
|
|
13181
|
+
},
|
|
13182
|
+
finite() {
|
|
13183
|
+
return this;
|
|
13184
|
+
}
|
|
13185
|
+
});
|
|
12510
13186
|
const bag = inst._zod.bag;
|
|
12511
13187
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12512
13188
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -12653,11 +13329,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
12653
13329
|
ZodType.init(inst, def);
|
|
12654
13330
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
12655
13331
|
inst.element = def.element;
|
|
12656
|
-
inst
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
13332
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13333
|
+
min(n, params) {
|
|
13334
|
+
return this.check(_minLength(n, params));
|
|
13335
|
+
},
|
|
13336
|
+
nonempty(params) {
|
|
13337
|
+
return this.check(_minLength(1, params));
|
|
13338
|
+
},
|
|
13339
|
+
max(n, params) {
|
|
13340
|
+
return this.check(_maxLength(n, params));
|
|
13341
|
+
},
|
|
13342
|
+
length(n, params) {
|
|
13343
|
+
return this.check(_length(n, params));
|
|
13344
|
+
},
|
|
13345
|
+
unwrap() {
|
|
13346
|
+
return this.element;
|
|
13347
|
+
}
|
|
13348
|
+
});
|
|
12661
13349
|
});
|
|
12662
13350
|
function array(element, params) {
|
|
12663
13351
|
return _array(ZodArray, element, params);
|
|
@@ -12673,23 +13361,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
12673
13361
|
util_exports.defineLazy(inst, "shape", () => {
|
|
12674
13362
|
return def.shape;
|
|
12675
13363
|
});
|
|
12676
|
-
inst
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
13364
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13365
|
+
keyof() {
|
|
13366
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13367
|
+
},
|
|
13368
|
+
catchall(catchall) {
|
|
13369
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13370
|
+
},
|
|
13371
|
+
passthrough() {
|
|
13372
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13373
|
+
},
|
|
13374
|
+
loose() {
|
|
13375
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13376
|
+
},
|
|
13377
|
+
strict() {
|
|
13378
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13379
|
+
},
|
|
13380
|
+
strip() {
|
|
13381
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13382
|
+
},
|
|
13383
|
+
extend(incoming) {
|
|
13384
|
+
return util_exports.extend(this, incoming);
|
|
13385
|
+
},
|
|
13386
|
+
safeExtend(incoming) {
|
|
13387
|
+
return util_exports.safeExtend(this, incoming);
|
|
13388
|
+
},
|
|
13389
|
+
merge(other) {
|
|
13390
|
+
return util_exports.merge(this, other);
|
|
13391
|
+
},
|
|
13392
|
+
pick(mask) {
|
|
13393
|
+
return util_exports.pick(this, mask);
|
|
13394
|
+
},
|
|
13395
|
+
omit(mask) {
|
|
13396
|
+
return util_exports.omit(this, mask);
|
|
13397
|
+
},
|
|
13398
|
+
partial(...args) {
|
|
13399
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13400
|
+
},
|
|
13401
|
+
required(...args) {
|
|
13402
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13403
|
+
}
|
|
13404
|
+
});
|
|
12693
13405
|
});
|
|
12694
13406
|
function object(shape, params) {
|
|
12695
13407
|
const def = {
|
|
@@ -12794,6 +13506,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
12794
13506
|
inst.valueType = def.valueType;
|
|
12795
13507
|
});
|
|
12796
13508
|
function record(keyType, valueType, params) {
|
|
13509
|
+
if (!valueType || !valueType._zod) {
|
|
13510
|
+
return new ZodRecord({
|
|
13511
|
+
type: "record",
|
|
13512
|
+
keyType: string2(),
|
|
13513
|
+
valueType: keyType,
|
|
13514
|
+
...util_exports.normalizeParams(valueType)
|
|
13515
|
+
});
|
|
13516
|
+
}
|
|
12797
13517
|
return new ZodRecord({
|
|
12798
13518
|
type: "record",
|
|
12799
13519
|
keyType,
|
|
@@ -12965,10 +13685,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
12965
13685
|
if (output instanceof Promise) {
|
|
12966
13686
|
return output.then((output2) => {
|
|
12967
13687
|
payload.value = output2;
|
|
13688
|
+
payload.fallback = true;
|
|
12968
13689
|
return payload;
|
|
12969
13690
|
});
|
|
12970
13691
|
}
|
|
12971
13692
|
payload.value = output;
|
|
13693
|
+
payload.fallback = true;
|
|
12972
13694
|
return payload;
|
|
12973
13695
|
};
|
|
12974
13696
|
});
|
|
@@ -13123,6 +13845,20 @@ function codec(in_, out, params) {
|
|
|
13123
13845
|
reverseTransform: params.encode
|
|
13124
13846
|
});
|
|
13125
13847
|
}
|
|
13848
|
+
function invertCodec(codec2) {
|
|
13849
|
+
const def = codec2._zod.def;
|
|
13850
|
+
return new ZodCodec({
|
|
13851
|
+
type: "pipe",
|
|
13852
|
+
in: def.out,
|
|
13853
|
+
out: def.in,
|
|
13854
|
+
transform: def.reverseTransform,
|
|
13855
|
+
reverseTransform: def.transform
|
|
13856
|
+
});
|
|
13857
|
+
}
|
|
13858
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13859
|
+
ZodPipe.init(inst, def);
|
|
13860
|
+
$ZodPreprocess.init(inst, def);
|
|
13861
|
+
});
|
|
13126
13862
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13127
13863
|
$ZodReadonly.init(inst, def);
|
|
13128
13864
|
ZodType.init(inst, def);
|
|
@@ -13202,8 +13938,8 @@ function custom(fn, _params) {
|
|
|
13202
13938
|
function refine(fn, _params = {}) {
|
|
13203
13939
|
return _refine(ZodCustom, fn, _params);
|
|
13204
13940
|
}
|
|
13205
|
-
function superRefine(fn) {
|
|
13206
|
-
return _superRefine(fn);
|
|
13941
|
+
function superRefine(fn, params) {
|
|
13942
|
+
return _superRefine(fn, params);
|
|
13207
13943
|
}
|
|
13208
13944
|
var describe2 = describe;
|
|
13209
13945
|
var meta2 = meta;
|
|
@@ -13241,10 +13977,14 @@ function json(params) {
|
|
|
13241
13977
|
return jsonSchema;
|
|
13242
13978
|
}
|
|
13243
13979
|
function preprocess(fn, schema) {
|
|
13244
|
-
return
|
|
13980
|
+
return new ZodPreprocess({
|
|
13981
|
+
type: "pipe",
|
|
13982
|
+
in: transform(fn),
|
|
13983
|
+
out: schema
|
|
13984
|
+
});
|
|
13245
13985
|
}
|
|
13246
13986
|
|
|
13247
|
-
// node_modules/.pnpm/zod@4.3
|
|
13987
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13248
13988
|
var ZodIssueCode = {
|
|
13249
13989
|
invalid_type: "invalid_type",
|
|
13250
13990
|
too_big: "too_big",
|
|
@@ -13270,7 +14010,7 @@ var ZodFirstPartyTypeKind;
|
|
|
13270
14010
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13271
14011
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13272
14012
|
|
|
13273
|
-
// node_modules/.pnpm/zod@4.3
|
|
14013
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13274
14014
|
var z = {
|
|
13275
14015
|
...schemas_exports2,
|
|
13276
14016
|
...checks_exports2,
|
|
@@ -13662,12 +14402,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
13662
14402
|
default:
|
|
13663
14403
|
throw new Error(`Unsupported type: ${type}`);
|
|
13664
14404
|
}
|
|
13665
|
-
if (schema.description) {
|
|
13666
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
13667
|
-
}
|
|
13668
|
-
if (schema.default !== void 0) {
|
|
13669
|
-
zodSchema = zodSchema.default(schema.default);
|
|
13670
|
-
}
|
|
13671
14405
|
return zodSchema;
|
|
13672
14406
|
}
|
|
13673
14407
|
function convertSchema(schema, ctx) {
|
|
@@ -13704,6 +14438,9 @@ function convertSchema(schema, ctx) {
|
|
|
13704
14438
|
if (schema.readOnly === true) {
|
|
13705
14439
|
baseSchema = z.readonly(baseSchema);
|
|
13706
14440
|
}
|
|
14441
|
+
if (schema.default !== void 0) {
|
|
14442
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14443
|
+
}
|
|
13707
14444
|
const extraMeta = {};
|
|
13708
14445
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
13709
14446
|
for (const key of coreMetadataKeys) {
|
|
@@ -13725,26 +14462,35 @@ function convertSchema(schema, ctx) {
|
|
|
13725
14462
|
if (Object.keys(extraMeta).length > 0) {
|
|
13726
14463
|
ctx.registry.add(baseSchema, extraMeta);
|
|
13727
14464
|
}
|
|
14465
|
+
if (schema.description) {
|
|
14466
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14467
|
+
}
|
|
13728
14468
|
return baseSchema;
|
|
13729
14469
|
}
|
|
13730
14470
|
function fromJSONSchema(schema, params) {
|
|
13731
14471
|
if (typeof schema === "boolean") {
|
|
13732
14472
|
return schema ? z.any() : z.never();
|
|
13733
14473
|
}
|
|
13734
|
-
|
|
13735
|
-
|
|
14474
|
+
let normalized;
|
|
14475
|
+
try {
|
|
14476
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14477
|
+
} catch {
|
|
14478
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14479
|
+
}
|
|
14480
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14481
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
13736
14482
|
const ctx = {
|
|
13737
14483
|
version: version2,
|
|
13738
14484
|
defs,
|
|
13739
14485
|
refs: /* @__PURE__ */ new Map(),
|
|
13740
14486
|
processing: /* @__PURE__ */ new Set(),
|
|
13741
|
-
rootSchema:
|
|
14487
|
+
rootSchema: normalized,
|
|
13742
14488
|
registry: params?.registry ?? globalRegistry
|
|
13743
14489
|
};
|
|
13744
|
-
return convertSchema(
|
|
14490
|
+
return convertSchema(normalized, ctx);
|
|
13745
14491
|
}
|
|
13746
14492
|
|
|
13747
|
-
// node_modules/.pnpm/zod@4.3
|
|
14493
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
13748
14494
|
var coerce_exports = {};
|
|
13749
14495
|
__export(coerce_exports, {
|
|
13750
14496
|
bigint: () => bigint3,
|
|
@@ -13769,7 +14515,7 @@ function date4(params) {
|
|
|
13769
14515
|
return _coercedDate(ZodDate, params);
|
|
13770
14516
|
}
|
|
13771
14517
|
|
|
13772
|
-
// node_modules/.pnpm/zod@4.3
|
|
14518
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
13773
14519
|
config(en_default());
|
|
13774
14520
|
|
|
13775
14521
|
// src/core/payment-info.ts
|
|
@@ -13809,7 +14555,6 @@ var LegacyPaymentInfoSchema = external_exports.object({
|
|
|
13809
14555
|
minPrice: external_exports.string().optional(),
|
|
13810
14556
|
maxPrice: external_exports.string().optional(),
|
|
13811
14557
|
protocols: external_exports.array(external_exports.string()).optional(),
|
|
13812
|
-
// RFC §4.4 spec fields
|
|
13813
14558
|
intent: external_exports.string().optional(),
|
|
13814
14559
|
method: external_exports.string().optional(),
|
|
13815
14560
|
amount: external_exports.union([external_exports.string(), external_exports.null()]).optional(),
|
|
@@ -13830,9 +14575,8 @@ var OpenApiOperationSchema = external_exports.object({
|
|
|
13830
14575
|
description: external_exports.string().optional(),
|
|
13831
14576
|
tags: external_exports.array(external_exports.string()).optional(),
|
|
13832
14577
|
security: external_exports.array(external_exports.record(external_exports.string(), external_exports.array(external_exports.string()))).optional(),
|
|
13833
|
-
// `in` / `name` are spec-required
|
|
13834
|
-
//
|
|
13835
|
-
// non-conformant OpenAPI documents in the wild.
|
|
14578
|
+
// `in` / `name` are spec-required but kept optional so a single malformed
|
|
14579
|
+
// parameter cannot abort parsing of an otherwise-valid spec.
|
|
13836
14580
|
parameters: external_exports.array(
|
|
13837
14581
|
external_exports.object({
|
|
13838
14582
|
in: external_exports.string().optional(),
|
|
@@ -13846,7 +14590,6 @@ var OpenApiOperationSchema = external_exports.object({
|
|
|
13846
14590
|
content: external_exports.record(external_exports.string(), external_exports.object({ schema: external_exports.unknown().optional() }))
|
|
13847
14591
|
}).optional(),
|
|
13848
14592
|
responses: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
13849
|
-
// Permissive: vendor extension shape is validated at runtime, never at parse time.
|
|
13850
14593
|
"x-payment-info": external_exports.unknown().optional()
|
|
13851
14594
|
});
|
|
13852
14595
|
var OpenApiPathItemSchema = external_exports.object({
|
|
@@ -13860,7 +14603,6 @@ var OpenApiPathItemSchema = external_exports.object({
|
|
|
13860
14603
|
trace: OpenApiOperationSchema.optional()
|
|
13861
14604
|
});
|
|
13862
14605
|
var OpenApiDocSchema = external_exports.object({
|
|
13863
|
-
// TODO(zdql): We should inherit a canonical OpenAPI schema and then extend with our types.
|
|
13864
14606
|
openapi: external_exports.string(),
|
|
13865
14607
|
info: external_exports.object({
|
|
13866
14608
|
title: external_exports.string(),
|
|
@@ -13876,31 +14618,11 @@ var OpenApiDocSchema = external_exports.object({
|
|
|
13876
14618
|
"x-discovery": external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
13877
14619
|
paths: external_exports.record(external_exports.string(), OpenApiPathItemSchema)
|
|
13878
14620
|
});
|
|
13879
|
-
var WellKnownDocSchema = external_exports.object({
|
|
13880
|
-
version: external_exports.number().optional(),
|
|
13881
|
-
resources: external_exports.array(external_exports.string()).default([]),
|
|
13882
|
-
mppResources: external_exports.array(external_exports.string()).optional(),
|
|
13883
|
-
description: external_exports.string().optional(),
|
|
13884
|
-
ownershipProofs: external_exports.array(external_exports.string()).optional(),
|
|
13885
|
-
instructions: external_exports.string().optional()
|
|
13886
|
-
});
|
|
13887
|
-
var WellKnownParsedSchema = external_exports.object({
|
|
13888
|
-
routes: external_exports.array(
|
|
13889
|
-
external_exports.object({
|
|
13890
|
-
path: external_exports.string(),
|
|
13891
|
-
method: external_exports.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"]),
|
|
13892
|
-
price: external_exports.string().optional()
|
|
13893
|
-
})
|
|
13894
|
-
),
|
|
13895
|
-
instructions: external_exports.string().optional()
|
|
13896
|
-
});
|
|
13897
14621
|
export {
|
|
13898
14622
|
LegacyPaymentInfoSchema,
|
|
13899
14623
|
OpenApiDocSchema,
|
|
13900
14624
|
OpenApiOperationSchema,
|
|
13901
14625
|
OpenApiPathItemSchema,
|
|
13902
14626
|
OpenApiPaymentInfoSchema,
|
|
13903
|
-
StructuredPaymentInfoSchema
|
|
13904
|
-
WellKnownDocSchema,
|
|
13905
|
-
WellKnownParsedSchema
|
|
14627
|
+
StructuredPaymentInfoSchema
|
|
13906
14628
|
};
|