@mastra/slack 1.3.0-alpha.0 → 1.3.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/CHANGELOG.md +26 -0
- package/dist/index.cjs +1263 -517
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1263 -517
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -378,7 +378,7 @@ function buildManifest(options) {
|
|
|
378
378
|
return manifest;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
381
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
382
382
|
var external_exports = {};
|
|
383
383
|
__export(external_exports, {
|
|
384
384
|
$brand: () => $brand,
|
|
@@ -440,6 +440,7 @@ __export(external_exports, {
|
|
|
440
440
|
ZodOptional: () => ZodOptional,
|
|
441
441
|
ZodPipe: () => ZodPipe,
|
|
442
442
|
ZodPrefault: () => ZodPrefault,
|
|
443
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
443
444
|
ZodPromise: () => ZodPromise,
|
|
444
445
|
ZodReadonly: () => ZodReadonly,
|
|
445
446
|
ZodRealError: () => ZodRealError,
|
|
@@ -518,6 +519,7 @@ __export(external_exports, {
|
|
|
518
519
|
int32: () => int32,
|
|
519
520
|
int64: () => int64,
|
|
520
521
|
intersection: () => intersection,
|
|
522
|
+
invertCodec: () => invertCodec,
|
|
521
523
|
ipv4: () => ipv42,
|
|
522
524
|
ipv6: () => ipv62,
|
|
523
525
|
iso: () => iso_exports,
|
|
@@ -619,7 +621,7 @@ __export(external_exports, {
|
|
|
619
621
|
xor: () => xor
|
|
620
622
|
});
|
|
621
623
|
|
|
622
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
624
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
623
625
|
var core_exports2 = {};
|
|
624
626
|
__export(core_exports2, {
|
|
625
627
|
$ZodAny: () => $ZodAny,
|
|
@@ -699,6 +701,7 @@ __export(core_exports2, {
|
|
|
699
701
|
$ZodOptional: () => $ZodOptional,
|
|
700
702
|
$ZodPipe: () => $ZodPipe,
|
|
701
703
|
$ZodPrefault: () => $ZodPrefault,
|
|
704
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
702
705
|
$ZodPromise: () => $ZodPromise,
|
|
703
706
|
$ZodReadonly: () => $ZodReadonly,
|
|
704
707
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -897,8 +900,9 @@ __export(core_exports2, {
|
|
|
897
900
|
version: () => version
|
|
898
901
|
});
|
|
899
902
|
|
|
900
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
901
|
-
var
|
|
903
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
904
|
+
var _a;
|
|
905
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
902
906
|
status: "aborted"
|
|
903
907
|
});
|
|
904
908
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -933,10 +937,10 @@ function $constructor(name, initializer3, params) {
|
|
|
933
937
|
}
|
|
934
938
|
Object.defineProperty(Definition, "name", { value: name });
|
|
935
939
|
function _(def) {
|
|
936
|
-
var
|
|
940
|
+
var _a3;
|
|
937
941
|
const inst = params?.Parent ? new Definition() : this;
|
|
938
942
|
init(inst, def);
|
|
939
|
-
(
|
|
943
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
940
944
|
for (const fn of inst._zod.deferred) {
|
|
941
945
|
fn();
|
|
942
946
|
}
|
|
@@ -965,14 +969,15 @@ var $ZodEncodeError = class extends Error {
|
|
|
965
969
|
this.name = "ZodEncodeError";
|
|
966
970
|
}
|
|
967
971
|
};
|
|
968
|
-
|
|
972
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
973
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
969
974
|
function config(newConfig) {
|
|
970
975
|
if (newConfig)
|
|
971
976
|
Object.assign(globalConfig, newConfig);
|
|
972
977
|
return globalConfig;
|
|
973
978
|
}
|
|
974
979
|
|
|
975
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
980
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
976
981
|
var util_exports = {};
|
|
977
982
|
__export(util_exports, {
|
|
978
983
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -998,6 +1003,7 @@ __export(util_exports, {
|
|
|
998
1003
|
defineLazy: () => defineLazy,
|
|
999
1004
|
esc: () => esc,
|
|
1000
1005
|
escapeRegex: () => escapeRegex,
|
|
1006
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
1001
1007
|
extend: () => extend,
|
|
1002
1008
|
finalizeIssue: () => finalizeIssue,
|
|
1003
1009
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -1086,19 +1092,12 @@ function cleanRegex(source) {
|
|
|
1086
1092
|
return source.slice(start, end);
|
|
1087
1093
|
}
|
|
1088
1094
|
function floatSafeRemainder(val, step) {
|
|
1089
|
-
const
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
if (
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1099
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1100
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1101
|
-
return valInt % stepInt / 10 ** decCount;
|
|
1095
|
+
const ratio = val / step;
|
|
1096
|
+
const roundedRatio = Math.round(ratio);
|
|
1097
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
1098
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
1099
|
+
return 0;
|
|
1100
|
+
return ratio - roundedRatio;
|
|
1102
1101
|
}
|
|
1103
1102
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
1104
1103
|
function defineLazy(object2, key, getter) {
|
|
@@ -1180,7 +1179,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
1180
1179
|
function isObject(data) {
|
|
1181
1180
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
1182
1181
|
}
|
|
1183
|
-
var allowsEval = cached(() => {
|
|
1182
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
1183
|
+
if (globalConfig.jitless) {
|
|
1184
|
+
return false;
|
|
1185
|
+
}
|
|
1184
1186
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
1185
1187
|
return false;
|
|
1186
1188
|
}
|
|
@@ -1213,6 +1215,10 @@ function shallowClone(o) {
|
|
|
1213
1215
|
return { ...o };
|
|
1214
1216
|
if (Array.isArray(o))
|
|
1215
1217
|
return [...o];
|
|
1218
|
+
if (o instanceof Map)
|
|
1219
|
+
return new Map(o);
|
|
1220
|
+
if (o instanceof Set)
|
|
1221
|
+
return new Set(o);
|
|
1216
1222
|
return o;
|
|
1217
1223
|
}
|
|
1218
1224
|
function numKeys(data) {
|
|
@@ -1269,7 +1275,14 @@ var getParsedType = (data) => {
|
|
|
1269
1275
|
}
|
|
1270
1276
|
};
|
|
1271
1277
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
1272
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1278
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1279
|
+
"string",
|
|
1280
|
+
"number",
|
|
1281
|
+
"bigint",
|
|
1282
|
+
"boolean",
|
|
1283
|
+
"symbol",
|
|
1284
|
+
"undefined"
|
|
1285
|
+
]);
|
|
1273
1286
|
function escapeRegex(str) {
|
|
1274
1287
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1275
1288
|
}
|
|
@@ -1438,6 +1451,9 @@ function safeExtend(schema, shape) {
|
|
|
1438
1451
|
return clone(schema, def);
|
|
1439
1452
|
}
|
|
1440
1453
|
function merge(a, b) {
|
|
1454
|
+
if (a._zod.def.checks?.length) {
|
|
1455
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1456
|
+
}
|
|
1441
1457
|
const def = mergeDefs(a._zod.def, {
|
|
1442
1458
|
get shape() {
|
|
1443
1459
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1447,8 +1463,7 @@ function merge(a, b) {
|
|
|
1447
1463
|
get catchall() {
|
|
1448
1464
|
return b._zod.def.catchall;
|
|
1449
1465
|
},
|
|
1450
|
-
checks: []
|
|
1451
|
-
// delete existing checks
|
|
1466
|
+
checks: b._zod.def.checks ?? []
|
|
1452
1467
|
});
|
|
1453
1468
|
return clone(a, def);
|
|
1454
1469
|
}
|
|
@@ -1531,10 +1546,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1531
1546
|
}
|
|
1532
1547
|
return false;
|
|
1533
1548
|
}
|
|
1549
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1550
|
+
if (x.aborted === true)
|
|
1551
|
+
return true;
|
|
1552
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1553
|
+
if (x.issues[i]?.continue === false) {
|
|
1554
|
+
return true;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
return false;
|
|
1558
|
+
}
|
|
1534
1559
|
function prefixIssues(path, issues) {
|
|
1535
1560
|
return issues.map((iss) => {
|
|
1536
|
-
var
|
|
1537
|
-
(
|
|
1561
|
+
var _a3;
|
|
1562
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1538
1563
|
iss.path.unshift(path);
|
|
1539
1564
|
return iss;
|
|
1540
1565
|
});
|
|
@@ -1543,17 +1568,14 @@ function unwrapMessage(message) {
|
|
|
1543
1568
|
return typeof message === "string" ? message : message?.message;
|
|
1544
1569
|
}
|
|
1545
1570
|
function finalizeIssue(iss, ctx, config2) {
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1571
|
+
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";
|
|
1572
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1573
|
+
rest.path ?? (rest.path = []);
|
|
1574
|
+
rest.message = message;
|
|
1575
|
+
if (ctx?.reportInput) {
|
|
1576
|
+
rest.input = _input;
|
|
1550
1577
|
}
|
|
1551
|
-
|
|
1552
|
-
delete full.continue;
|
|
1553
|
-
if (!ctx?.reportInput) {
|
|
1554
|
-
delete full.input;
|
|
1555
|
-
}
|
|
1556
|
-
return full;
|
|
1578
|
+
return rest;
|
|
1557
1579
|
}
|
|
1558
1580
|
function getSizableOrigin(input) {
|
|
1559
1581
|
if (input instanceof Set)
|
|
@@ -1651,7 +1673,7 @@ var Class = class {
|
|
|
1651
1673
|
}
|
|
1652
1674
|
};
|
|
1653
1675
|
|
|
1654
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1676
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1655
1677
|
var initializer = (inst, def) => {
|
|
1656
1678
|
inst.name = "$ZodError";
|
|
1657
1679
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1670,10 +1692,10 @@ var initializer = (inst, def) => {
|
|
|
1670
1692
|
};
|
|
1671
1693
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1672
1694
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1673
|
-
function flattenError(
|
|
1695
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1674
1696
|
const fieldErrors = {};
|
|
1675
1697
|
const formErrors = [];
|
|
1676
|
-
for (const sub of
|
|
1698
|
+
for (const sub of error51.issues) {
|
|
1677
1699
|
if (sub.path.length > 0) {
|
|
1678
1700
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1679
1701
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1683,50 +1705,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1683
1705
|
}
|
|
1684
1706
|
return { formErrors, fieldErrors };
|
|
1685
1707
|
}
|
|
1686
|
-
function formatError(
|
|
1708
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1687
1709
|
const fieldErrors = { _errors: [] };
|
|
1688
|
-
const processError = (
|
|
1689
|
-
for (const issue2 of
|
|
1710
|
+
const processError = (error52, path = []) => {
|
|
1711
|
+
for (const issue2 of error52.issues) {
|
|
1690
1712
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1691
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1713
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1692
1714
|
} else if (issue2.code === "invalid_key") {
|
|
1693
|
-
processError({ issues: issue2.issues });
|
|
1715
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1694
1716
|
} else if (issue2.code === "invalid_element") {
|
|
1695
|
-
processError({ issues: issue2.issues });
|
|
1696
|
-
} else if (issue2.path.length === 0) {
|
|
1697
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1717
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1698
1718
|
} else {
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1719
|
+
const fullpath = [...path, ...issue2.path];
|
|
1720
|
+
if (fullpath.length === 0) {
|
|
1721
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1722
|
+
} else {
|
|
1723
|
+
let curr = fieldErrors;
|
|
1724
|
+
let i = 0;
|
|
1725
|
+
while (i < fullpath.length) {
|
|
1726
|
+
const el = fullpath[i];
|
|
1727
|
+
const terminal = i === fullpath.length - 1;
|
|
1728
|
+
if (!terminal) {
|
|
1729
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1730
|
+
} else {
|
|
1731
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1732
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1733
|
+
}
|
|
1734
|
+
curr = curr[el];
|
|
1735
|
+
i++;
|
|
1709
1736
|
}
|
|
1710
|
-
curr = curr[el];
|
|
1711
|
-
i++;
|
|
1712
1737
|
}
|
|
1713
1738
|
}
|
|
1714
1739
|
}
|
|
1715
1740
|
};
|
|
1716
|
-
processError(
|
|
1741
|
+
processError(error51);
|
|
1717
1742
|
return fieldErrors;
|
|
1718
1743
|
}
|
|
1719
|
-
function treeifyError(
|
|
1744
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1720
1745
|
const result = { errors: [] };
|
|
1721
|
-
const processError = (
|
|
1722
|
-
var
|
|
1723
|
-
for (const issue2 of
|
|
1746
|
+
const processError = (error52, path = []) => {
|
|
1747
|
+
var _a3, _b;
|
|
1748
|
+
for (const issue2 of error52.issues) {
|
|
1724
1749
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1725
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1750
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1726
1751
|
} else if (issue2.code === "invalid_key") {
|
|
1727
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1752
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1728
1753
|
} else if (issue2.code === "invalid_element") {
|
|
1729
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1754
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1730
1755
|
} else {
|
|
1731
1756
|
const fullpath = [...path, ...issue2.path];
|
|
1732
1757
|
if (fullpath.length === 0) {
|
|
@@ -1740,7 +1765,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1740
1765
|
const terminal = i === fullpath.length - 1;
|
|
1741
1766
|
if (typeof el === "string") {
|
|
1742
1767
|
curr.properties ?? (curr.properties = {});
|
|
1743
|
-
(
|
|
1768
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1744
1769
|
curr = curr.properties[el];
|
|
1745
1770
|
} else {
|
|
1746
1771
|
curr.items ?? (curr.items = []);
|
|
@@ -1755,7 +1780,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1755
1780
|
}
|
|
1756
1781
|
}
|
|
1757
1782
|
};
|
|
1758
|
-
processError(
|
|
1783
|
+
processError(error51);
|
|
1759
1784
|
return result;
|
|
1760
1785
|
}
|
|
1761
1786
|
function toDotPath(_path) {
|
|
@@ -1776,9 +1801,9 @@ function toDotPath(_path) {
|
|
|
1776
1801
|
}
|
|
1777
1802
|
return segs.join("");
|
|
1778
1803
|
}
|
|
1779
|
-
function prettifyError(
|
|
1804
|
+
function prettifyError(error51) {
|
|
1780
1805
|
const lines = [];
|
|
1781
|
-
const issues = [...
|
|
1806
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1782
1807
|
for (const issue2 of issues) {
|
|
1783
1808
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1784
1809
|
if (issue2.path?.length)
|
|
@@ -1787,9 +1812,9 @@ function prettifyError(error48) {
|
|
|
1787
1812
|
return lines.join("\n");
|
|
1788
1813
|
}
|
|
1789
1814
|
|
|
1790
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1815
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1791
1816
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1792
|
-
const ctx = _ctx ?
|
|
1817
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1793
1818
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1794
1819
|
if (result instanceof Promise) {
|
|
1795
1820
|
throw new $ZodAsyncError();
|
|
@@ -1803,7 +1828,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1803
1828
|
};
|
|
1804
1829
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1805
1830
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1806
|
-
const ctx = _ctx ?
|
|
1831
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1807
1832
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1808
1833
|
if (result instanceof Promise)
|
|
1809
1834
|
result = await result;
|
|
@@ -1828,7 +1853,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1828
1853
|
};
|
|
1829
1854
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1830
1855
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1831
|
-
const ctx = _ctx ?
|
|
1856
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1832
1857
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1833
1858
|
if (result instanceof Promise)
|
|
1834
1859
|
result = await result;
|
|
@@ -1839,7 +1864,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1839
1864
|
};
|
|
1840
1865
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1841
1866
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1842
|
-
const ctx = _ctx ?
|
|
1867
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1843
1868
|
return _parse(_Err)(schema, value, ctx);
|
|
1844
1869
|
};
|
|
1845
1870
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1848,7 +1873,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1848
1873
|
};
|
|
1849
1874
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1850
1875
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1851
|
-
const ctx = _ctx ?
|
|
1876
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1852
1877
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1853
1878
|
};
|
|
1854
1879
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1857,7 +1882,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1857
1882
|
};
|
|
1858
1883
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1859
1884
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1860
|
-
const ctx = _ctx ?
|
|
1885
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1861
1886
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1862
1887
|
};
|
|
1863
1888
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1866,7 +1891,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1866
1891
|
};
|
|
1867
1892
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1868
1893
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1869
|
-
const ctx = _ctx ?
|
|
1894
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1870
1895
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1871
1896
|
};
|
|
1872
1897
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1875,7 +1900,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1875
1900
|
};
|
|
1876
1901
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1877
1902
|
|
|
1878
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1903
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1879
1904
|
var regexes_exports = {};
|
|
1880
1905
|
__export(regexes_exports, {
|
|
1881
1906
|
base64: () => base64,
|
|
@@ -1899,6 +1924,7 @@ __export(regexes_exports, {
|
|
|
1899
1924
|
hex: () => hex,
|
|
1900
1925
|
hostname: () => hostname,
|
|
1901
1926
|
html5Email: () => html5Email,
|
|
1927
|
+
httpProtocol: () => httpProtocol,
|
|
1902
1928
|
idnEmail: () => idnEmail,
|
|
1903
1929
|
integer: () => integer,
|
|
1904
1930
|
ipv4: () => ipv4,
|
|
@@ -1937,7 +1963,7 @@ __export(regexes_exports, {
|
|
|
1937
1963
|
uuid7: () => uuid7,
|
|
1938
1964
|
xid: () => xid
|
|
1939
1965
|
});
|
|
1940
|
-
var cuid = /^[cC][
|
|
1966
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1941
1967
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1942
1968
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1943
1969
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1976,6 +2002,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1976
2002
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1977
2003
|
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])?)*\.?$/;
|
|
1978
2004
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
2005
|
+
var httpProtocol = /^https?$/;
|
|
1979
2006
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1980
2007
|
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])))`;
|
|
1981
2008
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -2032,12 +2059,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2032
2059
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2033
2060
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2034
2061
|
|
|
2035
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2062
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
2036
2063
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2037
|
-
var
|
|
2064
|
+
var _a3;
|
|
2038
2065
|
inst._zod ?? (inst._zod = {});
|
|
2039
2066
|
inst._zod.def = def;
|
|
2040
|
-
(
|
|
2067
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
2041
2068
|
});
|
|
2042
2069
|
var numericOriginMap = {
|
|
2043
2070
|
number: "number",
|
|
@@ -2103,8 +2130,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2103
2130
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2104
2131
|
$ZodCheck.init(inst, def);
|
|
2105
2132
|
inst._zod.onattach.push((inst2) => {
|
|
2106
|
-
var
|
|
2107
|
-
(
|
|
2133
|
+
var _a3;
|
|
2134
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
2108
2135
|
});
|
|
2109
2136
|
inst._zod.check = (payload) => {
|
|
2110
2137
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -2237,9 +2264,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
2237
2264
|
};
|
|
2238
2265
|
});
|
|
2239
2266
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
2240
|
-
var
|
|
2267
|
+
var _a3;
|
|
2241
2268
|
$ZodCheck.init(inst, def);
|
|
2242
|
-
(
|
|
2269
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2243
2270
|
const val = payload.value;
|
|
2244
2271
|
return !nullish(val) && val.size !== void 0;
|
|
2245
2272
|
});
|
|
@@ -2265,9 +2292,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
2265
2292
|
};
|
|
2266
2293
|
});
|
|
2267
2294
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
2268
|
-
var
|
|
2295
|
+
var _a3;
|
|
2269
2296
|
$ZodCheck.init(inst, def);
|
|
2270
|
-
(
|
|
2297
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2271
2298
|
const val = payload.value;
|
|
2272
2299
|
return !nullish(val) && val.size !== void 0;
|
|
2273
2300
|
});
|
|
@@ -2293,9 +2320,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
2293
2320
|
};
|
|
2294
2321
|
});
|
|
2295
2322
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
2296
|
-
var
|
|
2323
|
+
var _a3;
|
|
2297
2324
|
$ZodCheck.init(inst, def);
|
|
2298
|
-
(
|
|
2325
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2299
2326
|
const val = payload.value;
|
|
2300
2327
|
return !nullish(val) && val.size !== void 0;
|
|
2301
2328
|
});
|
|
@@ -2323,9 +2350,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
2323
2350
|
};
|
|
2324
2351
|
});
|
|
2325
2352
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2326
|
-
var
|
|
2353
|
+
var _a3;
|
|
2327
2354
|
$ZodCheck.init(inst, def);
|
|
2328
|
-
(
|
|
2355
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2329
2356
|
const val = payload.value;
|
|
2330
2357
|
return !nullish(val) && val.length !== void 0;
|
|
2331
2358
|
});
|
|
@@ -2352,9 +2379,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2352
2379
|
};
|
|
2353
2380
|
});
|
|
2354
2381
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2355
|
-
var
|
|
2382
|
+
var _a3;
|
|
2356
2383
|
$ZodCheck.init(inst, def);
|
|
2357
|
-
(
|
|
2384
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2358
2385
|
const val = payload.value;
|
|
2359
2386
|
return !nullish(val) && val.length !== void 0;
|
|
2360
2387
|
});
|
|
@@ -2381,9 +2408,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2381
2408
|
};
|
|
2382
2409
|
});
|
|
2383
2410
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2384
|
-
var
|
|
2411
|
+
var _a3;
|
|
2385
2412
|
$ZodCheck.init(inst, def);
|
|
2386
|
-
(
|
|
2413
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2387
2414
|
const val = payload.value;
|
|
2388
2415
|
return !nullish(val) && val.length !== void 0;
|
|
2389
2416
|
});
|
|
@@ -2412,7 +2439,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2412
2439
|
};
|
|
2413
2440
|
});
|
|
2414
2441
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2415
|
-
var
|
|
2442
|
+
var _a3, _b;
|
|
2416
2443
|
$ZodCheck.init(inst, def);
|
|
2417
2444
|
inst._zod.onattach.push((inst2) => {
|
|
2418
2445
|
const bag = inst2._zod.bag;
|
|
@@ -2423,7 +2450,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2423
2450
|
}
|
|
2424
2451
|
});
|
|
2425
2452
|
if (def.pattern)
|
|
2426
|
-
(
|
|
2453
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2427
2454
|
def.pattern.lastIndex = 0;
|
|
2428
2455
|
if (def.pattern.test(payload.value))
|
|
2429
2456
|
return;
|
|
@@ -2580,7 +2607,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2580
2607
|
};
|
|
2581
2608
|
});
|
|
2582
2609
|
|
|
2583
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2610
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2584
2611
|
var Doc = class {
|
|
2585
2612
|
constructor(args = []) {
|
|
2586
2613
|
this.content = [];
|
|
@@ -2616,16 +2643,16 @@ var Doc = class {
|
|
|
2616
2643
|
}
|
|
2617
2644
|
};
|
|
2618
2645
|
|
|
2619
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2646
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2620
2647
|
var version = {
|
|
2621
2648
|
major: 4,
|
|
2622
|
-
minor:
|
|
2623
|
-
patch:
|
|
2649
|
+
minor: 4,
|
|
2650
|
+
patch: 3
|
|
2624
2651
|
};
|
|
2625
2652
|
|
|
2626
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2653
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2627
2654
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2628
|
-
var
|
|
2655
|
+
var _a3;
|
|
2629
2656
|
inst ?? (inst = {});
|
|
2630
2657
|
inst._zod.def = def;
|
|
2631
2658
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2640,7 +2667,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2640
2667
|
}
|
|
2641
2668
|
}
|
|
2642
2669
|
if (checks.length === 0) {
|
|
2643
|
-
(
|
|
2670
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2644
2671
|
inst._zod.deferred?.push(() => {
|
|
2645
2672
|
inst._zod.run = inst._zod.parse;
|
|
2646
2673
|
});
|
|
@@ -2650,6 +2677,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2650
2677
|
let asyncResult;
|
|
2651
2678
|
for (const ch of checks2) {
|
|
2652
2679
|
if (ch._zod.def.when) {
|
|
2680
|
+
if (explicitlyAborted(payload))
|
|
2681
|
+
continue;
|
|
2653
2682
|
const shouldRun = ch._zod.def.when(payload);
|
|
2654
2683
|
if (!shouldRun)
|
|
2655
2684
|
continue;
|
|
@@ -2790,6 +2819,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2790
2819
|
inst._zod.check = (payload) => {
|
|
2791
2820
|
try {
|
|
2792
2821
|
const trimmed = payload.value.trim();
|
|
2822
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2823
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2824
|
+
payload.issues.push({
|
|
2825
|
+
code: "invalid_format",
|
|
2826
|
+
format: "url",
|
|
2827
|
+
note: "Invalid URL format",
|
|
2828
|
+
input: payload.value,
|
|
2829
|
+
inst,
|
|
2830
|
+
continue: !def.abort
|
|
2831
|
+
});
|
|
2832
|
+
return;
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2793
2835
|
const url2 = new URL(trimmed);
|
|
2794
2836
|
if (def.hostname) {
|
|
2795
2837
|
def.hostname.lastIndex = 0;
|
|
@@ -2943,6 +2985,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2943
2985
|
function isValidBase64(data) {
|
|
2944
2986
|
if (data === "")
|
|
2945
2987
|
return true;
|
|
2988
|
+
if (/\s/.test(data))
|
|
2989
|
+
return false;
|
|
2946
2990
|
if (data.length % 4 !== 0)
|
|
2947
2991
|
return false;
|
|
2948
2992
|
try {
|
|
@@ -3135,8 +3179,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
3135
3179
|
$ZodType.init(inst, def);
|
|
3136
3180
|
inst._zod.pattern = _undefined;
|
|
3137
3181
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
3138
|
-
inst._zod.optin = "optional";
|
|
3139
|
-
inst._zod.optout = "optional";
|
|
3140
3182
|
inst._zod.parse = (payload, _ctx) => {
|
|
3141
3183
|
const input = payload.value;
|
|
3142
3184
|
if (typeof input === "undefined")
|
|
@@ -3265,15 +3307,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3265
3307
|
return payload;
|
|
3266
3308
|
};
|
|
3267
3309
|
});
|
|
3268
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3310
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
3311
|
+
const isPresent = key in input;
|
|
3269
3312
|
if (result.issues.length) {
|
|
3270
|
-
if (isOptionalOut && !
|
|
3313
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
3271
3314
|
return;
|
|
3272
3315
|
}
|
|
3273
3316
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3274
3317
|
}
|
|
3318
|
+
if (!isPresent && !isOptionalIn) {
|
|
3319
|
+
if (!result.issues.length) {
|
|
3320
|
+
final.issues.push({
|
|
3321
|
+
code: "invalid_type",
|
|
3322
|
+
expected: "nonoptional",
|
|
3323
|
+
input: void 0,
|
|
3324
|
+
path: [key]
|
|
3325
|
+
});
|
|
3326
|
+
}
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3275
3329
|
if (result.value === void 0) {
|
|
3276
|
-
if (
|
|
3330
|
+
if (isPresent) {
|
|
3277
3331
|
final.value[key] = void 0;
|
|
3278
3332
|
}
|
|
3279
3333
|
} else {
|
|
@@ -3301,8 +3355,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3301
3355
|
const keySet = def.keySet;
|
|
3302
3356
|
const _catchall = def.catchall._zod;
|
|
3303
3357
|
const t = _catchall.def.type;
|
|
3358
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
3304
3359
|
const isOptionalOut = _catchall.optout === "optional";
|
|
3305
3360
|
for (const key in input) {
|
|
3361
|
+
if (key === "__proto__")
|
|
3362
|
+
continue;
|
|
3306
3363
|
if (keySet.has(key))
|
|
3307
3364
|
continue;
|
|
3308
3365
|
if (t === "never") {
|
|
@@ -3311,9 +3368,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3311
3368
|
}
|
|
3312
3369
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3313
3370
|
if (r instanceof Promise) {
|
|
3314
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3371
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3315
3372
|
} else {
|
|
3316
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3373
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3317
3374
|
}
|
|
3318
3375
|
}
|
|
3319
3376
|
if (unrecognized.length) {
|
|
@@ -3379,12 +3436,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3379
3436
|
const shape = value.shape;
|
|
3380
3437
|
for (const key of value.keys) {
|
|
3381
3438
|
const el = shape[key];
|
|
3439
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3382
3440
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3383
3441
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3384
3442
|
if (r instanceof Promise) {
|
|
3385
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3443
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3386
3444
|
} else {
|
|
3387
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3445
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3388
3446
|
}
|
|
3389
3447
|
}
|
|
3390
3448
|
if (!catchall) {
|
|
@@ -3415,9 +3473,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3415
3473
|
const id = ids[key];
|
|
3416
3474
|
const k = esc(key);
|
|
3417
3475
|
const schema = shape[key];
|
|
3476
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3418
3477
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3419
3478
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3420
|
-
if (isOptionalOut) {
|
|
3479
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3421
3480
|
doc.write(`
|
|
3422
3481
|
if (${id}.issues.length) {
|
|
3423
3482
|
if (${k} in input) {
|
|
@@ -3436,6 +3495,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3436
3495
|
newResult[${k}] = ${id}.value;
|
|
3437
3496
|
}
|
|
3438
3497
|
|
|
3498
|
+
`);
|
|
3499
|
+
} else if (!isOptionalIn) {
|
|
3500
|
+
doc.write(`
|
|
3501
|
+
const ${id}_present = ${k} in input;
|
|
3502
|
+
if (${id}.issues.length) {
|
|
3503
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3504
|
+
...iss,
|
|
3505
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3506
|
+
})));
|
|
3507
|
+
}
|
|
3508
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3509
|
+
payload.issues.push({
|
|
3510
|
+
code: "invalid_type",
|
|
3511
|
+
expected: "nonoptional",
|
|
3512
|
+
input: undefined,
|
|
3513
|
+
path: [${k}]
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
if (${id}_present) {
|
|
3518
|
+
if (${id}.value === undefined) {
|
|
3519
|
+
newResult[${k}] = undefined;
|
|
3520
|
+
} else {
|
|
3521
|
+
newResult[${k}] = ${id}.value;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3439
3525
|
`);
|
|
3440
3526
|
} else {
|
|
3441
3527
|
doc.write(`
|
|
@@ -3529,10 +3615,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3529
3615
|
}
|
|
3530
3616
|
return void 0;
|
|
3531
3617
|
});
|
|
3532
|
-
const
|
|
3533
|
-
const first = def.options[0]._zod.run;
|
|
3618
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3534
3619
|
inst._zod.parse = (payload, ctx) => {
|
|
3535
|
-
if (
|
|
3620
|
+
if (first) {
|
|
3536
3621
|
return first(payload, ctx);
|
|
3537
3622
|
}
|
|
3538
3623
|
let async = false;
|
|
@@ -3585,10 +3670,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3585
3670
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3586
3671
|
$ZodUnion.init(inst, def);
|
|
3587
3672
|
def.inclusive = false;
|
|
3588
|
-
const
|
|
3589
|
-
const first = def.options[0]._zod.run;
|
|
3673
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3590
3674
|
inst._zod.parse = (payload, ctx) => {
|
|
3591
|
-
if (
|
|
3675
|
+
if (first) {
|
|
3592
3676
|
return first(payload, ctx);
|
|
3593
3677
|
}
|
|
3594
3678
|
let async = false;
|
|
@@ -3663,7 +3747,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3663
3747
|
if (opt) {
|
|
3664
3748
|
return opt._zod.run(payload, ctx);
|
|
3665
3749
|
}
|
|
3666
|
-
if (def.unionFallback) {
|
|
3750
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3667
3751
|
return _super(payload, ctx);
|
|
3668
3752
|
}
|
|
3669
3753
|
payload.issues.push({
|
|
@@ -3671,6 +3755,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3671
3755
|
errors: [],
|
|
3672
3756
|
note: "No matching discriminator",
|
|
3673
3757
|
discriminator: def.discriminator,
|
|
3758
|
+
options: Array.from(disc.value.keys()),
|
|
3674
3759
|
input,
|
|
3675
3760
|
path: [def.discriminator],
|
|
3676
3761
|
inst
|
|
@@ -3792,64 +3877,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3792
3877
|
}
|
|
3793
3878
|
payload.value = [];
|
|
3794
3879
|
const proms = [];
|
|
3795
|
-
const
|
|
3796
|
-
const
|
|
3880
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3881
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3797
3882
|
if (!def.rest) {
|
|
3798
|
-
|
|
3799
|
-
const tooSmall = input.length < optStart - 1;
|
|
3800
|
-
if (tooBig || tooSmall) {
|
|
3883
|
+
if (input.length < optinStart) {
|
|
3801
3884
|
payload.issues.push({
|
|
3802
|
-
|
|
3885
|
+
code: "too_small",
|
|
3886
|
+
minimum: optinStart,
|
|
3887
|
+
inclusive: true,
|
|
3803
3888
|
input,
|
|
3804
3889
|
inst,
|
|
3805
3890
|
origin: "array"
|
|
3806
3891
|
});
|
|
3807
3892
|
return payload;
|
|
3808
3893
|
}
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3894
|
+
if (input.length > items.length) {
|
|
3895
|
+
payload.issues.push({
|
|
3896
|
+
code: "too_big",
|
|
3897
|
+
maximum: items.length,
|
|
3898
|
+
inclusive: true,
|
|
3899
|
+
input,
|
|
3900
|
+
inst,
|
|
3901
|
+
origin: "array"
|
|
3902
|
+
});
|
|
3816
3903
|
}
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
}, ctx);
|
|
3821
|
-
if (
|
|
3822
|
-
proms.push(
|
|
3904
|
+
}
|
|
3905
|
+
const itemResults = new Array(items.length);
|
|
3906
|
+
for (let i = 0; i < items.length; i++) {
|
|
3907
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3908
|
+
if (r instanceof Promise) {
|
|
3909
|
+
proms.push(r.then((rr) => {
|
|
3910
|
+
itemResults[i] = rr;
|
|
3911
|
+
}));
|
|
3823
3912
|
} else {
|
|
3824
|
-
|
|
3913
|
+
itemResults[i] = r;
|
|
3825
3914
|
}
|
|
3826
3915
|
}
|
|
3827
3916
|
if (def.rest) {
|
|
3917
|
+
let i = items.length - 1;
|
|
3828
3918
|
const rest = input.slice(items.length);
|
|
3829
3919
|
for (const el of rest) {
|
|
3830
3920
|
i++;
|
|
3831
|
-
const result = def.rest._zod.run({
|
|
3832
|
-
value: el,
|
|
3833
|
-
issues: []
|
|
3834
|
-
}, ctx);
|
|
3921
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3835
3922
|
if (result instanceof Promise) {
|
|
3836
|
-
proms.push(result.then((
|
|
3923
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3837
3924
|
} else {
|
|
3838
3925
|
handleTupleResult(result, payload, i);
|
|
3839
3926
|
}
|
|
3840
3927
|
}
|
|
3841
3928
|
}
|
|
3842
|
-
if (proms.length)
|
|
3843
|
-
return Promise.all(proms).then(() => payload);
|
|
3844
|
-
|
|
3929
|
+
if (proms.length) {
|
|
3930
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3931
|
+
}
|
|
3932
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3845
3933
|
};
|
|
3846
3934
|
});
|
|
3935
|
+
function getTupleOptStart(items, key) {
|
|
3936
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3937
|
+
if (items[i]._zod[key] !== "optional")
|
|
3938
|
+
return i + 1;
|
|
3939
|
+
}
|
|
3940
|
+
return 0;
|
|
3941
|
+
}
|
|
3847
3942
|
function handleTupleResult(result, final, index) {
|
|
3848
3943
|
if (result.issues.length) {
|
|
3849
3944
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3850
3945
|
}
|
|
3851
3946
|
final.value[index] = result.value;
|
|
3852
3947
|
}
|
|
3948
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3949
|
+
for (let i = 0; i < items.length; i++) {
|
|
3950
|
+
const r = itemResults[i];
|
|
3951
|
+
const isPresent = i < input.length;
|
|
3952
|
+
if (r.issues.length) {
|
|
3953
|
+
if (!isPresent && i >= optoutStart) {
|
|
3954
|
+
final.value.length = i;
|
|
3955
|
+
break;
|
|
3956
|
+
}
|
|
3957
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3958
|
+
}
|
|
3959
|
+
final.value[i] = r.value;
|
|
3960
|
+
}
|
|
3961
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3962
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3963
|
+
final.value.length = i;
|
|
3964
|
+
} else {
|
|
3965
|
+
break;
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
return final;
|
|
3969
|
+
}
|
|
3853
3970
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3854
3971
|
$ZodType.init(inst, def);
|
|
3855
3972
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3871,19 +3988,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3871
3988
|
for (const key of values) {
|
|
3872
3989
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3873
3990
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3991
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3992
|
+
if (keyResult instanceof Promise) {
|
|
3993
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3994
|
+
}
|
|
3995
|
+
if (keyResult.issues.length) {
|
|
3996
|
+
payload.issues.push({
|
|
3997
|
+
code: "invalid_key",
|
|
3998
|
+
origin: "record",
|
|
3999
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
4000
|
+
input: key,
|
|
4001
|
+
path: [key],
|
|
4002
|
+
inst
|
|
4003
|
+
});
|
|
4004
|
+
continue;
|
|
4005
|
+
}
|
|
4006
|
+
const outKey = keyResult.value;
|
|
3874
4007
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3875
4008
|
if (result instanceof Promise) {
|
|
3876
4009
|
proms.push(result.then((result2) => {
|
|
3877
4010
|
if (result2.issues.length) {
|
|
3878
4011
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3879
4012
|
}
|
|
3880
|
-
payload.value[
|
|
4013
|
+
payload.value[outKey] = result2.value;
|
|
3881
4014
|
}));
|
|
3882
4015
|
} else {
|
|
3883
4016
|
if (result.issues.length) {
|
|
3884
4017
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3885
4018
|
}
|
|
3886
|
-
payload.value[
|
|
4019
|
+
payload.value[outKey] = result.value;
|
|
3887
4020
|
}
|
|
3888
4021
|
}
|
|
3889
4022
|
}
|
|
@@ -3907,6 +4040,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3907
4040
|
for (const key of Reflect.ownKeys(input)) {
|
|
3908
4041
|
if (key === "__proto__")
|
|
3909
4042
|
continue;
|
|
4043
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
4044
|
+
continue;
|
|
3910
4045
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3911
4046
|
if (keyResult instanceof Promise) {
|
|
3912
4047
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -4111,6 +4246,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
4111
4246
|
});
|
|
4112
4247
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4113
4248
|
$ZodType.init(inst, def);
|
|
4249
|
+
inst._zod.optin = "optional";
|
|
4114
4250
|
inst._zod.parse = (payload, ctx) => {
|
|
4115
4251
|
if (ctx.direction === "backward") {
|
|
4116
4252
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4120,6 +4256,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4120
4256
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4121
4257
|
return output.then((output2) => {
|
|
4122
4258
|
payload.value = output2;
|
|
4259
|
+
payload.fallback = true;
|
|
4123
4260
|
return payload;
|
|
4124
4261
|
});
|
|
4125
4262
|
}
|
|
@@ -4127,11 +4264,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4127
4264
|
throw new $ZodAsyncError();
|
|
4128
4265
|
}
|
|
4129
4266
|
payload.value = _out;
|
|
4267
|
+
payload.fallback = true;
|
|
4130
4268
|
return payload;
|
|
4131
4269
|
};
|
|
4132
4270
|
});
|
|
4133
4271
|
function handleOptionalResult(result, input) {
|
|
4134
|
-
if (result.issues.length
|
|
4272
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4135
4273
|
return { issues: [], value: void 0 };
|
|
4136
4274
|
}
|
|
4137
4275
|
return result;
|
|
@@ -4149,10 +4287,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
4149
4287
|
});
|
|
4150
4288
|
inst._zod.parse = (payload, ctx) => {
|
|
4151
4289
|
if (def.innerType._zod.optin === "optional") {
|
|
4290
|
+
const input = payload.value;
|
|
4152
4291
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4153
4292
|
if (result instanceof Promise)
|
|
4154
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4155
|
-
return handleOptionalResult(result,
|
|
4293
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4294
|
+
return handleOptionalResult(result, input);
|
|
4156
4295
|
}
|
|
4157
4296
|
if (payload.value === void 0) {
|
|
4158
4297
|
return payload;
|
|
@@ -4268,7 +4407,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
4268
4407
|
});
|
|
4269
4408
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4270
4409
|
$ZodType.init(inst, def);
|
|
4271
|
-
|
|
4410
|
+
inst._zod.optin = "optional";
|
|
4272
4411
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4273
4412
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4274
4413
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4288,6 +4427,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4288
4427
|
input: payload.value
|
|
4289
4428
|
});
|
|
4290
4429
|
payload.issues = [];
|
|
4430
|
+
payload.fallback = true;
|
|
4291
4431
|
}
|
|
4292
4432
|
return payload;
|
|
4293
4433
|
});
|
|
@@ -4302,6 +4442,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4302
4442
|
input: payload.value
|
|
4303
4443
|
});
|
|
4304
4444
|
payload.issues = [];
|
|
4445
|
+
payload.fallback = true;
|
|
4305
4446
|
}
|
|
4306
4447
|
return payload;
|
|
4307
4448
|
};
|
|
@@ -4347,7 +4488,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4347
4488
|
left.aborted = true;
|
|
4348
4489
|
return left;
|
|
4349
4490
|
}
|
|
4350
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4491
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4351
4492
|
}
|
|
4352
4493
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4353
4494
|
$ZodType.init(inst, def);
|
|
@@ -4399,6 +4540,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4399
4540
|
}
|
|
4400
4541
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4401
4542
|
}
|
|
4543
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4544
|
+
$ZodPipe.init(inst, def);
|
|
4545
|
+
});
|
|
4402
4546
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4403
4547
|
$ZodType.init(inst, def);
|
|
4404
4548
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4550,7 +4694,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4550
4694
|
});
|
|
4551
4695
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4552
4696
|
$ZodType.init(inst, def);
|
|
4553
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4697
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4698
|
+
const d = def;
|
|
4699
|
+
if (!d._cachedInner)
|
|
4700
|
+
d._cachedInner = def.getter();
|
|
4701
|
+
return d._cachedInner;
|
|
4702
|
+
});
|
|
4554
4703
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4555
4704
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4556
4705
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4594,7 +4743,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4594
4743
|
}
|
|
4595
4744
|
}
|
|
4596
4745
|
|
|
4597
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4746
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4598
4747
|
var locales_exports = {};
|
|
4599
4748
|
__export(locales_exports, {
|
|
4600
4749
|
ar: () => ar_default,
|
|
@@ -4605,6 +4754,7 @@ __export(locales_exports, {
|
|
|
4605
4754
|
cs: () => cs_default,
|
|
4606
4755
|
da: () => da_default,
|
|
4607
4756
|
de: () => de_default,
|
|
4757
|
+
el: () => el_default,
|
|
4608
4758
|
en: () => en_default,
|
|
4609
4759
|
eo: () => eo_default,
|
|
4610
4760
|
es: () => es_default,
|
|
@@ -4613,6 +4763,7 @@ __export(locales_exports, {
|
|
|
4613
4763
|
fr: () => fr_default,
|
|
4614
4764
|
frCA: () => fr_CA_default,
|
|
4615
4765
|
he: () => he_default,
|
|
4766
|
+
hr: () => hr_default,
|
|
4616
4767
|
hu: () => hu_default,
|
|
4617
4768
|
hy: () => hy_default,
|
|
4618
4769
|
id: () => id_default,
|
|
@@ -4632,6 +4783,7 @@ __export(locales_exports, {
|
|
|
4632
4783
|
pl: () => pl_default,
|
|
4633
4784
|
ps: () => ps_default,
|
|
4634
4785
|
pt: () => pt_default,
|
|
4786
|
+
ro: () => ro_default,
|
|
4635
4787
|
ru: () => ru_default,
|
|
4636
4788
|
sl: () => sl_default,
|
|
4637
4789
|
sv: () => sv_default,
|
|
@@ -4648,7 +4800,7 @@ __export(locales_exports, {
|
|
|
4648
4800
|
zhTW: () => zh_TW_default
|
|
4649
4801
|
});
|
|
4650
4802
|
|
|
4651
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4803
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4652
4804
|
var error = () => {
|
|
4653
4805
|
const Sizable = {
|
|
4654
4806
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4755,7 +4907,7 @@ function ar_default() {
|
|
|
4755
4907
|
};
|
|
4756
4908
|
}
|
|
4757
4909
|
|
|
4758
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4910
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4759
4911
|
var error2 = () => {
|
|
4760
4912
|
const Sizable = {
|
|
4761
4913
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4861,7 +5013,7 @@ function az_default() {
|
|
|
4861
5013
|
};
|
|
4862
5014
|
}
|
|
4863
5015
|
|
|
4864
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5016
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4865
5017
|
function getBelarusianPlural(count, one, few, many) {
|
|
4866
5018
|
const absCount = Math.abs(count);
|
|
4867
5019
|
const lastDigit = absCount % 10;
|
|
@@ -5018,7 +5170,7 @@ function be_default() {
|
|
|
5018
5170
|
};
|
|
5019
5171
|
}
|
|
5020
5172
|
|
|
5021
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5173
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
5022
5174
|
var error4 = () => {
|
|
5023
5175
|
const Sizable = {
|
|
5024
5176
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5139,7 +5291,7 @@ function bg_default() {
|
|
|
5139
5291
|
};
|
|
5140
5292
|
}
|
|
5141
5293
|
|
|
5142
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5294
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
5143
5295
|
var error5 = () => {
|
|
5144
5296
|
const Sizable = {
|
|
5145
5297
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5248,7 +5400,7 @@ function ca_default() {
|
|
|
5248
5400
|
};
|
|
5249
5401
|
}
|
|
5250
5402
|
|
|
5251
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5403
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5252
5404
|
var error6 = () => {
|
|
5253
5405
|
const Sizable = {
|
|
5254
5406
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5360,7 +5512,7 @@ function cs_default() {
|
|
|
5360
5512
|
};
|
|
5361
5513
|
}
|
|
5362
5514
|
|
|
5363
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5515
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5364
5516
|
var error7 = () => {
|
|
5365
5517
|
const Sizable = {
|
|
5366
5518
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5476,7 +5628,7 @@ function da_default() {
|
|
|
5476
5628
|
};
|
|
5477
5629
|
}
|
|
5478
5630
|
|
|
5479
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5631
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5480
5632
|
var error8 = () => {
|
|
5481
5633
|
const Sizable = {
|
|
5482
5634
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5585,8 +5737,118 @@ function de_default() {
|
|
|
5585
5737
|
};
|
|
5586
5738
|
}
|
|
5587
5739
|
|
|
5588
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5740
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5589
5741
|
var error9 = () => {
|
|
5742
|
+
const Sizable = {
|
|
5743
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5744
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5745
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5746
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5747
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5748
|
+
};
|
|
5749
|
+
function getSizing(origin) {
|
|
5750
|
+
return Sizable[origin] ?? null;
|
|
5751
|
+
}
|
|
5752
|
+
const FormatDictionary = {
|
|
5753
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5754
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5755
|
+
url: "URL",
|
|
5756
|
+
emoji: "emoji",
|
|
5757
|
+
uuid: "UUID",
|
|
5758
|
+
uuidv4: "UUIDv4",
|
|
5759
|
+
uuidv6: "UUIDv6",
|
|
5760
|
+
nanoid: "nanoid",
|
|
5761
|
+
guid: "GUID",
|
|
5762
|
+
cuid: "cuid",
|
|
5763
|
+
cuid2: "cuid2",
|
|
5764
|
+
ulid: "ULID",
|
|
5765
|
+
xid: "XID",
|
|
5766
|
+
ksuid: "KSUID",
|
|
5767
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5768
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5769
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5770
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5771
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5772
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5773
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5774
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5775
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5776
|
+
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",
|
|
5777
|
+
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",
|
|
5778
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5779
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5780
|
+
jwt: "JWT",
|
|
5781
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5782
|
+
};
|
|
5783
|
+
const TypeDictionary = {
|
|
5784
|
+
nan: "NaN"
|
|
5785
|
+
};
|
|
5786
|
+
return (issue2) => {
|
|
5787
|
+
switch (issue2.code) {
|
|
5788
|
+
case "invalid_type": {
|
|
5789
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5790
|
+
const receivedType = parsedType(issue2.input);
|
|
5791
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5792
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5793
|
+
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}`;
|
|
5794
|
+
}
|
|
5795
|
+
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}`;
|
|
5796
|
+
}
|
|
5797
|
+
case "invalid_value":
|
|
5798
|
+
if (issue2.values.length === 1)
|
|
5799
|
+
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])}`;
|
|
5800
|
+
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, "|")}`;
|
|
5801
|
+
case "too_big": {
|
|
5802
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5803
|
+
const sizing = getSizing(issue2.origin);
|
|
5804
|
+
if (sizing)
|
|
5805
|
+
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"}`;
|
|
5806
|
+
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()}`;
|
|
5807
|
+
}
|
|
5808
|
+
case "too_small": {
|
|
5809
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5810
|
+
const sizing = getSizing(issue2.origin);
|
|
5811
|
+
if (sizing) {
|
|
5812
|
+
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}`;
|
|
5813
|
+
}
|
|
5814
|
+
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()}`;
|
|
5815
|
+
}
|
|
5816
|
+
case "invalid_format": {
|
|
5817
|
+
const _issue = issue2;
|
|
5818
|
+
if (_issue.format === "starts_with") {
|
|
5819
|
+
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}"`;
|
|
5820
|
+
}
|
|
5821
|
+
if (_issue.format === "ends_with")
|
|
5822
|
+
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}"`;
|
|
5823
|
+
if (_issue.format === "includes")
|
|
5824
|
+
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}"`;
|
|
5825
|
+
if (_issue.format === "regex")
|
|
5826
|
+
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}`;
|
|
5827
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5828
|
+
}
|
|
5829
|
+
case "not_multiple_of":
|
|
5830
|
+
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}`;
|
|
5831
|
+
case "unrecognized_keys":
|
|
5832
|
+
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, ", ")}`;
|
|
5833
|
+
case "invalid_key":
|
|
5834
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5835
|
+
case "invalid_union":
|
|
5836
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5837
|
+
case "invalid_element":
|
|
5838
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5839
|
+
default:
|
|
5840
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5841
|
+
}
|
|
5842
|
+
};
|
|
5843
|
+
};
|
|
5844
|
+
function el_default() {
|
|
5845
|
+
return {
|
|
5846
|
+
localeError: error9()
|
|
5847
|
+
};
|
|
5848
|
+
}
|
|
5849
|
+
|
|
5850
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5851
|
+
var error10 = () => {
|
|
5590
5852
|
const Sizable = {
|
|
5591
5853
|
string: { unit: "characters", verb: "to have" },
|
|
5592
5854
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5680,6 +5942,10 @@ var error9 = () => {
|
|
|
5680
5942
|
case "invalid_key":
|
|
5681
5943
|
return `Invalid key in ${issue2.origin}`;
|
|
5682
5944
|
case "invalid_union":
|
|
5945
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5946
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5947
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5948
|
+
}
|
|
5683
5949
|
return "Invalid input";
|
|
5684
5950
|
case "invalid_element":
|
|
5685
5951
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5690,12 +5956,12 @@ var error9 = () => {
|
|
|
5690
5956
|
};
|
|
5691
5957
|
function en_default() {
|
|
5692
5958
|
return {
|
|
5693
|
-
localeError:
|
|
5959
|
+
localeError: error10()
|
|
5694
5960
|
};
|
|
5695
5961
|
}
|
|
5696
5962
|
|
|
5697
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5698
|
-
var
|
|
5963
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5964
|
+
var error11 = () => {
|
|
5699
5965
|
const Sizable = {
|
|
5700
5966
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5701
5967
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5800,12 +6066,12 @@ var error10 = () => {
|
|
|
5800
6066
|
};
|
|
5801
6067
|
function eo_default() {
|
|
5802
6068
|
return {
|
|
5803
|
-
localeError:
|
|
6069
|
+
localeError: error11()
|
|
5804
6070
|
};
|
|
5805
6071
|
}
|
|
5806
6072
|
|
|
5807
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5808
|
-
var
|
|
6073
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
6074
|
+
var error12 = () => {
|
|
5809
6075
|
const Sizable = {
|
|
5810
6076
|
string: { unit: "caracteres", verb: "tener" },
|
|
5811
6077
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5933,12 +6199,12 @@ var error11 = () => {
|
|
|
5933
6199
|
};
|
|
5934
6200
|
function es_default() {
|
|
5935
6201
|
return {
|
|
5936
|
-
localeError:
|
|
6202
|
+
localeError: error12()
|
|
5937
6203
|
};
|
|
5938
6204
|
}
|
|
5939
6205
|
|
|
5940
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5941
|
-
var
|
|
6206
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
6207
|
+
var error13 = () => {
|
|
5942
6208
|
const Sizable = {
|
|
5943
6209
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5944
6210
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -6048,12 +6314,12 @@ var error12 = () => {
|
|
|
6048
6314
|
};
|
|
6049
6315
|
function fa_default() {
|
|
6050
6316
|
return {
|
|
6051
|
-
localeError:
|
|
6317
|
+
localeError: error13()
|
|
6052
6318
|
};
|
|
6053
6319
|
}
|
|
6054
6320
|
|
|
6055
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6056
|
-
var
|
|
6321
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
6322
|
+
var error14 = () => {
|
|
6057
6323
|
const Sizable = {
|
|
6058
6324
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
6059
6325
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -6161,12 +6427,12 @@ var error13 = () => {
|
|
|
6161
6427
|
};
|
|
6162
6428
|
function fi_default() {
|
|
6163
6429
|
return {
|
|
6164
|
-
localeError:
|
|
6430
|
+
localeError: error14()
|
|
6165
6431
|
};
|
|
6166
6432
|
}
|
|
6167
6433
|
|
|
6168
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6169
|
-
var
|
|
6434
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6435
|
+
var error15 = () => {
|
|
6170
6436
|
const Sizable = {
|
|
6171
6437
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6172
6438
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6207,9 +6473,27 @@ var error14 = () => {
|
|
|
6207
6473
|
template_literal: "entr\xE9e"
|
|
6208
6474
|
};
|
|
6209
6475
|
const TypeDictionary = {
|
|
6210
|
-
|
|
6476
|
+
string: "cha\xEEne",
|
|
6211
6477
|
number: "nombre",
|
|
6212
|
-
|
|
6478
|
+
int: "entier",
|
|
6479
|
+
boolean: "bool\xE9en",
|
|
6480
|
+
bigint: "grand entier",
|
|
6481
|
+
symbol: "symbole",
|
|
6482
|
+
undefined: "ind\xE9fini",
|
|
6483
|
+
null: "null",
|
|
6484
|
+
never: "jamais",
|
|
6485
|
+
void: "vide",
|
|
6486
|
+
date: "date",
|
|
6487
|
+
array: "tableau",
|
|
6488
|
+
object: "objet",
|
|
6489
|
+
tuple: "tuple",
|
|
6490
|
+
record: "enregistrement",
|
|
6491
|
+
map: "carte",
|
|
6492
|
+
set: "ensemble",
|
|
6493
|
+
file: "fichier",
|
|
6494
|
+
nonoptional: "non-optionnel",
|
|
6495
|
+
nan: "NaN",
|
|
6496
|
+
function: "fonction"
|
|
6213
6497
|
};
|
|
6214
6498
|
return (issue2) => {
|
|
6215
6499
|
switch (issue2.code) {
|
|
@@ -6230,16 +6514,15 @@ var error14 = () => {
|
|
|
6230
6514
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6231
6515
|
const sizing = getSizing(issue2.origin);
|
|
6232
6516
|
if (sizing)
|
|
6233
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6234
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6517
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6518
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6235
6519
|
}
|
|
6236
6520
|
case "too_small": {
|
|
6237
6521
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6238
6522
|
const sizing = getSizing(issue2.origin);
|
|
6239
|
-
if (sizing)
|
|
6240
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6241
|
-
}
|
|
6242
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6523
|
+
if (sizing)
|
|
6524
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6525
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6243
6526
|
}
|
|
6244
6527
|
case "invalid_format": {
|
|
6245
6528
|
const _issue = issue2;
|
|
@@ -6270,12 +6553,12 @@ var error14 = () => {
|
|
|
6270
6553
|
};
|
|
6271
6554
|
function fr_default() {
|
|
6272
6555
|
return {
|
|
6273
|
-
localeError:
|
|
6556
|
+
localeError: error15()
|
|
6274
6557
|
};
|
|
6275
6558
|
}
|
|
6276
6559
|
|
|
6277
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6278
|
-
var
|
|
6560
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6561
|
+
var error16 = () => {
|
|
6279
6562
|
const Sizable = {
|
|
6280
6563
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6281
6564
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6378,12 +6661,12 @@ var error15 = () => {
|
|
|
6378
6661
|
};
|
|
6379
6662
|
function fr_CA_default() {
|
|
6380
6663
|
return {
|
|
6381
|
-
localeError:
|
|
6664
|
+
localeError: error16()
|
|
6382
6665
|
};
|
|
6383
6666
|
}
|
|
6384
6667
|
|
|
6385
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6386
|
-
var
|
|
6668
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6669
|
+
var error17 = () => {
|
|
6387
6670
|
const TypeNames = {
|
|
6388
6671
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6389
6672
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6573,24 +6856,24 @@ var error16 = () => {
|
|
|
6573
6856
|
};
|
|
6574
6857
|
function he_default() {
|
|
6575
6858
|
return {
|
|
6576
|
-
localeError:
|
|
6859
|
+
localeError: error17()
|
|
6577
6860
|
};
|
|
6578
6861
|
}
|
|
6579
6862
|
|
|
6580
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6581
|
-
var
|
|
6863
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6864
|
+
var error18 = () => {
|
|
6582
6865
|
const Sizable = {
|
|
6583
|
-
string: { unit: "
|
|
6584
|
-
file: { unit: "
|
|
6585
|
-
array: { unit: "
|
|
6586
|
-
set: { unit: "
|
|
6866
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6867
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6868
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6869
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6587
6870
|
};
|
|
6588
6871
|
function getSizing(origin) {
|
|
6589
6872
|
return Sizable[origin] ?? null;
|
|
6590
6873
|
}
|
|
6591
6874
|
const FormatDictionary = {
|
|
6592
|
-
regex: "
|
|
6593
|
-
email: "email
|
|
6875
|
+
regex: "unos",
|
|
6876
|
+
email: "email adresa",
|
|
6594
6877
|
url: "URL",
|
|
6595
6878
|
emoji: "emoji",
|
|
6596
6879
|
uuid: "UUID",
|
|
@@ -6603,25 +6886,37 @@ var error17 = () => {
|
|
|
6603
6886
|
ulid: "ULID",
|
|
6604
6887
|
xid: "XID",
|
|
6605
6888
|
ksuid: "KSUID",
|
|
6606
|
-
datetime: "ISO
|
|
6607
|
-
date: "ISO
|
|
6608
|
-
time: "ISO
|
|
6609
|
-
duration: "ISO
|
|
6610
|
-
ipv4: "IPv4
|
|
6611
|
-
ipv6: "IPv6
|
|
6612
|
-
cidrv4: "IPv4
|
|
6613
|
-
cidrv6: "IPv6
|
|
6614
|
-
base64: "base64
|
|
6615
|
-
base64url: "base64url
|
|
6616
|
-
json_string: "JSON
|
|
6617
|
-
e164: "E.164
|
|
6889
|
+
datetime: "ISO datum i vrijeme",
|
|
6890
|
+
date: "ISO datum",
|
|
6891
|
+
time: "ISO vrijeme",
|
|
6892
|
+
duration: "ISO trajanje",
|
|
6893
|
+
ipv4: "IPv4 adresa",
|
|
6894
|
+
ipv6: "IPv6 adresa",
|
|
6895
|
+
cidrv4: "IPv4 raspon",
|
|
6896
|
+
cidrv6: "IPv6 raspon",
|
|
6897
|
+
base64: "base64 kodirani tekst",
|
|
6898
|
+
base64url: "base64url kodirani tekst",
|
|
6899
|
+
json_string: "JSON tekst",
|
|
6900
|
+
e164: "E.164 broj",
|
|
6618
6901
|
jwt: "JWT",
|
|
6619
|
-
template_literal: "
|
|
6902
|
+
template_literal: "unos"
|
|
6620
6903
|
};
|
|
6621
6904
|
const TypeDictionary = {
|
|
6622
6905
|
nan: "NaN",
|
|
6623
|
-
|
|
6624
|
-
|
|
6906
|
+
string: "tekst",
|
|
6907
|
+
number: "broj",
|
|
6908
|
+
boolean: "boolean",
|
|
6909
|
+
array: "niz",
|
|
6910
|
+
object: "objekt",
|
|
6911
|
+
set: "skup",
|
|
6912
|
+
file: "datoteka",
|
|
6913
|
+
date: "datum",
|
|
6914
|
+
bigint: "bigint",
|
|
6915
|
+
symbol: "simbol",
|
|
6916
|
+
undefined: "undefined",
|
|
6917
|
+
null: "null",
|
|
6918
|
+
function: "funkcija",
|
|
6919
|
+
map: "mapa"
|
|
6625
6920
|
};
|
|
6626
6921
|
return (issue2) => {
|
|
6627
6922
|
switch (issue2.code) {
|
|
@@ -6630,35 +6925,146 @@ var error17 = () => {
|
|
|
6630
6925
|
const receivedType = parsedType(issue2.input);
|
|
6631
6926
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6632
6927
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6633
|
-
return
|
|
6928
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6634
6929
|
}
|
|
6635
|
-
return
|
|
6930
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6636
6931
|
}
|
|
6637
6932
|
case "invalid_value":
|
|
6638
6933
|
if (issue2.values.length === 1)
|
|
6639
|
-
return
|
|
6640
|
-
return
|
|
6934
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6935
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6641
6936
|
case "too_big": {
|
|
6642
6937
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6643
6938
|
const sizing = getSizing(issue2.origin);
|
|
6939
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6644
6940
|
if (sizing)
|
|
6645
|
-
return `
|
|
6646
|
-
return `
|
|
6941
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6942
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6647
6943
|
}
|
|
6648
6944
|
case "too_small": {
|
|
6649
6945
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6650
6946
|
const sizing = getSizing(issue2.origin);
|
|
6947
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6651
6948
|
if (sizing) {
|
|
6652
|
-
return `
|
|
6949
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6653
6950
|
}
|
|
6654
|
-
return `
|
|
6951
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6655
6952
|
}
|
|
6656
6953
|
case "invalid_format": {
|
|
6657
6954
|
const _issue = issue2;
|
|
6658
6955
|
if (_issue.format === "starts_with")
|
|
6659
|
-
return
|
|
6956
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6660
6957
|
if (_issue.format === "ends_with")
|
|
6661
|
-
return
|
|
6958
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6959
|
+
if (_issue.format === "includes")
|
|
6960
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6961
|
+
if (_issue.format === "regex")
|
|
6962
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6963
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6964
|
+
}
|
|
6965
|
+
case "not_multiple_of":
|
|
6966
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6967
|
+
case "unrecognized_keys":
|
|
6968
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6969
|
+
case "invalid_key":
|
|
6970
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6971
|
+
case "invalid_union":
|
|
6972
|
+
return "Neispravan unos";
|
|
6973
|
+
case "invalid_element":
|
|
6974
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6975
|
+
default:
|
|
6976
|
+
return `Neispravan unos`;
|
|
6977
|
+
}
|
|
6978
|
+
};
|
|
6979
|
+
};
|
|
6980
|
+
function hr_default() {
|
|
6981
|
+
return {
|
|
6982
|
+
localeError: error18()
|
|
6983
|
+
};
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6987
|
+
var error19 = () => {
|
|
6988
|
+
const Sizable = {
|
|
6989
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6990
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6991
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6992
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6993
|
+
};
|
|
6994
|
+
function getSizing(origin) {
|
|
6995
|
+
return Sizable[origin] ?? null;
|
|
6996
|
+
}
|
|
6997
|
+
const FormatDictionary = {
|
|
6998
|
+
regex: "bemenet",
|
|
6999
|
+
email: "email c\xEDm",
|
|
7000
|
+
url: "URL",
|
|
7001
|
+
emoji: "emoji",
|
|
7002
|
+
uuid: "UUID",
|
|
7003
|
+
uuidv4: "UUIDv4",
|
|
7004
|
+
uuidv6: "UUIDv6",
|
|
7005
|
+
nanoid: "nanoid",
|
|
7006
|
+
guid: "GUID",
|
|
7007
|
+
cuid: "cuid",
|
|
7008
|
+
cuid2: "cuid2",
|
|
7009
|
+
ulid: "ULID",
|
|
7010
|
+
xid: "XID",
|
|
7011
|
+
ksuid: "KSUID",
|
|
7012
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
7013
|
+
date: "ISO d\xE1tum",
|
|
7014
|
+
time: "ISO id\u0151",
|
|
7015
|
+
duration: "ISO id\u0151intervallum",
|
|
7016
|
+
ipv4: "IPv4 c\xEDm",
|
|
7017
|
+
ipv6: "IPv6 c\xEDm",
|
|
7018
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
7019
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
7020
|
+
base64: "base64-k\xF3dolt string",
|
|
7021
|
+
base64url: "base64url-k\xF3dolt string",
|
|
7022
|
+
json_string: "JSON string",
|
|
7023
|
+
e164: "E.164 sz\xE1m",
|
|
7024
|
+
jwt: "JWT",
|
|
7025
|
+
template_literal: "bemenet"
|
|
7026
|
+
};
|
|
7027
|
+
const TypeDictionary = {
|
|
7028
|
+
nan: "NaN",
|
|
7029
|
+
number: "sz\xE1m",
|
|
7030
|
+
array: "t\xF6mb"
|
|
7031
|
+
};
|
|
7032
|
+
return (issue2) => {
|
|
7033
|
+
switch (issue2.code) {
|
|
7034
|
+
case "invalid_type": {
|
|
7035
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7036
|
+
const receivedType = parsedType(issue2.input);
|
|
7037
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7038
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7039
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7040
|
+
}
|
|
7041
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7042
|
+
}
|
|
7043
|
+
case "invalid_value":
|
|
7044
|
+
if (issue2.values.length === 1)
|
|
7045
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
7046
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
7047
|
+
case "too_big": {
|
|
7048
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7049
|
+
const sizing = getSizing(issue2.origin);
|
|
7050
|
+
if (sizing)
|
|
7051
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
7052
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
7053
|
+
}
|
|
7054
|
+
case "too_small": {
|
|
7055
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7056
|
+
const sizing = getSizing(issue2.origin);
|
|
7057
|
+
if (sizing) {
|
|
7058
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7059
|
+
}
|
|
7060
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
7061
|
+
}
|
|
7062
|
+
case "invalid_format": {
|
|
7063
|
+
const _issue = issue2;
|
|
7064
|
+
if (_issue.format === "starts_with")
|
|
7065
|
+
return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
|
|
7066
|
+
if (_issue.format === "ends_with")
|
|
7067
|
+
return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
|
|
6662
7068
|
if (_issue.format === "includes")
|
|
6663
7069
|
return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
|
|
6664
7070
|
if (_issue.format === "regex")
|
|
@@ -6682,11 +7088,11 @@ var error17 = () => {
|
|
|
6682
7088
|
};
|
|
6683
7089
|
function hu_default() {
|
|
6684
7090
|
return {
|
|
6685
|
-
localeError:
|
|
7091
|
+
localeError: error19()
|
|
6686
7092
|
};
|
|
6687
7093
|
}
|
|
6688
7094
|
|
|
6689
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7095
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6690
7096
|
function getArmenianPlural(count, one, many) {
|
|
6691
7097
|
return Math.abs(count) === 1 ? one : many;
|
|
6692
7098
|
}
|
|
@@ -6697,7 +7103,7 @@ function withDefiniteArticle(word) {
|
|
|
6697
7103
|
const lastChar = word[word.length - 1];
|
|
6698
7104
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6699
7105
|
}
|
|
6700
|
-
var
|
|
7106
|
+
var error20 = () => {
|
|
6701
7107
|
const Sizable = {
|
|
6702
7108
|
string: {
|
|
6703
7109
|
unit: {
|
|
@@ -6830,12 +7236,12 @@ var error18 = () => {
|
|
|
6830
7236
|
};
|
|
6831
7237
|
function hy_default() {
|
|
6832
7238
|
return {
|
|
6833
|
-
localeError:
|
|
7239
|
+
localeError: error20()
|
|
6834
7240
|
};
|
|
6835
7241
|
}
|
|
6836
7242
|
|
|
6837
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6838
|
-
var
|
|
7243
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
7244
|
+
var error21 = () => {
|
|
6839
7245
|
const Sizable = {
|
|
6840
7246
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6841
7247
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6937,12 +7343,12 @@ var error19 = () => {
|
|
|
6937
7343
|
};
|
|
6938
7344
|
function id_default() {
|
|
6939
7345
|
return {
|
|
6940
|
-
localeError:
|
|
7346
|
+
localeError: error21()
|
|
6941
7347
|
};
|
|
6942
7348
|
}
|
|
6943
7349
|
|
|
6944
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6945
|
-
var
|
|
7350
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7351
|
+
var error22 = () => {
|
|
6946
7352
|
const Sizable = {
|
|
6947
7353
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6948
7354
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -7047,12 +7453,12 @@ var error20 = () => {
|
|
|
7047
7453
|
};
|
|
7048
7454
|
function is_default() {
|
|
7049
7455
|
return {
|
|
7050
|
-
localeError:
|
|
7456
|
+
localeError: error22()
|
|
7051
7457
|
};
|
|
7052
7458
|
}
|
|
7053
7459
|
|
|
7054
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7055
|
-
var
|
|
7460
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7461
|
+
var error23 = () => {
|
|
7056
7462
|
const Sizable = {
|
|
7057
7463
|
string: { unit: "caratteri", verb: "avere" },
|
|
7058
7464
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7137,7 +7543,7 @@ var error21 = () => {
|
|
|
7137
7543
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7138
7544
|
if (_issue.format === "regex")
|
|
7139
7545
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7140
|
-
return `
|
|
7546
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7141
7547
|
}
|
|
7142
7548
|
case "not_multiple_of":
|
|
7143
7549
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7156,12 +7562,12 @@ var error21 = () => {
|
|
|
7156
7562
|
};
|
|
7157
7563
|
function it_default() {
|
|
7158
7564
|
return {
|
|
7159
|
-
localeError:
|
|
7565
|
+
localeError: error23()
|
|
7160
7566
|
};
|
|
7161
7567
|
}
|
|
7162
7568
|
|
|
7163
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7164
|
-
var
|
|
7569
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7570
|
+
var error24 = () => {
|
|
7165
7571
|
const Sizable = {
|
|
7166
7572
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
7167
7573
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -7264,12 +7670,12 @@ var error22 = () => {
|
|
|
7264
7670
|
};
|
|
7265
7671
|
function ja_default() {
|
|
7266
7672
|
return {
|
|
7267
|
-
localeError:
|
|
7673
|
+
localeError: error24()
|
|
7268
7674
|
};
|
|
7269
7675
|
}
|
|
7270
7676
|
|
|
7271
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7272
|
-
var
|
|
7677
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7678
|
+
var error25 = () => {
|
|
7273
7679
|
const Sizable = {
|
|
7274
7680
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
7275
7681
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7302,9 +7708,9 @@ var error23 = () => {
|
|
|
7302
7708
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
7303
7709
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7304
7710
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7305
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7306
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7307
|
-
json_string: "JSON \
|
|
7711
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7712
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7713
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
7308
7714
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
7309
7715
|
jwt: "JWT",
|
|
7310
7716
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -7312,7 +7718,7 @@ var error23 = () => {
|
|
|
7312
7718
|
const TypeDictionary = {
|
|
7313
7719
|
nan: "NaN",
|
|
7314
7720
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
7315
|
-
string: "\
|
|
7721
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
7316
7722
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
7317
7723
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
7318
7724
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7350,14 +7756,14 @@ var error23 = () => {
|
|
|
7350
7756
|
case "invalid_format": {
|
|
7351
7757
|
const _issue = issue2;
|
|
7352
7758
|
if (_issue.format === "starts_with") {
|
|
7353
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7759
|
+
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`;
|
|
7354
7760
|
}
|
|
7355
7761
|
if (_issue.format === "ends_with")
|
|
7356
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7762
|
+
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`;
|
|
7357
7763
|
if (_issue.format === "includes")
|
|
7358
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7764
|
+
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`;
|
|
7359
7765
|
if (_issue.format === "regex")
|
|
7360
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7766
|
+
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}`;
|
|
7361
7767
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7362
7768
|
}
|
|
7363
7769
|
case "not_multiple_of":
|
|
@@ -7377,12 +7783,12 @@ var error23 = () => {
|
|
|
7377
7783
|
};
|
|
7378
7784
|
function ka_default() {
|
|
7379
7785
|
return {
|
|
7380
|
-
localeError:
|
|
7786
|
+
localeError: error25()
|
|
7381
7787
|
};
|
|
7382
7788
|
}
|
|
7383
7789
|
|
|
7384
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7385
|
-
var
|
|
7790
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7791
|
+
var error26 = () => {
|
|
7386
7792
|
const Sizable = {
|
|
7387
7793
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7388
7794
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7488,17 +7894,17 @@ var error24 = () => {
|
|
|
7488
7894
|
};
|
|
7489
7895
|
function km_default() {
|
|
7490
7896
|
return {
|
|
7491
|
-
localeError:
|
|
7897
|
+
localeError: error26()
|
|
7492
7898
|
};
|
|
7493
7899
|
}
|
|
7494
7900
|
|
|
7495
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7901
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7496
7902
|
function kh_default() {
|
|
7497
7903
|
return km_default();
|
|
7498
7904
|
}
|
|
7499
7905
|
|
|
7500
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7501
|
-
var
|
|
7906
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7907
|
+
var error27 = () => {
|
|
7502
7908
|
const Sizable = {
|
|
7503
7909
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7504
7910
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7605,11 +8011,11 @@ var error25 = () => {
|
|
|
7605
8011
|
};
|
|
7606
8012
|
function ko_default() {
|
|
7607
8013
|
return {
|
|
7608
|
-
localeError:
|
|
8014
|
+
localeError: error27()
|
|
7609
8015
|
};
|
|
7610
8016
|
}
|
|
7611
8017
|
|
|
7612
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8018
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7613
8019
|
var capitalizeFirstCharacter = (text) => {
|
|
7614
8020
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7615
8021
|
};
|
|
@@ -7623,7 +8029,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7623
8029
|
return "one";
|
|
7624
8030
|
return "few";
|
|
7625
8031
|
}
|
|
7626
|
-
var
|
|
8032
|
+
var error28 = () => {
|
|
7627
8033
|
const Sizable = {
|
|
7628
8034
|
string: {
|
|
7629
8035
|
unit: {
|
|
@@ -7809,12 +8215,12 @@ var error26 = () => {
|
|
|
7809
8215
|
};
|
|
7810
8216
|
function lt_default() {
|
|
7811
8217
|
return {
|
|
7812
|
-
localeError:
|
|
8218
|
+
localeError: error28()
|
|
7813
8219
|
};
|
|
7814
8220
|
}
|
|
7815
8221
|
|
|
7816
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7817
|
-
var
|
|
8222
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
8223
|
+
var error29 = () => {
|
|
7818
8224
|
const Sizable = {
|
|
7819
8225
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7820
8226
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7919,12 +8325,12 @@ var error27 = () => {
|
|
|
7919
8325
|
};
|
|
7920
8326
|
function mk_default() {
|
|
7921
8327
|
return {
|
|
7922
|
-
localeError:
|
|
8328
|
+
localeError: error29()
|
|
7923
8329
|
};
|
|
7924
8330
|
}
|
|
7925
8331
|
|
|
7926
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7927
|
-
var
|
|
8332
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
8333
|
+
var error30 = () => {
|
|
7928
8334
|
const Sizable = {
|
|
7929
8335
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7930
8336
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -8027,12 +8433,12 @@ var error28 = () => {
|
|
|
8027
8433
|
};
|
|
8028
8434
|
function ms_default() {
|
|
8029
8435
|
return {
|
|
8030
|
-
localeError:
|
|
8436
|
+
localeError: error30()
|
|
8031
8437
|
};
|
|
8032
8438
|
}
|
|
8033
8439
|
|
|
8034
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8035
|
-
var
|
|
8440
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8441
|
+
var error31 = () => {
|
|
8036
8442
|
const Sizable = {
|
|
8037
8443
|
string: { unit: "tekens", verb: "heeft" },
|
|
8038
8444
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -8138,12 +8544,12 @@ var error29 = () => {
|
|
|
8138
8544
|
};
|
|
8139
8545
|
function nl_default() {
|
|
8140
8546
|
return {
|
|
8141
|
-
localeError:
|
|
8547
|
+
localeError: error31()
|
|
8142
8548
|
};
|
|
8143
8549
|
}
|
|
8144
8550
|
|
|
8145
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8146
|
-
var
|
|
8551
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8552
|
+
var error32 = () => {
|
|
8147
8553
|
const Sizable = {
|
|
8148
8554
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
8149
8555
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -8247,12 +8653,12 @@ var error30 = () => {
|
|
|
8247
8653
|
};
|
|
8248
8654
|
function no_default() {
|
|
8249
8655
|
return {
|
|
8250
|
-
localeError:
|
|
8656
|
+
localeError: error32()
|
|
8251
8657
|
};
|
|
8252
8658
|
}
|
|
8253
8659
|
|
|
8254
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8255
|
-
var
|
|
8660
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8661
|
+
var error33 = () => {
|
|
8256
8662
|
const Sizable = {
|
|
8257
8663
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
8258
8664
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8357,12 +8763,12 @@ var error31 = () => {
|
|
|
8357
8763
|
};
|
|
8358
8764
|
function ota_default() {
|
|
8359
8765
|
return {
|
|
8360
|
-
localeError:
|
|
8766
|
+
localeError: error33()
|
|
8361
8767
|
};
|
|
8362
8768
|
}
|
|
8363
8769
|
|
|
8364
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8365
|
-
var
|
|
8770
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8771
|
+
var error34 = () => {
|
|
8366
8772
|
const Sizable = {
|
|
8367
8773
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8368
8774
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8472,12 +8878,12 @@ var error32 = () => {
|
|
|
8472
8878
|
};
|
|
8473
8879
|
function ps_default() {
|
|
8474
8880
|
return {
|
|
8475
|
-
localeError:
|
|
8881
|
+
localeError: error34()
|
|
8476
8882
|
};
|
|
8477
8883
|
}
|
|
8478
8884
|
|
|
8479
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8480
|
-
var
|
|
8885
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8886
|
+
var error35 = () => {
|
|
8481
8887
|
const Sizable = {
|
|
8482
8888
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8483
8889
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8582,12 +8988,12 @@ var error33 = () => {
|
|
|
8582
8988
|
};
|
|
8583
8989
|
function pl_default() {
|
|
8584
8990
|
return {
|
|
8585
|
-
localeError:
|
|
8991
|
+
localeError: error35()
|
|
8586
8992
|
};
|
|
8587
8993
|
}
|
|
8588
8994
|
|
|
8589
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8590
|
-
var
|
|
8995
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8996
|
+
var error36 = () => {
|
|
8591
8997
|
const Sizable = {
|
|
8592
8998
|
string: { unit: "caracteres", verb: "ter" },
|
|
8593
8999
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8691,11 +9097,131 @@ var error34 = () => {
|
|
|
8691
9097
|
};
|
|
8692
9098
|
function pt_default() {
|
|
8693
9099
|
return {
|
|
8694
|
-
localeError:
|
|
9100
|
+
localeError: error36()
|
|
9101
|
+
};
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9104
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
9105
|
+
var error37 = () => {
|
|
9106
|
+
const Sizable = {
|
|
9107
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
9108
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
9109
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9110
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9111
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
9112
|
+
};
|
|
9113
|
+
function getSizing(origin) {
|
|
9114
|
+
return Sizable[origin] ?? null;
|
|
9115
|
+
}
|
|
9116
|
+
const FormatDictionary = {
|
|
9117
|
+
regex: "intrare",
|
|
9118
|
+
email: "adres\u0103 de email",
|
|
9119
|
+
url: "URL",
|
|
9120
|
+
emoji: "emoji",
|
|
9121
|
+
uuid: "UUID",
|
|
9122
|
+
uuidv4: "UUIDv4",
|
|
9123
|
+
uuidv6: "UUIDv6",
|
|
9124
|
+
nanoid: "nanoid",
|
|
9125
|
+
guid: "GUID",
|
|
9126
|
+
cuid: "cuid",
|
|
9127
|
+
cuid2: "cuid2",
|
|
9128
|
+
ulid: "ULID",
|
|
9129
|
+
xid: "XID",
|
|
9130
|
+
ksuid: "KSUID",
|
|
9131
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
9132
|
+
date: "dat\u0103 ISO",
|
|
9133
|
+
time: "or\u0103 ISO",
|
|
9134
|
+
duration: "durat\u0103 ISO",
|
|
9135
|
+
ipv4: "adres\u0103 IPv4",
|
|
9136
|
+
ipv6: "adres\u0103 IPv6",
|
|
9137
|
+
mac: "adres\u0103 MAC",
|
|
9138
|
+
cidrv4: "interval IPv4",
|
|
9139
|
+
cidrv6: "interval IPv6",
|
|
9140
|
+
base64: "\u0219ir codat base64",
|
|
9141
|
+
base64url: "\u0219ir codat base64url",
|
|
9142
|
+
json_string: "\u0219ir JSON",
|
|
9143
|
+
e164: "num\u0103r E.164",
|
|
9144
|
+
jwt: "JWT",
|
|
9145
|
+
template_literal: "intrare"
|
|
9146
|
+
};
|
|
9147
|
+
const TypeDictionary = {
|
|
9148
|
+
nan: "NaN",
|
|
9149
|
+
string: "\u0219ir",
|
|
9150
|
+
number: "num\u0103r",
|
|
9151
|
+
boolean: "boolean",
|
|
9152
|
+
function: "func\u021Bie",
|
|
9153
|
+
array: "matrice",
|
|
9154
|
+
object: "obiect",
|
|
9155
|
+
undefined: "nedefinit",
|
|
9156
|
+
symbol: "simbol",
|
|
9157
|
+
bigint: "num\u0103r mare",
|
|
9158
|
+
void: "void",
|
|
9159
|
+
never: "never",
|
|
9160
|
+
map: "hart\u0103",
|
|
9161
|
+
set: "set"
|
|
9162
|
+
};
|
|
9163
|
+
return (issue2) => {
|
|
9164
|
+
switch (issue2.code) {
|
|
9165
|
+
case "invalid_type": {
|
|
9166
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9167
|
+
const receivedType = parsedType(issue2.input);
|
|
9168
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9169
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
9170
|
+
}
|
|
9171
|
+
case "invalid_value":
|
|
9172
|
+
if (issue2.values.length === 1)
|
|
9173
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
9174
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
9175
|
+
case "too_big": {
|
|
9176
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9177
|
+
const sizing = getSizing(issue2.origin);
|
|
9178
|
+
if (sizing)
|
|
9179
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
9180
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
9181
|
+
}
|
|
9182
|
+
case "too_small": {
|
|
9183
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9184
|
+
const sizing = getSizing(issue2.origin);
|
|
9185
|
+
if (sizing) {
|
|
9186
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9187
|
+
}
|
|
9188
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
9189
|
+
}
|
|
9190
|
+
case "invalid_format": {
|
|
9191
|
+
const _issue = issue2;
|
|
9192
|
+
if (_issue.format === "starts_with") {
|
|
9193
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
9194
|
+
}
|
|
9195
|
+
if (_issue.format === "ends_with")
|
|
9196
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
9197
|
+
if (_issue.format === "includes")
|
|
9198
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
9199
|
+
if (_issue.format === "regex")
|
|
9200
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
9201
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9202
|
+
}
|
|
9203
|
+
case "not_multiple_of":
|
|
9204
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
9205
|
+
case "unrecognized_keys":
|
|
9206
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
9207
|
+
case "invalid_key":
|
|
9208
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9209
|
+
case "invalid_union":
|
|
9210
|
+
return "Intrare invalid\u0103";
|
|
9211
|
+
case "invalid_element":
|
|
9212
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9213
|
+
default:
|
|
9214
|
+
return `Intrare invalid\u0103`;
|
|
9215
|
+
}
|
|
9216
|
+
};
|
|
9217
|
+
};
|
|
9218
|
+
function ro_default() {
|
|
9219
|
+
return {
|
|
9220
|
+
localeError: error37()
|
|
8695
9221
|
};
|
|
8696
9222
|
}
|
|
8697
9223
|
|
|
8698
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9224
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8699
9225
|
function getRussianPlural(count, one, few, many) {
|
|
8700
9226
|
const absCount = Math.abs(count);
|
|
8701
9227
|
const lastDigit = absCount % 10;
|
|
@@ -8711,7 +9237,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8711
9237
|
}
|
|
8712
9238
|
return many;
|
|
8713
9239
|
}
|
|
8714
|
-
var
|
|
9240
|
+
var error38 = () => {
|
|
8715
9241
|
const Sizable = {
|
|
8716
9242
|
string: {
|
|
8717
9243
|
unit: {
|
|
@@ -8848,12 +9374,12 @@ var error35 = () => {
|
|
|
8848
9374
|
};
|
|
8849
9375
|
function ru_default() {
|
|
8850
9376
|
return {
|
|
8851
|
-
localeError:
|
|
9377
|
+
localeError: error38()
|
|
8852
9378
|
};
|
|
8853
9379
|
}
|
|
8854
9380
|
|
|
8855
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8856
|
-
var
|
|
9381
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9382
|
+
var error39 = () => {
|
|
8857
9383
|
const Sizable = {
|
|
8858
9384
|
string: { unit: "znakov", verb: "imeti" },
|
|
8859
9385
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8958,12 +9484,12 @@ var error36 = () => {
|
|
|
8958
9484
|
};
|
|
8959
9485
|
function sl_default() {
|
|
8960
9486
|
return {
|
|
8961
|
-
localeError:
|
|
9487
|
+
localeError: error39()
|
|
8962
9488
|
};
|
|
8963
9489
|
}
|
|
8964
9490
|
|
|
8965
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8966
|
-
var
|
|
9491
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9492
|
+
var error40 = () => {
|
|
8967
9493
|
const Sizable = {
|
|
8968
9494
|
string: { unit: "tecken", verb: "att ha" },
|
|
8969
9495
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -9069,12 +9595,12 @@ var error37 = () => {
|
|
|
9069
9595
|
};
|
|
9070
9596
|
function sv_default() {
|
|
9071
9597
|
return {
|
|
9072
|
-
localeError:
|
|
9598
|
+
localeError: error40()
|
|
9073
9599
|
};
|
|
9074
9600
|
}
|
|
9075
9601
|
|
|
9076
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9077
|
-
var
|
|
9602
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9603
|
+
var error41 = () => {
|
|
9078
9604
|
const Sizable = {
|
|
9079
9605
|
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" },
|
|
9080
9606
|
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" },
|
|
@@ -9180,12 +9706,12 @@ var error38 = () => {
|
|
|
9180
9706
|
};
|
|
9181
9707
|
function ta_default() {
|
|
9182
9708
|
return {
|
|
9183
|
-
localeError:
|
|
9709
|
+
localeError: error41()
|
|
9184
9710
|
};
|
|
9185
9711
|
}
|
|
9186
9712
|
|
|
9187
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9188
|
-
var
|
|
9713
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9714
|
+
var error42 = () => {
|
|
9189
9715
|
const Sizable = {
|
|
9190
9716
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
9191
9717
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9291,12 +9817,12 @@ var error39 = () => {
|
|
|
9291
9817
|
};
|
|
9292
9818
|
function th_default() {
|
|
9293
9819
|
return {
|
|
9294
|
-
localeError:
|
|
9820
|
+
localeError: error42()
|
|
9295
9821
|
};
|
|
9296
9822
|
}
|
|
9297
9823
|
|
|
9298
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9299
|
-
var
|
|
9824
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9825
|
+
var error43 = () => {
|
|
9300
9826
|
const Sizable = {
|
|
9301
9827
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
9302
9828
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9397,12 +9923,12 @@ var error40 = () => {
|
|
|
9397
9923
|
};
|
|
9398
9924
|
function tr_default() {
|
|
9399
9925
|
return {
|
|
9400
|
-
localeError:
|
|
9926
|
+
localeError: error43()
|
|
9401
9927
|
};
|
|
9402
9928
|
}
|
|
9403
9929
|
|
|
9404
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9405
|
-
var
|
|
9930
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9931
|
+
var error44 = () => {
|
|
9406
9932
|
const Sizable = {
|
|
9407
9933
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9408
9934
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9506,17 +10032,17 @@ var error41 = () => {
|
|
|
9506
10032
|
};
|
|
9507
10033
|
function uk_default() {
|
|
9508
10034
|
return {
|
|
9509
|
-
localeError:
|
|
10035
|
+
localeError: error44()
|
|
9510
10036
|
};
|
|
9511
10037
|
}
|
|
9512
10038
|
|
|
9513
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10039
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9514
10040
|
function ua_default() {
|
|
9515
10041
|
return uk_default();
|
|
9516
10042
|
}
|
|
9517
10043
|
|
|
9518
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9519
|
-
var
|
|
10044
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
10045
|
+
var error45 = () => {
|
|
9520
10046
|
const Sizable = {
|
|
9521
10047
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9522
10048
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9622,17 +10148,18 @@ var error42 = () => {
|
|
|
9622
10148
|
};
|
|
9623
10149
|
function ur_default() {
|
|
9624
10150
|
return {
|
|
9625
|
-
localeError:
|
|
10151
|
+
localeError: error45()
|
|
9626
10152
|
};
|
|
9627
10153
|
}
|
|
9628
10154
|
|
|
9629
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9630
|
-
var
|
|
10155
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
10156
|
+
var error46 = () => {
|
|
9631
10157
|
const Sizable = {
|
|
9632
10158
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9633
10159
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9634
10160
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9635
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
10161
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
10162
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9636
10163
|
};
|
|
9637
10164
|
function getSizing(origin) {
|
|
9638
10165
|
return Sizable[origin] ?? null;
|
|
@@ -9732,12 +10259,12 @@ var error43 = () => {
|
|
|
9732
10259
|
};
|
|
9733
10260
|
function uz_default() {
|
|
9734
10261
|
return {
|
|
9735
|
-
localeError:
|
|
10262
|
+
localeError: error46()
|
|
9736
10263
|
};
|
|
9737
10264
|
}
|
|
9738
10265
|
|
|
9739
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9740
|
-
var
|
|
10266
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
10267
|
+
var error47 = () => {
|
|
9741
10268
|
const Sizable = {
|
|
9742
10269
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9743
10270
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9841,12 +10368,12 @@ var error44 = () => {
|
|
|
9841
10368
|
};
|
|
9842
10369
|
function vi_default() {
|
|
9843
10370
|
return {
|
|
9844
|
-
localeError:
|
|
10371
|
+
localeError: error47()
|
|
9845
10372
|
};
|
|
9846
10373
|
}
|
|
9847
10374
|
|
|
9848
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9849
|
-
var
|
|
10375
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10376
|
+
var error48 = () => {
|
|
9850
10377
|
const Sizable = {
|
|
9851
10378
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9852
10379
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9951,12 +10478,12 @@ var error45 = () => {
|
|
|
9951
10478
|
};
|
|
9952
10479
|
function zh_CN_default() {
|
|
9953
10480
|
return {
|
|
9954
|
-
localeError:
|
|
10481
|
+
localeError: error48()
|
|
9955
10482
|
};
|
|
9956
10483
|
}
|
|
9957
10484
|
|
|
9958
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9959
|
-
var
|
|
10485
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10486
|
+
var error49 = () => {
|
|
9960
10487
|
const Sizable = {
|
|
9961
10488
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9962
10489
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -10059,12 +10586,12 @@ var error46 = () => {
|
|
|
10059
10586
|
};
|
|
10060
10587
|
function zh_TW_default() {
|
|
10061
10588
|
return {
|
|
10062
|
-
localeError:
|
|
10589
|
+
localeError: error49()
|
|
10063
10590
|
};
|
|
10064
10591
|
}
|
|
10065
10592
|
|
|
10066
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10067
|
-
var
|
|
10593
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10594
|
+
var error50 = () => {
|
|
10068
10595
|
const Sizable = {
|
|
10069
10596
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
10070
10597
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -10167,12 +10694,12 @@ var error47 = () => {
|
|
|
10167
10694
|
};
|
|
10168
10695
|
function yo_default() {
|
|
10169
10696
|
return {
|
|
10170
|
-
localeError:
|
|
10697
|
+
localeError: error50()
|
|
10171
10698
|
};
|
|
10172
10699
|
}
|
|
10173
10700
|
|
|
10174
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10175
|
-
var
|
|
10701
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10702
|
+
var _a2;
|
|
10176
10703
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10177
10704
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
10178
10705
|
var $ZodRegistry = class {
|
|
@@ -10218,10 +10745,10 @@ var $ZodRegistry = class {
|
|
|
10218
10745
|
function registry() {
|
|
10219
10746
|
return new $ZodRegistry();
|
|
10220
10747
|
}
|
|
10221
|
-
(
|
|
10748
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10222
10749
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10223
10750
|
|
|
10224
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10751
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
10225
10752
|
// @__NO_SIDE_EFFECTS__
|
|
10226
10753
|
function _string(Class2, params) {
|
|
10227
10754
|
return new Class2({
|
|
@@ -11136,7 +11663,7 @@ function _refine(Class2, fn, _params) {
|
|
|
11136
11663
|
return schema;
|
|
11137
11664
|
}
|
|
11138
11665
|
// @__NO_SIDE_EFFECTS__
|
|
11139
|
-
function _superRefine(fn) {
|
|
11666
|
+
function _superRefine(fn, params) {
|
|
11140
11667
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
11141
11668
|
payload.addIssue = (issue2) => {
|
|
11142
11669
|
if (typeof issue2 === "string") {
|
|
@@ -11153,7 +11680,7 @@ function _superRefine(fn) {
|
|
|
11153
11680
|
}
|
|
11154
11681
|
};
|
|
11155
11682
|
return fn(payload.value, payload);
|
|
11156
|
-
});
|
|
11683
|
+
}, params);
|
|
11157
11684
|
return ch;
|
|
11158
11685
|
}
|
|
11159
11686
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11260,7 +11787,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11260
11787
|
return inst;
|
|
11261
11788
|
}
|
|
11262
11789
|
|
|
11263
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
11790
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
11264
11791
|
function initializeContext(params) {
|
|
11265
11792
|
let target = params?.target ?? "draft-2020-12";
|
|
11266
11793
|
if (target === "draft-4")
|
|
@@ -11283,7 +11810,7 @@ function initializeContext(params) {
|
|
|
11283
11810
|
};
|
|
11284
11811
|
}
|
|
11285
11812
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11286
|
-
var
|
|
11813
|
+
var _a3;
|
|
11287
11814
|
const def = schema._zod.def;
|
|
11288
11815
|
const seen = ctx.seen.get(schema);
|
|
11289
11816
|
if (seen) {
|
|
@@ -11330,8 +11857,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11330
11857
|
delete result.schema.examples;
|
|
11331
11858
|
delete result.schema.default;
|
|
11332
11859
|
}
|
|
11333
|
-
if (ctx.io === "input" && result.schema
|
|
11334
|
-
(
|
|
11860
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11861
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
11335
11862
|
delete result.schema._prefault;
|
|
11336
11863
|
const _result = ctx.seen.get(schema);
|
|
11337
11864
|
return _result.schema;
|
|
@@ -11512,10 +12039,15 @@ function finalize(ctx, schema) {
|
|
|
11512
12039
|
result.$id = ctx.external.uri(id);
|
|
11513
12040
|
}
|
|
11514
12041
|
Object.assign(result, root.def ?? root.schema);
|
|
12042
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
12043
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
12044
|
+
delete result.id;
|
|
11515
12045
|
const defs = ctx.external?.defs ?? {};
|
|
11516
12046
|
for (const entry of ctx.seen.entries()) {
|
|
11517
12047
|
const seen = entry[1];
|
|
11518
12048
|
if (seen.def && seen.defId) {
|
|
12049
|
+
if (seen.def.id === seen.defId)
|
|
12050
|
+
delete seen.def.id;
|
|
11519
12051
|
defs[seen.defId] = seen.def;
|
|
11520
12052
|
}
|
|
11521
12053
|
}
|
|
@@ -11571,6 +12103,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11571
12103
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11572
12104
|
}
|
|
11573
12105
|
if (def.type === "pipe") {
|
|
12106
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12107
|
+
return true;
|
|
11574
12108
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11575
12109
|
}
|
|
11576
12110
|
if (def.type === "object") {
|
|
@@ -11612,7 +12146,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11612
12146
|
return finalize(ctx, schema);
|
|
11613
12147
|
};
|
|
11614
12148
|
|
|
11615
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12149
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11616
12150
|
var formatMap = {
|
|
11617
12151
|
guid: "uuid",
|
|
11618
12152
|
url: "uri",
|
|
@@ -11660,39 +12194,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11660
12194
|
json2.type = "integer";
|
|
11661
12195
|
else
|
|
11662
12196
|
json2.type = "number";
|
|
11663
|
-
|
|
11664
|
-
|
|
12197
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
12198
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
12199
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
12200
|
+
if (exMin) {
|
|
12201
|
+
if (legacy) {
|
|
11665
12202
|
json2.minimum = exclusiveMinimum;
|
|
11666
12203
|
json2.exclusiveMinimum = true;
|
|
11667
12204
|
} else {
|
|
11668
12205
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11669
12206
|
}
|
|
11670
|
-
}
|
|
11671
|
-
if (typeof minimum === "number") {
|
|
12207
|
+
} else if (typeof minimum === "number") {
|
|
11672
12208
|
json2.minimum = minimum;
|
|
11673
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11674
|
-
if (exclusiveMinimum >= minimum)
|
|
11675
|
-
delete json2.minimum;
|
|
11676
|
-
else
|
|
11677
|
-
delete json2.exclusiveMinimum;
|
|
11678
|
-
}
|
|
11679
12209
|
}
|
|
11680
|
-
if (
|
|
11681
|
-
if (
|
|
12210
|
+
if (exMax) {
|
|
12211
|
+
if (legacy) {
|
|
11682
12212
|
json2.maximum = exclusiveMaximum;
|
|
11683
12213
|
json2.exclusiveMaximum = true;
|
|
11684
12214
|
} else {
|
|
11685
12215
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11686
12216
|
}
|
|
11687
|
-
}
|
|
11688
|
-
if (typeof maximum === "number") {
|
|
12217
|
+
} else if (typeof maximum === "number") {
|
|
11689
12218
|
json2.maximum = maximum;
|
|
11690
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11691
|
-
if (exclusiveMaximum <= maximum)
|
|
11692
|
-
delete json2.maximum;
|
|
11693
|
-
else
|
|
11694
|
-
delete json2.exclusiveMaximum;
|
|
11695
|
-
}
|
|
11696
12219
|
}
|
|
11697
12220
|
if (typeof multipleOf === "number")
|
|
11698
12221
|
json2.multipleOf = multipleOf;
|
|
@@ -11864,7 +12387,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11864
12387
|
if (typeof maximum === "number")
|
|
11865
12388
|
json2.maxItems = maximum;
|
|
11866
12389
|
json2.type = "array";
|
|
11867
|
-
json2.items = process2(def.element, ctx, {
|
|
12390
|
+
json2.items = process2(def.element, ctx, {
|
|
12391
|
+
...params,
|
|
12392
|
+
path: [...params.path, "items"]
|
|
12393
|
+
});
|
|
11868
12394
|
};
|
|
11869
12395
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11870
12396
|
const json2 = _json;
|
|
@@ -12057,7 +12583,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
12057
12583
|
};
|
|
12058
12584
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12059
12585
|
const def = schema._zod.def;
|
|
12060
|
-
const
|
|
12586
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12587
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12061
12588
|
process2(innerType, ctx, params);
|
|
12062
12589
|
const seen = ctx.seen.get(schema);
|
|
12063
12590
|
seen.ref = innerType;
|
|
@@ -12163,7 +12690,7 @@ function toJSONSchema(input, params) {
|
|
|
12163
12690
|
return finalize(ctx, input);
|
|
12164
12691
|
}
|
|
12165
12692
|
|
|
12166
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12693
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
12167
12694
|
var JSONSchemaGenerator = class {
|
|
12168
12695
|
/** @deprecated Access via ctx instead */
|
|
12169
12696
|
get metadataRegistry() {
|
|
@@ -12238,10 +12765,10 @@ var JSONSchemaGenerator = class {
|
|
|
12238
12765
|
}
|
|
12239
12766
|
};
|
|
12240
12767
|
|
|
12241
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12768
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
12242
12769
|
var json_schema_exports = {};
|
|
12243
12770
|
|
|
12244
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12771
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12245
12772
|
var schemas_exports2 = {};
|
|
12246
12773
|
__export(schemas_exports2, {
|
|
12247
12774
|
ZodAny: () => ZodAny,
|
|
@@ -12291,6 +12818,7 @@ __export(schemas_exports2, {
|
|
|
12291
12818
|
ZodOptional: () => ZodOptional,
|
|
12292
12819
|
ZodPipe: () => ZodPipe,
|
|
12293
12820
|
ZodPrefault: () => ZodPrefault,
|
|
12821
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
12294
12822
|
ZodPromise: () => ZodPromise,
|
|
12295
12823
|
ZodReadonly: () => ZodReadonly,
|
|
12296
12824
|
ZodRecord: () => ZodRecord,
|
|
@@ -12351,6 +12879,7 @@ __export(schemas_exports2, {
|
|
|
12351
12879
|
int32: () => int32,
|
|
12352
12880
|
int64: () => int64,
|
|
12353
12881
|
intersection: () => intersection,
|
|
12882
|
+
invertCodec: () => invertCodec,
|
|
12354
12883
|
ipv4: () => ipv42,
|
|
12355
12884
|
ipv6: () => ipv62,
|
|
12356
12885
|
json: () => json,
|
|
@@ -12410,7 +12939,7 @@ __export(schemas_exports2, {
|
|
|
12410
12939
|
xor: () => xor
|
|
12411
12940
|
});
|
|
12412
12941
|
|
|
12413
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12942
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12414
12943
|
var checks_exports2 = {};
|
|
12415
12944
|
__export(checks_exports2, {
|
|
12416
12945
|
endsWith: () => _endsWith,
|
|
@@ -12444,7 +12973,7 @@ __export(checks_exports2, {
|
|
|
12444
12973
|
uppercase: () => _uppercase
|
|
12445
12974
|
});
|
|
12446
12975
|
|
|
12447
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12976
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12448
12977
|
var iso_exports = {};
|
|
12449
12978
|
__export(iso_exports, {
|
|
12450
12979
|
ZodISODate: () => ZodISODate,
|
|
@@ -12485,7 +13014,7 @@ function duration2(params) {
|
|
|
12485
13014
|
return _isoDuration(ZodISODuration, params);
|
|
12486
13015
|
}
|
|
12487
13016
|
|
|
12488
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13017
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12489
13018
|
var initializer2 = (inst, issues) => {
|
|
12490
13019
|
$ZodError.init(inst, issues);
|
|
12491
13020
|
inst.name = "ZodError";
|
|
@@ -12520,12 +13049,12 @@ var initializer2 = (inst, issues) => {
|
|
|
12520
13049
|
}
|
|
12521
13050
|
});
|
|
12522
13051
|
};
|
|
12523
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12524
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
13052
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
13053
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12525
13054
|
Parent: Error
|
|
12526
13055
|
});
|
|
12527
13056
|
|
|
12528
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13057
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12529
13058
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12530
13059
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12531
13060
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12539,7 +13068,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12539
13068
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12540
13069
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12541
13070
|
|
|
12542
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13071
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
13072
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
13073
|
+
function _installLazyMethods(inst, group, methods) {
|
|
13074
|
+
const proto = Object.getPrototypeOf(inst);
|
|
13075
|
+
let installed = _installedGroups.get(proto);
|
|
13076
|
+
if (!installed) {
|
|
13077
|
+
installed = /* @__PURE__ */ new Set();
|
|
13078
|
+
_installedGroups.set(proto, installed);
|
|
13079
|
+
}
|
|
13080
|
+
if (installed.has(group))
|
|
13081
|
+
return;
|
|
13082
|
+
installed.add(group);
|
|
13083
|
+
for (const key in methods) {
|
|
13084
|
+
const fn = methods[key];
|
|
13085
|
+
Object.defineProperty(proto, key, {
|
|
13086
|
+
configurable: true,
|
|
13087
|
+
enumerable: false,
|
|
13088
|
+
get() {
|
|
13089
|
+
const bound = fn.bind(this);
|
|
13090
|
+
Object.defineProperty(this, key, {
|
|
13091
|
+
configurable: true,
|
|
13092
|
+
writable: true,
|
|
13093
|
+
enumerable: true,
|
|
13094
|
+
value: bound
|
|
13095
|
+
});
|
|
13096
|
+
return bound;
|
|
13097
|
+
},
|
|
13098
|
+
set(v) {
|
|
13099
|
+
Object.defineProperty(this, key, {
|
|
13100
|
+
configurable: true,
|
|
13101
|
+
writable: true,
|
|
13102
|
+
enumerable: true,
|
|
13103
|
+
value: v
|
|
13104
|
+
});
|
|
13105
|
+
}
|
|
13106
|
+
});
|
|
13107
|
+
}
|
|
13108
|
+
}
|
|
12543
13109
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12544
13110
|
$ZodType.init(inst, def);
|
|
12545
13111
|
Object.assign(inst["~standard"], {
|
|
@@ -12552,23 +13118,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12552
13118
|
inst.def = def;
|
|
12553
13119
|
inst.type = def.type;
|
|
12554
13120
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12555
|
-
inst.check = (...checks) => {
|
|
12556
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12557
|
-
checks: [
|
|
12558
|
-
...def.checks ?? [],
|
|
12559
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12560
|
-
]
|
|
12561
|
-
}), {
|
|
12562
|
-
parent: true
|
|
12563
|
-
});
|
|
12564
|
-
};
|
|
12565
|
-
inst.with = inst.check;
|
|
12566
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12567
|
-
inst.brand = () => inst;
|
|
12568
|
-
inst.register = ((reg, meta3) => {
|
|
12569
|
-
reg.add(inst, meta3);
|
|
12570
|
-
return inst;
|
|
12571
|
-
});
|
|
12572
13121
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12573
13122
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12574
13123
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12582,45 +13131,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12582
13131
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12583
13132
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12584
13133
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12585
|
-
inst
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
13134
|
+
_installLazyMethods(inst, "ZodType", {
|
|
13135
|
+
check(...chks) {
|
|
13136
|
+
const def2 = this.def;
|
|
13137
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
13138
|
+
checks: [
|
|
13139
|
+
...def2.checks ?? [],
|
|
13140
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
13141
|
+
]
|
|
13142
|
+
}), { parent: true });
|
|
13143
|
+
},
|
|
13144
|
+
with(...chks) {
|
|
13145
|
+
return this.check(...chks);
|
|
13146
|
+
},
|
|
13147
|
+
clone(def2, params) {
|
|
13148
|
+
return clone(this, def2, params);
|
|
13149
|
+
},
|
|
13150
|
+
brand() {
|
|
13151
|
+
return this;
|
|
13152
|
+
},
|
|
13153
|
+
register(reg, meta3) {
|
|
13154
|
+
reg.add(this, meta3);
|
|
13155
|
+
return this;
|
|
13156
|
+
},
|
|
13157
|
+
refine(check2, params) {
|
|
13158
|
+
return this.check(refine(check2, params));
|
|
13159
|
+
},
|
|
13160
|
+
superRefine(refinement, params) {
|
|
13161
|
+
return this.check(superRefine(refinement, params));
|
|
13162
|
+
},
|
|
13163
|
+
overwrite(fn) {
|
|
13164
|
+
return this.check(_overwrite(fn));
|
|
13165
|
+
},
|
|
13166
|
+
optional() {
|
|
13167
|
+
return optional(this);
|
|
13168
|
+
},
|
|
13169
|
+
exactOptional() {
|
|
13170
|
+
return exactOptional(this);
|
|
13171
|
+
},
|
|
13172
|
+
nullable() {
|
|
13173
|
+
return nullable(this);
|
|
13174
|
+
},
|
|
13175
|
+
nullish() {
|
|
13176
|
+
return optional(nullable(this));
|
|
13177
|
+
},
|
|
13178
|
+
nonoptional(params) {
|
|
13179
|
+
return nonoptional(this, params);
|
|
13180
|
+
},
|
|
13181
|
+
array() {
|
|
13182
|
+
return array(this);
|
|
13183
|
+
},
|
|
13184
|
+
or(arg) {
|
|
13185
|
+
return union([this, arg]);
|
|
13186
|
+
},
|
|
13187
|
+
and(arg) {
|
|
13188
|
+
return intersection(this, arg);
|
|
13189
|
+
},
|
|
13190
|
+
transform(tx) {
|
|
13191
|
+
return pipe(this, transform(tx));
|
|
13192
|
+
},
|
|
13193
|
+
default(d) {
|
|
13194
|
+
return _default2(this, d);
|
|
13195
|
+
},
|
|
13196
|
+
prefault(d) {
|
|
13197
|
+
return prefault(this, d);
|
|
13198
|
+
},
|
|
13199
|
+
catch(params) {
|
|
13200
|
+
return _catch2(this, params);
|
|
13201
|
+
},
|
|
13202
|
+
pipe(target) {
|
|
13203
|
+
return pipe(this, target);
|
|
13204
|
+
},
|
|
13205
|
+
readonly() {
|
|
13206
|
+
return readonly(this);
|
|
13207
|
+
},
|
|
13208
|
+
describe(description) {
|
|
13209
|
+
const cl = this.clone();
|
|
13210
|
+
globalRegistry.add(cl, { description });
|
|
13211
|
+
return cl;
|
|
13212
|
+
},
|
|
13213
|
+
meta(...args) {
|
|
13214
|
+
if (args.length === 0)
|
|
13215
|
+
return globalRegistry.get(this);
|
|
13216
|
+
const cl = this.clone();
|
|
13217
|
+
globalRegistry.add(cl, args[0]);
|
|
13218
|
+
return cl;
|
|
13219
|
+
},
|
|
13220
|
+
isOptional() {
|
|
13221
|
+
return this.safeParse(void 0).success;
|
|
13222
|
+
},
|
|
13223
|
+
isNullable() {
|
|
13224
|
+
return this.safeParse(null).success;
|
|
13225
|
+
},
|
|
13226
|
+
apply(fn) {
|
|
13227
|
+
return fn(this);
|
|
13228
|
+
}
|
|
13229
|
+
});
|
|
12607
13230
|
Object.defineProperty(inst, "description", {
|
|
12608
13231
|
get() {
|
|
12609
13232
|
return globalRegistry.get(inst)?.description;
|
|
12610
13233
|
},
|
|
12611
13234
|
configurable: true
|
|
12612
13235
|
});
|
|
12613
|
-
inst.meta = (...args) => {
|
|
12614
|
-
if (args.length === 0) {
|
|
12615
|
-
return globalRegistry.get(inst);
|
|
12616
|
-
}
|
|
12617
|
-
const cl = inst.clone();
|
|
12618
|
-
globalRegistry.add(cl, args[0]);
|
|
12619
|
-
return cl;
|
|
12620
|
-
};
|
|
12621
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12622
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12623
|
-
inst.apply = (fn) => fn(inst);
|
|
12624
13236
|
return inst;
|
|
12625
13237
|
});
|
|
12626
13238
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12631,21 +13243,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12631
13243
|
inst.format = bag.format ?? null;
|
|
12632
13244
|
inst.minLength = bag.minimum ?? null;
|
|
12633
13245
|
inst.maxLength = bag.maximum ?? null;
|
|
12634
|
-
inst
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
13246
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
13247
|
+
regex(...args) {
|
|
13248
|
+
return this.check(_regex(...args));
|
|
13249
|
+
},
|
|
13250
|
+
includes(...args) {
|
|
13251
|
+
return this.check(_includes(...args));
|
|
13252
|
+
},
|
|
13253
|
+
startsWith(...args) {
|
|
13254
|
+
return this.check(_startsWith(...args));
|
|
13255
|
+
},
|
|
13256
|
+
endsWith(...args) {
|
|
13257
|
+
return this.check(_endsWith(...args));
|
|
13258
|
+
},
|
|
13259
|
+
min(...args) {
|
|
13260
|
+
return this.check(_minLength(...args));
|
|
13261
|
+
},
|
|
13262
|
+
max(...args) {
|
|
13263
|
+
return this.check(_maxLength(...args));
|
|
13264
|
+
},
|
|
13265
|
+
length(...args) {
|
|
13266
|
+
return this.check(_length(...args));
|
|
13267
|
+
},
|
|
13268
|
+
nonempty(...args) {
|
|
13269
|
+
return this.check(_minLength(1, ...args));
|
|
13270
|
+
},
|
|
13271
|
+
lowercase(params) {
|
|
13272
|
+
return this.check(_lowercase(params));
|
|
13273
|
+
},
|
|
13274
|
+
uppercase(params) {
|
|
13275
|
+
return this.check(_uppercase(params));
|
|
13276
|
+
},
|
|
13277
|
+
trim() {
|
|
13278
|
+
return this.check(_trim());
|
|
13279
|
+
},
|
|
13280
|
+
normalize(...args) {
|
|
13281
|
+
return this.check(_normalize(...args));
|
|
13282
|
+
},
|
|
13283
|
+
toLowerCase() {
|
|
13284
|
+
return this.check(_toLowerCase());
|
|
13285
|
+
},
|
|
13286
|
+
toUpperCase() {
|
|
13287
|
+
return this.check(_toUpperCase());
|
|
13288
|
+
},
|
|
13289
|
+
slugify() {
|
|
13290
|
+
return this.check(_slugify());
|
|
13291
|
+
}
|
|
13292
|
+
});
|
|
12649
13293
|
});
|
|
12650
13294
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12651
13295
|
$ZodString.init(inst, def);
|
|
@@ -12724,7 +13368,7 @@ function url(params) {
|
|
|
12724
13368
|
}
|
|
12725
13369
|
function httpUrl(params) {
|
|
12726
13370
|
return _url(ZodURL, {
|
|
12727
|
-
protocol:
|
|
13371
|
+
protocol: regexes_exports.httpProtocol,
|
|
12728
13372
|
hostname: regexes_exports.domain,
|
|
12729
13373
|
...util_exports.normalizeParams(params)
|
|
12730
13374
|
});
|
|
@@ -12866,21 +13510,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12866
13510
|
$ZodNumber.init(inst, def);
|
|
12867
13511
|
ZodType.init(inst, def);
|
|
12868
13512
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12869
|
-
inst
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
13513
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13514
|
+
gt(value, params) {
|
|
13515
|
+
return this.check(_gt(value, params));
|
|
13516
|
+
},
|
|
13517
|
+
gte(value, params) {
|
|
13518
|
+
return this.check(_gte(value, params));
|
|
13519
|
+
},
|
|
13520
|
+
min(value, params) {
|
|
13521
|
+
return this.check(_gte(value, params));
|
|
13522
|
+
},
|
|
13523
|
+
lt(value, params) {
|
|
13524
|
+
return this.check(_lt(value, params));
|
|
13525
|
+
},
|
|
13526
|
+
lte(value, params) {
|
|
13527
|
+
return this.check(_lte(value, params));
|
|
13528
|
+
},
|
|
13529
|
+
max(value, params) {
|
|
13530
|
+
return this.check(_lte(value, params));
|
|
13531
|
+
},
|
|
13532
|
+
int(params) {
|
|
13533
|
+
return this.check(int(params));
|
|
13534
|
+
},
|
|
13535
|
+
safe(params) {
|
|
13536
|
+
return this.check(int(params));
|
|
13537
|
+
},
|
|
13538
|
+
positive(params) {
|
|
13539
|
+
return this.check(_gt(0, params));
|
|
13540
|
+
},
|
|
13541
|
+
nonnegative(params) {
|
|
13542
|
+
return this.check(_gte(0, params));
|
|
13543
|
+
},
|
|
13544
|
+
negative(params) {
|
|
13545
|
+
return this.check(_lt(0, params));
|
|
13546
|
+
},
|
|
13547
|
+
nonpositive(params) {
|
|
13548
|
+
return this.check(_lte(0, params));
|
|
13549
|
+
},
|
|
13550
|
+
multipleOf(value, params) {
|
|
13551
|
+
return this.check(_multipleOf(value, params));
|
|
13552
|
+
},
|
|
13553
|
+
step(value, params) {
|
|
13554
|
+
return this.check(_multipleOf(value, params));
|
|
13555
|
+
},
|
|
13556
|
+
finite() {
|
|
13557
|
+
return this;
|
|
13558
|
+
}
|
|
13559
|
+
});
|
|
12884
13560
|
const bag = inst._zod.bag;
|
|
12885
13561
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12886
13562
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -13027,11 +13703,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
13027
13703
|
ZodType.init(inst, def);
|
|
13028
13704
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
13029
13705
|
inst.element = def.element;
|
|
13030
|
-
inst
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13706
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13707
|
+
min(n, params) {
|
|
13708
|
+
return this.check(_minLength(n, params));
|
|
13709
|
+
},
|
|
13710
|
+
nonempty(params) {
|
|
13711
|
+
return this.check(_minLength(1, params));
|
|
13712
|
+
},
|
|
13713
|
+
max(n, params) {
|
|
13714
|
+
return this.check(_maxLength(n, params));
|
|
13715
|
+
},
|
|
13716
|
+
length(n, params) {
|
|
13717
|
+
return this.check(_length(n, params));
|
|
13718
|
+
},
|
|
13719
|
+
unwrap() {
|
|
13720
|
+
return this.element;
|
|
13721
|
+
}
|
|
13722
|
+
});
|
|
13035
13723
|
});
|
|
13036
13724
|
function array(element, params) {
|
|
13037
13725
|
return _array(ZodArray, element, params);
|
|
@@ -13047,23 +13735,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
13047
13735
|
util_exports.defineLazy(inst, "shape", () => {
|
|
13048
13736
|
return def.shape;
|
|
13049
13737
|
});
|
|
13050
|
-
inst
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13738
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13739
|
+
keyof() {
|
|
13740
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13741
|
+
},
|
|
13742
|
+
catchall(catchall) {
|
|
13743
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13744
|
+
},
|
|
13745
|
+
passthrough() {
|
|
13746
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13747
|
+
},
|
|
13748
|
+
loose() {
|
|
13749
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13750
|
+
},
|
|
13751
|
+
strict() {
|
|
13752
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13753
|
+
},
|
|
13754
|
+
strip() {
|
|
13755
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13756
|
+
},
|
|
13757
|
+
extend(incoming) {
|
|
13758
|
+
return util_exports.extend(this, incoming);
|
|
13759
|
+
},
|
|
13760
|
+
safeExtend(incoming) {
|
|
13761
|
+
return util_exports.safeExtend(this, incoming);
|
|
13762
|
+
},
|
|
13763
|
+
merge(other) {
|
|
13764
|
+
return util_exports.merge(this, other);
|
|
13765
|
+
},
|
|
13766
|
+
pick(mask) {
|
|
13767
|
+
return util_exports.pick(this, mask);
|
|
13768
|
+
},
|
|
13769
|
+
omit(mask) {
|
|
13770
|
+
return util_exports.omit(this, mask);
|
|
13771
|
+
},
|
|
13772
|
+
partial(...args) {
|
|
13773
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13774
|
+
},
|
|
13775
|
+
required(...args) {
|
|
13776
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13777
|
+
}
|
|
13778
|
+
});
|
|
13067
13779
|
});
|
|
13068
13780
|
function object(shape, params) {
|
|
13069
13781
|
const def = {
|
|
@@ -13168,6 +13880,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
13168
13880
|
inst.valueType = def.valueType;
|
|
13169
13881
|
});
|
|
13170
13882
|
function record(keyType, valueType, params) {
|
|
13883
|
+
if (!valueType || !valueType._zod) {
|
|
13884
|
+
return new ZodRecord({
|
|
13885
|
+
type: "record",
|
|
13886
|
+
keyType: string2(),
|
|
13887
|
+
valueType: keyType,
|
|
13888
|
+
...util_exports.normalizeParams(valueType)
|
|
13889
|
+
});
|
|
13890
|
+
}
|
|
13171
13891
|
return new ZodRecord({
|
|
13172
13892
|
type: "record",
|
|
13173
13893
|
keyType,
|
|
@@ -13339,10 +14059,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
13339
14059
|
if (output instanceof Promise) {
|
|
13340
14060
|
return output.then((output2) => {
|
|
13341
14061
|
payload.value = output2;
|
|
14062
|
+
payload.fallback = true;
|
|
13342
14063
|
return payload;
|
|
13343
14064
|
});
|
|
13344
14065
|
}
|
|
13345
14066
|
payload.value = output;
|
|
14067
|
+
payload.fallback = true;
|
|
13346
14068
|
return payload;
|
|
13347
14069
|
};
|
|
13348
14070
|
});
|
|
@@ -13497,6 +14219,20 @@ function codec(in_, out, params) {
|
|
|
13497
14219
|
reverseTransform: params.encode
|
|
13498
14220
|
});
|
|
13499
14221
|
}
|
|
14222
|
+
function invertCodec(codec2) {
|
|
14223
|
+
const def = codec2._zod.def;
|
|
14224
|
+
return new ZodCodec({
|
|
14225
|
+
type: "pipe",
|
|
14226
|
+
in: def.out,
|
|
14227
|
+
out: def.in,
|
|
14228
|
+
transform: def.reverseTransform,
|
|
14229
|
+
reverseTransform: def.transform
|
|
14230
|
+
});
|
|
14231
|
+
}
|
|
14232
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
14233
|
+
ZodPipe.init(inst, def);
|
|
14234
|
+
$ZodPreprocess.init(inst, def);
|
|
14235
|
+
});
|
|
13500
14236
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13501
14237
|
$ZodReadonly.init(inst, def);
|
|
13502
14238
|
ZodType.init(inst, def);
|
|
@@ -13576,8 +14312,8 @@ function custom(fn, _params) {
|
|
|
13576
14312
|
function refine(fn, _params = {}) {
|
|
13577
14313
|
return _refine(ZodCustom, fn, _params);
|
|
13578
14314
|
}
|
|
13579
|
-
function superRefine(fn) {
|
|
13580
|
-
return _superRefine(fn);
|
|
14315
|
+
function superRefine(fn, params) {
|
|
14316
|
+
return _superRefine(fn, params);
|
|
13581
14317
|
}
|
|
13582
14318
|
var describe2 = describe;
|
|
13583
14319
|
var meta2 = meta;
|
|
@@ -13615,10 +14351,14 @@ function json(params) {
|
|
|
13615
14351
|
return jsonSchema;
|
|
13616
14352
|
}
|
|
13617
14353
|
function preprocess(fn, schema) {
|
|
13618
|
-
return
|
|
14354
|
+
return new ZodPreprocess({
|
|
14355
|
+
type: "pipe",
|
|
14356
|
+
in: transform(fn),
|
|
14357
|
+
out: schema
|
|
14358
|
+
});
|
|
13619
14359
|
}
|
|
13620
14360
|
|
|
13621
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14361
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13622
14362
|
var ZodIssueCode = {
|
|
13623
14363
|
invalid_type: "invalid_type",
|
|
13624
14364
|
too_big: "too_big",
|
|
@@ -13644,7 +14384,7 @@ var ZodFirstPartyTypeKind;
|
|
|
13644
14384
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13645
14385
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13646
14386
|
|
|
13647
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14387
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13648
14388
|
var z = {
|
|
13649
14389
|
...schemas_exports2,
|
|
13650
14390
|
...checks_exports2,
|
|
@@ -14036,12 +14776,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
14036
14776
|
default:
|
|
14037
14777
|
throw new Error(`Unsupported type: ${type}`);
|
|
14038
14778
|
}
|
|
14039
|
-
if (schema.description) {
|
|
14040
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
14041
|
-
}
|
|
14042
|
-
if (schema.default !== void 0) {
|
|
14043
|
-
zodSchema = zodSchema.default(schema.default);
|
|
14044
|
-
}
|
|
14045
14779
|
return zodSchema;
|
|
14046
14780
|
}
|
|
14047
14781
|
function convertSchema(schema, ctx) {
|
|
@@ -14078,6 +14812,9 @@ function convertSchema(schema, ctx) {
|
|
|
14078
14812
|
if (schema.readOnly === true) {
|
|
14079
14813
|
baseSchema = z.readonly(baseSchema);
|
|
14080
14814
|
}
|
|
14815
|
+
if (schema.default !== void 0) {
|
|
14816
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14817
|
+
}
|
|
14081
14818
|
const extraMeta = {};
|
|
14082
14819
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
14083
14820
|
for (const key of coreMetadataKeys) {
|
|
@@ -14099,26 +14836,35 @@ function convertSchema(schema, ctx) {
|
|
|
14099
14836
|
if (Object.keys(extraMeta).length > 0) {
|
|
14100
14837
|
ctx.registry.add(baseSchema, extraMeta);
|
|
14101
14838
|
}
|
|
14839
|
+
if (schema.description) {
|
|
14840
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14841
|
+
}
|
|
14102
14842
|
return baseSchema;
|
|
14103
14843
|
}
|
|
14104
14844
|
function fromJSONSchema(schema, params) {
|
|
14105
14845
|
if (typeof schema === "boolean") {
|
|
14106
14846
|
return schema ? z.any() : z.never();
|
|
14107
14847
|
}
|
|
14108
|
-
|
|
14109
|
-
|
|
14848
|
+
let normalized;
|
|
14849
|
+
try {
|
|
14850
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14851
|
+
} catch {
|
|
14852
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14853
|
+
}
|
|
14854
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14855
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
14110
14856
|
const ctx = {
|
|
14111
14857
|
version: version2,
|
|
14112
14858
|
defs,
|
|
14113
14859
|
refs: /* @__PURE__ */ new Map(),
|
|
14114
14860
|
processing: /* @__PURE__ */ new Set(),
|
|
14115
|
-
rootSchema:
|
|
14861
|
+
rootSchema: normalized,
|
|
14116
14862
|
registry: params?.registry ?? globalRegistry
|
|
14117
14863
|
};
|
|
14118
|
-
return convertSchema(
|
|
14864
|
+
return convertSchema(normalized, ctx);
|
|
14119
14865
|
}
|
|
14120
14866
|
|
|
14121
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14867
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
14122
14868
|
var coerce_exports = {};
|
|
14123
14869
|
__export(coerce_exports, {
|
|
14124
14870
|
bigint: () => bigint3,
|
|
@@ -14143,7 +14889,7 @@ function date4(params) {
|
|
|
14143
14889
|
return _coercedDate(ZodDate, params);
|
|
14144
14890
|
}
|
|
14145
14891
|
|
|
14146
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14892
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
14147
14893
|
config(en_default());
|
|
14148
14894
|
|
|
14149
14895
|
// src/schemas.ts
|
|
@@ -14966,8 +15712,8 @@ var SlackProvider = class {
|
|
|
14966
15712
|
}
|
|
14967
15713
|
const iconData = await iconResponse.arrayBuffer();
|
|
14968
15714
|
await client.setAppIcon(appCredentials.appId, iconData);
|
|
14969
|
-
} catch (
|
|
14970
|
-
console.warn(`[Slack] Failed to set app icon for "${agentId}":`,
|
|
15715
|
+
} catch (error51) {
|
|
15716
|
+
console.warn(`[Slack] Failed to set app icon for "${agentId}":`, error51);
|
|
14971
15717
|
}
|
|
14972
15718
|
}
|
|
14973
15719
|
const installationId = crypto.randomUUID();
|
|
@@ -15114,8 +15860,8 @@ var SlackProvider = class {
|
|
|
15114
15860
|
try {
|
|
15115
15861
|
const result = await this.connect(agentId, options);
|
|
15116
15862
|
return c.json(result);
|
|
15117
|
-
} catch (
|
|
15118
|
-
const message =
|
|
15863
|
+
} catch (error51) {
|
|
15864
|
+
const message = error51 instanceof Error ? error51.message : "Failed to connect";
|
|
15119
15865
|
return c.json({ error: message }, 500);
|
|
15120
15866
|
}
|
|
15121
15867
|
}
|
|
@@ -15128,8 +15874,8 @@ var SlackProvider = class {
|
|
|
15128
15874
|
try {
|
|
15129
15875
|
await this.disconnect(agentId);
|
|
15130
15876
|
return c.json({ success: true });
|
|
15131
|
-
} catch (
|
|
15132
|
-
const message =
|
|
15877
|
+
} catch (error51) {
|
|
15878
|
+
const message = error51 instanceof Error ? error51.message : "Failed to disconnect";
|
|
15133
15879
|
return c.json({ error: message }, 500);
|
|
15134
15880
|
}
|
|
15135
15881
|
}
|
|
@@ -15141,7 +15887,7 @@ var SlackProvider = class {
|
|
|
15141
15887
|
const url2 = new URL(c.req.url);
|
|
15142
15888
|
const code = url2.searchParams.get("code");
|
|
15143
15889
|
const state = url2.searchParams.get("state");
|
|
15144
|
-
const
|
|
15890
|
+
const error51 = url2.searchParams.get("error");
|
|
15145
15891
|
if (!state) {
|
|
15146
15892
|
return c.json({ error: "Missing state parameter" }, 400);
|
|
15147
15893
|
}
|
|
@@ -15150,10 +15896,10 @@ var SlackProvider = class {
|
|
|
15150
15896
|
return c.json({ error: "Invalid or expired installation state" }, 400);
|
|
15151
15897
|
}
|
|
15152
15898
|
const pending = this.#decryptPendingInstallation(pendingEncrypted);
|
|
15153
|
-
if (
|
|
15899
|
+
if (error51) {
|
|
15154
15900
|
const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
|
|
15155
15901
|
const redirect = new URL(errorUrl, c.req.url);
|
|
15156
|
-
redirect.searchParams.set("channel_error",
|
|
15902
|
+
redirect.searchParams.set("channel_error", error51);
|
|
15157
15903
|
redirect.searchParams.set("platform", "slack");
|
|
15158
15904
|
return c.redirect(redirect.toString());
|
|
15159
15905
|
}
|
|
@@ -15231,9 +15977,9 @@ var SlackProvider = class {
|
|
|
15231
15977
|
redirect.searchParams.set("agent", pending.agentId);
|
|
15232
15978
|
redirect.searchParams.set("team", teamName);
|
|
15233
15979
|
return c.redirect(redirect.toString());
|
|
15234
|
-
} catch (
|
|
15235
|
-
console.error("[Slack] OAuth callback error:",
|
|
15236
|
-
const message =
|
|
15980
|
+
} catch (error52) {
|
|
15981
|
+
console.error("[Slack] OAuth callback error:", error52);
|
|
15982
|
+
const message = error52 instanceof Error ? error52.message : "OAuth failed";
|
|
15237
15983
|
const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
|
|
15238
15984
|
const redirect = new URL(errorUrl, c.req.url);
|
|
15239
15985
|
redirect.searchParams.set("channel_error", message);
|
|
@@ -15307,8 +16053,8 @@ var SlackProvider = class {
|
|
|
15307
16053
|
});
|
|
15308
16054
|
try {
|
|
15309
16055
|
return await agentChannels.handleWebhookEvent("slack", delegateRequest);
|
|
15310
|
-
} catch (
|
|
15311
|
-
console.error("[Slack] Error delegating to AgentChannels:",
|
|
16056
|
+
} catch (error51) {
|
|
16057
|
+
console.error("[Slack] Error delegating to AgentChannels:", error51);
|
|
15312
16058
|
return c.json({ ok: true });
|
|
15313
16059
|
}
|
|
15314
16060
|
}
|
|
@@ -15365,9 +16111,9 @@ var SlackProvider = class {
|
|
|
15365
16111
|
const result = await agent.generate(prompt);
|
|
15366
16112
|
const text = typeof result.text === "string" ? result.text : JSON.stringify(result.text);
|
|
15367
16113
|
await sendDelayedResponse(text);
|
|
15368
|
-
} catch (
|
|
15369
|
-
console.error("[Slack] Command error:",
|
|
15370
|
-
const message =
|
|
16114
|
+
} catch (error51) {
|
|
16115
|
+
console.error("[Slack] Command error:", error51);
|
|
16116
|
+
const message = error51 instanceof Error ? error51.message : "Command failed";
|
|
15371
16117
|
await sendDelayedResponse(`Error: ${message}`);
|
|
15372
16118
|
}
|
|
15373
16119
|
})();
|